joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41f578
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x94], 0
je 0x41f5ad
push 0x100
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x24]
push eax
call sub.USER32.DLL_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.0044366c
jmp 0x41f5b7
mov eax, esi
mov edx, dword [ebx + 0x7c]
call fcn.004435d8
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x420464
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x74]
test esi, esi
je 0x42049c
mov eax, esi
call fcn.0042c700
test al, al
je 0x42049c
mov eax, dword [ebx + 0x74]
call fcn.0042c404
push eax
call sub.USER32.DLL_IsWindowVisible
test eax, eax
je 0x42049c
push 0
mov eax, dword [ebx + 0x74]
call fcn.0042c404
push eax
call sub.USER32.DLL_ShowWindow
pop esi
pop ebx
ret

Function at 0x424178
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
mov esi, eax
lea edi, [ebp - 0xc]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x10], edx
xor eax, eax
mov dword [ebp - 0x18], eax
push 0x11
call sub.USER32.DLL_GetKeyState
test ax, 0x8000
setne al
cmp dword [0x468124], 0
sete dl
or al, dl
jne 0x4242b8
mov eax, dword [0x468128]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x468124]
mov esi, dword [eax + 8]
dec esi
test esi, esi
jl 0x424287
inc esi
xor edi, edi
mov edx, edi
mov eax, dword [0x468124]
call fcn.00432d6c
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x42427f
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x168], 0
je 0x42427f
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x4c]
test al, al
je 0x42427f
mov eax, dword [ebp - 0x14]
call fcn.0042c404
push eax
call sub.USER32.DLL_IsWindowVisible
test eax, eax
je 0x42427f
push ebp
call fcn.00424134
pop ecx
test al, al
jne 0x42427f
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x90]
cmp eax, dword [ebp - 0x14]
jne 0x42423b
mov eax, dword [ebp - 0x14]
call fcn.0042ad90
dec eax
jle 0x42427f
mov byte [ebp - 1], 1
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 1]
push eax
lea ecx, [ebp - 0x28]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov bx, 0xffc1
call fcn.00442cf0
cmp byte [ebp - 1], 0
je 0x42427f
push dword [ebp - 8]
push dword [ebp - 0xc]
lea eax, [ebp - 0x28]
push eax
call sub.USER32.DLL_PtInRect
test eax, eax
je 0x42427f
mov edx, dword [ebp - 0x14]
mov eax, dword [0x468128]
call fcn.00423980
inc edi
dec esi
jne 0x4241ce
mov eax, dword [0x468128]
cmp dword [eax + 8], 0
jle 0x42429f
mov eax, dword [0x468128]
call fcn.00423a10
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x4242b8
push ebp
mov eax, dword [ebp - 0x18]
call fcn.00423f9c
pop ecx
test al, al
jne 0x4242b8
xor eax, eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x429d9c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
mov eax, dword [esi]
cmp eax, 0x84
jg 0x429dcd
je 0x429e27
sub eax, 7
je 0x429dee
dec eax
je 0x429e18
sub eax, 0x17
je 0x429ecc
jmp 0x429f0a
add eax, 0xffffff00
sub eax, 9
jb 0x429eb8
add eax, 0xffffff09
sub eax, 0xb
jb 0x429e80
jmp 0x429f0a
mov eax, ebx
call fcn.004171c4
mov edi, eax
test edi, edi
je 0x429f6a
mov edx, ebx
mov eax, edi
mov ecx, dword [eax]
call dword [ecx + 0xd4]
test al, al
je 0x429f73
jmp 0x429f6a
test byte [ebx + 0x44], 0x20
jne 0x429f73
jmp 0x429f6a
mov edx, esi
mov eax, ebx
call fcn.00427408
cmp dword [esi + 0xc], 0xffffffff
jne 0x429f73
push 0
lea edx, [ebp - 0x120]
mov eax, dword [esi + 8]
call fcn.0043b768
lea edx, [ebp - 0x120]
lea ecx, [ebp - 0x118]
mov eax, ebx
call fcn.00425f54
lea edx, [ebp - 0x118]
xor ecx, ecx
mov eax, ebx
call fcn.00429c74
test eax, eax
je 0x429f73
mov dword [esi + 0xc], 1
jmp 0x429f73
mov edx, esi
mov eax, ebx
call fcn.00429d08
test al, al
je 0x429f6a
cmp dword [esi + 0xc], 0
jne 0x429f73
mov eax, dword [esi + 8]
push eax
mov eax, dword [esi + 4]
push eax
mov eax, dword [esi]
push eax
mov eax, ebx
call fcn.0042c404
push eax
call sub.USER32.DLL_DefWindowProcA
jmp 0x429f73
mov eax, ebx
call fcn.00426aa4
test al, al
jne 0x429f73
jmp 0x429f6a
mov eax, ebx
call fcn.0042c404
mov edi, eax
call sub.USER32.DLL_GetCapture
cmp edi, eax
jne 0x429f6a
cmp dword [0x463d38], 0
je 0x429f6a
mov eax, dword [0x463d38]
cmp ebx, dword [eax + 0x24]
jne 0x429f6a
push 0
xor ecx, ecx
mov edx, 0x1f
mov eax, dword [0x463d38]
call fcn.0042733c
jmp 0x429f6a
mov eax, dword [0x4680ec]
cmp byte [eax + 0x20], 0
je 0x429f6a
mov eax, dword [0x4680ec]
cmp dword [eax + 0x1c], 0
je 0x429f6a
mov eax, dword [esi]
mov edx, dword [0x4680ec]
cmp eax, dword [edx + 0x1c]
jne 0x429f6a
lea eax, [ebp - 0x110]
push eax
call sub.USER32.DLL_GetKeyboardState
mov eax, dword [esi]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x110]
call fcn.00417108
mov byte [ebp - 0xc], al
mov ax, word [esi + 4]
mov word [ebp - 0xa], ax
mov eax, dword [esi + 8]
mov dword [ebp - 8], eax
lea edx, [ebp - 0x10]
mov eax, ebx
mov bx, 0xffb7
call fcn.00442cf0
jmp 0x429f73
mov edx, esi
mov eax, ebx
call fcn.00427408
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42a434
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 + 0x1e8], 0
je 0x42a450
cmp dword [esi + 4], 0
je 0x42a47d
test byte [ebx + 0x45], 1
jne 0x42a46f
mov eax, ebx
call fcn.004293d8
test eax, eax
jne 0x42a46f
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x42a58d
mov edx, esi
mov eax, ebx
call fcn.0042a0ac
jmp 0x42a58d
push 0
call sub.USER32.DLL_GetDC
mov edi, eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x40]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x40]
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 0x42a586
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.0042c404
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.0042733c
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.0042a434
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 + 0x40]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x40]
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.0042c404
push eax
call sub.USER32.DLL_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42a58d
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 0x43e040
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 0x100
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
test eax, eax
jle 0x43e079
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.0044366c
jmp 0x43e082
mov eax, ebx
mov edx, esi
call fcn.004435d8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x43e08c
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
test eax, eax
jle 0x43e0ad
mov al, byte [esp]
jmp 0x43e0af
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x442674
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov esi, edx
mov ebx, eax
test ebx, ebx
jne 0x4426a3
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.0044366c
jmp 0x4426c1
call sub.KERNEL32.DLL_GetCommandLineA
mov edi, eax
mov edx, esi
mov eax, edi
call fcn.004425fc
mov edi, eax
test ebx, ebx
je 0x4426c1
cmp dword [esi], 0
je 0x4426c1
dec ebx
jmp 0x4426aa
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x44298c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x46407c]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x442a24
push 0x80000002
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
jne 0x442a04
xor eax, eax
push ebp
push 0x4429fd
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 0x442a40
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 0x442a04
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
ret
mov ax, word [0x46407c]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x46407c], ax
mov esp, ebp
pop ebp
ret
Function at 0x444ab4
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x444c70
push 0x80000001
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
je 0x444b15
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x444c8c
push 0x80000001
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
jne 0x444b87
xor eax, eax
push ebp
push 0x444b80
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
call fcn.0044490c
push eax
mov eax, dword [ebp - 8]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExA
test eax, eax
je 0x444b69
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x444cac
mov eax, dword [ebp - 8]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x444b87
mov eax, dword [ebp - 8]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
ret
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_lstrcpyA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.KERNEL32.DLL_GetThreadLocale
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x444c68
cmp byte [ebp - 0xd], 0
jne 0x444bc9
cmp byte [ebp - 0x12], 0
je 0x444c68
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x444be2
dec ebx
cmp byte [ebx], 0x2e
je 0x444bf1
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x444be1
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x444c68
inc ebx
cmp byte [ebp - 0x12], 0
je 0x444c1e
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x444c68
cmp byte [ebp - 0xd], 0
je 0x444c68
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x444c68
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x44505c
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
xor eax, eax
push ebp
push 0x445144
push dword fs:[eax]
mov dword fs:[eax], esp
sub dword [0x4687b4], 1
jae 0x445136
xor eax, eax
mov dword [0x4683c0], eax
xor eax, eax
mov dword [0x4683c8], eax
xor eax, eax
mov dword [0x4683cc], eax
mov byte [0x4683d2], 2
mov byte [0x4683d3], 2
mov byte [0x4683d4], 3
mov word [0x46877c], 0
mov word [0x46878c], 1
mov word [0x46879c], 0xa
mov dword [0x4687a4], 0x80020004
mov dword [0x468770], 0x444248
mov dword [0x468774], 0x444240
mov dword [0x468778], 0x444248
call fcn.0044295c
test al, al
je 0x4450f5
call fcn.0044298c
call fcn.00442a50
mov eax, 0x4683d8
mov edx, 0x445150
call fcn.00440186
mov eax, 0x4685a4
mov edx, 0x445150
call fcn.00440186
call sub.KERNEL32.DLL_GetCommandLineA
mov dword [0x4683b8], eax
call fcn.004410ec
mov dword [0x4683b4], eax
call sub.KERNEL32.DLL_GetCurrentThreadId
mov dword [0x4683ac], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44514b
ret

Function at 0x449894
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_CreateFileA
mov ebx, eax
test eax, eax
je 0x4498f6
call fcn.00449844
mov esi, eax
lea eax, [ebp - 4]
push 0
push eax
push esi
call fcn.00445c18
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push edi
call fcn.00445c18
pop ecx
push eax
push edi
push ebx
call sub.KERNEL32.DLL_WriteFile
push ebx
call sub.KERNEL32.DLL_CloseHandle
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x449974
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff7c
cmp dword [0x465c64], 0
push ebx
push esi
mov esi, dword [ebp + 8]
jne 0x449a4e
cmp dword [0x465c60], 0
jne 0x449a4e
cmp dword [0x465e44], 0
je 0x449a08
push 0x80
lea eax, [ebp - 0x84]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
push 0x5c
lea edx, [ebp - 0x84]
push edx
call fcn.00449744
add esp, 8
mov ebx, eax
test eax, eax
jne 0x4499ee
push 0x3a
lea edx, [ebp - 0x84]
push edx
call fcn.00449744
add esp, 8
mov ebx, eax
test eax, eax
jne 0x4499ee
lea ebx, [ebp - 0x84]
jmp 0x4499ef
inc ebx
call fcn.00449930
or eax, 0x10010
push eax
push ebx
push esi
push 0
call sub.USER32.DLL_MessageBoxA
jmp 0x449a89
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
mov ebx, eax
lea eax, [ebp - 4]
push 0
push eax
push 2
push 0x465c68
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push esi
call fcn.00445c18
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea ecx, [ebp - 4]
push ecx
push 2
push 0x465c6b
push ebx
call sub.KERNEL32.DLL_WriteFile
jmp 0x449a89
cmp dword [0x465c60], 0
je 0x449a68
cmp dword [0x465c60], 0xffffffff
je 0x449a89
push esi
call dword [0x465c60]
pop ecx
mov eax, dword [0x465c64]
test eax, eax
je 0x449a89
cmp dword [0x465c64], 0xffffffff
je 0x449a89
cmp byte [eax], 0
je 0x449a89
push esi
push eax
call fcn.00449894
add esp, 8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x44a220
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
cmp dword [0x4690b8], 0
jne 0x44a2a1
cmp dword [0x4690d8], 0
jne 0x44a250
call sub.KERNEL32.DLL_GetEnvironmentStrings
mov dword [0x4690d8], eax
test eax, eax
jne 0x44a250
push str.GetEnvironmentStrings_failed
call fcn.00449aa0
pop ecx
xor ebp, ebp
xor esi, esi
mov ebx, dword [0x4690d8]
jmp 0x44a264
lea eax, [edi + 1]
inc esi
add ebp, eax
add ebx, eax
push ebx
call fcn.00445c18
pop ecx
mov edi, eax
test eax, eax
jne 0x44a25c
lea edi, [ebp + 1]
push edi
call fcn.00445678
pop ecx
mov ebx, eax
mov dword [0x4690bc], ebx
test ebx, ebx
jne 0x44a28e
xor eax, eax
jmp 0x44a364
push edi
mov edx, dword [0x4690d8]
push edx
push ebx
call fcn.00445ac8
add esp, 0xc
jmp 0x44a2c1
xor esi, esi
mov ebx, dword [0x4690b8]
jmp 0x44a2bb
push eax
call fcn.00445c18
pop ecx
test eax, eax
jne 0x44a2b7
dec esi
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x44a2ab
lea ebx, [esi + 4]
push 4
mov dword [0x4690c0], ebx
inc ebx
push ebx
call fcn.00445154
add esp, 8
test eax, eax
mov dword [esp], eax
jne 0x44a2e4
xor eax, eax
jmp 0x44a364
cmp dword [0x4690b8], 0
jne 0x44a315
xor esi, esi
mov ebx, dword [0x4690bc]
mov eax, dword [esp]
mov ebp, eax
jmp 0x44a306
mov dword [ebp], ebx
add ebp, 4
inc esi
inc edi
add ebx, edi
push ebx
call fcn.00445c18
pop ecx
mov edi, eax
test eax, eax
jne 0x44a2fc
jmp 0x44a346
xor esi, esi
mov ebx, dword [0x4690b8]
mov eax, dword [esp]
mov edi, eax
jmp 0x44a340
push eax
call fcn.00445c18
pop ecx
test eax, eax
je 0x44a335
mov eax, dword [ebx]
mov dword [edi], eax
jmp 0x44a339
dec esi
add edi, 0xfffffffc
add edi, 4
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x44a324
mov eax, dword [0x4690b8]
test eax, eax
je 0x44a356
push eax
call fcn.00445688
pop ecx
mov edx, dword [esp]
mov eax, 1
mov dword [0x4690b8], edx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x450568
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x10], 0xca
jne 0x450596
mov eax, ebx
call fcn.0045100c
cmp dword [ebx + 0x3c], 0
je 0x45058f
mov dword [ebx + 0x10], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x10], 0xcb
cmp dword [ebx + 0x10], 0xcb
jne 0x450607
mov edx, dword [ebx + 0x1a6]
cmp dword [edx + 0x10], 0
je 0x4505f9
cmp dword [ebx + 8], 0
je 0x4505b8
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1a6]
call dword [edx]
test eax, eax
jne 0x4505ca
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x4505f9
cmp dword [ebx + 8], 0
je 0x4505ab
cmp eax, 3
je 0x4505dd
dec eax
jne 0x4505ab
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 0x4505ab
mov edx, dword [ebx + 0x132]
add dword [eax + 8], edx
jmp 0x4505ab
mov ecx, dword [ebx + 0x8c]
mov dword [ebx + 0x94], ecx
jmp 0x450625
cmp dword [ebx + 0x10], 0xcc
je 0x450625
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x12
mov edx, dword [ebx + 0x10]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.00450630
pop ebx
ret
Function at 0x402ed4
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x402f2d
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
call sub.kernel32.dll_GetCommandLineA
lea edx, [ebp - 8]
call fcn.00402d70
mov dword [ebp - 4], eax
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00402d70
mov dword [ebp - 4], eax
cmp dword [ebp - 8], 0
je 0x402f17
inc ebx
jmp 0x402f00
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x402f34
lea eax, [ebp - 8]
call fcn.00404d04
ret

Function at 0x402f3c
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
add esp, 0xfffffef4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00404d04
test esi, esi
jne 0x402f73
push 0x105
lea eax, [esp + 8]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
lea edx, [esp + 4]
mov eax, ebx
call fcn.00404df4
jmp 0x402f94
call sub.kernel32.dll_GetCommandLineA
mov dword [esp], eax
mov edx, ebx
mov eax, dword [esp]
call fcn.00402d70
mov dword [esp], eax
test esi, esi
je 0x402f94
cmp dword [ebx], 0
je 0x402f94
dec esi
jmp 0x402f7b
add esp, 0x10c
pop esi
pop ebx
ret

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

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

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

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

Function at 0x403d00
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x585024]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403d98
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403d78
xor eax, eax
push ebp
push 0x403d71
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 0x403db4
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 0x403d78
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x585024]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x585024], ax
mov esp, ebp
pop ebp
ret
Function at 0x404adc
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x59304c], 0
je 0x404b3d
cmp word [0x593220], 0xd7b2
jne 0x404b05
cmp dword [0x593228], 0
jbe 0x404b05
mov eax, 0x59321c
call dword [fcn.00593238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x58507c
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 0x404b64
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x585034], 0
jne 0x404b59
push 0
push 0x585074
push 0x58507c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x404cb8
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.00402b10
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x59304d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x404c80
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc