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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 8], esi
mov esi, eax
mov dword [ebp - 4], edi
mov dword [ebp - 0xc], ebx
mov ebx, dword [eax + 0x146c]
mov ecx, dword [esi + 0x90]
mov eax, dword [eax + 0x1470]
mov edx, ecx
and eax, 0xfffffffe
imul edx, eax
sub eax, 2
imul eax, ecx
mov ecx, dword [esi + 0x26918]
add edx, ebx
lea edi, [edx - 1]
mov dword [ebp - 0x10], edi
add eax, ebx
xor edi, edi
mov dword [ebp - 0x14], eax
movzx eax, byte [ecx + edx - 1]
mov edx, dword [esi + 0x26910]
cmp eax, edx
je 0x5ab380
mov ebx, dword [ebp - 0x14]
movzx eax, byte [ebx + ecx]
cmp eax, edx
je 0x5ab3a0
lea edx, [esi + edi + 0x3ae6a]
mov ebx, dword [ebp - 0xc]
mov edi, dword [ebp - 4]
lea eax, [esi + 0x3aaf0]
mov esi, dword [ebp - 8]
mov esp, ebp
pop ebp
jmp fcn.0059e820
mov eax, dword [ebp - 0x10]
mov ebx, dword [esi + 0x618]
test byte [ebx + eax*4], 0x80
je 0x5ab355
mov ebx, dword [ebp - 0x14]
mov edi, 1
movzx eax, byte [ebx + ecx]
cmp eax, edx
jne 0x5ab360
nop
mov ecx, dword [esi + 0x618]
lea eax, [esi + 0x3aaf0]
mov edx, dword [ecx + ebx*4]
mov ebx, dword [ebp - 0xc]
shr edx, 7
and edx, 1
cmp edx, 1
sbb edi, 0xffffffff
lea edx, [esi + edi + 0x3ae6a]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
jmp fcn.0059e820

Function at 0x5ab820
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ecx, eax
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], esi
mov dword [ebp - 4], edi
mov eax, dword [eax + 0x90]
mov edx, dword [ecx + 0x1470]
mov edi, dword [ecx + 0x146c]
imul edx, eax
add edx, edi
lea ebx, [edx - 1]
mov esi, edx
sub esi, eax
mov dword [ebp - 0x10], ebx
mov ebx, dword [ecx + 0x26918]
xor edi, edi
mov dword [ebp - 0x14], esi
movzx eax, byte [ebx + edx - 1]
mov edx, dword [ecx + 0x26910]
cmp eax, edx
je 0x5ab8a0
mov esi, dword [ebp - 0x14]
movzx eax, byte [esi + ebx]
cmp eax, edx
je 0x5ab8c0
cmp dword [ecx + 0x2691c], 3
je 0x5ab8e0
mov ebx, dword [ebp - 0xc]
lea edx, [ecx + edi + 0x3ae2f]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
lea eax, [ecx + 0x3aaf0]
pop ebp
jmp fcn.0059e820
mov eax, dword [ebp - 0x10]
mov esi, dword [ecx + 0x618]
test byte [esi + eax*4 + 1], 8
jne 0x5ab86c
mov esi, dword [ebp - 0x14]
mov edi, 1
movzx eax, byte [esi + ebx]
cmp eax, edx
jne 0x5ab877
mov ebx, dword [ecx + 0x618]
mov edx, dword [ebx + esi*4]
shr edx, 0xb
and edx, 1
cmp edx, 1
adc edi, 0
cmp dword [ecx + 0x2691c], 3
jne 0x5ab880
mov esi, esi
add edi, 0xd
mov ebx, dword [ebp - 0xc]
lea eax, [ecx + 0x3aaf0]
mov esi, dword [ebp - 8]
lea edx, [ecx + edi + 0x3ae2f]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
jmp fcn.0059e820

Function at 0x5abeb0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov edx, dword [eax + 0x2188]
mov ebp, esp
pop ebp
add edx, eax
add edx, 0x3afb3
add eax, 0x3aaf0
jmp fcn.0059e820
Function at 0x5dd6e0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, edx
push esi
push ebx
sub esp, 0x1c
mov ebx, eax
cmp dword [ebx + 4], 2
mov eax, dword [ebp + 0xc]
je 0x5dd755
test eax, eax
jne 0x5dd730
cmp dword [ebx + 8], 0x10
je 0x5dd811
mov edx, dword [ebx + 0xc]
xor ecx, ecx
cmp edx, 0
jmp 0x5dd723
mov edx, dword [ebp + 8]
movzx eax, byte [ecx + edx]
add al, 0x80
mov byte [edi + ecx*2 + 1], al
mov edx, dword [ebx + 0xc]
inc ecx
cmp edx, ecx
jg 0x5dd710
add esp, 0x1c
lea eax, [edx + edx]
pop ebx
pop esi
pop edi
pop ebp
ret
mov ecx, dword [ebx + 0xc]
xor esi, esi
mov dword [esp + 4], esi
mov dword [esp], edi
add ecx, ecx
mov dword [esp + 8], ecx
call fcn.00404910
mov edx, dword [ebx + 0xc]
add esp, 0x1c
lea eax, [edx + edx]
pop ebx
pop esi
pop edi
pop ebp
ret
test eax, eax
jne 0x5dd730
cmp dword [ebx + 8], 0x10
je 0x5dd790
mov edx, dword [ebx + 0xc]
xor ecx, ecx
cmp edx, 0
jmp 0x5dd783
mov edx, dword [ebp + 8]
movzx eax, byte [ecx + edx]
add al, 0x80
mov byte [edi + ecx*2 + 1], al
mov edx, dword [ebx + 0xc]
inc ecx
cmp edx, ecx
jg 0x5dd770
add esp, 0x1c
lea eax, [edx + edx]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [ebp - 0x10], 0
mov edx, dword [ebx + 0xc]
xor esi, esi
cmp edx, 0
jmp 0x5dd7e4
movzx eax, al
movzx ecx, word [eax + eax + 0x708040]
mov eax, dword [ebp - 0x10]
add ecx, dword [ebx + eax*4 + 0x10]
cmp ecx, 0xffff8000
mov eax, 0xffff8000
jl 0x5dd7d0
cmp ecx, 0x7fff
mov eax, 0x7fff
jg 0x5dd7d0
mov eax, ecx
nop
mov word [edi + esi*2], ax
mov ecx, dword [ebp - 0x10]
inc esi
mov dword [ebx + ecx*4 + 0x10], eax
xor ecx, 1
cmp edx, esi
mov dword [ebp - 0x10], ecx
jle 0x5dd74a
mov ecx, dword [ebp + 8]
movzx eax, byte [esi + ecx]
test al, al
jns 0x5dd7a1
and eax, 0x7f
movzx ecx, word [eax + eax + 0x708040]
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebx + eax*4 + 0x10]
mov eax, dword [ebp - 0x14]
sub ecx, eax
jmp 0x5dd7b3
mov edx, dword [ebx + 0xc]
xor esi, esi
cmp edx, 0
jmp 0x5dd85d
movzx eax, al
movzx ecx, word [eax + eax + 0x708040]
mov eax, dword [ebx + 0x10]
add ecx, eax
cmp ecx, 0xffff8000
mov eax, 0xffff8000
jl 0x5dd850
cmp ecx, 0x7fff
mov eax, 0x7fff
jg 0x5dd850
mov eax, ecx
lea esi, [esi]
mov word [edi + esi*2], ax
xor ecx, ecx
inc esi
mov dword [ebx + ecx*4 + 0x10], eax
cmp edx, esi
jle 0x5dd74a
mov ecx, dword [ebp + 8]
movzx eax, byte [esi + ecx]
test al, al
jns 0x5dd820
and eax, 0x7f
mov ecx, dword [ebx + 0x10]
movzx eax, word [eax + eax + 0x708040]
sub ecx, eax
jmp 0x5dd830
Function at 0x66e360
Capabilities:
Encode data using xor

Disassembly:
push ebp
xor eax, eax
mov ebp, esp
push edi
cld
mov ecx, 0xa
push esi
push ebx
sub esp, 0x3c
mov esi, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov edi, esi
rep stosd dword es:[edi], eax
mov dword [ebp - 0x18], 1
mov cl, dl
shl dword [ebp - 0x18], cl
mov dword [esi + 4], edx
mov eax, dword [ebp - 0x18]
mov dword [esi], eax
sar eax, 2
mov ebx, eax
mov dword [ebp - 0x1c], eax
shl ebx, 2
mov dword [esp], ebx
call fcn.0045e7c0
mov dword [esi + 8], eax
test eax, eax
je 0x66e461
mov dword [esp], ebx
call fcn.0045e7c0
mov dword [esi + 0xc], eax
test eax, eax
mov ebx, eax
je 0x66e461
xor edi, edi
cmp edi, dword [ebp - 0x1c]
jge 0x66e435
fild dword [ebp - 0x18]
mov edx, dword [esi + 8]
mov dword [ebp - 0x2c], edx
fstp qword [ebp - 0x28]
lea esi, [esi]
lea edi, [edi]
push edi
fild dword [esp]
add esp, 4
fadd qword [0x6f15c8]
fmul qword [0x6f15c0]
fdiv qword [ebp - 0x28]
fstp dword [ebp - 0x20]
fld dword [ebp - 0x20]
fstp qword [esp]
call fcn.006741b0
fstp dword [ebp - 0x14]
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x14]
fld dword [ebp - 0x20]
xor eax, 0x80000000
mov dword [edx + edi*4], eax
fstp qword [esp]
call fcn.006742e0
fstp dword [ebp - 0x14]
mov ecx, dword [ebp - 0x14]
xor ecx, 0x80000000
mov dword [ebx + edi*4], ecx
inc edi
cmp edi, dword [ebp - 0x1c]
jl 0x66e3e0
mov ecx, dword [ebp + 0x10]
lea ebx, [esi + 0x10]
mov dword [esp + 8], ecx
mov edi, dword [esi + 4]
mov dword [esp], ebx
sub edi, 2
mov dword [esp + 4], edi
call fcn.0066fb40
xor edx, edx
test eax, eax
js 0x66e461
add esp, 0x3c
mov eax, edx
pop ebx
pop esi
pop edi
pop ebp
ret
lea eax, [esi + 8]
mov dword [esp], eax
call fcn.0045c590
lea edx, [esi + 0xc]
mov dword [esp], edx
call fcn.0045c590
add esp, 0x3c
mov edx, 0xffffffff
mov eax, edx
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x6719c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xc
mov esi, dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
lea eax, [esi - 8]
cmp eax, 0x18
ja 0x671ae2
mov dword [ebp - 0x18], edi
mov ecx, esi
mov eax, 1
mov dword [ebp - 0x14], 0
xor edx, edx
shld edx, eax, cl
shl eax, cl
test cl, 0x20
jne 0x671b1a
cmp dword [ebp - 0x14], edx
jg 0x671ae2
jl 0x671a10
cmp dword [ebp - 0x18], eax
jae 0x671ae2
cmp dword [ebp + 0x18], 0x404
mov ecx, 0xffffffff
setne bl
xor edx, edx
cmp dword [ebp + 0x18], 0x1000
setne dl
test ebx, edx
jne 0x671ae7
mov ecx, 0x20
xor ebx, ebx
sub ecx, esi
mov esi, edi
shl esi, cl
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x671af1
mov edx, ebx
mov ecx, 7
lea esi, [esi]
lea edi, [edi]
mov eax, edx
and edx, 1
shr eax, 1
neg edx
and edx, edi
xor edx, eax
dec ecx
jns 0x671a60
mov ecx, dword [ebp + 8]
mov dword [ecx + ebx*4], edx
inc ebx
cmp ebx, 0xff
jle 0x671a40
mov edi, dword [ebp + 8]
mov esi, 1
mov dword [edi + 0x400], esi
cmp dword [ebp + 0x18], 0xfff
jbe 0x671ad6
xor esi, esi
nop
lea esi, [esi]
mov ecx, esi
mov ebx, 2
mov edi, dword [ebp + 8]
mov eax, dword [edi + ecx*4]
mov edi, dword [ebp + 8]
mov edx, eax
shr edx, 8
and eax, 0xff
xor edx, dword [edi + eax*4]
mov dword [edi + ecx*4 + 0x400], edx
add ecx, 0x100
dec ebx
jns 0x671aa7
inc esi
cmp esi, 0xff
jle 0x671aa0
add esp, 0xc
xor ecx, ecx
mov eax, ecx
pop ebx
pop esi
pop edi
pop ebp
ret
mov ecx, 0xffffffff
add esp, 0xc
mov eax, ecx
pop ebx
pop esi
pop edi
pop ebp
ret
mov edx, ebx
mov ecx, 7
shl edx, 0x18
nop
lea esi, [esi]
lea eax, [edx + edx]
sar edx, 0x1f
and edx, esi
xor edx, eax
dec ecx
jns 0x671b00
mov ecx, dword [ebp + 8]
bswap edx
mov dword [ecx + ebx*4], edx
jmp 0x671a76
mov edx, eax
xor eax, eax
jmp 0x6719fc
Function at 0x67f0e8
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
jne 0x67f115
call fcn.004063c4
mov dword [eax], esi
call fcn.004063b1
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.0040aa62
add esp, 0x14
push 0x16
pop eax
pop esi
ret
test dword [esp + 0xc], 0xfffffff9
jne 0x67f0f1
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x67f144
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004063d7
pop ecx
call fcn.004063b1
mov eax, dword [eax]
pop esi
ret
test al, 0x10
jne 0x67f16b
test al, 1
je 0x67f16b
test byte [esp + 0xc], 2
je 0x67f16b
call fcn.004063c4
mov dword [eax], 5
call fcn.004063b1
mov dword [eax], 0xd
jmp 0x67f13b
xor eax, eax
pop esi
ret
Function at 0x4103fd
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x7c
mov eax, dword [0x41d114]
xor eax, esp
mov dword [esp + 0x78], eax
mov eax, dword [0x41d188]
push ebx
xor ebx, ebx
mov byte [0x41d1a8], bl
push esi
push edi
cmp eax, 0xffffffff
jne 0x410432
mov ebx, 0x80070057
jmp 0x410544
push 0xe
push 0x60
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esp + 0x24]
push ecx
push eax
call dword [0x41f39c]
mov esi, eax
test esi, esi
jns 0x410480
cmp byte [0x41d1a9], bl
je 0x410461
push 0x402064
call dword [0x41f2e0]
pop ecx
push esi
call dword [0x41f3a0]
mov ebx, eax
test ebx, ebx
jle 0x410542
movzx ebx, bx
or ebx, 0x80070000
jmp 0x410540
mov eax, dword [esp + 0x7c]
mul dword [esp + 0x78]
push dword [esp + 0x44]
mov esi, edx
mov edi, eax
push dword [esp + 0x44]
push esi
push edi
call fcn.0041a8f0
push dword [esp + 0x3c]
mov ecx, edx
mov dword [esp + 0x14], eax
push dword [esp + 0x3c]
mov dword [esp + 0x1c], ecx
push esi
push edi
mov dword [0x41d190], eax
mov dword [0x41d194], ecx
call fcn.0041a8f0
push dword [esp + 0x4c]
mov dword [0x41d198], eax
push dword [esp + 0x4c]
mov dword [0x41d19c], edx
push esi
push edi
call fcn.0041a8f0
mov ecx, dword [esp + 0x10]
add eax, ecx
mov esi, dword [esp + 0x14]
adc edx, esi
mov dword [0x41d1a0], eax
mov dword [0x41d1a4], edx
cmp byte [0x41d1a9], bl
je 0x410515
push esi
push ecx
push edx
push eax
push 0x4020a0
call dword [0x41f2e0]
mov edx, dword [0x41d1a4]
add esp, 0x14
mov eax, dword [0x41d1a0]
mov byte [0x41d1a8], 1
cmp byte [0x41d1b8], bl
jne 0x41055b
push ebx
push 0xa
push edx
push eax
call fcn.0041a930
mov dword [0x41d1b0], eax
mov dword [0x41d1b4], edx
mov byte [0x41d1b8], 1
test ebx, ebx
jns 0x41055b
cmp byte [0x41d1a9], 0
je 0x41055b
push ebx
push 0x4020f8
call dword [0x41f2e0]
pop ecx
pop ecx
mov ecx, dword [esp + 0x84]
mov eax, ebx
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00419e00
mov esp, ebp
pop ebp
ret

Function at 0x41a334
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0x41c4e8
call fcn.0041a5f8
xor ecx, ecx
mov eax, dword [ebp + 8]
test eax, eax
je 0x41a394
cmp eax, 0xffffffff
je 0x41a394
mov dword [ebp - 4], ecx
mov edx, 0x5a4d
cmp word [eax], dx
jne 0x41a38d
mov edx, dword [eax + 0x3c]
test edx, edx
js 0x41a38d
cmp edx, 0x10000000
jae 0x41a38d
add eax, edx
mov dword [ebp - 0x1c], eax
mov ecx, dword [eax]
sub ecx, 0x4550
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
jmp 0x41a38a
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, ecx
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x41a400
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x41a43e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x41a436
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x41a440
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x41a426
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x41a510
Capabilities:
Parse pe header

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

Function at 0x422000
Capabilities:
Parse pe header
Read file on windows

Disassembly:
sub esp, 0x40
lea eax, [esp + 0x44]
lea ecx, [esp]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push ebp
push esi
mov esi, dword [esp + 0x50]
push edi
push 0
push eax
push 0x40
push ecx
push esi
call ebx
test eax, eax
je 0x422175
cmp dword [esp + 0x54], 0x40
jne 0x422175
cmp word [esp + 0x10], 0x5a4d
jne 0x422175
mov edx, dword [esp + 0x4c]
mov ebp, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
push 0
push edx
push esi
call ebp
cmp eax, 0xffffffff
je 0x422175
lea eax, [esp + 0x54]
push 0
push eax
push 0xf8
push 0x428960
push esi
call ebx
test eax, eax
je 0x422175
cmp dword [esp + 0x54], 0xf8
jne 0x422175
cmp dword [0x428960], 0x4550
jne 0x422175
mov eax, dword [0x428976]
test ah, 0x20
jne 0x422175
mov edx, dword [0x428a80]
xor eax, eax
mov ax, word [0x428966]
add eax, edx
lea eax, [eax + eax*4]
shl eax, 3
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
test eax, eax
mov dword [0x428a58], eax
je 0x422175
push 1
push 0
push 0
push esi
call ebp
mov dword [0x428a6c], eax
xor eax, eax
mov ax, word [0x428966]
mov edx, dword [0x428a58]
lea ecx, [esp + 0x54]
push 0
lea edi, [eax + eax*4]
push ecx
shl edi, 3
push edi
push edx
push esi
call ebx
test eax, eax
je 0x422175
cmp dword [esp + 0x54], edi
jne 0x422175
push 1
push 0
push 0
push esi
call ebp
mov ecx, dword [0x428a80]
lea ecx, [ecx + ecx*4]
lea edx, [eax + ecx*8]
mov eax, dword [0x4289b4]
cmp edx, eax
ja 0x422175
mov edi, dword [0x428a58]
mov ecx, dword [0x428988]
mov eax, dword [edi + 0x10]
mov edx, dword [edi + 0xc]
add eax, edx
cmp ecx, eax
jae 0x422175
xor eax, eax
push 2
mov ax, word [0x428966]
push 0
push 0
push esi
lea ecx, [eax + eax*4]
mov ebx, dword [edi + ecx*8 - 0x18]
lea edi, [edi + ecx*8]
call ebp
mov edx, dword [edi - 0x14]
add edx, ebx
cmp eax, edx
jne 0x422175
cmp dword [edi - 0x20], ebx
ja 0x422175
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x40
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x40
ret
Function at 0x424769
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x428190
cmp edx, dword [eax]
je 0x42478b
add eax, 8
inc ecx
cmp eax, 0x428220
jl 0x42477c
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x428190]
jne 0x4248b9
mov eax, dword [0x428bb0]
cmp eax, 1
je 0x424893
test eax, eax
jne 0x4247bc
cmp dword [0x4280e4], 1
je 0x424893
cmp edx, 0xfc
je 0x4248b9
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4247f3
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00425670
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00425490
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x424836
lea eax, [ebp - 0x1a4]
push eax
call fcn.00425490
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x42745c
push edi
call fcn.00425f00
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00425670
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00425680
lea eax, [ebp - 0xa0]
push 0x42743c
push eax
call fcn.00425680
push dword [esi + 0x428194]
lea eax, [ebp - 0xa0]
push eax
call fcn.00425680
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00425e75
add esp, 0x2c
pop edi
jmp 0x4248b9
lea eax, [ebp + 8]
lea esi, [esi + 0x428194]
push 0
push eax
push dword [esi]
call fcn.00425490
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 0x4035ac
Capabilities:
Generate random numbers using the delphi lcg

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

Function at 0x41cd64
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 0x41cd95
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cd7d
add dl, dl
jne 0x41cda0
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cdf1
xor eax, eax
add dl, dl
jne 0x41cdad
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41ce8e
add dl, dl
jne 0x41cdbc
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cdc7
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cdd2
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cddd
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x41cde7
mov ebx, edi
sub ebx, eax
mov al, byte [ebx]
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x41cd8c
mov eax, 1
add dl, dl
jne 0x41cdff
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41ce0a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cdf6
sub eax, ebx
mov ebx, 1
jne 0x41ce3d
mov ecx, 1
add dl, dl
jne 0x41ce23
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41ce2e
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41ce1a
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41cd8c
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x41ce54
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41ce5f
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41ce4b
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 0x41cd8c
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x41ceaf
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 0x41cd8c
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 0x41e5a4
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 0x854a63
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 0x41e655
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 0x41e63e
test esi, esi
jbe 0x41e655
mov eax, dword [edi]
add eax, ebx
mov edx, dword [ebp - 4]
call fcn.004088e4
test eax, eax
jne 0x41e630
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 0x41e655
add dword [ebp - 0xc], 2
add edi, 4
dec esi
test esi, esi
ja 0x41e60d
jmp 0x41e655
mov ecx, edx
sub ecx, dword [eax + 0x10]
cmp ecx, dword [eax + 0x14]
jae 0x41e655
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 0x854a6a
ret
Function at 0x41eec4
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 0x855473
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 0x41eeff
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x41ef18
lea eax, [ebp - 0x10]
mov edx, dword [0x86f2a4]
mov edx, dword [edx]
mov edx, dword [edx + 0xc]
call fcn.00404d30
jmp 0x41ef2b
lea eax, [ebp - 0x10]
mov edx, dword [0x86f2a4]
mov edx, dword [edx]
mov edx, dword [edx + 0x10]
call fcn.00404d30
lea eax, [ebp - 0x10]
mov edx, ebx
sar edx, 1
jns 0x41ef37
adc edx, 0
mov edx, dword [edx*4 + 0x86e10c]
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 0x41f045
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 0x41f038
mov eax, edi
cmp word [eax], 0x5a4d
jne 0x41f038
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 0x41f038
mov eax, edi
cmp dword [eax], 0x4550
jne 0x41f038
add eax, 4
mov dx, word [eax]
cmp dx, 0x14c
jb 0x41f038
cmp dx, 0x150
ja 0x41f038
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 0x41f038
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 2]
jne 0x41f038
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 0x41f05d
inc ebx
cmp ebx, 0x19
jne 0x41eef1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x85547a
lea eax, [ebp - 0x10]
call fcn.00404cd0
ret
Function at 0x430005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
mov eax, section..text
nop
push 4
nop
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x430072
nop
nop
mov ebx, 0x408ecc
nop
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
div edi
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x14c10299
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x430060
nop
mov eax, section..data
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x4300d2
nop
mov ebx, 0x42e1d0
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
div edi
nop
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x7ee3d53
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x4300c0
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219