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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x100ded98
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x1010bb90]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
push esi
push edi
mov eax, dword [0x1010bb90]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov edi, ecx
cmp ebx, 0xffffffff
jne 0x100086b8
xor eax, eax
jmp 0x1000884d
mov eax, dword [edi + 0x24]
mov ecx, dword [eax]
xor edx, edx
cmp ecx, edx
je 0x100086e3
mov eax, dword [edi + 0x34]
mov esi, dword [eax]
add esi, ecx
cmp ecx, esi
jae 0x100086e3
dec dword [eax]
mov eax, dword [edi + 0x24]
mov ecx, dword [eax]
lea edx, [ecx + 1]
mov dword [eax], edx
mov byte [ecx], bl
mov eax, ebx
jmp 0x1000884d
mov eax, dword [edi + 0x4c]
cmp eax, edx
je 0x1000884a
cmp dword [edi + 0x3c], edx
jne 0x10008710
push eax
movsx eax, bl
push eax
call fcn.100bff53
add esp, 8
cmp eax, 0xffffffff
je 0x1000884a
mov eax, ebx
jmp 0x1000884d
mov ecx, 0xf
xor eax, eax
mov byte [esp + 0x20], dl
mov byte [esp + 0x13], bl
mov dword [esp + 0x34], ecx
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x30], 8
cmp ecx, 0x10
jae 0x1000873c
lea eax, [esp + 0x20]
mov byte [eax + 8], dl
mov dword [esp + 0x48], edx
mov eax, dword [esp + 0x20]
mov ebx, dword [esp + 0x34]
mov edx, eax
cmp ebx, 0x10
jae 0x10008758
lea edx, [esp + 0x20]
mov eax, edx
mov ecx, dword [edi + 0x3c]
mov esi, dword [ecx]
lea ebx, [esp + 0x14]
push ebx
mov ebx, dword [esp + 0x34]
add edx, ebx
push edx
push eax
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x24]
push eax
lea edx, [esp + 0x27]
push edx
lea eax, [edi + 0x44]
push eax
mov eax, dword [esi + 0x14]
call eax
test eax, eax
jl 0x10008841
cmp eax, 1
jg 0x100087fe
mov ebx, dword [esp + 0x34]
mov eax, dword [esp + 0x20]
mov ecx, eax
cmp ebx, 0x10
jae 0x100087a2
lea ecx, [esp + 0x20]
mov esi, dword [esp + 0x14]
sub esi, ecx
je 0x100087cf
cmp ebx, 0x10
jae 0x100087b3
lea eax, [esp + 0x20]
mov ecx, dword [edi + 0x4c]
push ecx
push esi
push 1
push eax
call fcn.100c16be
add esp, 0x10
cmp esi, eax
jne 0x10008841
mov ebx, dword [esp + 0x34]
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x13]
mov byte [edi + 0x41], 1
cmp dword [esp + 0x18], edx
jne 0x10008833
test esi, esi
ja 0x1000874b
cmp dword [esp + 0x30], 0x20
lea ecx, [esp + 0x1c]
jae 0x10008845
push 0
push 8
call fcn.10009e00
jmp 0x10008743
cmp eax, 3
jne 0x10008841
mov eax, dword [edi + 0x4c]
mov cl, byte [esp + 0x13]
call fcn.10002520
test al, al
je 0x10008823
mov esi, dword [ebp + 8]
lea ecx, [esp + 0x1c]
call fcn.10007a10
mov eax, esi
jmp 0x1000884d
lea ecx, [esp + 0x1c]
or esi, 0xffffffff
call fcn.10007a10
mov eax, esi
jmp 0x1000884d
lea ecx, [esp + 0x1c]
call fcn.10007a10
mov eax, dword [ebp + 8]
jmp 0x1000884d
lea ecx, [esp + 0x1c]
call fcn.10007a10
or eax, 0xffffffff
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.100bfcbc
mov esp, ebp
pop ebp
ret 4
Function at 0x1000ab50
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x100dfba8
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x1010bb90]
xor eax, esp
mov dword [esp + 0x24], eax
push ebx
push esi
mov eax, dword [0x1010bb90]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
xor ebx, ebx
cmp dword [edi + 0x3c], ebx
je 0x1000ac9b
cmp byte [edi + 0x41], bl
je 0x1000ac9b
mov eax, dword [edi]
mov edx, dword [eax + 4]
push 0xffffffffffffffff
mov ecx, edi
call edx
cmp eax, 0xffffffff
je 0x1000ac8e
mov ecx, 0xf
xor eax, eax
mov byte [esp + 0x18], bl
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x28], 8
cmp ecx, 0x10
jae 0x1000abd6
lea eax, [esp + 0x18]
mov byte [eax + 8], bl
mov dword [esp + 0x40], ebx
mov eax, dword [esp + 0x18]
mov ebx, dword [esp + 0x2c]
mov edx, eax
cmp ebx, 0x10
jae 0x1000abf2
lea edx, [esp + 0x18]
mov eax, edx
mov ecx, dword [edi + 0x3c]
mov esi, dword [ecx]
lea ebx, [esp + 0x10]
push ebx
mov ebx, dword [esp + 0x2c]
add ebx, edx
push ebx
push eax
lea eax, [edi + 0x44]
push eax
mov eax, dword [esi + 0x18]
call eax
sub eax, 0
je 0x1000ac22
sub eax, 1
je 0x1000ac26
sub eax, 2
lea ecx, [esp + 0x14]
jne 0x1000ac89
jmp 0x1000ac96
mov byte [edi + 0x41], 0
mov ebx, dword [esp + 0x2c]
mov eax, dword [esp + 0x18]
mov ecx, eax
cmp ebx, 0x10
jae 0x1000ac39
lea ecx, [esp + 0x18]
mov esi, dword [esp + 0x10]
sub esi, ecx
je 0x1000ac66
cmp ebx, 0x10
jae 0x1000ac4a
lea eax, [esp + 0x18]
mov ecx, dword [edi + 0x4c]
push ecx
push esi
push 1
push eax
call fcn.100c16be
add esp, 0x10
cmp esi, eax
jne 0x1000ac85
mov ebx, dword [esp + 0x2c]
mov eax, dword [esp + 0x18]
cmp byte [edi + 0x41], 0
je 0x1000ac92
test esi, esi
jne 0x1000abe5
push esi
push 8
lea ecx, [esp + 0x1c]
call fcn.10009e00
jmp 0x1000abdd
lea ecx, [esp + 0x14]
call fcn.10007a10
xor al, al
jmp 0x1000ac9d
lea ecx, [esp + 0x14]
call fcn.10007a10
mov al, 1
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.100bfcbc
mov esp, ebp
pop ebp
ret
Function at 0x1000f3b0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x100dec48
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x1010bb90]
xor eax, esp
push eax
lea eax, [esp + 0x58]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
push eax
lea ecx, [esp + 0xc]
push ecx
call fcn.10013030
push eax
lea edx, [esp + 0x38]
push edx
mov dword [esp + 0x70], 0
call fcn.10013090
add esp, 0x10
push 0x100fc6f0
lea eax, [esp + 0x30]
push eax
call fcn.100c3bf4
int3

Function at 0x1000f470
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x100dec18
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
push esi
push edi
mov eax, dword [0x1010bb90]
xor eax, esp
push eax
lea eax, [esp + 0x58]
mov dword fs:[0], eax
mov edi, ecx
lea esi, [esp + 0xc]
call fcn.10013120
mov edi, eax
lea esi, [esp + 0x30]
mov dword [esp + 0x60], 0
call fcn.10013170
push 0x100fc7f4
mov eax, esi
push eax
call fcn.100c3bf4
int3

Function at 0x1000fd40
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x100e1fdf
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x1010bb90]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x44]
mov esi, dword [esp + 0x40]
xor ebx, ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esp + 0x38], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
mov byte [esi + 0x30], bl
mov dword [esi + 0x4c], 0xf
mov dword [esi + 0x48], ebx
mov byte [esi + 0x38], bl
lea edi, [esi + 0x54]
mov byte [esp + 0x38], 2
push edi
mov byte [esi + 0x50], 0xff
call fcn.1000c3b0
mov dword [edi], vtable.boost::io::basic_altstringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov dword [edi + 0x3c], ebx
mov byte [edi + 0x40], bl
mov dword [edi + 0x44], 3
mov byte [esi + 0xa0], bl
mov byte [esp + 0x38], 4
cmp ebp, ebx
je 0x1000fe28
mov eax, ebp
mov dword [esp + 0x2c], 0xf
mov dword [esp + 0x28], ebx
mov byte [esp + 0x18], bl
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x1000fdf0
sub eax, edx
push eax
push ebp
lea ecx, [esp + 0x1c]
call fcn.10009fb0
lea eax, [esp + 0x14]
push eax
push esi
mov byte [esp + 0x40], 5
call fcn.100137e0
cmp dword [esp + 0x2c], 0x10
jb 0x1000fe28
mov ecx, dword [esp + 0x18]
push ecx
call fcn.100c14d4
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 8
Function at 0x10010410
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x100e1f7f
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x1010bb90]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x44]
mov esi, dword [esp + 0x40]
xor ebx, ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esp + 0x38], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
mov byte [esi + 0x30], bl
xor eax, eax
mov dword [esi + 0x4c], 7
mov dword [esi + 0x48], ebx
mov word [esi + 0x38], ax
lea edi, [esi + 0x54]
mov byte [esp + 0x38], 2
push edi
mov byte [esi + 0x50], 0xff
call fcn.10012a90
mov dword [edi], vtable.boost::io::basic_altstringbuf_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov dword [edi + 0x3c], ebx
mov byte [edi + 0x40], bl
mov dword [edi + 0x44], 3
mov byte [esi + 0xa0], bl
mov byte [esp + 0x38], 4
cmp ebp, ebx
je 0x10010500
xor ecx, ecx
mov eax, ebp
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], ebx
mov word [esp + 0x18], cx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x100104c2
sub eax, edx
sar eax, 1
push eax
push ebp
lea ecx, [esp + 0x1c]
call fcn.1000c5b0
lea edx, [esp + 0x14]
push edx
push esi
mov byte [esp + 0x40], 5
call fcn.100140e0
cmp dword [esp + 0x2c], 8
jb 0x10010500
mov eax, dword [esp + 0x18]
push eax
call fcn.100c14d4
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 8

Function at 0x10010580
Capabilities:
Encode data using xor

Disassembly:
push edi
lea edi, [edx + ecx]
cmp edx, edi
jae 0x100105ad
push esi
lea esp, [esp]
mov cl, byte [eax]
xor cl, byte [edx]
shr dword [eax], 8
mov esi, dword [eax]
movzx ecx, cl
mov ecx, dword [ecx*4 + 0x101143e0]
xor ecx, esi
inc edx
mov dword [eax], ecx
cmp edx, edi
jb 0x10010590
pop esi
pop edi
ret

Function at 0x10011070
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x100dea38
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x1010bb90]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
mov edi, dword [esp + 0x20]
push edi
call fcn.100015a0
xor edx, edx
mov dword [esp + 0x18], edx
mov dword [esi], vtable.boost::system::system_error.0
mov eax, dword [edi + 0x28]
mov dword [esi + 0x28], eax
mov ecx, dword [edi + 0x2c]
mov dword [esi + 0x2c], ecx
push 0xffffffffffffffff
lea ecx, [esi + 0x30]
lea eax, [edi + 0x30]
push edx
mov dword [ecx + 0x18], 0xf
mov dword [ecx + 0x14], edx
push eax
mov byte [ecx + 4], dl
call fcn.10009ed0
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret 4
Function at 0x10014a80
Capabilities:
Hash data using crc32b

Disassembly:
cmp byte [0x101143cc], 0
jne 0x10014b3a
push ebx
push esi
push edi
xor bl, bl
xor eax, eax
mov cl, pe_nt_image_headers32
test bl, cl
je 0x10014a9f
xor eax, 0x80000000
test eax, eax
jns 0x10014aac
add eax, eax
xor eax, 0x4c11db7
jmp 0x10014aae
add eax, eax
shr cl, 1
jne 0x10014a96
mov edx, eax
xor esi, esi
xor eax, eax
test dl, 1
je 0x10014acd
mov ecx, 0x1f
sub ecx, eax
mov edi, 1
shl edi, cl
or esi, edi
inc eax
shr edx, 1
cmp eax, 0x20
jb 0x10014ab8
xor cl, cl
test bl, 1
je 0x10014ade
mov cl, pe_nt_image_headers32
mov al, bl
shr al, 1
test al, 1
je 0x10014ae9
or cl, 0x40
shr al, 1
test al, 1
je 0x10014af2
or cl, 0x20
shr al, 1
test al, 1
je 0x10014afb
or cl, 0x10
shr al, 1
test al, 1
je 0x10014b04
or cl, 8
shr al, 1
test al, 1
je 0x10014b0d
or cl, 4
shr al, 1
test al, 1
je 0x10014b16
or cl, 2
test al, 2
je 0x10014b1d
or cl, 1
add bl, 1
movzx eax, cl
mov dword [eax*4 + 0x101143e0], esi
jne 0x10014a92
pop edi
pop esi
mov byte [0x101143cc], 1
pop ebx
ret

Function at 0x10014bd0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x100dfa70
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
mov eax, dword [0x1010bb90]
xor eax, esp
push eax
lea eax, [esp + 0x34]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0xc], ebx
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x28], esp
push 0xffffffffffffffff
mov dword [esp + 0x5c], ebx
push ebx
lea eax, [esp + 0x70]
mov dword [ecx + 0x18], 0xf
mov dword [ecx + 0x14], ebx
push eax
mov byte [ecx + 4], bl
call fcn.10009ed0
push ecx
mov ecx, dword [esp + 0x68]
mov eax, esp
mov dword [eax], ecx
lea ecx, [esp + 0x30]
mov dword [esp + 0x2c], esp
call fcn.10016160
mov byte [esp + 0x3c], 1
mov dword [esi], 0x10005010
mov edx, dword [eax]
push 0xffffffffffffffff
lea ecx, [esi + 8]
mov dword [esi + 4], edx
add eax, 4
push ebx
mov dword [ecx + 0x18], 0xf
mov dword [ecx + 0x14], ebx
push eax
mov byte [ecx + 4], bl
call fcn.10009ed0
cmp dword [esp + 0x2c], 0x10
jb 0x10014c77
mov eax, dword [esp + 0x18]
push eax
call fcn.100c14d4
add esp, 4
cmp dword [esp + 0x64], 0x10
mov dword [esp + 0x2c], 0xf
mov dword [esp + 0x28], ebx
mov byte [esp + 0x18], bl
jb 0x10014c9b
mov ecx, dword [esp + 0x50]
push ecx
call fcn.100c14d4
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop ecx
pop ebx
add esp, 0x38
ret

Function at 0x10016160
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x100dfa08
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x1010bb90]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
sub esp, 0x1c
xor eax, eax
mov ecx, esp
mov dword [esp + 0x30], eax
mov dword [esp + 0x24], esp
push 0xffffffffffffffff
mov dword [ecx + 0x14], eax
mov dword [ecx + 0x18], 0xf
push eax
mov byte [ecx + 4], al
lea eax, [esp + 0x44]
push eax
call fcn.10009ed0
mov ecx, dword [esp + 0x38]
push ecx
call fcn.10016ef0
cmp dword [esp + 0x38], 0x10
jb 0x100161cb
mov edx, dword [esp + 0x24]
push edx
call fcn.100c14d4
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret 0x20
Function at 0x10016ef0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x100df9d8
mov eax, dword fs:[0]
push eax
mov eax, dword [0x1010bb90]
xor eax, esp
push eax
lea eax, [esp + 4]
mov dword fs:[0], eax
xor eax, eax
mov dword [esp + 0xc], eax
mov ecx, dword [esp + 0x14]
mov dword [esi], ecx
push 0xffffffffffffffff
lea ecx, [esi + 4]
push eax
lea edx, [esp + 0x20]
mov dword [ecx + 0x18], 0xf
mov dword [ecx + 0x14], eax
push edx
mov byte [ecx + 4], al
call fcn.10009ed0
cmp dword [esp + 0x30], 0x10
jb 0x10016f4d
mov eax, dword [esp + 0x1c]
push eax
call fcn.100c14d4
add esp, 4
mov eax, esi
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
pop ecx
add esp, 0xc
ret 0x20
Function at 0x100201c0
Capabilities:
Set socket configuration

Disassembly:
sub esp, 8
push ebx
push ebp
mov ebp, dword [esp + 0x14]
push edi
mov edi, eax
xor ebx, ebx
cmp edi, 0xffffffff
je 0x100202c4
cmp byte [esp + 0x1c], bl
je 0x1002022f
test byte [ebp], 8
je 0x1002022f
xor eax, eax
xor ecx, ecx
mov word [esp + 0x10], ax
mov word [esp + 0x12], cx
call fcn.100ae100
or byte [ebp], 8
push ebx
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push 4
lea edx, [esp + 0x14]
push edx
push pe_nt_image_headers32
push 0xffff
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
mov ebx, eax
call fcn.100ae100
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test ebx, ebx
jne 0x1002022f
call fcn.100ae100
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
adc byte [ebx - 0x21441728], cl
or byte [eax], al
mov dword [esp + 0x10], eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
adc byte [ecx + 0x24448b06], cl
adc byte [ecx - 0x247afbba], cl
je 0x100202c4
call fcn.100ae100
cmp dword [esi + 4], eax
jne 0x1002026e
cmp dword [esi], 0x2733
je 0x10020280
call fcn.100ae100
cmp dword [esi + 4], eax
jne 0x100202c0
cmp dword [esi], 0x4d5
jne 0x100202c0
lea ecx, [esp + 0x10]
push ecx
push 0x8004667e
push edi
mov dword [esp + 0x1c], 0
call dword [sym.imp.WS2_32.dll_ioctlsocket]
and byte [ebp], 0xfc
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
mov ebx, eax
call fcn.100ae100
mov edi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esi], eax
mov dword [esi + 4], edi
test ebx, ebx
jne 0x100202d0
xor edi, edi
call fcn.100ae100
mov dword [esi], edi
mov dword [esi + 4], eax
pop edi
pop ebp
mov eax, ebx
pop ebx
add esp, 8
ret

Function at 0x100227e0
Capabilities:
Connect socket

Disassembly:
push ecx
push ebx
push edi
mov edi, eax
cmp edi, 0xffffffff
jne 0x10022800
mov edi, 0x2719
call fcn.100ae100
mov dword [esi + 4], eax
mov dword [esi], edi
or eax, 0xffffffff
pop edi
pop ebx
pop ecx
ret
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
push eax
push ecx
push edi
call dword [sym.imp.WS2_32.dll_connect]
mov ebx, eax
call fcn.100ae100
mov edi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
adc byte [ecx + 0x47e8906], cl
test ebx, ebx
jne 0x1002283d
xor edi, edi
call fcn.100ae100
mov dword [esi], edi
mov dword [esi + 4], eax
pop edi
mov eax, ebx
pop ebx
pop ecx
ret
Function at 0x10022930
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 8
push ebx
mov ebx, ecx
push edi
mov edi, eax
cmp ebx, 0xffffffff
jne 0x10022955
mov edi, 0x2719
call fcn.100ae100
mov dword [esi + 4], eax
mov dword [esi], edi
or eax, ebx
pop edi
pop ebx
add esp, 8
ret
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov edx, dword [esp + 0x14]
mov eax, dword [edi]
lea ecx, [esp + 0xc]
push ecx
push edx
push ebx
mov dword [esp + 0x18], eax
call dword [sym.imp.WS2_32.dll_getsockname]
mov ebx, eax
mov eax, dword [esp + 0xc]
mov dword [edi], eax
call fcn.100ae100
mov edi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
adc byte [ecx + 0x47e8906], cl
test ebx, ebx
jne 0x1002299e
xor edi, edi
call fcn.100ae100
mov dword [esi], edi
mov dword [esi + 4], eax
pop edi
mov eax, ebx
pop ebx
add esp, 8
ret

Function at 0x100229b0
Capabilities:
Set socket configuration

Disassembly:
push ebp
push edi
mov edi, eax
cmp edi, 0xffffffff
jne 0x100229ce
mov edi, 0x2719
call fcn.100ae100
mov dword [esi + 4], eax
mov dword [esi], edi
or eax, 0xffffffff
pop edi
pop ebp
ret
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push ebx
push 0x8004667e
push edi
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov ebp, eax
call fcn.100ae100
mov edi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esi], eax
mov dword [esi + 4], edi
test ebp, ebp
jl 0x10022a1a
xor edi, edi
call fcn.100ae100
mov dword [esi + 4], eax
mov eax, dword [esp + 0xc]
mov dword [esi], edi
cmp dword [ebx], edi
je 0x10022a17
or byte [eax], 1
mov eax, ebp
pop edi
pop ebp
ret
and byte [eax], 0xfc
pop edi
mov eax, ebp
pop ebp
ret
Function at 0x100230e0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x100e1ba4
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x1010bb90]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
mov dword [esi], vtable.boost::asio::detail::select_reactor.0
mov ecx, esi
mov dword [esp + 0x14], 3
call fcn.10023170
push 0x100230d0
push 4
push 0x24
lea eax, [esi + 0x38]
push eax
mov byte [esp + 0x24], 2
call fcn.100c0d91
lea edi, [esi + 0x30]
mov byte [esp + 0x14], 1
call fcn.10022f00
lea ecx, [esi + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov dword [esi], vtable.boost::asio::io_service::service.0
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret 4

Function at 0x100274a0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x100dea38
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x1010bb90]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
mov edi, dword [esp + 0x20]
push edi
call fcn.100015a0
mov dword [esp + 0x18], 0
test edi, edi
je 0x100274e4
add edi, 0x28
jmp 0x100274e6
xor edi, edi
mov dword [esi + 0x28], vtable.boost::exception.0
mov ecx, dword [edi + 4]
mov dword [esi + 0x2c], ecx
test ecx, ecx
je 0x100274fe
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
call edx
mov eax, dword [edi + 8]
mov dword [esi + 0x30], eax
mov ecx, dword [edi + 0xc]
mov dword [esi + 0x34], ecx
mov edx, dword [edi + 0x10]
mov dword [esi + 0x38], edx
mov dword [esi], vtable.boost::exception_detail::error_info_injector_class_std::runtime_error_.1.0
mov dword [esi + 0x28], vtable.boost::exception_detail::error_info_injector_class_std::runtime_error_.0
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret 4

Function at 0x10027570
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x100df778
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x1010bb90]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
mov edi, dword [esp + 0x20]
push edi
call fcn.100018a0
mov dword [esi], vtable.boost::gregorian::bad_day_of_month.0
mov dword [esp + 0x18], 0
test edi, edi
je 0x100275ba
add edi, 0x28
jmp 0x100275bc
xor edi, edi
mov dword [esi + 0x28], vtable.boost::exception.0
mov ecx, dword [edi + 4]
mov dword [esi + 0x2c], ecx
test ecx, ecx
je 0x100275d4
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
call edx
mov eax, dword [edi + 8]
mov dword [esi + 0x30], eax
mov ecx, dword [edi + 0xc]
mov dword [esi + 0x34], ecx
mov edx, dword [edi + 0x10]
mov dword [esi + 0x38], edx
mov dword [esi], vtable.boost::exception_detail::error_info_injector_struct_boost::gregorian::bad_day_of_month_.1.0
mov dword [esi + 0x28], vtable.boost::exception_detail::error_info_injector_struct_boost::gregorian::bad_day_of_month_.0
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret 4