joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4035ac
Capabilities:
Generate random numbers using the delphi lcg

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

Function at 0x41cb9c
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 0x41cbcd
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cbb5
add dl, dl
jne 0x41cbd8
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cc29
xor eax, eax
add dl, dl
jne 0x41cbe5
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41ccc6
add dl, dl
jne 0x41cbf4
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cbff
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cc0a
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cc15
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x41cc1f
mov ebx, edi
sub ebx, eax
mov al, byte [ebx]
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x41cbc4
mov eax, 1
add dl, dl
jne 0x41cc37
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cc42
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cc2e
sub eax, ebx
mov ebx, 1
jne 0x41cc75
mov ecx, 1
add dl, dl
jne 0x41cc5b
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41cc66
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cc52
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41cbc4
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x41cc8c
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41cc97
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cc83
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 0x41cbc4
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x41cce7
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 0x41cbc4
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 0x41e0b0
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 0xa2956f
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 0x41e161
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 0x41e14a
test esi, esi
jbe 0x41e161
mov eax, dword [edi]
add eax, ebx
mov edx, dword [ebp - 4]
call fcn.004088ac
test eax, eax
jne 0x41e13c
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 0x41e161
add dword [ebp - 0xc], 2
add edi, 4
dec esi
test esi, esi
ja 0x41e119
jmp 0x41e161
mov ecx, edx
sub ecx, dword [eax + 0x10]
cmp ecx, dword [eax + 0x14]
jae 0x41e161
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 0xa29576
ret
Function at 0x41e9a4
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 0xa29f53
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 0x41e9df
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x41e9f8
lea eax, [ebp - 0x10]
mov edx, dword [0xa42248]
mov edx, dword [edx]
mov edx, dword [edx + 0xc]
call fcn.00404d30
jmp 0x41ea0b
lea eax, [ebp - 0x10]
mov edx, dword [0xa42248]
mov edx, dword [edx]
mov edx, dword [edx + 0x10]
call fcn.00404d30
lea eax, [ebp - 0x10]
mov edx, ebx
sar edx, 1
jns 0x41ea17
adc edx, 0
mov edx, dword [edx*4 + 0xa410d8]
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.00406af4
mov esi, eax
cmp esi, 0xffffffff
je 0x41eb25
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.00406d3c
test eax, eax
je 0x41eb18
mov eax, edi
cmp word [eax], 0x5a4d
jne 0x41eb18
push 0
push 0
mov eax, dword [eax + 0x3c]
push eax
push esi
call fcn.00406d9c
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.00406d3c
test eax, eax
je 0x41eb18
mov eax, edi
cmp dword [eax], 0x4550
jne 0x41eb18
add eax, 4
mov dx, word [eax]
cmp dx, 0x14c
jb 0x41eb18
cmp dx, 0x150
ja 0x41eb18
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.00406d3c
test eax, eax
je 0x41eb18
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 2]
jne 0x41eb18
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.00406aac
mov eax, dword [ebp + 8]
mov eax, dword [eax]
xor edx, edx
call fcn.0040502c
jne 0x41eb3d
inc ebx
cmp ebx, 0x19
jne 0x41e9d1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0xa29f5a
lea eax, [ebp - 0x10]
call fcn.00404cd0
ret
Function at 0xcfb058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.00cfb1a8
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 0xcfb07e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xcfb06a
add dl, dl
jne 0xcfb089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xcfb0dc
xor eax, eax
add dl, dl
jne 0xcfb096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xcfb17d
add dl, dl
jne 0xcfb0a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xcfb0b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xcfb0bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xcfb0c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0xcfb0d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0xcfb075
mov eax, 1
add dl, dl
jne 0xcfb0ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xcfb0f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xcfb0e1
sub eax, ebx
mov ebx, 1
jne 0xcfb128
mov ecx, 1
add dl, dl
jne 0xcfb10e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xcfb119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xcfb105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xcfb075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xcfb13f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xcfb14a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xcfb136
cmp eax, 0x7d00
jae 0xcfb16d
cmp eax, 0x500
jb 0xcfb168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xcfb075
cmp eax, 0x7f
ja 0xcfb170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xcfb075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0xcfb19e
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 0xcfb075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x42ced0
Capabilities:
Enumerate pe sections

Disassembly:
push edi
mov edi, dword [esp + 8]
mov eax, dword [edi]
movzx ecx, ax
cmp ecx, 0x5045
je 0x42cee9
or eax, 0xffffffff
pop edi
ret 8
mov edx, eax
and edx, 0xff0000
cmp edx, 0x10000
je 0x42cf02
mov eax, 0xfffffffe
pop edi
ret 8
and eax, 0xff000000
cmp eax, 0x1000000
push esi
je 0x42cf40
cmp eax, 0x2000000
jne case.0x42cf5c.3
mov esi, dword [esp + 0x10]
mov dword [esi], 2
mov eax, dword [edi + 0x10]
mov dword [esi + 0x38], eax
mov ecx, dword [edi + 0x14]
lea edx, [edi + 0x18]
push edx
lea eax, [esi + 0x18]
push eax
mov dword [esi + 0x3c], ecx
call dword [0x49e07c]
jmp 0x42cf4a
mov esi, dword [esp + 0x10]
mov dword [esi], 0
mov eax, dword [edi + 4]
and eax, 0xff
cmp eax, 4
ja case.0x42cf5c.3
mov ecx, 8
jmp dword [eax*4 + 0x42cfd4]
mov dword [esi + 0xc], 0x18
jmp 0x42cf7b
mov dword [esi + 0xc], 0x20
jmp 0x42cf7b
or dword [esi], 1
mov dword [esi + 0xc], ecx
cmp dword [esi + 0xc], ecx
mov edx, dword [edi + 8]
mov dword [esi + 4], edx
mov eax, dword [edi + 0xc]
mov dword [esi + 8], eax
jne 0x42cfb2
movzx eax, byte [edi + 5]
test eax, eax
mov dword [esi + 0x10], eax
mov ecx, 0x100
jne 0x42cf9f
mov dword [esi + 0x10], ecx
movzx eax, byte [edi + 6]
test eax, eax
mov dword [esi + 0x14], eax
jne 0x42cfc0
mov dword [esi + 0x14], ecx
pop esi
pop edi
ret 8
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
pop esi
xor eax, eax
pop edi
ret 8
pop esi
mov eax, 0xfffffffd
pop edi
ret 8
Function at 0x438340
Capabilities:
Resolve function by parsing pe exports

Disassembly:
cmp dword [0x4c1ae0], 0
je 0x438369
mov ecx, dword [esp + 4]
test ecx, ecx
je 0x438369
mov eax, dword [0x4c0ad0]
and eax, 0x7fffffff
sub eax, 1
jne 0x438369
mov dword [esp + 4], ecx
jmp fcn.00447750
ret
Function at 0x45d180
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 8]
test edx, edx
jbe 0x45d19d
mov cl, byte [esp + 0xc]
mov eax, dword [esp + 4]
xor byte [eax], cl
add eax, 1
add cl, 0x5c
sub edx, 1
jne 0x45d190
ret
Function at 0x473440
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x64
push ebx
mov ebx, dword [esp + 0x6c]
xor ecx, ecx
cmp ebx, ecx
push esi
push edi
jne 0x473491
mov edi, dword [0x6d8d30]
xor edx, edx
xor esi, esi
cmp edi, ecx
jbe 0x473483
mov edi, edi
mov eax, dword [ecx*4 + 0x6d8f38]
cmp dword [eax + 0x68], 0
jne 0x47347c
mov ebx, dword [eax + 0x1c]
imul ebx, dword [eax + 0x18]
imul ebx, ebx, 0x15
add edx, 1
add esi, ebx
add ecx, 1
cmp ecx, edi
jb 0x473460
imul edx, edx, 0x64
pop edi
lea eax, [edx + esi + 4]
pop esi
pop ebx
add esp, 0x64
ret
mov eax, dword [0x6d8d30]
mov dword [ebx], eax
add ebx, 4
cmp eax, ecx
mov dword [esp + 0x74], ecx
jbe 0x473604
push ebp
mov ebp, 0x6d8f38
lea ecx, [ecx]
mov eax, dword [ebp]
cmp dword [eax + 0x68], 0
jne 0x4735e8
mov ecx, dword [eax + 8]
fld dword [eax + 0x4c]
mov dword [esp + 0x18], ecx
fstp dword [esp + 0x50]
mov ecx, dword [eax + 0xc]
mov dword [esp + 0x14], ecx
mov ecx, dword [eax + 0x18]
mov dword [esp + 0x20], ecx
mov ecx, dword [eax + 0x5c]
mov dword [esp + 0x28], ecx
mov ecx, dword [eax + 0x60]
mov dword [esp + 0x2c], ecx
mov ecx, dword [eax + 0x24]
mov dword [esp + 0x30], ecx
mov ecx, dword [eax + 0x28]
mov dword [esp + 0x34], ecx
mov ecx, dword [eax + 0x2c]
mov edx, dword [eax]
mov dword [esp + 0x38], ecx
mov ecx, dword [eax + 0x30]
mov dword [esp + 0x3c], ecx
mov ecx, dword [eax + 0x34]
mov dword [esp + 0x40], ecx
mov ecx, dword [eax + 0x38]
mov dword [esp + 0x44], ecx
mov ecx, dword [eax + 0x3c]
mov dword [esp + 0x48], ecx
mov ecx, dword [eax + 0x40]
mov dword [esp + 0x4c], ecx
mov ecx, dword [eax + 0x50]
mov dword [esp + 0x54], ecx
mov ecx, dword [eax + 0x54]
mov dword [esp + 0x58], ecx
mov ecx, dword [eax + 0x58]
mov dword [esp + 0x10], edx
mov edx, dword [eax + 0x10]
mov dword [esp + 0x5c], ecx
mov ecx, dword [eax + 0x64]
mov dword [esp + 0x1c], edx
mov edx, dword [eax + 0x1c]
mov dword [esp + 0x60], ecx
mov ecx, dword [eax + 0x48]
mov dword [esp + 0x24], edx
imul edx, dword [esp + 0x20]
mov dword [esp + 0x64], ecx
mov ecx, dword [eax + 0x80]
mov dword [esp + 0x68], ecx
mov ecx, dword [eax + 0x84]
mov al, byte [eax + 0x88]
mov dword [esp + 0x6c], ecx
mov edi, ebx
mov byte [esp + 0x70], al
mov ecx, 0x19
lea esi, [esp + 0x10]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp]
mov edi, edx
mov edx, dword [ecx + 0x44]
push edi
push edx
add ebx, 0x64
push ebx
call fcn.004864b0
add esp, 0xc
add ebx, edi
xor esi, esi
test edi, edi
jbe 0x4735e8
mov eax, dword [ebp]
mov ecx, dword [eax + 0x78]
cmp dword [ecx + esi*4], 0
je 0x4735ce
mov dword [ebx], 1
mov eax, dword [ebp]
mov ecx, dword [eax + 0x78]
lea edx, [ebx + 4]
push edx
mov edx, dword [ecx + esi*4]
push edx
call fcn.004721c0
add esp, 8
jmp 0x4735de
xor eax, eax
mov dword [ebx], eax
mov dword [ebx + 4], eax
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], eax
mov dword [ebx + 0x10], eax
add esi, 1
add ebx, 0x14
cmp esi, edi
jb 0x4735a4
mov ecx, dword [esp + 0x78]
mov eax, dword [0x6d8d30]
add ecx, 1
add ebp, 4
cmp ecx, eax
mov dword [esp + 0x78], ecx
jb 0x4734b0
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x64
ret
Function at 0x476c10
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x64
push esi
mov esi, dword [esp + 0x6c]
mov eax, dword [esi]
test eax, eax
je 0x476de1
add esi, 4
test eax, eax
jbe 0x476de1
push ebx
push ebp
mov dword [esp + 0x14], eax
push edi
mov eax, dword [esi + 8]
fld dword [esi + 0x40]
mov ecx, dword [esi + 0xc]
fadd st(0), st(0)
mov edx, dword [esi + 0x48]
lea edi, [esi + 0xc]
mov dword [esp + 0x20], eax
mov eax, dword [esi + 0x4c]
mov dword [esp + 0x44], ecx
mov ecx, dword [esi + 0x18]
mov dword [esp + 0x28], edx
mov edx, dword [esi + 0x1c]
mov ebp, esi
mov dword [esp + 0x14], ebp
mov dword [esp + 0x1c], edi
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], edx
call fcn.004863e0
mov edx, dword [esi + 0x20]
mov ecx, dword [esi + 0x50]
mov dword [esp + 0x38], eax
mov eax, dword [esi + 0x44]
mov dword [esp + 0x48], edx
mov edx, dword [esi + 0x2c]
mov dword [esp + 0x3c], eax
mov eax, dword [esi + 0x24]
mov dword [esp + 0x40], ecx
mov ecx, dword [esi + 0x28]
mov dword [esp + 0x54], edx
mov edx, dword [esi + 0x38]
mov dword [esp + 0x4c], eax
mov eax, dword [esi + 0x30]
mov dword [esp + 0x50], ecx
mov ecx, dword [esi + 0x34]
mov dword [esp + 0x60], edx
mov edx, dword [esi + 0x58]
mov dword [esp + 0x58], eax
mov eax, dword [esi + 0x3c]
mov dword [esp + 0x5c], ecx
mov ecx, dword [esi + 4]
mov dword [esp + 0x68], edx
mov dword [esp + 0x64], eax
mov eax, dword [esi + 0x5c]
mov dword [esp + 0x24], ecx
mov cl, byte [esi + 0x60]
lea edx, [esp + 0x20]
push 0
push edx
mov dword [esp + 0x74], eax
mov byte [esp + 0x78], cl
call fcn.00476a90
push eax
call fcn.00472640
add esp, 0xc
cmp byte [esi + 0x60], 0
mov dword [esp + 0x78], eax
je 0x476d0b
mov ecx, dword [esi + 0x5c]
mov edx, dword [esi + 0x58]
push ecx
push edx
push eax
call fcn.004728b0
add esp, 0xc
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
mov edx, eax
imul edx, ecx
add esi, 0x64
mov ebx, esi
add esi, edx
test ecx, ecx
mov dword [esp + 0x10], 0
jle 0x476db0
lea ecx, [ecx]
xor edi, edi
test eax, eax
jle 0x476d9c
lea ebp, [esi + 4]
lea esp, [esp]
cmp dword [esi], 0
je 0x476d83
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x78]
push eax
push edi
push ecx
call fcn.004727f0
movzx edx, word [ebx]
push edx
call fcn.00472250
add esp, 0x10
test eax, eax
push ebp
je 0x476d71
push edx
mov edx, dword [esp + 0x80]
push edx
jmp 0x476d7b
movzx ax, byte [ebx]
mov ecx, dword [esp + 0x7c]
push eax
push ecx
call fcn.00474370
add esp, 0xc
mov edx, dword [esp + 0x14]
mov eax, dword [edx + 0x10]
add edi, 1
add esi, 0x14
add ebp, 0x14
add ebx, 1
cmp edi, eax
jl 0x476d40
mov ebp, edx
mov ecx, dword [esp + 0x10]
add ecx, 1
cmp ecx, dword [ebp + 0x14]
mov dword [esp + 0x10], ecx
jl 0x476d30
mov edi, dword [esp + 0x1c]
cmp dword [edi], 0
je 0x476dc2
mov eax, dword [esp + 0x78]
push eax
call fcn.00472910
add esp, 4
mov ecx, dword [ebp]
mov edx, dword [esp + 0x78]
push ecx
push edx
call fcn.004726f0
add esp, 8
sub dword [esp + 0x18], 1
jne 0x476c34
pop edi
pop ebp
pop ebx
mov eax, 1
pop esi
add esp, 0x64
ret
Function at 0x10040cc0
Capabilities:
Packed with generic packer

Disassembly:
cmp byte [esp + 8], 1
jne 0x10040e84
pushal
mov esi, section.UPX1
lea edi, [esi - 0x28000]
push edi
or ebp, 0xffffffff
jmp 0x10040cea
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x10040cf1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x10040ce0
mov eax, 1
add ebx, ebx
jne 0x10040d03
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x10040cf8
jne 0x10040d14
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x10040cf8
xor ecx, ecx
sub eax, 3
jb 0x10040d28
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x10040d9a
mov ebp, eax
add ebx, ebx
jne 0x10040d33
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x10040d40
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x10040d64
inc ecx
add ebx, ebx
jne 0x10040d50
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x10040d45
jne 0x10040d61
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x10040d45
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x10040d84
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x10040d75
jmp 0x10040ce6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x10040d84
add edi, ecx
jmp 0x10040ce6
pop esi
mov edi, esi
mov ecx, 0x1159
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x10040da2
cmp byte [edi], 9
jne 0x10040da2
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x10040da7
lea edi, [esi + 0x3d000]
mov eax, dword [edi]
or eax, eax
je 0x10040e16
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x401dc]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x40204]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x10040dd4
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x40208]
or eax, eax
je 0x10040e10
mov dword [ebx], eax
add ebx, 4
jmp 0x10040df1
popal
xor eax, eax
ret 0xc
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x10040e47
cmp al, 0xef
ja 0x10040e3a
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x10040e1c
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x10040e29
mov ebp, dword [esi + 0x4020c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x10040e7b
sub esp, 0xffffff80
jmp 0x100166cb
Function at 0x713acc
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [ecx + 4], 0
push esi
jne 0x713af5
push 0x40f570
lea ecx, [ebp - 0xc]
call dword [0x408184]
lea eax, [ebp - 0xc]
push 0x40d570
push eax
call fcn.00717812
xor esi, esi
cmp dword [ecx + 0x3cc], esi
jle 0x713b16
mov eax, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
mov dl, byte [edi]
xor byte [eax], dl
inc edi
inc eax
inc esi
cmp esi, dword [ecx + 0x3cc]
jl 0x713b06
pop edi
pop esi
leave
ret 8

Function at 0x7154c3
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x7154d1
xor eax, eax
pop ebp
ret
mov eax, dword [ebp + 8]
cmp dword [ebp + 0x10], 8
push esi
push edi
not eax
mov ecx, 0xff
jb 0x7155b2
mov edi, dword [ebp + 0x10]
push ebx
shr edi, 3
movzx ebx, byte [edx]
mov esi, eax
sub dword [ebp + 0x10], 8
and esi, ecx
xor esi, ebx
mov ebx, eax
shr ebx, 8
mov eax, dword [esi*4 + 0x40d054]
xor eax, ebx
inc edx
mov esi, eax
movzx ebx, byte [edx]
and esi, ecx
xor esi, ebx
movzx ebx, byte [edx + 1]
mov esi, dword [esi*4 + 0x40d054]
shr eax, 8
xor esi, eax
inc edx
mov eax, esi
and eax, ecx
xor eax, ebx
movzx ebx, byte [edx + 1]
mov eax, dword [eax*4 + 0x40d054]
shr esi, 8
xor eax, esi
inc edx
mov esi, eax
and esi, ecx
xor esi, ebx
movzx ebx, byte [edx + 1]
mov esi, dword [esi*4 + 0x40d054]
shr eax, 8
xor esi, eax
inc edx
mov eax, esi
and eax, ecx
xor eax, ebx
movzx ebx, byte [edx + 1]
mov eax, dword [eax*4 + 0x40d054]
shr esi, 8
xor eax, esi
inc edx
mov esi, eax
and esi, ecx
xor esi, ebx
movzx ebx, byte [edx + 1]
mov esi, dword [esi*4 + 0x40d054]
shr eax, 8
xor esi, eax
inc edx
mov eax, esi
and eax, ecx
xor eax, ebx
movzx ebx, byte [edx + 1]
mov eax, dword [eax*4 + 0x40d054]
shr esi, 8
xor eax, esi
inc edx
mov esi, eax
and esi, ecx
xor esi, ebx
shr eax, 8
mov esi, dword [esi*4 + 0x40d054]
xor eax, esi
inc edx
dec edi
jne 0x7154ee
pop ebx
cmp dword [ebp + 0x10], 0
je 0x7155d3
movzx edi, byte [edx]
mov esi, eax
and esi, ecx
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x40d054]
xor eax, esi
inc edx
dec dword [ebp + 0x10]
jne 0x7155b8
pop edi
pop esi
not eax
pop ebp
ret

Function at 0x7155d9
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
mov ecx, dword [esp + 4]
push esi
push edi
mov edx, 0xff
mov esi, dword [ecx]
movzx edi, byte [esp + 0x10]
mov eax, esi
and eax, edx
xor eax, edi
shr esi, 8
mov eax, dword [eax*4 + 0x40d054]
xor eax, esi
mov esi, dword [ecx + 8]
mov dword [ecx], eax
and eax, edx
add eax, dword [ecx + 4]
mov edi, esi
and edi, edx
imul eax, eax, 0x8088405
inc eax
mov dword [ecx + 4], eax
shr eax, 0x18
xor eax, edi
pop edi
shr esi, 8
mov eax, dword [eax*4 + 0x40d054]
xor eax, esi
pop esi
mov dword [ecx + 8], eax
ret

Function at 0x720657
Capabilities:
Get number of processors

Disassembly:
add byte [eax], dh
pop es
add eax, 0x5ffac4
add byte [eax + 7], al
add eax, 0x5ffaa8
add byte [eax - 0x567fafa], dl
pop edi
add byte [eax], al
mov al, 6
add eax, 0x5ffa88
Function at 0x720677
Capabilities:
Access peb ldr_data
Get number of processors
Get process heap flags
Get process heap force flags

Disassembly:
add al, ah
push es
add eax, 0x5ffa78
add al, dh
push es
add eax, 0x5ffa68
add al, al
push es
add eax, 0x5ffa58
add al, dl
push es
add eax, 0x5ffa48