joyce8/EMBER2024-capa huggingface dataset:
Function at 0x436596
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0x44c750]
push edi
xor edi, edi
cmp dword [ebp + 0x3b0], edi
mov dword [ebp + 0x39c], eax
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x7c], edi
jne 0x4365c7
xor eax, eax
jmp 0x436750
mov eax, dword [ebp + 0x3a8]
push ebx
mov ebx, dword [ebp + 0x3a8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x549120]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x436603
push 2
push edi
push edi
push dword [ebp + 0x3a8]
call fcn.00439630
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x4366de
cmp dword [ebp + 0x3b0], edi
mov eax, dword [ebp + 0x3ac]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x6c], edi
jbe 0x43671c
mov ecx, dword [ebp - 0x74]
sub ecx, dword [ebp + 0x3ac]
lea eax, [ebp - 0x68]
mov dword [ebp - 0x70], edi
cmp ecx, dword [ebp + 0x3b0]
jae 0x436667
mov edx, dword [ebp - 0x74]
inc dword [ebp - 0x74]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x436658
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0x70]
mov byte [eax], dl
inc eax
inc dword [ebp - 0x70]
cmp dword [ebp - 0x70], 0x400
jl 0x436638
mov edi, eax
lea eax, [ebp - 0x68]
sub edi, eax
push 0
lea eax, [ebp - 0x80]
push eax
push edi
lea eax, [ebp - 0x68]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4366a7
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x78], eax
cmp eax, edi
jl 0x4366b0
mov eax, dword [ebp - 0x74]
sub eax, dword [ebp + 0x3ac]
xor edi, edi
cmp eax, dword [ebp + 0x3b0]
jb 0x436629
jmp 0x4366b2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
xor edi, edi
mov eax, dword [ebp - 0x78]
cmp eax, edi
jne 0x43674b
cmp dword [ebp - 0x6c], edi
je 0x43671c
push 5
pop esi
cmp dword [ebp - 0x6c], esi
jne 0x436711
call fcn.0042aef8
mov dword [eax], 9
call fcn.0042af01
mov dword [eax], esi
jmp 0x436746
push edi
lea ecx, [ebp - 0x80]
push ecx
push dword [ebp + 0x3b0]
push dword [ebp + 0x3ac]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x436706
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x78], eax
jmp 0x4366b2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
jmp 0x4366b2
push dword [ebp - 0x6c]
call fcn.0042af0a
pop ecx
jmp 0x436746
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x436734
mov eax, dword [ebp + 0x3ac]
cmp byte [eax], 0x1a
jne 0x436734
xor eax, eax
jmp 0x43674e
call fcn.0042aef8
mov dword [eax], 0x1c
call fcn.0042af01
mov dword [eax], edi
or eax, 0xffffffff
jmp 0x43674e
sub eax, dword [ebp - 0x7c]
pop esi
pop ebx
mov ecx, dword [ebp + 0x39c]
pop edi
call fcn.0042a0fe
add ebp, 0x3a0
leave
ret
Function at 0x4385b8
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x548e94], ebx
push esi
push edi
jne 0x438638
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x438673
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4463c4
push edi
call esi
test eax, eax
mov dword [0x548e94], eax
je 0x438673
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x548e98], eax
call esi
cmp dword [0x5489dc], 2
mov dword [0x548e9c], eax
jne 0x438638
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x548ea4], eax
je 0x438638
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x548ea0], eax
mov eax, dword [0x548ea0]
test eax, eax
je 0x43867d
call eax
test eax, eax
je 0x438664
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x548ea4]
test eax, eax
je 0x438664
test byte [ebp - 8], 1
jne 0x43867d
cmp dword [0x5489e8], 4
jb 0x438677
or byte [ebp + 0x12], 0x20
jmp 0x43869c
xor eax, eax
jmp 0x4386ac
or byte [ebp + 0x12], 4
jmp 0x43869c
mov eax, dword [0x548e98]
test eax, eax
je 0x43869c
call eax
mov ebx, eax
test ebx, ebx
je 0x43869c
mov eax, dword [0x548e9c]
test eax, eax
je 0x43869c
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x548e94]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x439771
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x4463f0
call fcn.00429f30
xor edi, edi
xor ebx, ebx
inc ebx
cmp dword [0x548eac], edi
jne 0x4397b5
push edi
push edi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4397a0
mov dword [0x548eac], ebx
jmp 0x4397b5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x4397b5
mov dword [0x548eac], 2
mov eax, dword [0x548eac]
cmp eax, ebx
jne 0x4397d5
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
jmp 0x439898
cmp eax, 2
je 0x4397de
cmp eax, edi
jne 0x439806
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x24], edi
cmp dword [ebp + 0x18], edi
jne 0x4397f1
mov eax, dword [0x548e1c]
mov dword [ebp + 0x18], eax
push edi
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov dword [ebp - 0x20], eax
cmp eax, edi
jne 0x43980d
xor eax, eax
jmp 0x439898
mov dword [ebp - 4], edi
add eax, 3
and eax, 0xfffffffc
call fcn.0042a090
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [ebp - 0x28], esi
or dword [ebp - 4], 0xffffffff
jmp 0x439840
cmp esi, edi
jne 0x439856
push dword [ebp - 0x20]
call fcn.004295fe
pop ecx
mov esi, eax
cmp esi, edi
je 0x439806
mov dword [ebp - 0x24], ebx
push dword [ebp - 0x20]
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x439889
cmp dword [ebp + 0x14], edi
jne 0x439873
push edi
push edi
jmp 0x439879
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0xffffffffffffffff
push esi
push ebx
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x24], edi
je 0x439895
push esi
call fcn.00429610
pop ecx
mov eax, dword [ebp - 0x1c]
lea esp, [ebp - 0x34]
call fcn.00429f6b
ret
Function at 0x4398a1
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x446400
call fcn.00429f30
xor esi, esi
cmp dword [0x548eb0], esi
jne 0x4398e5
push esi
push esi
xor edi, edi
inc edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4398d0
mov dword [0x548eb0], edi
jmp 0x4398e5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x4398e5
mov dword [0x548eb0], 2
mov eax, dword [0x548eb0]
cmp eax, 2
je 0x4399c6
cmp eax, esi
je 0x4399c6
cmp eax, 1
jne 0x43992a
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], esi
cmp dword [ebp + 0x18], esi
jne 0x439913
mov eax, dword [0x548e1c]
mov dword [ebp + 0x18], eax
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov ebx, eax
mov dword [ebp - 0x24], ebx
cmp ebx, esi
jne 0x439931
xor eax, eax
jmp 0x4399d8
mov dword [ebp - 4], esi
lea eax, [ebx + ebx]
add eax, 3
and eax, 0xfffffffc
call fcn.0042a090
mov dword [ebp - 0x18], esp
mov edi, esp
mov dword [ebp - 0x28], edi
or dword [ebp - 4], 0xffffffff
jmp 0x439967
cmp edi, esi
jne 0x439982
lea eax, [ebx + ebx]
push eax
call fcn.004295fe
pop ecx
mov edi, eax
cmp edi, esi
je 0x43992a
mov dword [ebp - 0x20], 1
push ebx
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4399b5
push esi
push esi
cmp dword [ebp + 0x14], esi
jne 0x43999f
push esi
push esi
jmp 0x4399a5
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0xffffffffffffffff
push edi
push esi
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x20], esi
je 0x4399c1
push edi
call fcn.00429610
pop ecx
mov eax, dword [ebp - 0x1c]
jmp 0x4399d8
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
lea esp, [ebp - 0x34]
call fcn.00429f6b
ret
Function at 0x43afc7
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
cmp eax, ebx
push edi
mov dword [ebp - 0x10], ebx
jne 0x43afe0
or eax, 0xffffffff
jmp 0x43b041
push esi
mov esi, dword [eax]
cmp esi, ebx
mov dword [ebp - 4], esi
je 0x43b03d
push 0x3d
push esi
call fcn.0043b19c
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
je 0x43b03d
cmp esi, eax
je 0x43b03d
xor ecx, ecx
cmp byte [eax + 1], bl
mov eax, dword [0x5489fc]
sete cl
cmp eax, dword [0x548a00]
mov dword [ebp - 8], ecx
jne 0x43b023
mov edi, eax
call fcn.0043af66
mov dword [0x5489fc], eax
cmp eax, ebx
jne 0x43b07c
cmp dword [ebp + 0xc], ebx
je 0x43b045
cmp dword [0x548a04], ebx
je 0x43b045
call fcn.0043a7c9
test eax, eax
je 0x43b07c
or eax, 0xffffffff
pop esi
pop edi
pop ebx
leave
ret
cmp dword [ebp - 8], ebx
je 0x43b04e
xor eax, eax
jmp 0x43b040
push 4
call fcn.004295fe
cmp eax, ebx
pop ecx
mov dword [0x5489fc], eax
je 0x43b03d
mov dword [eax], ebx
cmp dword [0x548a04], ebx
jne 0x43b07c
push 4
call fcn.004295fe
cmp eax, ebx
pop ecx
mov dword [0x548a04], eax
je 0x43b03d
mov dword [eax], ebx
mov edi, dword [ebp - 0xc]
sub edi, dword [ebp - 4]
push dword [ebp - 4]
mov esi, dword [0x5489fc]
call fcn.0043af19
mov edi, eax
cmp edi, ebx
pop ecx
jl 0x43b0dd
cmp dword [esi], ebx
je 0x43b0dd
lea esi, [esi + edi*4]
push dword [esi]
call fcn.00429610
cmp dword [ebp - 8], ebx
pop ecx
jne 0x43b0c0
mov eax, dword [ebp - 4]
mov dword [esi], eax
mov eax, dword [ebp + 8]
mov dword [eax], ebx
jmp 0x43b11e
mov eax, dword [esi + 4]
mov dword [esi], eax
inc edi
add esi, 4
cmp dword [esi], ebx
jne 0x43b0b7
mov eax, edi
shl eax, 2
push eax
push dword [0x5489fc]
call fcn.00429681
cmp eax, ebx
pop ecx
pop ecx
je 0x43b11e
jmp 0x43b119
cmp dword [ebp - 8], ebx
jne 0x43b189
cmp edi, ebx
jge 0x43b0ec
neg edi
lea eax, [edi*4 + 8]
push eax
push dword [0x5489fc]
call fcn.00429681
cmp eax, ebx
pop ecx
pop ecx
je 0x43b03d
mov edx, dword [ebp - 4]
lea ecx, [eax + edi*4]
mov dword [ecx], edx
mov dword [ecx + 4], ebx
mov ecx, dword [ebp + 8]
mov dword [ecx], ebx
mov dword [0x5489fc], eax
cmp dword [ebp + 0xc], ebx
je 0x43b173
push dword [ebp - 4]
call fcn.00429dc0
inc eax
inc eax
push eax
call fcn.004295fe
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
je 0x43b173
push dword [ebp - 4]
push esi
call fcn.0042a1b0
mov eax, esi
sub eax, dword [ebp - 4]
pop ecx
add eax, dword [ebp - 0xc]
pop ecx
mov ecx, dword [ebp - 8]
mov byte [eax], bl
inc eax
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
jne 0x43b16c
or dword [ebp - 0x10], 0xffffffff
push esi
call fcn.00429610
pop ecx
cmp dword [ebp - 8], ebx
je 0x43b181
push dword [ebp - 4]
call fcn.00429610
pop ecx
mov eax, dword [ebp - 0x10]
jmp 0x43b040
push dword [ebp - 4]
call fcn.00429610
mov eax, dword [ebp + 8]
pop ecx
mov dword [eax], ebx
jmp 0x43b04a
Function at 0x10004260
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x10
mov eax, dword [0x100c7070]
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 0x100042a5
xorps xmm0, xmm0
movq qword [esp + 0xc], xmm0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov dword [esp + 0xc], esi
call fcn.10047860
mov dword [esp + 0x10], eax
test esi, esi
jne 0x100042b8
mov ecx, dword [esp + 0x14]
mov eax, edi
pop edi
pop esi
xor ecx, esp
call fcn.10044baf
mov esp, ebp
pop ebp
ret
mov edx, 0x100b88f0
lea ecx, [esp + 0xc]
call fcn.100040a0
int3

Function at 0x10004450
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1a0
mov eax, dword [0x100c7070]
xor eax, esp
mov dword [esp + 0x19c], eax
push esi
push edi
mov esi, ecx
mov eax, 1
lock xadd dword [0x100cafc4], eax
inc eax
mov edi, 0x100cafc8
cmp eax, 1
jne 0x10004495
lea eax, [esp + 0x10]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
xchg dword [edi], eax
cmp byte [ebp + 8], 0
je 0x100044a5
xor eax, eax
lock xadd dword [edi], eax
test eax, eax
jne 0x100044bd
mov ecx, dword [esp + 0x1a4]
mov eax, esi
pop edi
pop esi
xor ecx, esp
call fcn.10044baf
mov esp, ebp
pop ebp
ret 4
xorps xmm0, xmm0
movq qword [esp + 8], xmm0
mov dword [esp + 8], eax
call fcn.10047860
mov edx, str.winsock
mov dword [esp + 0xc], eax
lea ecx, [esp + 8]
call fcn.100040a0
int3
Function at 0x100065f0
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1009b55a
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x100c7070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
lea esi, [edi + 4]
mov dword [esi], 0
mov dword [ebp - 0x14], esi
mov dword [esi + 4], 0
call fcn.1000f5c0
mov dword [esi], eax
mov dword [ebp - 4], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
lea eax, [edi + 0x18]
mov dword [eax + 0x14], 0xf
mov dword [eax + 0x10], 0
cmp dword [eax + 0x14], 0x10
jb 0x10006665
mov eax, dword [eax]
mov byte [eax], 0
mov dword [edi + 0x44], 0xf
mov dword [edi + 0x40], 0
cmp dword [edi + 0x44], 0x10
jb 0x10006681
mov eax, dword [edi + 0x30]
jmp 0x10006684
lea eax, [edi + 0x30]
mov byte [eax], 0
lea esi, [edi + 0x54]
mov byte [ebp - 4], 3
push 0
push 0
mov dword [ebp - 0x14], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.1000f590
mov dword [esi], eax
mov dword [edi + 0x5c], 0
mov dword [edi + 0x60], 0
lea esi, [edi + 0x64]
mov byte [ebp - 4], 5
push 0
push 0
mov dword [ebp - 0x14], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.1000f590
mov dword [esi], eax
mov dword [edi + 0x6c], 0
mov dword [edi + 0x70], 0
lea esi, [edi + 0x74]
mov byte [ebp - 4], 7
push 0
push 0
mov dword [ebp - 0x14], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.1000f560
mov dword [esi], eax
mov dword [edi + 0x7c], 0
mov dword [edi + 0x80], 0
lea esi, [edi + 0x84]
mov byte [ebp - 4], 9
push 0
push 0
mov dword [ebp - 0x14], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.1000f590
mov dword [esi], eax
mov dword [edi + 0x8c], 0
mov dword [edi + 0x90], 0
mov byte [ebp - 4], 0xb
lea ecx, [edi + 0x18]
push 0
push 0x100b86c2
mov byte [edi], 0
mov dword [edi + 0x14], 0x65
mov dword [edi + 0x48], 0
mov dword [edi + 0x4c], 0
call fcn.10002440
push 7
push str.0.0.0.0
lea ecx, [edi + 0x30]
mov dword [edi + 0x94], 5
mov dword [edi + 0x98], 0
mov dword [edi + 0x9c], 0
mov byte [edi + 0x50], 0
call fcn.10002440
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
Function at 0x100117b0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1009c96a
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x100c7070]
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
mov dword [ebp - 0x28], esi
mov edi, dword [ebp + 8]
push 0
mov dword [ebp - 0x2c], esi
call fcn.10031b3a
mov dword [ebp - 4], 0
mov dword [esi + 4], 0
mov byte [esi + 8], 0
mov dword [esi + 0xc], 0
mov byte [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 0
mov word [esi + 0x18], ax
mov dword [esi + 0x1c], eax
mov word [esi + 0x20], ax
mov dword [esi + 0x24], eax
mov byte [esi + 0x28], al
mov dword [esi + 0x2c], eax
mov byte [esi + 0x30], al
mov byte [ebp - 4], 6
test edi, edi
jne 0x10011870
lea eax, [ebp - 0x20]
mov dword [ebp - 0x24], vtable.std::exception.0
push eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], str.bad_locale_name
xorps xmm0, xmm0
mov byte [ebp - 0x14], 1
push eax
movq qword [ebp - 0x20], xmm0
call fcn.1004b933
add esp, 8
mov dword [ebp - 0x24], vtable.std::runtime_error.0
lea eax, [ebp - 0x24]
push 0x100c56b8
push eax
call fcn.1004b9ef
push edi
push esi
call fcn.1003194a
add esp, 8
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.10044baf
mov esp, ebp
pop ebp
ret 4

Function at 0x100125d0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1009ca84
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push esi
push edi
mov eax, dword [0x100c7070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [edi], vtable.boost::detail::thread_data_base.0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [ebp - 4], 0
lea esi, [edi + 0x14]
mov dword [edi + 0xc], 0
mov ecx, esi
mov dword [edi + 0x10], 0
mov dword [ebp - 0x14], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.10011d90
mov dword [esi], eax
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
push 0
push 0
push 1
push 0
mov byte [ebp - 4], 3
call dword [sym.imp.KERNEL32.dll_CreateEventA]
test eax, eax
jne 0x100126a4
push str.boost::thread_resource_error
push 0xb
lea ecx, [ebp - 0x40]
call fcn.10003c70
mov dword [ebp - 0x40], vtable.boost::thread_resource_error.0
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 4
push eax
call fcn.10004760
mov dword [edi + 0x34], eax
mov eax, edi
mov byte [edi + 0x38], 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10013e00
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1009cd00
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x100c7070]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov ebx, dword [ebp + 8]
lea eax, [edi + 0x18]
xor edx, edx
lock xadd dword [eax], edx
test edx, edx
jne 0x10013e57
call fcn.10014010
call fcn.10047860
mov dword [ebx + 4], eax
xor eax, eax
mov dword [ebx], 0
jmp 0x10013ee9
mov dword [ebp - 0x18], 0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x18]
push dword [0x100cb118]
xorps xmm0, xmm0
mov dword [ebp - 0x1c], 0
movq qword [ebp - 0x24], xmm0
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x24]
push eax
push dword [0x100cb118]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push ebx
push ecx
mov ecx, edi
mov byte [ebp - 4], 1
xor esi, esi
call fcn.10013b40
test eax, eax
je 0x10013ec8
nop
cmp esi, 0xffffffff
lea eax, [esi + 1]
push ebx
cmove eax, esi
push ecx
mov ecx, edi
mov esi, eax
call fcn.10013b40
test eax, eax
jne 0x10013eb0
push dword [ebp - 0x1c]
push dword [0x100cb118]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x10013ee7
push ecx
call fcn.10044bf3
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.10044baf
mov esp, ebp
pop ebp
ret 4

Function at 0x100141e0
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x100c7070]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push 0xffffffffffffffff
push 0
mov eax, dword [esi + 8]
mov dword [ebp - 0xc], eax
mov eax, dword [esi + 4]
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, 0x100caff8
lock xadd dword [ecx], eax
push 0
push dword [esi + 4]
test eax, eax
je 0x10014241
call dword [sym.imp.KERNEL32.dll_TerminateThread]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10044baf
mov esp, ebp
pop ebp
ret
push fcn.10003040
call dword [sym.imp.KERNEL32.dll_QueueUserAPC]
push 0xffffffffffffffff
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.10044baf
mov esp, ebp
pop ebp
ret
Function at 0x100145c0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1009cdcf
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x100c7070]
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 eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [ebp - 0x1c], edi
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], 0
mov dword [ebp - 4], 0
mov dword [edi], vtable.boost::asio::detail::win_iocp_io_service.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.10014440
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.100144f0
xorps xmm0, xmm0
mov esi, eax
movq qword [ebp - 0x18], xmm0
call fcn.10047860
xor ecx, ecx
mov dword [ebp - 0x14], eax
test esi, esi
mov dword [ebp - 0x18], esi
mov eax, fcn.100039a0
cmove eax, ecx
test eax, eax
je 0x1001469c
mov edx, str.mutex
lea ecx, [ebp - 0x18]
call fcn.100040a0
mov dword [edi + 0x50], 0
mov dword [edi + 0x54], 0
mov dword [edi + 0x58], 0
or eax, 0xffffffff
mov byte [ebp - 4], 5
cmp ebx, 0xffffffff
cmovb eax, ebx
push eax
push 0
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
mov dword [edi + 0x14], eax
test eax, eax
jne 0x100146fe
xorps xmm0, xmm0
movq qword [ebp - 0x18], xmm0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.10047860
mov dword [ebp - 0x14], eax
test esi, esi
je 0x100146fe
mov edx, str.iocp
lea ecx, [ebp - 0x18]
call fcn.100040a0
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.10044baf
mov esp, ebp
pop ebp
ret 8
Function at 0x10015060
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1009cfe8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x100c7070]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [ebp + 8]
lea eax, [ebp + 0xc]
push eax
call fcn.10017790
add esp, 4
test eax, eax
jle 0x10015124
lea esi, [eax + 1]
push esi
call fcn.10098332
add esp, 4
mov edi, eax
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 8]
push esi
push edi
call fcn.10012d70
add esp, 0x14
mov dword [ebp - 0x18], 0xf
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
push esi
push edi
call fcn.10002440
push 2
push 0x100b95d4
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 0
call fcn.10004630
cmp dword [ebp - 0x18], 0x10
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push edi
call fcn.100452a3
mov eax, dword [ebp - 0x18]
add esp, 4
cmp eax, 0x10
jb 0x10015124
inc eax
lea ecx, [ebp - 0x2c]
push eax
push dword [ebp - 0x2c]
call fcn.10002840
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.10044baf
mov esp, ebp
pop ebp
ret