joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18002720c
Capabilities:
Hash data using fnv

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov rdi, r8
mov r14, rdx
mov r13, rcx
cmp rdx, r8
je 0x180027376
mov rbp, qword [rcx + 0x18]
movabs rax, 0xcbf29ce484222325
movzx r15d, byte [rdx + 0x10]
mov rbx, rdx
mov r12, qword [rcx + 8]
xor r15, rax
mov rsi, qword [rdx + 8]
movabs rax, 0x100000001b3
imul r15, rax
and r15, qword [rcx + 0x30]
add r15, r15
mov rax, qword [rbp + r15*8]
mov qword [rsp + 0x30], rax
mov rax, qword [rbp + r15*8 + 8]
mov qword [rsp + 0x20], rax
mov rax, rbx
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x38], rbx
mov rbx, qword [rbx]
mov rcx, qword [rax + 0x18]
test rcx, rcx
je 0x1800272ac
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
mov rax, qword [rsp + 0x38]
mov edx, 0x20
mov rcx, rax
call fcn.18005c294
mov rax, qword [rsp + 0x20]
dec qword [r13 + 0x10]
cmp qword [rsp + 0x28], rax
je 0x1800272e3
cmp rbx, rdi
jne 0x180027284
cmp qword [rsp + 0x30], r14
jne 0x18002736f
mov qword [rbp + r15*8], rbx
jmp 0x18002736f
cmp qword [rsp + 0x30], r14
jne 0x1800272f4
mov qword [rbp + r15*8], r12
mov rax, r12
jmp 0x1800272f7
mov rax, rsi
mov qword [rbp + r15*8 + 8], rax
jmp 0x1800273a1
movzx eax, byte [rbx + 0x10]
movabs rcx, 0xcbf29ce484222325
mov r14, qword [r13 + 0x30]
xor rax, rcx
movabs rcx, 0x100000001b3
imul rax, rcx
and r14, rax
add r14, r14
mov rax, qword [rbp + r14*8 + 8]
mov qword [rsp + 0x28], rax
mov r15, rbx
mov rbx, qword [rbx]
mov rcx, qword [r15 + 0x18]
test rcx, rcx
je 0x18002734d
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
mov edx, 0x20
mov rcx, r15
call fcn.18005c294
dec qword [r13 + 0x10]
cmp r15, qword [rsp + 0x28]
je 0x180027397
cmp rbx, rdi
jne 0x180027334
mov qword [rbp + r14*8], rbx
mov qword [rsi], rbx
mov qword [rbx + 8], rsi
lea r11, [rsp + 0x40]
mov rax, rdi
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
mov qword [rbp + r14*8], r12
mov qword [rbp + r14*8 + 8], r12
cmp rbx, rdi
jne 0x180027301
jmp 0x18002736f
Function at 0x180028990
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r14
lea rbp, [rsp - 0x80]
sub rsp, 0x180
mov rax, qword [0x18011c100]
xor rax, rsp
mov qword [rbp + 0x70], rax
mov rsi, rdx
mov rdi, rcx
mov rax, qword [rcx + 0x10]
dec rax
cmp rax, 0xfffffffffffffffd
ja 0x180028b90
mov rbx, qword [rcx + 0x18]
mov qword [rsp + 0x30], rbx
mov rcx, rbx
call fcn.1800379cc
test eax, eax
jne 0x180028bb9
mov eax, dword [rbx + 0x4c]
cmp eax, 0x7fffffff
je 0x180028bc4
and qword [rsi + 0x28], 0
and qword [rsi + 0x30], 0
xor edx, edx
mov r8d, 0x120
lea rcx, [rsp + 0x50]
call fcn.180086780
and qword [rsp + 0x60], 0
lea r12, vtable.fmt::v10::basic_memory_buffer_char__250__class_std::allocator_char__.0
mov qword [rsp + 0x50], r12
lea rax, [rsp + 0x70]
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x68], 0xfa
mov rcx, qword [rdi + 0x28]
mov rax, qword [rcx]
lea r8, [rsp + 0x50]
mov rdx, rsi
call qword [rax + 8]
cmp byte [rdi + 0x20], 0
je 0x180028b23
mov r8, qword [rsi + 0x28]
cmp qword [rsi + 0x30], r8
jbe 0x180028b23
test r8, r8
je 0x180028a7c
and qword [rsp + 0x20], 0
xor r9d, r9d
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rdi + 0x10]
call qword [sym.imp.KERNEL32.dll_WriteConsoleA]
movsxd rax, dword [rsi + 0x10]
movzx r14d, word [rdi + rax*2 + 0x30]
lea rdx, [rsp + 0x38]
mov rcx, qword [rdi + 0x10]
call qword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
test eax, eax
jne 0x180028a9f
lea r14d, [rax + 7]
jmp 0x180028abc
mov edx, dword [rsp + 0x40]
and edx, 0xfff0
or edx, r14d
mov rcx, qword [rdi + 0x10]
call qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
movzx r14d, word [rsp + 0x40]
mov r8, qword [rsi + 0x30]
mov rcx, qword [rsi + 0x28]
cmp r8, rcx
jbe 0x180028ae7
sub r8d, ecx
mov rdx, qword [rsp + 0x58]
add rdx, rcx
and qword [rsp + 0x20], 0
xor r9d, r9d
mov rcx, qword [rdi + 0x10]
call qword [sym.imp.KERNEL32.dll_WriteConsoleA]
movzx edx, r14w
mov rcx, qword [rdi + 0x10]
call qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
mov rcx, qword [rsi + 0x30]
mov r8, qword [rsp + 0x60]
cmp r8, rcx
jbe 0x180028b48
sub r8d, ecx
mov rdx, qword [rsp + 0x58]
add rdx, rcx
and qword [rsp + 0x20], 0
xor r9d, r9d
mov rcx, qword [rdi + 0x10]
call qword [sym.imp.KERNEL32.dll_WriteConsoleA]
jmp 0x180028b48
and dword [rsp + 0x30], 0
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x30]
mov r8d, dword [rsp + 0x60]
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rdi + 0x10]
call qword [sym.imp.KERNEL32.dll_WriteFile]
nop
mov qword [rsp + 0x50], r12
lea rax, [rsp + 0x70]
mov rcx, qword [rsp + 0x58]
cmp rcx, rax
je 0x180028b88
mov rdx, qword [rsp + 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180028b82
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180028bb3
call fcn.18005c294
nop
mov rcx, rbx
call fcn.1800379f4
mov rcx, qword [rbp + 0x70]
xor rcx, rsp
call fcn.18005bda0
mov rbx, qword [rsp + 0x1c0]
add rsp, 0x180
pop r14
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.180062284
nop
mov ecx, 5
call fcn.180037cf8
int3
dec eax
mov dword [rbx + 0x4c], eax
mov ecx, 6
call fcn.180037cf8
int3
Function at 0x18002be84
Capabilities:
Hash data using fnv

Disassembly:
xor r9d, r9d
movabs r8, 0xcbf29ce484222325
test rdx, rdx
je 0x18002beb4
movzx eax, byte [rcx + r9]
movabs r10, 0x100000001b3
xor r8, rax
inc r9
imul r8, r10
cmp r9, rdx
jb 0x18002be96
mov rax, r8
ret

Function at 0x180038128
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x180038162
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x180038167
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x1800381b0
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x18008b870]
cmp byte [rcx + rax], 0
je 0x1800381b0
dec r8
sub rdx, 1
jne 0x180038196
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x18005167c
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
lea r9, [rdx + rdx]
movabs r8, 0xcbf29ce484222325
xor edx, edx
test r9, r9
je 0x18003de9a
movzx eax, byte [rcx + rdx]
movabs r10, 0x100000001b3
xor r8, rax
inc rdx
imul r8, r10
cmp rdx, r9
jb 0x18003de7d
mov rax, r8
ret
sub r8, rdx
mov rcx, rdx
sar r8, 1
mov rdx, r8
jmp 0x18003de68

Function at 0x18005a334
Capabilities:
Encode data using xor

Disassembly:
sub r8, rdx
mov rcx, rdx
mov rdx, r8
jmp fcn.18002be84

Function at 0x18005b298
Capabilities:
Get geographical location

Disassembly:
sub rsp, 0x28
call fcn.18006c2e4
mov rcx, qword [rax + 0x28]
test rcx, rcx
je 0x18005b2ea
and dword [rsp + 0x30], 0
lea r8, [rsp + 0x30]
mov r9d, 2
lea edx, [r9 + 0x20]
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
movzx ecx, word [rsp + 0x30]
sub ecx, 0x30
je 0x18005b2ea
sub ecx, 1
je 0x18005b2e3
cmp ecx, 1
je 0x18005b2dc
xor eax, eax
jmp 0x18005b2ef
mov eax, 3
jmp 0x18005b2ef
mov eax, 1
jmp 0x18005b2ef
mov eax, 2
add rsp, 0x28
ret
Function at 0x18006fe20
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x18006fe8f
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x18006fe8f
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x18006fe8f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x18006fe8f
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x18006fe8f
cmp dword [rcx + 0x84], 0xe
jbe 0x18006fe8f
cmp dword [rcx + 0xf8], 0
je 0x18006fe8f
mov ecx, ebx
call fcn.18006ff40
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.18006fd1c
nop
cmp dword [rbp + 0x20], 0
je 0x18006fedd
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.18006fee8
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x18006fe20

Function at 0x180073128
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x18007313e
mov al, 1
jmp 0x18007319e
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x18007314f
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x18007319c
mov ecx, dword [rcx + 0x18]
nop
call fcn.18007fea8
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x18007319c
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x18007319c
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x18007319c
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x18007319e
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x180077c64
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.18005cc70
sub rsp, rax
mov rax, qword [0x18011c100]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.180073008
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x180077cb3
mov rax, rbp
jmp 0x180077dbb
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x180000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x122900]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.180078bb0
mov r13, rax
lea rax, [0x180000000]
mov rcx, qword [rax + rbx*8 + 0x122900]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x180077db7
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x180077db7
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.180078bb0
test rax, rax
js 0x180077db7
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x180077db7
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x180077da9
lea r8, [0x180000000]
cmp rcx, rdx
jae 0x180077da9
cmp byte [rcx], 0xd
jne 0x180077d8f
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x180077d9e
cmp byte [rcx + 1], 0xa
jne 0x180077d9e
inc rcx
jmp 0x180077d9e
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x11c6f0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x180077d71
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x180077dbb
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.18005bda0
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x180077f50
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x180122900]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x180077fa7
cmp word [rdx], r13w
jne 0x180077fa7
or byte [rax + rdi*8 + 0x38], cl
jmp 0x180077fac
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x1800780d1
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x1800780f2
lea r9, [rdx + 2]
cmp cx, r11w
je 0x180077fe5
mov rdx, r9
mov word [rbx], cx
jmp 0x18007800c
cmp r9, r8
jae 0x18007801c
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x180077fc6
jmp 0x1800780d1
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1800780c6
cmp dword [rsp + 0x80], esi
je 0x1800780c6
lea r8, [0x180122900]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x18007809e
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x18007806e
mov word [rbx], r13w
jmp 0x1800780ce
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x18007807b
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x1800780ce
cmp word [rsp + 0x70], r13w
jne 0x1800780ab
cmp rbx, r14
je 0x180078068
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.180078bb8
cmp word [rsp + 0x70], r13w
je 0x1800780d1
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x180122900]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x1800780cb
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x1800780d1
Function at 0x18007c80c
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x18007c83c
xor eax, eax
jmp 0x18007c8ff
mov rbp, rbx
cmp word [rax], si
je 0x18007c861
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x18007c848
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x18007c844
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.180076474
movsxd r14, eax
test eax, eax
jne 0x18007c89f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x18007c835
mov rcx, r14
call fcn.1800737f8
mov rdi, rax
test rax, rax
jne 0x18007c8b8
xor ecx, ecx
call fcn.1800737bc
jmp 0x18007c894
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.180076474
test eax, eax
jne 0x18007c8e9
mov rcx, rdi
call fcn.1800737bc
jmp 0x18007c8f3
xor ecx, ecx
call fcn.1800737bc
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x18007c91c
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x18007c9a3
mov rsi, rbx
cmp word [rax], bp
je 0x18007c962
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x18007c94c
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x18007c948
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1800737f8
mov rdi, rax
test rax, rax
je 0x18007c990
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.180086040
mov rbp, rdi
xor ecx, ecx
call fcn.1800737bc
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x18007f648
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.180071428
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x18007f6e9
cmp ebx, dword [rsp + 0x30]
je 0x18007f6e2
test esi, esi
je 0x18007f6e2
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x18007f6bd
sub r8w, 0x61
cmp r8w, 0x19
ja 0x18007f6ca
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x18007f6a7
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x18007f6ce
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x18007f6eb
mov eax, 1
jmp 0x18007f6eb
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x1800847e4
Capabilities:
Clear file content

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.180078bb8
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.180078bb8
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x180084934
cmp rax, 0xffffffffffffffff
je 0x180084934
xor edi, edi
test rbp, rbp
jle 0x1800848df
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1800734e4
mov rbx, rax
test rax, rax
jne 0x18008486c
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1800848d5
mov edx, 0x8000
mov ecx, r14d
call fcn.180084668
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.180075cd8
cmp eax, 0xffffffff
je 0x1800848b5
cdqe
sub rbp, rax
test rbp, rbp
jg 0x18008487c
mov edx, r15d
mov ecx, r14d
call fcn.180084668
jmp 0x1800848d5
cmp byte [rsi + 0x38], dil
je 0x1800848cc
cmp dword [rsi + 0x34], 5
jne 0x1800848cc
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x1800848d5
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1800737bc
jmp 0x180084948
jns 0x180084948
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.180078bb8
cmp rax, 0xffffffffffffffff
jne 0x180084900
cmp byte [rsi + 0x30], dil
je 0x180084948
mov edi, dword [rsi + 0x2c]
jmp 0x180084948
mov ecx, r14d
call fcn.18007fea8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x180084948
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x180084948
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x180084941
mov eax, dword [rsi + 0x2c]
jmp 0x180084946
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.180078bb8
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
Function at 0x180085410
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x180085438
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x180085438
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x180001032
Capabilities:
Get common file path

Disassembly:
jmp 0x180018c30
push rbx
sub rsp, 0x360
mov rax, qword [0x1800941a0]
xor rax, rsp
mov qword [rsp + 0x350], rax
lea rcx, [rsp + 0x142]
xor ebx, ebx
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x140], bx
call fcn.18001a180
lea rcx, [rsp + 0x31]
xor edx, edx
mov r8d, 0x103
mov byte [rsp + 0x30], bl
call fcn.18001a180
lea rcx, [rsp + 0x30]
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea rax, [rsp + 0x30]
or r9, 0xffffffffffffffff
nop dword [rax]
inc r9
cmp byte [rax + r9], bl
jne 0x180018ca0
lea rax, [rsp + 0x140]
lea r8, [rsp + 0x30]
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x28], 0x104
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea r9, [rsp + 0x140]
lea rdx, [0x1800964e0]
lea rcx, [0x180093f20]
mov r8d, 0x13
mov dword [rsp + 0x20], ebx
call fcn.18000122b
test eax, eax
sete bl
mov eax, ebx
mov rcx, qword [rsp + 0x350]
xor rcx, rsp
call fcn.1800197b0
add rsp, 0x360
pop rbx
ret

Function at 0x1800010c3
Capabilities:
Accept command line arguments

Disassembly:
jmp 0x180018750
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
xor ebx, ebx
mov ebp, ecx
test ecx, ecx
je 0x180018777
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rsi, rax
jmp 0x18001877a
mov rsi, rbx
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x38], rbx
call fcn.18001d4e4
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, 0x40
movsxd rdx, eax
lea rdx, [rdx*2 + 0x21a]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
lea rdx, [0x180093f10]
mov rcx, rdx
mov rdi, rax
mov r8, rax
or rcx, rax
and ecx, 0xf
jne 0x180018837
lea eax, [rcx + 4]
movaps xmm0, xmmword [rdx]
lea r8, [r8 + 0x80]
lea rdx, [rdx + 0x80]
movaps xmmword [r8 - 0x80], xmm0
movaps xmm1, xmmword [rdx - 0x70]
movaps xmmword [r8 - 0x70], xmm1
movaps xmm0, xmmword [rdx - 0x60]
movaps xmmword [r8 - 0x60], xmm0
movaps xmm1, xmmword [rdx - 0x50]
movaps xmmword [r8 - 0x50], xmm1
movaps xmm0, xmmword [rdx - 0x40]
movaps xmmword [r8 - 0x40], xmm0
movaps xmm1, xmmword [rdx - 0x30]
movaps xmmword [r8 - 0x30], xmm1
movaps xmm0, xmmword [rdx - 0x20]
movaps xmmword [r8 - 0x20], xmm0
movaps xmm1, xmmword [rdx - 0x10]
movaps xmmword [r8 - 0x10], xmm1
dec rax
jne 0x1800187c3
movaps xmm0, xmmword [rdx]
movaps xmmword [r8], xmm0
mov rax, qword [rdx + 0x10]
mov qword [r8 + 0x10], rax
movzx eax, word [rdx + 0x18]
mov word [r8 + 0x18], ax
jmp 0x180018845
mov r8d, 0x21a
mov rcx, rax
call fcn.18001a2a0
test ebp, ebp
jne 0x180018855
mov rbx, qword [rsp + 0x38]
sub rbx, qword [0x180093f18]
lea rcx, [rdi + 0x218]
mov rdx, rsi
mov qword [rdi + 8], rbx
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rax, rdi
add rsp, 0x20
pop rdi
ret