joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4331ea
Capabilities:
Clear file content
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
and ecx, 1
push edi
mov eax, accept
mov byte [ebp - 1], 0
mov dword [ebp - 8], ecx
je 0x43320c
mov eax, 0xc0000000
push 4
jmp 0x43320e
push 3
pop ecx
xor edi, edi
push edi
push 0x80
push ecx
push edi
push 1
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi], eax
cmp eax, 0xffffffff
je 0x43332e
push eax
call fcn.00432356
mov ecx, eax
and ecx, edx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], edx
cmp ecx, 0xffffffff
je 0x43326a
or eax, edx
je 0x433318
push edi
lea eax, [ebp + 8]
push eax
push 5
lea eax, [ebp - 0x10]
push eax
push dword [esi]
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x43327c
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [esi], 0xffffffff
jmp 0x43332e
xor edi, edi
cmp dword [ebp + 8], edi
je 0x433318
cmp dword [ebp + 8], 5
jne 0x4332e9
mov eax, dword [ebp - 0x10]
xor eax, dword [esi + 0x10]
xor ecx, ecx
mov ebx, eax
add ebx, dword [ebp - 0x18]
mov edi, ecx
adc edi, dword [ebp - 0x14]
add ebx, 5
adc edi, ecx
mov dword [ebp - 0x10], eax
cmp edi, dword [ebp - 0x1c]
ja 0x4332e7
jb 0x4332b1
cmp ebx, dword [ebp - 0x20]
ja 0x4332e7
cmp eax, 0x3200000
ja 0x4332e7
push 1
push ecx
push eax
push dword [esi]
call fcn.00432306
test al, al
je 0x43326a
push 0
lea eax, [ebp + 8]
push eax
push 5
lea eax, [ebp - 0x10]
push eax
push dword [esi]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x43327a
jmp 0x43326a
xor edi, edi
cmp dword [ebp - 8], edi
je 0x43326a
push edi
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push dword [esi]
call fcn.00432306
test al, al
je 0x43326a
push dword [esi]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x43326a
or dword [esi + 8], 0xffffffff
or dword [esi + 0xc], 0xffffffff
push edi
push edi
push edi
push dword [esi]
mov byte [ebp - 1], 1
call fcn.00432306
mov al, byte [ebp - 1]
pop edi
pop ebx
leave
ret 4
Function at 0x433355
Capabilities:
Clear file content
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], 0x3200000
push edi
mov byte [ebp - 1], bl
ja 0x43342f
push dword [esi]
call fcn.00432326
mov dword [ebp - 0x20], eax
and eax, edx
mov dword [ebp - 0x1c], edx
cmp eax, 0xffffffff
je 0x43342f
push 2
push ebx
push ebx
push dword [esi]
call fcn.00432306
test al, al
je 0x43342f
push dword [esi]
call fcn.00432326
mov dword [ebp - 0x18], eax
and eax, edx
mov dword [ebp - 0x14], edx
cmp eax, 0xffffffff
je 0x433419
push 5
push ebx
lea eax, [ebp - 0x10]
push eax
call fcn.0042b138
mov eax, dword [esi + 0x10]
xor eax, dword [ebp + 0xc]
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
mov dword [ebp - 0x10], eax
lea eax, [ebp - 8]
push eax
push 5
lea eax, [ebp - 0x10]
push eax
push dword [esi]
call edi
test eax, eax
je 0x433403
cmp dword [ebp - 8], 5
jne 0x433403
push ebx
lea eax, [ebp - 8]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi]
call edi
test eax, eax
je 0x433403
mov eax, dword [ebp + 0xc]
cmp dword [ebp - 8], eax
jne 0x433403
mov byte [ebp - 1], 1
jmp 0x433419
push ebx
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push dword [esi]
call fcn.00432306
push dword [esi]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push ebx
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [esi]
call fcn.00432306
mov al, byte [ebp - 1]
pop edi
pop ebx
leave
ret 8

Function at 0x433438
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push edi
push dword [esi]
call fcn.00432326
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
xor ebx, ebx
jmp 0x433494
cmp dword [ebp - 4], ebx
je 0x4334af
cmp dword [ebp - 4], 5
jne 0x43350c
mov eax, dword [ebp - 0xc]
xor eax, dword [esi + 0x10]
mov dword [ebp - 0xc], eax
cmp eax, 0x3200000
ja 0x43350c
test byte [ebp - 8], 1
jne 0x43347e
cmp eax, ebx
jne 0x4334b8
push 1
push ebx
push eax
push dword [esi]
call fcn.00432306
test al, al
je 0x43350c
push dword [esi]
call fcn.00432326
push ebx
mov dword [ebp - 0x18], eax
lea eax, [ebp - 4]
push eax
push 5
lea eax, [ebp - 0xc]
push eax
push dword [esi]
mov dword [ebp - 0x14], edx
call edi
test eax, eax
jne 0x433451
jmp 0x43350c
mov eax, dword [ebp + 0xc]
mov dword [eax], ebx
mov al, 1
jmp 0x43350e
call fcn.0042b055
mov ebx, eax
test ebx, ebx
je 0x43350c
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp - 0xc]
push ebx
push dword [esi]
call edi
test eax, eax
je 0x433506
mov edi, dword [ebp - 0xc]
cmp dword [ebp - 4], edi
jne 0x433506
push dword [ebp + 0x10]
mov eax, ebx
call fcn.0043308c
mov dword [ebp - 4], eax
test eax, eax
je 0x433506
mov ecx, dword [ebp + 8]
mov dword [ecx], ebx
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov eax, dword [ebp - 0x18]
mov dword [esi + 8], eax
mov eax, dword [ebp - 0x14]
mov dword [esi + 0xc], eax
jmp 0x4334b4
push ebx
call fcn.0042b085
xor al, al
pop edi
pop ebx
leave
ret 0xc
Function at 0x433514
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push edi
push dword [esi]
call fcn.00432326
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
xor ebx, ebx
jmp 0x433570
cmp dword [ebp - 4], ebx
je 0x43358b
cmp dword [ebp - 4], 5
jne 0x4335e8
mov eax, dword [ebp - 0xc]
xor eax, dword [esi + 0x10]
mov dword [ebp - 0xc], eax
cmp eax, 0x3200000
ja 0x4335e8
test byte [ebp - 8], 1
jne 0x43355a
cmp eax, ebx
jne 0x433594
push 1
push ebx
push eax
push dword [esi]
call fcn.00432306
test al, al
je 0x4335e8
push dword [esi]
call fcn.00432326
push ebx
mov dword [ebp - 0x18], eax
lea eax, [ebp - 4]
push eax
push 5
lea eax, [ebp - 0xc]
push eax
push dword [esi]
mov dword [ebp - 0x14], edx
call edi
test eax, eax
jne 0x43352d
jmp 0x4335e8
mov eax, dword [ebp + 0xc]
mov dword [eax], ebx
mov al, 1
jmp 0x4335ea
call fcn.0042b055
mov ebx, eax
test ebx, ebx
je 0x4335e8
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp - 0xc]
push ebx
push dword [esi]
call edi
test eax, eax
je 0x4335e2
mov edi, dword [ebp - 0xc]
cmp dword [ebp - 4], edi
jne 0x4335e2
push dword [ebp + 0x10]
mov eax, ebx
call fcn.0043310e
mov dword [ebp - 4], eax
test eax, eax
je 0x4335e2
mov ecx, dword [ebp + 8]
mov dword [ecx], ebx
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov eax, dword [ebp - 0x18]
mov dword [esi + 8], eax
mov eax, dword [ebp - 0x14]
mov dword [esi + 0xc], eax
jmp 0x433590
push ebx
call fcn.0042b085
xor al, al
pop edi
pop ebx
leave
ret 0xc

Function at 0x4335f0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
mov eax, dword [esi + 8]
and eax, dword [esi + 0xc]
push ebx
xor ebx, ebx
mov byte [esp + 0xb], bl
cmp eax, 0xffffffff
je 0x4336af
push dword [esi]
call fcn.00432326
mov dword [esp + 0x18], eax
and eax, edx
mov dword [esp + 0x1c], edx
cmp eax, 0xffffffff
je 0x4336af
push ebx
push dword [esi + 0xc]
push dword [esi + 8]
push dword [esi]
call fcn.00432306
test al, al
je 0x4336af
push ebx
lea eax, [esp + 0x10]
push eax
push 5
lea eax, [esp + 0x1c]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x43369f
cmp dword [esp + 0xc], 5
jne 0x43369f
or byte [esp + 0x14], 1
push ebx
push dword [esi + 0xc]
push dword [esi + 8]
push dword [esi]
call fcn.00432306
test al, al
je 0x43369f
push ebx
lea eax, [esp + 0x10]
push eax
push 5
lea eax, [esp + 0x1c]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x43369f
cmp dword [esp + 0xc], 5
jne 0x43369f
push dword [esi]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov byte [esp + 0xb], 1
push ebx
push dword [esp + 0x20]
push dword [esp + 0x20]
push dword [esi]
call fcn.00432306
mov al, byte [esp + 0xb]
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x433891
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 4]
push eax
push 0x40
push dword [ebp + 8]
push edi
call esi
test eax, eax
je 0x4338db
xor eax, eax
xor cl, cl
cmp dword [ebp + 8], eax
jbe 0x4338ce
movzx edx, cl
mov dl, byte [ebp + edx + 0xc]
xor byte [eax + edi], dl
inc cl
cmp cl, 4
jne 0x4338c8
xor cl, cl
inc eax
cmp eax, dword [ebp + 8]
jb 0x4338b5
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp + 8]
push edi
call esi
pop esi
leave
ret 8

Function at 0x433a80
Capabilities:
Connect to wmi namespace via wbemlocator

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
xor esi, esi
cmp edi, esi
je 0x433aec
cmp dword [edi + 8], esi
jne 0x433aec
dec eax
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
je 0x433aa7
dec eax
jne 0x433aec
mov dword [ebp - 0xc], 0x409a30
jmp 0x433aae
mov dword [ebp - 0xc], 0x409a08
lea eax, [ebp - 4]
push eax
push 0x4016e8
push 1
push esi
push 0x4017b8
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x433aec
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
lea edx, [ebp - 8]
push edx
push esi
push esi
push esi
push esi
push esi
push esi
push dword [ebp - 0xc]
push eax
call dword [ecx + 0xc]
test eax, eax
jns 0x433af1
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor eax, eax
pop esi
leave
ret
push esi
push esi
push 3
push 3
push esi
push esi
push 0xa
push dword [ebp - 8]
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
test eax, eax
mov eax, dword [ebp - 8]
jns 0x433b13
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x433ae3
mov dword [edi], eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push eax
mov dword [edi + 8], 1
call dword [ecx + 8]
xor eax, eax
inc eax
jmp 0x433aee
Function at 0x8e4415
Capabilities:
Parse pe header

Disassembly:
lea esp, [esp + 1]
mov byte [esp + 1], bl
mov byte [esp + 1], al
lea esp, [esp + 3]
mov dword [esp], ebx
pushfd
jmp 0x8e4432
jmp 0x8e43ea
lea esp, [esp + 2]
mov word [esp], bx
lea esp, [esp + 2]
push esp
pushfd
pushfd
call fcn.008e4417
lea esp, [esp + 3]
mov dword [esp + 1], ebx
mov dword [esp + 4], esp
lea esp, [esp + 1]
mov dword [esp + 4], ebp
call fcn.008e4419
sbb dword [eax + 0x7a98690e], ebx
jne 0x8e44cb
xchg edi, eax
invalid

Function at 0x8e4419
Capabilities:
Packed with generic packer
Parse pe header

Disassembly:
pushfd
jmp 0x8e4491
lea esp, [esp + 0x20]
jmp 0x8e447b
mov word [esp + 4], ax
mov dword [esp], eax
mov dword [esp + 8], esi
pushal
lea esp, [esp + 4]
mov dword [esp + 0x20], edi
jmp 0x8e441c
Function at 0x408438
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x124
mov eax, dword [0x45c040]
xor eax, esp
mov dword [esp + 0x120], eax
push esi
mov esi, ecx
cmp byte [esi + 0x2d8], 0
je 0x4084a5
push 0x110
lea eax, [esp + 0x10]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [esp + 8], 0x114
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [esp + 0xc], 5
jne 0x408495
mov ecx, esi
call fcn.00408144
jmp 0x4084a7
cmp dword [esp + 0xc], 6
jb 0x4084a5
mov ecx, esi
call fcn.00407995
jmp 0x4084a7
xor eax, eax
mov ecx, dword [esp + 0x124]
pop esi
xor ecx, esp
call fcn.0043587c
mov esp, ebp
pop ebp
ret
Function at 0x40b3e5
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x40b408
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const___long_long___int64__]
jmp 0x40b4c7
mov eax, dword [ebx + 0x20]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov ecx, dword [eax]
lea eax, [ebx + 0x30]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], eax
test ecx, ecx
je 0x40b42e
mov eax, dword [eax]
mov ecx, dword [eax]
jmp 0x40b433
xor ecx, ecx
mov dword [ebp - 8], eax
mov eax, ecx
cdq
mov dword [ebp + 0x10], eax
mov ecx, edx
mov dword [ebp - 4], ecx
test edi, edi
jl 0x40b493
jg 0x40b448
test esi, esi
je 0x40b493
test ecx, ecx
jl 0x40b48e
jg 0x40b452
test eax, eax
je 0x40b48e
cmp edi, ecx
jg 0x40b464
jl 0x40b45c
cmp esi, eax
jae 0x40b464
mov eax, esi
mov dword [ebp + 0x10], esi
mov dword [ebp - 4], edi
push eax
push dword [ebp + 8]
push dword [ebp - 0xc]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebp - 8]
add esp, 0xc
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp + 8]
add ecx, edx
sub esi, edx
mov eax, dword [eax]
sbb edi, dword [ebp - 4]
sub dword [eax], edx
mov eax, dword [ebx + 0x20]
add dword [eax], edx
jmp 0x40b496
mov ecx, dword [ebp + 8]
jmp 0x40b4a0
mov ecx, dword [ebp + 8]
test edi, edi
jl 0x40b4bb
jg 0x40b4a0
test esi, esi
je 0x40b4bb
cmp dword [ebx + 0x4c], 0
je 0x40b4bb
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x14]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x40b4cc
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x10]
mov dword [ebp - 4], ecx
test esi, esi
jg 0x40b4ee
jl 0x40b4e5
test ebx, ebx
jne 0x40b4ee
xor eax, eax
xor edx, edx
jmp 0x40b5b6
cmp dword [ecx + 0x38], 0
je 0x40b504
push esi
push ebx
push dword [ebp + 8]
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char___long_long___int64__]
jmp 0x40b5b6
mov eax, dword [ecx + 0x1c]
push edi
mov edi, ebx
mov edx, dword [eax]
test edx, edx
je 0x40b548
mov eax, dword [ecx + 0x2c]
cmp dword [eax], 0
jbe 0x40b548
cmp dword [eax], ebx
mov esi, ebx
mov edi, dword [ebp + 8]
cmovb esi, dword [eax]
push esi
push edx
push edi
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [ebp - 4]
add edi, esi
mov dword [ebp + 8], edi
add esp, 0xc
mov edi, ebx
sub edi, esi
mov eax, dword [ecx + 0x2c]
sub dword [eax], esi
mov eax, dword [ecx + 0x1c]
add dword [eax], esi
mov esi, dword [ebp + 0x10]
jmp 0x40b54e
mov eax, dword [ebp + 8]
mov dword [ebp + 8], eax
cmp dword [ecx + 0x4c], 0
je 0x40b5ac
call fcn.0040be31
mov edx, dword [ebp + 8]
mov eax, edi
cmp edi, 0xfff
jbe 0x40b596
push dword [ecx + 0x4c]
push 0xfff
push 1
push edx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov edx, dword [ebp + 8]
mov ecx, 0xfff
add edx, eax
add esp, 0x10
sub edi, eax
mov dword [ebp + 8], edx
cmp eax, ecx
jne 0x40b5ac
cmp edi, ecx
mov ecx, dword [ebp - 4]
ja 0x40b566
mov eax, edi
test eax, eax
je 0x40b5ac
push dword [ecx + 0x4c]
push edi
push 1
push edx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
sub edi, eax
sub ebx, edi
mov eax, ebx
sbb esi, 0
mov edx, esi
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x40b809
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x45c040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
or edi, 0xffffffff
mov esi, ecx
cmp ebx, edi
jne 0x40b82f
xor eax, eax
jmp 0x40b8f4
mov eax, dword [esi + 0x20]
mov ecx, dword [eax]
test ecx, ecx
je 0x40b858
mov edx, dword [esi + 0x30]
mov eax, dword [edx]
add eax, ecx
cmp ecx, eax
jae 0x40b858
dec dword [edx]
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
mov eax, ebx
jmp 0x40b8f4
cmp dword [esi + 0x4c], 0
je 0x40b8f2
mov ecx, esi
call fcn.0040be31
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x40b886
movsx eax, bl
push dword [esi + 0x4c]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
cmp eax, edi
pop ecx
pop ecx
cmove ebx, edi
jmp 0x40b851
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x25], bl
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x25]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet___char_const___char_const___char_const____char___char___char___const]
sub eax, 0
je 0x40b8c1
sub eax, 1
je 0x40b8c1
dec eax
sub eax, 1
jne 0x40b8f2
movsx eax, byte [ebp - 0x25]
jmp 0x40b873
mov eax, dword [ebp - 0x2c]
lea ecx, [ebp - 0x24]
sub eax, ecx
mov dword [ebp - 0x30], eax
je 0x40b8e5
push dword [esi + 0x4c]
push eax
mov eax, ecx
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp dword [ebp - 0x30], eax
jne 0x40b8f2
lea eax, [ebp - 0x25]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x34], eax
cmovne edi, ebx
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043587c
leave
ret 4

Function at 0x40be81
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x45c040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
cmp dword [esi + 0x38], ebx
je 0x40bed9
cmp byte [esi + 0x3d], bl
je 0x40bed9
mov eax, dword [esi]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x40bf13
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet___char___char___char___const]
sub eax, ebx
je 0x40beea
sub eax, 1
je 0x40beed
dec eax
sub eax, 1
jne 0x40bf13
mov byte [esi + 0x3d], bl
mov al, 1
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043587c
leave
ret
mov byte [esi + 0x3d], bl
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x40bf0b
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x40bf13
cmp byte [esi + 0x3d], bl
sete al
jmp 0x40bedb
xor al, al
jmp 0x40bedb
Function at 0x40edae
Capabilities:
Hide graphical window

Disassembly:
push edi
mov edi, ecx
call fcn.004306e9
push 1
push dword [edi + 0x64]
call dword [sym.imp.USER32.dll_ShowWindow]
push 1
push dword [edi + 0x68]
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 0
push dword [edi + 0x58]
call dword [sym.imp.USER32.dll_InvalidateRect]
pop edi
ret

Function at 0x410b38
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, ecx
push 0xffffffffffffffff
push 0
mov eax, dword [esi + 8]
mov dword [ebp - 8], eax
mov eax, dword [esi + 4]
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
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, 0x45ec80
lock xadd dword [ecx], eax
mov ecx, dword [esi + 4]
push 0
push ecx
test eax, eax
je 0x410b82
call dword [sym.imp.KERNEL32.dll_TerminateThread]
jmp 0x410b98
push method.Bootstrapper.virtual_164
call dword [sym.imp.KERNEL32.dll_QueueUserAPC]
push 0xffffffffffffffff
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
pop esi
leave
ret
Function at 0x410b9b
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
push ebx
push esi
push edi
xor eax, eax
mov esi, ecx
push eax
push eax
push 1
push eax
mov dword [esp + 0x20], esi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov ebx, dword [ebp + 8]
mov edi, eax
mov dword [ebx + 4], edi
test edi, edi
jne 0x410c1a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebx]
mov ecx, ebx
push 1
mov esi, eax
call dword [edx]
push 0x45c0e0
push esi
lea ecx, [esp + 0x24]
call fcn.00406641
lea ecx, [esp + 0x1c]
mov dword [esp + 0x28], str.C:Trunk2012Contribs_boost_1_84_0_boost_asiodetailimplwin_thread.ipp
mov dword [esp + 0x2c], str.start_thread
mov dword [esp + 0x30], 0x4c
mov dword [esp + 0x34], 0x1a
call fcn.00410564
test al, al
jne 0x410d49
mov esi, dword [esp + 0x10]
xor eax, eax
push eax
push eax
push 1
push eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 8], eax
xor ecx, ecx
mov dword [ebx + 8], eax
cmp dword [esi + 8], ecx
jne 0x410c95
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebx]
mov ecx, ebx
push 1
mov esi, eax
call dword [edx]
push 0x45c0e0
push esi
lea ecx, [esp + 0x24]
call fcn.00406641
lea ecx, [esp + 0x1c]
mov dword [esp + 0x28], str.C:Trunk2012Contribs_boost_1_84_0_boost_asiodetailimplwin_thread.ipp
mov dword [esp + 0x2c], str.start_thread
mov dword [esp + 0x30], 0x56
mov dword [esp + 0x34], 0x1a
call fcn.00410564
test al, al
je 0x410c8f
lea eax, [esp + 0x28]
mov edx, str.thread.exit_event
push eax
jmp 0x410d57
mov esi, dword [esp + 0x10]
xor ecx, ecx
lea eax, [esp + 0x14]
mov dword [esp + 0x14], ecx
push eax
push ecx
push ebx
push 0x410d5d
push ecx
push ecx
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
add esp, 0x18
mov dword [esi + 4], eax
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x410d30
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebx]
mov ecx, ebx
push 1
mov dword [esp + 0x1c], eax
call dword [edx]
test edi, edi
je 0x410cd6
push edi
call esi
mov eax, dword [esp + 0x10]
cmp dword [eax + 8], 0
je 0x410ce5
push dword [eax + 8]
call esi
push 0x45c0e0
push dword [esp + 0x1c]
lea ecx, [esp + 0x24]
call fcn.00406641
lea ecx, [esp + 0x1c]
mov dword [esp + 0x28], str.C:Trunk2012Contribs_boost_1_84_0_boost_asiodetailimplwin_thread.ipp
mov dword [esp + 0x2c], str.start_thread
mov dword [esp + 0x30], 0x66
mov dword [esp + 0x34], 0x1a
call fcn.00410564
test al, al
je 0x410d30
lea eax, [esp + 0x28]
mov edx, str.thread
push eax
jmp 0x410d57
test edi, edi
je 0x410d40
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
call esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
lea eax, [esp + 0x28]
mov edx, str.thread.entry_event
push eax
lea ecx, [esp + 0x20]
call fcn.00410742
int3
Function at 0x410da9
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x198
mov eax, dword [0x45c040]
xor eax, esp
mov dword [esp + 0x194], eax
xor eax, eax
inc eax
lock xadd dword [0x45ecec], eax
inc eax
cmp eax, 1
jne 0x410de7
lea eax, [esp]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov ecx, 0x45ecf0
xchg dword [ecx], eax
mov ecx, dword [esp + 0x194]
xor ecx, esp
call fcn.0043587c
mov esp, ebp
pop ebp
ret

Function at 0x411973
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov edi, ecx
xor esi, esi
mov ebx, edx
cmp edi, 0xffffffff
je 0x411a2f
cmp byte [ebp + 8], 0
je 0x4119ae
test byte [ebx], 8
je 0x4119ae
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x10]
push eax
push ecx
lea eax, [ebp - 4]
push eax
push ecx
push ecx
call fcn.00411f44
add esp, 0x14
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [ebp + 0xc]
mov esi, eax
test esi, esi
setne dl
call fcn.00411938
test esi, esi
je 0x411a2f
push ecx
push 0x2733
lea ecx, [ebp - 0x10]
call fcn.00416bd5
mov ecx, dword [ebp + 0xc]
lea edx, [ebp - 0x10]
call fcn.0041057c
test al, al
jne 0x411a02
push ecx
push 0x4d5
lea ecx, [ebp - 0x10]
call fcn.00416bd5
mov ecx, dword [ebp + 0xc]
lea edx, [ebp - 0x10]
call fcn.0041057c
test al, al
je 0x411a2f
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 0x8004667e
push edi
call dword [sym.imp.WS2_32.dll_ioctlsocket]
and byte [ebx], 0xfc
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [ebp + 0xc]
mov esi, eax
test esi, esi
setne dl
call fcn.00411938
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret