joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44016c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffed8
mov ebx, ecx
mov edi, edx
mov esi, eax
call sub.user32.dll_GetMessagePos
call fcn.00406de4
mov dword [esp + 8], eax
movsx eax, word [esp + 8]
mov dword [esp + 0xc], eax
movsx eax, word [esp + 0xa]
mov dword [esp + 0x10], eax
mov ecx, esp
lea edx, [esp + 0xc]
mov eax, esi
call fcn.0043afa0
test ebx, ebx
jne 0x4401bf
push 0
push 0
lea edx, [esp + 8]
xor ecx, ecx
mov eax, esi
call fcn.004400a8
mov ebx, eax
test ebx, ebx
je 0x4402aa
cmp esi, ebx
je 0x4401e8
mov eax, dword [esp]
sub eax, dword [ebx + 0x40]
mov dword [esp + 0x114], eax
mov eax, dword [esp + 4]
sub eax, dword [ebx + 0x44]
mov dword [esp + 0x118], eax
jmp 0x4401fd
mov eax, dword [esp]
mov dword [esp + 0x114], eax
mov eax, dword [esp + 4]
mov dword [esp + 0x118], eax
movzx eax, word [edi + 8]
mov dword [esp + 0x11c], eax
mov eax, dword [edi + 4]
mov dword [esp + 0x124], eax
movzx eax, word [edi + 0xa]
cmp eax, 0x201
jge 0x440235
add eax, 0xffffff5f
sub eax, 2
jb 0x44024d
dec eax
sub eax, 2
jb 0x440261
dec eax
sub eax, 2
jb 0x440257
jmp 0x44026b
add eax, 0xfffffdff
sub eax, 2
jb 0x44024d
dec eax
sub eax, 2
jb 0x440261
dec eax
sub eax, 2
jb 0x440257
jmp 0x44026b
mov byte [esp + 0x120], 0
jmp 0x440273
mov byte [esp + 0x120], 2
jmp 0x440273
mov byte [esp + 0x120], 1
jmp 0x440273
mov byte [esp + 0x120], 0
lea eax, [esp + 0x14]
push eax
call sub.user32.dll_GetKeyboardState
lea eax, [esp + 0x14]
call fcn.0044da8c
mov byte [esp + 0x121], al
lea eax, [esp + 0x114]
push eax
xor ecx, ecx
mov edx, 0xb04b
mov eax, ebx
call fcn.0043c728
mov dword [edi + 0xc], eax
mov al, 1
jmp 0x4402ac
xor eax, eax
add esp, 0x128
pop edi
pop esi
pop ebx
ret
Function at 0x440f44
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff94
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x240], 0
je 0x440f60
cmp dword [esi + 4], 0
je 0x440f8d
test byte [ebx + 0x55], 1
jne 0x440f7f
mov eax, ebx
call fcn.0043f300
test eax, eax
jne 0x440f7f
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x44109d
mov edx, esi
mov eax, ebx
call fcn.0044094c
jmp 0x44109d
push 0
call sub.user32.dll_GetDC
mov edi, eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x64]
push eax
push edi
call sub.gdi32.dll_CreateCompatibleBitmap
mov dword [ebp - 8], eax
push edi
push 0
call sub.user32.dll_ReleaseDC
push 0
call sub.gdi32.dll_CreateCompatibleDC
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x441096
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.00442f9c
push eax
call sub.user32.dll_BeginPaint
mov edi, eax
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 4]
mov edx, 0x14
mov eax, ebx
call fcn.0043c728
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.00440f44
xor eax, eax
mov dword [esi + 4], eax
push 0xcc0020
push 0
push 0
mov eax, dword [ebp - 4]
push eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x64]
push eax
push 0
push 0
push edi
call sub.gdi32.dll_BitBlt
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.00442f9c
push eax
call sub.user32.dll_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44109d
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_DeleteDC
mov eax, dword [ebp - 8]
push eax
call sub.gdi32.dll_DeleteObject
ret
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x448240
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x47e9ec]
cmp byte [eax + 0xc], 0
je 0x4483ad
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4483a6
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x482570], 0
jne 0x448294
push 0x4483b4
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x4483bc
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x482570], eax
cmp dword [0x47d5f0], 0
jne 0x44838f
push 0x4483cc
call sub.kernel32.dll_LoadLibraryA
mov dword [0x47d5f0], eax
cmp dword [0x47d5f0], 0
je 0x44838f
push 0x4483d8
mov eax, dword [0x47d5f0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x482574], eax
push 0x4483e8
mov eax, dword [0x47d5f0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x482578], eax
push 0x4483fc
mov eax, dword [0x47d5f0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x48257c], eax
push 0x448414
mov eax, dword [0x47d5f0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x482580], eax
push 0x44842c
mov eax, dword [0x47d5f0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x482584], eax
push 0x448440
mov eax, dword [0x47d5f0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x482588], eax
push 0x448458
mov eax, dword [0x47d5f0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x48258c], eax
push 0x448470
mov eax, dword [0x47d5f0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x482590], eax
push 0x44848c
mov eax, dword [0x47d5f0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x482594], eax
push 0x448498
mov eax, dword [0x47d5f0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x482598], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4483ad
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x44d9f4
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
movzx ebx, byte [0x44da48]
test si, 4
je 0x44da09
or bl, 1
test si, 8
je 0x44da13
or bl, 4
test si, 1
je 0x44da1d
or bl, 8
test si, 2
je 0x44da27
or bl, 0x10
test si, 0x10
je 0x44da31
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44da40
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x44da4c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
movzx ebx, byte [0x44da88]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44da66
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44da75
or bl, 4
test esi, 0x20000000
je 0x44da80
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x4551cc
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x4551de
add esp, 0xfffffff0
call fcn.00404420
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041afd0
mov eax, dword [0x47e634]
mov dword [eax + 4], ebx
mov dword [eax], 0x455570
mov eax, dword [0x47e640]
mov dword [eax + 4], ebx
mov dword [eax], 0x45557c
mov eax, ebx
call fcn.00455588
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x412dcc]
call fcn.004040cc
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x412dcc]
call fcn.004040cc
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x412dcc]
call fcn.004040cc
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x412dcc]
call fcn.004040cc
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x412dcc]
call fcn.004040cc
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, 0x451020
push eax
push 0
push 0
mov eax, dword [0x47e7c4]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x41eb84]
call fcn.004203d8
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x41eb84]
call fcn.004203d8
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x41eb84]
call fcn.004203d8
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.004559b8
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x455888
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x455888
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x455888
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x45531b
call fcn.00404478
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x45566c
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 0x455817
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x4557f8
mov dl, 1
mov eax, dword [0x4131f0]
call fcn.004040cc
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404f28
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x4557e7
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.0044859c
test al, al
je 0x4557da
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, 0x455828
lea eax, [ebp - 0x254]
call fcn.00409e80
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x4557da
xor eax, eax
push ebp
push 0x4557d3
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 0x455860
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x4557bc
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00405198
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 0x4557bc
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00405198
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4557da
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x4556dd
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x25], 0
mov dl, 1
call fcn.00416ed0
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 0x45581e
lea eax, [ebp - 0x260]
call fcn.00404f28
ret

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

Disassembly:
push ecx
mov eax, dword [0x4825a8]
cmp byte [eax + 0xad], 0
jne 0x456201
cmp dword [0x4825c0], 0
jne 0x4561c2
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x45614c
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x4825c0], eax
cmp dword [0x4825bc], 0
jne 0x4561dd
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x4825bc], eax
cmp dword [0x4825c4], 0
jne 0x456201
push esp
push 0
push 0
push 0x4560f0
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x4825c4], eax
pop edx
ret
Function at 0x4563d4
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x4563eb
add esp, 0xfffffff0
call fcn.00404420
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041afd0
mov eax, dword [0x47e7ac]
cmp word [eax + 2], 0
jne 0x456413
mov eax, dword [0x47e7ac]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00457f2c
mov eax, dword [0x47e87c]
cmp word [eax + 2], 0
jne 0x45642d
mov eax, dword [0x47e87c]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00458138
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x412dcc]
call fcn.004040cc
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x412dcc]
call fcn.004040cc
mov dword [ebx + 0x98], eax
mov dl, 1
mov eax, dword [0x412dcc]
call fcn.004040cc
mov dword [ebx + 0xb0], 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 + 0xa5], 1
mov byte [ebx + 0xbc], 1
mov dl, 1
mov eax, dword [0x41f694]
call fcn.00427040
mov esi, eax
mov dword [ebx + 0xa0], esi
push 0x4565e4
mov eax, dword [0x47e6b0]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00427414
mov eax, dword [ebx + 0xa0]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x458808
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x47e6b0]
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.0040d7a8
test eax, eax
je 0x456534
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00409838
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040d7dc
test eax, eax
je 0x456548
mov byte [eax], 0
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_CharNextA_1
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.00405198
mov byte [ebx + 0xd4], 0
push ebx
push 0x457a74
call fcn.0041c14c
mov dword [ebx + 0xc8], eax
mov eax, dword [0x47e564]
cmp byte [eax], 0
jne 0x456599
mov eax, ebx
call fcn.00456728
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0xa6], 1
xor eax, eax
mov dword [ebx + 0xa8], eax
mov eax, ebx
call fcn.004589e4
mov eax, ebx
call fcn.00459544
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4565d9
call fcn.00404478
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4569a8
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x4825a8]
cmp dword [eax + 0x30], 0
je 0x456a52
cmp dword [ebx + 0x94], 0
jne 0x456a4c
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x456938
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x456a4c
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 0x456a12
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x456a4c
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.00415178
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x456a21
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x45776c
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xac], 0
je 0x4577a1
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.00405018
jmp 0x4577ae
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404f7c
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x458bc8
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x458c36
mov eax, esi
call fcn.00443310
test al, al
je 0x458c36
mov eax, dword [ebx + 0x84]
call fcn.00442f9c
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x458c36
mov eax, dword [ebx + 0x84]
mov edx, dword [eax]
call dword [edx + 0xf0]
test al, al
je 0x458c2a
push 0
mov eax, dword [ebx + 0x84]
call fcn.00442f9c
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x84]
call fcn.0043b380
jmp 0x458c36
mov cl, 1
mov edx, dword [ebx + 0x74]
mov eax, ebx
call fcn.00458a04
pop esi
pop ebx
ret
Function at 0x45c7bc
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x45c7ea
mov eax, ebx
call fcn.0045d270
cmp dword [ebx + 0x40], 0
je 0x45c7e3
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x45c85b
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x45c84d
cmp dword [ebx + 8], 0
je 0x45c80c
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 0x45c81e
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x45c84d
cmp dword [ebx + 8], 0
je 0x45c7ff
cmp eax, 3
je 0x45c831
dec eax
jne 0x45c7ff
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 0x45c7ff
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x45c7ff
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x45c879
cmp dword [ebx + 0x14], 0xcc
je 0x45c879
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.0045c884
pop ebx
ret
Function at 0x475018
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe90
push ebx
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov ebx, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004053dc
mov eax, dword [ebp - 8]
call fcn.004053dc
lea eax, [ebp - 0x170]
mov edx, dword [0x407dc0]
call fcn.004059ec
xor eax, eax
push ebp
push 0x475181
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0xc]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
call fcn.00405238
cmp bl, 1
jne 0x475132
lea ecx, [ebp - 0x170]
xor edx, edx
mov eax, dword [ebp - 0xc]
call fcn.0040952c
test eax, eax
jne 0x475117
cmp byte [ebp + 8], 1
jne 0x4750c3
mov eax, dword [0x483a68]
push eax
push 0xffffffffffffffff
push 0
movzx ecx, word [0x475194]
mov dl, 3
mov eax, 0x4751a0
call fcn.00475fec
cmp eax, 6
je 0x4750c3
xor ebx, ebx
mov byte [0x483708], 1
jmp 0x475155
mov eax, dword [ebp - 0xc]
call fcn.0040946c
and eax, 1
test eax, eax
je 0x475109
mov eax, dword [0x483a68]
push eax
push 0xffffffffffffffff
push 0
movzx ecx, word [0x475194]
mov dl, 3
mov eax, 0x4751d4
call fcn.00475fec
cmp eax, 6
je 0x4750ff
xor ebx, ebx
mov byte [0x483708], 1
jmp 0x475155
xor edx, edx
mov eax, dword [ebp - 0xc]
call fcn.00409480
mov eax, dword [ebp - 0xc]
call fcn.004053ec
push eax
call sub.kernel32.dll_DeleteFileA
push 0xffff
mov ecx, dword [ebp - 0xc]
mov dl, 1
mov eax, dword [0x4133f0]
call fcn.004174a8
mov dword [0x483a64], eax
jmp 0x475153
mov eax, dword [0x47e720]
movzx eax, word [eax]
or ax, 0x40
push eax
mov ecx, dword [ebp - 0xc]
mov dl, 1
mov eax, dword [0x4133f0]
call fcn.004174a8
mov dword [0x483a64], eax
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x475188
lea eax, [ebp - 0x170]
mov edx, dword [0x407dc0]
call fcn.00405abc
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404f4c
ret

Function at 0x475f44
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
push esi
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x475fbc
push dword fs:[eax]
mov dword fs:[eax], esp
test ebx, ebx
jne 0x475f6f
lea edx, [ebp - 4]
mov eax, esi
call fcn.00408f88
jmp 0x475f79
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00404fc0
push 0x475fd4
push dword [ebp - 4]
push 0x475fe4
lea eax, [ebp - 8]
mov edx, 3
call fcn.004052ac
mov eax, dword [ebp - 8]
call fcn.004053ec
push eax
call sub.kernel32.dll_OutputDebugStringA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x475fc3
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404f4c
ret
Function at 0x402af8
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.004041c8
test esi, esi
jne 0x402b2e
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.004042b8
jmp 0x402b4c
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004029ac
mov edi, eax
test esi, esi
je 0x402b4c
cmp dword [ebx], 0
je 0x402b4c
dec esi
jmp 0x402b35
add esp, 0x108
pop edi
pop esi
pop ebx
ret

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

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

Function at 0x403208
Capabilities:
Query or enumerate registry value

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

Function at 0x40404c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4d004c], 0
je 0x4040ad
cmp word [0x4d0220], 0xd7b2
jne 0x404075
cmp dword [0x4d0228], 0
jbe 0x404075
mov eax, 0x4d021c
call dword [0x4d0238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x4cc070
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 0x4040d4
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4cc034], 0
jne 0x4040c9
push 0
push 0x4cc068
push 0x4cc070
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret