joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000b8b0
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 0x1000b8e2
jl 0x1000b8d5
test ecx, ecx
jne 0x1000b8e2
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 0x1000b9a2
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], eax
mov ecx, ebx
call fcn.1000f720
mov esi, eax
mov eax, edx
mov dword [esp + 0x14], eax
test eax, eax
jl 0x1000b94e
jg 0x1000b90d
test esi, esi
je 0x1000b94e
mov ecx, dword [esp + 0xc]
cmp ecx, eax
jg 0x1000b925
mov eax, dword [esp + 0x10]
jl 0x1000b91f
cmp eax, esi
jae 0x1000b925
mov esi, eax
mov dword [esp + 0x14], ecx
mov eax, dword [ebx + 0x1c]
push esi
push dword [eax]
push edi
call fcn.100418e0
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 0x1000b96f
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x1c]
mov edx, dword [esp + 0xc]
cmp eax, 0xffffffff
je 0x1000b98b
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 0x1000b8f4
jl 0x1000b98b
test ecx, ecx
jne 0x1000b8f4
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]
mov edi, ecx
mov edx, dword [eax]
test edx, edx
je 0x1000b9e1
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
test eax, eax
je 0x1000b9e1
mov edi, dword [esp + 0xc]
cmp eax, ecx
mov esi, ecx
cmovb esi, eax
push esi
push edx
push edi
call fcn.100418e0
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
cmp dword [ebx + 0x4c], 0
mov ecx, edi
je 0x1000ba50
mov esi, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [esi], eax
jne 0x1000ba07
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x50]
sub edx, ecx
mov dword [esi], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [ebx + 0x2c]
mov dword [eax], edx
mov esi, dword [esp + 0xc]
mov ecx, edi
cmp edi, 0xfff
jbe 0x1000ba39
push dword [ebx + 0x4c]
push 0xfff
push 1
push esi
call fcn.100489c2
sub edi, eax
add esp, 0x10
add esi, eax
mov ecx, edi
cmp eax, 0xfff
jne 0x1000ba64
cmp edi, eax
ja 0x1000ba15
test ecx, ecx
je 0x1000ba50
push dword [ebx + 0x4c]
push edi
push 1
push esi
call fcn.100489c2
mov ecx, edi
add esp, 0x10
sub ecx, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, ecx
sbb edx, 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
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 0x10010c80
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10069bc0
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x10086014]
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.1003c34f
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.1003d740
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 0x100110a0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov ebx, ecx
mov eax, 0x1fffffff
bsr ecx, eax
push esi
mov esi, 1
mov dword [ebp - 0x18], ebx
mov eax, esi
shl eax, cl
mov ecx, dword [ebp + 8]
push edi
cmp ecx, eax
ja 0x10011230
lea eax, [ecx - 1]
or eax, esi
bsr ecx, eax
mov eax, dword [ebx + 4]
push eax
mov dword [ebp - 0xc], eax
lea ecx, [ecx + 1]
shl esi, cl
lea ecx, [ebx + 0xc]
lea eax, [esi + esi]
push eax
call fcn.10010920
mov ecx, dword [ebp - 0xc]
lea eax, [esi - 1]
mov dword [ebx + 0x18], eax
mov dword [ebx + 0x1c], esi
mov edi, dword [ebx + 4]
mov edi, dword [edi]
mov eax, edi
cmp edi, ecx
je 0x10011208
cmp dword [edi + 0x1c], 0x10
lea ebx, [edi + 8]
mov eax, dword [eax]
mov esi, dword [ebx + 0x10]
mov dword [ebp - 8], eax
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], ebx
jb 0x10011121
mov edx, dword [ebx]
mov dword [ebp - 0x10], edx
xor edx, edx
mov dword [ebp - 4], 0x811c9dc5
test esi, esi
je 0x10011154
mov ecx, dword [ebp - 4]
mov ebx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
movzx esi, byte [edx + ebx]
inc edx
xor esi, ecx
imul ecx, esi, 0x1000193
cmp edx, eax
jb 0x10011137
mov eax, dword [ebp - 8]
lea ebx, [edi + 8]
mov dword [ebp - 4], ecx
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x18]
mov esi, dword [edx + 0x18]
and esi, dword [ebp - 4]
mov edx, dword [edx + 0xc]
lea edx, [edx + esi*8]
mov esi, dword [edx]
mov dword [ebp - 4], edx
mov dword [ebp - 0x10], esi
cmp esi, ecx
jne 0x10011179
mov dword [edx], edi
mov dword [edx + 4], edi
jmp 0x100111fe
mov esi, dword [edx + 4]
lea eax, [esi + 8]
push eax
push ebx
call fcn.10014030
test al, al
jne 0x100111b3
mov ebx, dword [esi]
mov eax, dword [ebp - 8]
cmp ebx, edi
je 0x100111ab
mov esi, dword [edi + 4]
mov dword [esi], eax
mov edx, dword [eax + 4]
mov dword [edx], ebx
mov ecx, dword [ebx + 4]
mov dword [ecx], edi
mov dword [ebx + 4], edx
mov dword [eax + 4], esi
mov dword [edi + 4], ecx
mov ecx, dword [ebp - 4]
mov dword [ecx + 4], edi
jmp 0x100111fb
mov ebx, esi
cmp dword [ebp - 0x10], esi
je 0x100111db
nop word [eax + eax]
mov esi, dword [esi + 4]
mov ebx, esi
lea eax, [ebx + 8]
push eax
lea eax, [edi + 8]
push eax
call fcn.10014030
test al, al
je 0x10011211
cmp dword [ebp - 0x10], esi
jne 0x100111c0
mov esi, dword [edi + 4]
mov eax, dword [ebp - 8]
mov dword [esi], eax
mov edx, dword [eax + 4]
mov dword [edx], ebx
mov ecx, dword [ebx + 4]
mov dword [ecx], edi
mov dword [ebx + 4], edx
mov dword [eax + 4], esi
mov dword [edi + 4], ecx
mov ecx, dword [ebp - 4]
mov dword [ecx], edi
mov ecx, dword [ebp - 0xc]
mov edi, eax
cmp eax, ecx
jne 0x10011105
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ebx, dword [esi]
mov esi, dword [edi + 4]
mov eax, dword [ebp - 8]
mov dword [esi], eax
mov edx, dword [eax + 4]
mov dword [edx], ebx
mov ecx, dword [ebx + 4]
mov dword [ecx], edi
mov dword [ebx + 4], edx
mov dword [eax + 4], esi
mov dword [edi + 4], ecx
jmp 0x100111fb
push str.invalid_hash_bucket_count
call fcn.1003d52d
int3
Function at 0x10016890
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006a20e
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x10086014]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp + 8]
mov dword [ecx], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
movups xmm0, xmmword [eax]
movups xmmword [ecx], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ecx + 0x10], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
mov dword [ebp - 4], 0
mov dword [ecx + 0x18], 0
mov dword [ecx + 0x28], 0
mov dword [ecx + 0x2c], 0
movups xmm0, xmmword [eax + 0x18]
movups xmmword [ecx + 0x18], xmm0
movq xmm0, qword [eax + 0x28]
movq qword [ecx + 0x28], xmm0
mov dword [eax + 0x28], 0
mov dword [eax + 0x2c], 0xf
mov byte [eax + 0x18], 0
mov byte [ebp - 4], 1
lea edi, [ecx + 0x30]
mov eax, dword [eax + 0x30]
mov dword [edi], eax
push 0x70
mov dword [ebp - 0x14], edi
mov dword [edi + 4], 0
mov dword [edi + 8], 0
call fcn.1003c34f
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [edi + 4], eax
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
push eax
push 0x10
lea ecx, [edi + 0xc]
mov byte [ebp - 4], 3
call fcn.10010920
mov edx, dword [ebp + 8]
mov ecx, dword [edi + 4]
mov eax, dword [edx + 0x34]
mov dword [edi + 4], eax
mov eax, dword [edx + 0x38]
mov dword [edx + 0x34], ecx
mov ecx, dword [edi + 8]
mov dword [edi + 8], eax
mov eax, dword [edx + 0x3c]
mov dword [edx + 0x38], ecx
mov ecx, dword [edi + 0xc]
mov dword [edi + 0xc], eax
mov eax, dword [edx + 0x40]
mov dword [edx + 0x3c], ecx
mov ecx, dword [edi + 0x10]
mov dword [edi + 0x10], eax
mov eax, dword [edx + 0x44]
mov dword [edx + 0x40], ecx
mov ecx, dword [edi + 0x14]
mov dword [edi + 0x14], eax
mov eax, dword [edx + 0x48]
mov dword [edx + 0x44], ecx
mov dword [edx + 0x48], 7
mov dword [edi + 0x18], eax
mov eax, dword [edx + 0x4c]
mov dword [edx + 0x4c], 8
mov dword [edi + 0x1c], eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x1001a190
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006a58d
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x10086014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 4
call fcn.1003c34f
mov ecx, eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14], ecx
mov dword [ecx], eax
lea edi, [esi + 4]
mov dword [ebp - 4], 0
push edi
push 0
push ecx
push 0x1001a240
push 0
push 0
call fcn.1004a281
add esp, 0x1c
mov dword [esi], eax
test eax, eax
je 0x1001a211
mov eax, esi
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.1003c310
mov esp, ebp
pop ebp
ret 4
push 6
mov dword [edi], 0
call fcn.1003f6b8
int3
Function at 0x100207b0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006ab5e
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x10086014]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 0
xor eax, eax
mov dword [ebp - 0x10], 0
push eax
mov dword [esi], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
push 0x400
mov word [esi], ax
call fcn.10021380
mov dword [ebp - 4], 0
mov ecx, esi
push 0
mov dword [ebp - 0x10], 1
call fcn.10021360
push dword [esi + 0x10]
mov ebx, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
push eax
push edi
call ebx
cmp eax, dword [esi + 0x10]
jbe 0x1002085f
nop word [eax + eax]
push 0
push eax
mov ecx, esi
call fcn.100212c0
push 0
mov ecx, esi
call fcn.10021360
push dword [esi + 0x10]
push eax
push edi
call ebx
cmp eax, dword [esi + 0x10]
ja 0x10020840
push 0
push eax
mov ecx, esi
call fcn.100212c0
mov eax, esi
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 0x10020880
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
mov eax, dword [0x10086014]
xor eax, esp
mov dword [esp + 8], eax
movzx eax, word [ebp + 8]
push ebx
push esi
push edi
push 0x1007a4f8
mov edi, ecx
mov esi, edx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov ebx, eax
test ebx, ebx
jne 0x100208d3
mov edx, str.image_not_found_n
mov ecx, 0x100884f8
call fcn.10011ab0
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 8]
xor ecx, esp
call fcn.1003c310
mov esp, ebp
pop ebp
ret
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push ebx
push edi
mov dword [esp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x1002090c
mov edx, str.image_not_loaded_n
mov ecx, 0x100884f8
call fcn.10011ab0
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 8]
xor ecx, esp
call fcn.1003c310
mov esp, ebp
pop ebp
ret
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x1002093a
mov edx, str.image_not_locked_n
mov ecx, 0x100884f8
call fcn.10011ab0
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 8]
xor ecx, esp
call fcn.1003c310
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0x14], 8
mov dword [esp + 0x10], 0
jb 0x1002094a
mov esi, dword [esi]
push 0x1007a538
lea eax, [esp + 0x14]
push esi
push eax
call fcn.1004db89
add esp, 0xc
test eax, eax
jne 0x10020982
mov eax, dword [esp + 0x10]
test eax, eax
je 0x10020982
push eax
push 1
push dword [esp + 0x14]
push edi
call fcn.10049bc8
push dword [esp + 0x20]
call fcn.10048c52
add esp, 0x14
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1003c310
mov esp, ebp
pop ebp
ret
Function at 0x10020d80
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006abee
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x10086014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], 0
mov dword [edi], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
mov byte [edi], 0
mov dword [ebp - 4], 0
cmp dword [edx + 0x14], 8
mov dword [ebp - 0x18], 1
jb 0x10020de7
mov edx, dword [edx]
push 0x1007a564
push edx
lea eax, [ebp - 0x14]
push eax
call fcn.1004db89
mov eax, dword [ebp - 0x14]
add esp, 0xc
test eax, eax
je 0x10020e5a
push 2
push 0
push eax
call fcn.1004986e
push dword [ebp - 0x14]
call fcn.1004e2ed
push dword [ebp - 0x14]
mov esi, eax
call fcn.1004e403
push esi
call fcn.1003c7b3
push esi
mov ebx, eax
push 0
push ebx
call fcn.10041e60
push dword [ebp - 0x14]
push esi
push 1
push ebx
call fcn.100489c2
add esp, 0x34
cmp eax, esi
jne 0x10020e49
push eax
push ebx
mov ecx, edi
call fcn.1000fb90
push ebx
call fcn.1003c37f
push dword [ebp - 0x14]
call fcn.10048c52
add esp, 8
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1003c310
mov esp, ebp
pop ebp
ret

Function at 0x10020e80
Capabilities:
Enumerate threads
Resume thread
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x10086014]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov byte [ebp - 0x21], cl
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov esi, eax
mov dword [ebp - 0x28], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 0
push 4
mov dword [ebp - 0x2c], eax
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
cmp edi, 0xffffffff
je 0x10020f30
push ebx
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x1c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Thread32First]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x10020f2c
cmp dword [ebp - 0x20], 0x10
jb 0x10020f16
cmp dword [ebp - 0x14], esi
jne 0x10020f16
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x2c]
je 0x10020f16
push eax
push 0
push 2
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov esi, eax
test esi, esi
je 0x10020f13
cmp byte [ebp - 0x21], 0
push esi
je 0x10020f0a
call dword [sym.imp.KERNEL32.dll_SuspendThread]
jmp 0x10020f10
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push esi
call ebx
mov esi, dword [ebp - 0x28]
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x1c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x10020ed7
push edi
call ebx
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.1003c310
mov esp, ebp
pop ebp
ret
Function at 0x1002ce20
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x10
mov eax, dword [0x10086014]
xor eax, esp
mov dword [esp + 0xc], eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov edi, eax
cmp edi, 0xffffffff
jne 0x1002ce5c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov dword [esp + 0xc], esi
call fcn.1002ccc0
mov dword [esp + 0x10], eax
test esi, esi
jne 0x1002ce6f
mov ecx, dword [esp + 0x14]
mov eax, edi
pop edi
pop esi
xor ecx, esp
call fcn.1003c310
mov esp, ebp
pop ebp
ret
mov edx, 0x1007c47c
lea ecx, [esp + 0xc]
call fcn.1002cc70
int3

Function at 0x1002d030
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
push dword [0x1008955c]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x1002d05a
mov ecx, dword [eax + 4]
mov edx, dword [ebp + 8]
push ecx
push dword [ebp - 4]
call fcn.100313d0
add esp, 8
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 8]
xor ecx, ecx
push ecx
push dword [ebp - 4]
call fcn.100313d0
add esp, 8
mov esp, ebp
pop ebp
ret

Function at 0x1002d070
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [0x1008955c]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x1002d089
mov esi, dword [eax + 4]
jmp 0x1002d08b
xor esi, esi
mov eax, dword [ebp + 0xc]
cmp eax, 0x3fc
ja 0x1002d0ac
test esi, esi
je 0x1002d0ac
xor edx, edx
nop dword [eax + eax]
cmp dword [esi + edx*4], 0
je 0x1002d0ba
inc edx
cmp edx, 2
jl 0x1002d0a0
push dword [ebp + 8]
call fcn.1003c7bc
add esp, 4
pop esi
pop ebp
ret
mov ecx, dword [ebp + 8]
mov al, byte [ecx + eax]
mov byte [ecx], al
mov dword [esi + edx*4], ecx
pop esi
pop ebp
ret
Function at 0x1002d670
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
mov eax, dword [0x10086014]
xor eax, esp
mov dword [esp + 0x10], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 0
push 0
push 1
mov esi, ecx
push 0
mov dword [esp + 0x1c], esi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov edi, eax
mov dword [ebx + 4], edi
test edi, edi
jne 0x1002d6d0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebx]
mov ecx, ebx
push 1
mov esi, eax
call dword [edx]
mov dword [esp + 0x10], esi
call fcn.1002ccc0
mov dword [esp + 0x14], eax
test esi, esi
jne 0x1002d7a1
mov esi, dword [esp + 0xc]
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 8], eax
mov dword [ebx + 8], eax
cmp dword [esi + 8], 0
jne 0x1002d713
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebx]
mov ecx, ebx
push 1
mov esi, eax
call dword [edx]
mov dword [esp + 0x10], esi
call fcn.1002ccc0
mov dword [esp + 0x14], eax
test esi, esi
jne 0x1002d7af
mov esi, dword [esp + 0xc]
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0
push eax
push 0
push ebx
push 0x1002d7d0
push 0
push 0
call fcn.1004a281
add esp, 0x18
mov dword [esi + 4], eax
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x1002d77d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebx]
mov ecx, ebx
push 1
mov dword [esp + 0x14], eax
call dword [edx]
test edi, edi
je 0x1002d75a
push edi
call esi
mov eax, dword [esp + 0xc]
mov eax, dword [eax + 8]
test eax, eax
je 0x1002d768
push eax
call esi
mov ebx, dword [esp + 0x10]
mov dword [esp + 0x10], ebx
call fcn.1002ccc0
mov dword [esp + 0x14], eax
test ebx, ebx
jne 0x1002d7bd
test edi, edi
je 0x1002d78d
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
call esi
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1003c310
mov esp, ebp
pop ebp
ret 8
mov edx, str.thread.entry_event
lea ecx, [esp + 0x10]
call fcn.1002cc70
mov edx, str.thread.exit_event
lea ecx, [esp + 0x10]
call fcn.1002cc70
mov edx, str.thread
lea ecx, [esp + 0x10]
call fcn.1002cc70
int3
Function at 0x1002d900
Capabilities:
Access peb ldr_data
Get ntdll base address

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 0x1006ba7e
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x18
mov eax, dword [0x10086014]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x20], edi
mov eax, dword [ebx + 8]
mov dword [ebp - 0x24], edi
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], 0
mov dword [ebp - 4], 0
mov dword [edi], vtable.asio::detail::win_iocp_io_context.0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
call fcn.1002e700
mov dword [edi + 0x28], eax
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
mov byte [ebp - 4], 3
lea ecx, [edi + 0x38]
mov dword [edi + 0x34], 0
call fcn.1002d2c0
mov esi, eax
call fcn.1002ccc0
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], eax
test esi, esi
jne 0x1002dab5
mov dword [edi + 0x50], esi
mov dword [edi + 0x54], esi
mov dword [edi + 0x58], esi
mov dword [edi + 0x5c], 0xffffffff
mov dword [edi + 0x60], esi
push 0xffffffffffffffff
push esi
push esi
push 0xffffffffffffffff
mov byte [ebp - 4], 6
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
mov dword [edi + 0x14], eax
test eax, eax
jne 0x1002da14
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call fcn.1002ccc0
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], eax
test esi, esi
jne 0x1002dac2
cmp byte [ebx + 0x10], 0
je 0x1002da93
lea eax, [edi + 0x18]
lock inc dword [eax]
push 0xc
call fcn.1003c34f
mov esi, eax
add esp, 4
mov dword [ebp - 0x20], esi
mov byte [ebp - 4], 7
xorps xmm0, xmm0
movq qword [esi], xmm0
mov dword [esi + 8], 0
push 0x10
mov dword [esi + 4], 0
mov dword [esi + 8], 0
call fcn.1003c34f
mov dword [ebp - 0x18], eax
xorps xmm0, xmm0
push eax
mov ecx, esi
movups xmmword [eax], xmm0
mov dword [eax], vtable.asio::detail::win_thread::func_struct_asio::detail::win_iocp_io_context::thread_function_.0
mov dword [eax + 0xc], edi
call fcn.1002d670
mov eax, dword [edi + 0x60]
mov dword [ebp - 0x20], eax
test eax, eax
je 0x1002da90
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xc
push dword [ebp - 0x20]
call fcn.1003c31e
add esp, 8
mov dword [edi + 0x60], esi
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1003c310
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0xc
mov edx, str.mutex
lea ecx, [ebp - 0x1c]
call fcn.1002cc70
mov edx, str.iocp
lea ecx, [ebp - 0x1c]
call fcn.1002cc70
int3