joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10009b80
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [0x10038fc0], eax
je 0x10009b9d
mov eax, 0x10dd
jmp 0x10009c80
mov eax, dword [0x10038fd0]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x10009c1c
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x14]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x10]
movzx eax, byte [edx + 0x36]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0xc]
push edx
call sub.KERNEL32.dll_VirtualProtect
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
jne 0x10009bf8
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x10], 0
je 0x10009bf8
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x10]
push eax
call fcn.10008a20
add esp, 4
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x10], 0
mov edx, dword [ebp - 4]
mov eax, dword [edx]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 4]
mov dword [ebp - 0xc], ecx
push 0x18
mov edx, dword [ebp - 0xc]
push edx
call fcn.1000b0a2
add esp, 8
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], eax
jmp 0x10009ba5
mov dword [0x10038fd0], 0
call fcn.10009300
mov ecx, dword [0x10038fcc]
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0
je 0x10009c6a
mov edx, dword [ebp - 8]
mov eax, dword [edx + 4]
push eax
call sub.KERNEL32.dll_ResumeThread
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
push 8
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.1000b0a2
add esp, 8
mov edx, dword [ebp - 0x18]
mov dword [ebp - 8], edx
jmp 0x10009c34
mov dword [0x10038fcc], 0
mov dword [0x10038fc0], 0
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x1000a160
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [0x10038fc4], 0
je 0x1000a179
mov eax, dword [0x10038fc4]
jmp 0x1000a218
call sub.KERNEL32.dll_GetCurrentThread
cmp dword [ebp + 8], eax
jne 0x1000a18a
xor eax, eax
jmp 0x1000a218
push 8
call fcn.1000b0d3
add esp, 4
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x1000a1e2
mov dword [ebp - 8], 8
cmp dword [ebp - 4], 0
je 0x1000a1cb
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x10], ecx
push 8
mov edx, dword [ebp - 0x10]
push edx
call fcn.1000b0a2
add esp, 8
mov dword [ebp - 4], 0
mov eax, dword [ebp - 8]
mov dword [0x10038fc4], eax
mov dword [0x10038fc8], 0
mov eax, dword [ebp - 8]
jmp 0x1000a218
mov ecx, dword [ebp + 8]
push ecx
call sub.KERNEL32.dll_SuspendThread
cmp eax, 0xffffffff
jne 0x1000a1fa
call sub.KERNEL32.dll_GetLastError
mov dword [ebp - 8], eax
jmp 0x1000a1aa
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 8]
mov dword [edx + 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [0x10038fcc]
mov dword [ecx], edx
mov eax, dword [ebp - 4]
mov dword [0x10038fcc], eax
xor eax, eax
mov esp, ebp
pop ebp
ret 4

Function at 0x1001996c
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.100197e2
Function at 0x100030e0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
push esi
push edi
mov dword [ecx + 0x1384], 0xffffffff
lea edi, [ecx + 8]
mov dword [ecx + 4], edx
mov esi, 1
nop dword [eax]
mov eax, edx
lea edi, [edi + 4]
shr eax, 0x1e
xor eax, edx
imul edx, eax, 0x6c078965
add edx, esi
inc esi
mov dword [edi - 4], edx
cmp esi, 0x270
jb 0x10003100
pop edi
pop esi
mov dword [ecx], 0x270
mov eax, ecx
pop ebp
ret 4

Function at 0x100047c0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
push edi
mov dword [ebp - 4], esi
mov eax, dword [esi]
cmp eax, 0x270
jne 0x1000481d
lea edx, [esi + 8]
mov edi, eax
nop dword [eax]
mov ecx, dword [edx]
lea edx, [edx + 4]
xor ecx, dword [edx - 8]
and ecx, 0x7fffffff
xor ecx, dword [edx - 8]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edx + 0x62c]
xor eax, ecx
mov dword [edx + 0x9b8], eax
sub edi, 1
jne 0x100047e0
mov eax, dword [esi]
jmp 0x100048fb
cmp eax, 0x4e0
jb 0x100048fb
lea edi, [esi + 0x9c4]
mov esi, 0xe3
push ebx
mov ebx, dword [edi]
lea edx, [edi]
mov eax, ebx
mov ebx, dword [edx + 4]
lea edi, [edx + 4]
mov ecx, ebx
xor ecx, eax
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edx + 0x634]
xor eax, ecx
mov dword [edx - 0x9c0], eax
sub esi, 1
jne 0x10004836
mov edi, dword [ebp - 4]
mov esi, 0x18c
add edi, 0xd50
mov ebx, dword [edi]
mov eax, ebx
lea edx, [edi]
mov ebx, dword [edx + 4]
lea edi, [edx + 4]
mov ecx, eax
xor ecx, ebx
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edx - 0xd4c]
xor eax, ecx
mov dword [edx - 0x9c0], eax
sub esi, 1
jne 0x10004881
mov esi, dword [ebp - 4]
pop ebx
mov eax, dword [esi + 0x1380]
mov ecx, dword [esi + 4]
xor ecx, eax
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [esi + 0x634]
xor eax, ecx
mov dword [esi + 0x9c0], eax
xor eax, eax
mov dword [esi], 0
mov edx, dword [esi + eax*4 + 4]
inc eax
mov dword [esi], eax
mov ecx, edx
mov eax, dword [esi + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
pop edi
xor eax, edx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10007540
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1002adad
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x100ec580]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 8
mov dword [esi + 0x30], 0
mov dword [esi + 8], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0x201
mov dword [esi + 0x18], 6
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0xc], 0
call fcn.1000b570
mov edi, eax
add esp, 4
test edi, edi
je 0x100075e4
xorps xmm0, xmm0
movq qword [edi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.1000aa2f
add esp, 4
mov dword [edi + 4], eax
jmp 0x100075e6
xor edi, edi
mov eax, dword [ebp + 8]
mov dword [esi + 0x30], edi
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], 0
mov ecx, dword [edi + 4]
mov dword [ebp - 0x10], ecx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 1
push eax
call fcn.10002780
add esp, 4
mov ecx, dword [eax]
push 0x20
mov edx, dword [ecx + 0x20]
mov ecx, eax
call edx
mov ecx, dword [ebp - 0x10]
mov bl, al
mov dword [ebp - 4], 0xffffffff
test ecx, ecx
je 0x10007640
mov edx, dword [ecx]
call dword [edx + 8]
test eax, eax
je 0x10007640
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
cmp dword [esi + 0x38], 0
mov byte [esi + 0x40], bl
jne 0x1000765c
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x10]
and eax, 0x13
or eax, 4
mov dword [esi + 0xc], eax
and ecx, eax
jne 0x1000767f
cmp byte [ebp + 0xc], 0
je 0x1000766b
push esi
call fcn.1000af38
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
test cl, 4
je 0x1000768b
mov esi, str.ios_base::badbit_set
jmp 0x1000769b
test cl, 2
mov esi, str.ios_base::failbit_set
mov eax, str.ios_base::eofbit_set
cmove esi, eax
lea eax, [ebp - 0x14]
push 1
push eax
call fcn.10007880
add esp, 8
lea ecx, [ebp - 0x28]
push eax
push esi
call fcn.100035a0
push 0x10039804
lea eax, [ebp - 0x28]
push eax
call fcn.1000cab6
int3
Function at 0x10007a30
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1002addd
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x100ec580]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0x24]
mov dword [ebp - 0x28], 5
sub eax, ecx
xorps xmm0, xmm0
movq qword [ebp - 0x1c], xmm0
xor esi, esi
movaps xmm0, xmmword [0x1002c8d0]
xor edx, edx
mov dword [ebp - 0x24], eax
xor edi, edi
sar eax, 2
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x20], eax
movups xmmword [ebp - 0x38], xmm0
test eax, eax
je 0x10007ac7
push eax
lea ecx, [ebp - 0x1c]
call fcn.100051e0
push dword [ebp - 0x24]
mov esi, dword [ebp - 0x1c]
lea eax, [ebp - 0x38]
push eax
push esi
call fcn.1000cee0
mov eax, dword [ebp - 0x20]
add esp, 0xc
mov edi, dword [ebp - 0x14]
lea edx, [esi + eax*4]
mov dword [ebp - 0x18], edx
mov dword [ebp - 4], 0
cmp esi, edx
je 0x10007ae5
mov ecx, esi
mov eax, dword [ecx]
xor eax, 0x2a
add eax, 0x2a
mov dword [ecx], eax
add ecx, 4
cmp ecx, edx
jne 0x10007ad4
mov eax, edx
xor ecx, ecx
sub eax, esi
mov dword [ebp - 0x24], ecx
add eax, 3
shr eax, 2
cmp esi, edx
cmova eax, ecx
mov dword [ebp - 0x20], eax
mov eax, esi
cmp dword [ebp - 0x20], ecx
je 0x10007b50
cmp dword [ebp - 0x20], 8
jb 0x10007b50
mov ecx, dword [ebp - 0x20]
xorps xmm1, xmm1
and ecx, 0xfffffff8
xorps xmm2, xmm2
movups xmm0, xmmword [eax]
add dword [ebp - 0x24], 8
paddd xmm1, xmm0
movups xmm0, xmmword [eax + 0x10]
add eax, 0x20
paddd xmm2, xmm0
cmp dword [ebp - 0x24], ecx
jne 0x10007b15
paddd xmm1, xmm2
movaps xmm0, xmm1
psrldq xmm0, 8
paddd xmm1, xmm0
movups xmm0, xmm1
psrldq xmm0, 4
paddd xmm1, xmm0
movd ecx, xmm1
cmp eax, edx
je 0x10007b5d
add ecx, dword [eax]
add eax, 4
cmp eax, edx
jne 0x10007b54
mov eax, 0x4ec4ec4f
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
imul eax, eax, 0xd
sub ecx, eax
jne 0x10007b87
push str.Target_function_called__n
push 0x100ed748
call fcn.10001400
add esp, 8
test esi, esi
je 0x10007bb4
sub edi, esi
mov eax, esi
and edi, 0xfffffffc
cmp edi, 0x1000
jb 0x10007baa
mov esi, dword [eax - 4]
add edi, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10007bcf
push edi
push esi
call fcn.1000b5a0
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1000b5b3
mov esp, ebp
pop ebp
ret
call fcn.1001056f
int3
Function at 0x10009060
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], edi
test eax, eax
jg 0x1000908c
jl 0x10009080
test ecx, ecx
jne 0x1000908c
pop edi
xor eax, eax
xor edx, edx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
push esi
je 0x10009157
mov dword [ebp - 8], eax
lea eax, [ebx + 0x2c]
mov dword [ebp - 4], ecx
mov dword [ebp - 0xc], eax
mov eax, dword [ebx + 0x1c]
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x100090b8
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
jmp 0x100090ba
xor eax, eax
cdq
mov dword [ebp - 0x14], edx
mov esi, eax
test edx, edx
jl 0x10009105
jg 0x100090ca
test esi, esi
je 0x10009105
mov eax, dword [ebp - 8]
cmp eax, edx
jg 0x100090dc
jl 0x100090d7
cmp ecx, esi
jae 0x100090dc
mov esi, ecx
mov dword [ebp - 0x14], eax
push esi
push dword [ebp - 0x10]
push edi
call fcn.1000cee0
mov eax, dword [ebp - 0xc]
add esp, 0xc
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
sub ecx, esi
mov eax, dword [eax]
sbb edx, dword [ebp - 0x14]
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
mov eax, dword [ebp - 0xc]
jmp 0x10009127
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x1c]
mov edx, dword [ebp - 8]
cmp eax, 0xffffffff
je 0x10009141
mov ecx, dword [ebp - 4]
mov esi, 1
add ecx, 0xffffffff
mov byte [edi], al
lea eax, [ebx + 0x2c]
adc edx, 0xffffffff
add edi, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], ecx
test edx, edx
jg 0x100090a0
jl 0x10009141
test ecx, ecx
jne 0x100090a0
mov eax, dword [ebp + 0xc]
sub eax, dword [ebp - 4]
mov ecx, dword [ebp + 0x10]
pop esi
sbb ecx, edx
pop edi
mov edx, ecx
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 0x10009199
mov eax, dword [esi]
mov eax, dword [eax]
test eax, eax
je 0x10009199
mov edi, dword [ebp - 4]
cmp eax, ecx
mov esi, ecx
cmovb esi, eax
push esi
push edx
push edi
call fcn.1000cee0
mov eax, dword [ebx + 0x2c]
add edi, esi
mov dword [ebp - 4], 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 0x10009207
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x100091bf
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 [ebp - 4]
cmp edi, 0xfff
jbe 0x100091f2
nop word [eax + eax]
push dword [ebx + 0x4c]
push 0xfff
push 1
push esi
call fcn.10011831
add esp, 0x10
add esi, eax
sub edi, eax
cmp eax, 0xfff
jne 0x10009207
cmp edi, eax
ja 0x100091d0
test edi, edi
je 0x10009207
push dword [ebx + 0x4c]
push edi
push 1
push esi
call fcn.10011831
add esp, 0x10
sub edi, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, edi
pop esi
pop edi
sbb edx, 0
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10010861
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x100108a0
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x100108a0
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x100108a0
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x100108a0
cmp dword [ecx + 0x74], 0xe
jbe 0x100108a0
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x1001c3a9
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1020
call fcn.1000b860
mov eax, dword [0x100ec580]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.1001afec
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x1001c3eb
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x1001c562
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.1000b5d0
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1014], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x100ee0b8]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.1001d3ef
mov ecx, dword [esi*4 + 0x100ee0b8]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x1020], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x1001c55b
cmp eax, dword [edi + ecx + 0x24]
jne 0x1001c55b
xor esi, esi
lea eax, [ebp - 0x101c]
push esi
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1001c55b
push dword [ebp - 0x100c]
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1001d3ef
add esp, 0x14
cmp edx, esi
jl 0x1001c55b
jg 0x1001c4b6
cmp eax, esi
jb 0x1001c55b
mov ebx, dword [ebp - 0x1014]
mov eax, dword [ebp - 0x101c]
cmp ebx, esi
jg 0x1001c55b
jl 0x1001c4d8
cmp dword [ebp - 0x1008], eax
ja 0x1001c55b
lea edi, [ebp - 0x1004]
xorps xmm0, xmm0
add edi, eax
movlpd qword [ebp - 0x1018], xmm0
lea ecx, [ebp - 0x1004]
cmp dword [ebp - 0x1008], esi
jne 0x1001c4fd
cmp ebx, esi
je 0x1001c542
mov edx, dword [ebp - 0x1014]
mov esi, dword [ebp - 0x1018]
cmp ecx, edi
jae 0x1001c542
mov al, byte [ecx]
cmp al, 0xd
jne 0x1001c523
lea eax, [edi - 1]
cmp ecx, eax
jae 0x1001c52f
cmp byte [ecx + 1], 0xa
jne 0x1001c52f
inc ecx
jmp 0x1001c52f
movzx eax, al
movsx eax, byte [eax + 0x100ec830]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x1001c509
cmp edx, ebx
jne 0x1001c509
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x1020]
jmp 0x1001c560
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.1000b5b3
leave
ret
Function at 0x1001c7e1
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 0x1001c7fb
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 0x1001c812
mov ecx, dword [eax]
cmp ecx, dword [eax + 4]
je 0x1001c86a
mov eax, dword [eax + 0x10]
nop
push eax
call fcn.10025305
mov esi, eax
pop ecx
cmp esi, 0xffffffff
je 0x1001c86a
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 0x1001c86a
lea eax, [ebp - 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1001c86a
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x18]
jne 0x1001c864
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x14]
je 0x1001c866
xor bl, bl
mov al, bl
jmp 0x1001c86c
xor al, al
pop esi
pop ebx
leave
ret
Function at 0x1001c87b
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 + 0x100ee0b8]
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 0x1001c8bd
cmp byte [ebx], 0xa
jne 0x1001c8bd
or byte [edi + eax + 0x28], 4
jmp 0x1001c8c2
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x1001c9c5
mov cl, byte [eax]
cmp cl, 0x1a
je 0x1001c9a0
lea ebx, [eax + 1]
mov dword [ebp - 8], ebx
mov ebx, dword [ebp + 0xc]
cmp cl, 0xd
je 0x1001c8f1
mov eax, dword [ebp - 8]
jmp 0x1001c911
mov edx, dword [ebp - 0x10]
cmp dword [ebp - 8], edx
mov edx, dword [ebp + 8]
jae 0x1001c92d
mov ebx, dword [ebp - 8]
cmp byte [ebx], 0xa
jne 0x1001c90b
add eax, 2
mov cl, 0xa
jmp 0x1001c90e
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 0x1001c8d3
jmp 0x1001c9c5
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 0x1001c99b
cmp dword [ebp - 0x10], 0
je 0x1001c99b
mov edx, dword [ebp - 0x18]
mov eax, dword [edx*4 + 0x100ee0b8]
test byte [eax + edi + 0x28], 0x48
je 0x1001c97a
mov cl, byte [ebp - 1]
cmp cl, 0xa
jne 0x1001c96a
mov byte [esi], 0xa
jmp 0x1001c9c4
mov byte [esi], 0xd
mov eax, dword [edx*4 + 0x100ee0b8]
mov byte [eax + edi + 0x2a], cl
jmp 0x1001c9c4
cmp byte [ebp - 1], 0xa
jne 0x1001c984
cmp esi, ebx
je 0x1001c965
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.1001d40d
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x1001c9c5
mov byte [esi], 0xd
jmp 0x1001c9c4
mov eax, edx
and edx, 0x3f
sar eax, 6
imul edx, edx, 0x38
mov edi, dword [eax*4 + 0x100ee0b8]
mov al, byte [edi + edx + 0x28]
test al, 0x40
jne 0x1001c9c2
or al, 2
mov byte [edi + edx + 0x28], al
jmp 0x1001c9c5
mov byte [esi], cl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x1001c9ce
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 + 0x100ee0b8]
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 0x1001ca12
push 0xa
pop esi
cmp word [ebx], si
jne 0x1001ca12
or byte [eax + edi + 0x28], 4
jmp 0x1001ca17
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 0x1001cb82
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 0x1001cb5a
lea ebx, [eax + 2]
mov dword [ebp - 4], ebx
push 0xd
pop ebx
cmp dx, bx
mov ebx, dword [ebp + 0xc]
je 0x1001ca64
mov ebx, dword [ebp - 0x14]
mov edx, esi
mov eax, dword [ebp - 4]
movzx ebx, bx
mov dword [ebp - 4], ebx
jmp 0x1001ca8e
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 0x10]
jae 0x1001caad
push 0xa
pop ebx
cmp word [edx], bx
jne 0x1001ca7b
push ebx
add eax, 4
pop edx
jmp 0x1001ca83
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 0x1001ca29
jmp 0x1001cb82
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 0x1001cb55
cmp dword [ebp - 0x14], 0
je 0x1001cb55
mov eax, dword [ebp - 8]
push 0xa
mov eax, dword [eax*4 + 0x100ee0b8]
test byte [eax + edi + 0x28], 0x48
pop eax
je 0x1001cb31
mov dx, word [ebp - 4]
cmp dx, ax
jne 0x1001caf9
mov word [esi], ax
jmp 0x1001cb7f
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 + 0x100ee0b8]
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x100ee0b8]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x100ee0b8]
pop ecx
mov byte [eax + edi + 0x2c], cl
jmp 0x1001cb7f
cmp word [ebp - 4], ax
jne 0x1001cb3b
cmp esi, ebx
je 0x1001caf1
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.1001d40d
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x1001cb82
push 0xd
pop eax
jmp 0x1001caf1
mov eax, ecx
and ecx, 0x3f
sar eax, 6
imul ecx, ecx, 0x38
mov edi, dword [eax*4 + 0x100ee0b8]
mov al, byte [edi + ecx + 0x28]
test al, 0x40
jne 0x1001cb7c
or al, 2
mov byte [edi + ecx + 0x28], al
jmp 0x1001cb82
mov word [esi], dx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret