joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4163ee
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x423458]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00407f85
mov dword [ebp - 0x14], eax
cmp dword [0x44589c], esi
jne 0x4164e1
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x41646e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x4165c1
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x4165c1
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4165c1
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x44589c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x4458a0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x4458a4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4458ac], eax
test eax, eax
je 0x4164de
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4458a8], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x416506
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4164f9
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x41651b
push 4
pop eax
jmp 0x4165c3
cmp dword [ebp - 0x14], esi
je 0x41651b
push dword [0x44589c]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x416500
mov eax, dword [0x4458a8]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x416579
cmp dword [0x4458ac], edi
je 0x416579
push eax
call ebx
push dword [0x4458ac]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x416579
test eax, eax
je 0x416579
call ecx
test eax, eax
je 0x41656e
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x41656e
test byte [ebp - 8], 1
jne 0x416579
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x4165a9
mov eax, dword [0x4458a0]
cmp eax, edi
je 0x4165a6
push eax
call ebx
test eax, eax
je 0x4165a6
call eax
mov esi, eax
test esi, esi
je 0x4165a6
mov eax, dword [0x4458a4]
cmp eax, edi
je 0x4165a6
push eax
call ebx
test eax, eax
je 0x4165a6
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x44589c]
call ebx
test eax, eax
je 0x4165c1
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x4165c3
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00406f2e
mov esp, ebp
pop ebp
ret
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
push 4
nop
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x430072
nop
nop
mov ebx, 0x408f6c
nop
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x505e48a6
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x430060
nop
mov eax, section..text_1
nop
nop
cmp eax, 0
nop
nop
nop
je 0x4300d2
nop
nop
nop
mov ebx, 0x42e3d0
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x252b66db
nop
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
loop 0x4300c0
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x409229
Capabilities:
Decrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ecx, dword [edi + 4]
mov eax, dword [edi]
mov dword [ebp - 4], ecx
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
mov ebx, dword [ecx + 4]
mov dword [ebp - 0x24], edx
mov edx, dword [ecx + 8]
mov ecx, dword [ecx + 0xc]
mov esi, 0xc6ef3720
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x28], 0x9e3779b9
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x18], 0x20
and dword [0x84387c], 0
mov ecx, eax
lea edx, [esi + eax]
shl ecx, 4
add ecx, dword [ebp - 0x1c]
shr eax, 5
add eax, dword [ebp - 0x20]
xor ecx, edx
xor eax, ecx
mov dword [ebp - 8], edx
mov dword [ebp + 8], ecx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
add dword [0x84387c], eax
mov eax, dword [ebp - 0x10]
sub dword [ebp - 4], eax
mov eax, dword [ebp - 4]
shl eax, 4
mov dword [ebp + 8], eax
mov eax, dword [ebp - 0x24]
add dword [ebp + 8], eax
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0x14]
mov dword [ebp - 8], eax
mov edx, dword [ebp - 4]
push dword [ebp - 8]
or dword [0x843884], 0xffffffff
lea eax, [ebp + 8]
shr edx, 5
push eax
mov dword [0x843880], 0xff6b3619
add edx, ebx
call fcn.004091bf
push edx
lea eax, [ebp + 8]
push eax
call fcn.004091bf
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.0040918f
and dword [ebp + 0xc], 0
mov eax, dword [ebp - 0x28]
add dword [ebp + 0xc], eax
sub esi, dword [ebp + 0xc]
dec dword [ebp - 0x18]
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x14], esi
jne 0x40926d
mov dword [edi], eax
mov eax, dword [ebp - 4]
mov dword [edi + 4], eax
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x40931f
Capabilities:
Copy file
Manipulate console buffer
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x948
push esi
xor esi, esi
cmp dword [0x843e7c], 0x516
push edi
jne 0x40936c
push esi
push esi
push esi
push 0x401320
push 0x401350
call dword [sym.imp.KERNEL32.DLL_MoveFileWithProgressW]
xor eax, eax
mov word [ebp - 4], ax
lea edi, [ebp - 2]
stosw word es:[edi], ax
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
lea eax, [ebp - 0x948]
push esi
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_ReadConsoleOutputCharacterW]
mov eax, dword [ebp + 0xc]
shr eax, 3
cmp eax, esi
jbe 0x4093c3
mov edi, dword [ebp + 8]
push ebx
mov ebx, eax
cmp dword [0x843e7c], 0x29
jne 0x409399
push esi
push esi
push esi
push esi
push 0x401388
push 0x4013b8
call dword [sym.imp.KERNEL32.DLL_CopyFileExA]
cmp dword [0x843e7c], 0xe1b
jne 0x4093b3
lea eax, [ebp - 0x148]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_FindNextFileA]
push dword [ebp + 0x10]
push edi
call fcn.00409229
add edi, 8
dec ebx
jne 0x40937c
pop ebx
pop edi
pop esi
leave
ret 0xc
Function at 0x409ab1
Capabilities:
Get file attributes
Get hostname
Read .ini file
Set current directory

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2054
call fcn.0040a1f0
push esi
push edi
xor esi, esi
xor edi, edi
cmp dword [0x843e7c], 0x47
jne 0x409b39
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.DLL_SetCalendarInfoW]
push 0x4014cc
call dword [sym.imp.KERNEL32.DLL_SetCurrentDirectoryW]
push esi
call dword [sym.imp.KERNEL32.DLL_AddAtomA]
push esi
call dword [sym.imp.KERNEL32.DLL_DebugBreakProcess]
push esi
lea eax, [ebp - 0xc54]
push eax
push esi
push 0x401558
call dword [sym.imp.KERNEL32.DLL_GetFullPathNameW]
push 0x30
lea eax, [ebp - 0x50]
push esi
push eax
mov dword [ebp - 0x54], esi
call fcn.0040a220
add esp, 0xc
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x54]
push eax
push 0x401580
call dword [sym.imp.KERNEL32.DLL_GetDefaultCommConfigA]
push esi
push esi
lea eax, [ebp - 0x454]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_GetConsoleAliasA]
cmp edi, 0x4cb3
je 0x409bf6
cmp dword [0x843e7c], 0xf
jne 0x409be7
push esi
lea eax, [ebp - 0x454]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL__hwrite]
push 0x4015ac
push esi
lea eax, [ebp - 0x1854]
push eax
push 0x4015bc
push 0x4015f8
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStructA]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.DLL_EnumDateFormatsA]
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 0x20]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_ReadConsoleInputA]
push esi
push esi
call dword [sym.imp.KERNEL32.DLL_GetComputerNameA]
push esi
lea eax, [ebp - 0x1454]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_GetAtomNameW]
push esi
lea eax, [ebp - 0x2054]
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemWindowsDirectoryW]
push esi
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.DLL_EnumCalendarInfoExA]
push 0x401620
lea eax, [ebp - 0x854]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcpyA]
push esi
push esi
call dword [sym.imp.KERNEL32.DLL_SetFileShortNameA]
inc edi
cmp edi, 0x244381a
jl 0x409ac4
jmp 0x409c00
mov eax, dword [0x4363c4]
mov dword [0x843e7c], eax
cmp dword [0x843e7c], 3
jne 0x409ca4
fldz
push ecx
fstp dword [esp]
call fcn.00409100
fstp st(0)
push 0x401628
push esi
call fcn.0040ac20
push esi
push esi
push esi
push esi
call fcn.0040abf0
push esi
push esi
push esi
push 0x446a68
call fcn.0040abf0
push esi
call fcn.0040aaa0
push esi
push esi
call fcn.0040aa50
add esp, 0x34
cmp dword [0x843e7c], 0x22
jne 0x409c5f
lea eax, [ebp - 0x20]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_GetConsoleScreenBufferInfo]
push esi
call fcn.0040aa20
call fcn.0040a8e0
fldz
fstp dword [esp]
call fcn.00409100
fstp st(0)
push esi
call fcn.0040a8c0
mov dword [esp], 0x401634
call fcn.0040a880
fstp st(0)
push esi
push esi
call fcn.0040a720
push esi
call fcn.0040a6f0
push esi
push esi
push esi
push esi
push esi
call fcn.0040a2a0
add esp, 0x24
cmp esi, 0x41c
jne 0x409cb7
mov eax, 0x38d6
add dword [0x843e7c], eax
inc esi
cmp esi, 0x40b7c8
jl 0x409ca4
call fcn.004095d0
call fcn.004094bd
pop edi
xor eax, eax
pop esi
leave
ret 0x10
Function at 0x40aa50
Capabilities:
Move file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.DLL_MoveFileA]
test eax, eax
jne 0x40aa73
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp - 4], eax
jmp 0x40aa7a
mov dword [ebp - 4], 0
cmp dword [ebp - 4], 0
je 0x40aa91
mov edx, dword [ebp - 4]
push edx
call fcn.00410d90
add esp, 4
or eax, 0xffffffff
jmp 0x40aa93
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x40aaa0
Capabilities:
Delete file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
test eax, eax
jne 0x40aabf
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp - 4], eax
jmp 0x40aac6
mov dword [ebp - 4], 0
cmp dword [ebp - 4], 0
je 0x40aadd
mov ecx, dword [ebp - 4]
push ecx
call fcn.00410d90
add esp, 4
or eax, 0xffffffff
jmp 0x40aadf
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x4151a0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x445724]
jne 0x4151aa
repz ret
jmp fcn.00422a50
Function at 0x1000a7e4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
pushal
call 0x1000a7f3
pop dword [ebp - 0xc]
mov eax, 0x1000a7f3
sub dword [ebp - 0xc], eax
mov dword [ebp - 0x1c], 0x515322b5
sub dword [ebp - 0x1c], 0x300dd6a
mov dword [ebp - 0x18], 0xf2c63c5d
add dword [ebp - 0x18], 0x3f6d0fe8
mov dword [ebp - 0x14], 0xd35b5e09
sub dword [ebp - 0x14], 0x870f19db
mov dword [ebp - 0x10], 0xd09087f4
sub dword [ebp - 0x10], 0xd09087f4
lea eax, [ebp - 0x1c]
push eax
mov eax, 0x8f3c5ea8
add eax, 0x80c4617c
add eax, dword [ebp - 0xc]
call dword [eax]
mov dword [ebp - 0x1c], 0xcf305c1e
sub dword [ebp - 0x1c], 0x5abdf2c8
mov dword [ebp - 0x18], 0x90f56c28
sub dword [ebp - 0x18], 0x4f890ab3
mov dword [ebp - 0x14], 0x4c3b5b6d
sub dword [ebp - 0x14], 0xe8cbef01
mov dword [ebp - 0x10], 0x9bec001b
sub dword [ebp - 0x10], 0x9bec001b
lea ebx, [ebp - 0x1c]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0xc]
call dword [eax]
push 0x40
push 0x1000
push 0x343a0
push 0
call eax
mov ecx, 0xbbc7472f
add ecx, 0x4438f1ba
mov edx, eax
mov ebx, 0x10047400
add ebx, dword [ebp - 0xc]
mov edi, 0x94392791
sub edi, 0x5b7c23cc
sub dword [ebp - 4], ecx
mov esi, dword [ebx]
sub dword [ebp - 4], 0xb314ff07
xor esi, edi
mov dword [ebp - 4], 0xed960669
mov dword [edx], esi
xor dword [ebp - 4], 0x41f146b6
add edx, 0xd38942bd
add edx, 0x2c76bd47
add ebx, 4
loop 0x1000a905
add eax, 0x6b3ffbbd
sub eax, 0x6b3f2546
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x10000000
add ecx, dword [ebp - 0xc]
call ebx
leave
ret
Function at 0x41de30
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x14000]
push edi
jmp 0x41de4a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x41de51
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x41de40
mov eax, 1
add ebx, ebx
jne 0x41de63
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x41de58
jne 0x41de74
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41de58
xor ecx, ecx
sub eax, 3
jb 0x41de88
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x41defa
mov ebp, eax
add ebx, ebx
jne 0x41de93
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x41dea0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x41dec4
inc ecx
add ebx, ebx
jne 0x41deb0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x41dea5
jne 0x41dec1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41dea5
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x41dee4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x41ded5
jmp 0x41de46
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x41dee4
add edi, ecx
jmp 0x41de46
pop esi
mov edi, esi
mov ecx, 3
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x41df02
cmp byte [edi], 4
jne 0x41df02
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 0x41df07
lea edi, [esi + 0x1b000]
mov eax, dword [edi]
or eax, eax
je 0x41df7f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1d334]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1d370]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x41df34
mov ecx, edi
jns 0x41df63
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 + 0x1d378]
or eax, eax
je 0x41df79
mov dword [ebx], eax
add ebx, 4
jmp 0x41df51
call dword [esi + 0x1d374]
mov ebp, dword [esi + 0x1d37c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1cf]
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 0x41dfb3
sub esp, 0xffffff80
jmp 0x401240
Function at 0x401069
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x45a030]
jne 0x401073
repz ret
jmp fcn.00401e41

Function at 0x408aeb
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00404d3a
and dword [ebp - 4], 0
cmp dword [0x45cb68], 0
mov ebx, eax
jne 0x408b9c
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x408c4d
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x408c4d
push eax
call fcn.00404cc8
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x45cb68], eax
call esi
push eax
call fcn.00404cc8
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x45cb6c], eax
call esi
push eax
call fcn.00404cc8
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x45cb70], eax
call esi
push eax
call fcn.00404cc8
pop ecx
mov dword [0x45cb78], eax
test eax, eax
je 0x408b9c
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00404cc8
pop ecx
mov dword [0x45cb74], eax
mov eax, dword [0x45cb74]
cmp eax, ebx
je 0x408bf4
cmp dword [0x45cb78], ebx
je 0x408bf4
push eax
call fcn.00404d43
push dword [0x45cb78]
mov esi, eax
call fcn.00404d43
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x408bf4
test edi, edi
je 0x408bf4
call esi
test eax, eax
je 0x408beb
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x408beb
test byte [ebp - 0xc], 1
jne 0x408bf4
or dword [ebp + 0x10], 0x200000
jmp 0x408c2d
mov eax, dword [0x45cb6c]
cmp eax, ebx
je 0x408c2d
push eax
call fcn.00404d43
pop ecx
test eax, eax
je 0x408c2d
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x408c2d
mov eax, dword [0x45cb70]
cmp eax, ebx
je 0x408c2d
push eax
call fcn.00404d43
pop ecx
test eax, eax
je 0x408c2d
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x45cb68]
call fcn.00404d43
pop ecx
test eax, eax
je 0x408c4d
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x408c4f
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4035ac
Capabilities:
Generate random numbers using the delphi lcg

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

Function at 0x41cf00
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push ebp
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
cld
mov dl, 0x80
mov al, byte [esi]
add esi, 1
mov byte [edi], al
add edi, 1
mov ebx, 2
add dl, dl
jne 0x41cf31
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cf19
add dl, dl
jne 0x41cf3c
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cf8d
xor eax, eax
add dl, dl
jne 0x41cf49
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41d02a
add dl, dl
jne 0x41cf58
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cf63
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cf6e
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cf79
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x41cf83
mov ebx, edi
sub ebx, eax
mov al, byte [ebx]
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x41cf28
mov eax, 1
add dl, dl
jne 0x41cf9b
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cfa6
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cf92
sub eax, ebx
mov ebx, 1
jne 0x41cfd9
mov ecx, 1
add dl, dl
jne 0x41cfbf
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41cfca
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cfb6
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41cf28
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x41cff0
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41cffb
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cfe7
cmp eax, 0x7d00
sbb ecx, 0xffffffff
cmp eax, 0x500
sbb ecx, 0xffffffff
cmp eax, 0x80
adc ecx, 0
cmp eax, 0x80
adc ecx, 0
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41cf28
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x41d04b
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x41cf28
pop ebp
sub edi, dword [ebp - 8]
mov dword [ebp - 0xc], edi
pop edi
pop esi
pop ebx
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x41f04c
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov ebx, edx
xor edx, edx
push ebp
push 0xb6953a
push dword fs:[edx]
mov dword fs:[edx], esp
xor edx, edx
mov dword [ebp - 8], edx
mov esi, ebx
xor ecx, ecx
cmp byte [eax + 0x6a], 0
je 0x41f09b
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [esi + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x88]
test edx, edx
je 0x41f0ba
mov ecx, edx
add ecx, ebx
jmp 0x41f0ba
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [esi + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x78]
test edx, edx
je 0x41f0ba
mov ecx, edx
add ecx, ebx
test ecx, ecx
je 0x41f12c
mov esi, dword [ecx + 0x18]
mov eax, dword [ecx + 0x1c]
add eax, ebx
mov dword [ebp - 0x10], eax
mov edi, dword [ecx + 0x20]
add edi, ebx
mov eax, dword [ecx + 0x24]
add eax, ebx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
cmp eax, 0xffff
jbe 0x41f115
test esi, esi
jbe 0x41f12c
mov eax, dword [edi]
add eax, ebx
mov edx, dword [ebp - 4]
call fcn.004088ec
test eax, eax
jne 0x41f107
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
jmp 0x41f12c
add dword [ebp - 0xc], 2
add edi, 4
dec esi
test esi, esi
ja 0x41f0e4
jmp 0x41f12c
mov edx, eax
sub edx, dword [ecx + 0x10]
cmp edx, dword [ecx + 0x14]
jae 0x41f12c
mov eax, edx
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0xb69541
ret