joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10005880
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [esp + 0xc], edi
test eax, eax
jg 0x100058b2
jl 0x100058a5
test ecx, ecx
jne 0x100058b2
xor eax, eax
xor edx, edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x10005972
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], eax
mov ecx, ebx
call fcn.10006f50
mov esi, eax
mov eax, edx
mov dword [esp + 0x14], eax
test eax, eax
jl 0x1000591e
jg 0x100058dd
test esi, esi
je 0x1000591e
mov ecx, dword [esp + 0xc]
cmp ecx, eax
jg 0x100058f5
mov eax, dword [esp + 0x10]
jl 0x100058ef
cmp eax, esi
jae 0x100058f5
mov esi, eax
mov dword [esp + 0x14], ecx
mov eax, dword [ebx + 0x1c]
push esi
push dword [eax]
push edi
call fcn.10045830
mov eax, dword [ebx + 0x2c]
add esp, 0xc
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
sub ecx, esi
sbb edx, dword [esp + 0x14]
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
jmp 0x1000593f
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x1c]
mov edx, dword [esp + 0xc]
cmp eax, 0xffffffff
je 0x1000595b
mov ecx, dword [esp + 0x10]
mov esi, 1
add ecx, 0xffffffff
mov byte [edi], al
adc edx, 0xffffffff
add edi, esi
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], ecx
test edx, edx
jg 0x100058c4
jl 0x1000595b
test ecx, ecx
jne 0x100058c4
mov eax, dword [ebp + 0xc]
sub eax, dword [esp + 0x10]
mov ecx, dword [ebp + 0x10]
sbb ecx, edx
mov edx, ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x1c]
lea esi, [ebx + 0x2c]
mov edi, ecx
mov edx, dword [eax]
test edx, edx
je 0x100059b6
mov eax, dword [esi]
mov eax, dword [eax]
test eax, eax
je 0x100059b6
mov edi, dword [esp + 0xc]
cmp eax, ecx
mov esi, ecx
cmovb esi, eax
push esi
push edx
push edi
call fcn.10045830
mov eax, dword [ebx + 0x2c]
add edi, esi
mov dword [esp + 0x18], edi
add esp, 0xc
mov edi, dword [ebp + 0xc]
sub edi, esi
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
lea esi, [ebx + 0x2c]
cmp dword [ebx + 0x4c], 0
je 0x10005a27
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x100059dc
mov eax, dword [ebx + 0xc]
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x50]
sub edx, ecx
mov dword [eax], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi]
mov dword [eax], edx
mov esi, dword [esp + 0xc]
cmp edi, 0xfff
jbe 0x10005a12
nop dword [eax + eax]
push dword [ebx + 0x4c]
push 0xfff
push 1
push esi
call fcn.10049b7b
add esp, 0x10
add esi, eax
sub edi, eax
cmp eax, 0xfff
jne 0x10005a27
cmp edi, eax
ja 0x100059f0
test edi, edi
je 0x10005a27
push dword [ebx + 0x4c]
push edi
push 1
push esi
call fcn.10049b7b
add esp, 0x10
sub edi, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, edi
pop edi
pop esi
sbb edx, 0
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10005d90
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x1008700c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x10005dc0
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100427b4
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x10005dfc
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x10005dfc
lea ecx, [edi - 1]
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100427b4
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x10005ee4
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x10005e24
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x10005e57
push dword [esi + 0x4c]
movsx eax, bl
push eax
call fcn.100488bc
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100427b4
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x25], bl
mov edx, dword [ecx]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x25]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x1c]
sub eax, 0
je 0x10005eb7
sub eax, 1
je 0x10005eb7
sub eax, 2
jne 0x10005ee4
push dword [esi + 0x4c]
movsx eax, byte [ebp - 0x25]
push eax
call fcn.100488bc
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100427b4
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x10005ed4
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.100494fe
add esp, 0x10
cmp edi, eax
jne 0x10005ee4
lea eax, [ebp - 0x25]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x30], eax
jne 0x10005de7
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100427b4
mov esp, ebp
pop ebp
ret 4
Function at 0x10006d50
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x1008700c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x10006e0a
cmp byte [esi + 0x3d], 0
je 0x10006e0a
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x10006df8
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
mov edx, dword [ecx]
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x10006dc0
sub eax, 1
je 0x10006dc4
sub eax, 2
jne 0x10006df8
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100427b4
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x10006de1
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.100494fe
add esp, 0x10
cmp edi, eax
jne 0x10006df8
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100427b4
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100427b4
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.100427b4
mov esp, ebp
pop ebp
ret

Function at 0x10007210
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10069030
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x1008700c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x10], eax
push 8
mov dword [eax], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.100429c4
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.10043bf5
mov dword [esi + 4], eax
add esp, 8
mov eax, dword [ebp - 0x10]
lea edi, [eax + 0x14]
lea ecx, [eax + 0x18]
lea edx, [eax + 0x24]
mov dword [eax + 0x34], esi
lea ebx, [eax + 4]
mov dword [eax + 0xc], ebx
lea esi, [eax + 8]
mov dword [eax + 0x10], esi
mov dword [eax + 0x1c], edi
mov dword [eax + 0x20], ecx
mov dword [eax + 0x2c], edx
add eax, 0x28
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x10]
mov dword [ebx + 0x30], eax
mov ebx, dword [ebp - 0x14]
mov dword [esi], 0
mov dword [ecx], 0
mov dword [eax], 0
mov eax, dword [ebp - 0x10]
mov dword [ebx], 0
mov dword [edi], 0
mov dword [edx], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10009a40
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, edx
not ebx
mov esi, ecx
mov eax, ebx
test edi, edi
je 0x10009aa1
mov cl, byte [esi]
lea esi, [esi + 1]
dec edi
cmp cl, 0x23
jne 0x10009a84
cmp edi, 2
jb 0x10009a84
cmp byte [esi], cl
jne 0x10009a84
cmp byte [esi + 1], cl
jne 0x10009a84
mov eax, ebx
movzx ecx, cl
movzx edx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x10078f80]
jmp 0x10009a55
movzx edx, al
movzx ecx, cl
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x10078f80]
test edi, edi
jne 0x10009a55
pop edi
pop esi
not eax
pop ebx
pop ebp
ret
mov cl, byte [esi]
inc esi
test cl, cl
je 0x10009ad0
cmp cl, 0x23
jne 0x10009ab7
cmp byte [esi], cl
jne 0x10009ab7
cmp byte [esi + 1], cl
cmove eax, ebx
movzx edx, al
movzx ecx, cl
xor edx, ecx
shr eax, 8
mov cl, byte [esi]
inc esi
xor eax, dword [edx*4 + 0x10078f80]
test cl, cl
jne 0x10009aa8
pop edi
pop esi
not eax
pop ebx
pop ebp
ret

Function at 0x10009bb0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
test ebx, ebx
je 0x10009bc3
mov dword [ebx], 0
mov edx, 0x1007d2d0
call fcn.10009ae0
mov esi, eax
test esi, esi
je 0x10009ca0
push esi
call fcn.1004a838
add esp, 4
mov dword [ebp + 8], eax
cmp eax, 0xffffffff
je 0x10009c97
push 2
push 0
push esi
call fcn.10049f8d
add esp, 0xc
test eax, eax
jne 0x10009c97
push esi
call fcn.1004a838
mov edi, eax
add esp, 4
cmp edi, 0xffffffff
je 0x10009c97
push 0
push dword [ebp + 8]
push esi
call fcn.10049f8d
add esp, 0xc
test eax, eax
jne 0x10009c97
mov eax, dword [0x10089244]
test eax, eax
je 0x10009c36
inc dword [eax + 0x374]
push edi
call fcn.10050b3a
add esp, 4
mov dword [ebp + 8], eax
test eax, eax
je 0x10009c97
push esi
push edi
push 1
push eax
call fcn.10049b7b
add esp, 0x10
push esi
cmp eax, edi
je 0x10009c81
call fcn.10048f2b
mov eax, dword [0x10089244]
add esp, 4
test eax, eax
je 0x10009c6f
dec dword [eax + 0x374]
push dword [ebp + 8]
call fcn.10049769
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
call fcn.10048f2b
add esp, 4
test ebx, ebx
je 0x10009c8f
mov dword [ebx], edi
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
pop ebp
ret
push esi
call fcn.10048f2b
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret
Function at 0x1000c650
Capabilities:
Hash data with crc32

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100692f3
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x28
push esi
push edi
mov eax, dword [0x1008700c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x10089244]
test eax, eax
je 0x1000c69a
inc dword [eax + 0x374]
push 0x3bf8
call fcn.10050b3a
mov dword [ebp - 0x1c], eax
lea ecx, [ebp - 0x11]
add esp, 4
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x1000c6cd
push ecx
mov ecx, eax
call fcn.10008270
mov edi, eax
mov dword [ebp - 0x18], eax
jmp 0x1000c6d2
xor edi, edi
mov dword [ebp - 0x18], edi
mov eax, dword [0x10089244]
mov esi, 0x1007d219
test eax, eax
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x38], str.Window
cmove eax, edi
or edx, 0xffffffff
mov dword [0x10089244], eax
or edi, 0xffffffff
mov al, 0x57
nop dword [eax]
cmp al, 0x23
jne 0x1000c70e
cmp byte [esi], al
jne 0x1000c70e
cmp byte [esi + 1], al
cmove edx, edi
movzx ecx, dl
movzx eax, al
xor ecx, eax
shr edx, 8
mov al, byte [esi]
inc esi
xor edx, dword [ecx*4 + 0x10078f80]
test al, al
jne 0x1000c700
mov edi, dword [ebp - 0x18]
not edx
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x30], 0x10019670
mov dword [ebp - 0x2c], 0x10019710
mov esi, dword [edi + 0x2db0]
mov ecx, dword [edi + 0x2db4]
mov dword [ebp - 0x28], 0x100197e0
cmp esi, ecx
jne 0x1000c7e6
inc esi
test ecx, ecx
je 0x1000c768
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
jmp 0x1000c76d
mov eax, 8
cmp eax, esi
cmovg esi, eax
cmp esi, ecx
jle 0x1000c7e6
mov eax, dword [0x10089244]
test eax, eax
je 0x1000c785
inc dword [eax + 0x374]
lea eax, [esi + esi*2]
shl eax, 3
push eax
call fcn.10050b3a
mov edx, eax
add esp, 4
mov eax, dword [edi + 0x2db8]
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x18], eax
test eax, eax
je 0x1000c7da
mov ecx, dword [edi + 0x2db0]
lea ecx, [ecx + ecx*2]
shl ecx, 3
push ecx
push eax
push edx
call fcn.10045830
mov eax, dword [0x10089244]
add esp, 0xc
test eax, eax
je 0x1000c7cc
dec dword [eax + 0x374]
push dword [ebp - 0x18]
call fcn.10049769
mov edx, dword [ebp - 0x1c]
add esp, 4
mov dword [edi + 0x2db8], edx
mov dword [edi + 0x2db4], esi
mov eax, dword [edi + 0x2db0]
movups xmm0, xmmword [ebp - 0x38]
lea ecx, [eax + eax*2]
mov eax, dword [edi + 0x2db8]
movups xmmword [eax + ecx*8], xmm0
movq xmm0, qword [ebp - 0x28]
movq qword [eax + ecx*8 + 0x10], xmm0
mov eax, edi
inc dword [edi + 0x2db0]
mov byte [edi], 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x1000f050
Capabilities:
Hash data with crc32

Disassembly:
push ebx
mov bl, byte [ecx]
or eax, 0xffffffff
push esi
lea esi, [ecx + 1]
or ecx, 0xffffffff
push edi
test bl, bl
je 0x1000f08f
cmp bl, 0x23
jne 0x1000f071
cmp byte [esi], bl
jne 0x1000f071
cmp byte [esi + 1], bl
cmove eax, ecx
movzx edx, al
movzx ecx, bl
mov bl, byte [esi]
xor edx, ecx
shr eax, 8
inc esi
mov ecx, 0xffffffff
xor eax, dword [edx*4 + 0x10078f80]
test bl, bl
jne 0x1000f062
mov ecx, dword [0x10089244]
not eax
mov esi, dword [ecx + 0x19f0]
mov edi, dword [ecx + 0x19f8]
lea ebx, [edi + esi*8]
test esi, esi
je 0x1000f0ce
nop word [eax + eax]
mov edx, esi
shr edx, 1
cmp dword [edi + edx*8], eax
lea ecx, [edi + edx*8]
jae 0x1000f0c8
lea edi, [ecx + 8]
or ecx, 0xffffffff
sub ecx, edx
add esi, ecx
jmp 0x1000f0ca
mov esi, edx
test esi, esi
jne 0x1000f0b0
cmp edi, ebx
je 0x1000f0dd
cmp dword [edi], eax
jne 0x1000f0dd
mov eax, dword [edi + 4]
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
xor eax, eax
pop ebx
ret
Function at 0x10018f90
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push esi
mov esi, dword [0x10089244]
push edi
cmp byte [esi + 0x2dc8], 0
je 0x1001902e
cmp dword [esi + 0x2dd0], 0
lea edi, [esi + 0x2dd4]
je 0x10019020
mov ecx, dword [edi + 4]
test ecx, ecx
jns 0x10018fd9
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
xor ecx, ecx
test eax, eax
cmovg ecx, eax
push ecx
mov ecx, edi
call fcn.1001a340
lea eax, [ebp + 0xc]
mov dword [edi], 0
push eax
push dword [ebp + 8]
mov ecx, edi
call fcn.1000a010
mov edx, dword [edi]
mov ecx, 0x100891e3
push dword [esi + 0x2dd0]
lea eax, [edx - 1]
neg edx
sbb edx, edx
and edx, eax
mov eax, dword [esi + 0x2ddc]
test eax, eax
push edx
cmovne ecx, eax
push 1
push ecx
call fcn.100494fe
add esp, 0x10
pop edi
pop esi
mov esp, ebp
pop ebp
ret
lea eax, [ebp + 0xc]
mov ecx, edi
push eax
push dword [ebp + 8]
call fcn.1000a010
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10019370
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
mov esi, edx
mov edx, dword [0x10089244]
mov dword [ebp - 0xc], edx
push edi
mov edi, ecx
test esi, esi
jne 0x10019399
mov esi, edi
lea ecx, [esi + 1]
nop
mov al, byte [esi]
inc esi
test al, al
jne 0x10019390
sub esi, ecx
test edx, edx
je 0x100193a3
inc dword [edx + 0x374]
lea eax, [esi + 1]
push ebx
push eax
call fcn.10050b3a
push esi
push edi
push eax
lea ebx, [eax + esi]
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], ebx
call fcn.10045830
mov esi, dword [ebp - 0x10]
xor edx, edx
add esp, 0x10
mov byte [ebx], 0
xor edi, edi
mov dword [ebp - 4], edx
mov ecx, esi
cmp esi, ebx
jae 0x10019534
nop dword [eax + eax]
mov al, byte [ecx]
cmp al, 0xa
je 0x10019561
cmp al, 0xd
je 0x10019561
mov esi, ecx
cmp ecx, ebx
jae 0x10019407
mov al, byte [esi]
cmp al, 0xa
je 0x10019407
cmp al, 0xd
je 0x10019407
inc esi
cmp esi, ebx
jb 0x100193f8
mov byte [esi], 0
mov al, byte [ecx]
cmp al, 0x3b
je 0x10019526
cmp al, 0x5b
jne 0x10019505
cmp esi, ecx
jbe 0x10019505
cmp byte [esi - 1], 0x5d
lea ebx, [esi - 1]
jne 0x10019502
inc ecx
mov byte [ebx], 0
mov eax, ebx
mov dword [ebp - 0x18], ecx
sub eax, ecx
push eax
push 0x5d
push ecx
call fcn.10045dc0
add esp, 0xc
mov dword [ebp - 0x14], eax
test eax, eax
je 0x10019520
lea ecx, [eax + 1]
sub ebx, ecx
push ebx
push 0x5b
push ecx
call fcn.10045dc0
mov ecx, eax
add esp, 0xc
test ecx, ecx
je 0x10019520
mov eax, dword [ebp - 0x14]
mov edi, dword [ebp - 0x18]
mov ebx, dword [0x10089244]
mov byte [eax], 0
lea eax, [ecx + 1]
mov cl, byte [edi]
inc edi
mov dword [ebp - 0x14], eax
or eax, 0xffffffff
test cl, cl
je 0x100194be
or ebx, 0xffffffff
cmp cl, 0x23
jne 0x1001949f
cmp byte [edi], cl
jne 0x1001949f
cmp byte [edi + 1], cl
cmove eax, ebx
movzx edx, al
movzx ecx, cl
xor edx, ecx
shr eax, 8
mov cl, byte [edi]
inc edi
xor eax, dword [edx*4 + 0x10078f80]
test cl, cl
jne 0x10019490
mov ebx, dword [0x10089244]
mov edx, dword [ebx + 0x2db0]
xor ecx, ecx
not eax
test edx, edx
jle 0x100194df
mov edi, dword [ebx + 0x2db8]
cmp dword [edi + 4], eax
je 0x100194e8
inc ecx
add edi, 0x18
cmp ecx, edx
jl 0x100194d2
xor edi, edi
xor edx, edx
mov dword [ebp - 4], edx
jmp 0x10019523
test edi, edi
je 0x100194e1
push dword [ebp - 0x14]
mov eax, dword [edi + 8]
push edi
push dword [ebp - 0xc]
call eax
mov edx, eax
add esp, 0xc
mov dword [ebp - 4], edx
jmp 0x10019523
mov ebx, dword [ebp - 8]
test edi, edi
je 0x10019526
test edx, edx
je 0x10019526
mov eax, dword [edi + 0xc]
push ecx
push edx
push edi
push dword [ebp - 0xc]
call eax
mov edx, dword [ebp - 4]
add esp, 0x10
jmp 0x10019526
mov edx, dword [ebp - 4]
mov ebx, dword [ebp - 8]
lea ecx, [esi + 1]
cmp ecx, ebx
jb 0x100193e0
mov esi, dword [ebp - 0x10]
pop ebx
test esi, esi
je 0x10019548
mov eax, dword [0x10089244]
test eax, eax
je 0x10019548
dec dword [eax + 0x374]
push esi
call fcn.10049769
mov eax, dword [ebp - 0xc]
add esp, 4
pop edi
mov byte [eax + 0x2d9c], 1
pop esi
mov esp, ebp
pop ebp
ret
inc ecx
jmp 0x100193e0
Function at 0x10019570
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, dword [0x10089244]
mov eax, ecx
mov dword [ebp - 8], eax
push edi
mov dword [esi + 0x2da0], 0
test eax, eax
je 0x1001965d
lea edi, [esi + 0x2da4]
mov dword [esi + 0x2da0], 0
mov ecx, dword [edi + 4]
test ecx, ecx
jns 0x100195c5
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
xor ecx, ecx
test eax, eax
cmovg ecx, eax
push ecx
mov ecx, edi
call fcn.1001a340
mov dword [edi], 0
cmp dword [edi + 4], 0
jne 0x100195da
push 8
mov ecx, edi
call fcn.1001a340
mov eax, dword [edi]
mov ecx, dword [edi + 8]
mov dword [ebp - 4], 0
mov byte [ecx + eax], 0
inc dword [edi]
cmp dword [esi + 0x2db0], 0
jle 0x1001961c
xor ebx, ebx
mov eax, dword [esi + 0x2db8]
add eax, ebx
push edi
push eax
push esi
mov eax, dword [eax + 0x10]
call eax
mov eax, dword [ebp - 4]
add esp, 0xc
inc eax
add ebx, 0x18
mov dword [ebp - 4], eax
cmp eax, dword [esi + 0x2db0]
jl 0x100195f7
mov edi, dword [edi]
mov ebx, 0x100891e3
mov ecx, dword [ebp - 8]
mov edx, 0x1007d2d4
lea eax, [edi - 1]
neg edi
sbb edi, edi
and edi, eax
mov eax, dword [esi + 0x2dac]
test eax, eax
cmovne ebx, eax
call fcn.10009ae0
mov esi, eax
test esi, esi
je 0x1001965d
push esi
push edi
push 1
push ebx
call fcn.100494fe
push esi
call fcn.10048f2b
add esp, 0x14
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1002bab0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x1008700c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0x10]
xor eax, eax
push edi
mov edi, dword [edx]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x18], ecx
test edi, edi
js 0x1002bb10
cmp edi, esi
jge 0x1002bb10
xor esi, esi
mov edx, ecx
cmp byte [ecx], al
je 0x1002bb07
cmp edi, esi
je 0x1002bb05
mov ecx, edx
lea ebx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1002baf0
sub ecx, ebx
inc edx
add edx, ecx
inc esi
cmp byte [edx], al
jne 0x1002bae6
xor eax, eax
jmp 0x1002bb0d
xor eax, eax
cmp byte [edx], 0
cmovne eax, edx
mov esi, dword [ebp + 0x10]
mov ecx, dword [ebp - 8]
mov edx, eax
push 0
call fcn.1002af10
add esp, 4
test al, al
jne 0x1002bb34
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100427b4
mov esp, ebp
pop ebp
ret
xor ebx, ebx
mov byte [ebp - 9], 0
test esi, esi
jle 0x1002bc36
mov eax, dword [0x10089244]
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
nop dword [eax]
mov eax, dword [eax + 0x1a00]
lea esi, [ebp - 8]
add eax, 0xbc
mov dword [ebp - 8], ebx
mov dword [ebp - 0x14], eax
mov edi, 4
mov ecx, dword [eax]
mov eax, dword [eax + 8]
mov edx, dword [eax + ecx*4 - 4]
not edx
movzx eax, byte [esi]
lea esi, [esi + 1]
movzx ecx, dl
xor ecx, eax
shr edx, 8
xor edx, dword [ecx*4 + 0x10078f80]
sub edi, 1
jne 0x1002bb74
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 8]
not edx
push eax
mov dword [ebp - 8], edx
call fcn.10019d90
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x18]
mov esi, ecx
mov edi, dword [eax]
cmp ebx, edi
mov al, byte [ecx]
sete ah
mov dword [ebp - 8], edi
xor edx, edx
test al, al
je 0x1002bbef
nop dword [eax]
cmp ebx, edx
je 0x1002bbe6
mov ecx, esi
lea edi, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1002bbd0
sub ecx, edi
inc esi
add esi, ecx
inc edx
cmp byte [esi], al
jne 0x1002bbc0
mov edi, dword [ebp - 8]
jmp 0x1002bbef
mov al, byte [esi]
mov edi, dword [ebp - 8]
test al, al
jne 0x1002bbf4
mov esi, str.Unknown_item
lea ecx, [ebp - 0x20]
mov dl, ah
push ecx
push ecx
mov ecx, esi
call fcn.10031980
add esp, 8
test al, al
je 0x1002bc12
mov eax, dword [ebp - 0x10]
mov byte [ebp - 9], 1
mov dword [eax], ebx
cmp ebx, edi
jne 0x1002bc1b
call fcn.10014a30
mov eax, dword [0x10089244]
inc ebx
mov ecx, dword [eax + 0x1a00]
dec dword [ecx + 0xbc]
cmp ebx, dword [ebp + 0x10]
jl 0x1002bb50
call fcn.10015cc0
mov ecx, dword [ebp - 4]
mov al, byte [ebp - 9]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.100427b4
mov esp, ebp
pop ebp
ret
Function at 0x10032a90
Capabilities:
Hash data with crc32

Disassembly:
test dword [ecx + 0x54], 0x100000
push esi
push edi
mov edi, edx
je 0x10032b00
mov cl, byte [edi]
lea esi, [edi + 1]
or eax, 0xffffffff
test cl, cl
je 0x10032ad8
or edi, 0xffffffff
nop dword [eax]
cmp cl, 0x23
jne 0x10032abf
cmp byte [esi], cl
jne 0x10032abf
cmp byte [esi + 1], cl
cmove eax, edi
movzx edx, al
movzx ecx, cl
xor edx, ecx
shr eax, 8
mov cl, byte [esi]
inc esi
xor eax, dword [edx*4 + 0x10078f80]
test cl, cl
jne 0x10032ab0
mov ecx, dword [0x10089244]
not eax
cmp dword [ecx + 0x1a34], eax
jne 0x10032aee
mov dword [ecx + 0x1a38], eax
cmp dword [ecx + 0x1a6c], eax
jne 0x10032b45
pop edi
mov byte [ecx + 0x1a70], 1
pop esi
ret
mov esi, dword [0x10089244]
xor edx, edx
mov eax, dword [esi + 0x1a00]
mov ecx, dword [eax + 0xbc]
mov eax, dword [eax + 0xc4]
push dword [eax + ecx*4 - 4]
mov ecx, edi
call fcn.10009a40
add esp, 4
cmp dword [esi + 0x1a34], eax
jne 0x10032b36
mov dword [esi + 0x1a38], eax
cmp dword [esi + 0x1a6c], eax
jne 0x10032b45
mov byte [esi + 0x1a70], 1
pop edi
pop esi
ret
Function at 0x100560bb
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10055f31

Function at 0x10065930
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1006595d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1006595d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret