joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4624e0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x48a368
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x38
mov eax, dword [0x4a8c20]
push ebx
push esi
push edi
mov esi, ecx
mov dword [esp + 0xc], eax
lea ecx, [esp + 0xc]
mov dword [esp + 0x4c], 0
push ecx
lea ecx, [esi + 0x3c]
call fcn.0046df2f
mov edx, dword [esi + 0x1c]
mov edi, dword [sym.imp.USER32.dll_GetParent]
push edx
call edi
push eax
call fcn.0046d539
mov eax, dword [eax + 0x1c]
mov ecx, esi
mov dword [esp + 0x10], eax
call fcn.0047019f
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x54]
test eax, eax
mov dword [esp + 0x18], 0xffffff96
mov dword [esp + 0x1c], 1
je 0x462563
mov ecx, dword [esi + 0x250]
mov dword [esp + 0x20], ecx
jmp 0x46256b
mov dword [esp + 0x20], 0xffffffff
mov edx, dword [esi + 0x24c]
mov eax, dword [esp + 0xc]
mov dword [esp + 0x24], edx
mov dword [esp + 0x30], eax
mov eax, dword [eax - 8]
mov dword [esp + 0x34], eax
mov eax, dword [esi + 0x1c]
push eax
call edi
push eax
call fcn.0046d539
mov ecx, dword [esi + 0x1c]
mov ebx, eax
push ecx
call edi
push eax
call fcn.0046d539
mov edx, dword [eax + 0x1c]
push edx
call edi
push eax
call fcn.0046d539
mov ecx, ebx
mov edi, eax
call fcn.0047019f
mov edx, dword [edi + 0x1c]
lea ecx, [esp + 0x10]
push ecx
push eax
push 0x4e
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x58]
lea ecx, [esp + 0xc]
mov dword [esp + 0x4c], 0xffffffff
call fcn.0047162c
mov ecx, dword [esp + 0x44]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x44
ret 4

Function at 0x463400
Capabilities:
Get geographical location

Disassembly:
push 0xffffffffffffffff
push 0x48a3d8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, dword [sym.imp.kernel32.dll_GetLocaleInfoA]
push 0
push 0
push 0x100c
push 0x800
call esi
mov ecx, dword [0x4a8c20]
mov dword [esp + 4], ecx
push eax
push eax
lea ecx, [esp + 0xc]
mov dword [esp + 0x18], 0
call fcn.00471a5f
push eax
push 0x100c
push 0x800
call esi
mov edx, dword [esp + 4]
lea ecx, [esp + 4]
mov eax, dword [edx - 8]
push eax
call fcn.004719e8
push eax
call fcn.0044a3ed
add esp, 4
lea ecx, [esp + 4]
mov esi, eax
push 0xffffffffffffffff
call fcn.00471a37
lea ecx, [esp + 4]
mov dword [esp + 0x10], 0xffffffff
call fcn.0047162c
mov ecx, dword [esp + 8]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x4634b0
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x48a42a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.0046d118
lea edi, [esi + 0x3c]
xor ebp, ebp
mov ecx, edi
mov dword [esp + 0x18], ebp
call fcn.0046d118
mov dword [edi], 0x490ce0
mov dword [esi + 0x7c], ebp
mov dword [esi + 0x78], 0x493e94
push ebp
push ebp
push ebp
push 0x1f
push 0xc
mov dword [esi + 0x80], ebp
lea ecx, [esi + 0x8c]
push 0x270f
mov byte [esp + 0x30], 2
mov dword [esi + 0x84], ebp
mov dword [esi + 0x88], ebp
call fcn.004498df
push ebp
push ebp
push ebp
push 1
push 1
lea ecx, [esi + 0x98]
push 0x64
call fcn.004498df
lea ecx, [esi + 0xa8]
call fcn.00463f60
push 0x4aadf8
lea ecx, [esi + 0x248]
mov byte [esp + 0x1c], 3
mov dword [esi + 0x240], ebp
call fcn.0047169a
mov dword [esi], 0x496478
mov byte [esp + 0x18], 4
mov dword [esi + 0x88], 2
call fcn.00463400
mov dword [esi + 0xa4], eax
mov eax, dword [0x4adc70]
cmp eax, ebp
je 0x46358d
cmp dword [0x4adc58], ebp
jne 0x463592
call fcn.004632a0
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x468ff0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.0044a4c0
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x4690bb
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x4690bb
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x46906e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x469079
or bh, 8
and edi, 0x8000000
je 0x469094
mov eax, dword [0x4af0dc]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x4690bb
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x469490
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.kernel32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x4694bb
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.kernel32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.kernel32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x4694df
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.kernel32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x4694fa
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.kernel32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20

Function at 0x46df2f
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x46df67
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00471a5f
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00471a37
jmp 0x46df73
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4
Function at 0x46f8dd
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x46f91f
call fcn.0048050d
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.kernel32.dll_FindResourceA]
cmp eax, edi
je 0x46f91f
push eax
push esi
call dword [sym.imp.kernel32.dll_LoadResource]
cmp eax, edi
jne 0x46f916
xor eax, eax
jmp 0x46f927
push eax
call dword [sym.imp.kernel32.dll_SetHandleCount_1]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0046f92d
pop edi
pop esi
pop ebx
ret 4

Function at 0x4818a1
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0x481951
mov ecx, 0x4ad6c8
call fcn.00481482
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov esi, eax
cmp word [esi + 8], 0
jne 0x48192f
push 0x490810
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
test eax, eax
mov dword [ebp + 0xc], eax
je 0x48190d
mov ecx, dword [ebp + 0x10]
push 5
neg ecx
sbb ecx, ecx
and ecx, 0xe
add ecx, 0x3ee
movzx ecx, cx
push ecx
push eax
call dword [sym.imp.kernel32.dll_FindResourceA]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.kernel32.dll_LoadResource]
test eax, eax
je 0x48190d
push ebx
push edi
push eax
call fcn.0047292f
add esp, 0xc
mov eax, dword [edi]
mov eax, dword [eax - 8]
inc eax
push eax
push 0x40
call dword [sym.imp.kernel32.dll_GlobalAlloc]
mov dword [esi + 4], eax
push dword [edi]
push eax
call dword [sym.imp.kernel32.dll_lstrcpyA]
mov ax, word [ebx]
mov word [esi + 8], ax
push dword [esi + 4]
mov ecx, edi
call fcn.004717b5
mov si, word [esi + 8]
xor eax, eax
mov word [ebx], si
cmp si, 0xffff
pop edi
pop esi
setne al
pop ebx
pop ebp
ret 0xc
Function at 0x401234
Capabilities:
Encode data using xor

Disassembly:
push 0x476104
call sub.MSVBVM60.DLL_ThunRTMain
add byte [eax], al
add byte [eax], al
add byte [eax], al
xor byte [eax], al
add byte [eax], al
cmp byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
mul esp
push edi
add byte [eax], al
add byte [eax], al
add byte [eax], dh
add byte [eax], al
add byte [eax], bh
add byte [eax], al
add byte [eax], al
add byte [eax], al
add bh, dh
in al, 0x57
or ch, byte [ebp - 0x5db5da0e]
xor al, 0x89
cmp ebp, edi
std
adc al, 0x9d
add byte [eax], al
add byte [eax], al
add byte [eax], al
add dword [eax], eax
add byte [eax], al
push ss
push cs
push ss
push ss
or eax, 0x72754216
popal
imul eax, dword [eax], 0x16
push cs
add byte [eax], al
add byte [eax], al
dec esp
xor dword [eax], eax
or dword [edi + esi], edi
js 0x40126a
or ebx, eax
push ebx
inc edx
mov dl, 0xa0
mov edi, 0x264d28a
mov dword [edx + 0x3ace1134], esi
sub ebp, ebx
dec ebp
mov bl, byte [eax + 0x3b]
jecxz 0x40123f
xor al, 0x82
and edi, dword [edx]
dec edi
lodsd eax, dword [esi]
xor ebx, dword [ecx - 0x48ee309a]
or al, 0
stosb byte es:[edi], al
add byte [eax - 0x2d], ah
xchg ebx, eax
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
xlatb
dec ebp
pop es
add byte [edi + 0x3d], dh
pop es
add byte [eax], al
add eax, 0x726f4600
insd dword es:[edi], dx
xor dword [eax], eax
or eax, 0x4b000d01
outsb dx, byte [esi]
imul esp, dword [edi + 0x68], 0x6e4f2074
insb byte es:[edi], dx
imul ebp, dword [esi + 0x65], 0x70300
add byte [eax - 0x7f0000fc], al
add byte [ecx], bl
add dword [eax], eax
inc edx
add byte [esi], bl
invalid
Function at 0x402ab4
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.00404150
test esi, esi
jne 0x402aea
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.00404240
jmp 0x402b08
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004029c8
mov edi, eax
test esi, esi
je 0x402b08
cmp dword [ebx], 0
je 0x402b08
dec esi
jmp 0x402af1
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x4031ec
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x4aa024]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403284
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403264
xor eax, eax
push ebp
push 0x40325d
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 0x4032a0
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 0x403264
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x4aa024]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x4aa024], ax
mov esp, ebp
pop ebp
ret

Function at 0x403f50
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4de04c], 0
je 0x403fb1
cmp word [0x4de220], 0xd7b2
jne 0x403f79
cmp dword [0x4de228], 0
jbe 0x403f79
mov eax, 0x4de21c
call dword [0x4de238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x4aa070
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 0x403fd8
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4aa034], 0
jne 0x403fcd
push 0
push 0x4aa068
push 0x4aa070
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x404104
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.0040278c
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x4de04d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x4040cc
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x405798
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 0x4059c8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x40581b
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4059c8
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x40581b
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4059e4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4058a4
xor eax, eax
push ebp
push 0x40589d
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.004055e0
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 0x405882
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x405a04
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x405882
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 0x4058a4
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_lstrcpyn
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 0x4059be
cmp byte [ebp - 0xd], 0
jne 0x4058eb
cmp byte [ebp - 0x12], 0
je 0x4059be
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlen
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x405904
dec ebx
cmp byte [ebx], 0x2e
je 0x405913
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x405903
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x4059be
inc ebx
cmp byte [ebp - 0x12], 0
je 0x405950
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_lstrcpyn
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x4059be
cmp byte [ebp - 0xd], 0
je 0x4059be
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_lstrcpyn
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x4059be
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_lstrcpyn
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 0x4060ac
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x406112
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.004043c0
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402da4
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x4060fc
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406119
lea eax, [ebp - 0x10]
call fcn.00404150
ret

Function at 0x40b898
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 0x40b8d1
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404240
jmp 0x40b8da
mov eax, ebx
mov edx, esi
call fcn.004041a4
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40b8e4
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 0x40b905
mov al, byte [esp]
jmp 0x40b907
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40c8f8
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40c9ce
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.004041e8
lea eax, [ebp - 8]
call fcn.00404660
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404610
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40c9b8
mov eax, ebx
call fcn.0040278c
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40c9b1
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 - 8]
call fcn.00404610
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40c99b
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40c9e0
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40c99b
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c9b8
mov eax, dword [ebp - 0x10]
call fcn.004027ac
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c9d5
lea eax, [ebp - 8]
call fcn.00404150
ret
Function at 0x40cf4c
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 0x40cfb0
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.004043c0
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00408918
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40cfb7
lea eax, [ebp - 0xc]
call fcn.00404150
ret

Function at 0x41edd8
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.0041ec30
dec esi
jne 0x41edfa
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret

Function at 0x41ff3c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x4de88c
cmp dword [edi], 0
jne 0x41ffb8
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x4de888]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x4aa480
mov ecx, 2
call fcn.00402988
mov edx, 0x41ff14
lea eax, [esi + 5]
call fcn.0041ff34
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041ff34
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 0x41ff8d
mov dword [0x4de888], 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 0x421604
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 0x42160a
ret

Function at 0x423bcc
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 0x423c1d
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x423c04
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x423bf4
jmp 0x423c1d
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 0x423c05
pop ebx
mov esp, ebp
pop ebp
ret