joyce8/EMBER2024-capa huggingface dataset:
Function at 0x463f0b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov eax, ebx
push edi
mov edi, ecx
shr eax, 0x10
test ax, ax
mov dword [edi + 0x40], ebx
jne 0x463f2d
cmp dword [edi + 0x3c], 0
jne 0x463f2d
movzx eax, bx
mov dword [edi + 0x3c], eax
call fcn.0046f15d
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
mov ecx, edi
push dword [esp + 0x18]
push eax
call fcn.00463f5a
pop edi
pop esi
pop ebx
ret 8

Function at 0x466aa1
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x466ae3
call fcn.0046f15d
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x466ae3
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x466ada
xor eax, eax
jmp 0x466aeb
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00466af1
pop edi
pop esi
pop ebx
ret 4

Function at 0x46d7fe
Capabilities:
Create http request

Disassembly:
mov eax, 0x475514
call fcn.00433f9c
push ecx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
mov eax, dword [ebp + 0xc]
and dword [ebp - 4], 0
and dword [esi + 0x10], 0
and dword [esi + 0xc], 0
mov dword [esi + 4], eax
mov eax, dword [ebp + 8]
test eax, eax
mov dword [esi], vtable.CInternetSession.0
jne 0x46d836
call fcn.0046f15d
mov eax, dword [eax + 0x10]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
call dword [sym.imp.WININET.dll_InternetOpenA]
test eax, eax
mov dword [esi + 8], eax
jne 0x46d85b
push eax
push dword [esi + 4]
call fcn.0046e4f1
jmp 0x46d867
push esi
push eax
mov ecx, 0x492848
call fcn.0046d878
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret 0x18
Function at 0x46d9d8
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov eax, 0x47554f
call fcn.00433f9c
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
call fcn.0046a081
mov eax, dword [0x48c6e0]
lea ebx, [esi + 0x24]
xor edi, edi
mov dword [ebp - 4], edi
mov dword [ebx], eax
mov eax, dword [ebp + 0x10]
mov dword [esi], vtable.CInternetFile.0
mov ecx, 0x492848
mov byte [ebp - 4], 1
push dword [eax + 0xc]
push dword [ebp + 8]
call fcn.0046d878
push dword [ebp + 0xc]
lea ecx, [esi + 0xc]
call fcn.00468838
mov ecx, dword [ebp + 0x10]
mov eax, dword [ecx + 8]
mov dword [esi + 0x1c], eax
lea eax, [ebp + 0x10]
push eax
call fcn.0042bf9d
push eax
mov ecx, ebx
mov byte [ebp - 4], 2
call fcn.004687e8
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 1
call fcn.004686af
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x14], eax
mov eax, dword [ebp + 0x14]
mov dword [esi + 0x18], eax
mov dword [esi + 0x3c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x40], edi
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x10

Function at 0x46f6f3
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0x46f7a3
mov ecx, 0x492898
call fcn.0046fe56
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov esi, eax
cmp word [esi + 8], 0
jne 0x46f781
push str.COMCTL32.DLL
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
mov dword [ebp + 0xc], eax
je 0x46f75f
mov ecx, dword [ebp + 0x10]
push 5
neg ecx
sbb ecx, ecx
and ecx, 0xe
add ecx, 0x3ee
movzx ecx, cx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x46f75f
push ebx
push edi
push eax
call fcn.0046987b
add esp, 0xc
mov eax, dword [edi]
mov eax, dword [eax - 8]
inc eax
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [esi + 4], eax
push dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ax, word [ebx]
mov word [esi + 8], ax
push dword [esi + 4]
mov ecx, edi
call fcn.00468838
mov si, word [esi + 8]
xor eax, eax
mov word [ebx], si
cmp si, 0xffff
pop edi
pop esi
setne al
pop ebx
pop ebp
ret 0xc
Function at 0x40a340
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x10
mov eax, dword [0x4e0138]
xor eax, esp
mov dword [esp + 0xc], eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40a3c1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword fs:[0x2c]
mov edi, eax
mov edx, dword [ecx]
mov ecx, dword [0x4e33a4]
cmp ecx, dword [edx + 4]
jle 0x40a3b1
push 0x4e33a4
call fcn.004882de
add esp, 4
cmp dword [0x4e33a4], esi
jne 0x40a3b1
push 0x4bc0b0
call fcn.004885ae
add esp, 4
push 0x4e33a4
call fcn.0048828d
add esp, 4
mov dword [esp + 0xc], edi
mov dword [esp + 0x10], 0x4e0be8
test edi, edi
jne 0x40a3d4
mov ecx, dword [esp + 0x14]
mov eax, esi
pop edi
pop esi
xor ecx, esp
call fcn.0048824f
mov esp, ebp
pop ebp
ret
mov edx, 0x4c67dc
lea ecx, [esp + 0xc]
call fcn.0040a270
int3

Function at 0x40b000
Capabilities:
Create process on windows
Self delete

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x370
mov eax, dword [0x4e0138]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x44
lea eax, [ebp - 0x360]
push 0
push eax
call fcn.0048f850
add esp, 0xc
lea eax, [ebp - 0x110]
xorps xmm0, xmm0
movaps xmmword [ebp - 0x370], xmm0
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x110]
push eax
push str.cmd.exe__C_ping_1.1.1.1__n_1__w_3000___nul__del__f__q___s_
lea eax, [ebp - 0x318]
push 0x208
push eax
call fcn.00408d90
add esp, 0x10
lea eax, [ebp - 0x370]
push eax
lea eax, [ebp - 0x360]
push eax
push 0
push 0
push 0x8000000
push 0
push 0
push 0
lea eax, [ebp - 0x318]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
push dword [ebp - 0x36c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x370]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048824f
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret

Function at 0x40b0d0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x4e0138]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x58]
mov dword [ebp - 0x48], 0x44
push eax
lea eax, [ebp - 0x48]
xorps xmm0, xmm0
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push ecx
movups xmmword [ebp - 0x58], xmm0
movlpd qword [ebp - 0x44], xmm0
movlpd qword [ebp - 0x3c], xmm0
movlpd qword [ebp - 0x34], xmm0
movlpd qword [ebp - 0x2c], xmm0
movlpd qword [ebp - 0x24], xmm0
movlpd qword [ebp - 0x1c], xmm0
movlpd qword [ebp - 0x14], xmm0
movlpd qword [ebp - 0xc], xmm0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x40b159
push dword [ebp - 0x54]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x58]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048824f
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
xor ecx, ebp
call fcn.0048824f
mov esp, ebp
pop ebp
ret
Function at 0x40d950
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b36ed
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x4e0138]
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 dword [ebp - 0x10], esp
mov dword [ebp - 0x30], ecx
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 4], 0
mov eax, esi
mov byte [ebp - 4], 1
cmp dword [esi + 0x14], 0x10
mov dword [ebp - 0x20], 0
jb 0x40d9b3
mov eax, dword [esi]
lea ecx, [ebp - 0x20]
push ecx
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeA]
mov ebx, eax
push ebx
call fcn.004885d1
add esp, 4
mov edi, eax
push ebx
push 0
push edi
call fcn.0048f850
add esp, 0xc
mov dword [ebp - 0x18], edi
cmp dword [esi + 0x14], 0x10
jb 0x40d9e2
mov esi, dword [esi]
push edi
push ebx
push 0
push esi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoA]
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x24]
push eax
push 0x4c6d04
push edi
call dword [sym.imp.VERSION.dll_VerQueryValueA]
mov edx, dword [ebp - 0x24]
test edx, edx
je 0x40dab0
cmp dword [ebp - 0x1c], 0
je 0x40dab0
mov ecx, dword [edx + 8]
mov eax, ecx
mov ebx, dword [ebp - 0x28]
mov edx, dword [edx + 0xc]
shr eax, 0x10
mov esi, dword [ebp - 0x30]
mov dword [ebx], eax
add esi, 0x284
movzx eax, cx
mov dword [ebx + 4], eax
mov eax, edx
shr eax, 0x10
mov dword [ebx + 8], eax
movzx eax, dx
mov edx, dword [ebp - 0x2c]
mov dword [ebx + 0xc], eax
mov dword [edx], 0
imul ecx, dword [ebx], 0x64
mov dword [edx], ecx
mov eax, dword [ebx + 4]
add eax, ecx
imul ecx, eax, 0x64
mov dword [edx], ecx
mov eax, dword [ebx + 8]
add eax, ecx
imul ecx, eax, 0x64
mov dword [edx], ecx
mov eax, dword [ebx + 0xc]
add eax, ecx
mov dword [edx], eax
push dword [ebx + 0xc]
push dword [ebx + 8]
push dword [ebx + 4]
push dword [ebx]
push str.2Current_version_of_5Tiny6Rcon_2is_5_d._d._d._d_n
push 0x200
push esi
call fcn.00408d90
add esp, 0x1c
mov edx, esi
push 1
push 1
push ecx
mov ecx, dword [0x4e3440]
call fcn.004600e0
add esp, 0xc
test edi, edi
je 0x40daac
push edi
call fcn.0048825d
add esp, 4
mov al, 1
jmp 0x40dacf
test edi, edi
je 0x40dacd
push edi
jmp 0x40dac5
call fcn.0048825d
add esp, 4
xor al, al
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.0048824f
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40ee60
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 0x40ee92
jl 0x40ee85
test ecx, ecx
jne 0x40ee92
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 0x40ef52
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], eax
mov ecx, ebx
call fcn.00411040
mov esi, eax
mov eax, edx
mov dword [esp + 0x14], eax
test eax, eax
jl 0x40eefe
jg 0x40eebd
test esi, esi
je 0x40eefe
mov ecx, dword [esp + 0xc]
cmp ecx, eax
jg 0x40eed5
mov eax, dword [esp + 0x10]
jl 0x40eecf
cmp eax, esi
jae 0x40eed5
mov esi, eax
mov dword [esp + 0x14], ecx
mov eax, dword [ebx + 0x1c]
push esi
push dword [eax]
push edi
call fcn.0048f2d0
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 0x40ef1f
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x1c]
mov edx, dword [esp + 0xc]
cmp eax, 0xffffffff
je 0x40ef3b
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 0x40eea4
jl 0x40ef3b
test ecx, ecx
jne 0x40eea4
mov eax, dword [ebp + 0xc]
sub eax, dword [esp + 0x10]
mov esi, dword [ebp + 0x10]
sbb esi, edx
mov edx, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x1c]
lea esi, [ebx + 0x2c]
mov edi, ecx
mov edx, dword [eax]
test edx, edx
je 0x40ef90
mov eax, dword [esi]
mov eax, dword [eax]
test eax, eax
je 0x40ef90
cmp eax, ecx
mov esi, ecx
cmovb esi, eax
push esi
push edx
push dword [esp + 0x14]
call fcn.0048f2d0
mov eax, dword [ebx + 0x2c]
sub edi, esi
add dword [esp + 0x18], esi
add esp, 0xc
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
lea esi, [ebx + 0x2c]
cmp dword [ebx + 0x4c], 0
je 0x40eff9
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x40efb6
mov eax, dword [ebx + 0xc]
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x50]
sub edx, ecx
mov dword [eax], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi]
mov dword [eax], edx
mov esi, dword [esp + 0xc]
cmp edi, 0xfff
jbe 0x40efe4
push dword [ebx + 0x4c]
push 0xfff
push 1
push esi
call fcn.00499ca6
add esp, 0x10
add esi, eax
sub edi, eax
cmp eax, 0xfff
jne 0x40eff9
cmp edi, eax
ja 0x40efc2
test edi, edi
je 0x40eff9
push dword [ebx + 0x4c]
push edi
push 1
push esi
call fcn.00499ca6
add esp, 0x10
sub edi, eax
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 0x40fab0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1a4
mov eax, dword [0x4e0138]
xor eax, esp
mov dword [esp + 0x1a0], eax
push ebx
push esi
push edi
mov edi, ecx
mov eax, 1
lock xadd dword [0x4e33d0], eax
inc eax
mov ebx, 0x4e33d4
cmp eax, 1
jne 0x40faf6
lea eax, [esp + 0x18]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
xchg dword [ebx], eax
cmp byte [ebp + 8], 0
je 0x40fb06
xor esi, esi
lock xadd dword [ebx], esi
test esi, esi
jne 0x40fb1f
mov ecx, dword [esp + 0x1ac]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0048824f
mov esp, ebp
pop ebp
ret 4
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov eax, dword [0x4e33a4]
cmp eax, dword [ecx + 4]
jle 0x40fb64
push 0x4e33a4
call fcn.004882de
add esp, 4
cmp dword [0x4e33a4], 0xffffffff
jne 0x40fb64
push 0x4bc0b0
call fcn.004885ae
add esp, 4
push 0x4e33a4
call fcn.0048828d
add esp, 4
mov edx, str.winsock
mov dword [esp + 0x10], esi
lea ecx, [esp + 0x10]
mov dword [esp + 0x14], 0x4e0be8
call fcn.0040a270
int3

Function at 0x4116e0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b3b40
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x4e0138]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 8
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 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 dword [edi + 0x30], 0
call fcn.00488342
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.0048615f
add esp, 8
mov dword [esi + 4], eax
mov ecx, edi
mov dword [edi + 0x34], esi
call fcn.00411680
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 0x412dd0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
mov edx, 0x811c9dc5
push edi
mov edi, dword [ebp + 8]
mov ecx, 0
sub esi, edi
je 0x412e01
nop dword [eax]
movzx eax, byte [ecx + edi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, esi
jb 0x412df0
pop edi
mov eax, edx
pop esi
pop ebp
ret 8
Function at 0x419f00
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
mov eax, dword [0x4e0138]
xor eax, esp
mov dword [esp + 0x18], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
push 0
push 0
push 1
push 0
mov dword [esp + 0x28], ebx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov esi, eax
mov dword [edi + 4], esi
test esi, esi
jne 0x419fa7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [edi]
mov ecx, edi
push 1
mov dword [esp + 0x14], eax
call dword [edx]
mov eax, dword fs:[0x2c]
mov ecx, dword [0x4e33a4]
mov edx, dword [eax]
cmp ecx, dword [edx + 4]
jle 0x419f8f
push 0x4e33a4
call fcn.004882de
add esp, 4
cmp dword [0x4e33a4], 0xffffffff
jne 0x419f8f
push 0x4bc0b0
call fcn.004885ae
add esp, 4
push 0x4e33a4
call fcn.0048828d
add esp, 4
mov eax, dword [esp + 0x10]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], 0x4e0be8
test eax, eax
jne 0x41a107
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [ebx + 8], eax
mov dword [edi + 8], eax
cmp dword [ebx + 8], 0
jne 0x41a031
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [edi]
mov ecx, edi
push 1
mov dword [esp + 0x14], eax
call dword [edx]
mov eax, dword fs:[0x2c]
mov ecx, dword [0x4e33a4]
mov edx, dword [eax]
cmp ecx, dword [edx + 4]
jle 0x41a019
push 0x4e33a4
call fcn.004882de
add esp, 4
cmp dword [0x4e33a4], 0xffffffff
jne 0x41a019
push 0x4bc0b0
call fcn.004885ae
add esp, 4
push 0x4e33a4
call fcn.0048828d
add esp, 4
mov eax, dword [esp + 0x10]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], 0x4e0be8
test eax, eax
jne 0x41a115
lea eax, [esp + 0x20]
mov dword [esp + 0x20], 0
push eax
push 0
push edi
push 0x41a140
push 0
push 0
call fcn.0049a8eb
add esp, 0x18
mov dword [ebx + 4], eax
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x41a0e3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [edi]
mov ecx, edi
push 1
mov dword [esp + 0x14], eax
call dword [edx]
test esi, esi
je 0x41a07c
push esi
call ebx
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 8]
test eax, eax
je 0x41a08a
push eax
call ebx
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov eax, dword [0x4e33a4]
cmp eax, dword [ecx + 4]
jle 0x41a0cf
push 0x4e33a4
call fcn.004882de
add esp, 4
cmp dword [0x4e33a4], 0xffffffff
jne 0x41a0cf
push 0x4bc0b0
call fcn.004885ae
add esp, 4
push 0x4e33a4
call fcn.0048828d
add esp, 4
mov eax, dword [esp + 0x10]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], 0x4e0be8
test eax, eax
jne 0x41a123
test esi, esi
je 0x41a0f3
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call ebx
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0048824f
mov esp, ebp
pop ebp
ret 8
mov edx, str.thread.entry_event
lea ecx, [esp + 0x10]
call fcn.0040a270
mov edx, str.thread.exit_event
lea ecx, [esp + 0x10]
call fcn.0040a270
mov edx, str.thread
lea ecx, [esp + 0x18]
call fcn.0040a270
int3
Function at 0x41a220
Capabilities:
Access peb ldr_data
Get kernel32 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 0x4b416e
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x18
mov eax, dword [0x4e0138]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x20], esi
mov eax, dword [ebx + 8]
mov dword [ebp - 0x24], esi
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], 0
mov dword [ebp - 4], 0
mov dword [esi], vtable.asio::detail::win_iocp_io_context.0
mov dword [esi + 0x14], 0
lea edi, [esi + 0x18]
mov dword [esi + 0x1c], 0
mov dword [edi], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
call fcn.0041aeb0
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
mov byte [ebp - 4], 3
lea ecx, [esi + 0x38]
mov dword [esi + 0x34], 0
call fcn.00419b40
mov dword [esi + 0x50], 0
mov dword [esi + 0x54], 0
mov dword [esi + 0x58], 0
mov dword [esi + 0x5c], 0xffffffff
mov dword [esi + 0x60], 0
push 0xffffffffffffffff
push 0
push 0
push 0xffffffffffffffff
mov byte [ebp - 4], 6
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
mov dword [esi + 0x14], eax
test eax, eax
jne 0x41a37a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov eax, dword [0x4e33a4]
cmp eax, dword [ecx + 4]
jle 0x41a365
push 0x4e33a4
call fcn.004882de
add esp, 4
cmp dword [0x4e33a4], 0xffffffff
jne 0x41a365
push 0x4bc0b0
call fcn.004885ae
add esp, 4
push 0x4e33a4
call fcn.0048828d
add esp, 4
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], 0x4e0be8
test edi, edi
jne 0x41a418
lea edi, [esi + 0x18]
cmp byte [ebx + 0x10], 0
je 0x41a3f6
lock inc dword [edi]
push 0xc
call fcn.00488342
mov edi, eax
add esp, 4
mov dword [ebp - 0x20], edi
mov byte [ebp - 4], 7
xorps xmm0, xmm0
movq qword [edi], xmm0
mov dword [edi + 8], 0
push 0x10
mov dword [edi + 4], 0
mov dword [edi + 8], 0
call fcn.00488342
mov dword [ebp - 0x18], eax
xorps xmm0, xmm0
push eax
mov ecx, edi
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], esi
call fcn.00419f00
mov eax, dword [esi + 0x60]
mov dword [ebp - 0x20], eax
test eax, eax
je 0x41a3f3
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xc
push dword [ebp - 0x20]
call fcn.004885c3
add esp, 8
mov dword [esi + 0x60], edi
mov eax, esi
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.0048824f
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0xc
mov edx, str.iocp
lea ecx, [ebp - 0x1c]
call fcn.0040a270
int3
Function at 0x41a430
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b41a0
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x4e0138]
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 esi, ecx
mov dword [ebp - 4], 0
cmp dword [esi + 0x60], 0
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], vtable.asio::detail::win_iocp_io_context.0
je 0x41a4f0
call fcn.0041a8d0
mov ebx, dword [esi + 0x60]
push 0xffffffffffffffff
push 0
mov eax, dword [ebx + 8]
mov dword [ebp - 0x18], eax
mov eax, dword [ebx + 4]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x18]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
push dword [ebx + 8]
call edi
xor eax, eax
mov ecx, 0x4e33cc
lock xadd dword [ecx], eax
mov ecx, dword [ebx + 4]
push 0
push ecx
test eax, eax
je 0x41a4bc
call dword [sym.imp.KERNEL32.dll_TerminateThread]
jmp 0x41a4d2
push method.std::basic_streambuf_char__struct_std::char_traits_char__.virtual_56
call dword [sym.imp.KERNEL32.dll_QueueUserAPC]
push 0xffffffffffffffff
push dword [ebx + 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ebx, dword [esi + 0x60]
test ebx, ebx
je 0x41a4e9
push dword [ebx + 4]
call edi
push 0xc
push ebx
call fcn.004885c3
add esp, 8
mov dword [esi + 0x60], 0
lea ecx, [esi + 0x54]
call fcn.0040fa10
lea eax, [esi + 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov eax, dword [esi + 0x30]
test eax, eax
je 0x41a50c
push eax
call edi
mov ebx, dword [esi + 0x2c]
test ebx, ebx
je 0x41a523
push dword [ebx + 4]
call edi
push 0xc
push ebx
call fcn.004885c3
add esp, 8
mov eax, dword [esi + 0x14]
test eax, eax
je 0x41a52d
push eax
call edi
test byte [ebp + 8], 1
mov dword [esi], vtable.asio::execution_context::service.0
je 0x41a544
push 0x64
push esi
call fcn.004885c3
add esp, 8
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 - 0x10]
xor ecx, ebp
call fcn.0048824f
mov esp, ebp
pop ebp
ret 4