joyce8/EMBER2024-capa huggingface dataset:
Function at 0x420020
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 0x20], ecx
mov eax, dword [ebp - 0x20]
mov dword [eax + 0x10], 0
cmp dword [ebp + 0x10], 0
jne 0x42003f
lea ecx, [ebp - 0x18]
mov dword [ebp + 0x10], ecx
mov edx, dword [ebp + 0x10]
mov dword [edx], 0
mov eax, dword [ebp - 0x20]
cmp dword [eax + 4], 0
jne 0x420066
mov ecx, dword [ebp - 0x20]
mov dword [ecx + 0x10], 6
mov edx, dword [ebp - 0x20]
mov eax, dword [edx + 0x10]
jmp 0x4201b2
mov eax, dword [ebp - 0x20]
cmp dword [eax + 0x18], 0
jne 0x420090
cmp dword [ebp + 0x14], 0
jne 0x42007b
cmp dword [ebp + 0x18], 0xffffffff
je 0x420090
mov ecx, dword [ebp - 0x20]
mov dword [ecx + 0x10], 1
mov edx, dword [ebp - 0x20]
mov eax, dword [edx + 0x10]
jmp 0x4201b2
cmp dword [ebp + 0x14], 0
jne 0x4200b5
push 0x14
push 0
lea eax, [ebp - 0x14]
push eax
call fcn.004602b0
add esp, 0xc
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx + 0x18]
mov dword [ebp - 4], edx
lea eax, [ebp - 0x14]
mov dword [ebp + 0x14], eax
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x20]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x420199
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0x3e5
je 0x420100
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
mov dword [ecx + 0x10], edx
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x10]
jmp 0x4201b2
mov ecx, dword [ebp + 0x14]
lea edx, [ebp - 0x14]
cmp ecx, edx
jne 0x420197
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x420133
cmp dword [ebp - 0x24], 0x102
je 0x420164
jmp 0x420183
push 0
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp - 0x20]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
jne 0x420162
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x20]
mov dword [ecx + 0x10], eax
mov edx, dword [ebp - 0x20]
mov eax, dword [edx + 0x10]
jmp 0x4201b2
jmp 0x420197
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CancelIo]
mov edx, dword [ebp - 0x20]
mov dword [edx + 0x10], 0x5b4
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x10]
jmp 0x4201b2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x20]
mov dword [ecx + 0x10], eax
mov edx, dword [ebp - 0x20]
mov eax, dword [edx + 0x10]
jmp 0x4201b2
jmp 0x4201ac
cmp dword [ebp + 0x14], 0
je 0x4201ac
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov edx, dword [ebp - 0x20]
mov eax, dword [edx + 0x10]
mov esp, ebp
pop ebp
ret 0x14
Function at 0x420430
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
cmp dword [eax + 0x24], 0
jne 0x42047a
push 0
push 0
mov ecx, dword [ebp - 4]
push ecx
push 0x420550
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edx, dword [ebp - 4]
mov dword [edx + 0x24], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 0x24], 0
jne 0x42047a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x10], eax
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x10]
jmp 0x42048a
mov eax, dword [ebp - 4]
mov dword [eax + 0x10], 0
mov ecx, dword [ebp - 4]
mov eax, dword [ecx + 0x10]
mov esp, ebp
pop ebp
ret

Function at 0x420490
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], 0
cmp dword [ebp + 8], 0xffffffff
jne 0x4204b4
mov dword [ebp - 4], 1
mov dword [ebp + 8], 0x64
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x24], 0
je 0x420532
mov ecx, dword [ebp - 0xc]
mov byte [ecx + 0x20], 1
mov ecx, dword [ebp - 0xc]
call fcn.0041fe30
push eax
mov ecx, dword [ebp - 0xc]
call fcn.00420250
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0x102
jne 0x420503
push 0
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
jmp 0x420505
jmp 0x420514
cmp dword [ebp - 8], 0x102
jne 0x420514
cmp dword [ebp - 4], 0
jne 0x4204c4
mov ecx, dword [ebp - 0xc]
mov byte [ecx + 0x20], 0
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 0x24], 0
mov edx, dword [ebp - 0xc]
mov dword [edx + 0x10], 0
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x10]
mov esp, ebp
pop ebp
ret 4
Function at 0x4250f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x4b1570]
xor eax, ebp
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x4c], ecx
mov eax, dword [ebp - 0x4c]
cmp dword [eax + 0x20], 0
jne 0x425113
xor eax, eax
jmp 0x42526e
call fcn.0044a019
mov ecx, dword [eax + 8]
mov dword [ebp - 0x3c], ecx
push 0xf1
movzx edx, word [ebp + 8]
push edx
mov eax, dword [ebp - 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jne 0x425142
xor eax, eax
jmp 0x42526e
call fcn.0044a019
mov ecx, dword [eax + 8]
mov dword [ebp - 0x40], ecx
mov edx, dword [ebp - 0x2c]
push edx
mov eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x42516b
xor eax, eax
jmp 0x42526e
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x425185
xor eax, eax
jmp 0x42526e
push 0x14
push 0
lea edx, [ebp - 0x28]
push edx
call fcn.004602b0
add esp, 0xc
mov dword [ebp - 0x18], 0xffffffff
mov dword [ebp - 4], 0
mov dword [ebp - 0x30], 0
jmp 0x4251b5
mov eax, dword [ebp - 0x30]
add eax, 1
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 8]
movzx edx, word [ecx + 6]
cmp dword [ebp - 0x30], edx
jge 0x425220
mov byte [ebp - 0x20], 4
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 8]
movzx edx, word [ecx + eax*2 + 8]
mov dword [ebp - 0x24], edx
cmp dword [ebp - 0x24], 0
jne 0x4251e6
mov byte [ebp - 0x1f], 1
mov dword [ebp - 0x28], 0xffffffff
jmp 0x4251f9
mov byte [ebp - 0x1f], 0
mov eax, dword [ebp - 4]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
lea edx, [ebp - 0x28]
push edx
push 1
push 0x414
mov eax, dword [ebp - 0x4c]
mov ecx, dword [eax + 0x20]
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x42521e
xor eax, eax
jmp 0x42526e
jmp 0x4251ac
cmp dword [ebp - 0xc], 0
je 0x425261
call fcn.0044a019
mov edx, dword [eax + 8]
mov dword [ebp - 0x44], edx
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x34], ecx
mov edx, dword [ebp - 8]
movzx eax, word [edx + 6]
mov dword [ebp - 0x48], eax
lea ecx, [ebp - 0x38]
push ecx
mov edx, dword [ebp - 0x48]
push edx
push 0x413
mov eax, dword [ebp - 0x4c]
mov ecx, dword [eax + 0x20]
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004600a2
mov esp, ebp
pop ebp
ret 4
Function at 0x4273d0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov dword [ebp - 0x34], ecx
mov dword [ebp - 4], 0x64
mov eax, dword [ebp - 0x34]
mov ecx, dword [eax + 0xc]
push ecx
mov edx, dword [ebp - 0x34]
mov ecx, dword [edx + 4]
call fcn.00426c80
mov ecx, dword [ebp - 0x34]
mov dword [ecx + 8], eax
mov edx, dword [ebp - 0x34]
cmp dword [edx + 8], 0
je 0x427417
mov eax, dword [ebp - 0x34]
mov ecx, dword [eax + 4]
call fcn.00426ec0
mov ecx, dword [ebp - 0x34]
mov eax, dword [ecx + 8]
jmp 0x427535
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], 1
mov edx, dword [ebp - 0x34]
mov eax, dword [edx + 0x14]
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x34]
mov edx, dword [ecx + 0x18]
mov dword [ebp - 0x2c], edx
cmp dword [ebp - 0x28], 0
je 0x427524
push 0x4bf
push 0x64
push 0
lea eax, [ebp - 0x30]
push eax
push 2
call dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 2
ja 0x427478
cmp dword [ebp - 0x38], 2
je 0x4274a5
cmp dword [ebp - 0x38], 0
je 0x427486
cmp dword [ebp - 0x38], 1
je 0x427492
jmp 0x42750c
cmp dword [ebp - 0x38], 0x102
je 0x4274e8
jmp 0x42750c
mov dword [ebp - 0x28], 0
jmp 0x42751f
mov dword [ebp - 0x28], 0
mov ecx, dword [ebp - 0x34]
mov dword [ecx + 8], 0x4c7
jmp 0x42751f
mov edx, dword [ebp - 0x34]
cmp dword [edx + 0x1c], 0
je 0x4274bd
mov eax, dword [ebp - 0x34]
mov ecx, dword [eax + 0x20]
push ecx
mov edx, dword [ebp - 0x34]
mov eax, dword [edx + 0x1c]
call eax
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x20]
push ecx
call dword [sym.imp.USER32.dll_PeekMessageA]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x24]
cmp eax, dword [ebp + 8]
jbe 0x4274e6
mov dword [ebp + 8], 0
jmp 0x4274e8
jmp 0x42751f
cmp dword [ebp + 8], 0x64
jbe 0x4274f9
mov edx, dword [ebp + 8]
sub edx, 0x64
mov dword [ebp + 8], edx
jmp 0x42750a
mov dword [ebp - 0x28], 0
mov eax, dword [ebp - 0x34]
mov dword [eax + 8], 0x5b4
jmp 0x42751f
mov dword [ebp - 0x28], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x34]
mov dword [ecx + 8], eax
jmp 0x427439
mov edx, dword [ebp - 0x34]
mov ecx, dword [edx + 4]
call fcn.00426ec0
mov eax, dword [ebp - 0x34]
mov eax, dword [eax + 8]
mov esp, ebp
pop ebp
ret 4
Function at 0x43ed59
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
test ebx, 0xffff0000
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
jne 0x43ed79
cmp dword [edi + 0x54], 0
jne 0x43ed79
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.0044a019
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [esp + 0x18]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.0043ed20
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
ret 8

Function at 0x442e07
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x442e40
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0043e32a
push eax
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00407e40
pop esi
ret 4
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
pop esi
jmp dword [eax + 0x8c]

Function at 0x444a37
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x444a7a
call fcn.0044a019
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x444a7a
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x444a95
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.004445ee
test ebx, ebx
mov esi, eax
je 0x444a93
test edi, edi
je 0x444a93
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x44585d
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x47c105
call fcn.004660f7
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x445882
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x4458ce
call fcn.0043edc5
push eax
lea ecx, [ebp - 0x10]
call fcn.00407840
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00445171
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00407bd0
mov eax, esi
call fcn.004661cf
ret 8
Function at 0x44cc9f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
je 0x44cce5
call fcn.0044a019
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x44cce5
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 4], eax
je 0x44cd28
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
je 0x44cd11
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x44cd11
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x44cd25
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x4509c6
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4509f4
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x450a12
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00450930
jmp 0x450a12
mov eax, dword [esi + 0x14]
test eax, eax
je 0x450a12
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.00450930
test edi, edi
mov eax, edi
jne 0x4509fc
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8

Function at 0x4600a2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4b1570]
jne 0x4600ac
repz ret
jmp fcn.00468d5c
Function at 0x472ff2
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0046870f
xor ebx, ebx
cmp dword [0xe0f9e4], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x4730c7
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x473032
xor eax, eax
jmp 0x47318b
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4885e8
push edi
call esi
cmp eax, ebx
je 0x47302b
push eax
call fcn.004686ac
mov dword [esp], 0x4885d8
push edi
mov dword [0xe0f9e4], eax
call esi
push eax
call fcn.004686ac
mov dword [esp], 0x4885c4
push edi
mov dword [0xe0f9e8], eax
call esi
push eax
call fcn.004686ac
mov dword [0xe0f9ec], eax
lea eax, [ebp - 8]
push eax
call fcn.004668b4
test eax, eax
pop ecx
pop ecx
je 0x473095
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00469a1c
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x4730c7
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.004686ac
cmp eax, ebx
pop ecx
mov dword [0xe0f9f4], eax
je 0x4730c7
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004686ac
pop ecx
mov dword [0xe0f9f0], eax
mov eax, dword [0xe0f9f0]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x473140
cmp dword [0xe0f9f4], esi
je 0x473140
push eax
call fcn.00468718
pop ecx
call eax
cmp eax, ebx
je 0x47310d
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0xe0f9f4]
call fcn.00468718
pop ecx
call eax
test eax, eax
je 0x47310d
test byte [ebp - 0x18], 1
jne 0x473140
lea eax, [ebp - 0xc]
push eax
call fcn.004668eb
test eax, eax
pop ecx
je 0x473128
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00469a1c
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x473137
or dword [ebp + 0x10], 0x200000
jmp 0x473171
or dword [ebp + 0x10], 0x40000
jmp 0x473171
mov eax, dword [0xe0f9e8]
cmp eax, esi
je 0x473171
push eax
call fcn.00468718
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x473171
mov eax, dword [0xe0f9ec]
cmp eax, esi
je 0x473171
push dword [ebp - 4]
push eax
call fcn.00468718
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0xe0f9e4]
call fcn.00468718
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x477248
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x4b1570]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.004771dd
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.004602b0
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x477297
cmp dword [ebp - 0x1c], 5
jb 0x4772af
jmp 0x4772ab
cmp dword [ebp - 0x10], 1
jne 0x4772af
cmp dword [ebp - 0x1c], 4
ja 0x4772ab
jne 0x4772af
cmp dword [ebp - 0x18], 0
jbe 0x4772af
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x489674
call fcn.004770b1
test eax, eax
jge 0x4772d0
mov byte [0x4b2a3c], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004600a2
add ebp, 0x78
leave
ret
Function at 0x40306c
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.00404794
test esi, esi
jne 0x4030a2
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.00404884
jmp 0x4030c0
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402f80
mov edi, eax
test esi, esi
je 0x4030c0
cmp dword [ebx], 0
je 0x4030c0
dec esi
jmp 0x4030a9
add esp, 0x108
pop edi
pop esi
pop ebx
ret

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

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x48a008], 0x8088405
inc edx
mov dword [ebx + 0x48a008], edx
fld qword [ebx + 0x48a758]
push 0
push edx
fild qword [esp]
add esp, 8
fmulp st(1)
pop ebx
ret

Function at 0x40382c
Capabilities:
Query or enumerate registry value

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

Function at 0x404618
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x48e04c], 0
je 0x404679
cmp word [0x48e220], 0xd7b2
jne 0x404641
cmp dword [0x48e228], 0
jbe 0x404641
mov eax, 0x48e21c
call dword [0x48e238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x48a768
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 0x4046a0
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x48a034], 0
jne 0x404695
push 0
push 0x48a760
push 0x48a768
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x4065a0
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 0x406606
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.00404a04
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.004033e4
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x4065f0
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40660d
lea eax, [ebp - 0x10]
call fcn.00404794
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00404c54
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x40904d
test al, 0x10
jne 0x409051
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40bbc0
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 0x40bbf9
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404884
jmp 0x40bc02
mov eax, ebx
mov edx, esi
call fcn.004047e8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40c2b4
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40c12c
mov eax, dword [0x48d014]
cmp byte [eax], 0
je 0x40c330
mov eax, dword [0x48cd54]
call fcn.004031ac
call fcn.00402dec
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.00409340
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 0x40c378
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40c366
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x48cce4]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4907f8]
call fcn.00405ab4
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