joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4552f0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x4c58d4]
cmp byte [eax + 0xc], 0
je 0x45545d
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x455456
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x4c6b9c], 0
jne 0x455344
push 0x455464
call sub.kernel32.dll_GetModuleHandleA_1
mov ebx, eax
push 0x45546c
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4c6b9c], eax
cmp dword [0x4c2f10], 0
jne 0x45543f
push 0x45547c
call sub.kernel32.dll_LoadLibraryA
mov dword [0x4c2f10], eax
cmp dword [0x4c2f10], 0
je 0x45543f
push 0x455488
mov eax, dword [0x4c2f10]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4c6ba0], eax
push 0x455498
mov eax, dword [0x4c2f10]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4c6ba4], eax
push 0x4554ac
mov eax, dword [0x4c2f10]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4c6ba8], eax
push 0x4554c4
mov eax, dword [0x4c2f10]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4c6bac], eax
push 0x4554dc
mov eax, dword [0x4c2f10]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4c6bb0], eax
push 0x4554f0
mov eax, dword [0x4c2f10]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4c6bb4], eax
push 0x455508
mov eax, dword [0x4c2f10]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4c6bb8], eax
push 0x455520
mov eax, dword [0x4c2f10]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4c6bbc], eax
push 0x45553c
mov eax, dword [0x4c2f10]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4c6bc0], eax
push 0x455548
mov eax, dword [0x4c2f10]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4c6bc4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45545d
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x4597bc
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
mov ebx, edx
mov word [ebp - 2], ax
mov eax, ebx
call fcn.004042b8
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x45980b
push pe_nt_image_headers32
lea edx, [ebp - 0x102]
push edx
push eax
call sub.user32.dll_GetKeyNameTextA
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, pe_nt_image_headers32
call fcn.00404528
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x460ff8
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x461048]
test si, 4
je 0x46100c
or bl, 1
test si, 8
je 0x461016
or bl, 4
test si, 1
je 0x461020
or bl, 8
test si, 2
je 0x46102a
or bl, 0x10
test si, 0x10
je 0x461034
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x461043
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x46104c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x461084]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x461065
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x461074
or bl, 4
test esi, 0x20000000
je 0x46107f
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x4677c4
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x4677d6
add esp, 0xfffffff0
call fcn.00403780
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0042331c
mov eax, dword [0x4c50a4]
mov dword [eax + 4], ebx
mov dword [eax], 0x467b68
mov eax, dword [0x4c50b8]
mov dword [eax + 4], ebx
mov dword [eax], 0x467b74
mov eax, ebx
call fcn.00467b80
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x419eb8]
call fcn.0040342c
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x419eb8]
call fcn.0040342c
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x419eb8]
call fcn.0040342c
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x419eb8]
call fcn.0040342c
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x419eb8]
call fcn.0040342c
mov dword [ebx + 0x7c], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x40], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x58]
push eax
mov eax, 0x463f04
push eax
push 0
push 0
mov eax, dword [0x4c541c]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x4253c8]
call fcn.00426bdc
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x4253c8]
call fcn.00426bdc
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x4253c8]
call fcn.00426bdc
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.00467fa0
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x467e7c
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x467e7c
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x467e7c
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x467913
call fcn.004037d8
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x467c60
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x467e0b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x467dec
mov dl, 1
mov eax, dword [0x41a51c]
call fcn.0040342c
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.004042b8
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x467ddb
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.00455650
test al, al
je 0x467dce
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x467e1c
lea eax, [ebp - 0x254]
call fcn.00409a78
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x467dce
xor eax, eax
push ebp
push 0x467dc7
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x467e54
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x467db0
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404528
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x467db0
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404528
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x467dce
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x467cd1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.0041eed4
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x467e12
lea eax, [ebp - 0x260]
call fcn.004042b8
ret

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

Disassembly:
push ecx
mov eax, dword [0x4c6be8]
cmp byte [eax + 0xa5], 0
jne 0x468879
cmp dword [0x4c6c00], 0
jne 0x46883a
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x4687c4
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x4c6c00], eax
cmp dword [0x4c6bfc], 0
jne 0x468855
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x4c6bfc], eax
cmp dword [0x4c6c04], 0
jne 0x468879
push esp
push 0
push 0
push 0x468768
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x4c6c04], eax
pop edx
ret
Function at 0x468970
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x468987
add esp, 0xfffffff0
call fcn.00403780
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0042331c
mov eax, dword [0x4c53e0]
cmp word [eax + 2], 0
jne 0x4689af
mov eax, dword [0x4c53e0]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00469ec4
mov eax, dword [0x4c55ac]
cmp word [eax + 2], 0
jne 0x4689c9
mov eax, dword [0x4c55ac]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0046a0bc
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x419eb8]
call fcn.0040342c
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x419eb8]
call fcn.0040342c
mov dword [ebx + 0xa8], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0x9d], 1
mov byte [ebx + 0xb4], 1
mov dl, 1
mov eax, dword [0x425f48]
call fcn.0042dcf0
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x468b50
mov eax, dword [0x4c51b4]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.0042e0c0
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x46a66c
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x4c51b4]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040d920
test eax, eax
je 0x468abe
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00409458
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040d948
test eax, eax
je 0x468ad2
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.00404528
mov eax, dword [0x4c4e88]
cmp byte [eax], 0
jne 0x468b06
mov eax, ebx
call fcn.00468c78
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0x9e], 1
xor eax, eax
mov dword [ebx + 0xa0], eax
mov eax, ebx
call fcn.0046a848
mov eax, ebx
call fcn.0046b20c
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x468b46
call fcn.004037d8
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x468ef8
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x4c6be8]
cmp dword [eax + 0x30], 0
je 0x468fa2
cmp dword [ebx + 0x94], 0
jne 0x468f9c
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x468e88
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x468f9c
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x468f62
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x468f9c
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.0041c6e0
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x468f71
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x469b04
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x469b39
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.004043a8
jmp 0x469b46
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.0040430c
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x46aa24
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x46aa65
mov eax, esi
call fcn.00450c18
test al, al
je 0x46aa65
mov eax, dword [ebx + 0x84]
call fcn.00450914
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x46aa65
push 0
mov eax, dword [ebx + 0x84]
call fcn.00450914
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x46b724
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x48], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
lea eax, [ebp - 0x10]
mov edx, dword [0x419440]
call fcn.00404d98
xor eax, eax
push ebp
push 0x46b868
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x4c3144], 0
jne 0x46b777
mov ecx, dword [0x4c4ecc]
mov dl, 1
mov eax, dword [0x407b74]
call fcn.0040cb0c
call fcn.00403be8
lea eax, [ebp - 0x20]
xor ecx, ecx
mov edx, 0x10
call fcn.00402dd4
mov eax, ebx
call fcn.00404b20
mov dword [ebp - 0x1c], eax
push esi
push edi
mov esi, 0x46b878
lea edi, [ebp - 0x30]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
pop esi
lea eax, [ebp - 0x30]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
call fcn.00406118
xor eax, eax
mov dword [ebp - 8], eax
mov eax, ebx
call fcn.00404b30
test eax, eax
jle 0x46b80f
mov dword [ebp - 4], 0x10
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x40]
push eax
call sub.kernel32.dll_GetComputerNameA
test eax, eax
je 0x46b808
lea eax, [ebp - 0x44]
mov edx, ebx
call fcn.00404540
mov eax, dword [ebp - 0x44]
push eax
lea eax, [ebp - 0x48]
lea edx, [ebp - 0x40]
mov ecx, 0x10
call fcn.00404528
mov eax, dword [ebp - 0x48]
pop edx
call fcn.004089bc
test eax, eax
jne 0x46b808
mov ebx, 0x15
jmp 0x46b814
mov ebx, 0x10
jmp 0x46b814
mov ebx, 0x15
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 0x20]
push eax
push ebx
push 0
push esi
call dword [0x4c3144]
call fcn.0046b67c
mov eax, dword [ebp - 8]
call fcn.0046b67c
mov eax, edi
mov edx, dword [ebp - 0xc]
call fcn.00406130
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46b86f
lea eax, [ebp - 0x48]
mov edx, 2
call fcn.004042dc
lea eax, [ebp - 0x10]
mov edx, dword [0x419440]
call fcn.00404e68
ret
Function at 0x4ab0bc
Capabilities:
Check internet connectivity via wininet

Disassembly:
push ecx
mov dword [esp], 7
push 0
lea eax, [esp + 4]
push eax
call sub.wininet.dll_InternetGetConnectedState
test eax, eax
je 0x4ab0d8
mov al, 1
pop edx
ret
xor eax, eax
pop edx
ret

Function at 0x4aed80
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x4aedae
mov eax, ebx
call fcn.004af834
cmp dword [ebx + 0x40], 0
je 0x4aeda7
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x4aee1f
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x4aee11
cmp dword [ebx + 8], 0
je 0x4aedd0
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x4aede2
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x4aee11
cmp dword [ebx + 8], 0
je 0x4aedc3
cmp eax, 3
je 0x4aedf5
dec eax
jne 0x4aedc3
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x4aedc3
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x4aedc3
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x4aee3d
cmp dword [ebx + 0x14], 0xcc
je 0x4aee3d
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.004aee48
pop ebx
ret
Function at 0x100033b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x10003408
cmp byte [esi + ebx - 1], 0xa
je 0x100033dc
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x100082c4], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_fwrite]
add esp, 0x10
pop ebx
pop esi
pop ebp
ret
Function at 0x10003a30
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xe0
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [esp], eax
call sym.___wine_dbg_get_channel_flags
movzx eax, al
bt eax, esi
jae 0x10003c08
mov edi, dword [0x100082c4]
xor eax, eax
mov edx, dword fs:[0x18]
cmp dword [edx + 0x24], edi
je 0x10003b17
test byte [0x10004048], 8
jne 0x10003bb0
lea ebx, [ebp - 0xd4]
mov edi, ebx
test byte [0x10004058], 8
jne 0x10003b70
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
mov dword [esp + 4], str._04x:
mov dword [esp], edi
mov dword [esp + 8], eax
call sym._sprintf
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x10003ab9
cmp esi, 3
jbe 0x10003b28
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov ecx, ebx
mov edi, eax
mov esi, dword [ecx]
add ecx, 4
lea edx, [esi - 0x1010101]
not esi
and edx, esi
and edx, 0x80808080
je 0x10003aca
mov esi, edx
mov dword [esp + 0xc], edi
shr esi, 0x10
test edx, 0x8080
mov dword [esp + 4], 1
cmove edx, esi
lea esi, [ecx + 2]
mov dword [esp], ebx
cmove ecx, esi
mov eax, edx
add al, dl
sbb ecx, 3
sub ecx, ebx
mov dword [esp + 8], ecx
call dword [sym.imp.ucrtbase.dll_fwrite]
add esp, 0xe0
pop ebx
pop esi
pop edi
pop ebp
ret
add eax, edi
mov edi, dword [ebp + 0x10]
mov dword [esp + 8], str._s:_s:_s
mov dword [esp], eax
mov dword [esp + 0x14], edi
mov edi, dword [ebp + 0xc]
lea edx, [edi + 1]
mov dword [esp + 0x10], edx
mov edx, dword [esi*4 + 0x1000671c]
mov dword [esp + 0xc], edx
mov edx, ebx
sub edx, eax
add edx, 0xc8
mov dword [esp + 4], edx
call sym._snprintf.constprop.0
jmp 0x10003ab9
mov dword [esp], 0x10004058
call sym.___wine_dbg_get_channel_flags
test al, 8
je 0x10003a90
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x20]
mov dword [esp], edi
mov dword [esp + 4], str._04x:
mov dword [esp + 8], eax
call sym._sprintf
add edi, eax
jmp 0x10003a90
mov dword [esp], 0x10004048
call sym.___wine_dbg_get_channel_flags
test al, 8
je 0x10003a7b
call dword [sym.imp.kernel32.dll_GetTickCount]
mov edx, 0x10624dd3
lea ebx, [ebp - 0xd4]
mov dword [esp + 4], str._3u._03u:
mov ecx, eax
mul edx
mov dword [esp], ebx
shr edx, 6
imul eax, edx, 0x3e8
mov dword [esp + 8], edx
sub ecx, eax
mov dword [esp + 0xc], ecx
call sym._sprintf
lea edi, [ebx + eax]
jmp 0x10003a83
mov eax, 0xffffffff
jmp 0x10003b17
Function at 0x402820
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.00404188
test esi, esi
jne 0x402856
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.00404278
jmp 0x402874
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004026d4
mov edi, eax
test esi, esi
je 0x402874
cmp dword [ebx], 0
je 0x402874
dec esi
jmp 0x40285d
add esp, 0x108
pop edi
pop esi
pop ebx
ret

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

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

Function at 0x4036a0
Capabilities:
Query or enumerate registry value

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

Function at 0x40400c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x426044], 0
je 0x40406d
cmp word [0x426218], 0xd7b2
jne 0x404035
cmp dword [0x426220], 0
jbe 0x404035
mov eax, 0x426214
call dword [0x426230]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x424290
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 0x404094
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x424024], 0
jne 0x404089
push 0
push 0x424288
push 0x424290
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x4055f0
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 0x405656
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.004043dc
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402dc8
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x405640
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40565d
lea eax, [ebp - 0x10]
call fcn.00404188
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.0040462c
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x406f11
test al, 0x10
jne 0x406f15
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x409194
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 0x4091cd
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404278
jmp 0x4091d6
mov eax, ebx
mov edx, esi
call fcn.004041dc
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x409888
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x409700
mov eax, dword [0x425e10]
cmp byte [eax], 0
je 0x409904
mov eax, dword [0x425d40]
call fcn.00402c64
call fcn.00402644
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.004074dc
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 0x40994c
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40993a
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x425d18]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x426660]
call fcn.00405040
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