joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10005340
Capabilities:
Enumerate threads

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x10040018]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor ebx, ebx
mov esi, ecx
push ebx
push 4
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
mov dword [ebp - 0x24], edi
cmp edi, 0xffffffff
je 0x10005453
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x1c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x1000544c
mov ebx, 1
nop dword [eax]
cmp dword [ebp - 0x20], 0x10
jb 0x1000540f
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [ebp - 0x14], eax
jne 0x1000540f
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [ebp - 0x18], eax
je 0x1000540f
mov edx, dword [esi]
test edx, edx
jne 0x100053d8
push 0x200
push edx
push dword [0x10043124]
mov dword [esi + 4], 0x80
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
mov dword [esi], edx
test edx, edx
je 0x10005434
lea edi, [esi + 8]
jmp 0x10005402
mov eax, dword [esi + 4]
lea edi, [esi + 8]
cmp dword [edi], eax
jb 0x10005402
add eax, eax
mov dword [esi + 4], eax
shl eax, 2
push eax
push edx
push 0
push dword [0x10043124]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov edx, eax
test edx, edx
je 0x10005466
mov dword [esi], edx
mov ecx, dword [edi]
mov eax, dword [ebp - 0x18]
mov dword [edx + ecx*4], eax
inc dword [edi]
mov edi, dword [ebp - 0x24]
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x1c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x10005390
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x1000544c
mov eax, dword [esi]
xor ebx, ebx
test eax, eax
je 0x1000544c
push eax
push ebx
push dword [0x10043124]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esi], ebx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000b95d
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp - 0x24]
jmp 0x10005434
Function at 0x10005470
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2e4
mov eax, dword [0x10040018]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, ecx
mov dword [ebp - 0x2e4], edi
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
call fcn.10005340
test eax, eax
jne 0x100054bd
mov eax, 9
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000b95d
mov esp, ebp
pop ebp
ret
cmp dword [edi], 0
je 0x1000565f
push esi
xor esi, esi
mov dword [ebp - 0x2dc], esi
cmp dword [edi + 8], esi
jbe 0x100055d1
push ebx
nop dword [eax]
mov eax, dword [edi]
push dword [eax + esi*4]
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov ebx, eax
mov dword [ebp - 0x2d4], ebx
test ebx, ebx
je 0x100055c0
push ebx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
lea eax, [ebp - 0x2d0]
mov dword [ebp - 0x2d0], 0x10001
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x100055b9
mov esi, dword [0x10043208]
mov dword [ebp - 0x2d8], esi
test esi, esi
je 0x100055b3
mov edi, dword [ebp - 0x218]
xor ecx, ecx
mov dword [ebp - 0x2e0], ecx
mov edx, dword [0x10043200]
add edx, ecx
mov bl, byte [edx + 0x14]
movzx eax, bl
mov ecx, eax
shr eax, 1
shr ecx, 2
and eax, 1
and ecx, 1
cmp eax, ecx
je 0x1000558d
test ecx, ecx
je 0x100055ed
mov esi, dword [edx + 0x18]
xor ecx, ecx
and esi, 0xf
jbe 0x10005587
mov ebx, dword [edx]
movzx eax, byte [edx + ecx + 0x1c]
add eax, ebx
cmp edi, eax
je 0x100055e3
inc ecx
cmp ecx, esi
jb 0x10005577
mov esi, dword [ebp - 0x2d8]
mov ebx, dword [ebp - 0x2d4]
mov ecx, dword [ebp - 0x2e0]
add ecx, 0x2c
sub esi, 1
mov dword [ebp - 0x2e0], ecx
mov dword [ebp - 0x2d8], esi
jne 0x10005544
mov edi, dword [ebp - 0x2e4]
mov esi, dword [ebp - 0x2dc]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
mov dword [ebp - 0x2dc], esi
cmp esi, dword [edi + 8]
jb 0x100054e0
pop ebx
pop esi
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000b95d
mov esp, ebp
pop ebp
ret
movzx ecx, byte [ecx + edx + 0x24]
add ecx, dword [edx + 8]
jmp 0x1000562c
test bl, 1
je 0x100055fb
mov ecx, dword [edx]
lea eax, [ecx - 5]
cmp edi, eax
je 0x10005632
mov esi, dword [edx + 0x18]
xor eax, eax
and esi, 0xf
jbe 0x10005587
mov ebx, dword [edx + 8]
nop dword [eax + eax]
movzx ecx, byte [edx + eax + 0x24]
add ecx, ebx
cmp edi, ecx
je 0x10005625
inc eax
cmp eax, esi
jb 0x10005610
jmp 0x10005587
movzx ecx, byte [eax + edx + 0x1c]
add ecx, dword [edx]
mov esi, dword [ebp - 0x2d8]
mov ebx, dword [ebp - 0x2d4]
test ecx, ecx
je 0x10005593
lea eax, [ebp - 0x2d0]
mov dword [ebp - 0x218], ecx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetThreadContext]
mov edi, dword [ebp - 0x218]
jmp 0x10005593
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop edi
call fcn.1000b95d
mov esp, ebp
pop ebp
ret
Function at 0x10005670
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x10040018]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
imul esi, ecx, 0x2c
mov ebx, edx
push edi
add esi, dword [0x10043200]
mov eax, dword [esi]
mov cl, byte [esi + 0x14]
and cl, 1
lea edi, [eax - 5]
cmove edi, eax
movzx eax, cl
lea ecx, [ebp - 8]
push ecx
push 0x40
lea eax, [eax*2 + 5]
push eax
push edi
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x100056d1
pop edi
pop esi
mov eax, 0xa
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000b95d
mov esp, ebp
pop ebp
ret
test ebx, ebx
je 0x100056f2
mov byte [edi], 0xe9
mov eax, dword [esi + 4]
sub eax, edi
sub eax, 5
mov dword [edi + 1], eax
test byte [esi + 0x14], 1
je 0x10005713
mov eax, dword [esi]
mov word [eax], 0xf9eb
jmp 0x10005713
mov eax, dword [esi + 0xc]
test byte [esi + 0x14], 1
mov dword [edi], eax
je 0x1000570d
mov ax, word [esi + 0x10]
mov word [edi + 4], ax
mov al, byte [esi + 0x12]
mov byte [edi + 6], al
jmp 0x10005713
mov al, byte [esi + 0x10]
mov byte [edi + 4], al
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push dword [ebp - 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push dword [ebp - 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov cl, bl
xor eax, eax
add cl, cl
shl bl, 2
xor cl, byte [esi + 0x14]
and cl, 2
xor cl, byte [esi + 0x14]
xor bl, cl
and bl, 4
xor bl, cl
mov ecx, dword [ebp - 4]
pop edi
mov byte [esi + 0x14], bl
xor ecx, ebp
pop esi
pop ebx
call fcn.1000b95d
mov esp, ebp
pop ebp
ret
Function at 0x10005a60
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
xor ebx, ebx
call fcn.10005770
cmp dword [0x10043124], ebx
je 0x10005b6e
mov edi, dword [0x10043208]
xor esi, esi
test edi, edi
je 0x10005b73
mov edx, dword [0x10043200]
add edx, 0x14
mov cl, byte [edx]
shr cl, 1
xor cl, byte [edx]
test cl, 2
jne 0x10005aad
inc esi
add edx, 0x2c
cmp esi, edi
jb 0x10005a95
jmp 0x10005b73
cmp esi, 0xffffffff
je 0x10005b73
push ecx
lea ecx, [ebp - 0x10]
call fcn.10005470
mov ebx, eax
mov dword [ebp - 4], eax
add esp, 4
test ebx, ebx
jne 0x10005b73
mov edx, dword [0x10043208]
cmp esi, edx
jae 0x10005b1a
imul edi, esi, 0x2c
nop dword [eax]
mov eax, dword [0x10043200]
mov cl, byte [edi + eax + 0x14]
mov al, cl
shr al, 1
xor al, cl
test al, 2
je 0x10005b0f
movzx edx, cl
mov ecx, esi
shr edx, 2
and edx, 1
call fcn.10005670
mov ebx, eax
test ebx, ebx
jne 0x10005b17
mov edx, dword [0x10043208]
inc esi
add edi, 0x2c
cmp esi, edx
jb 0x10005ae0
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x10005b73
xor esi, esi
cmp dword [ebp - 8], esi
jbe 0x10005b5d
mov ebx, eax
nop word [eax + eax]
push dword [ebx + esi*4]
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov edi, eax
test edi, edi
je 0x10005b51
push edi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, dword [ebp - 8]
jb 0x10005b30
mov ebx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
push eax
push 0
push dword [0x10043124]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x10005b73
mov ebx, 2
xor eax, eax
mov ecx, 0x10043120
xchg dword [ecx], eax
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100088e0
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1002d035
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x10040018]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x20], edi
movzx eax, byte [ebx]
xor eax, 0x811c9dc5
imul ecx, eax, 0x1000193
movzx eax, byte [ebx + 1]
xor ecx, eax
movzx eax, byte [ebx + 2]
imul ecx, ecx, 0x1000193
xor ecx, eax
movzx eax, byte [ebx + 3]
imul ecx, ecx, 0x1000193
xor ecx, eax
imul eax, ecx, 0x1000193
push eax
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x18]
push ebx
push eax
call fcn.10008c90
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x10008963
mov dword [edi], eax
mov byte [edi + 4], 0
jmp 0x10008ac0
cmp dword [0x1004313c], 0xfffffff
je 0x10008ad6
mov dword [ebp - 0x28], 0x10043138
mov dword [ebp - 4], 0
push 0x10
mov dword [ebp - 0x24], 0
call fcn.1000ba4b
mov ecx, dword [ebx]
mov esi, eax
add esp, 4
mov dword [ebp - 0x24], esi
mov dword [esi + 8], ecx
mov dword [esi + 0xc], 0
mov dword [ebp - 4], 1
mov ecx, dword [0x1004313c]
mov ebx, dword [0x10043150]
lea eax, [ecx + 1]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x1003a690]
mov eax, ebx
shr eax, 0x1f
cvtpd2ps xmm2, xmm0
movd xmm0, ebx
cvtdq2pd xmm0, xmm0
movaps xmm1, xmm2
addsd xmm0, qword [eax*8 + 0x1003a690]
cvtpd2ps xmm0, xmm0
divss xmm1, xmm0
movss xmm0, dword [0x10043134]
comiss xmm1, xmm0
jbe 0x10008a6d
divss xmm2, xmm0
sub esp, 8
cvtps2pd xmm0, xmm2
movsd qword [ebp - 0x18], xmm0
fld qword [ebp - 0x18]
fstp qword [esp]
call fcn.100299a0
fstp qword [ebp - 0x18]
movsd xmm0, qword [ebp - 0x18]
add esp, 8
cvtpd2ps xmm0, xmm0
call fcn.1002b700
mov ecx, 8
cmp eax, ecx
cmova ecx, eax
cmp ebx, ecx
jae 0x10008a4c
cmp ebx, 0x200
jae 0x10008a4a
shl ebx, 3
cmp ebx, ecx
jae 0x10008a4c
mov ebx, ecx
push ebx
call fcn.10008b10
mov edi, dword [ebp - 0x1c]
lea eax, [esi + 8]
push edi
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.10008c90
mov ecx, dword [0x1004313c]
mov edx, dword [eax]
jmp 0x10008a73
mov edx, dword [ebp - 0x18]
mov edi, dword [ebp - 0x1c]
mov ebx, dword [edx + 4]
inc ecx
mov dword [0x1004313c], ecx
mov dword [esi], edx
mov dword [esi + 4], ebx
mov dword [ebx], esi
mov dword [edx + 4], esi
mov eax, dword [0x1004314c]
mov ecx, dword [0x10043140]
and eax, edi
mov edi, dword [ecx + eax*8]
cmp edi, dword [0x10043138]
jne 0x10008aa4
mov dword [ecx + eax*8], esi
jmp 0x10008ab3
cmp edi, edx
jne 0x10008aad
mov dword [ecx + eax*8], esi
jmp 0x10008ab7
cmp dword [ecx + eax*8 + 4], ebx
jne 0x10008ab7
mov dword [ecx + eax*8 + 4], esi
mov edi, dword [ebp - 0x20]
mov dword [edi], esi
mov byte [edi + 4], 1
mov eax, edi
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
push str.unordered_map_set_too_long
call fcn.1000ae34
int3
Function at 0x10008b10
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1fffffff
sub esp, 0x10
bsr ecx, eax
push ebx
push esi
push edi
mov edi, 1
mov eax, edi
shl eax, cl
mov ecx, dword [ebp + 8]
cmp ecx, eax
ja 0x10008c7d
lea eax, [ecx - 1]
mov esi, dword [0x10043138]
or eax, edi
mov dword [ebp - 8], esi
bsr ecx, eax
push esi
lea ecx, [ecx + 1]
shl edi, cl
mov ecx, 0x10043140
lea eax, [edi + edi]
push eax
call fcn.100087e0
mov eax, dword [0x10043138]
lea ebx, [edi - 1]
mov dword [0x1004314c], ebx
mov dword [0x10043150], edi
mov eax, dword [eax]
mov ecx, eax
cmp eax, esi
je 0x10008c74
nop word [eax + eax]
movzx edx, byte [eax + 8]
xor edx, 0x811c9dc5
mov ecx, dword [ecx]
imul edi, edx, 0x1000193
movzx edx, byte [eax + 9]
xor edi, edx
movzx edx, byte [eax + 0xa]
imul edi, edi, 0x1000193
xor edi, edx
movzx edx, byte [eax + 0xb]
imul edi, edi, 0x1000193
xor edi, edx
mov edx, dword [0x10043140]
imul edi, edi, 0x1000193
and edi, ebx
mov ebx, dword [edx + edi*8]
lea edx, [edx + edi*8]
mov dword [ebp - 0xc], edx
cmp ebx, esi
jne 0x10008bd2
mov dword [edx], eax
mov dword [edx + 4], eax
jmp 0x10008c3f
mov edx, dword [edx + 4]
mov edi, dword [eax + 8]
cmp edi, dword [edx + 8]
jne 0x10008c0c
mov edx, dword [edx]
mov dword [ebp - 4], edx
cmp edx, eax
je 0x10008c04
mov ebx, dword [eax + 4]
mov esi, dword [ebp - 4]
mov dword [ebx], ecx
mov edi, dword [ecx + 4]
mov dword [edi], edx
mov edx, dword [edx + 4]
mov dword [edx], eax
mov dword [esi + 4], edi
mov esi, dword [ebp - 8]
mov dword [ecx + 4], ebx
mov dword [eax + 4], edx
mov edx, dword [ebp - 0xc]
mov dword [edx + 4], eax
jmp 0x10008c3f
cmp ebx, edx
je 0x10008c1c
mov edx, dword [edx + 4]
cmp edi, dword [edx + 8]
je 0x10008c50
cmp ebx, edx
jne 0x10008c10
mov ebx, dword [eax + 4]
mov dword [ebp - 4], ebx
mov dword [ebx], ecx
mov ebx, dword [ecx + 4]
mov dword [ebx], edx
mov edi, dword [edx + 4]
mov dword [edi], eax
mov dword [edx + 4], ebx
mov edx, dword [ebp - 4]
mov dword [ecx + 4], edx
mov edx, dword [ebp - 0xc]
mov dword [eax + 4], edi
mov dword [edx], eax
mov eax, ecx
cmp ecx, esi
je 0x10008c74
mov ebx, dword [0x1004314c]
jmp 0x10008b80
mov ebx, dword [eax + 4]
mov edx, dword [edx]
mov dword [ebp - 4], edx
mov esi, edx
mov dword [ebx], ecx
mov edi, dword [ecx + 4]
mov dword [edi], edx
mov edx, dword [edx + 4]
mov dword [edx], eax
mov dword [esi + 4], edi
mov esi, dword [ebp - 8]
mov dword [ecx + 4], ebx
mov dword [eax + 4], edx
jmp 0x10008c3f
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push str.invalid_hash_bucket_count
call fcn.1000ae34
int3
Function at 0x1000a9b3
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
test eax, eax
jg 0x1000a9d4
jl 0x1000a9cb
test edi, edi
jne 0x1000a9d4
xor eax, eax
xor edx, edx
jmp 0x1000aa95
cmp dword [ebx + 0x38], 0
je 0x1000a9e9
push eax
push edi
push dword [ebp + 8]
call fcn.1000aa9b
jmp 0x1000aa95
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x1000aa30
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x1000aa30
cmp eax, edi
jb 0x1000aa0a
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.1000d430
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, dword [ebp + 8]
sub esi, ecx
add eax, ecx
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x2c]
sub dword [eax], ecx
mov eax, dword [ebx + 0x1c]
add dword [eax], ecx
jmp 0x1000aa36
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x1000aa8a
mov ecx, ebx
call fcn.1000a09e
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x1000aa75
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.10014137
mov ecx, dword [ebp - 4]
sub esi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp - 4], ecx
mov edx, esi
cmp eax, 0xfff
jne 0x1000aa8a
jmp 0x1000aa48
test edx, edx
je 0x1000aa8a
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.10014137
add esp, 0x10
sub esi, eax
mov edx, dword [ebp + 0x10]
sub edi, esi
mov eax, edi
sbb edx, 0
pop esi
pop edi
pop ebx
leave
ret 0xc
Function at 0x10010e8b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.1000c980
mov eax, dword [0x10040018]
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.1001dc21
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x10010ecd
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x10011029
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.1002b1e0
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x10042cc0]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.1001de30
mov ecx, dword [esi*4 + 0x10042cc0]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x10011022
cmp eax, dword [ecx + edi + 0x24]
jne 0x10011022
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10011022
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1001de30
add esp, 0x14
test edx, edx
jl 0x10011022
jg 0x10010f98
test eax, eax
jb 0x10011022
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x10011022
jl 0x10010fb2
cmp dword [ebp - 0x1008], eax
ja 0x10011022
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x10010fd0
test ebx, ebx
je 0x10011009
cmp ecx, edi
jae 0x10011009
mov al, byte [ecx]
cmp al, 0xd
jne 0x10010fea
lea eax, [edi - 1]
cmp ecx, eax
jae 0x10010ff6
cmp byte [ecx + 1], 0xa
jne 0x10010ff6
inc ecx
jmp 0x10010ff6
movzx eax, al
movsx eax, byte [eax + 0x10040250]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x10010fd0
cmp edx, ebx
jne 0x10010fd0
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x10011027
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.1000b95d
leave
ret

Function at 0x1001a9ec
Capabilities:
Parse pe header

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x10042cc0]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x1001deec
cmp byte [ebx], 0xa
jne 0x1001deec
or byte [edi + eax + 0x28], 4
jmp 0x1001def1
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x1001dff0
mov dl, byte [eax]
cmp dl, 0x1a
je 0x1001dfd3
inc eax
cmp dl, 0xd
je 0x1001df1d
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x1001df43
cmp eax, ecx
jae 0x1001df51
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x1001df05
jmp 0x1001dff0
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 0x1001dfce
cmp dword [ebp - 0x10], 0
je 0x1001dfce
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x10042cc0]
test byte [eax + edi + 0x28], 0x48
je 0x1001dfa8
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x1001df93
mov byte [esi], dl
jmp 0x1001dfa4
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x10042cc0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x1001dff0
cmp byte [ebp - 1], 0xa
jne 0x1001dfb7
cmp esi, ebx
jne 0x1001dfb7
mov byte [esi], 0xa
jmp 0x1001dfef
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.1001de4e
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x1001dff0
mov byte [esi], 0xd
jmp 0x1001dfef
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x10042cc0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x1001dfed
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x1001dff0
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x1001dff9
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x10042cc0]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x1001e03f
cmp word [ebx], dx
jne 0x1001e03f
or byte [eax + edi + 0x28], 4
jmp 0x1001e044
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x1001e1a7
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x1001e187
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x1001e085
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x1001e0bb
cmp eax, edx
jae 0x1001e0c9
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x1001e060
jmp 0x1001e1a7
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1001e182
cmp dword [ebp - 0x18], 0
je 0x1001e182
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x10042cc0]
test byte [eax + edi + 0x28], 0x48
je 0x1001e158
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x1001e11c
mov word [esi], cx
jmp 0x1001e153
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x10042cc0]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x10042cc0]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x10042cc0]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x1001e1a7
pop eax
cmp word [ebp - 4], ax
jne 0x1001e168
cmp esi, ebx
jne 0x1001e168
mov word [esi], ax
jmp 0x1001e1a4
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.1001de4e
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x1001e1a7
push 0xd
pop eax
jmp 0x1001e163
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x10042cc0]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x1001e1a1
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x1001e1a7
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret