joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5abd90
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov eax, 0x28
call fcn.005c98e0
mov eax, dword [0x6b1a94]
xor eax, esp
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x30]
mov dword [esp], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x18], eax
push ebx
push ebp
movzx ebx, byte [eax]
lea ebp, [eax + 1]
mov edx, ebp
shl ebx, 0x18
push esi
push edi
mov edi, dword [esp + 0x50]
movzx eax, byte [edx]
movzx ecx, byte [edx + 3]
shl eax, 0x10
or ebx, eax
shl ecx, 0x18
movzx eax, byte [edx + 1]
shl eax, 8
or ebx, eax
mov esi, dword [edi]
movzx eax, byte [edx + 2]
or ebx, eax
mov dword [esp + 0x14], edi
movzx eax, byte [edx + 4]
shl eax, 0x10
or ecx, eax
mov dword [esp + 0x24], ebp
movzx eax, byte [edx + 6]
mov dword [esp + 0x2c], ecx
movzx ecx, byte [edx + 5]
mov edx, dword [esp + 0x2c]
shl ecx, 8
or ecx, eax
mov dword [esp + 0x18], ebx
mov eax, ebx
mov byte [esp + 0x2f], bl
shr eax, 0x18
or edx, ecx
mov byte [esp + 0x2c], al
mov eax, ebx
shr eax, 0x10
mov byte [esp + 0x2d], al
mov eax, ebx
shr eax, 8
mov byte [esp + 0x2e], al
mov eax, edx
shr eax, 0x18
mov byte [esp + 0x30], al
mov eax, edx
shr eax, 0x10
mov byte [esp + 0x31], al
mov eax, edx
shr eax, 8
mov byte [esp + 0x32], al
mov eax, dword [esp + 0x44]
mov dword [esp + 0x1c], edx
mov byte [esp + 0x33], dl
test eax, eax
je 0x5abf55
mov ecx, dword [esp + 0x10]
mov edi, dword [esp + 0x3c]
sub ecx, edi
mov dword [esp + 0x10], ecx
xor ebp, ebp
nop dword [eax]
dec eax
mov dword [esp + 0x44], eax
test esi, esi
jne 0x5abee5
push dword [esp + 0x20]
lea eax, [esp + 0x1c]
push eax
call fcn.005ab7a0
mov ebx, dword [esp + 0x20]
add esp, 8
mov edx, dword [esp + 0x1c]
mov eax, ebx
shr eax, 0x18
mov byte [esp + 0x2c], al
mov eax, ebx
mov ecx, dword [esp + 0x10]
shr eax, 0x10
mov byte [esp + 0x2d], al
mov eax, ebx
shr eax, 8
mov byte [esp + 0x2e], al
mov eax, edx
shr eax, 0x18
mov byte [esp + 0x30], al
mov eax, edx
shr eax, 0x10
mov byte [esp + 0x31], al
mov eax, edx
shr eax, 8
inc ebp
mov byte [esp + 0x2f], bl
mov byte [esp + 0x32], al
mov byte [esp + 0x33], dl
mov al, byte [esp + esi + 0x2c]
inc esi
xor al, byte [edi]
and esi, 7
mov byte [ecx + edi], al
inc edi
mov eax, dword [esp + 0x44]
test eax, eax
jne 0x5abe80
test ebp, ebp
mov ebp, dword [esp + 0x24]
je 0x5abf3c
mov ecx, dword [esp + 0x28]
mov eax, ebx
shr eax, 0x18
mov byte [ecx], al
mov eax, ebx
shr eax, 0x10
mov byte [ebp], al
mov eax, ebx
shr eax, 8
mov byte [ebp + 1], al
mov eax, edx
shr eax, 0x18
mov byte [ebp + 2], bl
mov byte [ebp + 3], al
mov eax, edx
shr eax, 0x10
mov byte [ebp + 4], al
mov eax, edx
shr eax, 8
mov byte [ebp + 5], al
mov byte [ebp + 6], dl
mov eax, dword [esp + 0x14]
pop edi
mov dword [eax], esi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.005c8db3
add esp, 0x28
ret
mov ecx, dword [esp + 0x34]
mov dword [edi], esi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.005c8db3
add esp, 0x28
ret
Function at 0x5b5130
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 0xc]
push ebx
push ebp
mov ebp, dword [esp + 0x10]
push edi
mov eax, dword [ebp + 4]
cmp eax, dword [ecx + 4]
jge 0x5b5147
mov edi, ecx
jmp 0x5b514b
mov edi, ebp
mov ebp, ecx
mov ebx, dword [esp + 0x10]
mov eax, dword [edi + 4]
cmp eax, dword [ebx + 8]
jg 0x5b515b
mov eax, ebx
jmp 0x5b5165
push eax
push ebx
call fcn.00520100
add esp, 8
test eax, eax
jne 0x5b516d
pop edi
pop ebp
pop ebx
ret
push esi
xor esi, esi
cmp dword [ebp + 4], esi
jle 0x5b518b
mov eax, dword [edi]
mov ecx, dword [ebp]
mov edx, dword [eax + esi*4]
mov eax, dword [ebx]
xor edx, dword [ecx + esi*4]
mov dword [eax + esi*4], edx
inc esi
cmp esi, dword [ebp + 4]
jl 0x5b5175
cmp esi, dword [edi + 4]
jge 0x5b51a0
mov eax, dword [edi]
mov ecx, dword [ebx]
mov eax, dword [eax + esi*4]
mov dword [ecx + esi*4], eax
inc esi
cmp esi, dword [edi + 4]
jl 0x5b5190
mov ecx, dword [edi + 4]
mov dword [ebx + 4], ecx
pop esi
test ecx, ecx
jle 0x5b51c4
mov edx, dword [ebx]
add edx, 0xfffffffc
lea edx, [edx + ecx*4]
mov eax, dword [edx]
lea edx, [edx - 4]
test eax, eax
jne 0x5b51c1
dec ecx
test ecx, ecx
jg 0x5b51b3
mov dword [ebx + 4], ecx
pop edi
pop ebp
mov eax, 1
pop ebx
ret
Function at 0x5cc245
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret

Function at 0x6062fc
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0060617b

Function at 0x60a575
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0060a235
Function at 0x4099b1
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x417354]
jne 0x4099bb
repz ret
jmp fcn.0040e58c

Function at 0x412294
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x417354]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0040c41d
and dword [ebp - 0x14], 0
cmp dword [0x434d68], 0
mov dword [ebp - 0x18], eax
jne 0x412347
push 0x403774
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4123ef
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x403768
push ebx
call edi
test eax, eax
je 0x4123ef
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x403758
push ebx
mov dword [0x434d68], eax
call edi
push eax
call esi
push 0x403744
push ebx
mov dword [0x434d6c], eax
call edi
push eax
call esi
push 0x403728
push ebx
mov dword [0x434d70], eax
call edi
push eax
call esi
mov dword [0x434d78], eax
test eax, eax
je 0x412347
push 0x403710
push ebx
call edi
push eax
call esi
mov dword [0x434d74], eax
mov eax, dword [0x434d74]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x4123a0
cmp dword [0x434d78], ecx
je 0x4123a0
push eax
call esi
push dword [0x434d78]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4123a0
test ebx, ebx
je 0x4123a0
call edi
test eax, eax
je 0x412397
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x412397
test byte [ebp - 8], 1
jne 0x4123a0
or dword [ebp + 0x10], 0x200000
jmp 0x4123d3
mov eax, dword [0x434d6c]
cmp eax, dword [ebp - 0x18]
je 0x4123d3
push eax
call esi
test eax, eax
je 0x4123d3
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4123d3
mov eax, dword [0x434d70]
cmp eax, dword [ebp - 0x18]
je 0x4123d3
push eax
call esi
test eax, eax
je 0x4123d3
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x434d68]
call esi
test eax, eax
je 0x4123ef
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x4123f1
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004099b1
leave
ret
Function at 0x4141d0
Capabilities:
Delete directory
Delete file
Get disk information
Read .ini file

Disassembly:
sub esp, 0xc00
cmp dword [0x6aff3c], 0x37
jne 0x414242
push 0
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
push 0x403f44
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
lea eax, [esp + 0x404]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x403fdc
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
lea ecx, [esp]
push ecx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
call dword [sym.imp.KERNEL32.dll_DebugBreak]
push 0x404008
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
lea edx, [esp + 0x804]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_FindNextVolumeMountPointA]
mov eax, dword [0x6b0b20]
mov edx, dword [0x6acf9c]
mov cl, byte [eax + esi + 0x38d6]
mov byte [edx + esi], cl
add esp, 0xc00
ret
Function at 0x4142d0
Capabilities:
Connect pipe
Read pipe
Write pipe

Disassembly:
sub esp, 0x824
cmp dword [0x6aff3c], 0x60b
mov ecx, dword [esp + 0x828]
mov eax, dword [ecx]
mov edx, dword [0x431e2c]
push ebx
push ebp
mov ebp, dword [0x431e34]
push esi
mov esi, dword [ecx + 4]
mov ecx, dword [0x431e28]
mov dword [esp + 0x20], ecx
mov ecx, dword [0x431e30]
mov ebx, 0xc6ef3720
push edi
mov dword [esp + 0x18], eax
mov dword [esp + 0x20], ebx
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], ecx
jne 0x414341
push 0
lea edx, [esp + 0x20]
push edx
push 0
lea eax, [esp + 0x40]
push eax
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CallNamedPipeW]
mov eax, dword [esp + 0x18]
mov dword [esp + 0x1c], 0x20
jmp 0x414354
mov eax, dword [esp + 0x18]
mov ecx, eax
shl ecx, 4
cmp dword [0x6aff3c], 5
mov dword [esp + 0x10], ecx
jne 0x41437e
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasExesLengthW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetThreadAffinityMask]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
add ecx, dword [esp + 0x2c]
lea edi, [ebx + eax]
shr eax, 5
cmp dword [0x6aff3c], 0x1b
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], eax
jne 0x4143be
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SearchPathW]
push 0x403f18
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetLocaleInfoW]
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
add eax, ebp
xor eax, edi
xor eax, ecx
sub esi, eax
mov dword [esp + 0x14], eax
mov eax, esi
shl eax, 4
cmp dword [0x6aff3c], 0x78c
mov dword [0x6acfa0], 0
mov dword [esp + 0x10], eax
jne 0x414403
push 0
lea ecx, [esp + 0x34]
push ecx
push 0
lea edx, [esp + 0x40]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_ReadConsoleW]
mov eax, dword [esp + 0x24]
add dword [esp + 0x10], eax
mov eax, esi
shr eax, 5
mov dword [0x6acfa8], 0xff6b3619
mov dword [0x6acfac], 0xffffffff
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x28]
add dword [esp + 0x14], eax
lea ecx, [ebx + esi]
xor dword [esp + 0x10], ecx
mov eax, dword [esp + 0x14]
xor dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
sub dword [esp + 0x18], eax
cmp dword [0x6aff3c], 0x93
jne 0x414465
push 0x403f58
lea edx, [esp + 0x38]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
jmp 0x414472
lea eax, [esp + 0x20]
call fcn.00414260
mov ebx, dword [esp + 0x20]
dec dword [esp + 0x1c]
jne 0x414350
mov eax, dword [esp + 0x838]
mov ecx, dword [esp + 0x18]
pop edi
mov dword [eax + 4], esi
pop esi
pop ebp
mov dword [eax], ecx
pop ebx
add esp, 0x824
ret 4
Function at 0xfdf0f0
Capabilities:
Encode data using xor

Disassembly:
jmp 0xfdf0fa
pushal
call 0xfdf100
pop ebp
sub ebp, 0x10
sub ebp, 0xbdf0f0
jmp 0xfdf116
mov eax, 0xbdf0f0
add eax, ebp
add eax, 0x4c
mov ecx, 0x5b5
mov edx, 0x16dd2e56
xor byte [eax], dl
inc eax
dec ecx
jne 0xfdf12d
jmp 0xfdf140
fstp qword [ebx + 0x566adfdd]
push esi
push esi
xlatb
xchg edi, eax
scasb al, byte es:[edi]
push esi
push esi
push esi
push ebp
wait
out dx, al
push ebx
push esi
push esi
push esi
in al, dx
jle 0xfdf1ae
push esi
push esi
mov eax, dword [0xdd9e55b4]
xlatb
pop edx
push esi
push esi
push esi
push ebp
xchg ebx, eax
push es
invalid
pop ecx
shl dword [edx + 0xba9a9a9], cl
xchg esp, eax
pop edx
push esi
fstp st(2)
jb 0xfdf20e
push esi
push esi
push esi
add ch, ah
dec ebx
push esi
iretd
fisttp qword [edx + 0x6f]
salc
lodsd eax, dword [esi]
mov esi, 0x564cd259
push esi
push esi
salc
lodsd eax, dword [esi]
mov edi, 0x5647d259
push esi
push esi
xor bh, dl
lodsd eax, dword [esi]
test eax, 0x43d25973
push esi
push esi
push esi
pop ss
mov edi, 0xa9a9a99a
jg 0xfdf250
outsd dx, dword [esi]
push edi
aad 0x97
push ebx
aad 0xbe
push edx
mov edi, 0xa9a9a9eb
jg 0xfdf247
outsd dx, dword [esi]
push esp
aad 0x97
push eax
aad 0xbc
push edx
aad 0xbe
push ebx
mov edi, 0xa9a9a9fd
fnstsw word [edx + 0x72]
invalid
Function at 0x410c20
Capabilities:
Get common file path

Disassembly:
sub esp, 0x47c
push ebx
push edi
xor ebx, ebx
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x85]
mov byte [esp + 0x84], bl
push 0x400
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x88]
mov dword [esp + 0x1c], 0
push eax
push ebx
mov dword [esp + 0x20], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x104
push str.C:Windows
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea ecx, [esp + 0x84]
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [0x416a74], eax
mov ecx, dword [eax + 0x3c]
add ecx, eax
mov dword [0x416a78], ecx
cmp dword [ecx], 0x4550
jne 0x410fd5
xor edx, edx
push ebp
mov dx, word [ecx + 0x14]
push esi
mov esi, edx
mov edx, dword [0x416a64]
mov edi, ecx
lea edx, [edx + edx*4]
add edi, esi
lea esi, [edi + edx*8 + 0x18]
mov edx, dword [0x416030]
mov edi, edx
inc edx
cmp edi, 1
mov dword [0x416a7c], esi
mov dword [0x416030], edx
jne 0x410d9d
mov edx, 0x410c00
sub edx, eax
mov dword [0x416a5c], edx
xor edx, edx
mov dx, word [ecx + 6]
mov dword [0x416a80], edx
mov edi, dword [ecx + 0x80]
mov ebp, dword [ecx + 0x28]
mov dword [esp + 0x14], edi
mov edi, dword [ecx + 0xa0]
mov dword [esp + 0x18], ebp
mov dword [esp + 0x24], edi
xor edi, edi
test edx, edx
jmp 0x41b1ed
jmp 0xffb1b3e1
pop edi
xor eax, eax
pop ebx
add esp, 0x47c
ret

Function at 0x4113d6
Capabilities:
Terminate process

Disassembly:
cmp dword [0x416bb0], 2
je 0x4113e4
jmp 0x41a941
push dword [esp + 4]
call fcn.00412769
pop ecx
push 0xff
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x412769
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x416190
cmp edx, dword [eax]
je 0x41278b
add eax, 8
inc ecx
cmp eax, 0x416220
jl 0x41277c
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x416190]
jne 0x4128b9
mov eax, dword [0x416bb0]
cmp eax, 1
je 0x412893
test eax, eax
jne 0x4127bc
cmp dword [0x4160e4], 1
je 0x412893
cmp edx, 0xfc
je 0x4128b9
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4127f3
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00413670
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00413490
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x412836
lea eax, [ebp - 0x1a4]
push eax
call fcn.00413490
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x41545c
push edi
call fcn.00413f00
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00413670
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00413680
lea eax, [ebp - 0xa0]
push 0x41543c
push eax
call fcn.00413680
push dword [esi + 0x416194]
lea eax, [ebp - 0xa0]
push eax
jmp 0x41b714
lea eax, [ebp + 8]
lea esi, [esi + 0x416194]
push 0
push eax
push dword [esi]
call fcn.00413490
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 0x1057058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x10571a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x105707e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x105706a
add dl, dl
jne 0x1057089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x10570dc
xor eax, eax
add dl, dl
jne 0x1057096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x105717d
add dl, dl
jne 0x10570a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x10570b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x10570bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x10570c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x10570d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x1057075
mov eax, 1
add dl, dl
jne 0x10570ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x10570f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x10570e1
sub eax, ebx
mov ebx, 1
jne 0x1057128
mov ecx, 1
add dl, dl
jne 0x105710e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1057119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1057105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1057075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x105713f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x105714a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1057136
cmp eax, 0x7d00
jae 0x105716d
cmp eax, 0x500
jb 0x1057168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1057075
cmp eax, 0x7f
ja 0x1057170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1057075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x105719e
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 0x1057075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x4035ac
Capabilities:
Generate random numbers using the delphi lcg

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

Function at 0x41d330
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 0x41d361
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41d349
add dl, dl
jne 0x41d36c
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41d3bd
xor eax, eax
add dl, dl
jne 0x41d379
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41d45a
add dl, dl
jne 0x41d388
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41d393
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41d39e
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41d3a9
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x41d3b3
mov ebx, edi
sub ebx, eax
mov al, byte [ebx]
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x41d358
mov eax, 1
add dl, dl
jne 0x41d3cb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41d3d6
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41d3c2
sub eax, ebx
mov ebx, 1
jne 0x41d409
mov ecx, 1
add dl, dl
jne 0x41d3ef
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41d3fa
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41d3e6
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41d358
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x41d420
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41d42b
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41d417
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 0x41d358
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x41d47b
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 0x41d358
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 0x41eb18
Capabilities:
64-bit execution via heavens gate

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
push ebx
push esi
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0x14]
add edx, edx
inc edx
test edx, edx
js 0x41eb34
mov ecx, dword [eax + edx*4]
dec edx
push ecx
jns 0x41eb2d
mov dword [ebp + 0x10], esp
mov ecx, dword [ebp + 0x14]
mov esi, dword [ebp + 0x10]
lea ebx, [ecx + 1]
mov eax, ebx
cdq
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
test ebx, ebx
jle 0x41eb6e
mov eax, dword [esi]
mov dword [ebp - 0x10], eax
mov eax, dword [esi + 4]
mov dword [ebp - 0xc], eax
sub dword [ebp - 0x30], 1
sbb dword [ebp - 0x2c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
cmp ebx, 1
jle 0x41eb95
mov eax, dword [esi + 8]
mov dword [ebp - 0x18], eax
mov eax, dword [esi + 0xc]
mov dword [ebp - 0x14], eax
sub dword [ebp - 0x30], 1
sbb dword [ebp - 0x2c], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
cmp ebx, 2
jle 0x41ebbc
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x20], eax
mov eax, dword [esi + 0x14]
mov dword [ebp - 0x1c], eax
sub dword [ebp - 0x30], 1
sbb dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
cmp ebx, 3
jle 0x41ebe3
mov eax, dword [esi + 0x18]
mov dword [ebp - 0x28], eax
mov eax, dword [esi + 0x1c]
mov dword [ebp - 0x24], eax
sub dword [ebp - 0x30], 1
sbb dword [ebp - 0x2c], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
lea eax, [esi + 0x20]
xor edx, edx
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], edx
xor eax, eax
mov dword [ebp - 8], eax
mov word [ebp - 2], 0
mov word [ebp - 2], fs
mov eax, 0x2b
mov fs, ax
mov dword [ebp - 8], esp
and esp, 0xfffffff0
push 0x33
call fcn.0041ec23

Function at 0x41ecb8
Capabilities:
64-bit execution via heavens gate

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
cmp dword [ebp + 8], 0
je 0x41ed29
cmp dword [ebp + 0x10], 0
jne 0x41ecce
cmp dword [ebp + 0xc], 0
je 0x41ed29
cmp dword [ebp + 0x14], 0
je 0x41ed29
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 4], eax
push 0x33
call fcn.0041ece9
pop ecx
pop ecx
pop ebp
ret

Function at 0x41ed30
Capabilities:
64-bit execution via heavens gate

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
xor ecx, ecx
cmp dword [ebp + 8], 0
je 0x41edb4
cmp dword [ebp + 0x10], 0
jne 0x41ed48
cmp dword [ebp + 0xc], 0
je 0x41edb4
cmp dword [ebp + 0x14], 0
je 0x41edb4
mov byte [ebp - 9], 0
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 4], eax
push 0x33
call fcn.0041ed67
mov eax, ecx
mov esp, ebp
pop ebp
ret

Function at 0x41edbc
Capabilities:
64-bit execution via heavens gate

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
push 0x33
call fcn.0041edd7
Function at 0x41f5a0
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 0x707a8e
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 0x41f5ef
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 0x41f60e
mov ecx, edx
add ecx, ebx
jmp 0x41f60e
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 0x41f60e
mov ecx, edx
add ecx, ebx
test ecx, ecx
je 0x41f680
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 0x41f669
test esi, esi
jbe 0x41f680
mov eax, dword [edi]
add eax, ebx
mov edx, dword [ebp - 4]
call fcn.004088f4
test eax, eax
jne 0x41f65b
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 0x41f680
add dword [ebp - 0xc], 2
add edi, 4
dec esi
test esi, esi
ja 0x41f638
jmp 0x41f680
mov edx, eax
sub edx, dword [ecx + 0x10]
cmp edx, dword [ecx + 0x14]
jae 0x41f680
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 0x707a95
ret