joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100eb85
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x101767c]
mov ecx, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 4], eax
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x1017690]
je 0x100ebaf
inc eax
cmp eax, 0x12
jb 0x100eba0
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x1017690]
mov dword [ebp - 0x110], esi
jne 0x100ed5a
mov eax, dword [0x1017dbc]
cmp eax, 1
je 0x100ed28
test eax, eax
jne 0x100ebe5
cmp dword [0x1017684], 1
je 0x100ed28
cmp ecx, 0xfc
je 0x100ed5a
push 0x104
lea eax, [ebp - 0x10c]
push eax
push 0
mov byte [ebp - 8], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x100ec20
push 5
pop ecx
mov esi, 0x1002054
lea edi, [ebp - 0x10c]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea ebx, [ebp - 0x10c]
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100ec2b
sub eax, edx
inc eax
cmp eax, 0x3c
jbe 0x100ec63
lea eax, [ebp - 0x10c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100ec43
sub eax, edx
push 3
lea ebx, [ebp + eax - 0x147]
push 0x1002050
push ebx
call fcn.0100fba0
add esp, 0xc
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100ec68
sub eax, edx
mov ecx, eax
mov eax, dword [ebp - 0x110]
mov eax, dword [eax + 0x1017694]
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x100ec82
sub eax, esi
lea eax, [eax + ecx + 0x1c]
add eax, 3
and eax, 0xfffffffc
call fcn.0100f750
mov edx, esp
push 6
pop ecx
mov esi, 0x1002034
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov eax, ebx
movsw word es:[edi], word [esi]
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100ecae
mov edi, edx
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x100ecba
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, edx
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x100ecd3
mov eax, dword [ebp - 0x110]
mov esi, 0x1002030
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov eax, dword [eax + 0x1017694]
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100ecf1
mov edi, edx
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x100ecfd
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push 0x12010
mov ecx, eax
and ecx, 3
push 0x1002008
push edx
rep movsb byte es:[edi], byte [esi]
call fcn.0100fa9a
add esp, 0xc
jmp 0x100ed5a
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
test eax, eax
je 0x100ed5a
mov esi, dword [esi + 0x1017694]
mov ecx, esi
lea edx, [ecx + 1]
mov bl, byte [ecx]
inc ecx
test bl, bl
jne 0x100ed3f
push 0
sub ecx, edx
lea edx, [ebp - 0x114]
push edx
push ecx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x120]
mov ecx, dword [ebp - 4]
call fcn.0100e270
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100f299
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x1017f20]
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
push edi
xor ebx, ebx
xor edi, edi
cmp eax, ebx
jne 0x100f2e5
call esi
mov edi, eax
cmp edi, ebx
je 0x100f2cb
mov dword [0x1017f20], 1
jmp 0x100f2ea
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x100f2e0
push 2
pop eax
mov dword [0x1017f20], eax
jmp 0x100f2e5
mov eax, dword [0x1017f20]
cmp eax, 1
jne 0x100f362
cmp edi, ebx
jne 0x100f2f6
call esi
mov edi, eax
cmp edi, ebx
je 0x100f36b
cmp word [edi], bx
mov eax, edi
je 0x100f30b
inc eax
inc eax
cmp word [eax], bx
jne 0x100f2fd
inc eax
inc eax
cmp word [eax], bx
jne 0x100f2fd
mov esi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push ebx
push ebx
push ebx
sub eax, edi
push ebx
sar eax, 1
inc eax
push eax
push edi
push ebx
push ebx
mov dword [ebp - 0xc], eax
call esi
cmp eax, ebx
mov dword [ebp - 8], eax
je 0x100f359
push eax
call fcn.0100fa3c
cmp eax, ebx
pop ecx
mov dword [ebp - 4], eax
je 0x100f359
push ebx
push ebx
push dword [ebp - 8]
push eax
push dword [ebp - 0xc]
push edi
push ebx
push ebx
call esi
test eax, eax
jne 0x100f356
push dword [ebp - 4]
call fcn.0100fa58
pop ecx
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 4]
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x100f3ba
cmp eax, 2
je 0x100f36f
cmp eax, ebx
je 0x100f36f
xor eax, eax
jmp 0x100f3bc
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov esi, eax
cmp esi, ebx
mov dword [ebp - 4], esi
je 0x100f36b
cmp byte [esi], bl
je 0x100f38c
inc eax
cmp byte [eax], bl
jne 0x100f382
inc eax
cmp byte [eax], bl
jne 0x100f382
sub eax, esi
inc eax
mov edi, eax
push edi
call fcn.0100fa3c
cmp eax, ebx
pop ecx
je 0x100f3b3
mov ecx, edi
mov edx, ecx
shr ecx, 2
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp - 4]
mov ebx, eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100fa9a
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x1017f24], ebx
push esi
push edi
jne 0x100fb1c
push 0x10020d0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x100fb57
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x10020c4
push edi
call esi
test eax, eax
mov dword [0x1017f24], eax
je 0x100fb57
push 0x10020b4
push edi
call esi
push 0x10020a0
push edi
mov dword [0x1017f28], eax
call esi
cmp dword [0x1017dcc], 2
mov dword [0x1017f2c], eax
jne 0x100fb1c
push 0x1002084
push edi
call esi
test eax, eax
mov dword [0x1017f34], eax
je 0x100fb1c
push 0x100206c
push edi
call esi
mov dword [0x1017f30], eax
mov eax, dword [0x1017f30]
test eax, eax
je 0x100fb61
call eax
test eax, eax
je 0x100fb48
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x1017f34]
test eax, eax
je 0x100fb48
test byte [ebp - 8], 1
jne 0x100fb61
cmp dword [0x1017dd8], 4
jb 0x100fb5b
or byte [ebp + 0x12], 0x20
jmp 0x100fb80
xor eax, eax
jmp 0x100fb90
or byte [ebp + 0x12], 4
jmp 0x100fb80
mov eax, dword [0x1017f28]
test eax, eax
je 0x100fb80
call eax
mov ebx, eax
test ebx, ebx
je 0x100fb80
mov eax, dword [0x1017f2c]
test eax, eax
je 0x100fb80
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x1017f24]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1010a96
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x1010ac7
mov eax, dword fs:[4]
mov dword [ebp + 8], eax
mov eax, dword fs:[8]
mov dword [ebp - 4], eax
cmp ebx, dword [ebp - 4]
jb 0x1010ace
cmp ebx, dword [ebp + 8]
jae 0x1010ace
xor eax, eax
jmp 0x1010cbe
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x1010adf
xor eax, eax
inc eax
jmp 0x1010cbd
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x1010af5
cmp ecx, edx
jae 0x1010c3a
cmp dword [eax + 4], 0
je 0x1010afe
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x1010ae6
cmp dword [ebp + 8], 0
je 0x1010b20
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x1010c3a
cmp eax, esi
jae 0x1010c3a
mov eax, dword [0x1017f40]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x1010b45
cmp dword [esi*4 + 0x1017f48], edi
je 0x1010c3e
inc esi
cmp esi, eax
jl 0x1010b33
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x1010cba
cmp dword [ebp - 8], 0x1000000
jne 0x1010cba
test byte [ebp - 0xc], 0xcc
je 0x1010bc3
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x1010cba
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x1010cba
cmp word [eax + 0x18], 0x10b
jne 0x1010cba
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x1010cba
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x1010bc3
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x1010bc3
test byte [ecx + 0x27], 0x80
jne 0x1010c3a
push 1
push 0x1017f88
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x1010ad7
mov ecx, dword [0x1017f40]
test ecx, ecx
mov edx, ecx
jle 0x1010bf7
lea eax, [ecx*4 + 0x1017f44]
cmp dword [eax], edi
je 0x1010bf7
dec edx
sub eax, 4
test edx, edx
jg 0x1010beb
test edx, edx
jne 0x1010c28
push 0xf
pop ebx
cmp ecx, ebx
jg 0x1010c04
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x1010c1c
lea eax, [edx*4 + 0x1017f48]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x1010c0a
cmp ecx, 0x10
jge 0x1010c28
inc ecx
mov dword [0x1017f40], ecx
push 0
push 0x1017f88
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x1010ad7
xor eax, eax
jmp 0x1010cbd
test esi, esi
jle 0x1010ad7
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x1017f88
call ebx
test eax, eax
jne 0x1010ad7
cmp dword [esi*4 + 0x1017f48], edi
je 0x1010c94
mov eax, dword [0x1017f40]
lea esi, [eax - 1]
test esi, esi
jl 0x1010c82
cmp dword [esi*4 + 0x1017f48], edi
je 0x1010c7e
dec esi
jns 0x1010c72
test esi, esi
jge 0x1010c92
cmp eax, 0x10
jge 0x1010c8d
inc eax
mov dword [0x1017f40], eax
lea esi, [eax - 1]
jmp 0x1010c94
je 0x1010cac
xor ecx, ecx
test esi, esi
jl 0x1010cac
lea eax, [ecx*4 + 0x1017f48]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x1010c9a
push 0
push 0x1017f88
call ebx
jmp 0x1010ad7
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1011557
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
push edi
push 4
pop eax
call fcn.0100f750
mov ebx, esp
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x10115bd
mov edi, dword [ebp - 0x1c]
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [0x1017dcc]
mov esi, dword [ebp - 0x40]
mov ecx, eax
dec ecx
neg ecx
sbb ecx, ecx
lea edx, [esi - 1]
and ecx, 0x103
not edx
and edx, ebx
inc ecx
sub edx, esi
dec eax
neg eax
sbb eax, eax
and eax, 0xfffffff1
add eax, 0x11
imul eax, esi
add eax, edi
cmp edx, eax
jae 0x10115c1
xor eax, eax
jmp 0x10115ce
lea eax, [ebp - 4]
push eax
push ecx
push esi
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x50]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10142c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push 0xa
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x101431d
push ebx
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x101431c
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x1014315
mov ecx, dword [ebp + 0x14]
push esi
push edi
mov edi, dword [ebp + 0x10]
mov esi, eax
mov eax, ecx
shr ecx, 2
mov dword [ebp - 4], edi
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop ebx
mov eax, dword [ebp - 4]
leave
ret 0x10

Function at 0x101492f
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push 0x1002a34
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1014987
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x100206b
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x101497a
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x1014989
xor eax, eax
pop esi
leave
ret 4
Function at 0x402a04
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebx
push esi
add esp, 0xfffffdf0
mov esi, edx
mov ebx, eax
test bl, bl
je 0x402a41
xor eax, eax
mov al, bl
add eax, 0x41
dec eax
mov byte [esp], al
mov byte [esp + 1], 0x3a
mov byte [esp + 2], 0
lea eax, [esp + 0x109]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
push esp
call sub.kernel32.dll_SetCurrentDirectoryA
lea eax, [esp + 4]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
test bl, bl
je 0x402a61
lea eax, [esp + 0x109]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.00404ad0
add esp, 0x210
pop esi
pop ebx
ret

Function at 0x402c28
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00404868
test esi, esi
jne 0x402c5e
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00404958
jmp 0x402c7c
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402adc
mov edi, eax
test esi, esi
je 0x402c7c
cmp dword [ebx], 0
je 0x402c7c
dec esi
jmp 0x402c65
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x4037e4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x57300c]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x40387c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x40385c
xor eax, eax
push ebp
push 0x403855
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x403898
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40385c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x57300c]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x57300c], ax
mov esp, ebp
pop ebp
ret

Function at 0x404668
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x57804c], 0
je 0x4046c9
cmp word [0x578220], 0xd7b2
jne 0x404691
cmp dword [0x578228], 0
jbe 0x404691
mov eax, 0x57821c
call dword [0x578238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x573054
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x4046f0
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x57301c], 0
jne 0x4046e5
push 0
push 0x573074
push 0x573054
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x40481c
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.00402828
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x57804d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x4047e4
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x4065b4
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4067e4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x406637
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4067e4
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x406637
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406800
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4066c0
xor eax, eax
push ebp
push 0x4066b9
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.004063fc
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x40669e
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x406820
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x40669e
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4066c0
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpynA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x4067da
cmp byte [ebp - 0xd], 0
jne 0x406707
cmp byte [ebp - 0x12], 0
je 0x4067da
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x406720
dec ebx
cmp byte [ebx], 0x2e
je 0x40672f
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x40671f
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x4067da
inc ebx
cmp byte [ebp - 0x12], 0
je 0x40676c
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x4067da
cmp byte [ebp - 0xd], 0
je 0x4067da
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x4067da
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x409cc8
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00404d34
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x409ce1
test al, 0x10
jne 0x409ce5
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x409e60
Capabilities:
Set file attributes

Disassembly:
push ebx
push esi
push edi
mov edi, edx
mov esi, eax
xor ebx, ebx
push edi
mov eax, esi
call fcn.00404d34
push eax
call sub.kernel32.dll_SetFileAttributesA
test eax, eax
jne 0x409e82
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
mov eax, ebx
pop edi
pop esi
pop ebx
ret

Function at 0x40d148
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40d181
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404958
jmp 0x40d18a
mov eax, ebx
mov edx, esi
call fcn.004048bc
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40d194
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40d1b5
mov al, byte [esp]
jmp 0x40d1b7
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40d83c
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40d6b4
mov eax, dword [0x57746c]
cmp byte [eax], 0
je 0x40d8a9
mov eax, dword [0x576ff4]
call fcn.0040302c
call fcn.00402990
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.0040a284
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40d8f0
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40d8df
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x576f48]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x578718]
call fcn.004063c0
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret

Function at 0x40e7f8
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x40e85c
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.00404ad0
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.004098ac
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e863
lea eax, [ebp - 0xc]
call fcn.00404868
ret
Function at 0x427be0
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_ResumeThread
mov esi, eax
test esi, esi
setge dl
mov eax, ebx
call fcn.00427a64
dec esi
jne 0x427c02
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret

Function at 0x428d2c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x578a80
cmp dword [edi], 0
jne 0x428da8
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x578a7c]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x573678
mov ecx, 2
call fcn.00402a9c
mov edx, 0x428d04
lea eax, [esi + 5]
call fcn.00428d24
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.00428d24
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x428d7d
mov dword [0x578a7c], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x42a304
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x42a30a
ret

Function at 0x42cd1c
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
dec ecx
js 0x42cd6d
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x42cd54
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x42cd44
jmp 0x42cd6d
push ebx
xor ebx, ebx
mov eax, dword [edx + ecx*4]
mov bh, al
mov bl, ah
shr eax, 0x10
shl ebx, 8
mov bl, al
mov dword [edx + ecx*4], ebx
dec ecx
jns 0x42cd55
pop ebx
mov esp, ebp
pop ebp
ret