joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401cb0
Capabilities:
Print debug messages

Disassembly:
push ebx
push esi
push edi
mov edi, dword [esp + 0x10]
mov eax, edi
mov esi, 0x4056a8
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401cc1
sub eax, edx
add eax, edi
cmp eax, edi
je 0x401cda
cmp byte [eax], 0x5c
je 0x401cdf
dec eax
cmp eax, edi
jne 0x401cd0
cmp byte [eax], 0x5c
jne 0x401ce0
inc eax
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ebx, eax
test ebx, ebx
jne 0x401cfa
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, eax
test ebx, ebx
je 0x401d54
cmp dword [0x4056a8], 0
je 0x401d25
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea esp, [esp]
mov eax, dword [esi]
push eax
push ebx
call edi
mov dword [esi + 4], eax
test eax, eax
je 0x401d2e
add esi, 8
cmp dword [esi], 0
jne 0x401d10
pop edi
pop esi
mov eax, 1
pop ebx
ret
push 0x405874
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [esi]
push ecx
push 0x405884
call dword [sym.imp.MSVCR90.dll___iob_func]
add eax, 0x40
push eax
call dword [sym.imp.MSVCR90.dll_fprintf]
add esp, 0xc
pop edi
pop esi
xor eax, eax
pop ebx
ret

Function at 0x401d60
Capabilities:
Print debug messages

Disassembly:
mov eax, dword [esp + 8]
push esi
mov esi, 0x4056a8
test eax, eax
jne 0x401d7d
mov eax, dword [esp + 8]
push eax
call fcn.00401cb0
add esp, 4
pop esi
ret
mov ecx, dword [esp + 8]
push edi
push eax
push ecx
call fcn.00402520
mov edi, eax
add esp, 8
test edi, edi
je 0x401de9
cmp dword [0x4056a8], 0
je 0x401dbb
jmp 0x401da0
mov edx, dword [esi]
push edx
push edi
call fcn.00402230
add esp, 8
mov dword [esi + 4], eax
test eax, eax
je 0x401dc3
add esi, 8
cmp dword [esi], 0
jne 0x401da0
pop edi
mov eax, 1
pop esi
ret
push 0x4058a8
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [esi]
push eax
push 0x4058b8
call dword [sym.imp.MSVCR90.dll___iob_func]
add eax, 0x40
push eax
call dword [sym.imp.MSVCR90.dll_fprintf]
add esp, 0xc
pop edi
xor eax, eax
pop esi
ret

Function at 0x401f60
Capabilities:
Enumerate pe sections

Disassembly:
push ecx
mov eax, dword [esp + 0x10]
push ebx
mov ebx, dword [eax + 4]
mov eax, dword [eax]
movzx ecx, word [eax + 0x14]
xor edx, edx
push esi
lea esi, [ecx + eax + 0x18]
mov dword [esp + 8], 0
cmp dx, word [eax + 6]
jae 0x402007
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push edi
add esi, 0x10
mov eax, dword [esi]
test eax, eax
jne 0x401fc2
mov eax, dword [esp + 0x1c]
mov edi, dword [eax + 0x38]
test edi, edi
jle 0x401feb
mov ecx, dword [esi - 4]
push 4
push 0x1000
push edi
add ecx, ebx
push ecx
call ebp
push edi
push 0
push eax
mov dword [esi - 8], eax
call sub.MSVCR90.dll_memset
jmp 0x401fe8
mov edx, dword [esi - 4]
push 4
push 0x1000
push eax
add edx, ebx
push edx
call ebp
mov ecx, dword [esi + 4]
add ecx, dword [esp + 0x18]
mov edi, eax
mov eax, dword [esi]
push eax
push ecx
push edi
call sub.MSVCR90.dll_memcpy
mov dword [esi - 8], edi
add esp, 0xc
mov edx, dword [esp + 0x20]
mov ecx, dword [edx]
mov eax, dword [esp + 0x10]
movzx edx, word [ecx + 6]
inc eax
add esi, 0x28
cmp eax, edx
mov dword [esp + 0x10], eax
jl 0x401f93
pop edi
pop ebp
pop esi
pop ebx
pop ecx
ret
Function at 0x407010
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40704e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x407046
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x407050
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x407036
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407120
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x407151
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407151
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x407151
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x430001
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..pdata
nop
push 4
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x430072
nop
nop
nop
mov ebx, 0x408f6c
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
nop
mov esi, 0x60e17d3c
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x430060
nop
nop
mov eax, section..pdata_1
nop
nop
nop
cmp eax, 0
je 0x4300d2
nop
nop
nop
nop
nop
mov ebx, 0x42e3d0
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
pop eax
nop
nop
nop
nop
nop
nop
mov esi, 0x3b573fc4
nop
nop
nop
nop
xor dword [eax], esi
nop
add eax, edi
nop
nop
nop
loop 0x4300c0
nop
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x401016
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x4010a6
push ebp
mov ebp, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x10]
push ebx
cmp byte [esi], 0
je 0x4010a3
push 0x5c
push esi
call dword [sym.imp.MSVCR80.dll_strchr]
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x4010a3
push edi
mov byte [esi], 0
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40107c
push 0
push edi
call dword [sym.imp.kernel32.dll_CreateDirectoryA]
test eax, eax
jne 0x401075
test ebp, ebp
je 0x401075
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
jmp 0x40107c
push edi
push 1
call ebp
pop ecx
pop ecx
test bl, 0x10
jne 0x40109d
push 0xb7
call dword [sym.imp.kernel32.dll_SetLastError]
test ebp, ebp
je 0x40109d
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
mov byte [esi], 0x5c
inc esi
jne 0x40102e
pop ebx
pop edi
pop ebp
xor eax, eax
inc eax
pop esi
ret

Function at 0x401bc8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
pushal
call 0x401bd7
pop dword [ebp - 0x44]
mov eax, 0x47da2b77
sub eax, 0x479a0fa0
sub dword [ebp - 0x44], eax
mov dword [ebp - 0x54], 0xa7df11de
sub dword [ebp - 0x54], 0x598ccc93
mov dword [ebp - 0x50], 0x84d08e3a
add dword [ebp - 0x50], 0xad62be0b
mov dword [ebp - 0x4c], 0x44a89dcd
sub dword [ebp - 0x4c], 0xf85c599f
mov dword [ebp - 0x48], 0x4f849986
add dword [ebp - 0x48], 0xb07b667a
lea eax, [ebp - 0x54]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x44]
call dword [eax]
mov dword [ebp - 0x54], 0x8f7e7cdc
add dword [ebp - 0x54], 0xe4f3ec7a
mov dword [ebp - 0x50], 0x3d9832e9
add dword [ebp - 0x50], 0x3d42e8c
mov dword [ebp - 0x4c], 0xe8ecee6d
add dword [ebp - 0x4c], 0x7a827dff
mov dword [ebp - 0x48], 0x799dcbbf
sub dword [ebp - 0x48], 0x799dcbbf
lea ebx, [ebp - 0x54]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x44]
call dword [eax]
push 0x40
push 0x1000
push 0x387e3
push 0
call eax
mov ecx, 0x4fac
mov edx, eax
mov ebx, 0x947c4511
add ebx, 0x6bc4baef
add ebx, dword [ebp - 0x44]
mov edi, 0x98ebf996
add edi, 0xa2683818
add dword [ebp - 0xc], 0x68debfdd
mov esi, dword [ebx]
add dword [ebp - 0x30], ecx
xor esi, edi
add dword [ebp - 0x10], 0xe30c4ccc
mov dword [edx], esi
add dword [ebp - 0x34], 0x2372681c
add edx, 0x84bd4e3b
add edx, 0x7b42b1c9
add ebx, 4
loop 0x401ce9
add eax, 0x4d1cfddd
sub eax, 0x4d1bcc5a
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x400000
add ecx, dword [ebp - 0x44]
call ebx
leave
ret
Function at 0x401000
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
jmp 0x403a1c
mov ecx, ebp
push ebp
mov ebp, esp
mov dword [0x405076], ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x405220], eax
mov dword [0x4051a8], 0x403098
mov dword [0x4051a4], 2
jmp 0x403a4c
mov dword [0x4051ac], 0
mov dword [0x4051b0], 0
mov dword [0x4051a0], 0x30
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
mov dword [0x4051b4], eax
mov dword [0x4051c8], 0x40426e
mov dword [0x4051c0], 0xf
mov dword [0x40506e], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadIconA]
mov dword [0x4051b8], eax
mov dword [0x4051cc], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadCursorA]
mov dword [0x4051bc], eax
push 0x4051a0
call dword [sym.imp.user32.dll_RegisterClassExA]
push 0
push dword [0x40506e]
push 0
push 0
push 0x1e5
push 0x21e
push 0xffffe52a
push 0xfffff588
push 0x40000
push str.justam
push 0x40426e
push 0
call dword [sym.imp.user32.dll_CreateWindowExA]
mov dword [0x405218], eax
push 5
push dword [0x405218]
call dword [sym.imp.user32.dll_ShowWindow]
push dword [0x405218]
call dword [sym.imp.user32.dll_UpdateWindow]
jmp 0x403b1f
push 0
push 0
push 0
push 0x4051d0
call dword [sym.imp.user32.dll_GetMessageA]
or eax, eax
je 0x403b4c
push 0x4051d0
call dword [sym.imp.user32.dll_TranslateMessage]
push 0x4051d0
call dword [sym.imp.user32.dll_DispatchMessageA]
jmp 0x403b1f
mov eax, dword [0x4051d8]
jmp 0x403b59
call 0x402be1
ret

Function at 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x40915c
nop
nop
mov ecx, 0x34965a5b
test eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
je 0x43104e
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x431024
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42f3f8
nop
nop
mov ecx, 0x6f392ea1
test eax, eax
nop
nop
nop
nop
nop
je 0x431084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43106c
nop
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x401ee2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x411280]
jne 0x401eec
repz ret
jmp fcn.00404369

Function at 0x4025e7
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
push 0x14
push 0x40f530
call fcn.00403770
mov eax, 0x5a4d
cmp word [0x400000], ax
jne 0x4024e7
mov eax, dword [0x40003c]
cmp dword [eax + 0x400000], 0x4550
jne 0x4024e7
mov ecx, 0x10b
cmp word [eax + 0x400018], cx
jne 0x4024e7
cmp dword [eax + 0x400074], 0xe
jbe 0x4024e7
xor ecx, ecx
cmp dword [eax + 0x4000e8], ecx
setne cl
mov dword [ebp - 0x1c], ecx
jmp 0x4024eb
and dword [ebp - 0x1c], 0
push 1
call fcn.004047b5
pop ecx
test eax, eax
jne 0x4024ff
push 0x1c
call fcn.004047b5
pop ecx
call fcn.00405287
test eax, eax
jne 0x402510
push 0x10
call fcn.004047b5
pop ecx
call fcn.00405952
and dword [ebp - 4], 0
call fcn.004032ff
test eax, eax
jge 0x40252a
push 0x1b
call fcn.004047b5
pop ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x412ba0], eax
call fcn.004047b5
mov dword [0x41203c], eax
call fcn.004047b5
test eax, eax
jge 0x402550
push 8
call fcn.004047b5
pop ecx
call fcn.00405fde
test eax, eax
jge 0x402561
push 9
call fcn.004047b5
pop ecx
push 1
call fcn.004047b5
pop ecx
test eax, eax
je 0x402574
push eax
call fcn.004047b5
pop ecx
mov eax, dword [0x412018]
mov dword [0x41201c], eax
push eax
push dword [0x412010]
push dword [0x41200c]
call main
add esp, 0xc
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x1c], 0
jne 0x4025a2
push eax
call fcn.004047b5
call fcn.00402400
jmp 0x4025d7
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x20]
call fcn.004037b5
ret
call fcn.004047b5
jmp 0x402495

Function at 0x4047b5
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
pushal
call 0x4047c4
pop dword [ebp - 0x1c]
mov eax, 0xda1cd15
add eax, 0xf29e7aaf
sub dword [ebp - 0x1c], eax
push 0x40
push 0x1000
push 0x3a388
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x1c]
call dword [eax]
mov ecx, 0x147ead1c
sub ecx, 0x147e611c
xor ebx, ebx
add ebx, eax
mov edi, 0x413bc4
add edi, dword [ebp - 0x1c]
mov edx, 0xf4dd68db
xor dword [ebp - 0x18], esi
mov esi, dword [edi]
mov dword [ebp - 0x18], 0xbdb8bb17
add esi, edx
add dword [ebp - 0x14], eax
mov dword [ebx], esi
sub dword [ebp - 0xc], edx
add ebx, 0x74a0b827
add ebx, 0x8b5f47dd
add edi, 0x4fc10a47
sub edi, 0x4fc10a43
loop 0x404814
add eax, 0x14d6946a
add eax, 0xeb2a8e69
mov ebx, eax
add eax, 0x3e76356
add eax, 0xfc189caf
mov ecx, 0xeb203d7d
add ecx, 0x151fc283
add ecx, dword [ebp - 0x1c]
call ebx
leave
ret
Function at 0x401031
Capabilities:
Hide graphical window

Disassembly:
push 0
call sub.kernel32.dll_GetModuleHandleA
mov dword [0x403016], eax
call sub.kernel32.dll_GetCommandLineA
mov dword [0x40300e], eax
push 0xa
push dword [0x40300e]
push 0
push dword [0x403016]
call 0x401031
push eax
call sub.kernel32.dll_ExitProcess
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov dword [ebp - 0x20], 0x96
mov dword [ebp - 0x24], 0x96
push 0
call sub.user32.dll_GetSystemMetrics
push eax
push dword [ebp - 0x20]
call fcn.004012da
mov dword [ebp - 0x28], eax
push 1
call sub.user32.dll_GetSystemMetrics
push eax
push dword [ebp - 0x24]
call fcn.004012da
mov dword [ebp - 0x2c], eax
jmp 0x401075
push 0
push dword [ebp + 8]
push 0
push 0
push dword [ebp - 0x24]
push dword [ebp - 0x20]
push dword [ebp - 0x2c]
push dword [ebp - 0x28]
push 0xef1140
push str.Popup_ListBox
push 0x40106d
push 0x388
call sub.user32.dll_CreateWindowExA
mov dword [0x403012], eax
push 0x40129e
push 0xfffffffffffffffc
push dword [0x403012]
call sub.user32.dll_SetWindowLongA
mov dword [0x40301a], eax
push 0xb
call sub.gdi32.dll_GetStockObject
push 0
push eax
push 0x30
push dword [0x403012]
call sub.user32.dll_SendMessageA
jmp 0x401171
push 0x4010db
push 0
push 0x180
push dword [0x403012]
call sub.user32.dll_SendMessageA
push 0x4010ea
push 0
push 0x180
push dword [0x403012]
call sub.user32.dll_SendMessageA
push 0x4010f9
push 0
push 0x180
push dword [0x403012]
call sub.user32.dll_SendMessageA
push 0x401108
push 0
push 0x180
push dword [0x403012]
call sub.user32.dll_SendMessageA
push 0x401117
push 0
push 0x180
push dword [0x403012]
call sub.user32.dll_SendMessageA
push 0x401126
push 0
push 0x180
push dword [0x403012]
call sub.user32.dll_SendMessageA
push 0x401135
push 0
push 0x180
push dword [0x403012]
call sub.user32.dll_SendMessageA
push 0x401144
push 0
push 0x180
push dword [0x403012]
call sub.user32.dll_SendMessageA
push 0x401153
push 0
push 0x180
push dword [0x403012]
call sub.user32.dll_SendMessageA
push 0x401162
push 0
push 0x180
push dword [0x403012]
call sub.user32.dll_SendMessageA
push 1
push dword [0x403012]
call sub.user32.dll_ShowWindow
push dword [0x403012]
call sub.user32.dll_UpdateWindow
push 0
push 0
push 0
lea eax, [ebp - 0x1c]
push eax
call sub.user32.dll_GetMessageA
cmp eax, 0
je 0x401297
lea eax, [ebp - 0x1c]
push eax
call sub.user32.dll_TranslateMessage
lea eax, [ebp - 0x1c]
push eax
call sub.user32.dll_DispatchMessageA
jmp 0x40126f
mov eax, dword [ebp - 0x14]
leave
ret 0x10
Function at 0x401690
Capabilities:
Encode data using xor

Disassembly:
push ebp
push esp
pop ebp
sub esp, 0x10
push ebx
push esi
push edi
push edx
pop edi
push edi
push 0
push dword [section..data]
mov dword [ebp - 8], edi
push ecx
pop esi
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, edi
shr ebx, 2
mov dword [ebp - 4], eax
or ebx, ebx
je 0x4016d4
push esi
pop edi
mov ecx, eax
sub edi, eax
mov edx, ebx
mov eax, dword [edi + ecx]
mov dword [ecx], eax
lea ecx, [ecx + 4]
dec edx
jne 0x4016c3
mov edi, dword [ebp - 8]
mov eax, dword [ebp - 4]
shl ebx, 2
cmp ebx, edi
jae 0x4016ef
push edi
pop edx
sub esi, eax
lea ecx, [ebx + eax]
sub edx, ebx
mov al, byte [ecx + esi]
mov byte [ecx], al
lea ecx, [ecx + 1]
dec edx
jne 0x4016e4
mov eax, dword [ebp - 4]
lea esi, [edi - 8]
lea ecx, [eax - 8]
add ecx, edi
push esi
pop ebx
mov edx, dword [ecx + 4]
mov dword [ebp - 0x10], ecx
mov ecx, dword [ecx]
shr ebx, 2
and esi, 3
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], ecx
or ebx, ebx
je 0x401731
lea ecx, [ebx + edx]
mov edx, dword [eax]
movzx ecx, cl
ror edx, cl
mov ecx, dword [ebp - 8]
add eax, 4
xor edx, ecx
sub edx, ebx
mov dword [eax - 4], edx
mov edx, dword [ebp - 0xc]
dec ebx
jne 0x401714
test esi, esi
je 0x40173d
xor byte [eax], cl
lea eax, [eax + 1]
dec esi
jne 0x401735
mov edi, dword [ebp - 0x10]
mov edi, dword [edi - 4]
push edi
push 0
push dword [section..data]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, dword [ebp - 4]
push eax
pop esi
mov edx, esi
push ebx
pop ecx
call section..text
push ebx
push 0
push dword [section..data]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov dword [eax], edi
pop edi
mov dword [ecx], esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4013fc
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.004020d0
test esi, esi
jne 0x401432
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.004021bc
jmp 0x401450
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00401310
mov edi, eax
test esi, esi
je 0x401450
cmp dword [ebx], 0
je 0x401450
dec esi
jmp 0x401439
add esp, 0x108
pop edi
pop esi
pop ebx
ret

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

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

Function at 0x4053b4
Capabilities:
Hide graphical window

Disassembly:
push 0
mov eax, dword [0x408958]
push eax
call sub.user32.dll_ShowWindow
push 0xffffffffffffffec
mov eax, dword [0x408958]
push eax
call sub.user32.dll_GetWindowLongA
or eax, 0x80
push eax
push 0xffffffffffffffec
mov eax, dword [0x408958]
push eax
call sub.user32.dll_SetWindowLongA
push 5
mov eax, dword [0x408958]
push eax
call sub.user32.dll_ShowWindow
ret
Function at 0x40481d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
pushal
call 0x40482c
pop dword [ebp - 0xc]
mov eax, 0x77a6414e
sub eax, 0x7765f922
sub dword [ebp - 0xc], eax
mov dword [ebp - 0x1c], 0xc307c035
sub dword [ebp - 0x1c], 0x74b57aea
mov dword [ebp - 0x18], 0xd44f45b3
add dword [ebp - 0x18], 0x5de40692
mov dword [ebp - 0x14], 0x537e5b9f
add dword [ebp - 0x14], 0xf8cde88f
mov dword [ebp - 0x10], 0x70416bac
add dword [ebp - 0x10], 0x8fbe9454
lea eax, [ebp - 0x1c]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0xc]
call dword [eax]
mov dword [ebp - 0x1c], 0xc3d28b9
add dword [ebp - 0x1c], 0x6835409d
mov dword [ebp - 0x18], 0xb9a73403
add dword [ebp - 0x18], 0x87c52d72
mov dword [ebp - 0x14], 0x5b46cc67
sub dword [ebp - 0x14], 0xf7d75ffb
mov dword [ebp - 0x10], 0x4ae33660
add dword [ebp - 0x10], 0xb51cc9a0
lea ebx, [ebp - 0x1c]
push ebx
push eax
mov eax, 0xbfa07d69
sub eax, 0xbf5e4c45
add eax, dword [ebp - 0xc]
call dword [eax]
push 0x40
push 0x1000
push 0x3d815
push 0
call eax
mov ecx, 0x471d
mov edi, eax
mov ebx, 0x434400
add ebx, dword [ebp - 0xc]
mov edx, 0x7e9b9dfd
xor dword [ebp - 8], 0xd66e4dd7
mov esi, dword [ebx]
sub dword [ebp - 4], 0x2fb74354
sub esi, edx
add dword [ebp - 8], ebx
mov dword [edi], esi
sub dword [ebp - 4], eax
add edi, 4
add ebx, 0x197af1d8
sub ebx, 0x197af1d4
loop 0x404937
add eax, 0x10f47
mov ebx, eax
add eax, 0x97ff6066
add eax, 0x68009f9f
mov ecx, 0x400000
add ecx, dword [ebp - 0xc]
call ebx
leave
ret

Function at 0x407e15
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42e180]
jne 0x407e1f
repz ret
jmp fcn.0040bc0c
Function at 0x401ca4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
pushal
call 0x401cb3
pop dword [ebp - 0x38]
mov eax, 0x347fbd76
add eax, 0xcbc05f3d
sub dword [ebp - 0x38], eax
push 0x40
push 0x1000
push 0x3a1a5
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x38]
call dword [eax]
mov ecx, 0x4b7f
mov edx, eax
mov ebx, 0x413bc4
add ebx, dword [ebp - 0x38]
mov esi, 0x59758b9a
sub dword [ebp - 0x24], 0xeaa9e9d1
mov edi, dword [ebx]
xor dword [ebp - 8], 0x1af7ff0f
xor edi, esi
xor dword [ebp - 8], 0x83d3c771
mov dword [edx], edi
xor dword [ebp - 0x1c], edx
add edx, 0x97efa88f
add edx, 0x68105775
add ebx, 0xb0e5fc66
sub ebx, 0xb0e5fc62
loop 0x401cfb
add eax, 0x120cf
xor ebx, ebx
add ebx, eax
add eax, 0x308d1d43
add eax, 0xcf72e2c2
mov ecx, 0x79d8e6f
sub ecx, 0x75d8e6f
add ecx, dword [ebp - 0x38]
call ebx
leave
ret

Function at 0x401ee2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x411280]
jne 0x401eec
repz ret
jmp fcn.00404399
Function at 0x40216b
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
call main
jmp 0x402175
push 0x14
push 0x411788
call fcn.00405300
call main
movzx esi, ax
push 2
call main
pop ecx
mov eax, 0x5a4d
cmp word [0x400000], ax
je 0x4021a3
xor ebx, ebx
jmp 0x4021d6
mov eax, dword [0x40003c]
cmp dword [eax + 0x400000], 0x4550
jne 0x40219f
mov ecx, 0x10b
cmp word [eax + 0x400018], cx
jne 0x40219f
xor ebx, ebx
cmp dword [eax + 0x400074], 0xe
jbe 0x4021d6
cmp dword [eax + 0x4000e8], ebx
setne bl
mov dword [ebp - 0x1c], ebx
call fcn.004048ef
test eax, eax
jne 0x4021ea
push 0x1c
call main
pop ecx
call fcn.00403b58
test eax, eax
jne 0x4021fb
push 0x10
call main
pop ecx
call fcn.004051cc
and dword [ebp - 4], 0
call fcn.00404904
test eax, eax
jns 0x402215
push 0x1b
call main
pop ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x4162e8], eax
call main
mov dword [0x414430], eax
call main
test eax, eax
jns 0x40223b
push 8
call main
pop ecx
call fcn.00404de7
test eax, eax
jns 0x40224c
push 9
call main
pop ecx
push 1
call main
pop ecx
test eax, eax
je 0x40225f
push eax
call main
pop ecx
call fcn.00405299
push esi
push eax
push 0
push 0x400000
call main
mov esi, eax
mov dword [ebp - 0x24], esi
test ebx, ebx
jne 0x402281
push esi
call main
call fcn.00404663
jmp 0x4022b6
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
call fcn.00405345
ret

Function at 0x407282
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
pushal
call 0x407291
pop dword [ebp - 0x38]
mov eax, 0x407291
sub dword [ebp - 0x38], eax
mov dword [ebp - 0x48], 0x1ead86cd
add dword [ebp - 0x48], 0x2fa4be7e
mov dword [ebp - 0x44], 0xed567822
add dword [ebp - 0x44], 0x44dcd423
mov dword [ebp - 0x40], 0x287806e2
sub dword [ebp - 0x40], 0xdc2bc2b4
mov dword [ebp - 0x3c], 0x825f4c08
sub dword [ebp - 0x3c], 0x825f4c08
lea eax, [ebp - 0x48]
push eax
mov eax, 0x4aff017e
sub eax, 0x4abe314a
add eax, dword [ebp - 0x38]
call dword [eax]
mov dword [ebp - 0x48], 0x8e4cdfd7
add dword [ebp - 0x48], 0xe625897f
mov dword [ebp - 0x44], 0x4e1388cf
sub dword [ebp - 0x44], 0xca7275a
mov dword [ebp - 0x40], 0x3c8fd8fa
add dword [ebp - 0x40], 0x26df9372
mov dword [ebp - 0x3c], 0x17a2f3cb
sub dword [ebp - 0x3c], 0x17a2f3cb
lea ebx, [ebp - 0x48]
push ebx
push eax
mov eax, 0x78360c91
add eax, 0x880ac39f
add eax, dword [ebp - 0x38]
call dword [eax]
push 0x40
push 0x1000
push 0x38159
push 0
call eax
mov ecx, 0x82a1743a
add ecx, 0x7d5ed0bc
mov edi, eax
mov edx, 0xea155585
sub edx, 0xe9d34585
add edx, dword [ebp - 0x38]
mov esi, 0xcbccf757
sub esi, 0x22b9d0e3
xor dword [ebp - 8], 0x1400f4b7
mov ebx, dword [edx]
sub dword [ebp - 0x14], eax
sub ebx, esi
xor dword [ebp - 0x1c], 0x609ffa8c
mov dword [edi], ebx
sub dword [ebp - 0x14], ebx
add edi, 0x4e66524c
add edi, 0xb199adb8
add edx, 0xd7d63462
add edx, 0x2829cba2
loop 0x4073ae
add eax, 0x106ab
mov ebx, eax
add eax, 5
mov ecx, 0x400000
add ecx, dword [ebp - 0x38]
call ebx
leave
ret