joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4edef0
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54342d
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x40
mov eax, dword [0x577018]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x30], esi
lea eax, [ebp - 0x30]
mov dword [ebp - 0x30], esi
push eax
push 0
push 0x8000
push 0x5475f0
call dword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
test eax, eax
jne 0x4ee033
mov edx, dword [ebp - 0x30]
mov ecx, edx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
lea edi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4edf70
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x2c]
call fcn.00408270
mov dword [ebp - 4], 0
push dword [ebp - 0x30]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov ecx, dword [ebp - 0x1c]
mov eax, bind
sub eax, ecx
cmp eax, 8
jb 0x4ee088
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
push 8
cmovae eax, dword [ebp - 0x2c]
push str.NeatDM_
push ecx
push eax
push ecx
push dword [ebp - 0x30]
lea ecx, [ebp - 0x4c]
call fcn.004097f0
lea ecx, [ebp - 0x2c]
call fcn.00408210
movups xmm1, xmmword [ebp - 0x4c]
lea ecx, [ebp - 0x2c]
movq xmm0, qword [ebp - 0x3c]
movq qword [ebp - 0x1c], xmm0
cmp dword [ebp - 0x18], 8
movd eax, xmm1
movups xmmword [ebp - 0x2c], xmm1
cmovae ecx, eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4ee004
test al, 0x10
jne 0x4ee00c
lea ecx, [ebp - 0x2c]
call fcn.00408b60
movups xmm0, xmmword [ebp - 0x2c]
mov dword [esi], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
movups xmmword [esi], xmm0
movq xmm0, qword [ebp - 0x1c]
movq qword [esi + 0x10], xmm0
jmp 0x4ee068
mov dword [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 0
mov ecx, esi
push 1
mov dword [esi], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
push 0x560568
mov word [esi], ax
call fcn.00408270
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.00517154
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.00401640
int3
Function at 0x4ee090
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54325e
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x28
push esi
push edi
mov eax, dword [0x577018]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x18], esi
mov dword [ebp - 4], 0
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x14], 0
call fcn.004edd90
mov dword [ebp - 4], 0
cmp dword [esi + 0x10], 0
mov dword [ebp - 0x14], 1
je 0x4ee114
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x4ee104
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4ee114
test al, 0x10
jne 0x4ee182
lea ecx, [ebp - 0x34]
call fcn.004edef0
mov edi, eax
cmp esi, edi
je 0x4ee14c
mov ecx, esi
call fcn.00408210
movups xmm0, xmmword [edi]
xor eax, eax
movups xmmword [esi], xmm0
movq xmm0, qword [edi + 0x10]
movq qword [esi + 0x10], xmm0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 7
mov word [edi], ax
mov ecx, dword [ebp - 0x20]
cmp ecx, 8
jb 0x4ee182
mov edx, dword [ebp - 0x34]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4ee178
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4ee198
push ecx
push edx
call fcn.00517162
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.0051eb64
int3
Function at 0x4f3560
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x543cad
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x577018]
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 ebx, ecx
mov dword [ebp - 0x50], ebx
push 0
push 0
push 0x1009
mov dword [ebp - 4], 0
push dword [ebx + 0xc]
call dword [sym.imp.USER32.dll_SendMessageW]
mov esi, dword [ebx + 0x30]
lea edi, [ebx + 0x30]
mov ebx, dword [edi + 4]
cmp esi, ebx
je 0x4f35c4
mov ecx, esi
call fcn.0041eb10
add esi, 0x64
cmp esi, ebx
jne 0x4f35b6
mov eax, dword [edi]
mov dword [edi + 4], eax
lea eax, [ebp + 8]
cmp edi, eax
je 0x4f35e0
push dword [ebp - 0x50]
mov ecx, edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004f3860
mov eax, dword [ebp + 0xc]
sub eax, dword [ebp + 8]
mov esi, dword [ebp - 0x50]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
sar eax, 2
imul eax, eax, 0xc28f5c29
push 0
push eax
push 0x102f
push dword [esi + 0xc]
call edi
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x3c], 0xf
push eax
push 0
push 0x102b
push dword [esi + 0xc]
mov dword [ebp - 0x40], 3
call edi
lea ecx, [ebp + 8]
call fcn.0041edd0
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.00517154
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4fbec0
Capabilities:
Hide graphical window
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, ecx
push esi
push edi
mov ecx, dword [ebx + 0x678]
lea edi, [ebx + 4]
test ecx, ecx
je 0x4fbf15
mov esi, dword [sym.imp.USER32.dll_DeleteMenu]
push 0
push ecx
push dword [ebx + 0x674]
call esi
push 0
push dword [ebx + 0x698]
push dword [ebx + 0x674]
call esi
push 6
push dword [edi]
mov dword [ebx + 0x678], 0
mov dword [ebx + 0x698], 0
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebp - 4], eax
cmp ebx, eax
je 0x4fbf51
mov esi, dword [sym.imp.USER32.dll_AttachThreadInput]
push 1
push eax
push ebx
call esi
push dword [edi]
call dword [sym.imp.USER32.dll_BringWindowToTop]
push 0
push dword [ebp - 4]
push ebx
call esi
jmp 0x4fbf59
push dword [edi]
call dword [sym.imp.USER32.dll_BringWindowToTop]
push 1
push dword [edi]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [edi]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push dword [edi]
call dword [sym.imp.USER32.dll_SetActiveWindow]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x504220
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x544f79
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x577018]
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 ebx, ecx
push 0x78
call fcn.00517390
mov edi, eax
mov dword [ebp - 0x30], edi
push 0x78
push 0
push edi
mov dword [ebp - 4], 0
call fcn.00519680
mov esi, dword [ebx + 4]
add esp, 0x10
mov ecx, edi
call fcn.0040bd00
mov dword [edi], vtable.NeatWebSocketServer.0
mov dword [edi + 0x54], 0
mov dword [edi + 0x58], 0
mov dword [edi + 0x5c], 0
mov byte [ebp - 4], 2
push 0x528
mov dword [edi + 0x6c], esi
mov dword [edi + 0x60], 0
call fcn.00517390
mov esi, eax
mov dword [ebp - 0x14], esi
push 0x528
push 0
push esi
mov byte [ebp - 4], 3
call fcn.00519680
add esp, 0x10
mov ecx, esi
push 3
call fcn.004c8e90
mov dword [edi + 0x70], eax
lea eax, [ebp - 0x14]
push eax
push 0
push edi
push 0x40bf10
push 0
mov word [edi + 0x68], 0
mov dword [ebp - 4], 0xffffffff
push 0
mov dword [ebx + 0x68], edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x504302
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0x15e
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebx + 0x68]
cmp byte [eax + 0x69], 0
je 0x50439e
mov esi, dword [ebx + 4]
lea ecx, [ebp - 0x2c]
push 0x61
push str.Another_Application_has_Taken_Port_10007_r_nThe_Port_is_Needed_for_Communicating_with_the_Browsers.
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
call fcn.00408270
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
push 0
cmovae eax, dword [ebp - 0x2c]
push str.Warning
push eax
push esi
call dword [sym.imp.USER32.dll_MessageBoxW]
mov ecx, dword [ebp - 0x18]
cmp ecx, 8
jb 0x504461
mov edx, dword [ebp - 0x2c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x50438f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x50447d
push ecx
push edx
call fcn.00517162
add esp, 8
jmp 0x504461
sub esp, 0x18
mov ecx, esp
push 0xb
push str.ChromePanel
mov dword [ecx], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0xf
call fcn.00402bc0
xor ecx, ecx
call fcn.004ebb30
mov ecx, dword [ebx + 0x68]
add esp, 0x18
cmp eax, 2
setl al
movzx eax, al
push eax
call fcn.004e2a30
sub esp, 0x18
mov ecx, esp
push 8
push str.FoxPanel
mov dword [ecx], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0xf
call fcn.00402bc0
xor ecx, ecx
call fcn.004ebb30
mov ecx, dword [ebx + 0x68]
add esp, 0x18
cmp eax, 2
setl al
movzx eax, al
push eax
call fcn.004e2a90
sub esp, 0x18
mov ecx, esp
push 9
push str.EdgePanel
mov dword [ecx], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0xf
call fcn.00402bc0
xor ecx, ecx
call fcn.004ebb30
mov ecx, dword [ebx + 0x68]
add esp, 0x18
cmp eax, 2
setl al
movzx eax, al
push eax
call fcn.004e2af0
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.00517154
mov esp, ebp
pop ebp
ret
call fcn.0051eb64
int3
Function at 0x515c70
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x546985
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x577018]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 0x64]
mov ecx, dword [ebp + 8]
test eax, eax
je 0x515e85
cmp ecx, dword [eax + 8]
jne 0x515e85
push 0
push dword [eax + 0xc]
call dword [sym.imp.USER32.dll_ShowWindow]
push 0x32
xor eax, eax
mov dword [ebp - 0x28], 0
push str._Waiting_for_new_URL_from_Browser_Extension_.....
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.00408270
mov dword [ebp - 4], 0
cmp dword [esi + 0x84], 0
je 0x515d8f
push 0xa
lea ecx, [ebp - 0x28]
call fcn.00417300
push 0xd
lea ecx, [ebp - 0x28]
call fcn.00417300
push 0xa
lea ecx, [ebp - 0x28]
call fcn.00417300
push 0xd
lea ecx, [ebp - 0x28]
call fcn.00417300
lea eax, [esi + 0x74]
mov edx, str.Title_
push eax
lea ecx, [ebp - 0x40]
call fcn.00417630
add esp, 4
mov byte [ebp - 4], 1
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x515d45
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0x28]
call fcn.00417430
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x2c]
cmp ecx, 8
jb 0x515d8f
mov edx, dword [ebp - 0x40]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x515d85
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x515e9c
push ecx
push edx
call fcn.00517162
add esp, 8
sub esp, 0x18
lea eax, [ebp - 0x28]
mov ecx, esp
push eax
call fcn.00408180
mov ecx, dword [esi + 0x70]
call fcn.004e5270
lea eax, [ebp - 0x38]
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetClientRect]
movsd xmm1, qword [0x577b80]
movaps xmm0, xmm1
mulsd xmm0, qword [0x568300]
push 0x25
push 0
push 0
cvttsd2si eax, xmm0
push eax
mov eax, dword [ebp - 0x30]
sub eax, dword [ebp - 0x38]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
divsd xmm0, xmm1
subsd xmm0, qword [0x5682c8]
mulsd xmm0, qword [0x5681d0]
cvttsd2si eax, xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
mulsd xmm0, xmm1
cvttsd2si eax, xmm0
push eax
mov eax, dword [esi + 0x68]
push 0
push dword [eax + 0xc]
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, dword [esi + 0x60]
push 1
call fcn.004fb4e0
push 0x101
push 0
push 0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_RedrawWindow]
mov ecx, dword [ebp - 0x14]
cmp ecx, 8
jb 0x515e67
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x515e5d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x515ea1
push ecx
push edx
call fcn.00517162
add esp, 8
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00517154
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [esi + 0x68]
test eax, eax
je 0x515e67
cmp ecx, dword [eax + 8]
jne 0x515e67
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0x28]
call eax
jmp 0x515e69
call fcn.0051eb64
call fcn.0051eb64
int3
Function at 0x518095
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x5180d4
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x5180d4
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x5180d4
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x5180d4
cmp dword [ecx + 0x74], 0xe
jbe 0x5180d4
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x51f607
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x577018]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x549424
push esi
call fcn.0052e9ce
pop ecx
pop ecx
test eax, eax
jne 0x51f635
xor al, al
jmp 0x51f6b2
push ebx
lea eax, [ebp - 0x210]
xor ebx, ebx
push eax
push 0x104
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], ebx
push esi
push eax
call fcn.0051f33e
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x51f66f
push dword [ebp - 0x210]
call fcn.0051e914
xor al, al
jmp 0x51f6b0
mov ecx, edx
push edi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x51f675
sub ecx, edi
sar ecx, 1
pop edi
cmp ecx, 3
je 0x51f695
push edx
call fcn.0051f53d
pop ecx
test al, al
je 0x51f660
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x51f6a3
mov bl, 1
push dword [ebp - 0x210]
call fcn.0051e914
mov al, bl
pop ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00517154
leave
ret

Function at 0x52c38a
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x54b2b4
push 0x54b2ac
push str.FlsAlloc
push 0x1e
call fcn.0052c1b7
mov esi, eax
add esp, 0x10
test esi, esi
je 0x52c3be
push dword [ebp + 8]
mov ecx, esi
call dword [0x54753c]
call esi
jmp 0x52c3c4
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x52c408
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x54b2c4
push 0x54b2bc
push str.FlsGetValue
push 0x20
call fcn.0052c1b7
mov esi, eax
add esp, 0x10
test esi, esi
je 0x52c43f
push dword [ebp + 8]
mov ecx, esi
call dword [0x54753c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x532bec
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x532c89
push ebx
push esi
call fcn.00532bb5
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0052fdb6
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x532c36
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x532c88
push edi
push eax
call fcn.0052b5b7
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x532c56
call fcn.0052b57d
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x532c87
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0052fdb6
add esp, 0x20
test eax, eax
jne 0x532c75
push edi
call fcn.0052b57d
jmp 0x532c7d
push ebx
call fcn.0052b57d
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x532c8c
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x532c9d
pop esi
ret
push ebx
push edi
push esi
call fcn.00532bb5
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0052b5b7
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x532cc5
push ebx
push esi
push edi
call fcn.005190f0
add esp, 0xc
push 0
call fcn.0052b57d
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x533089
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00532cda
Function at 0x53a9c0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x53a9ed
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x53a9ed
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x402a9c
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.00404414
test esi, esi
jne 0x402ad2
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.00404504
jmp 0x402af0
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402950
mov edi, eax
test esi, esi
je 0x402af0
cmp dword [ebx], 0
je 0x402af0
dec esi
jmp 0x402ad9
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x402e30
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x5d0008], 0x8088405
inc edx
mov dword [ebx + 0x5d0008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x403454
Capabilities:
Query or enumerate registry value

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

Function at 0x404214
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x5d4048], 0
je 0x404275
cmp word [0x5d421c], 0xd7b2
jne 0x40423d
cmp dword [0x5d4224], 0
jbe 0x40423d
mov eax, 0x5d4218
call dword [0x5d4234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x5d0078
push 0xfffffffffffffff5
call fcn.0040122c
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40429c
push 0xfffffffffffffff5
call fcn.0040122c
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x5d0034], 0
jne 0x404291
push 0
push 0x5d0070
push 0x5d0078
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x4043c8
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.00402714
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x5d4049], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x404390
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x4063c0
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 0x406426
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.00404684
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402eac
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x406410
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40642d
lea eax, [ebp - 0x10]
call fcn.00404414
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.004048d4
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x4092e9
test al, 0x10
jne 0x4092ed
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40c40c
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 0x40c445
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404504
jmp 0x40c44e
mov eax, ebx
mov edx, esi
call fcn.00404468
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40d43c
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 0x40d512
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.004044ac
lea eax, [ebp - 8]
call fcn.00404924
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.004048d4
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40d4fc
mov eax, ebx
call fcn.00402714
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40d4f5
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.004048d4
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40d4df
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40d524
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40d4df
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 0x40d4fc
mov eax, dword [ebp - 0x10]
call fcn.00402734
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d519
lea eax, [ebp - 8]
call fcn.00404414
ret