joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4125a0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x441ba4
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x459070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [edi], vtable.IEClientSite.1.0
mov dword [edi + 4], vtable.IEClientSite.4.0
mov dword [edi + 8], vtable.IEClientSite.2.0
mov dword [edi + 0xc], vtable.IEClientSite.8.0
mov dword [edi + 0x10], vtable.IEClientSite.10.0
mov dword [edi + 0x14], vtable.IEClientSite.6.0
mov dword [edi + 0x18], vtable.IEClientSite.5.0
mov dword [edi + 0x1c], vtable.IEClientSite.7.0
mov dword [edi + 0x20], vtable.IEClientSite.0
mov dword [edi + 0x24], vtable.IEClientSite.9.0
mov dword [edi + 0x28], vtable.IEClientSite.3.0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
mov dword [edi + 0x38], 0
push 0x10
mov dword [ebp - 4], 0
call fcn.00422aca
mov ecx, eax
add esp, 4
xor eax, eax
mov dword [ebp - 0x14], ecx
push dword [ebp + 0xc]
mov dword [ecx + 0xc], eax
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov al, byte [ebp + 8]
mov dword [ecx], vtable.BtIESec::BtAppSecurityManager.0
mov byte [ecx + 0xc], al
mov dword [edi + 0x3c], ecx
lea ecx, [edi + 0x48]
mov byte [edi + 0x40], 0
mov dword [edi + 0x44], 0
call fcn.00419290
mov byte [ebp - 4], 1
lea ecx, [edi + 0x58]
mov byte [edi + 0x54], 1
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
cmp dword [ecx + 0x14], 0x10
jb 0x41269d
mov eax, dword [ecx]
jmp 0x41269f
mov eax, ecx
push 0xffffffffffffffff
push 0
push dword [ebp + 0x10]
mov byte [eax], 0
call fcn.00406b70
lea eax, [edi + 0x70]
mov dword [eax + 0x14], 0xf
mov dword [eax + 0x10], 0
cmp dword [eax + 0x14], 0x10
jb 0x4126c7
mov eax, dword [eax]
mov byte [eax], 0
lea eax, [edi + 0x88]
mov dword [eax + 0x14], 7
mov dword [eax + 0x10], 0
cmp dword [eax + 0x14], 8
jb 0x4126e6
mov eax, dword [eax]
xor ecx, ecx
mov word [eax], cx
lea eax, [edi + 0xa4]
mov word [edi + 0xa0], cx
mov dword [eax + 0x14], 7
mov dword [eax + 0x10], ecx
cmp dword [eax + 0x14], 8
jb 0x41270a
mov eax, dword [eax]
xor ecx, ecx
mov word [eax], cx
mov dword [edi + 0xbc], ecx
lea esi, [edi + 0xc0]
mov byte [ebp - 4], 6
mov dword [ebp + 8], esi
mov dword [esi], ecx
mov dword [esi + 4], ecx
call fcn.0040fc70
mov dword [esi], eax
lea esi, [edi + 0xc8]
mov byte [ebp - 4], 7
mov dword [ebp + 8], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.0040fc70
mov dword [esi], eax
mov eax, dword [ebp + 0x18]
mov dword [edi + 0xd8], eax
mov eax, edi
mov dword [edi + 0xd0], 0x3e8
mov word [edi + 0xd4], 0x100
mov byte [edi + 0xd6], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x14
Function at 0x417080
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x442724
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x459070]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [ebp + 8]
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x8000
test cx, ax
je 0x4170c7
cmp dword [esi + 8], 0x4f
je 0x4170df
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x8000
test cx, ax
je 0x4170e6
cmp dword [esi + 8], 0x4e
jne 0x4170e6
xor eax, eax
jmp 0x4171ea
cmp dword [esi + 4], 0x100
jne case.0x417109.113
mov eax, dword [esi + 8]
add eax, 0xffffff90
cmp eax, 0xb
ja case.0x417109.113
movzx eax, byte [eax + 0x417214]
jmp dword [eax*4 + 0x417208]
mov eax, dword [edi + 0x5c]
mov al, byte [eax + 0xa1]
test al, al
jne case.0x417109.112
mov dword [ebp - 4], 0
lea edx, [ebp - 0x18]
mov ecx, dword [edi + 0x60]
push edx
mov dword [ebp - 0x18], 0
push 0x444430
mov eax, dword [ecx]
push ecx
call dword [eax]
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x30]
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x417159
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, 1
jmp 0x4171ea
mov edx, esi
lea ecx, [ebp - 0x34]
call fcn.00412430
push eax
push 0xa
mov ecx, edi
mov dword [ebp - 4], 2
call fcn.00417490
lea ecx, [ebp - 0x34]
call fcn.00401870
mov eax, 1
jmp 0x4171ea
mov ecx, dword [edi + 0x60]
test ecx, ecx
je 0x4170df
mov dword [ebp - 4], 3
lea edx, [ebp - 0x1c]
push edx
mov dword [ebp - 0x1c], 0
mov eax, dword [ecx]
push 0x4443b0
push ecx
call dword [eax]
test eax, eax
js 0x4171d2
mov eax, dword [ebp - 0x1c]
push esi
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
test eax, eax
js 0x4171d2
cmp eax, 1
je 0x4171d2
mov esi, 1
jmp 0x4171d4
xor esi, esi
mov dword [ebp - 4], 6
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x4171e8
mov edx, dword [ecx]
push ecx
call dword [edx + 8]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00422ab9
mov esp, ebp
pop ebp
ret 4
Function at 0x417cf0
Capabilities:
Create thread
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x459070]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 0
mov dword [ebp - 0x3c], edx
mov esi, ecx
mov dword [ebp - 0x38], eax
call dword [sym.imp.ole32.dll_OleInitialize]
push 0x7f00
push 0
mov dword [ebp - 0x34], 0x30
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0x417c50
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x14], 0
call dword [sym.imp.USER32.dll_LoadCursorA]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x34]
push eax
mov dword [ebp - 0xc], str.LIEFrameControl
mov dword [ebp - 0x10], 0
call dword [sym.imp.USER32.dll_RegisterClassExW]
push 0
push 0
push 0
push 0
push 0x64
push 0x64
push 0
push 0
push 0
push str.IE_Message_Window
push str.STATIC
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp ebx, 0x45cc5c
je 0x417dbf
push 0xffffffffffffffff
push 0
push ebx
mov ecx, 0x45cc5c
call fcn.004067d0
push 0
push 0
push 0
push 0x417c10
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push dword [ebp - 0x38]
mov ecx, dword [ebp - 0x3c]
mov edx, edi
mov esi, eax
call fcn.00417220
add esp, 4
push edi
call dword [sym.imp.USER32.dll_DestroyWindow]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call dword [sym.imp.ole32.dll_OleUninitialize]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00422ab9
mov esp, ebp
pop ebp
ret
Function at 0x41c740
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
mov eax, 1
mov dword [0x45cc7c], edx
mov ecx, edx
shr ecx, 0x1e
xor ecx, edx
imul edx, ecx, 0x6c078965
add edx, eax
mov dword [eax*4 + 0x45cc7c], edx
inc eax
cmp eax, 0x270
jl 0x41c751
mov dword [0x45cc78], 0x270
pop ebp
ret 8

Function at 0x41feb0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x459070]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x40
lea eax, [ebp - 0x44]
mov dword [ebp - 0x4c], 0
mov esi, ecx
push 0
push eax
mov dword [ebp - 0x48], esi
call fcn.00426010
add esp, 0xc
lea eax, [ebp - 0x44]
push 0x1f
push eax
push 0x59
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], ax
cmp word [ebp - 0x44], ax
jne 0x41ff0d
xor ecx, ecx
jmp 0x41ff22
lea ecx, [ebp - 0x44]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41ff13
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x44]
mov ecx, esi
push eax
call fcn.004066d0
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00422ab9
mov esp, ebp
pop ebp
ret
Function at 0x420110
Capabilities:
Check if file exists
Create pipe
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4432ec
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x459070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x14], ebx
lea esi, [ebx + 4]
mov dword [ebx], vtable.NamedPipeMessenger.0
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
cmp dword [esi + 0x14], 8
jb 0x42015e
mov eax, dword [esi]
jmp 0x420160
mov eax, esi
xor ecx, ecx
push 0xffffffffffffffff
push ecx
push dword [ebp + 8]
mov word [eax], cx
mov ecx, esi
call fcn.004067d0
lea edi, [ebx + 0x1c]
mov dword [ebp - 4], 0
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], 0
cmp dword [edi + 0x14], 8
jb 0x420194
mov eax, dword [edi]
jmp 0x420196
mov eax, edi
xor ecx, ecx
mov word [eax], cx
mov al, byte [ebp + 0xc]
mov edx, 0x4512a8
mov byte [ebp - 4], 1
mov byte [ebx + 0x34], al
mov eax, dword [ebp + 0x10]
mov dword [ebx + 0x38], eax
mov eax, dword [ebp + 0x14]
mov byte [ebx + 0x74], cl
lea ecx, [ebp - 0x2c]
push esi
mov dword [ebx + 0x3c], eax
call fcn.0041e5a0
add esp, 4
mov esi, eax
cmp edi, esi
je 0x420205
mov eax, dword [edi + 0x14]
cmp eax, 8
jb 0x4201de
inc eax
mov ecx, edi
push eax
push dword [edi]
call fcn.00407100
mov dword [edi + 0x14], 7
cmp dword [edi + 0x14], 8
mov dword [edi + 0x10], 0
jb 0x4201f6
mov eax, dword [edi]
jmp 0x4201f8
mov eax, edi
xor ecx, ecx
mov word [eax], cx
mov ecx, edi
push esi
call fcn.00406a00
mov eax, dword [ebp - 0x18]
cmp eax, 8
jb 0x42021a
inc eax
lea ecx, [ebp - 0x2c]
push eax
push dword [ebp - 0x2c]
call fcn.00407100
mov esi, dword [sym.imp.KERNEL32.dll_CreateEventW]
push 0
push 0
push 1
push 0
call esi
push 0
push 0
push 0
push 0
mov dword [ebx + 0x48], eax
call esi
push 0
push 0
push 0
push 0
mov dword [ebx + 0x5c], eax
call esi
cmp byte [ebx + 0x34], 0
mov dword [ebx + 0x70], eax
je 0x42027c
cmp dword [edi + 0x14], 8
jb 0x420255
mov edi, dword [edi]
push dword [ebp + 0x18]
push 0
push 0x800
push 0x800
push 0xff
push 6
push 0x40080003
push edi
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov dword [ebx + 0x44], eax
jmp 0x4202c3
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
xor eax, eax
cmp eax, 2
jne 0x420290
push 0x3e8
call esi
cmp dword [edi + 0x14], 8
jb 0x42029a
mov eax, dword [edi]
jmp 0x42029c
mov eax, edi
push 0
push 0x40000080
push 3
push 0
push 0
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebx + 0x44], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x420289
push 0
push 0
push ebx
push 0x4200f0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebx + 0x40], eax
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
Function at 0x4203e0
Capabilities:
Connect pipe
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x443318
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x459070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
cmp byte [edi + 0x34], 0
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [edi + 0x74], 1
je 0x420459
lea eax, [edi + 0x4c]
mov dword [edi + 0x54], 0
push eax
push dword [edi + 0x44]
mov dword [edi + 0x58], 0
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
mov esi, eax
call ebx
test esi, esi
jne 0x420459
cmp eax, 0x217
je 0x420459
cmp eax, 0x3e5
jne 0x420459
push 0xffffffffffffffff
push dword [edi + 0x5c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [edi + 0x48]
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov dword [ebp - 0x14], 0
mov dword [edi + 0x54], 0
mov dword [edi + 0x58], 0
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
push 0x401
mov dword [ebp - 4], 0
call fcn.004232d0
add esp, 4
mov esi, eax
nop
push 0
lea eax, [ebp - 0x14]
push eax
push 0x400
push esi
push dword [edi + 0x44]
call dword [sym.imp.KERNEL32.dll_ReadFile]
call ebx
cmp eax, 6
je 0x4204ff
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x420506
cmp byte [esi + eax - 1], 0
mov byte [esi + 0x400], 0
sete bl
cmp byte [esi], 0
jne 0x4204db
xor eax, eax
jmp 0x4204e9
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4204e0
sub eax, edx
push eax
push esi
lea ecx, [ebp - 0x2c]
call fcn.00406ca0
test bl, bl
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
jne 0x420506
jmp 0x4204a0
mov dword [ebp - 0x14], 0
push esi
call fcn.00422b02
add esp, 4
cmp dword [ebp - 0x14], 0
je 0x420542
push dword [edi + 0x3c]
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [edi + 0x38]
call eax
mov eax, dword [ebp - 0x18]
add esp, 8
cmp eax, 0x10
jb 0x420462
inc eax
lea ecx, [ebp - 0x2c]
push eax
push dword [ebp - 0x2c]
call fcn.00401b30
jmp 0x420462
mov eax, dword [ebp - 0x18]
cmp eax, 0x10
jb 0x420557
inc eax
lea ecx, [ebp - 0x2c]
push eax
push dword [ebp - 0x2c]
call fcn.00401b30
mov byte [edi + 0x74], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00422ab9
mov esp, ebp
pop ebp
ret
Function at 0x420580
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x459070]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
mov ecx, dword [ebp + 8]
push edi
mov dword [esi + 0x68], 0
mov dword [esi + 0x6c], 0
cmp dword [ecx + 0x14], 0x10
mov eax, dword [ecx + 0x10]
jb 0x4205b0
mov ecx, dword [ecx]
lea edi, [esi + 0x60]
inc eax
push edi
lea edx, [ebp - 8]
push edx
push eax
push ecx
push dword [esi + 0x44]
call dword [sym.imp.KERNEL32.dll_WriteFile]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x4205f0
push 0xffffffffffffffff
push dword [esi + 0x70]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x4205f0
push 1
lea eax, [ebp - 8]
push eax
push edi
push dword [esi + 0x44]
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
push dword [esi + 0x44]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00422ab9
mov esp, ebp
pop ebp
ret 4
Function at 0x420bf0
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 0x1c]
cmp ecx, 0x40
jb 0x420c07
mov eax, 0x10
pop esi
pop ebp
ret
lea eax, [ecx*8]
add dword [esi], eax
adc dword [esi + 4], 0
mov byte [ecx + esi + 0x20], 0x80
inc dword [esi + 0x1c]
mov eax, dword [esi + 0x1c]
cmp eax, 0x38
jbe 0x420c51
cmp eax, 0x40
jae 0x420c40
lea esp, [esp]
mov byte [esi + eax + 0x20], 0
inc dword [esi + 0x1c]
mov eax, dword [esi + 0x1c]
cmp eax, 0x40
jb 0x420c30
lea edx, [esi + 0x20]
mov ecx, esi
call fcn.00420750
mov dword [esi + 0x1c], 0
cmp dword [esi + 0x1c], 0x38
jae 0x420c71
jmp 0x420c60
mov eax, dword [esi + 0x1c]
mov byte [esi + eax + 0x20], 0
inc dword [esi + 0x1c]
cmp dword [esi + 0x1c], 0x38
jb 0x420c60
movzx eax, byte [esi + 7]
lea edx, [esi + 0x20]
mov byte [esi + 0x58], al
mov ecx, esi
movzx eax, byte [esi + 6]
mov byte [esi + 0x59], al
movzx eax, byte [esi + 5]
mov byte [esi + 0x5a], al
movzx eax, byte [esi + 4]
mov byte [esi + 0x5b], al
movzx eax, byte [esi + 3]
mov byte [esi + 0x5c], al
movzx eax, byte [esi + 2]
mov byte [esi + 0x5d], al
movzx eax, byte [esi + 1]
mov byte [esi + 0x5e], al
movzx eax, byte [esi]
mov byte [esi + 0x5f], al
call fcn.00420750
mov ecx, dword [ebp + 0xc]
movzx eax, byte [esi + 0xb]
mov byte [ecx], al
movzx eax, byte [esi + 0xa]
mov byte [ecx + 1], al
movzx eax, byte [esi + 9]
mov byte [ecx + 2], al
movzx eax, byte [esi + 8]
mov byte [ecx + 3], al
movzx eax, byte [esi + 0xf]
mov byte [ecx + 4], al
movzx eax, byte [esi + 0xe]
mov byte [ecx + 5], al
movzx eax, byte [esi + 0xd]
mov byte [ecx + 6], al
movzx eax, byte [esi + 0xc]
mov byte [ecx + 7], al
movzx eax, byte [esi + 0x13]
mov byte [ecx + 8], al
movzx eax, byte [esi + 0x12]
mov byte [ecx + 9], al
movzx eax, byte [esi + 0x11]
mov byte [ecx + 0xa], al
movzx eax, byte [esi + 0x10]
mov byte [ecx + 0xb], al
movzx eax, byte [esi + 0x17]
mov byte [ecx + 0xc], al
movzx eax, byte [esi + 0x16]
mov byte [ecx + 0xd], al
movzx eax, byte [esi + 0x15]
mov byte [ecx + 0xe], al
movzx eax, byte [esi + 0x14]
mov byte [ecx + 0xf], al
movzx eax, byte [esi + 0x1b]
mov byte [ecx + 0x10], al
movzx eax, byte [esi + 0x1a]
mov byte [ecx + 0x11], al
movzx eax, byte [esi + 0x19]
mov byte [ecx + 0x12], al
movzx eax, byte [esi + 0x18]
mov byte [ecx + 0x13], al
xor eax, eax
pop esi
pop ebp
ret
Function at 0x402ac0
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.0040414c
test esi, esi
jne 0x402af6
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.0040423c
jmp 0x402b14
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004029d4
mov edi, eax
test esi, esi
je 0x402b14
cmp dword [ebx], 0
je 0x402b14
dec esi
jmp 0x402afd
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x4031e4
Capabilities:
Query or enumerate registry value

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

Function at 0x403fd0
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x47204c], 0
je 0x404031
cmp word [0x472220], 0xd7b2
jne 0x403ff9
cmp dword [0x472228], 0
jbe 0x403ff9
mov eax, 0x47221c
call dword [0x472238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x47006c
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 0x404058
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x470030], 0
jne 0x40404d
push 0
push 0x470064
push 0x47006c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x4057a0
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 0x4059d0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405823
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4059d0
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405823
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4059ec
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4058ac
xor eax, eax
push ebp
push 0x4058a5
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.004055e8
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 0x40588a
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x405a0c
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x40588a
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 0x4058ac
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 0x4059c6
cmp byte [ebp - 0xd], 0
jne 0x4058f3
cmp byte [ebp - 0x12], 0
je 0x4059c6
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x40590c
dec ebx
cmp byte [ebx], 0x2e
je 0x40591b
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x40590b
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x4059c6
inc ebx
cmp byte [ebp - 0x12], 0
je 0x405958
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 0x4059c6
cmp byte [ebp - 0xd], 0
je 0x4059c6
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 0x4059c6
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 0x406098
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 0x4060fe
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.004043bc
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402da8
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x4060e8
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406105
lea eax, [ebp - 0x10]
call fcn.0040414c
ret

Function at 0x40b50c
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 0x40b545
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.0040423c
jmp 0x40b54e
mov eax, ebx
mov edx, esi
call fcn.004041a0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40bc00
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40ba78
mov eax, dword [0x471cc4]
cmp byte [eax], 0
je 0x40bc7c
mov eax, dword [0x471aa0]
call fcn.00402bd8
call fcn.00402900
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.00408bd4
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 0x40bcc4
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40bcb2
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x471a40]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x472668]
call fcn.004055ac
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