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

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov byte [ebp - 2], 0
jmp 0x4019d3
mov al, byte [ebp - 2]
add al, 1
mov byte [ebp - 2], al
movzx ecx, byte [ebp - 2]
cmp ecx, 4
jge 0x401a39
mov byte [ebp - 1], 0
jmp 0x4019eb
mov dl, byte [ebp - 1]
add dl, 1
mov byte [ebp - 1], dl
movzx eax, byte [ebp - 1]
cmp eax, 4
jge 0x401a37
movzx ecx, byte [ebp - 2]
mov edx, dword [ebp + 0xc]
lea eax, [edx + ecx*4]
movzx ecx, byte [ebp - 1]
movzx edx, byte [ebp + 8]
shl edx, 2
movzx esi, byte [ebp - 2]
shl esi, 2
lea edx, [esi + edx*4]
movzx esi, byte [ebp - 1]
add esi, dword [ebp + 0x10]
movzx edx, byte [esi + edx]
movzx eax, byte [eax + ecx]
xor eax, edx
movzx ecx, byte [ebp - 1]
movzx edx, byte [ebp - 2]
mov esi, dword [ebp + 0xc]
lea edx, [esi + edx*4]
mov byte [edx + ecx], al
jmp 0x4019e2
jmp 0x4019cb
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x401a40
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
push ecx
mov byte [ebp - 2], 0
jmp 0x401a52
mov al, byte [ebp - 2]
add al, 1
mov byte [ebp - 2], al
movzx ecx, byte [ebp - 2]
cmp ecx, 4
jge 0x401aa0
mov byte [ebp - 1], 0
jmp 0x401a6a
mov dl, byte [ebp - 1]
add dl, 1
mov byte [ebp - 1], dl
movzx eax, byte [ebp - 1]
cmp eax, 4
jge 0x401a9e
movzx ecx, byte [ebp - 1]
mov edx, dword [ebp + 8]
lea eax, [edx + ecx*4]
movzx ecx, byte [ebp - 2]
movzx edx, byte [eax + ecx]
movzx eax, byte [ebp - 1]
mov ecx, dword [ebp + 8]
lea eax, [ecx + eax*4]
movzx ecx, byte [ebp - 2]
mov dl, byte [edx + str.cw]
mov byte [eax + ecx], dl
jmp 0x401a61
jmp 0x401a4a
mov esp, ebp
pop ebp
ret

Function at 0x402a10
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
push ecx
mov byte [ebp - 2], 0
jmp 0x402a22
mov al, byte [ebp - 2]
add al, 1
mov byte [ebp - 2], al
movzx ecx, byte [ebp - 2]
cmp ecx, 4
jge 0x402a70
mov byte [ebp - 1], 0
jmp 0x402a3a
mov dl, byte [ebp - 1]
add dl, 1
mov byte [ebp - 1], dl
movzx eax, byte [ebp - 1]
cmp eax, 4
jge 0x402a6e
movzx ecx, byte [ebp - 1]
mov edx, dword [ebp + 8]
lea eax, [edx + ecx*4]
movzx ecx, byte [ebp - 2]
movzx edx, byte [eax + ecx]
movzx eax, byte [ebp - 1]
mov ecx, dword [ebp + 8]
lea eax, [ecx + eax*4]
movzx ecx, byte [ebp - 2]
mov dl, byte [edx + 0x403108]
mov byte [eax + ecx], dl
jmp 0x402a31
jmp 0x402a1a
mov esp, ebp
pop ebp
ret

Function at 0x402dc0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
mov byte [ebp - 1], 0
jmp 0x402dd2
mov al, byte [ebp - 1]
add al, 1
mov byte [ebp - 1], al
movzx ecx, byte [ebp - 1]
cmp ecx, 0x10
jge 0x402dff
movzx edx, byte [ebp - 1]
movzx eax, byte [ebp - 1]
mov ecx, dword [ebp + 0xc]
movzx eax, byte [ecx + eax]
mov ecx, dword [ebp + 8]
movzx edx, byte [ecx + edx]
xor edx, eax
movzx eax, byte [ebp - 1]
mov ecx, dword [ebp + 8]
mov byte [ecx + eax], dl
jmp 0x402dca
mov esp, ebp
pop ebp
ret
Function at 0x417ed0
Capabilities:
Accept command line arguments
Link many functions at runtime

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push str.kernel32.dll
mov dword [esp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x417f42
push str.GetFileInformationByHandleEx
push esi
call edi
push str.SetFileInformationByHandle
push esi
mov dword [0x600998], eax
mov ebx, eax
call edi
push str.CreateHardLinkW
push esi
mov dword [0x6009a4], eax
mov ebp, eax
call edi
push str.CreateSymbolicLinkW
push esi
mov dword [0x6009ac], eax
call edi
test ebx, ebx
mov dword [0x600994], eax
je 0x417f42
test ebp, ebp
je 0x417f42
mov dword [0x6009a8], 3
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push eax
push ecx
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
push str.ntdll.dll
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov esi, eax
test esi, esi
je 0x417f95
test ebx, ebx
je 0x417f7b
mov edx, dword [0x600b54]
push 0x60082c
push edx
call dword [sym.imp.KERNEL32.dll_GetConsoleMode]
push str.NtCreateFile
push esi
call edi
push str.NtQueryDirectoryFile
push esi
mov dword [0x60099c], eax
call edi
mov dword [0x6009a0], eax
mov eax, dword [0x600998]
pop edi
pop esi
pop ebp
test eax, eax
pop ebx
je 0x417fac
mov dword [0x601520], 3
add esp, 8
ret
Function at 0x440d91
Capabilities:
Encode data using xor

Disassembly:
sbb dword [esi + 0x36cf145b], ebp
cmpsb byte [esi], byte es:[edi]
pop edi
jecxz 0x440d66
xchg dword [edx - 0x4a], esi
mov bh, 0x78
xchg edi, eax
jmp 0x440d73
pop es
xchg eax, esi
add dh, dh
jne 0x440cfd
in eax, dx
clc
call 0x714669f7
enter 0x9b7, 0xffffffffffffffba
pop es
or al, 0x31
mov ecx, dword [edi]
add al, 0xad
xchg dword [bp + si - 6], edx
xor al, 0xd8
sbb al, 0x5b
outsd dx, dword [esi]
mov dword [eax], esp
jg 0x440d32
aam 0xb9
aam 0xb9
push ecx
sbb cl, ah
in eax, dx
pop edi
xor al, 0x65
dec ebp
jmp 0x99fc2f2e
inc edi
cmp eax, 0x57c76242
xchg dword [esi - 0x2e3ccf71], ebx
out 0xcd, eax
shl byte [ebp + 0x15b29ed9], 1
in al, 0x81
int 0xd0
movsd dword es:[edi], dword [esi]
fstp dword [esi - 0x7e1bea4e]
lodsb al, byte [esi]
cmp dword [eax - 0x799e98d8], ebx
mov dword [0x48453fb2], eax
popal
xchg byte [ebx + 0x48453fb2], ah
or esi, dword [ebp - 0x45e35d64]
loop 0x440d19
cmpsb byte [esi], byte es:[edi]
add al, ah
pop edi
and ch, cl
movsb byte es:[edi], byte [esi]
dec edi
or dh, byte [ecx - 0x6de4e79d]
xchg edi, eax
jne 0x440d81
std
lodsb al, byte [esi]
jae 0x440df1
cwde
xor edx, dword [edi]
mov al, byte [0x68b68a70]
xor byte [ecx - 8], bh
jg 0x440e05
mov ch, 0x1d
dec edx
js 0x440d3e
mov bh, 0x76
sbb dword [ebx - 0x2ce1baf6], 0xffffff85
jp 0x440de6
mov cl, 0x4b
jp 0x440df4
jmp 0x81dec73f
cmp ah, byte [ecx - 0x69e77a36]
adc al, 0x34
mov al, 0xf7
pushal
mov ecx, 0x988e9a18
xor byte [eax - 0x1b15e87c], bl
invalid
add al, cl
add ah, dl
add eax, ecx
loop 0x440df7
enter 0xfffffffffffff349, 0x15
inc ecx
stosb byte es:[edi], al
stosd dword es:[edi], eax
loopne 0x440d81
dec ecx
adc eax, 0xe0abaa41
xor byte [eax - 0x4d4cbac2], 0x5f
mov al, 0x3e
inc ebp
mov bl, 0xb2
pop edi
add al, 0x5d
cmpsb byte [esi], byte es:[edi]
sbb edx, dword [ebp - 0x31aad16a]
outsb dx, byte [esi]
or dword [ebx + eax*8 + 0x60], edx
fistp word [ebp - 0x37]
loop 0x440e48
lcall 0x7f09, 0xd375326f
sub bl, bl
call 0xa2342610
jp 0x440dd0
invalid
lea eax, [edx + 0x78883e42]
fcomp dword [ebp - 0x7e]
mov cl, 0x14
int3
jl 0x440e24
test al, 0x1c
sub al, 0x6c
and ebx, 0xfffffff3
imul eax, dword [edx - 0x44], 0xffffff9b
push esi
jbe 0x440e4e
int1
enter 0x5c08, 0x7a
invalid
Function at 0x492ae1
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
mov ebx, ecx
mov dword [ebp - 0xc], ebx
push esi
push edi
test ebx, ebx
jne 0x492afd
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [ebx + 0xc984], 0xffffffff
jle 0x492b12
mov eax, 0xfffffff6
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test edx, edx
lea edi, [ebx + 0x11fb0]
mov eax, 0x4a2d20
mov ecx, 0x62
cmovne eax, edx
lea edx, [ebx + 0x12838]
mov esi, eax
mov dword [ebp - 0x2c], eax
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebx + 0x12138]
mov edi, 0x40
lea esi, [ebx + 0x9a0]
nop dword [eax]
nop dword [eax + eax]
lea eax, [esi - 0x80]
mov dword [ecx - 0x11e14], esi
mov dword [ecx - 0x11e18], eax
lea ecx, [ecx + 0x18]
mov dword [ecx - 0x14], edx
lea eax, [edx - 0x100]
mov dword [ecx - 0x18], eax
lea eax, [esi + 0x80]
mov dword [ecx - 0x11e28], eax
lea eax, [edx + 0x100]
mov dword [ecx - 0x10], eax
lea eax, [esi + 0x100]
mov dword [ecx - 0x11e24], eax
lea eax, [edx + 0x200]
mov dword [ecx - 0xc], eax
lea eax, [esi + 0x180]
mov dword [ecx - 0x11e20], eax
lea eax, [edx + 0x300]
mov dword [ecx - 8], eax
lea eax, [esi + 0x200]
mov dword [ecx - 0x11e1c], eax
add esi, 0x300
lea eax, [edx + 0x400]
add edx, 0x600
mov dword [ecx - 4], eax
sub edi, 1
jne 0x492b51
push dword [ebp - 0x2c]
add ebx, 0x320
xor edx, edx
mov ecx, ebx
mov dword [ebp - 8], ebx
call fcn.00497dd1
mov eax, ebx
mov dword [ebp - 0x20], edi
add esp, 4
mov dword [ebp - 4], edi
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x30], 3
Function at 0x492c08
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
call 0x102d7996
pop ds
inc esp
add byte [eax], al
Function at 0x4a9e21
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
mov ebx, ecx
mov dword [ebp - 0xc], ebx
push esi
push edi
test ebx, ebx
jne 0x4a9e3d
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [ebx + 0xc984], 0xffffffff
jle 0x4a9e52
mov eax, 0xfffffff6
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test edx, edx
lea edi, [ebx + 0x11fb0]
mov eax, 0x4a2d20
mov ecx, 0x62
cmovne eax, edx
lea edx, [ebx + 0x12838]
mov esi, eax
mov dword [ebp - 0x2c], eax
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebx + 0x12138]
mov edi, 0x40
lea esi, [ebx + 0x9a0]
nop dword [eax]
nop dword [eax + eax]
lea eax, [esi - 0x80]
mov dword [ecx - 0x11e14], esi
mov dword [ecx - 0x11e18], eax
lea ecx, [ecx + 0x18]
mov dword [ecx - 0x14], edx
lea eax, [edx - 0x100]
mov dword [ecx - 0x18], eax
lea eax, [esi + 0x80]
mov dword [ecx - 0x11e28], eax
lea eax, [edx + 0x100]
mov dword [ecx - 0x10], eax
lea eax, [esi + 0x100]
mov dword [ecx - 0x11e24], eax
lea eax, [edx + 0x200]
mov dword [ecx - 0xc], eax
lea eax, [esi + 0x180]
mov dword [ecx - 0x11e20], eax
lea eax, [edx + 0x300]
mov dword [ecx - 8], eax
lea eax, [esi + 0x200]
mov dword [ecx - 0x11e1c], eax
add esi, 0x300
lea eax, [edx + 0x400]
add edx, 0x600
mov dword [ecx - 4], eax
sub edi, 1
jne 0x4a9e91
push dword [ebp - 0x2c]
add ebx, 0x320
xor edx, edx
mov ecx, ebx
mov dword [ebp - 8], ebx
call fcn.004af111
mov eax, ebx
mov dword [ebp - 0x20], edi
add esp, 4
mov dword [ebp - 4], edi
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x30], 3

Function at 0x4a9fe8
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
enter 0xffffffffffffc18b, 0xffffffffffffffc1
call 0x8c12aaf5
rol ecx, 0xe8
or byte [ebx], cl
rcl ecx, 0xe8
Function at 0x4ab9d1
Capabilities:
Encode data using xor

Disassembly:
shr dword [edi - 0xf99b521], 0x33
js 0x4ab875
fisttp word [edx + 0x66]
lock xor edi, dword [eax - 7]
dec edx
test dword [edx], 0x66a2f95a
or esi, dword [ecx + edx + 0x76b661f7]
sub dword [ebx + 0x36], ebp
and dh, byte [esi + 0x11]
je 0x4ab8aa
invalid
sbb byte [edi - 0x3d], ah
jecxz 0x4ab873
ret
mov dword [eax], 0xc3ad90ef
pop ss
rol dword [edi], 1
mov eax, dword [0x478450f7]
cmpsb byte [esi], byte es:[edi]
mov al, 0xc9
inc ecx
stosb byte es:[edi], al
int1
mov edx, 0xcc208aa2
add edx, dword [ebx + ecx + 0x54]
push esp
and ch, dh
inc esi
test eax, 0x5ad6d132
mov dword es:[0x5f87], eax
jno 0x4ab8c9
inc esi
adc edi, ecx
add esp, dword [edi - 0xa]
sub byte [esi + 0x11], bh
imul byte [eax]
jle 0x4ab8de
je 0x4ab8da
sub dword [edx + ebx*8 + 0x4ab7910e], ecx
mov ecx, 0x264fdff1
jle 0x4ab8ed
jle 0x4ab8ed
mov edx, 0x5ef2a1b7
mov bh, 0xa1
pop esi
push ds
js 0x4ab958
invalid
dec eax
and eax, 0x6e903054
popal
sar byte [ecx], cl
mov byte [0x17b3541], al
adc eax, dword [edi - 0x575e133d]
pop ebx
inc esp
salc
outsb dx, byte [esi]
adc ebx, dword [edi - 0x5a1a11a8]
lodsb al, byte [esi]
jp 0x4ab905
cmpsb byte [esi], byte es:[edi]
dec esp
or al, dl
push esp
pop edi
call 0x157b1625
mov bl, 0x8f
mov byte [esi - 0x5b017fba], al
sub esp, dword [ecx + 0x2e]
int3
xchg ecx, eax
cmpsd dword [esi], dword es:[edi]
xor bl, 0x1f
sub ah, bh
cld
dec ecx
push ecx
pushal
inc ecx
pop ebp
bound esi, qword [edi]
je 0x4ab95f
xchg ebx, eax
int1
in al, dx
cmpsb byte [esi], byte es:[edi]
mov al, byte [0xd408110b]
or edx, dword [ecx]
or ah, dl
cwde
pop edi
xchg esi, eax
mov ah, 0x49
loope 0x4ab9df
mov byte [esi], ah
inc esp
jo 0x4ab96e
shl byte [ebx], 0xf6
push ebx
cmp dword [ebx + 0x22], 0xffffffd9
rol ecx, 0x29
mov ch, 0x40
xor eax, 0x617a68f0
jbe 0x4ab9e7
invalid
mov ecx, 0xed81054e
pop edi
cmp cl, cl
dec edx
sbb edx, dword [eax + 0x66a15b61]
invalid
pop ecx
mov eax, dword [0xfecadf04]
push ebp
pushal
and al, 0x6f
insb byte es:[edi], dx
sub ah, dh
push ecx
call 0xc0e3508c
in al, dx
pop eax
add byte [esi + 0x19a3b7ba], 0xc8
out 0x93, al
xchg ebx, eax
enter 0xffffffffffff9719, 0xffffffffffffffb1
inc esp
call 0xd81c70e5
xor al, 0xbf
cli
xor dh, 0xb4
jb 0x4ab98c
push ecx
jo 0x4ab967
and esi, ecx
pop esi
jns 0x4ab9ec
dec ebp
inc eax
or dword [eax], esi
mov cl, 0x38
jbe 0x4ab9b4
xchg ebp, eax
lodsb al, byte [esi]
lds ebx, [edx - 0x5b44b7fc]
sal byte [edx + edx], 1
mov ah, 0x26
xor dl, ch
push ds
scasb al, byte es:[edi]
pop edi
pop ebx
pushal
mov dh, 0x19
pushfd
cld
sahf
mov al, 0xef
pop ebp
dec eax
push eax
pop eax
rcl dword [edi - 5]
aaa
loopne 0x4aba0f
cmp cl, ah
test al, 0xa8
sbb al, 0x2a
fadd dword [edi]
dec edx
push cs
inc ebp
dec ebp
invalid
Function at 0x4abbd1
Capabilities:
Encode data using xor

Disassembly:
pop ss
sub dword [edi + 0x29], esp
adc ebp, dword [0x5c46756e]
iretd
and esp, dword [0xf6c05728]
lodsb al, byte [esi]
aaa
or dl, byte [edi - 0x4b]
jno 0x4abc1d
add eax, 0xf2665b8a
mov eax, 0x37a1763e
aad 0xc7
int1
cli
clc
dec byte [esi - 0x877980a]
not byte [edx]
push es
aad 0x51
xchg ecx, eax
lea ebp, [ecx + edx*2 + 0x44a51da5]
inc ebp
fidivr dword [eax - 0x27]
pop ebp
les ebx, [eax + 0x59a2c882]
mov ecx, 0xcafc51c8
lds ebx, [eax + 0x11]
lds eax, [edi - 0x4d]
call 0x1ed45059
jns 0x4abbb4
pop ebx
mov ebx, 0x6e5d5584
xchg edi, eax
and byte [esi + 0x18], dl
jns 0x4abc56
push esi
sbb byte [ecx + 0x2b], bh
jge 0x4abbb4
adc eax, 0x28e28dca
push ebx
stc
sub byte [ebx - 7], dl
pop ebp
scasb al, byte es:[edi]
pop ss
lodsb al, byte [esi]
daa
pop eax
std
xor esi, dword [ecx + 0x3a41b4c9]
cmp byte [esi - 0x24], 0x8f
sbb dword [esi - 0x6b233fdd], ebx
or al, 0xb
cmp byte [ebx + 0x57fb47b1], ah
call 0xd9c0977c
jne 0x4abc31
mov dl, 0x19
mov ah, 0x7a
pop ebp
pop edi
xlatb
pushal
mov dl, 0x98
or dword [edi - 0x27bea5bb], ebp
jo 0x4abc27
lcall 0x7459, 0x8cbba3ba
fstp xword [esi + edx*8 + 0x64]
int3

Function at 0x5f5339
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x5fd3f0
cmp edx, dword [eax]
je 0x5f535b
add eax, 8
inc ecx
cmp eax, 0x5fd480
jl 0x5f534c
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x5fd3f0]
jne 0x5f5489
mov eax, dword [0x601d94]
cmp eax, 1
je 0x5f5463
test eax, eax
jne 0x5f538c
cmp dword [0x5fd31c], 1
je 0x5f5463
cmp edx, 0xfc
je 0x5f5489
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x5f53c3
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.005f5d20
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.005f61b0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x5f5406
lea eax, [ebp - 0x1a4]
push eax
call fcn.005f61b0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x5fa7c4
push edi
call fcn.005f8080
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.005f5d20
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.005f5d30
lea eax, [ebp - 0xa0]
push 0x5fa7a4
push eax
call fcn.005f5d30
push dword [esi + 0x5fd3f4]
lea eax, [ebp - 0xa0]
push eax
call fcn.005f5d30
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.005f7ff4
add esp, 0x2c
pop edi
jmp 0x5f5489
lea eax, [ebp + 8]
lea esi, [esi + 0x5fd3f4]
push 0
push eax
push dword [esi]
call fcn.005f61b0
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 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
push 4
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x430072
nop
nop
mov ebx, 0x408ecc
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x50f60a50
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x430060
nop
mov eax, section..data
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x4300d2
nop
nop
mov ebx, 0x42e1d0
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x4b9954b4
nop
nop
nop
nop
nop
xor dword [eax], esi
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x4300c0
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x4035ac
Capabilities:
Generate random numbers using the delphi lcg

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

Function at 0x41cf44
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 0x41cf75
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cf5d
add dl, dl
jne 0x41cf80
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cfd1
xor eax, eax
add dl, dl
jne 0x41cf8d
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41d06e
add dl, dl
jne 0x41cf9c
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cfa7
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cfb2
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cfbd
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x41cfc7
mov ebx, edi
sub ebx, eax
mov al, byte [ebx]
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x41cf6c
mov eax, 1
add dl, dl
jne 0x41cfdf
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cfea
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cfd6
sub eax, ebx
mov ebx, 1
jne 0x41d01d
mov ecx, 1
add dl, dl
jne 0x41d003
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41d00e
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cffa
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41cf6c
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x41d034
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41d03f
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41d02b
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 0x41cf6c
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x41d08f
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 0x41cf6c
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 0x41f0a0
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 0xaad58e
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 0x41f0ef
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 0x41f10e
mov ecx, edx
add ecx, ebx
jmp 0x41f10e
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 0x41f10e
mov ecx, edx
add ecx, ebx
test ecx, ecx
je 0x41f180
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 0x41f169
test esi, esi
jbe 0x41f180
mov eax, dword [edi]
add eax, ebx
mov edx, dword [ebp - 4]
call fcn.004088ec
test eax, eax
jne 0x41f15b
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 0x41f180
add dword [ebp - 0xc], 2
add edi, 4
dec esi
test esi, esi
ja 0x41f138
jmp 0x41f180
mov edx, eax
sub edx, dword [ecx + 0x10]
cmp edx, dword [ecx + 0x14]
jae 0x41f180
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 0xaad595
ret
Function at 0x4202d8
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 word [ebp - 4], cx
mov byte [ebp - 1], dl
xor eax, eax
push ebp
push 0xaae8f3
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 0x420313
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x42032c
lea eax, [ebp - 0x10]
mov edx, dword [0xacb54c]
mov edx, dword [edx]
mov edx, dword [edx + 0xc]
call fcn.00404d30
jmp 0x42033f
lea eax, [ebp - 0x10]
mov edx, dword [0xacb54c]
mov edx, dword [edx]
mov edx, dword [edx + 0x10]
call fcn.00404d30
lea eax, [ebp - 0x10]
mov edx, ebx
sar edx, 1
jns 0x42034b
adc edx, 0
mov edx, dword [edx*4 + 0xaca378]
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 0x4204c5
mov eax, 0x40
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0x40
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x4204b8
mov eax, edi
cmp word [eax], 0x5a4d
jne 0x4204b8
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 - 8]
push eax
push 0x18
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x4204b8
mov eax, edi
cmp dword [eax], 0x4550
jne 0x4204b8
add eax, 4
mov dword [ebp - 0xc], eax
cmp byte [ebp - 1], 0
je 0x420456
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x8664
jne 0x420456
mov eax, edi
call fcn.00403288
mov eax, 0xf0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0xf0
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x420456
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 4]
jne 0x420456
mov eax, dword [eax + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
cmp byte [ebp - 1], 0
jne 0x4204b8
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x14c
jb 0x4204b8
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x150
ja 0x4204b8
mov eax, edi
call fcn.00403288
mov eax, 0xe0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0xe0
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x4204b8
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 4]
jne 0x4204b8
mov eax, dword [eax + 0x10]
mov edx, dword [ebp + 0xc]
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 0x4204dd
inc ebx
cmp ebx, 0x19
jne 0x420305
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0xaae8fa
lea eax, [ebp - 0x10]
call fcn.00404cd0
ret