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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x626e68
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x6d45e0]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
push edi
mov eax, dword [0x6d45e0]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [ebx + 0x40], 0
je 0x4458a4
cmp byte [ebx + 0x45], 0
je 0x4458a4
mov eax, dword [ebx]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
jne 0x4457b0
xor al, al
jmp 0x4458a6
mov ecx, 0xf
mov byte [esp + 0x18], 0
xorps xmm0, xmm0
mov dword [esp + 0x2c], ecx
cmp ecx, 0x10
movq qword [esp + 0x18], xmm0
lea eax, [esp + 0x18]
mov dword [esp + 0x28], 8
cmovae eax, dword [esp + 0x18]
mov byte [eax + 8], 0
mov dword [esp + 0x40], 0
jmp 0x4457f0
cmp dword [esp + 0x2c], 0x10
lea eax, [esp + 0x14]
mov ecx, dword [ebx + 0x40]
lea edi, [esp + 0x18]
cmovae edi, dword [esp + 0x18]
lea esi, [esp + 0x18]
cmovae esi, dword [esp + 0x18]
push eax
mov eax, dword [esp + 0x2c]
mov edx, dword [ecx]
add eax, edi
push eax
push esi
lea eax, [ebx + 0x48]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x445831
dec eax
je 0x445835
sub eax, 2
je 0x44588b
xor bl, bl
jmp 0x44588d
mov byte [ebx + 0x45], 0
mov ecx, dword [esp + 0x2c]
lea eax, [esp + 0x18]
mov edx, dword [esp + 0x18]
cmp ecx, 0x10
mov esi, dword [esp + 0x14]
cmovae eax, edx
sub esi, eax
je 0x44586c
push dword [ebx + 0x50]
cmp ecx, 0x10
lea eax, [esp + 0x1c]
push esi
cmovae eax, edx
push 1
push eax
call fcn.004c5e6c
add esp, 0x10
cmp esi, eax
jne 0x44582d
cmp byte [ebx + 0x45], 0
je 0x44588b
test esi, esi
jne 0x4457f0
push esi
push 8
lea ecx, [esp + 0x20]
call fcn.00405eb0
jmp 0x4457f0
mov bl, 1
cmp dword [esp + 0x2c], 0x10
jb 0x4458a0
push dword [esp + 0x18]
call fcn.004c41b0
add esp, 4
mov al, bl
jmp 0x4458a6
mov al, 1
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.004c392d
mov esp, ebp
pop ebp
ret
Function at 0x464040
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x62aa6b
mov eax, dword fs:[0]
push eax
sub esp, 0x8c
mov eax, dword [0x6d45e0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push str.DllRes_d.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
je 0x464085
push eax
call fcn.005cf980
add esp, 4
push 4
call fcn.005cf9d6
push 0x84
lea eax, [ebp - 0x94]
push 0
push eax
call fcn.004cf9d0
lea eax, [ebp - 0x94]
push eax
call fcn.005cb4d0
add esp, 0x14
mov dword [ebp - 4], 0
call fcn.005cb656
dec eax
cmp eax, 3
ja case.default.0x4640c4
jmp dword [eax*4 + 0x464244]
push str.skin_
lea ecx, [ebp - 0x94]
call fcn.005d150f
lea ecx, [ebp - 0x94]
call fcn.00417110
push eax
call fcn.005cf98d
add esp, 4
push 0
push ecx
mov eax, esp
mov dword [eax], str.res.xml
call fcn.00464870
mov ecx, eax
call fcn.005d23e7
jmp case.default.0x4640c4
push str.skin_
lea ecx, [ebp - 0x94]
call fcn.005d150f
lea ecx, [ebp - 0x94]
call fcn.00417110
push eax
call fcn.005cf98d
add esp, 4
push 0x69ed7c
push ecx
mov eax, esp
mov dword [eax], str.IDR_RES
call fcn.00464870
mov ecx, eax
call fcn.005d23e7
jmp case.default.0x4640c4
push str.skin_
lea ecx, [ebp - 0x94]
call fcn.005d150f
lea ecx, [ebp - 0x94]
call fcn.00417110
push eax
call fcn.005cf98d
push 1
push str.skin.zip
call fcn.005cfa47
add esp, 0xc
jmp 0x4640ef
push str.skin_
lea ecx, [ebp - 0x94]
call fcn.005d150f
lea ecx, [ebp - 0x94]
call fcn.00417110
push eax
call fcn.005cf98d
add esp, 4
push str.ZIPRES
push str.IDR_ZIPRES
call fcn.005cb641
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je case.default.0x4640c4
push esi
call fcn.005cb641
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x46420f
push esi
call fcn.005cb641
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
test eax, eax
je 0x46420f
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
call fcn.005cf9e3
add esp, 8
push 0
push ecx
mov eax, esp
mov dword [eax], str.res.xml
call fcn.00464870
mov ecx, eax
call fcn.005d23e7
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
lea ecx, [ebp - 0x94]
mov dword [ebp - 4], 0xffffffff
call fcn.005d1349
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.004c392d
mov esp, ebp
pop ebp
ret
Function at 0x464fa0
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xf4
mov eax, dword [0x6d45e0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0xf0]
mov dword [ebp - 0xf4], 0
push eax
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
push dword [ebp - 0xec]
lea eax, [ebp - 0xd0]
push 0x69f038
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0xd0]
mov ecx, esi
push eax
call fcn.004167e0
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004c392d
mov esp, ebp
pop ebp
ret

Function at 0x465510
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x62ad2c
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x6d45e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
call fcn.00416a10
push 0
mov dword [ebp - 4], 0
lea esi, [edi + 0x474]
push 0
push 1
push 0
mov dword [edi], vtable.CMainWindow.4.0
mov dword [edi + 0x10], vtable.CMainWindow.5.0
mov dword [edi + 0x20], vtable.CMainWindow.2.0
mov dword [edi + 0x24], vtable.CMainWindow.3.0
mov dword [edi + 0x28], vtable.CMainWindow.0
mov dword [edi + 0x2c], vtable.CMainWindow.1.0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push esi
push 0
push esi
push 0x408940
push 0
push 0
mov dword [esi + 8], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 4], eax
lea ecx, [edi + 0x480]
mov byte [ebp - 4], 1
call fcn.005d24d4
mov byte [ebp - 4], 2
call fcn.00405030
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x4655cb
push 0x80004005
call fcn.00404ef0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi + 0x85c], eax
mov byte [ebp - 4], 3
call fcn.00405030
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x4655fb
push 0x80004005
call fcn.00404ef0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi + 0x860], eax
mov dword [edi + 0x878], 0xf
mov dword [edi + 0x874], 0
mov byte [edi + 0x864], 0
mov byte [ebp - 4], 5
call fcn.00405030
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x465646
push 0x80004005
call fcn.00404ef0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi + 0x87c], eax
mov byte [ebp - 4], 6
mov dword [edi + 0x884], 0
mov dword [edi + 0x888], 0
call fcn.00434670
mov dword [edi + 0x884], eax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4686d0
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x62b2c8
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x6d45e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor esi, esi
mov dword [ebp - 4], 0
push esi
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x4687b6
call dword [sym.imp.USER32.dll_EmptyClipboard]
test eax, eax
je 0x4687b6
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
lea edi, [eax*2 + 2]
push edi
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x4687a1
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, dword [ebp + 8]
mov ebx, eax
add ecx, 0xfffffff0
cmp dword [ecx + 0xc], 1
jle 0x46875d
push dword [ecx + 4]
lea ecx, [ebp + 8]
call fcn.00406110
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
dec dword [ecx + 0xc]
jne 0x468769
mov dword [ecx + 0xc], 0xffffffff
push edi
push dword [ebp + 8]
push edi
push ebx
call fcn.004c4411
mov ecx, dword [ebp + 8]
add esp, 0x10
mov eax, dword [ecx - 4]
test eax, eax
jns 0x46878d
inc eax
mov edx, 1
cmove eax, edx
mov dword [ecx - 4], eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
test eax, eax
jne 0x4687ab
call dword [sym.imp.USER32.dll_CloseClipboard]
xor esi, esi
jmp 0x4687b6
call dword [sym.imp.USER32.dll_CloseClipboard]
mov esi, 1
mov dword [ebp - 4], 0xffffffff
or ecx, 0xffffffff
mov edi, dword [ebp + 8]
add edi, 0xfffffff0
lea eax, [edi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4687da
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
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 4
Function at 0x468f50
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
push 0xffffffffffffffff
push 0x62b408
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x6d45e0]
xor eax, esp
mov dword [esp + 0x64], eax
push esi
push edi
mov eax, dword [0x6d45e0]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
xorps xmm0, xmm0
movq qword [esp + 0x54], xmm0
movdqa xmmword [esp + 0x44], xmm0
mov dword [esp + 0x54], 0
mov ecx, dword [eax + 4]
mov edi, dword [eax]
mov eax, dword [eax + 8]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], eax
push 0x28
mov dword [esp + 0x84], 0
call fcn.004c4200
mov esi, eax
add esp, 4
test esi, esi
jne 0x468fd0
call fcn.0058cabe
mov eax, dword [esp + 0x1c]
mov dword [esi], vtable.._AV___Func_impl_U___Callable_obj_V___Bind__0A_XV___Bind__00XU___Pmf_wrap_P8CMainWindow__AEXXZXV1____V_std__QAVCMainWindow___std_____V_std___0A__std__V__allocator_V___Func_class_X___V_std___2_X___V_std__.0
mov dword [esi + 0xc], eax
mov eax, dword [esp + 0x18]
mov dword [esi + 8], edi
mov dword [esi + 0x10], eax
mov dword [esp + 0x54], esi
mov dword [esp + 0x80], 1
lea eax, [esp + 0x2c]
mov dword [esp + 0x24], 0xbb8
mov dword [esp + 0x18], eax
mov dword [esp + 0x3c], 0
lea eax, [esp + 0x44]
mov byte [esp + 0x80], 2
cmp esi, eax
mov eax, dword [esi]
mov eax, dword [eax]
jne 0x469029
lea ecx, [esp + 0x2c]
push ecx
jmp 0x46902b
push 0
mov ecx, esi
call eax
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x24]
mov byte [esp + 0x80], 3
push eax
lea ecx, [esp + 0x20]
call fcn.00469180
mov edi, eax
mov byte [esp + 0x80], 4
cmp dword [edi + 4], 0
jne 0x469063
push 1
call fcn.0058d5e9
add esp, 4
push dword [edi + 4]
push dword [edi]
call fcn.0058d9d9
add esp, 8
test eax, eax
je 0x46907d
push eax
call fcn.0058d5bc
add esp, 4
mov dword [edi + 4], 0
mov byte [esp + 0x80], 3
cmp dword [esp + 0x20], 0
je 0x469098
call fcn.004c861d
mov byte [esp + 0x80], 1
mov ecx, dword [esp + 0x3c]
test ecx, ecx
je 0x4690c2
mov edx, dword [ecx]
lea eax, [esp + 0x2c]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
mov dword [esp + 0x3c], 0
lea eax, [esp + 0x44]
mov dword [esp + 0x80], 0xffffffff
mov edx, dword [esi]
cmp esi, eax
mov ecx, esi
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x64]
xor ecx, esp
call fcn.004c392d
mov esp, ebp
pop ebp
ret 8
Function at 0x46a7e0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x62b60b
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x6d45e0]
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 dword [ebp - 0x18], ecx
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
push 0x7f0
mov dword [ebp - 0x1c], eax
call fcn.004c4200
mov esi, eax
add esp, 4
mov dword [ebp - 0x20], esi
mov dword [ebp - 4], 0
test esi, esi
je 0x46a882
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 1
cmp edi, 0x7d0
ja 0x46a871
lea eax, [esi + 0x20]
mov dword [esi + 0x18], 0x7d0
mov dword [esi + 0x1c], eax
jmp 0x46a884
push edi
mov dword [esi + 0x18], edi
call fcn.004c42fc
add esp, 4
mov dword [esi + 0x1c], eax
jmp 0x46a884
xor esi, esi
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x46a8fc
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x46a8fc
push edi
push dword [ebp - 0x1c]
push eax
call fcn.004cf380
lea ecx, [esi + 0x18]
add esp, 0xc
mov dword [ecx], edi
mov eax, 1
mov dword [ebp - 0x14], 0
lea edi, [ebx + 0x54]
lock xadd dword [edi], eax
push 0
push esi
push 0
lea eax, [ebp - 0x14]
push eax
push 1
push ecx
push dword [ebx + 0x4c]
call dword [sym.imp.WS2_32.dll_WSASend]
cmp eax, 0xffffffff
jne 0x46a900
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
je 0x46a900
push ecx
mov ecx, esi
call fcn.0046a940
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
jne 0x46a8fc
mov eax, dword [ebx]
mov ecx, ebx
push 1
call dword [eax]
xor eax, eax
jmp 0x46a914
mov ecx, dword [ebp - 0x18]
mov edx, 1
add ecx, 0x50
lock xadd dword [ecx], edx
mov eax, 1
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.004c392d
mov esp, ebp
pop ebp
ret 0xc
Function at 0x46a970
Capabilities:
Create tcp socket
Create thread
Create udp socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x6d45e0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0
push 0
push 0
push 0
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x20], eax
test eax, eax
jne 0x46a9a9
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004c392d
mov esp, ebp
pop ebp
ret
push 1
push 0
push 0
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_WSASocketW]
mov dword [esi + 0x24], eax
cmp eax, 0xffffffff
je 0x46a998
call dword [sym.imp.WS2_32.dll_WSACreateEvent]
mov dword [esi + 0x1c], eax
test eax, eax
je 0x46a998
push 8
push eax
push dword [esi + 0x24]
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
cmp eax, 0xffffffff
je 0x46a998
mov eax, 2
mov word [ebp - 0x14], ax
movzx eax, word [esi + 0x34]
push eax
call dword [sym.imp.WS2_32.dll_htons]
cmp dword [esi + 0x4c], 0x10
mov word [ebp - 0x12], ax
lea eax, [esi + 0x38]
jb 0x46aa04
mov eax, dword [eax]
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x14]
push 0x10
push eax
push dword [esi + 0x24]
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x46aa45
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x10
lea eax, [ebp - 0x14]
push eax
push dword [esi + 0x24]
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x46a998
push SysReAllocString
push dword [esi + 0x24]
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
je 0x46a998
push 0
push 0
push esi
push 0x46ab50
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [ebp - 4]
mov dword [esi + 0x18], eax
xor ecx, ebp
mov eax, 1
pop esi
call fcn.004c392d
mov esp, ebp
pop ebp
ret

Function at 0x46aa90
Capabilities:
Create thread
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x6d45e0]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
push 0
push 0
push 0
push 0xffffffffffffffff
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
mov dword [edi + 0x30], eax
test eax, eax
jne 0x46aac9
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004c392d
mov esp, ebp
pop ebp
ret
xorps xmm0, xmm0
mov dword [ebp - 0x28], 0
lea eax, [ebp - 0x28]
push eax
movdqu xmmword [ebp - 0x24], xmm0
movdqu xmmword [ebp - 0x14], xmm0
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x14]
push 0
add eax, eax
push eax
push 0
push 0
mov dword [edi + 0x2c], eax
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreW]
mov dword [edi + 0x28], eax
test eax, eax
je 0x46aab8
push esi
xor esi, esi
cmp dword [edi + 0x2c], esi
jbe 0x46ab30
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CreateThread]
push 0
push 0
push edi
push 0x46adf0
push 0
push 0
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, dword [edi + 0x2c]
jb 0x46ab12
pop ebx
mov ecx, dword [ebp - 4]
mov eax, 1
pop esi
xor ecx, ebp
pop edi
call fcn.004c392d
mov esp, ebp
pop ebp
ret
Function at 0x46ff90
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push dword [0x6f633c]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, dword [ebp + 8]
test eax, eax
je 0x46ffd2
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x46ffd2
mov eax, dword [ecx]
test eax, eax
je 0x46ffd2
mov dword [ecx], 0
mov dl, byte [eax]
movzx ecx, dl
cmp ecx, ebx
jb 0x46ffc9
mov byte [eax + ebx], dl
pop ebx
pop ebp
ret
push eax
call fcn.004c41b0
add esp, 4
lea eax, [ebx + 1]
push eax
call fcn.004c4200
add esp, 4
mov ecx, eax
cmp ebx, 0xff
ja 0x46fff3
movzx eax, bl
mov byte [ecx + ebx], al
mov eax, ecx
pop ebx
pop ebp
ret
xor eax, eax
mov byte [ecx + ebx], al
mov eax, ecx
pop ebx
pop ebp
ret

Function at 0x470000
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push dword [0x6f633c]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x470018
mov edx, dword [eax + 4]
jmp 0x47001a
xor edx, edx
mov eax, dword [ebp + 0xc]
cmp eax, 0xff
ja 0x470039
test edx, edx
je 0x470039
cmp dword [edx], 0
jne 0x470039
mov ecx, dword [ebp + 8]
mov al, byte [ecx + eax]
mov byte [ecx], al
mov dword [edx], ecx
pop ebp
ret
push dword [ebp + 8]
call fcn.004c41b0
add esp, 4
pop ebp
ret

Function at 0x470260
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x6d45e0]
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, 0x6f62fc
lock xadd dword [ecx], eax
push 0
push dword [esi + 4]
test eax, eax
je 0x4702c1
call dword [sym.imp.KERNEL32.dll_TerminateThread]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004c392d
mov esp, ebp
pop ebp
ret
push fcn.00404e70
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.004c392d
mov esp, ebp
pop ebp
ret
Function at 0x4702f0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
mov eax, dword [0x6d45e0]
xor eax, esp
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 0
push 0
push 1
mov esi, ecx
mov dword [esp + 0x20], eax
push 0
mov dword [esp + 0x20], esi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov edi, eax
mov dword [ebx + 4], edi
test edi, edi
jne 0x470360
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebx]
mov ecx, ebx
push 1
mov esi, eax
call dword [edx]
xorps xmm0, xmm0
movq qword [esp + 0x18], xmm0
mov dword [esp + 0x18], esi
call fcn.005acf90
mov dword [esp + 0x1c], eax
test esi, esi
jne 0x470445
mov esi, dword [esp + 0x10]
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 0x4703ac
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebx]
mov ecx, ebx
push 1
mov esi, eax
call dword [edx]
xorps xmm0, xmm0
movq qword [esp + 0x18], xmm0
mov dword [esp + 0x18], esi
call fcn.005acf90
mov dword [esp + 0x1c], eax
test esi, esi
jne 0x470453
mov esi, dword [esp + 0x10]
lea eax, [esp + 0x20]
mov dword [esp + 0x20], 0
push eax
push 0
push ebx
push 0x470470
push dword [esp + 0x24]
push 0
call fcn.004cb926
add esp, 0x18
mov dword [esi + 4], eax
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x470421
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebx]
mov ecx, ebx
push 1
mov dword [esp + 0x18], eax
call dword [edx]
test edi, edi
je 0x4703f5
push edi
call esi
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 8]
test eax, eax
je 0x470403
push eax
call esi
mov ebx, dword [esp + 0x14]
xorps xmm0, xmm0
movq qword [esp + 0x18], xmm0
mov dword [esp + 0x18], ebx
call fcn.005acf90
mov dword [esp + 0x1c], eax
test ebx, ebx
jne 0x470461
test edi, edi
je 0x470431
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
call esi
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004c392d
mov esp, ebp
pop ebp
ret 8
mov edx, str.thread.entry_event
lea ecx, [esp + 0x18]
call fcn.00417c50
mov edx, str.thread.exit_event
lea ecx, [esp + 0x18]
call fcn.00417c50
mov edx, str.thread
lea ecx, [esp + 0x18]
call fcn.00417c50
int3
Function at 0x470690
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x62c0af
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x6d45e0]
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 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
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov byte [ebp - 4], 3
lea ecx, [edi + 0x34]
mov dword [edi + 0x30], 0
call fcn.00417e20
xorps xmm0, xmm0
mov esi, eax
movq qword [ebp - 0x18], xmm0
call fcn.005acf90
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], eax
test esi, esi
je 0x470755
mov edx, str.mutex
lea ecx, [ebp - 0x18]
call fcn.00417c50
mov dword [edi + 0x4c], 0
mov dword [edi + 0x50], 0
mov dword [edi + 0x54], 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 0x4707b7
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.005acf90
mov dword [ebp - 0x14], eax
test esi, esi
je 0x4707b7
mov edx, str.iocp
lea ecx, [ebp - 0x18]
call fcn.00417c50
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.004c392d
mov esp, ebp
pop ebp
ret 8