joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408f1c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004063e4
xor eax, eax
push ebp
push 0x409141
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x408f5c
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x408f76
mov eax, dword [ebp - 4]
call fcn.00406d04
mov ecx, eax
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.00408758
cmp word [ebp - 0x21a], 0
je 0x40912b
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409150
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409045
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409150
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409045
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40918c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409045
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40918c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409045
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4091c0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409045
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4091f4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40912b
xor eax, eax
push ebp
push 0x409124
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.00408d2c
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x21a]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x4090b4
mov eax, dword [ebp - 0x10]
call fcn.004043f0
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
lea eax, [ebp - 0x21a]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00406d68
jmp 0x4090ff
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x409234
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x4090ff
mov eax, dword [ebp - 0x10]
call fcn.004043f0
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x409234
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00406d68
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40912b
cmp dword [ebp - 8], 0
je 0x40911a
mov eax, dword [ebp - 8]
call fcn.0040440c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409148
lea eax, [ebp - 4]
call fcn.00406300
ret
Function at 0x409428
Capabilities:
Get geographical location
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004063e4
xor eax, eax
push ebp
push 0x4094e8
push dword fs:[eax]
mov dword fs:[eax], esp
push 4
lea eax, [ebp - 0xc]
push eax
push 3
call sub.kernel32.dll_GetUserDefaultUILanguage
movzx eax, ax
push eax
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.00406da4
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00406f54
mov eax, dword [ebx]
call fcn.004092f0
test al, al
jne 0x4094c5
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.00406da4
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00406f54
mov eax, dword [ebx]
call fcn.004092f0
test al, al
jne 0x4094c5
mov eax, ebx
call fcn.00406300
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4094ef
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00406360
lea eax, [ebp - 4]
call fcn.00406300
ret

Function at 0x40ad08
Capabilities:
Get system information on windows

Disassembly:
add esp, 0xffffffdc
push esp
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [esp + 0x14]
add esp, 0x24
ret

Function at 0x40bef0
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffdf8
mov ebx, eax
push 0x104
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemDirectoryW
mov edx, ebx
mov eax, esp
call fcn.0040bedc
add esp, 0x208
pop ebx
ret

Function at 0x4143d8
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x414431
test eax, edx
je 0x414434
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x4143ef
movzx eax, word [eax]
sub eax, ecx
jmp 0x414416
push ebx
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
shl ecx, 1
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x414417
add ecx, 4
js 0x414407
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x414414
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x414416
xor eax, eax
ret
test eax, eax
je 0x414440
test edx, edx
jne 0x4143e0
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x418a40
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x200]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoW
test eax, eax
jle 0x418a79
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00406458
jmp 0x418a82
mov eax, ebx
mov edx, esi
call fcn.004066b0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x418a8c
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov edi, ecx
mov esi, edx
mov ebx, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push ebx
call sub.kernel32.dll_GetLocaleInfoW
test eax, eax
jle 0x418aae
movzx eax, word [esp]
jmp 0x418ab0
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x419a14
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff778
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 4], ecx
xor ecx, ecx
push ebp
push 0x419b34
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.0041981c
mov esi, eax
mov eax, dword [0x4427d4]
cmp byte [eax], 0
je 0x419adc
mov eax, dword [0x4426b0]
call fcn.00404808
push 0
push 0
push 0
push 0
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte
mov ebx, eax
push ebx
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x4199e4]
call fcn.00408204
add esp, 4
push 0
push 0
push ebx
mov eax, dword [ebp - 4]
push eax
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte
push 0
lea eax, [ebp - 8]
push eax
push ebx
mov eax, dword [ebp - 4]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [ebp - 8]
push eax
push 2
push 0x419b50
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
jmp 0x419b18
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x442688]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x44662c]
call fcn.004083fc
push eax
call sub.user32.dll_LoadStringW
push 0x2010
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x888]
push eax
push 0
call sub.user32.dll_MessageBoxW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x419b3b
lea eax, [ebp - 4]
mov edx, dword [0x4199e4]
call fcn.00408328
ret
Function at 0x41a890
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x41a994
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
lea eax, [ebp - 4]
mov edx, ebx
call fcn.004066f8
lea eax, [ebp - 4]
call fcn.00406878
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00406d04
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x41a97e
mov eax, ebx
call fcn.004043f0
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x41a977
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00406d04
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x41a961
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x41a9a8
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x41a961
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x10]
call fcn.0040be0c
movzx eax, ax
mov dword [esi], eax
mov eax, dword [ebp - 0x14]
movzx eax, word [eax + 0x10]
mov dword [edi], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x14]
call fcn.0040be0c
movzx eax, ax
mov edx, dword [ebp + 8]
mov dword [edx], eax
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41a97e
mov eax, dword [ebp - 0x10]
call fcn.0040440c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41a99b
lea eax, [ebp - 4]
call fcn.00406300
ret

Function at 0x41c3b0
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x41c3f6
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 4]
mov eax, ebx
call fcn.0041c34c
mov eax, dword [ebp - 4]
call fcn.00406d04
push eax
call sub.kernel32.dll_GetFileAttributesW
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41c3fd
lea eax, [ebp - 4]
call fcn.00406300
ret

Function at 0x41c608
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdf4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 4], ecx
mov edi, edx
mov esi, eax
xor eax, eax
push ebp
push 0x41c69d
push dword fs:[eax]
mov dword fs:[eax], esp
test esi, esi
jne 0x41c653
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
mov ecx, eax
lea edx, [ebp - 0x20c]
mov eax, edi
call fcn.00406458
jmp 0x41c687
call sub.kernel32.dll_GetCommandLineW
mov ebx, eax
cmp word [ebx], 0
jne 0x41c66a
lea eax, [ebp - 4]
call fcn.00406300
jmp 0x41c67d
lea edx, [ebp - 4]
mov eax, ebx
call fcn.0041c4c8
mov ebx, eax
test esi, esi
je 0x41c67d
dec esi
jmp 0x41c65a
mov eax, edi
mov edx, dword [ebp - 4]
call fcn.004066b0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41c6a4
lea eax, [ebp - 4]
call fcn.00406300
ret
Function at 0x41c6ac
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffdf8
mov ebx, eax
push 0x104
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetWindowsDirectoryW
mov edx, ebx
mov eax, esp
call fcn.00415304
add esp, 0x208
pop ebx
ret

Function at 0x41c70c
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffdf8
mov ebx, eax
push 0x104
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemDirectoryW
mov edx, ebx
mov eax, esp
call fcn.00415304
add esp, 0x208
pop ebx
ret

Function at 0x41c870
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov edi, eax
xor eax, eax
push ebp
push 0x41c9a6
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push 0
lea eax, [ebp - 0x10]
push eax
push 0
mov eax, dword [ebp - 8]
push eax
push edi
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x41c990
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp + 0xc]
je 0x41c8cd
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp + 8]
jne 0x41c990
cmp dword [ebp - 0x14], 0
jne 0x41c8e2
mov eax, dword [ebp - 0xc]
call fcn.00406300
mov bl, 1
jmp 0x41c990
cmp dword [ebp - 0x14], 0x70000000
jb 0x41c8f0
call fcn.00419b74
mov esi, dword [ebp - 0x14]
inc esi
shr esi, 1
lea eax, [ebp - 4]
mov ecx, esi
xor edx, edx
call fcn.00406458
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 4]
call fcn.00406868
push eax
lea eax, [ebp - 0x10]
push eax
push 0
mov eax, dword [ebp - 8]
push eax
push edi
call sub.advapi32.dll_RegQueryValueExW
cmp eax, 0xea
je 0x41c896
test eax, eax
jne 0x41c990
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp + 0xc]
je 0x41c93e
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp + 8]
jne 0x41c990
mov esi, dword [ebp - 0x14]
shr esi, 1
jmp 0x41c946
dec esi
test esi, esi
je 0x41c955
mov eax, dword [ebp - 4]
cmp word [eax + esi*2 - 2], 0
je 0x41c945
cmp dword [ebp - 0x10], 7
jne 0x41c960
test esi, esi
je 0x41c960
inc esi
lea eax, [ebp - 4]
mov edx, esi
call fcn.00406e7c
cmp dword [ebp - 0x10], 7
jne 0x41c983
test esi, esi
je 0x41c983
lea eax, [ebp - 4]
call fcn.00406868
mov word [eax + esi*2 - 2], 0
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
call fcn.004066b0
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41c9ad
lea eax, [ebp - 4]
call fcn.00406300
ret

Function at 0x41e00c
Capabilities:
Hash data with crc32

Disassembly:
push esi
xor esi, esi
mov ecx, 0x4488e0
mov eax, esi
mov edx, 8
test al, 1
je 0x41e028
shr eax, 1
xor eax, 0xedb88320
jmp 0x41e02a
shr eax, 1
dec edx
jne 0x41e01b
mov dword [ecx], eax
inc esi
add ecx, 4
cmp esi, 0x100
jne 0x41e014
pop esi
ret
Function at 0x41e057
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
mov edi, edx
mov ebx, eax
cmp dword [0x4488dc], 0
jne 0x41e063
call fcn.0041e00c
push 1
push 0x4488dc
call fcn.0040bb50
mov eax, edi
test esi, esi
je 0x41e08d
mov edx, 0xff
and edx, ebx
movzx ecx, byte [eax]
xor dx, cx
movzx edx, dx
mov edx, dword [edx*4 + 0x4488e0]
shr ebx, 8
xor edx, ebx
mov ebx, edx
dec esi
inc eax
test esi, esi
jne 0x41e069
mov eax, ebx
pop edi
pop esi
pop ebx
ret

Function at 0x420bdc
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
mov esi, edx
mov ebx, eax
lea edx, [ebp - 0xc]
mov eax, ebx
call fcn.00420b90
test al, al
jne 0x420bfd
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x420c49
xor eax, eax
push ebp
push 0x420c39
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.00406d04
push eax
call sub.kernel32.dll_DeleteFileW
mov dword [ebp - 4], eax
call sub.kernel32.dll_GetLastError
mov dword [ebp - 0x10], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x420c40
lea eax, [ebp - 0xc]
call fcn.00420bcc
ret
mov eax, dword [ebp - 4]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x437fc4
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
mov ecx, 6
push 0
push 0
dec ecx
jne 0x437fcc
push ebx
push esi
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x43812f
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x24]
mov edx, ebx
call fcn.00406d68
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 0x20]
call fcn.0041c238
mov eax, dword [ebp - 0x20]
lea edx, [ebp - 0x1c]
call fcn.0041c32c
mov eax, dword [ebp - 0x1c]
push eax
lea eax, [ebp - 0x30]
call fcn.0041c6e0
mov eax, dword [ebp - 0x30]
lea edx, [ebp - 0x2c]
call fcn.0041bffc
lea eax, [ebp - 0x2c]
mov edx, 0x43814c
call fcn.00406efc
mov eax, dword [ebp - 0x2c]
lea edx, [ebp - 0x28]
call fcn.0041c32c
mov eax, dword [ebp - 0x28]
mov ecx, 1
pop edx
call fcn.004071c0
dec eax
je 0x43806b
push 0
push ebx
call sub.kernel32.dll_CreateDirectoryW
cmp eax, 1
sbb eax, eax
inc eax
mov ebx, eax
test bl, bl
jne 0x438107
call sub.kernel32.dll_GetLastError
mov dword [esi], eax
jmp 0x438107
lea eax, [ebp - 4]
call fcn.0041c9ec
cmp dword [ebp - 4], 0
jne 0x438086
lea eax, [ebp - 4]
mov edx, 0x438164
call fcn.004066f8
push 0x438178
push dword [ebp - 4]
push 0x4381b8
push 0x4381c8
push 0x438208
lea eax, [ebp - 8]
mov edx, 5
call fcn.00406fdc
push 0
lea eax, [ebp - 0xc]
push eax
push 1
mov eax, dword [ebp - 8]
call fcn.00406d04
push eax
call sub.advapi32.dll_ConvertStringSecurityDescriptorToSecurityDescriptorW
test eax, eax
jne 0x4380cf
call sub.kernel32.dll_GetLastError
mov dword [esi], eax
xor ebx, ebx
jmp 0x438107
mov dword [ebp - 0x18], 0xc
xor eax, eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x18]
push eax
push ebx
call sub.kernel32.dll_CreateDirectoryW
cmp eax, 1
sbb eax, eax
inc eax
mov ebx, eax
test bl, bl
jne 0x4380fe
call sub.kernel32.dll_GetLastError
mov dword [esi], eax
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_LocalFree
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x438136
lea eax, [ebp - 0x30]
mov edx, 6
call fcn.00406360
lea eax, [ebp - 8]
mov edx, 2
call fcn.00406360
ret

Function at 0x4385a0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov ebx, eax
mov esi, ecx
dec esi
test esi, esi
jl 0x4385fa
inc esi
xor edi, edi
cmp edi, 1
jne 0x4385c6
mov eax, dword [ebp + 0xc]
push eax
call sub.kernel32.dll_Sleep
jmp 0x4385d4
cmp edi, 1
jle 0x4385d4
mov eax, dword [ebp + 8]
push eax
call sub.kernel32.dll_Sleep
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.00420bdc
test eax, eax
jne 0x4385fa
call sub.kernel32.dll_GetLastError
cmp eax, 2
je 0x4385fa
call sub.kernel32.dll_GetLastError
cmp eax, 3
je 0x4385fa
inc edi
dec esi
jne 0x4385b6
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 8

Function at 0x438604
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, eax
push 2
lea eax, [ebp - 4]
push eax
push 0x20001004
movzx eax, bx
push eax
call sub.kernel32.dll_GetLocaleInfoW
test eax, eax
jle 0x438628
mov eax, dword [ebp - 4]
jmp 0x43862b
or eax, 0xffffffff
pop ebx
pop ecx
pop ebp
ret
Function at 0x438630
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, ecx
mov byte [ebp - 1], dl
mov edi, eax
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [eax], edx
mov byte [ebp - 2], 0
test esi, esi
je 0x43867d
xor ebx, ebx
jmp 0x438672
mov eax, dword [ebp - 8]
mov edx, dword [eax]
mov eax, esi
call fcn.004144d8
test eax, eax
jne 0x438671
mov eax, dword [ebp + 8]
mov dword [eax], ebx
mov byte [ebp - 2], 2
jmp 0x438728
inc ebx
lea edx, [ebp - 8]
mov eax, ebx
call edi
test al, al
jne 0x438653
movzx eax, byte [ebp - 1]
sub al, 1
jb 0x438689
je 0x438692
jmp 0x43869b
call fcn.0041cad4
mov esi, eax
jmp 0x43869d
call sub.kernel32.dll_GetUserDefaultLangID
mov esi, eax
jmp 0x43869d
xor esi, esi
test si, si
je 0x438728
xor ebx, ebx
jmp 0x4386c3
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x28]
movzx edx, si
cmp eax, edx
jne 0x4386c2
mov eax, dword [ebp + 8]
mov dword [eax], ebx
mov byte [ebp - 2], 1
jmp 0x438728
inc ebx
lea edx, [ebp - 8]
mov eax, ebx
call edi
test al, al
jne 0x4386aa
xor ebx, ebx
jmp 0x43871d
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x28]
and eax, 0x3ff
mov dx, 0x3ff
and dx, si
movzx edx, dx
cmp eax, edx
jne 0x43871c
mov ax, 0x3ff
and ax, si
cmp ax, 4
jne 0x438711
mov eax, dword [ebp - 8]
movzx eax, word [eax + 0x28]
call fcn.00438604
push eax
mov eax, esi
call fcn.00438604
pop edx
cmp edx, eax
jne 0x43871c
mov eax, dword [ebp + 8]
mov dword [eax], ebx
mov byte [ebp - 2], 1
jmp 0x438728
inc ebx
lea edx, [ebp - 8]
mov eax, ebx
call edi
test al, al
jne 0x4386d2
movzx eax, byte [ebp - 2]
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 4

Function at 0x438b10
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x438be7
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x438c04
push ebx
push 0x438c14
push esi
lea eax, [ebp - 4]
mov edx, 4
call fcn.00406fdc
lea eax, [ebp - 0x48]
xor ecx, ecx
mov edx, 0x44
call fcn.0040486c
mov dword [ebp - 0x48], 0x44
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x48]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00406d04
push eax
push 0
call sub.kernel32.dll_CreateProcessW
test eax, eax
jne 0x438b92
mov ax, 0x83
call fcn.00438738
mov eax, dword [ebp - 0x54]
push eax
call sub.kernel32.dll_CloseHandle
call fcn.00438ae4
push 0x4ff
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x58]
push eax
push 1
call sub.user32.dll_MsgWaitForMultipleObjects
cmp eax, 1
je 0x438b9b
call fcn.00438ae4
push edi
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_GetExitCodeProcess
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x438bee
lea eax, [ebp - 4]
call fcn.00406300
ret
Function at 0x10046649
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push edi
lea eax, [ebp - 4]
push eax
push 0x1000155c
xor edi, edi
push 0x80000002
mov dword [ebp - 4], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x100466a0
push esi
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0xc]
lea eax, [ebp + 0xc]
push eax
push edi
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop esi
jne 0x1004669c
cmp dword [ebp + 0xc], ebx
jne 0x1004669c
inc edi
mov eax, edi
jmp 0x100466a2
xor eax, eax
pop edi
leave
ret 0xc

Function at 0x100468a8
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x101d9590]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, 0x94
push esi
lea eax, [ebp - 0x98]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x98]
push eax
mov dword [ebp - 0x98], esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
pop esi
test eax, eax
jne 0x100468f0
inc eax
jmp 0x1004692a
xor eax, eax
inc eax
cmp dword [ebp - 0x88], eax
jne 0x1004691e
cmp dword [ebp - 0x94], 4
ja 0x1004691a
jne 0x1004692a
cmp dword [ebp - 0x90], 0xa
jb 0x1004692a
cmp word [ebp - 0x8c], 0x55d
jb 0x1004692a
xor eax, eax
jmp 0x1004692a
xor eax, eax
cmp dword [ebp - 0x88], 2
setne al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101becf5
leave
ret

Function at 0x1004693b
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x101d9590]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, 0x94
push edi
lea eax, [ebp - 0x98]
push 0
push eax
mov esi, ecx
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x98]
push eax
mov dword [ebp - 0x98], edi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x100469ab
cmp dword [ebp - 0x88], 2
jne 0x100469ab
cmp dword [ebp - 0x94], 5
jb 0x100469ab
cmp esi, 0xa
je 0x100469a1
push esi
call sub.KERNEL32.dll_IsProcessorFeaturePresent
jmp 0x100469df
call fcn.100467d0
and eax, 8
jmp 0x100469df
sub esi, 6
je 0x100469ca
dec esi
je 0x100469c3
sub esi, 3
jne 0x100469d3
call fcn.100468a8
test eax, eax
je 0x100469a1
jmp 0x100469d3
call fcn.10046791
jmp 0x100469df
call fcn.100468a8
test eax, eax
je 0x100469d7
xor eax, eax
jmp 0x100469df
call fcn.100467d0
and eax, 4
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.101becf5
leave
ret