joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41d323
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x41d362
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41d362
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41d362
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x41d362
cmp dword [ecx + 0x74], 0xe
jbe 0x41d362
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x42f490
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42f4bd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42f4bd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0xe1f8b8
Capabilities:
Encode data using xor

Disassembly:
jmp 0xe1f8c2
pushal
call 0xe1f8c8
pop ebp
sub ebp, 0x10
sub ebp, 0xa1f8b8
jmp 0xe1f8de
mov eax, 0xa1f8b8
add eax, ebp
add eax, 0x4c
mov ecx, 0x5ba
mov edx, 0x3e2704f
xor byte [eax], dl
inc eax
dec ecx
jne 0xe1f8f5
jmp 0xe1f908
les eax, [edx + 0x4f73c6c4]
dec edi
dec edi
into
invalid
Function at 0x40289a
Capabilities:
Encode data using xor

Disassembly:
inc ecx
pop esi
xor byte [esi + ecx + 7], cl
loop 0x40289d
std
mov ecx, 0xdab016dc
in al, dx
add al, 0x57
pop esp
cmp dl, byte [edx]
mov al, byte [0xd195cc0f]
in al, 0xd7
std
stc
call 0xc12d0fa5
iretd

Function at 0x40a340
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
movsd dword es:[edi], dword [esi]
mov eax, dword [ecx + 4]
mov esi, 0x83687523
ror dword [ecx + edx*2], 0xff
adc eax, sym.imp.KERNEL32.dll_LeaveCriticalSection
xor ecx, dword [ebx + 0x5e]
mov esp, 0x830004c2
clc
stc
in eax, 0xc
mov eax, dword [ecx + 0x5a]
push eax
call dword [fcn.0040aa30]
mov dword [0x2f8830f], eax
call 0x88a2f5b
push ecx
call dword [0x40c0e7]
test eax, eax
jne 0x40a358
mov esi, dword [0xe3c098]
cmp esi, edx
test eax, eax
je 0x40a358
call esi
add eax, 0xafc80
pop esi
pop ebp
ret 4

Function at 0x40b080
Capabilities:
Encode data using xor

Disassembly:
xchg byte [ecx + 0x1534350], bl
add byte [eax], al
add byte [ebx - 0x76a0f3bb], cl
push es
mov eax, dword [ebp + 8]
pop esi
add dword [ebx + 0xc875de5], ecx
add byte [eax - 0x6f6f6f70], dl
nop
nop
nop
nop
nop
nop
nop
nop
lea edx, [ebp - 0x75]
push ebp
mov ebp, esp
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov eax, eax
adc byte [ebx + 0x4e8b1046], cl
adc al, 0xb
rcl dword [ebx], 0x45
adc byte [eax], al
add byte [eax], al
add byte [ebp + 0x71], dh
mov al, byte [esi + 8]
lodsd eax, dword [esi]
shr byte [edi], 0xd8
cmp eax, 0x4d8d0456
or byte [edx], ch
push ecx
push 0x56
push 0
push 0
push edx
call dword [0xf1c058]
pop eax
sal cl, 0
test dword [eax + 0xa], ebx
xor eax, 0xc09807b5
inc eax
add bh, bh
mov ebp, 0x9751685
mov ecx, dword [ebp + 0x14]
pop edi
je 0x40b058
adc esi, dword [edi + 0x5d6ffc3]
cmp ah, 0xa
add byte [0xafced], bh
jne 0x40b0e5
mov eax, 0x1118a
mov ecx, dword [ebp + 0x14]
pop edi
pop esi
mov dword [ecx], 0
je 0x40b0b5
mov eax, dword [ebp + 8]
test eax, eax
jne 0x40b107
mov edx, dword [ebp + 0x14]
pop edi
invalid
sub edi, eax
int3
Function at 0x10026b2
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
push ecx
lea ecx, [ebp - 0xc]
call fcn.0100192c
cmp dword [ebp + 8], 0
jne 0x10026ce
xor eax, eax
jmp 0x10026f3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [eax + eax + 2]
mov eax, esi
add eax, 3
and al, 0xfc
call fcn.01003d60
mov eax, esp
push esi
push dword [ebp + 8]
push eax
call fcn.01002886
push 2
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov edi, eax
test edi, edi
mov dword [ebp + 8], edi
je 0x1002728
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov ebx, eax
test ebx, ebx
je 0x1002728
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x100274a
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
je 0x1002746
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
jmp 0x1002794
xor esi, esi
jmp 0x1002794
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
mov eax, esi
cmp byte [ebx + esi], 0
je 0x1002786
lea edi, [ebx + 1]
mov eax, edi
add eax, 3
and al, 0xfc
call fcn.01003d60
mov ecx, edi
mov eax, esp
mov edx, ecx
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
and byte [eax + ebx], 0
mov edi, dword [ebp + 8]
push dword [ebp + 0x14]
lea ecx, [ebp - 0xc]
push eax
call fcn.010023dc
mov esi, eax
test edi, edi
je 0x100279f
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea esp, [ebp - 0x18]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 0x10

Function at 0x1002c6e
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
push ebx
push esi
push edi
push 0xf003f
push dword [ebp + 8]
mov ebx, ecx
xor esi, esi
lea ecx, [ebp - 4]
push dword [ebx]
mov dword [ebp - 4], esi
call fcn.01002bf5
mov edi, eax
cmp edi, esi
je 0x1002ca8
lea ecx, [ebp - 4]
call fcn.01002b90
mov eax, edi
jmp 0x1002d32
lea eax, [ebp - 0x14]
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
push eax
push esi
push esi
lea eax, [ebp - 8]
push esi
push eax
lea eax, [ebp - 0x114]
mov dword [ebp - 8], 0x100
push eax
push esi
push dword [ebp - 4]
call edi
test eax, eax
jne 0x1002d13
lea eax, [ebp - 0x114]
lea ecx, [ebp - 4]
push eax
call fcn.01002c6e
cmp eax, esi
mov dword [ebp - 0xc], eax
jne 0x1002d06
lea eax, [ebp - 0x14]
mov dword [ebp - 8], 0x100
push eax
push esi
push esi
lea eax, [ebp - 8]
push esi
push eax
lea eax, [ebp - 0x114]
push eax
push esi
push dword [ebp - 4]
jmp 0x1002ccb
lea ecx, [ebp - 4]
call fcn.01002b90
mov eax, dword [ebp - 0xc]
jmp 0x1002d32
lea ecx, [ebp - 4]
call fcn.01002b90
push dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
lea ecx, [ebp - 4]
mov esi, eax
call fcn.01002b90
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x100326a
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
lea eax, [ebp - 4]
push edi
push eax
xor ebx, ebx
push 0x20006
push ebx
push str.AppID369AF852_BFF7_11D0_A5DA_00AA00BF93E3
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov edi, eax
cmp edi, ebx
jne 0x10032fb
cmp dword [0x100bcdc], ebx
push esi
je 0x10032b5
push 0x74
push 0x1009320
push 3
push ebx
push str.AccessPermission
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
jmp 0x10032ef
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 0xcc
push 0x1009198
push 3
push ebx
push str.AccessPermission
push dword [ebp - 4]
call esi
mov edi, eax
cmp edi, ebx
jne 0x10032f1
push 0xb4
push 0x1009268
push 3
push ebx
push str.LaunchPermission
push dword [ebp - 4]
call esi
mov edi, eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov eax, edi
and edi, 0xffff
or edi, 0x80070000
neg eax
sbb eax, eax
and eax, edi
pop edi
pop ebx
leave
ret
Function at 0x1003b60
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001578
push 0x10051d8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffffa8
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
call dword [sym.imp.KERNEL32.dll_GetVersion]
xor edx, edx
mov dl, ah
mov dword [0x100bd10], edx
mov ecx, eax
and ecx, 0xff
mov dword [0x100bd0c], ecx
shl ecx, 8
add ecx, edx
mov dword [0x100bd08], ecx
shr eax, 0x10
mov dword [0x100bd04], eax
call fcn.010050a0
test eax, eax
jne 0x1003bca
push 0x1c
call fcn.01003d30
add esp, 4
mov dword [ebp - 4], 0
call fcn.01004ea0
call fcn.01004e90
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x100c230], eax
call fcn.01004850
mov dword [0x100bce4], eax
test eax, eax
je 0x1003bfd
mov eax, dword [0x100c230]
test eax, eax
jne 0x1003c07
push 0xffffffffffffffff
call fcn.010041b0
add esp, 4
call fcn.010045a0
call fcn.010044b0
call fcn.01004180
mov esi, dword [0x100c230]
mov dword [ebp - 0x64], esi
cmp byte [esi], 0x22
jne 0x1003ce6
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
cmp al, 0x22
je 0x1003c4e
test al, al
je 0x1003c4e
and eax, 0xff
push eax
call fcn.01004450
add esp, 4
test eax, eax
je 0x1003c28
inc esi
mov dword [ebp - 0x64], esi
jmp 0x1003c28
cmp byte [esi], 0x22
jne 0x1003c57
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
test al, al
je 0x1003c67
cmp al, 0x20
ja 0x1003c67
inc esi
mov dword [ebp - 0x64], esi
jmp 0x1003c57
mov dword [ebp - 0x30], 0
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x30], 1
je 0x1003c88
mov eax, dword [ebp - 0x2c]
and eax, 0xffff
jmp 0x1003c8d
mov eax, 0xa
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov dword [ebp - 0x60], eax
push eax
call fcn.010041b0
jmp 0x1003ccb
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [esi], 0x20
jbe 0x1003c57
inc esi
mov dword [ebp - 0x64], esi
jmp 0x1003ce6

Function at 0x1003d30
Capabilities:
Terminate process

Disassembly:
cmp dword [0x100bcec], 1
jne 0x1003d3e
call fcn.010052b0
mov eax, dword [esp + 4]
push eax
call fcn.010052f0
add esp, 4
push 0xff
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x10041f0
Capabilities:
Terminate process

Disassembly:
mov eax, dword [0x100bd40]
push ebx
push ebp
mov ebp, dword [esp + 0xc]
cmp eax, 1
push esi
jne 0x100420f
push ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
test eax, eax
mov dword [0x100bd3c], 1
mov byte [0x100bd38], bl
jne 0x1004269
mov ecx, dword [0x100c22c]
test ecx, ecx
je 0x1004257
mov esi, dword [0x100c228]
sub esi, 4
cmp esi, ecx
jb 0x1004257
mov eax, dword [esi]
test eax, eax
je 0x1004250
call eax
mov ecx, dword [0x100c22c]
sub esi, 4
cmp esi, ecx
jae 0x1004242
push 0x1009018
push 0x1009014
call fcn.010042a0
add esp, 8
push 0x1009020
push 0x100901c
call fcn.010042a0
add esp, 8
test ebx, ebx
jne 0x1004290
push ebp
mov dword [0x100bd40], 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop esi
pop ebp
pop ebx
ret

Function at 0x1004850
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [0x100be50]
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
push esi
xor esi, esi
xor ebx, ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test eax, eax
jne 0x1004892
call edi
mov esi, eax
test esi, esi
je 0x100487c
mov eax, 1
jmp 0x100488d
call ebp
mov ebx, eax
test ebx, ebx
je 0x100499f
mov eax, 2
mov dword [0x100be50], eax
cmp eax, 1
jne 0x1004932
test esi, esi
jne 0x10048ab
call edi
mov esi, eax
test esi, esi
je 0x100499f
cmp word [esi], 0
mov eax, esi
je 0x10048c5
add eax, 2
cmp word [eax], 0
jne 0x10048b3
add eax, 2
cmp word [eax], 0
jne 0x10048b3
sub eax, esi
push 0
sar eax, 1
inc eax
push 0
mov ebp, eax
push 0
push 0
push ebp
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
je 0x1004924
push edi
call fcn.01003fc0
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x1004924
push 0
push 0
push edi
push ebx
push ebp
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x1004916
push ebx
call fcn.01004070
add esp, 4
xor ebx, ebx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
cmp eax, 2
jne 0x100499f
test ebx, ebx
jne 0x1004943
call ebp
mov ebx, eax
test ebx, ebx
je 0x100499f
mov cl, byte [ebx]
mov eax, ebx
test cl, cl
je 0x100495b
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x100494b
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x100494b
sub eax, ebx
inc eax
mov esi, eax
push esi
call fcn.01003fc0
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x100497d
push ebx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov ecx, esi
mov esi, ebx
mov eax, ecx
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
Function at 0x10052f0
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x1a8
mov eax, 0x1009670
push ebx
push ebp
push esi
push edi
xor ebp, ebp
cmp ecx, dword [eax]
je 0x1005314
add eax, 8
inc ebp
cmp eax, 0x1009700
jb 0x1005305
cmp ecx, dword [ebp*8 + 0x1009670]
jne 0x10054bb
mov eax, dword [0x100bcec]
cmp eax, 1
je 0x100547d
test eax, eax
jne 0x1005340
cmp dword [0x10094a8], 1
je 0x100547d
cmp ecx, 0xfc
je 0x10054bb
lea eax, [esp + 0xb4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x100537b
mov ecx, 5
mov esi, 0x100185c
lea edi, [esp + 0xb4]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
xor eax, eax
lea ebx, [esp + 0xb4]
repne scasb al, byte es:[edi]
not ecx
cmp ecx, 0x3c
jbe 0x10053c4
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 3
mov ebx, ecx
lea ecx, [esp + 0xb8]
sub ecx, 0x3b
push 0x1001858
add ebx, ecx
push ebx
call fcn.010067f0
add esp, 0xc
mov ecx, 6
mov esi, 0x100183c
lea edi, [esp + 0x14]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
or ecx, 0xffffffff
mov edi, ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x14]
mov ebx, ecx
mov esi, edi
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x14]
and ecx, 3
push 0x12010
rep movsb byte es:[edi], byte [esi]
mov edi, 0x1001838
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x1001810
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x1c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp*8 + 0x1009674]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x1c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.01006760
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
mov eax, dword [0x100c120]
test eax, eax
je 0x100548e
mov esi, dword [eax + 0x10]
cmp esi, 0xffffffff
jne 0x1005498
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
mov edx, dword [ebp*8 + 0x1009674]
lea ecx, [esp + 0x10]
push 0
push ecx
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
Function at 0x403a8a
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4093c8
cmp edx, dword [eax]
je 0x403aac
add eax, 8
inc ecx
cmp eax, 0x409458
jl 0x403a9d
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4093c8]
jne 0x403bda
mov eax, dword [0x409c68]
cmp eax, 1
je 0x403bb4
test eax, eax
jne 0x403add
cmp dword [0x407214], 1
je 0x403bb4
cmp edx, 0xfc
je 0x403bda
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x403b14
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00404700
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004047f0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x403b57
lea eax, [ebp - 0x1a4]
push eax
call fcn.004047f0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x406488
push edi
call fcn.00404d70
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00404700
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00404710
lea eax, [ebp - 0xa0]
push 0x406468
push eax
call fcn.00404710
push dword [esi + 0x4093cc]
lea eax, [ebp - 0xa0]
push eax
call fcn.00404710
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00404ce2
add esp, 0x2c
pop edi
jmp 0x403bda
lea eax, [ebp + 8]
lea esi, [esi + 0x4093cc]
push 0
push eax
push dword [esi]
call fcn.004047f0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x4035ac
Capabilities:
Generate random numbers using the delphi lcg

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

Function at 0x41ce78
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 0x41cea9
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41ce91
add dl, dl
jne 0x41ceb4
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cf05
xor eax, eax
add dl, dl
jne 0x41cec1
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cfa2
add dl, dl
jne 0x41ced0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cedb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cee6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cef1
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x41cefb
mov ebx, edi
sub ebx, eax
mov al, byte [ebx]
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x41cea0
mov eax, 1
add dl, dl
jne 0x41cf13
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cf1e
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cf0a
sub eax, ebx
mov ebx, 1
jne 0x41cf51
mov ecx, 1
add dl, dl
jne 0x41cf37
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41cf42
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cf2e
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41cea0
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x41cf68
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41cf73
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cf5f
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 0x41cea0
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x41cfc3
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 0x41cea0
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 0x41e6ac
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], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x513b6b
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
mov ecx, ebx
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [ecx + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x78]
test edx, edx
je 0x41e75d
add edx, ebx
mov eax, edx
mov esi, dword [eax + 0x18]
mov edx, dword [eax + 0x1c]
add edx, ebx
mov dword [ebp - 0x10], edx
mov edi, dword [eax + 0x20]
add edi, ebx
mov edx, dword [eax + 0x24]
add edx, ebx
mov dword [ebp - 0xc], edx
mov edx, dword [ebp - 4]
cmp edx, 0xffff
jbe 0x41e746
test esi, esi
jbe 0x41e75d
mov eax, dword [edi]
add eax, ebx
mov edx, dword [ebp - 4]
call fcn.004088ec
test eax, eax
jne 0x41e738
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 0x41e75d
add dword [ebp - 0xc], 2
add edi, 4
dec esi
test esi, esi
ja 0x41e715
jmp 0x41e75d
mov ecx, edx
sub ecx, dword [eax + 0x10]
cmp ecx, dword [eax + 0x14]
jae 0x41e75d
mov eax, ecx
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 0x513b72
ret
Function at 0x41f044
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], ecx
mov word [ebp - 2], dx
xor eax, eax
push ebp
push 0x5145f3
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
call fcn.00404cd0
xor ebx, ebx
mov eax, ebx
and eax, 0x80000001
jns 0x41f07f
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x41f098
lea eax, [ebp - 0x10]
mov edx, dword [0x52f30c]
mov edx, dword [edx]
mov edx, dword [edx + 0xc]
call fcn.00404d30
jmp 0x41f0ab
lea eax, [ebp - 0x10]
mov edx, dword [0x52f30c]
mov edx, dword [edx]
mov edx, dword [edx + 0x10]
call fcn.00404d30
lea eax, [ebp - 0x10]
mov edx, ebx
sar edx, 1
jns 0x41f0b7
adc edx, 0
mov edx, dword [edx*4 + 0x52e154]
call fcn.00404f20
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 0x10]
call fcn.00404f04
push eax
call fcn.00406b1c
mov esi, eax
cmp esi, 0xffffffff
je 0x41f1c5
mov eax, 0x40
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0x40
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x41f1b8
mov eax, edi
cmp word [eax], 0x5a4d
jne 0x41f1b8
push 0
push 0
mov eax, dword [eax + 0x3c]
push eax
push esi
call fcn.00406ddc
mov eax, edi
call fcn.00403288
mov eax, 0x18
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0x18
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x41f1b8
mov eax, edi
cmp dword [eax], 0x4550
jne 0x41f1b8
add eax, 4
mov dx, word [eax]
cmp dx, 0x14c
jb 0x41f1b8
cmp dx, 0x150
ja 0x41f1b8
mov eax, edi
call fcn.00403288
mov eax, 0xe0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0xe0
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x41f1b8
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 2]
jne 0x41f1b8
mov eax, dword [eax + 0x10]
mov edx, dword [ebp - 8]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
mov eax, edi
call fcn.00403288
push esi
call fcn.00406ad4
mov eax, dword [ebp + 8]
mov eax, dword [eax]
xor edx, edx
call fcn.0040502c
jne 0x41f1dd
inc ebx
cmp ebx, 0x19
jne 0x41f071
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5145fa
lea eax, [ebp - 0x10]
call fcn.00404cd0
ret