joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10007900
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2e4
mov eax, dword [0x1003a040]
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.100077d0
test eax, eax
jne 0x1000794d
mov eax, 9
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000d8a4
mov esp, ebp
pop ebp
ret
cmp dword [edi], 0
je 0x10007aff
push ebx
xor ebx, ebx
mov dword [ebp - 0x2e0], ebx
cmp dword [edi + 8], ebx
jbe 0x10007aed
push esi
nop dword [eax]
mov eax, dword [edi]
push dword [eax + ebx*4]
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov esi, eax
mov dword [ebp - 0x2d4], esi
test esi, esi
je 0x10007adc
push esi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
lea eax, [ebp - 0x2d0]
mov dword [ebp - 0x2d0], 0x10001
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x10007ad5
mov eax, dword [0x1003d2f8]
mov dword [ebp - 0x2dc], eax
test eax, eax
je 0x10007ad5
xor ecx, ecx
mov dword [ebp - 0x2d8], ecx
mov edx, dword [0x1003d2f0]
mov eax, dword [ebp + 8]
add edx, ecx
sub eax, 0
je 0x100079f9
sub eax, 1
je 0x100079f2
movzx ecx, byte [edx + 0x14]
shr ecx, 2
and ecx, 1
jmp 0x100079fb
mov ecx, 1
jmp 0x100079fb
xor ecx, ecx
mov bl, byte [edx + 0x14]
movzx eax, bl
shr eax, 1
and eax, 1
cmp eax, ecx
je 0x10007aa7
test ecx, ecx
je 0x10007a4c
mov esi, dword [edx + 0x18]
xor ecx, ecx
and esi, 0xf
jbe 0x10007aa7
mov edi, dword [edx]
mov ebx, dword [ebp - 0x218]
nop dword [eax + eax]
movzx eax, byte [edx + ecx + 0x1c]
add eax, edi
cmp ebx, eax
je 0x10007a42
inc ecx
cmp ecx, esi
jb 0x10007a30
jmp 0x10007aa7
movzx ecx, byte [ecx + edx + 0x24]
add ecx, dword [edx + 8]
jmp 0x10007a89
test bl, 1
mov ebx, dword [ebp - 0x218]
je 0x10007a60
mov ecx, dword [edx]
lea eax, [ecx - 5]
cmp ebx, eax
je 0x10007a8f
mov esi, dword [edx + 0x18]
xor eax, eax
and esi, 0xf
jbe 0x10007aa7
mov edi, dword [edx + 8]
nop dword [eax]
movzx ecx, byte [edx + eax + 0x24]
add ecx, edi
cmp ebx, ecx
je 0x10007a82
inc eax
cmp eax, esi
jb 0x10007a70
jmp 0x10007aa7
movzx ecx, byte [eax + edx + 0x1c]
add ecx, dword [edx]
mov esi, dword [ebp - 0x2d4]
test ecx, ecx
je 0x10007aa7
lea eax, [ebp - 0x2d0]
mov dword [ebp - 0x218], ecx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetThreadContext]
mov ecx, dword [ebp - 0x2d8]
mov esi, dword [ebp - 0x2d4]
add ecx, 0x2c
sub dword [ebp - 0x2dc], 1
mov dword [ebp - 0x2d8], ecx
jne 0x100079d1
mov ebx, dword [ebp - 0x2e0]
mov edi, dword [ebp - 0x2e4]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc ebx
mov dword [ebp - 0x2e0], ebx
cmp ebx, dword [edi + 8]
jb 0x10007970
pop esi
pop ebx
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000d8a4
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop edi
call fcn.1000d8a4
mov esp, ebp
pop ebp
ret
Function at 0x10007b10
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x1003a040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
imul esi, ecx, 0x2c
mov ebx, edx
push edi
add esi, dword [0x1003d2f0]
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 0x10007b71
pop edi
pop esi
mov eax, 0xa
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000d8a4
mov esp, ebp
pop ebp
ret
test ebx, ebx
je 0x10007b92
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 0x10007bb3
mov eax, dword [esi]
mov word [eax], 0xf9eb
jmp 0x10007bb3
mov eax, dword [esi + 0xc]
test byte [esi + 0x14], 1
mov dword [edi], eax
je 0x10007bad
mov ax, word [esi + 0x10]
mov word [edi + 4], ax
mov al, byte [esi + 0x12]
mov byte [edi + 6], al
jmp 0x10007bb3
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.1000d8a4
mov esp, ebp
pop ebp
ret

Function at 0x10007c10
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [0x1003d2f8]
sub esp, 0x10
push esi
xor esi, esi
test ecx, ecx
je 0x10007c3d
mov eax, dword [0x1003d2f0]
add eax, 0x14
nop dword [eax + eax]
test byte [eax], 2
jne 0x10007c44
inc esi
add eax, 0x2c
cmp esi, ecx
jb 0x10007c30
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
cmp esi, 0xffffffff
je 0x10007c3d
push ebx
push 0
lea ecx, [ebp - 0x10]
call fcn.10007900
mov ebx, eax
mov dword [ebp - 4], eax
add esp, 4
test ebx, ebx
jne 0x10007cef
mov ecx, dword [0x1003d2f8]
push edi
cmp esi, ecx
jae 0x10007c9e
imul edi, esi, 0x2c
mov eax, dword [0x1003d2f0]
test byte [edi + eax + 0x14], 2
je 0x10007c93
xor edx, edx
mov ecx, esi
call fcn.10007b10
mov ebx, eax
test ebx, ebx
jne 0x10007c9b
mov ecx, dword [0x1003d2f8]
inc esi
add edi, 0x2c
cmp esi, ecx
jb 0x10007c72
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x10007cec
xor esi, esi
cmp dword [ebp - 8], esi
jbe 0x10007cdd
mov ebx, eax
nop
push dword [ebx + esi*4]
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov edi, eax
test edi, edi
je 0x10007cd1
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 0x10007cb0
mov ebx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
push eax
push 0
push dword [0x1003d184]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, ebx
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10008100
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
xor ebx, ebx
call fcn.10007d00
cmp dword [0x1003d184], ebx
je 0x1000820e
mov edi, dword [0x1003d2f8]
xor esi, esi
test edi, edi
je 0x10008213
mov edx, dword [0x1003d2f0]
add edx, 0x14
mov cl, byte [edx]
shr cl, 1
xor cl, byte [edx]
test cl, 2
jne 0x1000814d
inc esi
add edx, 0x2c
cmp esi, edi
jb 0x10008135
jmp 0x10008213
cmp esi, 0xffffffff
je 0x10008213
push 2
lea ecx, [ebp - 0x10]
call fcn.10007900
mov ebx, eax
mov dword [ebp - 4], eax
add esp, 4
test ebx, ebx
jne 0x10008213
mov edx, dword [0x1003d2f8]
cmp esi, edx
jae 0x100081ba
imul edi, esi, 0x2c
nop dword [eax]
mov eax, dword [0x1003d2f0]
mov cl, byte [edi + eax + 0x14]
mov al, cl
shr al, 1
xor al, cl
test al, 2
je 0x100081af
movzx edx, cl
mov ecx, esi
shr edx, 2
and edx, 1
call fcn.10007b10
mov ebx, eax
test ebx, ebx
jne 0x100081b7
mov edx, dword [0x1003d2f8]
inc esi
add edi, 0x2c
cmp esi, edx
jb 0x10008180
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x10008213
xor esi, esi
cmp dword [ebp - 8], esi
jbe 0x100081fd
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 0x100081f1
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 0x100081d0
mov ebx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
push eax
push 0
push dword [0x1003d184]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x10008213
mov ebx, 2
xor eax, eax
mov ecx, 0x1003d180
xchg dword [ecx], eax
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1000be30
Capabilities:
Hash data using fnv

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
mov eax, 0x1fffffff
sub esp, 0x10
bsr ecx, eax
push esi
push edi
mov edi, 1
mov eax, edi
shl eax, cl
mov ecx, dword [ebx + 8]
cmp ecx, eax
ja 0x1000bfcb
lea eax, [ecx - 1]
mov esi, dword [0x1003d2a4]
or eax, edi
mov dword [ebp - 8], esi
bsr ecx, eax
push esi
lea ecx, [ecx + 1]
shl edi, cl
mov ecx, 0x1003d2ac
lea eax, [edi + edi]
push eax
call fcn.1000b3e0
lea eax, [edi - 1]
mov dword [0x1003d2bc], edi
mov dword [0x1003d2b8], eax
mov eax, dword [0x1003d2a4]
mov eax, dword [eax]
mov ecx, eax
cmp eax, esi
je 0x1000bf95
nop dword [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 [0x1003d2ac]
imul edi, edi, 0x1000193
and edi, dword [0x1003d2b8]
lea edx, [edx + edi*8]
mov dword [ebp - 0x10], edx
cmp dword [edx], esi
jne 0x1000bf06
mov dword [edx], eax
mov dword [edx + 4], eax
jmp 0x1000bf8b
mov edx, dword [edx + 4]
mov edi, dword [eax + 8]
cmp edi, dword [edx + 8]
jne 0x1000bf49
mov edx, dword [edx]
mov dword [ebp - 4], edx
cmp edx, eax
je 0x1000bf41
mov edx, dword [eax + 4]
mov esi, dword [ebp - 4]
mov dword [ebp - 0xc], edx
mov dword [edx], ecx
mov edi, dword [ecx + 4]
mov edx, dword [ebp - 4]
mov dword [edi], edx
mov edx, dword [edx + 4]
mov dword [edx], eax
mov dword [esi + 4], edi
mov edi, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov dword [ecx + 4], edi
mov dword [eax + 4], edx
mov edx, dword [ebp - 0x10]
mov dword [edx + 4], eax
jmp 0x1000bf8b
mov esi, dword [ebp - 0x10]
cmp dword [esi], edx
je 0x1000bf5f
mov edx, dword [edx + 4]
cmp edi, dword [edx + 8]
je 0x1000bfa0
mov esi, dword [ebp - 0x10]
cmp dword [esi], edx
jne 0x1000bf50
mov esi, dword [eax + 4]
mov dword [ebp - 4], esi
mov dword [esi], ecx
mov edi, dword [ecx + 4]
mov dword [ebp - 0xc], edi
mov esi, dword [ebp - 0xc]
mov dword [edi], edx
mov edi, dword [edx + 4]
mov dword [edi], eax
mov dword [edx + 4], esi
mov edx, dword [ebp - 4]
mov dword [ecx + 4], edx
mov edx, dword [ebp - 0x10]
mov dword [eax + 4], edi
mov dword [edx], eax
mov esi, dword [ebp - 8]
mov eax, ecx
cmp ecx, esi
jne 0x1000beb0
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4
mov edx, dword [edx]
mov dword [ebp - 4], edx
mov edx, dword [eax + 4]
mov esi, dword [ebp - 4]
mov dword [ebp - 0xc], edx
mov dword [edx], ecx
mov edi, dword [ecx + 4]
mov edx, dword [ebp - 4]
mov dword [edi], edx
mov edx, dword [edx + 4]
mov dword [edx], eax
mov dword [esi + 4], edi
mov edi, dword [ebp - 0xc]
mov dword [ecx + 4], edi
mov dword [eax + 4], edx
jmp 0x1000bf88
push str.invalid_hash_bucket_count
call fcn.100101fb
int3
Function at 0x1000ce50
Capabilities:
Hash data using fnv

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
mov eax, 0x1fffffff
sub esp, 0x10
bsr ecx, eax
push esi
push edi
mov edi, 1
mov eax, edi
shl eax, cl
mov ecx, dword [ebx + 8]
cmp ecx, eax
ja 0x1000cfeb
lea eax, [ecx - 1]
mov esi, dword [0x1003d1f4]
or eax, edi
mov dword [ebp - 8], esi
bsr ecx, eax
push esi
lea ecx, [ecx + 1]
shl edi, cl
mov ecx, 0x1003d1fc
lea eax, [edi + edi]
push eax
call fcn.1000b3e0
lea eax, [edi - 1]
mov dword [0x1003d20c], edi
mov dword [0x1003d208], eax
mov eax, dword [0x1003d1f4]
mov eax, dword [eax]
mov ecx, eax
cmp eax, esi
je 0x1000cfb5
nop dword [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 [0x1003d1fc]
imul edi, edi, 0x1000193
and edi, dword [0x1003d208]
lea edx, [edx + edi*8]
mov dword [ebp - 0x10], edx
cmp dword [edx], esi
jne 0x1000cf26
mov dword [edx], eax
mov dword [edx + 4], eax
jmp 0x1000cfab
mov edx, dword [edx + 4]
mov edi, dword [eax + 8]
cmp edi, dword [edx + 8]
jne 0x1000cf69
mov edx, dword [edx]
mov dword [ebp - 4], edx
cmp edx, eax
je 0x1000cf61
mov edx, dword [eax + 4]
mov esi, dword [ebp - 4]
mov dword [ebp - 0xc], edx
mov dword [edx], ecx
mov edi, dword [ecx + 4]
mov edx, dword [ebp - 4]
mov dword [edi], edx
mov edx, dword [edx + 4]
mov dword [edx], eax
mov dword [esi + 4], edi
mov edi, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov dword [ecx + 4], edi
mov dword [eax + 4], edx
mov edx, dword [ebp - 0x10]
mov dword [edx + 4], eax
jmp 0x1000cfab
mov esi, dword [ebp - 0x10]
cmp dword [esi], edx
je 0x1000cf7f
mov edx, dword [edx + 4]
cmp edi, dword [edx + 8]
je 0x1000cfc0
mov esi, dword [ebp - 0x10]
cmp dword [esi], edx
jne 0x1000cf70
mov esi, dword [eax + 4]
mov dword [ebp - 4], esi
mov dword [esi], ecx
mov edi, dword [ecx + 4]
mov dword [ebp - 0xc], edi
mov esi, dword [ebp - 0xc]
mov dword [edi], edx
mov edi, dword [edx + 4]
mov dword [edi], eax
mov dword [edx + 4], esi
mov edx, dword [ebp - 4]
mov dword [ecx + 4], edx
mov edx, dword [ebp - 0x10]
mov dword [eax + 4], edi
mov dword [edx], eax
mov esi, dword [ebp - 8]
mov eax, ecx
cmp ecx, esi
jne 0x1000ced0
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4
mov edx, dword [edx]
mov dword [ebp - 4], edx
mov edx, dword [eax + 4]
mov esi, dword [ebp - 4]
mov dword [ebp - 0xc], edx
mov dword [edx], ecx
mov edi, dword [ecx + 4]
mov edx, dword [ebp - 4]
mov dword [edi], edx
mov edx, dword [edx + 4]
mov dword [edx], eax
mov dword [esi + 4], edi
mov edi, dword [ebp - 0xc]
mov dword [ecx + 4], edi
mov dword [eax + 4], edx
jmp 0x1000cfa8
push str.invalid_hash_bucket_count
call fcn.100101fb
int3
Function at 0x1000d000
Capabilities:
Hash data using fnv

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
mov eax, 0x1fffffff
sub esp, 0x10
bsr ecx, eax
push esi
push edi
mov edi, 1
mov eax, edi
shl eax, cl
mov ecx, dword [ebx + 8]
cmp ecx, eax
ja 0x1000d19b
lea eax, [ecx - 1]
mov esi, dword [0x1003d1d4]
or eax, edi
mov dword [ebp - 8], esi
bsr ecx, eax
push esi
lea ecx, [ecx + 1]
shl edi, cl
mov ecx, 0x1003d1dc
lea eax, [edi + edi]
push eax
call fcn.1000b3e0
lea eax, [edi - 1]
mov dword [0x1003d1ec], edi
mov dword [0x1003d1e8], eax
mov eax, dword [0x1003d1d4]
mov eax, dword [eax]
mov ecx, eax
cmp eax, esi
je 0x1000d165
nop dword [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 [0x1003d1dc]
imul edi, edi, 0x1000193
and edi, dword [0x1003d1e8]
lea edx, [edx + edi*8]
mov dword [ebp - 0x10], edx
cmp dword [edx], esi
jne 0x1000d0d6
mov dword [edx], eax
mov dword [edx + 4], eax
jmp 0x1000d15b
mov edx, dword [edx + 4]
mov edi, dword [eax + 8]
cmp edi, dword [edx + 8]
jne 0x1000d119
mov edx, dword [edx]
mov dword [ebp - 4], edx
cmp edx, eax
je 0x1000d111
mov edx, dword [eax + 4]
mov esi, dword [ebp - 4]
mov dword [ebp - 0xc], edx
mov dword [edx], ecx
mov edi, dword [ecx + 4]
mov edx, dword [ebp - 4]
mov dword [edi], edx
mov edx, dword [edx + 4]
mov dword [edx], eax
mov dword [esi + 4], edi
mov edi, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov dword [ecx + 4], edi
mov dword [eax + 4], edx
mov edx, dword [ebp - 0x10]
mov dword [edx + 4], eax
jmp 0x1000d15b
mov esi, dword [ebp - 0x10]
cmp dword [esi], edx
je 0x1000d12f
mov edx, dword [edx + 4]
cmp edi, dword [edx + 8]
je 0x1000d170
mov esi, dword [ebp - 0x10]
cmp dword [esi], edx
jne 0x1000d120
mov esi, dword [eax + 4]
mov dword [ebp - 4], esi
mov dword [esi], ecx
mov edi, dword [ecx + 4]
mov dword [ebp - 0xc], edi
mov esi, dword [ebp - 0xc]
mov dword [edi], edx
mov edi, dword [edx + 4]
mov dword [edi], eax
mov dword [edx + 4], esi
mov edx, dword [ebp - 4]
mov dword [ecx + 4], edx
mov edx, dword [ebp - 0x10]
mov dword [eax + 4], edi
mov dword [edx], eax
mov esi, dword [ebp - 8]
mov eax, ecx
cmp ecx, esi
jne 0x1000d080
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4
mov edx, dword [edx]
mov dword [ebp - 4], edx
mov edx, dword [eax + 4]
mov esi, dword [ebp - 4]
mov dword [ebp - 0xc], edx
mov dword [edx], ecx
mov edi, dword [ecx + 4]
mov edx, dword [ebp - 4]
mov dword [edi], edx
mov edx, dword [edx + 4]
mov dword [edx], eax
mov dword [esi + 4], edi
mov edi, dword [ebp - 0xc]
mov dword [ecx + 4], edi
mov dword [eax + 4], edx
jmp 0x1000d158
push str.invalid_hash_bucket_count
call fcn.100101fb
int3
Function at 0x1000d5e0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x1003a040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov ecx, 0x401000
call fcn.1000d810
mov dword [ebp - 8], eax
lea ecx, [ebp - 8]
lea eax, [ebp - 0x1c]
push eax
call fcn.10004750
mov dword [ebp - 0x14], 4
mov esi, dword [eax]
lea eax, [ebp - 0x10]
push eax
push 0x40
push 4
push esi
mov dword [ebp - 0x18], esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
setne byte [ebp - 0xc]
mov esi, dword [esi]
test eax, eax
je 0x1000d648
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 8]
push ecx
push eax
push dword [ebp - 0x14]
mov dword [ebp - 8], eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
cmp esi, 0x53ec8b55
jne 0x1000d664
mov eax, 0x3e9
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000d8a4
mov esp, ebp
pop ebp
ret
mov ecx, 0x401000
call fcn.1000d830
cmp eax, 0x16197be9
jne 0x1000d689
mov eax, 0x3ea
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000d8a4
mov esp, ebp
pop ebp
ret
mov ecx, 0x8245bc
call fcn.1000d830
cmp eax, 0x94bf
jne 0x1000d6ae
mov eax, 0x3f3
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000d8a4
mov esp, ebp
pop ebp
ret
mov ecx, 0x8252fc
call fcn.1000d830
cmp eax, 0x94bf
jne 0x1000d6d3
mov eax, 0x44d
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000d8a4
mov esp, ebp
pop ebp
ret
mov ecx, 0x82533c
call fcn.1000d830
cmp eax, 0x94bf
jne 0x1000d6f8
mov eax, 0x457
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000d8a4
mov esp, ebp
pop ebp
ret
mov ecx, 0x858d51
call fcn.1000d830
cmp eax, 0x3539f633
jne 0x1000d71d
mov eax, 0xc80
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000d8a4
mov esp, ebp
pop ebp
ret
mov ecx, 0x858c61
call fcn.1000d830
xor ecx, ecx
mov edx, 0xc8a
cmp eax, 0x3539f633
pop esi
cmove ecx, edx
mov eax, ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000d8a4
mov esp, ebp
pop ebp
ret

Function at 0x1000d830
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x1003a040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
call fcn.1000d810
mov dword [ebp - 8], eax
lea ecx, [ebp - 8]
lea eax, [ebp - 0x1c]
push eax
call fcn.10004750
mov dword [ebp - 0x14], 4
mov esi, dword [eax]
lea eax, [ebp - 0x10]
push eax
push 0x40
push 4
push esi
mov dword [ebp - 0x18], esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
setne byte [ebp - 0xc]
mov esi, dword [esi]
test eax, eax
je 0x1000d893
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 8]
push eax
push ecx
push dword [ebp - 0x14]
mov dword [ebp - 8], ecx
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.1000d8a4
mov esp, ebp
pop ebp
ret
Function at 0x1000fd58
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 0x1000fd79
jl 0x1000fd70
test edi, edi
jne 0x1000fd79
xor eax, eax
xor edx, edx
jmp 0x1000fe3a
cmp dword [ebx + 0x38], 0
je 0x1000fd8e
push eax
push edi
push dword [ebp + 8]
call fcn.1000fe40
jmp 0x1000fe3a
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x1000fdd5
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x1000fdd5
cmp eax, edi
jb 0x1000fdaf
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.10011810
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 0x1000fddb
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x1000fe2f
mov ecx, ebx
call fcn.1000f485
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x1000fe1a
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.1001820f
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 0x1000fe2f
jmp 0x1000fded
test edx, edx
je 0x1000fe2f
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.1001820f
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 0x10016e5c
Capabilities:
Parse pe header

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

Function at 0x1001cb60
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10030ed8
push 0x10030ed0
push str.FlsAlloc
push 0x1f
call fcn.1001ca28
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1001cb94
push dword [ebp + 8]
mov ecx, esi
call dword [0x1002d18c]
call esi
jmp 0x1001cb9a
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1001cbde
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10030ee8
push 0x10030ee0
push str.FlsGetValue
push 0x21
call fcn.1001ca28
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1001cc15
push dword [ebp + 8]
mov ecx, esi
call dword [0x1002d18c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x1001cc1d
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10030ef0
push 0x10030ee8
push str.FlsSetValue
push 0x22
call fcn.1001ca28
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1001cc57
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1002d18c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x1001f71d
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 0x1001f7ba
push ebx
push esi
call fcn.1001f6e6
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.1001f67a
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1001f767
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1001f7b9
push edi
push eax
call fcn.1001d1fc
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1001f787
call fcn.1001c749
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1001f7b8
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1001f67a
add esp, 0x20
test eax, eax
jne 0x1001f7a6
push edi
call fcn.1001c749
jmp 0x1001f7ae
push ebx
call fcn.1001c749
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