joyce8/EMBER2024-capa huggingface dataset:
Function at 0x492000
Capabilities:
Get disk information
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
mov eax, dword [0x5116ec]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x23c], ecx
cmp dword [ebp + 0xc], 0
jne 0x492026
xor al, al
jmp 0x49223c
lea ecx, [ebp - 0x218]
call fcn.002f50e0
mov dword [ebp - 0x1fc], 0
push 4
lea eax, [ebp - 0x224]
push eax
mov ecx, dword [ebp + 8]
call fcn.00489310
movzx ecx, al
test ecx, ecx
je 0x4920a1
lea edx, [ebp - 0x224]
push edx
lea ecx, [ebp - 0x20]
call fcn.002f6550
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x3c]
push ecx
call fcn.0045d370
add esp, 8
push eax
lea ecx, [ebp - 0x218]
call fcn.002ffd10
lea ecx, [ebp - 0x3c]
call fcn.002f4e90
lea ecx, [ebp - 0x20]
call fcn.003b0ca0
lea ecx, [ebp - 0x218]
call fcn.002f4c40
mov dword [ebp - 0x1fc], eax
jmp 0x492108
push 0x4bec5c
push 2
push 0
lea edx, [ebp - 0x74]
push edx
lea eax, [ebp - 0x58]
push eax
mov ecx, dword [ebp + 8]
call fcn.00488e60
mov ecx, eax
call fcn.002fb350
push eax
call fcn.002fe3d0
add esp, 8
mov byte [ebp - 0x231], al
lea ecx, [ebp - 0x74]
call fcn.003b0ca0
lea ecx, [ebp - 0x58]
call fcn.003b0ca0
movzx ecx, byte [ebp - 0x231]
test ecx, ecx
je 0x492108
mov byte [ebp - 0x232], 0
lea ecx, [ebp - 0x218]
call fcn.002f4e90
mov al, byte [ebp - 0x232]
jmp 0x49223c
mov edx, dword [ebp - 0x1fc]
push edx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov dword [ebp - 0x228], eax
mov eax, dword [ebp - 0x228]
and eax, 4
jne 0x492131
mov ecx, dword [ebp - 0x228]
and ecx, 0
je 0x49219b
xor edx, edx
je 0x49217e
lea eax, [ebp - 0x224]
push eax
push str._remove_or_unknown_drive
push 0
push 0
push 0
push 1
push 0
push 0
lea ecx, [ebp - 0x138]
call fcn.00464170
mov ecx, eax
call fcn.0045f550
push eax
call fcn.002f16a0
add esp, 8
push eax
call fcn.002f16a0
add esp, 8
lea ecx, [ebp - 0x138]
call fcn.00464580
jmp 0x492131
mov byte [ebp - 0x233], 0
lea ecx, [ebp - 0x218]
call fcn.002f4e90
mov al, byte [ebp - 0x233]
jmp 0x49223c
lea ecx, [ebp - 0x220]
push ecx
lea edx, [ebp - 0x230]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x1fc]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x4921da
mov byte [ebp - 0x234], 1
lea ecx, [ebp - 0x218]
call fcn.002f4e90
mov al, byte [ebp - 0x234]
jmp 0x49223c
xor edx, edx
je 0x492217
push str._GetDiskFreeSpaceEx_returns_error
push 0
push 0
push 0
push 1
push 0
push 0
lea ecx, [ebp - 0x1f8]
call fcn.00464170
mov ecx, eax
call fcn.0045f550
push eax
call fcn.002f16a0
add esp, 8
lea ecx, [ebp - 0x1f8]
call fcn.00464580
jmp 0x4921da
mov byte [ebp - 0x235], 0
lea ecx, [ebp - 0x218]
call fcn.002f4e90
mov al, byte [ebp - 0x235]
jmp 0x49223c
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00438a41
mov esp, ebp
pop ebp
ret 8
Function at 0x492250
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x154
mov eax, dword [0x5116ec]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x154], ecx
lea ecx, [ebp - 0x140]
call fcn.004889b0
mov dword [ebp - 0x148], 0
push 0
lea ecx, [ebp - 0x144]
call fcn.0047b8e0
lea ecx, [ebp - 0x144]
call fcn.0045da50
push eax
mov eax, dword [ebp - 0x148]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov dword [ebp - 0x14c], eax
cmp dword [ebp - 0x14c], 0
jne 0x492328
xor ecx, ecx
je 0x4922fb
push str.::GetCurrentDirectory___failed
push 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 2
push 4
push 0x1c0
push str.P:p_agentshpam2.eem_recipes201152726_base_branchesinputtools_win_release_branchgoogleclient_third_partylibjingle_files_talk_basewin32filesystem.cc
lea ecx, [ebp - 0xc8]
call fcn.00464170
mov ecx, eax
call fcn.0045f550
push eax
call fcn.002f16a0
add esp, 8
lea ecx, [ebp - 0xc8]
call fcn.00464580
jmp 0x4922b3
lea edx, [ebp - 0x140]
push edx
mov ecx, dword [ebp + 8]
call fcn.00492400
lea ecx, [ebp - 0x144]
call fcn.004924d0
lea ecx, [ebp - 0x140]
call fcn.0047f370
mov eax, dword [ebp + 8]
jmp 0x4923e2
mov eax, dword [ebp - 0x14c]
cmp eax, dword [ebp - 0x148]
jg 0x492338
jmp 0x492388
xor ecx, ecx
mov eax, dword [ebp - 0x14c]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00437a7c
add esp, 4
mov dword [ebp - 0x150], eax
mov eax, dword [ebp - 0x150]
push eax
lea ecx, [ebp - 0x144]
call fcn.0045da10
mov ecx, dword [ebp - 0x14c]
mov dword [ebp - 0x148], ecx
mov edx, 1
test edx, edx
jne 0x49228b
lea ecx, [ebp - 0x144]
call fcn.0045da50
push eax
lea eax, [ebp - 0xe4]
push eax
call fcn.0048a380
add esp, 8
push eax
lea ecx, [ebp - 0x140]
call fcn.00488f80
lea ecx, [ebp - 0xe4]
call fcn.003b0ca0
lea ecx, [ebp - 0x140]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00492400
lea ecx, [ebp - 0x144]
call fcn.004924d0
lea ecx, [ebp - 0x140]
call fcn.0047f370
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00438a41
mov esp, ebp
pop ebp
ret 4

Function at 0x493a45
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x493a6c
call fcn.0043aeef
mov dword [eax], esi
call fcn.0043aedc
push 0x16
pop esi
mov dword [eax], esi
call fcn.00438cab
mov eax, esi
jmp 0x493ac1
test dword [ebp + 0xc], 0xfffffff9
jne 0x493a52
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x493a99
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0043af02
pop ecx
call fcn.0043aedc
mov eax, dword [eax]
jmp 0x493ac1
test al, 0x10
jne 0x493abf
test al, 1
je 0x493abf
test byte [ebp + 0xc], 2
je 0x493abf
call fcn.0043aeef
mov dword [eax], 5
call fcn.0043aedc
mov dword [eax], 0xd
jmp 0x493a90
xor eax, eax
pop esi
pop ebp
ret
Function at 0x1002885
Capabilities:
Terminate process

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push esi
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
xor esi, esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
call fcn.01002136
cmp eax, esi
mov dword [ebp + 8], eax
jl 0x10028cc
cmp dword [ebp - 4], esi
jne 0x10028cc
push 0x2711
call fcn.01003655
pop ecx
push 0xffffffffffffffff
call dword [sym.imp.msvcrt.dll_exit]
cmp byte [ebp + 0x1c], 0
jne 0x10029a8
cmp eax, esi
jl 0x10029a8
push ebx
push edi
push esi
mov ebx, 0x80
push ebx
push 1
push esi
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, 0x40000000
push edi
push dword [ebp + 0xc]
call esi
mov dword [ebp + 0x1c], eax
cmp eax, 0xffffffff
jne 0x1002941
mov dword [ebp + 8], 0x80004005
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x50
jne 0x10029cc
push dword [ebp + 0xc]
push 0x2712
call fcn.01001edc
test al, al
je 0x10029a4
xor eax, eax
push eax
push ebx
push 2
push eax
push eax
push edi
push dword [ebp + 0xc]
call esi
mov dword [ebp + 0x1c], eax
cmp eax, 0xffffffff
je 0x10029a4
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0x1c]
call fcn.010025b7
mov dword [ebp + 8], eax
test eax, eax
jl 0x1002995
lea eax, [ebp - 4]
push eax
push dword [ebp - 8]
call fcn.010024a4
mov dword [ebp + 8], eax
test eax, eax
jl 0x1002995
mov eax, 0x186a0
cmp eax, dword [ebp - 4]
sbb eax, eax
neg eax
add eax, 0x272a
push eax
call fcn.01003655
pop ecx
push dword [ebp + 0x1c]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.010044a7
mov dword [ebp + 8], eax
cmp dword [ebp + 0x1c], 0xffffffff
je 0x10029a4
push dword [ebp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
xor esi, esi
pop ebx
cmp dword [ebp - 0xc], esi
je 0x10029b6
push dword [ebp - 0xc]
call sub.msvcrt.dll_void___cdecl_operator_delete___void__
pop ecx
cmp dword [ebp - 8], esi
pop esi
je 0x10029c5
push dword [ebp - 8]
call sub.msvcrt.dll_void___cdecl_operator_delete___void__
pop ecx
mov eax, dword [ebp + 8]
leave
ret 0x18
push 0x2713
jmp 0x10028be
Function at 0x1003033
Capabilities:
Terminate process

Disassembly:
push 0x10
push 0x1007be8
call fcn.010031f4
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x1c], ebx
mov edi, 0x10094f0
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x1002e48
cmp eax, esi
jne 0x1002e3b
xor esi, esi
inc esi
mov dword [ebp - 0x1c], esi
jmp 0x1002e4b
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1002e22
xor esi, esi
inc esi
mov eax, dword [0x10094ec]
cmp eax, esi
jne 0x1002e5e
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x1002e99
mov eax, dword [0x10094ec]
test eax, eax
jne 0x1002e93
mov dword [0x10094ec], esi
push 0x100113c
push 0x1001130
call fcn.01002d9f
pop ecx
pop ecx
test eax, eax
je 0x1002e99
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x1002f63
mov dword [0x100919c], esi
mov eax, dword [0x10094ec]
cmp eax, esi
jne 0x1002ebd
push 0x100112c
push 0x1001124
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x10094ec], 2
cmp dword [ebp - 0x1c], ebx
jne 0x1002eca
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x10094f4], ebx
je 0x1002eeb
push 0x10094f4
call fcn.01003169
pop ecx
test eax, eax
je 0x1002eeb
push ebx
push 2
push ebx
call dword [0x10094f4]
push dword [0x1009184]
push dword [0x1009188]
push dword [0x1009180]
call fcn.010029db
add esp, 0xc
mov dword [0x1009198], eax
cmp dword [0x100918c], ebx
jne 0x1002f49
push eax
call dword [sym.imp.msvcrt.dll_exit]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x20], ecx
push eax
push ecx
call sub.msvcrt.dll__XcptFilter
pop ecx
pop ecx
ret
cmp dword [0x100919c], ebx
jne 0x1002f57
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x1009198]
call fcn.01003239
ret
call fcn.01003341
jmp 0x1002e00
Function at 0x100357e
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
lea edx, [eax + 2]
xor esi, esi
mov cx, word [eax]
inc eax
inc eax
cmp cx, si
jne 0x100359b
sub eax, edx
sar eax, 1
mov edi, eax
mov dword [ebp - 0xc], edi
cmp edi, 0x186a0
jbe 0x10035be
push 8
pop eax
jmp 0x100364a
cmp edi, esi
jbe 0x1003648
push dword [ebp - 4]
call fcn.01003545
test al, al
je 0x10035f5
push esi
lea eax, [ebp - 0x10]
push eax
push edi
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_WriteConsoleW]
test eax, eax
jne 0x1003648
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 6
je 0x1003648
jmp 0x100364a
push ebx
push esi
push esi
push esi
push esi
push edi
push dword [ebp + 8]
mov edi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push esi
push 1
call edi
push eax
mov dword [ebp - 8], eax
call dword [sym.imp.msvcrt.dll_malloc]
mov ebx, eax
pop ecx
cmp ebx, esi
je 0x1003647
push esi
push esi
push dword [ebp - 8]
push ebx
push dword [ebp - 0xc]
push dword [ebp + 8]
push esi
push 1
call edi
cmp eax, esi
je 0x100363f
push esi
lea ecx, [ebp - 0x10]
push ecx
push eax
push ebx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
call dword [sym.imp.msvcrt.dll_free]
pop ecx
pop ebx
xor eax, eax
pop edi
pop esi
leave
ret 4
Function at 0x10070c8
Capabilities:
Terminate process

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0
je 0x1007116
push esi
mov esi, dword [ebp + 8]
add esi, 0x10
dec dword [ebp + 0xc]
test byte [esi - 0xc], 0x10
je 0x100710c
push 0x10070b2
push 4
push dword [ebp + 0x10]
push dword [ebp + 0x14]
push esi
call dword [sym.imp.msvcrt.dll_bsearch]
add esp, 0x14
test eax, eax
je 0x100711a
sub eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x18]
sar eax, 2
mov eax, dword [ecx + eax*4]
mov dword [esi], eax
add esi, 0x58
cmp dword [ebp + 0xc], 0
jne 0x10070da
pop esi
pop ebp
ret 0x14
push 1
call dword [sym.imp.msvcrt.dll_exit]
int3

Function at 0x433003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
mov eax, section..text
nop
mov ebx, 0x40de38
nop
nop
mov ecx, 0x35f40038
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43304e
nop
nop
nop
xor dword [eax], ecx
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x433024
nop
nop
nop
nop
nop
mov eax, section..data
mov ebx, 0x4304d8
nop
mov ecx, 0x2e804fa
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x433084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x4036d8
Capabilities:
Query or enumerate registry value

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

Function at 0x40443c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x48604c], 0
je 0x40449d
cmp word [0x486220], 0xd7b2
jne 0x404465
cmp dword [0x486228], 0
jbe 0x404465
mov eax, 0x48621c
call dword [0x486238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x483070
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 0x4044c4
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x483030], 0
jne 0x4044b9
push 0
push 0x483068
push 0x483070
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x4045f0
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.0040272c
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x48604d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x4045b8
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x405cf4
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 0x405f24
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405d77
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405f24
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405d77
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405f40
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x405e00
xor eax, eax
push ebp
push 0x405df9
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00405b3c
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 0x405dde
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x405f60
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x405dde
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 0x405e00
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 0x405f1a
cmp byte [ebp - 0xd], 0
jne 0x405e47
cmp byte [ebp - 0x12], 0
je 0x405f1a
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x405e60
dec ebx
cmp byte [ebx], 0x2e
je 0x405e6f
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x405e5f
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x405f1a
inc ebx
cmp byte [ebp - 0x12], 0
je 0x405eac
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 0x405f1a
cmp byte [ebp - 0xd], 0
je 0x405f1a
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 0x405f1a
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 0x4065ec
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 0x406652
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.004048ac
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00403134
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x40663c
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406659
lea eax, [ebp - 0x10]
call fcn.0040463c
ret

Function at 0x40bd84
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 0x40bdbd
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.0040472c
jmp 0x40bdc6
mov eax, ebx
mov edx, esi
call fcn.00404690
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40c478
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40c2f0
mov eax, dword [0x4850e8]
cmp byte [eax], 0
je 0x40c4f4
mov eax, dword [0x484d78]
call fcn.00402d50
call fcn.00402894
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.004093d4
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 0x40c53c
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40c52a
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x484ce0]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x486668]
call fcn.00405b00
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 0x40cdd8
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 0x40ceae
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.004046d4
lea eax, [ebp - 8]
call fcn.00404b68
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404b18
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40ce98
mov eax, ebx
call fcn.0040272c
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40ce91
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.00404b18
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40ce7b
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40cec0
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40ce7b
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 0x40ce98
mov eax, dword [ebp - 0x10]
call fcn.0040274c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40ceb5
lea eax, [ebp - 8]
call fcn.0040463c
ret

Function at 0x40d434
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 0x40d498
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.004048ac
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00408e6c
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d49f
lea eax, [ebp - 0xc]
call fcn.0040463c
ret

Function at 0x41ede0
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.0041ec38
dec esi
jne 0x41ee02
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret
Function at 0x41ff44
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x48688c
cmp dword [edi], 0
jne 0x41ffc0
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x486888]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x483480
mov ecx, 2
call fcn.00402928
mov edx, 0x41ff1c
lea eax, [esi + 5]
call fcn.0041ff3c
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041ff3c
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 0x41ff95
mov dword [0x486888], 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 0x421554
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 0x42155a
ret

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