joyce8/EMBER2024-capa huggingface dataset:
Function at 0x8af660
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff0
mov dword [esp], ecx
mov esi, eax
lea edi, [esp + 4]
mov eax, dword [edx]
mov dword [edi], eax
add edx, 4
mov eax, dword [edx]
lea edx, [edi + 4]
mov dword [edx], eax
mov ebx, 4
mov eax, edi
mov dx, word [eax]
mov ecx, edx
shl ecx, 8
movzx edx, dx
shr edx, 8
or cx, dx
mov word [eax], cx
add eax, 2
dec ebx
jne 0x8af685
xor ebx, ebx
mov ebp, ebx
add ebp, ebp
lea ebp, [ebp + ebp*2]
mov dx, word [esi + ebp*2 + 0x7c]
mov eax, edi
call fcn.008af490
mov ax, word [esi + ebp*2 + 0x7e]
add word [edi + 2], ax
mov ax, word [esi + ebp*2 + 0x80]
add word [edi + 4], ax
mov dx, word [esi + ebp*2 + 0x82]
lea eax, [edi + 6]
call fcn.008af490
mov ax, word [edi + 4]
mov word [esp + 0xc], ax
mov ax, word [edi]
xor word [edi + 4], ax
mov dx, word [esi + ebp*2 + 0x84]
lea eax, [edi + 4]
call fcn.008af490
mov ax, word [edi + 2]
mov word [esp + 0xe], ax
mov ax, word [edi + 6]
xor word [edi + 2], ax
mov ax, word [edi + 4]
add word [edi + 2], ax
mov dx, word [esi + ebp*2 + 0x86]
lea eax, [edi + 2]
call fcn.008af490
mov ax, word [edi + 2]
add word [edi + 4], ax
mov ax, word [edi + 2]
xor word [edi], ax
mov ax, word [edi + 4]
xor word [edi + 6], ax
mov ax, word [esp + 0xc]
xor word [edi + 2], ax
mov ax, word [esp + 0xe]
xor word [edi + 4], ax
inc ebx
cmp ebx, 8
jne 0x8af6a1
mov dx, word [esi + 0xdc]
mov eax, edi
call fcn.008af490
mov ax, word [esi + 0xde]
add word [edi + 4], ax
mov ax, word [esi + 0xe0]
add word [edi + 2], ax
mov dx, word [esi + 0xe2]
lea eax, [edi + 6]
call fcn.008af490
mov ax, word [edi]
mov edx, eax
shl edx, 8
movzx eax, ax
shr eax, 8
or dx, ax
mov word [edi], dx
mov ax, word [edi + 4]
mov edx, eax
shl edx, 8
movzx eax, ax
shr eax, 8
or dx, ax
mov word [esp + 0xe], dx
mov ax, word [edi + 2]
mov edx, eax
shl edx, 8
movzx eax, ax
shr eax, 8
or dx, ax
mov word [edi + 4], dx
mov ax, word [edi + 6]
mov edx, eax
shl edx, 8
movzx eax, ax
shr eax, 8
or dx, ax
mov word [edi + 6], dx
mov ax, word [esp + 0xe]
mov word [edi + 2], ax
mov eax, dword [edi]
mov edx, dword [esp]
mov dword [edx], eax
lea eax, [edi + 4]
mov eax, dword [eax]
mov edx, dword [esp]
add edx, 4
mov dword [edx], eax
add esp, 0x10
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x8bec54
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
xor esi, esi
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 0x8bed07
add edx, ebx
mov eax, edx
mov edi, dword [eax + 0x18]
mov edx, dword [eax + 0x1c]
add edx, ebx
mov dword [ebp - 0xc], edx
mov edx, dword [eax + 0x20]
add edx, ebx
mov dword [ebp - 4], edx
mov edx, dword [eax + 0x24]
add edx, ebx
mov dword [ebp - 8], edx
mov edx, dword [ebp + 0xc]
cmp edx, 0xffff
jbe 0x8beceb
test edi, edi
jbe 0x8bed07
mov eax, dword [ebp - 4]
mov eax, dword [eax]
add eax, ebx
mov edx, dword [ebp + 0xc]
call fcn.00809430
test eax, eax
jne 0x8becdc
mov eax, dword [ebp - 8]
movzx eax, word [eax]
shl eax, 2
add eax, dword [ebp - 0xc]
mov esi, dword [eax]
test esi, esi
je 0x8bed07
add ebx, esi
mov esi, ebx
jmp 0x8bed07
add dword [ebp - 8], 2
add dword [ebp - 4], 4
dec edi
test edi, edi
ja 0x8becb1
jmp 0x8bed07
mov edi, edx
sub edi, dword [eax + 0x10]
cmp edi, dword [eax + 0x14]
jae 0x8bed07
mov eax, edi
shl eax, 2
add eax, dword [ebp - 0xc]
mov esi, dword [eax]
test esi, esi
je 0x8bed07
add ebx, esi
mov esi, ebx
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x8d01dc
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 0x8d020d
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x8d01f5
add dl, dl
jne 0x8d0218
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x8d0269
xor eax, eax
add dl, dl
jne 0x8d0225
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x8d0306
add dl, dl
jne 0x8d0234
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8d023f
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8d024a
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8d0255
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x8d025f
mov ebx, edi
sub ebx, eax
mov al, byte [ebx]
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x8d0204
mov eax, 1
add dl, dl
jne 0x8d0277
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8d0282
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x8d026e
sub eax, ebx
mov ebx, 1
jne 0x8d02b5
mov ecx, 1
add dl, dl
jne 0x8d029b
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x8d02a6
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x8d0292
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x8d0204
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x8d02cc
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x8d02d7
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x8d02c3
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 0x8d0204
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x8d0327
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 0x8d0204
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 0x8d0460
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 0x8d0491
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x8d0479
add dl, dl
jne 0x8d049c
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x8d04ed
xor eax, eax
add dl, dl
jne 0x8d04a9
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x8d058a
add dl, dl
jne 0x8d04b8
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8d04c3
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8d04ce
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8d04d9
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x8d04e3
mov ebx, edi
sub ebx, eax
mov al, byte [ebx]
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x8d0488
mov eax, 1
add dl, dl
jne 0x8d04fb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8d0506
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x8d04f2
sub eax, ebx
mov ebx, 1
jne 0x8d0539
mov ecx, 1
add dl, dl
jne 0x8d051f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x8d052a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x8d0516
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x8d0488
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x8d0550
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x8d055b
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x8d0547
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 0x8d0488
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x8d05ab
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 0x8d0488
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 0x8d0a38
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef0
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
test edi, edi
jle 0x8d0acb
xor ebx, ebx
mov byte [ebp - 9], 0
lea eax, [ebp - 0x110]
mov ecx, 0x100
mov edx, dword [ebp + 8]
call fcn.00806810
dec edi
test edi, edi
jl 0x8d0acb
inc edi
mov dword [ebp - 0x10], edi
xor edx, edx
inc ebx
mov esi, ebx
and esi, 0xff
mov al, byte [ebp + esi - 0x110]
add byte [ebp - 9], al
xor ecx, ecx
mov cl, byte [ebp - 9]
mov cl, byte [ebp + ecx - 0x110]
mov byte [ebp + esi - 0x110], cl
xor ecx, ecx
mov cl, byte [ebp - 9]
mov byte [ebp + ecx - 0x110], al
add al, byte [ebp + esi - 0x110]
mov ecx, dword [ebp - 4]
mov cl, byte [ecx + edx]
and eax, 0xff
xor cl, byte [ebp + eax - 0x110]
mov eax, dword [ebp - 8]
mov byte [eax + edx], cl
inc edx
dec dword [ebp - 0x10]
jne 0x8d0a74
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x8d146c
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
test dl, dl
je 0x8d147f
add esp, 0xfffffff0
call fcn.00802568
mov esi, ecx
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.008021d4
mov byte [ebx + 4], 0
cmp dword [esi + 0x5c], 0
jne 0x8d14a5
cmp dword [esi + 0x58], 0x40
jb 0x8d168b
jmp 0x8d14ab
jl 0x8d168b
lea eax, [ebx + 0xc]
mov edx, 0x40
call fcn.00806818
push 0
push 0
push 0
push 0x40
lea edx, [ebx + 0xc]
mov eax, esi
call fcn.008d0d70
cmp word [ebx + 0xc], 0x5a4d
jne 0x8d168b
mov ecx, dword [ebx + 0x48]
test ecx, ecx
jle 0x8d168b
cmp ecx, 0x10000
jge 0x8d168b
mov eax, ecx
add eax, 4
add eax, 0x14
cdq
cmp edx, dword [esi + 0x5c]
jne 0x8d1506
cmp eax, dword [esi + 0x58]
ja 0x8d168b
jmp 0x8d150c
jg 0x8d168b
lea eax, [ebx + 0x4c]
mov edx, 4
call fcn.00806818
mov eax, dword [ebx + 0x48]
cdq
push edx
push eax
push 0
push 4
lea edx, [ebx + 0x4c]
mov eax, esi
call fcn.008d0d70
cmp dword [ebx + 0x4c], 0x4550
jne 0x8d168b
lea eax, [ebx + 0x50]
mov edx, 0x14
call fcn.00806818
mov eax, dword [ebx + 0x48]
add eax, 4
cdq
push edx
push eax
push 0
push 0x14
lea edx, [ebx + 0x50]
mov eax, esi
call fcn.008d0d70
mov ax, word [ebx + 0x50]
cmp ax, 0x8664
jne 0x8d15c3
mov eax, dword [ebx + 0x48]
add eax, 4
add eax, 0x14
add eax, 0xf0
cdq
cmp edx, dword [esi + 0x5c]
jne 0x8d1587
cmp eax, dword [esi + 0x58]
ja 0x8d1614
jmp 0x8d158d
jg 0x8d1614
lea eax, [ebx + 0x144]
mov edx, 0xf0
call fcn.00806818
mov eax, dword [ebx + 0x48]
add eax, 4
add eax, 0x14
cdq
push edx
push eax
push 0
push 0xf0
lea edx, [ebx + 0x144]
mov eax, esi
call fcn.008d0d70
mov byte [ebx + 4], 1
jmp 0x8d1614
cmp ax, 0x14c
jne 0x8d1614
mov eax, dword [ebx + 0x48]
add eax, 4
add eax, 0x14
add eax, 0xe0
cdq
cmp edx, dword [esi + 0x5c]
jne 0x8d15e4
cmp eax, dword [esi + 0x58]
ja 0x8d1614
jmp 0x8d15e6
jg 0x8d1614
lea eax, [ebx + 0x64]
mov edx, 0xe0
call fcn.00806818
mov eax, dword [ebx + 0x48]
add eax, 4
add eax, 0x14
cdq
push edx
push eax
push 0
push 0xe0
lea edx, [ebx + 0x64]
mov eax, esi
call fcn.008d0d70
mov byte [ebx + 4], 1
cmp byte [ebx + 4], 0
je 0x8d168b
mov eax, dword [ebx + 0x48]
add eax, 4
add eax, 0x14
movzx edx, word [ebx + 0x60]
add eax, edx
mov di, word [ebx + 0x52]
movzx edx, di
shl edx, 3
lea edx, [edx + edx*4]
add eax, edx
cdq
cmp edx, dword [esi + 0x5c]
jne 0x8d1645
cmp eax, dword [esi + 0x58]
ja 0x8d168b
jmp 0x8d1647
jg 0x8d168b
movzx eax, di
push eax
lea eax, [ebx + 8]
mov ecx, 1
mov edx, dword [0x8d07f8]
call fcn.00804814
add esp, 4
mov eax, dword [ebx + 0x48]
add eax, 4
add eax, 0x14
movzx edx, word [ebx + 0x60]
add eax, edx
cdq
push edx
push eax
movzx eax, word [ebx + 0x52]
shl eax, 3
lea eax, [eax + eax*4]
xor edx, edx
push edx
push eax
mov edx, dword [ebx + 8]
mov eax, esi
call fcn.008d0d70
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x8d16a2
call fcn.008025c0
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x8d236c
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 0x8d242b
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 0x8d241d
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 0x8d2406
test esi, esi
jbe 0x8d241d
mov eax, dword [edi]
add eax, ebx
mov edx, dword [ebp - 4]
call fcn.00809430
test eax, eax
jne 0x8d23f8
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 0x8d241d
add dword [ebp - 0xc], 2
add edi, 4
dec esi
test esi, esi
ja 0x8d23d5
jmp 0x8d241d
mov ecx, edx
sub ecx, dword [eax + 0x10]
cmp ecx, dword [eax + 0x14]
jae 0x8d241d
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 0x8d2432
ret
Function at 0x8d2e4c
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 0x8d2ffb
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
call fcn.008037f8
xor ebx, ebx
mov eax, ebx
and eax, 0x80000001
jns 0x8d2e87
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x8d2ea0
lea eax, [ebp - 0x10]
mov edx, dword [0x8fcecc]
mov edx, dword [edx]
mov edx, dword [edx + 0x10]
call fcn.00803858
jmp 0x8d2eb3
lea eax, [ebp - 0x10]
mov edx, dword [0x8fcecc]
mov edx, dword [edx]
mov edx, dword [edx + 0x14]
call fcn.00803858
lea eax, [ebp - 0x10]
mov edx, ebx
sar edx, 1
jns 0x8d2ebf
adc edx, 0
mov edx, dword [edx*4 + 0x8fb704]
call fcn.00803a64
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 0x10]
call fcn.00803a48
push eax
call fcn.008059c4
mov esi, eax
cmp esi, 0xffffffff
je 0x8d2fcd
mov eax, 0x40
call fcn.00801714
mov edi, eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0x40
push edi
push esi
call fcn.00805dcc
test eax, eax
je 0x8d2fc0
mov eax, edi
cmp word [eax], 0x5a4d
jne 0x8d2fc0
push 0
push 0
mov eax, dword [eax + 0x3c]
push eax
push esi
call fcn.00805e3c
mov eax, edi
call fcn.00801734
mov eax, 0x18
call fcn.00801714
mov edi, eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0x18
push edi
push esi
call fcn.00805dcc
test eax, eax
je 0x8d2fc0
mov eax, edi
cmp dword [eax], 0x4550
jne 0x8d2fc0
add eax, 4
mov dx, word [eax]
cmp dx, 0x14c
jb 0x8d2fc0
cmp dx, 0x150
ja 0x8d2fc0
mov eax, edi
call fcn.00801734
mov eax, 0xe0
call fcn.00801714
mov edi, eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0xe0
push edi
push esi
call fcn.00805dcc
test eax, eax
je 0x8d2fc0
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 2]
jne 0x8d2fc0
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.00803834
mov eax, edi
call fcn.00801734
push esi
call fcn.0080597c
mov eax, dword [ebp + 8]
mov eax, dword [eax]
xor edx, edx
call fcn.00803b70
jne 0x8d2fe5
inc ebx
cmp ebx, 0x19
jne 0x8d2e79
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x8d3002
lea eax, [ebp - 0x10]
call fcn.008037f8
ret
Function at 0x8d3308
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
mov esi, ecx
mov edi, edx
xor ebx, ebx
push 0
push 0
push 0
push edi
call fcn.00805e3c
push 0
lea eax, [ebp - 4]
push eax
push 0x40
push esi
push edi
call fcn.00805dcc
test eax, eax
je 0x8d33a5
cmp word [esi], 0x5a4d
jne 0x8d33a5
push 0
push 0
mov eax, dword [esi + 0x3c]
push eax
push edi
call fcn.00805e3c
push 0
lea eax, [ebp - 4]
push eax
push 0x18
lea eax, [ebp - 0x1c]
push eax
push edi
call fcn.00805dcc
test eax, eax
je 0x8d33a5
cmp dword [ebp - 0x1c], 0x4550
jne 0x8d33a5
lea edx, [ebp - 0x18]
mov ecx, 0x14
mov eax, dword [ebp + 0xc]
call fcn.00806810
mov ax, word [ebp - 0x18]
cmp ax, 0x14c
jb 0x8d33a5
cmp ax, 0x150
ja 0x8d33a5
push 0
lea eax, [ebp - 4]
push eax
push 0xe0
mov eax, dword [ebp + 8]
push eax
push edi
call fcn.00805dcc
test eax, eax
je 0x8d33a5
mov bl, 1
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x1008f43
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
shr ecx, 2
xor dword [edx], eax
add edx, 4
dec ecx
jne 0x1008f5b
pop ebp
ret 0xc

Function at 0x100900a
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push ebp
mov esi, dword [ebp + 0xc]
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 0x100903b
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1009019
add dl, dl
jne 0x100904e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x10090be
xor eax, eax
add dl, dl
jne 0x1009063
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1009193
add dl, dl
jne 0x1009076
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1009085
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1009094
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x10090a3
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x10090b1
mov ebx, edi
sub ebx, eax
mov al, byte [ebx]
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x100902e
mov eax, 1
add dl, dl
jne 0x10090d0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x10090df
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x10090c3
sub eax, ebx
mov ebx, 1
jne 0x1009126
mov ecx, 1
add dl, dl
jne 0x1009104
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1009113
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x10090f7
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x100902e
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1009141
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1009150
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1009134
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 0x100902e
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x10091bb
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 0x100902e
pop ebp
sub edi, dword [ebp + 8]
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x1022340
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xbd7000]
push edi
or ebp, 0xffffffff
jmp 0x1022362
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x1022369
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1022358
mov eax, 1
add ebx, ebx
jne 0x102237b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x102238c
jne 0x10223ab
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x10223ab
dec eax
add ebx, ebx
jne 0x1022398
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x1022370
add ebx, ebx
jne 0x10223a7
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x10223fd
xor ecx, ecx
sub eax, 3
jb 0x10223c3
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x1022432
sar eax, 1
mov ebp, eax
jmp 0x10223ce
add ebx, ebx
jne 0x10223ce
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x102239c
inc ecx
add ebx, ebx
jne 0x10223dc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x102239c
add ebx, ebx
jne 0x10223e9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x10223de
jne 0x10223fa
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x10223de
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x102241c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x102240e
jmp 0x102235e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x102241c
add edi, ecx
jmp 0x102235e
pop esi
mov edi, esi
mov ecx, 0x31eb
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x102243a
cmp byte [edi], 0x13
jne 0x102243a
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 0x102243f
lea edi, [esi + 0xc1f000]
mov eax, dword [edi]
or eax, eax
je 0x10224b7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xc237e8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xc23900]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x102246c
mov ecx, edi
jns 0x102249b
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xc23904]
or eax, eax
je 0x10224b1
mov dword [ebx], eax
add ebx, 4
jmp 0x1022489
call dword [esi + 0xc23914]
mov ebp, dword [esi + 0xc23908]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x20f]
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 0x10224eb
sub esp, 0xffffff80
jmp 0x433f24