joyce8/EMBER2024-capa huggingface dataset:
Function at 0x167a100
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xf06000]
push edi
jmp 0x167a11a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x167a121
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x167a110
mov eax, 1
add ebx, ebx
jne 0x167a133
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x167a144
jne 0x167a163
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x167a163
dec eax
add ebx, ebx
jne 0x167a150
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x167a128
add ebx, ebx
jne 0x167a15f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x167a1b5
xor ecx, ecx
sub eax, 3
jb 0x167a17b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x167a1ea
sar eax, 1
mov ebp, eax
jmp 0x167a186
add ebx, ebx
jne 0x167a186
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x167a154
inc ecx
add ebx, ebx
jne 0x167a194
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x167a154
add ebx, ebx
jne 0x167a1a1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x167a196
jne 0x167a1b2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x167a196
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x167a1d4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x167a1c6
jmp 0x167a116
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x167a1d4
add edi, ecx
jmp 0x167a116
pop esi
mov edi, esi
mov ecx, 0x1000
jmp 0x167a225
mov al, byte [edi]
inc edi
cmp al, 0x80
jb 0x167a205
cmp al, 0x8f
ja 0x167a205
cmp byte [edi - 2], 0xf
je 0x167a20b
sub al, 0xe8
cmp al, 1
ja 0x167a22f
cmp ecx, 4
jb 0x167a234
mov eax, dword [edi]
sub al, 0
jne 0x167a22f
xchg ah, al
rol eax, 0x10
xchg ah, al
sub eax, edi
add eax, esi
sub ecx, 4
stosd dword es:[edi], eax
sub ecx, 1
jb 0x167a234
mov al, byte [edi]
inc edi
jmp 0x167a205
sub ecx, 1
jae 0x167a1f4
lea edi, [esi + 0x1278000]
mov eax, dword [edi]
or eax, eax
je 0x167a27c
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1297154]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x12971c0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x167a23a
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x12971c8]
or eax, eax
je 0x167a276
mov dword [ebx], eax
add ebx, 4
jmp 0x167a257
call dword [esi + 0x12971c4]
mov ebp, dword [esi + 0x12971cc]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x15f]
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 0x167a2b0
sub esp, 0xffffff80
jmp section.UPX0
Function at 0x1000b190
Capabilities:
Hash data using fnv

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x10
mov eax, dword [esp + 0x24]
cmp eax, 0x10000001
jae 0x1000b311
mov ebx, ecx
dec eax
or eax, 1
bsr ecx, eax
xor ecx, 0x1f
neg cl
mov esi, 1
shl esi, cl
lea eax, [ebx + 0xc]
mov ebp, dword [ebx + 4]
mov edx, 2
shl edx, cl
mov ecx, eax
push ebp
push edx
call fcn.1000ad50
lea eax, [esi - 1]
mov dword [ebx + 0x18], eax
mov dword [ebx + 0x1c], esi
mov eax, dword [ebx + 4]
mov eax, dword [eax]
cmp eax, ebp
je 0x1000b307
mov dword [esp + 4], ebx
mov dword [esp], ebp
jmp 0x1000b204
mov dword [edx + ebx*4], ecx
mov dword [edx + esi*4], ecx
mov ebx, eax
mov eax, dword [esp + 0xc]
cmp eax, ebp
je 0x1000b307
mov ecx, eax
mov eax, dword [eax]
mov dword [esp + 0xc], eax
movzx edx, byte [ecx + 8]
xor edx, 0x811c9dc5
imul edx, edx, 0x1000193
movzx esi, byte [ecx + 9]
xor esi, edx
imul edx, esi, 0x1000193
movzx esi, byte [ecx + 0xa]
xor esi, edx
imul edx, esi, 0x1000193
movzx esi, byte [ecx + 0xb]
xor esi, edx
imul edi, esi, 0x1000193
and edi, dword [ebx + 0x18]
mov edx, dword [ebx + 0xc]
mov eax, ebx
lea ebx, [edi + edi]
lea esi, [edi*2 + 1]
mov edi, dword [edx + edi*8]
cmp edi, ebp
je 0x1000b1f0
mov dword [esp + 8], ebx
mov ebp, dword [edx + esi*4]
mov ebx, dword [ecx + 8]
cmp ebx, dword [ebp + 8]
jne 0x1000b2a0
mov edi, dword [ebp]
cmp edi, ecx
mov eax, dword [esp + 0xc]
je 0x1000b2f5
mov ebx, dword [ecx + 4]
mov dword [esp + 8], ebx
mov dword [ebx], eax
mov ebp, dword [eax + 4]
mov dword [ebp], edi
mov ebx, dword [edi + 4]
mov dword [ebx], ecx
mov dword [edi + 4], ebp
mov edi, dword [esp + 8]
mov dword [eax + 4], edi
mov dword [ecx + 4], ebx
jmp 0x1000b2f5
mov eax, dword [esp + 0xc]
nop word cs:[eax + eax]
cmp edi, ebp
je 0x1000b2d9
mov ebp, dword [ebp + 4]
cmp ebx, dword [ebp + 8]
jne 0x1000b2b0
mov edx, dword [ebp]
mov esi, dword [ecx + 4]
mov dword [esi], eax
mov edi, dword [eax + 4]
mov dword [edi], edx
mov ebx, dword [edx + 4]
mov dword [ebx], ecx
mov dword [edx + 4], edi
mov dword [eax + 4], esi
mov dword [ecx + 4], ebx
jmp 0x1000b2f8
mov esi, dword [ecx + 4]
mov dword [esi], eax
mov edi, dword [eax + 4]
mov dword [edi], ebp
mov ebx, dword [ebp + 4]
mov dword [ebx], ecx
mov dword [ebp + 4], edi
mov dword [eax + 4], esi
mov dword [ecx + 4], ebx
mov esi, dword [esp + 8]
mov dword [edx + esi*4], ecx
mov ebx, dword [esp + 4]
mov ebp, dword [esp]
cmp eax, ebp
jne 0x1000b204
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret 4
push str.invalid_hash_bucket_count
call fcn.1000cd6b
int3
Function at 0x1000ba90
Capabilities:
Hash data using fnv

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x10
mov eax, dword [esp + 0x24]
cmp eax, 0x10000001
jae 0x1000bbf2
mov ebx, ecx
dec eax
or eax, 1
bsr ecx, eax
xor ecx, 0x1f
neg cl
mov esi, 1
shl esi, cl
lea eax, [ebx + 0xc]
mov ebp, dword [ebx + 4]
mov edx, 2
shl edx, cl
mov ecx, eax
push ebp
push edx
call fcn.1000ad50
lea eax, [esi - 1]
mov dword [ebx + 0x18], eax
mov dword [ebx + 0x1c], esi
mov eax, dword [ebx + 4]
mov eax, dword [eax]
cmp eax, ebp
je 0x1000bbe8
mov dword [esp + 4], ebx
mov dword [esp], ebp
jmp 0x1000bb04
mov dword [edx + ebx*4], ecx
mov dword [edx + esi*4], ecx
mov ebx, eax
mov eax, dword [esp + 0xc]
cmp eax, ebp
je 0x1000bbe8
mov ecx, eax
mov eax, dword [eax]
mov dword [esp + 0xc], eax
movzx edx, byte [ecx + 8]
xor edx, 0x11c9dc5
imul edx, edx, 0x1000193
movzx esi, byte [ecx + 9]
xor esi, edx
imul edi, esi, 0x1000193
and edi, dword [ebx + 0x18]
mov edx, dword [ebx + 0xc]
mov eax, ebx
lea ebx, [edi + edi]
lea esi, [edi*2 + 1]
mov edi, dword [edx + edi*8]
cmp edi, ebp
je 0x1000baf0
mov dword [esp + 8], ebx
mov ebp, dword [edx + esi*4]
movzx ebx, word [ecx + 8]
cmp bx, word [ebp + 8]
jne 0x1000bb80
mov edi, dword [ebp]
cmp edi, ecx
mov eax, dword [esp + 0xc]
je 0x1000bbd6
mov ebx, dword [ecx + 4]
mov dword [esp + 8], ebx
mov dword [ebx], eax
mov ebp, dword [eax + 4]
mov dword [ebp], edi
mov ebx, dword [edi + 4]
mov dword [ebx], ecx
mov dword [edi + 4], ebp
mov edi, dword [esp + 8]
mov dword [eax + 4], edi
mov dword [ecx + 4], ebx
jmp 0x1000bbd6
mov eax, dword [esp + 0xc]
nop word cs:[eax + eax]
cmp edi, ebp
je 0x1000bbba
mov ebp, dword [ebp + 4]
cmp bx, word [ebp + 8]
jne 0x1000bb90
mov edx, dword [ebp]
mov esi, dword [ecx + 4]
mov dword [esi], eax
mov edi, dword [eax + 4]
mov dword [edi], edx
mov ebx, dword [edx + 4]
mov dword [ebx], ecx
mov dword [edx + 4], edi
mov dword [eax + 4], esi
mov dword [ecx + 4], ebx
jmp 0x1000bbd9
mov esi, dword [ecx + 4]
mov dword [esi], eax
mov edi, dword [eax + 4]
mov dword [edi], ebp
mov ebx, dword [ebp + 4]
mov dword [ebx], ecx
mov dword [ebp + 4], edi
mov dword [eax + 4], esi
mov dword [ecx + 4], ebx
mov esi, dword [esp + 8]
mov dword [edx + esi*4], ecx
mov ebx, dword [esp + 4]
mov ebp, dword [esp]
cmp eax, ebp
jne 0x1000bb04
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret 4
push str.invalid_hash_bucket_count
call fcn.1000cd6b
int3

Function at 0x10012809
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x10012848
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10012848
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10012848
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x10012848
cmp dword [ecx + 0x74], 0xe
jbe 0x10012848
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x10018d04
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x10018da1
push ebx
push esi
call fcn.10018ccd
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.10018c63
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x10018d4e
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10018da0
push edi
push eax
call fcn.10016140
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x10018d6e
call fcn.10014fa0
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10018d9f
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.10018c63
add esp, 0x20
test eax, eax
jne 0x10018d8d
push edi
call fcn.10014fa0
jmp 0x10018d95
push ebx
call fcn.10014fa0
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret
Function at 0x1001d077
Capabilities:
Get file size

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x18
mov eax, dword [eax + 0xc]
nop
shr eax, 3
test al, 1
je 0x1001d091
mov al, 1
leave
ret
mov eax, dword [ebp + 8]
push ebx
push esi
mov eax, dword [eax + 0xc]
nop
test al, 0xc0
mov eax, dword [ebp + 8]
je 0x1001d0a8
mov ecx, dword [eax]
cmp ecx, dword [eax + 4]
je 0x1001d100
mov eax, dword [eax + 0x10]
nop
push eax
call fcn.1001bf52
mov esi, eax
pop ecx
cmp esi, 0xffffffff
je 0x1001d100
xor ebx, ebx
lea eax, [ebp - 0x10]
inc ebx
xorps xmm0, xmm0
push ebx
push eax
movlpd qword [ebp - 8], xmm0
push dword [ebp - 4]
push dword [ebp - 8]
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1001d100
lea eax, [ebp - 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1001d100
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x18]
jne 0x1001d0fa
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x14]
je 0x1001d0fc
xor bl, bl
mov al, bl
jmp 0x1001d102
xor al, al
pop esi
pop ebx
leave
ret
Function at 0x100200c2
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov edx, dword [ebp + 8]
mov ecx, edx
push ebx
mov ebx, dword [ebp + 0xc]
mov eax, edx
sar ecx, 6
and eax, 0x3f
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x1002ead8]
mov dword [ebp - 0x18], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x10020104
cmp byte [ebx], 0xa
jne 0x10020104
or byte [edi + eax + 0x28], 4
jmp 0x10020109
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x1002020c
mov cl, byte [eax]
cmp cl, 0x1a
je 0x100201e7
lea ebx, [eax + 1]
mov dword [ebp - 8], ebx
mov ebx, dword [ebp + 0xc]
cmp cl, 0xd
je 0x10020138
mov eax, dword [ebp - 8]
jmp 0x10020158
mov edx, dword [ebp - 0x10]
cmp dword [ebp - 8], edx
mov edx, dword [ebp + 8]
jae 0x10020174
mov ebx, dword [ebp - 8]
cmp byte [ebx], 0xa
jne 0x10020152
add eax, 2
mov cl, 0xa
jmp 0x10020155
mov eax, dword [ebp - 8]
mov ebx, dword [ebp + 0xc]
mov byte [esi], cl
mov dword [ebp - 0xc], 1
mov dword [ebp - 8], esi
mov esi, dword [ebp - 0xc]
add esi, dword [ebp - 8]
cmp eax, dword [ebp - 0x10]
jb 0x1002011a
jmp 0x1002020c
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100201e2
cmp dword [ebp - 0x10], 0
je 0x100201e2
mov edx, dword [ebp - 0x18]
mov eax, dword [edx*4 + 0x1002ead8]
test byte [eax + edi + 0x28], 0x48
je 0x100201c1
mov cl, byte [ebp - 1]
cmp cl, 0xa
jne 0x100201b1
mov byte [esi], 0xa
jmp 0x1002020b
mov byte [esi], 0xd
mov eax, dword [edx*4 + 0x1002ead8]
mov byte [eax + edi + 0x2a], cl
jmp 0x1002020b
cmp byte [ebp - 1], 0xa
jne 0x100201cb
cmp esi, ebx
je 0x100201ac
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.10020032
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x1002020c
mov byte [esi], 0xd
jmp 0x1002020b
mov eax, edx
and edx, 0x3f
sar eax, 6
imul edx, edx, 0x38
mov edi, dword [eax*4 + 0x1002ead8]
mov al, byte [edi + edx + 0x28]
test al, 0x40
jne 0x10020209
or al, 2
mov byte [edi + edx + 0x28], al
jmp 0x1002020c
mov byte [esi], cl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x10020215
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 8]
and eax, 0x3f
push ebx
mov ebx, dword [ebp + 0xc]
sar edx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [edx*4 + 0x1002ead8]
mov dword [ebp - 8], edx
mov edx, dword [eax + edi + 0x18]
mov dword [ebp - 0x18], edx
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x10020259
push 0xa
pop esi
cmp word [ebx], si
jne 0x10020259
or byte [eax + edi + 0x28], 4
jmp 0x1002025e
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + edx*2]
mov eax, ebx
mov dword [ebp - 0x10], edx
mov esi, ebx
cmp ebx, edx
jae 0x100203c9
movzx edx, word [eax]
mov ecx, edx
mov dword [ebp - 0xc], ecx
movzx ecx, cx
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 8]
cmp edx, 0x1a
je 0x100203a1
lea ebx, [eax + 2]
mov dword [ebp - 4], ebx
push 0xd
pop ebx
cmp dx, bx
mov ebx, dword [ebp + 0xc]
je 0x100202ab
mov ebx, dword [ebp - 0x14]
mov edx, esi
mov eax, dword [ebp - 4]
movzx ebx, bx
mov dword [ebp - 4], ebx
jmp 0x100202d5
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 0x10]
jae 0x100202f4
push 0xa
pop ebx
cmp word [edx], bx
jne 0x100202c2
push ebx
add eax, 4
pop edx
jmp 0x100202ca
mov eax, edx
mov edx, dword [ebp - 0xc]
movzx edx, dx
movzx edx, dx
mov dword [ebp - 4], edx
mov edx, esi
mov dword [ebp - 0x14], esi
mov ecx, dword [ebp - 4]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0xc], 2
mov word [esi], cx
mov esi, dword [ebp - 0xc]
add esi, edx
cmp eax, dword [ebp - 0x10]
jb 0x10020270
jmp 0x100203c9
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1002039c
cmp dword [ebp - 0x14], 0
je 0x1002039c
mov eax, dword [ebp - 8]
push 0xa
mov eax, dword [eax*4 + 0x1002ead8]
test byte [eax + edi + 0x28], 0x48
pop eax
je 0x10020378
mov dx, word [ebp - 4]
cmp dx, ax
jne 0x10020340
mov word [esi], ax
jmp 0x100203c6
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebp - 8]
movzx ecx, dx
shr ecx, 8
push 0xa
mov eax, dword [eax*4 + 0x1002ead8]
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x1002ead8]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x1002ead8]
pop ecx
mov byte [eax + edi + 0x2c], cl
jmp 0x100203c6
cmp word [ebp - 4], ax
jne 0x10020382
cmp esi, ebx
je 0x10020338
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.10020032
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x100203c9
push 0xd
pop eax
jmp 0x10020338
mov eax, ecx
and ecx, 0x3f
sar eax, 6
imul ecx, ecx, 0x38
mov edi, dword [eax*4 + 0x1002ead8]
mov al, byte [edi + ecx + 0x28]
test al, 0x40
jne 0x100203c3
or al, 2
mov byte [edi + ecx + 0x28], al
jmp 0x100203c9
mov word [esi], dx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x10020bf3
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.10020b6f
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x10020d62
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x10020d62
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x10020d17
jg 0x10020c4f
test eax, eax
je 0x10020d0d
push 1
push 0x1000
call fcn.10014f40
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x10020c72
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x10020d04
push 0x8000
push ebx
call fcn.10020a9e
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x10020c9b
jg 0x10020c96
cmp ecx, 0x1000
jb 0x10020c9b
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.1001b96c
add esp, 0x10
cmp eax, 0xffffffff
je 0x10020ce0
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x10020c96
jl 0x10020cc7
test ecx, ecx
jne 0x10020c88
push dword [ebp - 0xc]
push ebx
call fcn.10020a9e
push esi
call fcn.10014fa0
add esp, 0xc
xor ebx, ebx
jmp 0x10020d70
cmp byte [edi + 0x24], 0
je 0x10020cf7
cmp dword [edi + 0x20], 5
jne 0x10020cf7
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x10020d02
mov ebx, dword [edi + 0x18]
jmp 0x10020d04
xor ebx, ebx
push esi
call fcn.10014fa0
pop ecx
jmp 0x10020d70
test ecx, ecx
jg 0x10020cd9
jl 0x10020d17
test eax, eax
jae 0x10020cd9
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.10020032
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x10020d37
cmp byte [edi + 0x1c], 0
je 0x10020cd9
jmp 0x10020d68
push ebx
call fcn.1001bf52
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x10020cd9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x10020d70
cmp byte [edi + 0x1c], 0
je 0x10020d6d
mov ebx, dword [edi + 0x18]
jmp 0x10020d70
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.10020032
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10022350
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1002237d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1002237d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x406624
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
mov esi, 0x104
lea eax, [ebp - 0x23c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
jbe 0x406648
xor eax, eax
test eax, eax
je 0x40665b
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x40665b
xor ecx, ecx
jmp 0x40665e
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx*2 + 0x40a014]
lea eax, [ebp + eax*2 - 0x23c]
push ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

Function at 0x406787
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x4318ec], 0
push esi
jne 0x4067be
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406798
mov dword [ecx*4 + 0x4318e8], eax
inc ecx
cmp ecx, 0x100
jl 0x406793
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x4067ef
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x4318e8]
xor eax, esi
inc ecx
dec edx
jne 0x4067d1
pop edi
not eax
pop esi
ret 0xc

Function at 0x430000
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
push 4
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
nop
je 0x430072
nop
mov ebx, 0x408ecc
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x72b60416
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x430060
nop
mov eax, section..data
nop
nop
nop
cmp eax, 0
nop
nop
je 0x4300d2
nop
nop
mov ebx, 0x42e1d0
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
nop
mov esi, 0x51805deb
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x4300c0
nop
nop
popal
nop
nop
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 + 0x4e1008], 0x8088405
inc edx
mov dword [ebx + 0x4e1008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x41d254
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 0x41d285
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41d26d
add dl, dl
jne 0x41d290
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41d2e1
xor eax, eax
add dl, dl
jne 0x41d29d
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41d37e
add dl, dl
jne 0x41d2ac
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41d2b7
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41d2c2
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41d2cd
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x41d2d7
mov ebx, edi
sub ebx, eax
mov al, byte [ebx]
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x41d27c
mov eax, 1
add dl, dl
jne 0x41d2ef
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41d2fa
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41d2e6
sub eax, ebx
mov ebx, 1
jne 0x41d32d
mov ecx, 1
add dl, dl
jne 0x41d313
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41d31e
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41d30a
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41d27c
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x41d344
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41d34f
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41d33b
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 0x41d27c
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x41d39f
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 0x41d27c
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