joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4cf596
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x50d400]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.004c6c44
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.004c6c44
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x4cf60d
cmp word [ecx], dx
je 0x4cf60d
mov eax, dword [0x4faf84]
push edi
dec eax
push eax
push 0x4fae70
call fcn.004cf535
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x4cf680
cmp word [eax], dx
je 0x4cf680
mov eax, dword [edi]
test eax, eax
je 0x4cf631
cmp word [eax], dx
je 0x4cf631
lea eax, [ebp - 0x10]
push eax
call fcn.004cef18
jmp 0x4cf63a
lea eax, [ebp - 0x10]
push eax
call fcn.004cefb3
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x4cf6aa
mov eax, dword [0x4fae6c]
push dword [ebp - 0x14]
dec eax
push eax
push 0x4fab60
call fcn.004cf535
add esp, 0xc
test al, al
je 0x4cf6aa
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x4cf675
cmp word [eax], di
je 0x4cf675
lea eax, [ebp - 0x10]
push eax
call fcn.004cef18
pop ecx
jmp 0x4cf6ac
lea eax, [ebp - 0x10]
push eax
call fcn.004cefb3
jmp 0x4cf672
mov eax, dword [edi]
test eax, eax
je 0x4cf697
cmp word [eax], dx
je 0x4cf697
lea eax, [ebp - 0x10]
push eax
call fcn.004ceecd
pop ecx
jmp 0x4cf6aa
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x4cf775
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.004cf3ba
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x4cf775
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x4cf775
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x4cf775
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x4cf702
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.004c8eff
test ebx, ebx
je 0x4cf770
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.004c8eff
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4cf775
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4cf775
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.004bfc81
add esp, 0x10
xor eax, eax
inc eax
jmp 0x4cf777
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a8986
leave
ret
Function at 0x4d322b
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x50d400]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp eax, 0x1a
jbe 0x4d326e
call fcn.004af6de
mov dword [eax], 0xf
call fcn.004af6f1
mov dword [eax], 0xd
call fcn.004af38f
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a8986
leave
ret
test eax, eax
jne 0x4d3275
inc eax
jmp 0x4d3262
add eax, 0x40
push 0x3a
mov word [ebp - 0xc], ax
pop eax
mov word [ebp - 0xa], ax
push 0x5c
pop eax
mov word [ebp - 8], ax
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov ecx, eax
test ecx, ecx
je 0x4d3260
xor eax, eax
cmp ecx, 1
setne al
jmp 0x4d3262

Function at 0x4d4940
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4d496d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4d496d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x10001840
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10008745
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
sub dword [ebp + 0xc], 1
jne 0x1000195d
push 1
call fcn.100078c6
mov dword [ebp - 0x1c], eax
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 0
mov esi, dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
push ecx
push 0
push eax
push 0x10001b30
push 0
push 0
call esi
add esp, 0x1c
mov dword [ebp - 0x18], eax
test eax, eax
je 0x1000194e
push 1
mov dword [ebp - 4], 1
call fcn.100078c6
mov dword [ebp - 0x1c], eax
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 2
push ecx
push 0
push eax
push 0x10001b90
push 0
push 0
call esi
add esp, 0x1c
mov dword [ebp - 0x24], eax
test eax, eax
je 0x1000193f
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x10001937
mov esi, dword [sym.imp.MSVCP140.dll__Thrd_detach]
push eax
push dword [ebp - 0x18]
call esi
add esp, 8
test eax, eax
je 0x10001900
push eax
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_]
mov eax, dword [ebp - 0x20]
xorps xmm0, xmm0
movlpd qword [ebp - 0x18], xmm0
test eax, eax
je 0x10001937
push eax
push dword [ebp - 0x24]
call esi
add esp, 8
test eax, eax
je 0x10001923
push eax
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_]
cmp dword [ebp - 0x14], 0
xorps xmm0, xmm0
movlpd qword [ebp - 0x24], xmm0
je 0x1000195d
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
push 1
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
push 6
mov dword [ebp - 0x20], 0
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
push 6
mov dword [ebp - 0x14], 0
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100078aa
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10003670
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1000893d
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 1
lea ecx, [ebp + 8]
cmp dword [ebp + 0x1c], 0x10
mov eax, dword [ebp + 0x18]
cmovae ecx, dword [ebp + 8]
add eax, ecx
cmp dword [ebp + 0x1c], 0x10
lea ecx, [ebp + 8]
cmovae ecx, dword [ebp + 8]
push ecx
push eax
push ecx
lea ecx, [ebp - 0x40]
call fcn.10003f70
mov byte [ebp - 4], 2
lea ecx, [ebp + 0x20]
cmp dword [ebp + 0x34], 0x10
mov eax, dword [ebp + 0x30]
cmovae ecx, dword [ebp + 0x20]
add eax, ecx
cmp dword [ebp + 0x34], 0x10
lea ecx, [ebp + 0x20]
cmovae ecx, dword [ebp + 0x20]
push ecx
push eax
push ecx
lea ecx, [ebp - 0x28]
call fcn.10003f70
cmp dword [ebp - 0x2c], 8
lea ecx, [ebp - 0x40]
lea eax, [ebp - 0x28]
mov dword [ebp - 0x7c], 0x3c
cmovae ecx, dword [ebp - 0x40]
xorps xmm0, xmm0
cmp dword [ebp - 0x14], 8
movlpd qword [ebp - 0x58], xmm0
cmovae eax, dword [ebp - 0x28]
mov dword [ebp - 0x64], eax
lea eax, [ebp - 0x7c]
push eax
movlpd qword [ebp - 0x50], xmm0
movlpd qword [ebp - 0x48], xmm0
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x6c], ecx
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov ecx, dword [ebp - 0x14]
cmp ecx, 8
jb 0x10003793
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10003789
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000385d
push ecx
push edx
call fcn.100078b8
add esp, 8
mov ecx, dword [ebp - 0x2c]
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
cmp ecx, 8
jb 0x100037e1
mov edx, dword [ebp - 0x40]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x100037d7
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000385d
push ecx
push edx
call fcn.100078b8
add esp, 8
mov ecx, dword [ebp + 0x1c]
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
cmp ecx, 0x10
jb 0x10003825
mov edx, dword [ebp + 8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1000381b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000385d
push ecx
push edx
call fcn.100078b8
add esp, 8
mov ecx, dword [ebp + 0x34]
mov dword [ebp + 0x18], 0
mov dword [ebp + 0x1c], 0xf
mov byte [ebp + 8], 0
cmp ecx, 0x10
jb 0x1000386d
mov edx, dword [ebp + 0x20]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10003863
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10003863
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.100078b8
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100078aa
mov esp, ebp
pop ebp
ret
Function at 0x1000785a
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 2
lea eax, [ebp - 4]
push eax
push 0x20000001
push str._x_sys_default_locale
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov esi, dword [ebp + 0xc]
neg eax
sbb eax, eax
xor ecx, ecx
and eax, dword [ebp - 4]
push ecx
push ecx
push esi
push eax
push dword [ebp + 8]
mov dword [ebp - 4], eax
push ecx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push eax
push dword [esi]
call fcn.10007836
pop esi
leave
ret 8
Function at 0x409ac0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x432449
mov eax, dword fs:[0]
push eax
sub esp, 0x398
mov eax, dword [0x43e460]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 0x3a0]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x409b26
push str.Error:_Failed_to_setup_networking_n
call fcn.0041c600
add eax, 0x40
push eax
call fcn.0041c4f4
add esp, 8
mov eax, 1
jmp 0x409c2a
lea ecx, [ebp - 0x210]
call fcn.00409c50
mov esi, dword [ebp + 8]
mov dword [ebp - 4], 0
cmp esi, 1
jle 0x409bef
mov eax, dword [edi + 4]
mov ecx, str.console
lea esp, [esp]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x409b70
test dl, dl
je 0x409b6c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x409b70
add eax, 2
add ecx, 2
test dl, dl
jne 0x409b50
xor eax, eax
jmp 0x409b75
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x409bef
push 0x14
call fcn.0041be14
add esp, 4
mov dword [ebp - 0x3a4], eax
mov byte [ebp - 4], 1
test eax, eax
je 0x409ba8
lea ecx, [ebp - 0x210]
push ecx
push 0x409a40
mov ecx, eax
call fcn.00419a30
mov esi, eax
jmp 0x409baa
xor esi, esi
mov ecx, esi
mov byte [ebp - 4], 0
call fcn.00419ab0
push str.Press_Enter_to_end..._n
call fcn.0041c077
add esp, 4
call fcn.0041cbd0
lea ecx, [ebp - 0x210]
call fcn.00409dd0
test esi, esi
je 0x409be0
mov edx, dword [esi]
mov eax, dword [edx]
push 1
mov ecx, esi
call eax
push str.Main_ended_n
call fcn.0041c077
add esp, 4
jmp 0x409c16
push edi
push esi
lea ecx, [ebp - 0x210]
call fcn.0040a9d0
test eax, eax
jne 0x409c16
push str.Error:_cant_run_service_n
call fcn.0041c600
add eax, 0x40
push eax
call fcn.0041c4f4
add esp, 8
lea ecx, [ebp - 0x210]
mov dword [ebp - 4], 0xffffffff
call fcn.00409cf0
xor eax, eax
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.0041be05
mov esp, ebp
pop ebp
ret
Function at 0x40a2b0
Capabilities:
Get session user name
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x12a8
call fcn.0041d020
mov eax, dword [0x43e460]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, ecx
mov ecx, dword [ebp + 0xc]
push edi
xor edi, edi
mov dword [esi], method.std::error_category.virtual_4
mov dword [esi + 4], eax
cmp ecx, edi
je 0x40a2e2
mov eax, ecx
mov dword [esi + 8], eax
mov eax, dword [ebp + 0x10]
mov dword [esi + 0xc], eax
lea eax, [ebp - 0x1298]
push eax
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], 0x45
mov dword [esi + 0x40], edi
mov dword [esi + 0x48], edi
mov dword [esi + 0x4c], 0xf01ff
mov dword [esi + 0x50], 0x10
mov dword [esi + 0x54], 2
mov dword [esi + 0x58], 1
mov dword [esi + 0x5c], edi
mov dword [esi + 0x60], edi
mov dword [esi + 0x64], edi
mov dword [esi + 0x68], edi
mov dword [esi + 0x6c], edi
mov dword [ebp - 0x1298], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
xor ecx, ecx
cmp dword [ebp - 0x1288], 2
mov dword [0x43ffb8], esi
sete cl
mov dword [esi + 0x44], ecx
mov dword [0x43ffb4], 1
mov dword [esi + 0x1c], 0x10
mov dword [esi + 0x2c], edi
cmp dword [esi + 0x44], edi
je 0x40a450
push 0x100
mov eax, 0xff
lea edx, [ebp - 0x104]
push edi
push edx
mov dword [ebp - 0x12a4], 0x1000
mov dword [ebp - 0x129c], eax
mov dword [ebp - 0x12a0], eax
call fcn.0041c890
push 0x100
lea eax, [ebp - 0x204]
push edi
push eax
call fcn.0041c890
push 0x1000
lea ecx, [ebp - 0x1204]
push edi
push ecx
call fcn.0041c890
add esp, 0x24
lea edx, [ebp - 0x129c]
push edx
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
lea ecx, [ebp - 0x12a8]
push ecx
lea edx, [ebp - 0x12a0]
push edx
lea eax, [ebp - 0x204]
push eax
lea ecx, [ebp - 0x12a4]
push ecx
lea edx, [ebp - 0x1204]
push edx
lea eax, [ebp - 0x104]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameA]
test eax, eax
je 0x40a450
lea ecx, [ebp - 0x1204]
push ecx
call dword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
je 0x40a450
lea edx, [ebp - 0x1204]
push edx
call dword [sym.imp.ADVAPI32.dll_GetLengthSid]
mov edi, eax
push edi
call fcn.00419c3d
add esp, 4
lea ecx, [ebp - 0x1204]
push ecx
push eax
push edi
mov dword [esi + 0x40], eax
call dword [sym.imp.ADVAPI32.dll_CopySid]
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0041be05
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40b9d0
Capabilities:
List tcp connections and listeners
Set tcp connection state

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x43e460]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor ebx, ebx
push 0x1c
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], ebx
call fcn.00419c3d
mov esi, eax
add esp, 4
cmp esi, ebx
jne 0x40ba1d
push str.Error_allocating_memory_n
call fcn.0041c077
add esp, 4
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041be05
mov esp, ebp
pop ebp
ret
push ebx
push 5
push 2
push 1
lea eax, [ebp - 0x1c]
push eax
push esi
mov dword [ebp - 0x1c], 0x1c
call sub.IPHLPAPI.DLL_GetExtendedTcpTable
cmp eax, 0x7a
jne 0x40ba52
push esi
call fcn.0041c06c
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.00419c3d
mov esi, eax
add esp, 8
cmp esi, ebx
je 0x40ba00
push ebx
push 5
push 2
push 1
lea edx, [ebp - 0x1c]
push edx
push esi
call sub.IPHLPAPI.DLL_GetExtendedTcpTable
cmp eax, ebx
jne 0x40bad7
mov eax, dword [esi]
push eax
push str._tNumber_of_entries:__d_n
call fcn.0041c077
add esp, 8
cmp dword [esi], ebx
jle 0x40babe
push edi
lea edi, [esi + 4]
nop
mov ecx, dword [ebp - 0x20]
cmp ecx, dword [edi + 0x14]
jne 0x40bab5
cmp dword [edi], 7
jne 0x40bab5
mov eax, dword [edi + 8]
mov edx, dword [edi + 4]
mov ecx, dword [edi + 0xc]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], edx
mov edx, dword [edi + 0x10]
lea eax, [ebp - 0x18]
push eax
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 0x18], 0xc
call sub.IPHLPAPI.DLL_SetTcpEntry
inc ebx
add edi, 0x18
cmp ebx, dword [esi]
jl 0x40ba80
pop edi
push esi
call fcn.0041c06c
add esp, 4
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041be05
mov esp, ebp
pop ebp
ret
push eax
push str._tGetTcpTable_failed_with__d_n
call fcn.0041c077
push esi
call fcn.0041c06c
mov ecx, dword [ebp - 4]
add esp, 0xc
pop esi
xor ecx, ebp
pop ebx
call fcn.0041be05
mov esp, ebp
pop ebp
ret
Function at 0x40bb30
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov ecx, 8
lea edi, [ebp - 0x24]
rep movsd dword es:[edi], dword [esi]
mov ebx, dword [ebp - 0x1c]
cmp ebx, 2
je 0x40bb53
mov ebx, 1
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x20]
push eax
push ebx
push ecx
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40bb7d
mov edx, dword [ebp + 0xc]
pop edi
pop esi
mov dword [edx], 1
or eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8
mov edi, dword [sym.imp.WS2_32.dll_setsockopt]
push 4
lea eax, [ebp - 4]
push eax
push 0xfffffffffffffffb
push 0xffff
push esi
mov dword [ebp - 4], 1
call edi
cmp eax, 0xffffffff
jne 0x40bbd9
push str.Error:_Cant_bind_socket_using_exclusive_address_n
call fcn.0041c077
add esp, 4
push 2
push esi
call dword [sym.imp.WS2_32.dll_shutdown]
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [ebp + 0xc]
pop edi
pop esi
mov dword [ecx], 4
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret 8
cmp ebx, 2
je 0x40bc19
push 4
lea ecx, [ebp + 8]
push ecx
push 0x80
push 0xffff
xor edx, edx
push esi
mov dword [ebp + 8], edx
call edi
cmp eax, 0xffffffff
jne 0x40bc19
push esi
call fcn.0040bb00
mov edx, dword [ebp + 0xc]
add esp, 4
pop edi
pop esi
mov dword [edx], 2
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret 8
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x40d170
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4324eb
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x43e460]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.0041a4c8
push 4
mov dword [ebp - 4], 0
call fcn.0041be14
mov edi, eax
add esp, 4
test edi, edi
je 0x40d1f0
call fcn.0041a131
mov dword [edi], eax
call fcn.00419ef0
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.00419e25
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x40d1e6
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.00419e4d
jmp 0x40d1f2
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
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
Function at 0x40ffe0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43289e
mov eax, dword fs:[0]
push eax
sub esp, 0xbc
mov eax, dword [0x43e460]
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
push str._isRemote_called___n
mov ebx, ecx
call fcn.0041c077
push 0x80
xor edi, edi
lea eax, [ebp - 0xac]
push edi
push eax
call fcn.0041c890
mov eax, dword [ebp + 8]
add esp, 0x10
lea ecx, [ebp - 0xc0]
push ecx
lea edx, [ebp - 0xac]
push edx
push eax
mov dword [ebp - 0xc0], 0x80
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x41005f
or eax, 0xffffffff
jmp 0x4101de
lea esi, [ebx + 0x108]
mov ecx, esi
mov dword [ebp - 0xb0], edi
mov dword [ebp - 0xbc], esi
mov dword [ebp - 0xb8], edi
call fcn.004199f0
cmp byte [ebx + 0x104], 0
mov dword [ebp - 4], edi
je 0x4101c6
sub esp, 0x80
mov edi, esp
mov ecx, 0x20
lea esi, [ebp - 0xac]
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebp - 0x2c]
push ecx
call fcn.00402a30
add esp, 0x84
cmp dword [ebp - 0x1c], 0
mov byte [ebp - 4], 1
jne 0x4100fd
cmp dword [ebp - 0x18], 0x10
jb 0x4100ce
mov edx, dword [ebp - 0x2c]
push edx
call fcn.0041b28a
add esp, 4
mov ecx, dword [ebp - 0xbc]
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
mov dword [ebp - 4], 0xffffffff
test ecx, ecx
je 0x4100f6
call fcn.00419a00
xor eax, eax
jmp 0x4101de
lea ecx, [ebx + 0x100]
mov dword [ebp - 0xb4], ecx
call fcn.004199f0
mov esi, dword [ebx + 0xf0]
mov edi, 0xf
cmp esi, dword [ebx + 0xf4]
je 0x410193
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0xc4], esp
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x2c]
mov dword [ecx + 0x14], edi
mov dword [ecx + 0x10], 0
push eax
mov byte [ecx], 0
call fcn.00401d60
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0xc8], esp
push 0xffffffffffffffff
push 0
mov dword [ecx + 0x14], edi
mov dword [ecx + 0x10], 0
push esi
mov byte [ebp - 4], 2
mov byte [ecx], 0
call fcn.00401d60
mov byte [ebp - 4], 1
call fcn.00404c00
add esp, 0x38
test al, al
jne 0x410189
add esi, 0x1c
cmp esi, dword [ebx + 0xf4]
jne 0x410121
jmp 0x410193
mov dword [ebp - 0xb0], 1
mov ecx, dword [ebp - 0xb4]
call fcn.00419a00
cmp dword [ebp - 0x18], 0x10
jb 0x4101b0
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.0041b28a
add esp, 4
mov esi, dword [ebp - 0xbc]
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
xor edi, edi
mov dword [ebp - 4], 0xffffffff
cmp esi, edi
je 0x4101d8
mov ecx, esi
call fcn.00419a00
mov eax, dword [ebp - 0xb0]
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.0041be05
mov esp, ebp
pop ebp
ret 4