joyce8/EMBER2024-capa huggingface dataset:
Function at 0x476ef8
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4770a3
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x477084
mov dl, 1
mov eax, dword [0x4177a8]
call fcn.00403770
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.004045f0
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x477073
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.00464b50
test al, al
je 0x477066
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x4770b4
lea eax, [ebp - 0x254]
call fcn.00409dec
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x477066
xor eax, eax
push ebp
push 0x47705f
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x4770ec
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x477048
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404860
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x477048
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404860
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x477066
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x476f69
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.0041c2e4
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4770aa
lea eax, [ebp - 0x260]
call fcn.004045f0
ret

Function at 0x4779ec
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x4cfbf0]
cmp byte [eax + 0xa5], 0
jne 0x477a5d
cmp dword [0x4cfc08], 0
jne 0x477a1e
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x4779a8
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x4cfc08], eax
cmp dword [0x4cfc04], 0
jne 0x477a39
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x4cfc04], eax
cmp dword [0x4cfc0c], 0
jne 0x477a5d
push esp
push 0
push 0
push 0x47794c
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x4cfc0c], eax
pop edx
ret
Function at 0x4780f0
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x4cfbf0]
cmp dword [eax + 0x30], 0
je 0x47819a
cmp dword [ebx + 0x94], 0
jne 0x478194
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x478080
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x478194
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x47815a
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x478194
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.00419ad0
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x478169
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x478cf8
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x478d2d
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.004046e0
jmp 0x478d3a
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404644
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x479e74
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x479eb5
mov eax, esi
call fcn.004600d4
test al, al
je 0x479eb5
mov eax, dword [ebx + 0x84]
call fcn.0045fdd0
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x479eb5
push 0
mov eax, dword [ebx + 0x84]
call fcn.0045fdd0
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x48d0d0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
mov ecx, 8
push 0
push 0
dec ecx
jne 0x48d0d8
push ecx
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x48d2ca
push dword fs:[eax]
mov dword fs:[eax], esp
mov esi, dword [ebx + 8]
lea ecx, [ebp - 0xc]
mov edx, 0x48d2e0
mov eax, esi
call fcn.00486900
mov edx, dword [ebp - 0xc]
lea eax, [ebx + 0xc]
call fcn.00404644
lea ecx, [ebp - 0x10]
mov edx, 0x48d2f4
mov eax, esi
call fcn.00486900
mov edx, dword [ebp - 0x10]
lea eax, [ebx + 0x28]
call fcn.00404644
lea ecx, [ebp - 0x14]
mov edx, 0x48d30c
mov eax, esi
call fcn.00486900
mov edx, dword [ebp - 0x14]
lea eax, [ebx + 0x10]
call fcn.00404644
lea ecx, [ebp - 0x18]
mov edx, 0x48d328
mov eax, esi
call fcn.00486900
mov edx, dword [ebp - 0x18]
lea eax, [ebx + 0x14]
call fcn.00404644
lea ecx, [ebp - 0x1c]
mov edx, 0x48d344
mov eax, esi
call fcn.00486900
mov edx, dword [ebp - 0x1c]
lea eax, [ebx + 0x24]
call fcn.00404644
lea ecx, [ebp - 0x24]
mov edx, 0x48d35c
mov eax, esi
call fcn.00486900
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 0x20]
call fcn.00408b00
mov eax, dword [ebp - 0x20]
or edx, 0xffffffff
call fcn.004090cc
mov edi, eax
mov dword [ebx + 0x18], edi
test edi, edi
setge al
mov byte [ebx + 0x4c], al
lea ecx, [ebp - 0x28]
mov edx, 0x48d374
mov eax, esi
call fcn.00486900
mov eax, dword [ebp - 0x28]
call fcn.0047ff24
fstp qword [ebx + 0x30]
wait
lea ecx, [ebp - 0x2c]
mov edx, 0x48d384
mov eax, esi
call fcn.00486900
mov eax, dword [ebp - 0x2c]
call fcn.0047ff24
fstp qword [ebx + 0x40]
wait
lea ecx, [ebp - 0x30]
mov edx, 0x48d39c
mov eax, esi
call fcn.00486900
mov eax, dword [ebp - 0x30]
or edx, 0xffffffff
call fcn.004090cc
inc eax
je 0x48d26d
lea ecx, [ebp - 0x34]
mov edx, 0x48d39c
mov eax, esi
call fcn.00486900
mov eax, dword [ebp - 0x34]
call fcn.00409090
mov edi, eax
mov eax, edi
mov ecx, 0xe10
cdq
idiv ecx
mov dword [ebp - 8], eax
mov eax, edi
mov ecx, 0xe10
cdq
idiv ecx
mov ecx, edx
mov eax, ecx
push ecx
mov ecx, 0x3c
cdq
idiv ecx
pop ecx
mov dword [ebp - 4], eax
mov eax, ecx
mov ecx, 0x3c
cdq
idiv ecx
mov edi, edx
push 0
mov ecx, edi
mov dx, word [ebp - 4]
mov ax, word [ebp - 8]
call fcn.0040a798
fstp qword [ebp - 0x3c]
wait
call fcn.0040ab08
fadd qword [ebp - 0x3c]
fstp qword [ebx + 0x38]
wait
jmp 0x48d288
lea ecx, [ebp - 0x40]
mov edx, 0x48d39c
mov eax, esi
call fcn.00486900
mov eax, dword [ebp - 0x40]
call fcn.0047ff24
fstp qword [ebx + 0x38]
wait
lea ecx, [ebp - 0x44]
mov edx, 0x48d3ac
mov eax, esi
call fcn.00486900
mov edx, dword [ebp - 0x44]
lea eax, [ebx + 0x48]
call fcn.00404644
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48d2d1
lea eax, [ebp - 0x44]
mov edx, 2
call fcn.00404614
lea eax, [ebp - 0x34]
mov edx, 0xb
call fcn.00404614
ret
Function at 0x494024
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
xor edx, edx
push ebp
push 0x49407e
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [eax + 0x30]
call fcn.00494014
mov ebx, eax
lea edx, [ebp - 4]
mov eax, edi
call fcn.0047ea94
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0xc]
call fcn.0047e694
mov edx, dword [esi + 8]
mov eax, dword [ebx + 0x10]
mov ecx, dword [eax]
call dword [ecx + 8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x494085
lea eax, [ebp - 4]
call fcn.004045f0
ret

Function at 0x49804c
Capabilities:
Create thread
Inject thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 4], ecx
mov edi, edx
xor edx, edx
push ebp
push 0x4981c7
push dword fs:[edx]
mov dword fs:[edx], esp
xor ebx, ebx
lea edx, [ebp - 0x10]
push edx
push eax
call sub.user32.dll_GetWindowThreadProcessId
mov eax, dword [ebp - 0x10]
push eax
push 0
push 0x1f0fff
call sub.kernel32.dll_OpenProcess
mov esi, eax
test esi, esi
je 0x4981b1
xor eax, eax
push ebp
push 0x498176
push dword fs:[eax]
mov dword fs:[eax], esp
push 4
push 0x1000
push 0x1000
push 0
push esi
call sub.kernel32.dll_VirtualAllocEx
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4980d2
lea eax, [ebp - 0x14]
push eax
push 0x1000
push edi
mov eax, dword [ebp - 8]
push eax
push esi
call sub.kernel32.dll_WriteProcessMemory
push 4
push 0x1000
mov eax, dword [ebp + 8]
push eax
push 0
push esi
call sub.kernel32.dll_VirtualAllocEx
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x498104
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 0xc]
push eax
push esi
call sub.kernel32.dll_WriteProcessMemory
lea eax, [ebp - 0x14]
push eax
push 0
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push esi
call sub.kernel32.dll_CreateRemoteThread
mov ebx, eax
test ebx, ebx
je 0x498136
push 0xffffffffffffffff
push ebx
call sub.kernel32.dll_WaitForSingleObject
push ebx
call sub.kernel32.dll_ResumeThread
push ebx
call sub.kernel32.dll_CloseHandle
cmp dword [ebp - 8], 0
je 0x498150
push 0x8000
push 0
mov eax, dword [ebp - 8]
push eax
push esi
call sub.kernel32.dll_VirtualFreeEx
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0xc], 0
je 0x49816a
push 0x8000
push 0
mov eax, dword [ebp - 0xc]
push eax
push esi
call sub.kernel32.dll_VirtualFreeEx
mov dword [ebp - 0x1c], eax
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4981ab
push esi
call sub.kernel32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4981ce
lea eax, [ebp - 0x20]
call fcn.004045f0
ret
Function at 0x499780
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
mov esi, eax
call sub.kernel32.dll_GetTickCount_1
mov ebx, eax
push 1
call sub.kernel32.dll_Sleep_1
mov eax, dword [0x4cdeec]
mov eax, dword [eax]
call fcn.00478fa8
call sub.kernel32.dll_GetTickCount_1
sub eax, ebx
xor edx, edx
push edx
push eax
mov eax, esi
cdq
cmp edx, dword [esp + 4]
jne 0x4997bb
cmp eax, dword [esp]
pop edx
pop eax
jae 0x49978b
jmp 0x4997bf
pop edx
pop eax
jge 0x49978b
pop esi
pop ebx
ret
Function at 0x49f6f0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x21c], ecx
mov dword [ebp - 0x218], ecx
mov dword [ebp - 0x214], ecx
mov dword [ebp - 0x210], ecx
mov dword [ebp - 0x20c], ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x49f950
push dword fs:[eax]
mov dword fs:[eax], esp
cmp ebx, 1
jl 0x49f753
lea edx, [ebp - 0x20c]
mov eax, dword [ebp - 4]
call fcn.0049f1b8
mov eax, dword [ebp - 0x20c]
mov edx, ebx
call fcn.0040d328
cmp al, 1
jne 0x49f753
dec ebx
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 4]
call fcn.0049f4d0
test al, al
je 0x49f8df
cmp dword [ebp - 8], 0
jge 0x49f771
xor eax, eax
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
inc ebx
lea edx, [ebp - 0x210]
mov eax, dword [ebp - 4]
call fcn.0049f1b8
mov eax, dword [ebp - 0x210]
call fcn.004048cc
cmp ebx, eax
jge 0x49f7bb
lea edx, [ebp - 0x214]
mov eax, dword [ebp - 4]
call fcn.0049f1b8
mov eax, dword [ebp - 0x214]
mov al, byte [eax + ebx - 1]
mov edx, dword [0x4ce158]
and eax, 0xff
bt dword [edx], eax
jae 0x49f7bb
inc ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x228]
cmp eax, dword [ebp - 8]
jg 0x49f7cf
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
mov ecx, ebx
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.0049f6cc
cmp ebx, dword [ebp - 8]
je 0x49f8d1
lea eax, [ebp - 0x108]
push eax
call sub.user32.dll_GetKeyboardState
mov edx, pe_nt_image_headers32
lea eax, [ebp - 0x208]
mov byte [eax], 0
inc eax
dec edx
jne 0x49f7fb
mov byte [ebp - 0x1f8], 0x81
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.004039a8
and eax, 0x7f
movzx eax, word [eax*2 + 0x4cd99c]
mov byte [ebp + eax - 0x208], 0x81
lea eax, [ebp - 0x208]
push eax
call sub.user32.dll_SetKeyboardState
mov eax, dword [ebp - 4]
mov byte [eax + 0x23c], 1
xor eax, eax
push ebp
push 0x49f8be
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.004039a8
and eax, 0x7f
movzx eax, word [eax*2 + 0x4cd99c]
push eax
push pe_nt_image_headers32
mov eax, dword [ebp - 4]
call fcn.0045fdd0
push eax
call sub.user32.dll_SendMessageA
push 1
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.004039a8
and eax, 0x7f
movzx eax, word [eax*2 + 0x4cd99c]
push eax
push 0x101
mov eax, dword [ebp - 4]
call fcn.0045fdd0
push eax
call sub.user32.dll_SendMessageA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49f8c5
mov eax, dword [ebp - 4]
mov byte [eax + 0x23c], 0
ret
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov dword [eax + 0x230], edx
jmp 0x49f932
cmp dword [ebp - 8], 0
jge 0x49f8ea
xor eax, eax
mov dword [ebp - 8], eax
lea edx, [ebp - 0x218]
mov eax, dword [ebp - 4]
call fcn.0049f1b8
mov eax, dword [ebp - 0x218]
call fcn.004048cc
cmp eax, dword [ebp - 8]
jg 0x49f924
lea edx, [ebp - 0x21c]
mov eax, dword [ebp - 4]
call fcn.0049f1b8
mov eax, dword [ebp - 0x21c]
call fcn.004048cc
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0049f6cc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49f957
lea eax, [ebp - 0x21c]
mov edx, 5
call fcn.00404614
ret
Function at 0x40331c
Capabilities:
Query or enumerate registry value

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

Function at 0x4040b0
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x476048], 0
je 0x404111
cmp word [0x47621c], 0xd7b2
jne 0x4040d9
cmp dword [0x476224], 0
jbe 0x4040d9
mov eax, 0x476218
call dword [0x476234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x47406c
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 0x404138
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x474030], 0
jne 0x40412d
push 0
push 0x474064
push 0x47406c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x405e88
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 0x405eee
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.004044a4
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402ee0
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x405ed8
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405ef5
lea eax, [ebp - 0x10]
call fcn.00404234
ret

Function at 0x40b1cc
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 0x40b205
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404324
jmp 0x40b20e
mov eax, ebx
mov edx, esi
call fcn.00404288
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40b8d0
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40b738
mov eax, dword [0x475ac4]
cmp byte [eax], 0
je 0x40b94c
mov eax, dword [0x4758c0]
call fcn.00402d4c
call fcn.00402bcc
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.004089bc
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
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 0x40b994
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40b982
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x47586c]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x476664]
call fcn.004052f4
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 0x40c1f0
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 0x40c2c6
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.004042cc
lea eax, [ebp - 8]
call fcn.00404744
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.004046f4
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40c2b0
mov eax, ebx
call fcn.00402a40
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40c2a9
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.004046f4
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40c293
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40c2d8
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40c293
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 0x40c2b0
mov eax, dword [ebp - 0x10]
call fcn.00402a70
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c2cd
lea eax, [ebp - 8]
call fcn.00404234
ret

Function at 0x40c82c
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 0x40c890
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.004044a4
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.004084f0
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c897
lea eax, [ebp - 0xc]
call fcn.00404234
ret

Function at 0x41aab8
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x476884
cmp dword [edi], 0
jne 0x41ab34
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x476880]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x4743ec
mov ecx, 2
call fcn.00402c60
mov edx, 0x41aa90
lea eax, [esi + 5]
call fcn.0041aab0
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041aab0
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 0x41ab09
mov dword [0x476880], 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 0x41c0d8
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 0x41c0de
ret
Function at 0x41e6d0
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 0x41e721
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x41e708
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x41e6f8
jmp 0x41e721
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 0x41e709
pop ebx
mov esp, ebp
pop ebp
ret