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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
sub esp, 8
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
test eax, eax
jg 0x40bfc4
jl 0x40bfb9
test ecx, ecx
jne 0x40bfc4
xor eax, eax
xor edx, edx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x40bfde
push eax
push ecx
push dword [ebp + 8]
mov ecx, ebx
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__]
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x1c]
push esi
push edi
mov edi, ecx
mov eax, dword [eax]
mov dword [ebp - 8], eax
test eax, eax
je 0x40c02a
mov eax, dword [ebx + 0x2c]
lea edx, [ebx + 0x2c]
mov dword [ebp - 4], edx
mov eax, dword [eax]
test eax, eax
je 0x40c030
mov edi, dword [ebp + 8]
cmp eax, ecx
mov esi, ecx
cmovb esi, eax
push esi
push dword [ebp - 8]
push edi
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebx + 0x2c]
add edi, esi
mov dword [ebp + 8], edi
add esp, 0xc
mov edi, dword [ebp + 0xc]
sub edi, esi
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
jmp 0x40c030
lea eax, [ebx + 0x2c]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
mov esi, dword [ebp + 8]
je 0x40c0a6
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x40c05c
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 [ebp - 4]
mov eax, dword [eax]
mov dword [eax], edx
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
cmp edi, 0xfff
jbe 0x40c094
nop dword [eax]
push dword [ebx + 0x4c]
push 0xfff
push 1
push esi
call eax
add esp, 0x10
add esi, eax
sub edi, eax
cmp eax, 0xfff
jne 0x40c0a6
cmp edi, eax
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
ja 0x40c070
test edi, edi
je 0x40c0a6
push dword [ebx + 0x4c]
push edi
push 1
push esi
call eax
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 0x40c420
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x450040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x40c450
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004403ea
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x40c48c
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x40c48c
lea ecx, [edi - 1]
mov eax, ebx
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
pop edi
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004403ea
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x40c563
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x40c4b4
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x40c4c0
movsx eax, bl
jmp 0x40c4f8
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 - 0x30]
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 0x40c522
sub eax, 1
je 0x40c522
sub eax, 2
jne 0x40c563
movsx eax, byte [ebp - 0x25]
push dword [esi + 0x4c]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmove ebx, ecx
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004403ea
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x40c540
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 0x40c563
lea ecx, [ebp - 0x25]
mov byte [esi + 0x3d], 1
or eax, 0xffffffff
cmp dword [ebp - 0x30], ecx
pop edi
pop esi
cmovne eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004403ea
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004403ea
mov esp, ebp
pop ebp
ret 4
Function at 0x40cbb0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x450040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x40cc6c
cmp byte [esi + 0x3d], 0
je 0x40cc6c
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x40cc5a
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, 0
je 0x40cc21
sub eax, 1
je 0x40cc25
sub eax, 2
jne 0x40cc5a
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004403ea
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x40cc43
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 0x40cc5a
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004403ea
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004403ea
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.004403ea
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x441c8c
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x450040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], edi
mov eax, dword [ebp + 8]
mov dword [ebp - 4], 0
mov dword [edi], eax
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
lea esi, [edi + 0x38]
mov dword [edi + 0x30], 0
mov byte [edi + 0x34], 0
mov dword [ebp - 0x14], esi
mov dword [esi + 0x24], 0
mov byte [ebp - 4], 4
mov ecx, dword [ebp + 0x34]
test ecx, ecx
je 0x40ef54
mov eax, dword [ecx]
push esi
call dword [eax]
mov dword [esi + 0x24], eax
mov al, byte [ebp + 0xc]
lea ecx, [edi + 0x70]
mov byte [ebp - 4], 5
mov byte [edi + 0x60], al
push 9
mov byte [edi + 0x68], 9
call fcn.0040e5e0
lea eax, [ebp - 0xd]
mov byte [ebp - 4], 6
push eax
lea ecx, [edi + 0x10]
mov byte [ebp - 0xd], 1
call fcn.0040fd60
mov ecx, dword [ebp + 0x34]
test ecx, ecx
je 0x40ef98
mov esi, dword [ecx]
lea eax, [ebp + 0x10]
cmp ecx, eax
setne dl
movzx edx, dl
push edx
call dword [esi + 0x10]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x30
Function at 0x4187a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x450040]
xor eax, ebp
mov dword [ebp - 4], eax
movaps xmm0, xmmword [0x448020]
xor ecx, ecx
movups xmmword [ebp - 0x34], xmm0
mov dword [ebp - 0x14], 0x7a777a3f
movaps xmm0, xmmword [0x447ec0]
movups xmmword [ebp - 0x24], xmm0
mov dword [ebp - 0x10], 0x3f28331e
mov dword [ebp - 0xc], 0x1e692e39
mov word [ebp - 8], 0x637a
mov byte [ebp - 6], 0
mov al, byte [ebp - 0x34]
xor byte [ebp + ecx - 0x33], al
inc ecx
cmp ecx, 0x2d
jb 0x4187e7
lea eax, [ebp - 0x33]
mov byte [ebp - 6], 0
push eax
push 0
call dword [sym.imp.USER32.dll_FindWindowA]
test eax, eax
jne 0x41883f
movaps xmm0, xmmword [0x448080]
xor ecx, ecx
movups xmmword [ebp - 0x24], xmm0
mov dword [ebp - 0x14], 0x296c6468
mov dword [ebp - 0x10], 0x6d67607e
mov dword [ebp - 0xc], 0x287e66
nop word [eax + eax]
mov al, byte [ebp - 0x24]
xor byte [ebp + ecx - 0x23], al
inc ecx
cmp ecx, 0x1a
jae 0x41884d
jmp 0x418830
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004403ea
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x23]
mov byte [ebp - 9], 0
push eax
push 1
call fcn.004019d0
int3

Function at 0x418910
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x450040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
push dword [0x4500dc]
mov dword [ebp - 0x22c], eax
mov eax, dword [ebp + 0x10]
push 0x18
mov dword [ebp - 0x230], eax
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
jne 0x41895e
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004403ea
mov esp, ebp
pop ebp
ret 0xc
push ebx
push edi
lea eax, [ebp - 0x228]
mov dword [ebp - 0x228], 0x224
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Module32First]
test eax, eax
je 0x4189c7
mov ebx, dword [ebp + 8]
mov edi, dword [sym.imp.KERNEL32.dll_Module32Next]
mov eax, ebx
lea ecx, [ebp - 0x208]
nop dword [eax]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x4189b0
test dl, dl
je 0x4189ac
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x4189b0
add ecx, 2
add eax, 2
test dl, dl
jne 0x418990
xor eax, eax
jmp 0x4189b5
sbb eax, eax
or eax, 1
test eax, eax
je 0x4189e3
lea eax, [ebp - 0x228]
push eax
push esi
call edi
test eax, eax
jne 0x418985
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebx
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004403ea
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebp - 0x22c]
mov eax, dword [ebp - 0x214]
push esi
mov dword [ecx], eax
mov ecx, dword [ebp - 0x230]
mov eax, dword [ebp - 0x210]
mov dword [ecx], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop ebx
xor ecx, ebp
pop esi
call fcn.004403ea
mov esp, ebp
pop ebp
ret 0xc
Function at 0x41a3c0
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40c
mov eax, dword [0x450040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, ecx
mov dword [ebp - 0x40c], eax
push edi
mov edi, edx
movzx eax, word [esi]
cmp eax, 2
je 0x41a3f3
cmp eax, 0x17
jne 0x41a472
movzx eax, word [esi + 2]
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
movzx eax, ax
push 0x401
mov dword [ebx], eax
lea eax, [ebp - 0x408]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x408]
push 2
push 0
push 0
push 0x401
push eax
push edi
push esi
call dword [sym.imp.WS2_32.dll_getnameinfo]
test eax, eax
jne 0x41a472
lea edx, [ebp - 0x408]
lea esi, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x41a443
mov ecx, dword [ebp - 0x40c]
lea eax, [ebp - 0x408]
sub edx, esi
push edx
push eax
call fcn.0042ae00
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004403ea
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004403ea
mov esp, ebp
pop ebp
ret
Function at 0x41dcf0
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x11c
mov eax, dword [0x450040]
xor eax, esp
mov dword [esp + 0x118], eax
mov eax, dword [ecx + 0x14]
mov edx, dword [ecx + 8]
mov dword [esp + 8], eax
mov eax, dword [ecx + 0xc]
push ebx
mov dword [esp + 0xc], eax
mov eax, dword [ecx + 4]
push esi
mov esi, dword [ecx + 0x10]
push edi
mov edi, dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
lea ebx, [eax + 1]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], 1
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], esi
lea eax, [esp + 0x10]
push eax
push 0
push 0
lea eax, [esp + 0x24]
push eax
push ebx
call dword [sym.imp.WS2_32.dll_select]
mov esi, eax
test esi, esi
jns 0x41dd65
call edi
cmp dword [eax], 4
je 0x41dd41
test esi, esi
mov ecx, dword [esp + 0x124]
setg al
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004403ea
mov esp, ebp
pop ebp
ret

Function at 0x41dd80
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x124
mov eax, dword [0x450040]
xor eax, esp
mov dword [esp + 0x120], eax
mov eax, dword [ecx + 0x24]
mov edx, dword [ecx + 0x18]
mov dword [esp + 0x10], eax
mov eax, dword [ecx + 0x1c]
push ebx
mov ebx, dword [sym.imp.WS2_32.dll_select]
mov dword [esp + 0x14], eax
mov eax, dword [ecx + 4]
push esi
mov esi, dword [ecx + 0x20]
mov dword [esp + 0x20], eax
inc eax
mov dword [esp + 0x18], esi
mov esi, dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
push edi
mov dword [esp + 0x14], ecx
mov dword [esp + 0x20], 1
mov dword [esp + 0x18], edx
mov dword [esp + 0x10], eax
nop dword [eax]
lea ecx, [esp + 0x18]
push ecx
push 0
lea ecx, [esp + 0x28]
push ecx
push 0
push eax
call ebx
mov edi, eax
test edi, edi
jns 0x41de04
call esi
cmp dword [eax], 4
mov eax, dword [esp + 0x10]
je 0x41dde0
test edi, edi
jle 0x41dea8
mov eax, dword [esp + 0x14]
mov dword [esp + 0x20], 1
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
mov eax, dword [eax + 4]
mov dword [esp + 0x10], eax
mov dword [esp + 0x24], eax
inc eax
mov dword [esp + 0x14], eax
lea ecx, [esp + 0x18]
push ecx
push 0
push 0
lea ecx, [esp + 0x2c]
push ecx
push eax
call ebx
mov edi, eax
test edi, edi
jns 0x41de5a
call esi
cmp dword [eax], 4
mov eax, dword [esp + 0x14]
je 0x41de36
test edi, edi
je 0x41de91
test edi, edi
jns 0x41de67
call esi
cmp dword [eax], 9
je 0x41dea8
mov ebx, dword [esp + 0x10]
lea eax, [esp + 0xf]
nop
push 2
push 1
push eax
push ebx
call dword [sym.imp.WS2_32.dll_recv]
mov edi, eax
test edi, edi
jns 0x41de8f
call esi
cmp dword [eax], 4
lea eax, [esp + 0xf]
je 0x41de70
test edi, edi
jle 0x41dea8
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x120]
xor ecx, esp
call fcn.004403ea
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x12c]
xor al, al
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004403ea
mov esp, ebp
pop ebp
ret
Function at 0x41dec0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [ebp + 0xc]
mov eax, accept
push esi
mov esi, ecx
cmp ebx, eax
push edi
cmova ebx, eax
mov dword [ebp - 0xc], esi
mov dword [ebp + 0xc], ebx
mov eax, dword [esi + 0x34]
mov edi, dword [esi + 0x38]
cmp eax, edi
jae 0x41df2b
mov ecx, dword [esi + 0x28]
sub edi, eax
cmp ebx, edi
ja 0x41df0e
push ebx
add eax, ecx
push eax
push dword [ebp + 8]
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov eax, ebx
add dword [esi + 0x34], ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push edi
add ecx, eax
push ecx
push dword [ebp + 8]
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
add dword [esi + 0x34], edi
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [esi]
mov eax, dword [eax + 4]
call eax
test al, al
jne 0x41df42
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret 8
mov edi, dword [esi + 4]
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
cmp ebx, 0x1000
jae 0x41dfd0
mov eax, dword [esi + 0x28]
mov ebx, edi
mov esi, eax
push 0
push 0x1000
push esi
push ebx
call dword [sym.imp.WS2_32.dll_recv]
mov edi, eax
test edi, edi
jns 0x41df84
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [eax], 4
je 0x41df62
test edi, edi
mov esi, dword [ebp - 0xc]
mov ebx, dword [ebp + 0xc]
jle 0x41df20
mov eax, dword [esi + 0x28]
cmp edi, ebx
jg 0x41dfab
push edi
push eax
push dword [ebp + 8]
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push ebx
push eax
push dword [ebp + 8]
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov dword [esi + 0x38], edi
mov dword [esi + 0x34], ebx
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0
push ebx
push dword [ebp + 8]
push edi
call dword [sym.imp.WS2_32.dll_recv]
mov esi, eax
test esi, esi
jns 0x41dfee
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [eax], 4
je 0x41dfd0
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x41e0d0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x90
mov eax, dword [0x450040]
xor eax, esp
mov dword [esp + 0x8c], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [esp + 8]
push edi
mov edi, dword [ebp + 0xc]
push eax
lea eax, [esp + 0x14]
mov dword [esp + 0x10], 0x80
push eax
push dword [ecx + 4]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x41e123
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0x10]
push edi
push esi
call fcn.0041a3c0
add esp, 8
mov ecx, dword [esp + 0x94]
pop edi
pop esi
xor ecx, esp
call fcn.004403ea
mov esp, ebp
pop ebp
ret 8
Function at 0x421400
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4430e8
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x450040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
xorps xmm0, xmm0
mov eax, 0x2d2d
movups xmmword [ecx], xmm0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x10], 2
mov dword [ecx + 0x14], 0xf
mov word [ecx], ax
mov byte [ecx + 2], 0
movups xmmword [ecx + 0x18], xmm0
mov dword [ecx + 0x28], 2
mov eax, 0xa0d
mov dword [ecx + 0x2c], 0xf
mov word [ecx + 0x18], ax
mov byte [ecx + 0x1a], 0
movups xmmword [ecx + 0x30], xmm0
mov dword [ecx + 0x40], 4
mov eax, ecx
mov dword [ecx + 0x44], 0xf
mov dword [ecx + 0x30], 0xa0d2d2d
mov byte [ecx + 0x34], 0
movups xmmword [ecx + 0x48], xmm0
mov dword [ecx + 0x58], 0
mov dword [ecx + 0x5c], 0xf
mov byte [ecx + 0x48], 0
movups xmmword [ecx + 0x60], xmm0
mov dword [ecx + 0x70], 0
mov dword [ecx + 0x74], 0xf
mov byte [ecx + 0x60], 0
movups xmmword [ecx + 0x78], xmm0
mov dword [ecx + 0x88], 0
mov dword [ecx + 0x8c], 0xf
mov byte [ecx + 0x78], 0
mov dword [ecx + 0x90], 0
mov byte [ecx + 0x94], 0
movups xmmword [ecx + 0x98], xmm0
mov dword [ecx + 0xa8], 0
mov dword [ecx + 0xac], 0xf
mov byte [ecx + 0x98], 0
movups xmmword [ecx + 0xb0], xmm0
mov dword [ecx + 0xc0], 0
mov dword [ecx + 0xc4], 0xf
mov byte [ecx + 0xb0], 0
movups xmmword [ecx + 0xc8], xmm0
mov dword [ecx + 0xd8], 0
mov dword [ecx + 0xdc], 0xf
mov byte [ecx + 0xc8], 0
movups xmmword [ecx + 0xe0], xmm0
mov dword [ecx + 0xf0], 0
mov dword [ecx + 0xf4], 0xf
mov byte [ecx + 0xe0], 0
movups xmmword [ecx + 0xf8], xmm0
mov dword [ecx + 0x108], 0
mov dword [ecx + 0x10c], 0xf
mov byte [ecx + 0xf8], 0
mov dword [ecx + 0x110], 0
mov dword [ecx + 0x114], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x425550
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4435ee
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x450040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
xorps xmm0, xmm0
movups xmmword [edi], xmm0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
mov byte [edi], 0
mov dword [ebp - 4], 0
movups xmmword [edi + 0x18], xmm0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0xf
mov byte [edi + 0x18], 0
lea esi, [edi + 0x30]
mov byte [ebp - 4], 1
push 0x40
mov dword [ebp - 0x14], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.00440649
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
xorps xmm0, xmm0
movups xmmword [edi + 0x38], xmm0
mov dword [edi + 0x48], 0
mov dword [edi + 0x4c], 0xf
mov byte [edi + 0x38], 0
movups xmmword [edi + 0x50], xmm0
mov dword [edi + 0x60], 0
mov dword [edi + 0x64], 0xf
mov byte [edi + 0x50], 0
mov dword [edi + 0x68], 0xffffffff
movups xmmword [edi + 0x6c], xmm0
mov dword [edi + 0x7c], 0
mov dword [edi + 0x80], 0xf
mov byte [edi + 0x6c], 0
mov dword [edi + 0x84], 0xffffffff
movups xmmword [edi + 0x88], xmm0
mov dword [edi + 0x98], 0
mov dword [edi + 0x9c], 0xf
mov byte [edi + 0x88], 0
movups xmmword [edi + 0xa0], xmm0
mov dword [edi + 0xb0], 0
mov dword [edi + 0xb4], 0xf
mov byte [edi + 0xa0], 0
lea esi, [edi + 0xb8]
mov byte [ebp - 4], 7
push 0x40
mov dword [ebp - 0x14], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.00440649
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
lea esi, [edi + 0xc0]
mov byte [ebp - 4], 8
push 0x88
mov dword [ebp - 0x14], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.00440649
add esp, 0xc
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
mov dword [edi + 0xc8], 0
mov eax, edi
mov dword [edi + 0xcc], 0
mov dword [edi + 0xd0], 0
mov dword [edi + 0xd4], 0
mov byte [edi + 0xd8], 0
mov dword [edi + 0xdc], 0
mov dword [edi + 0xe0], 0
mov dword [edi + 0xe4], 0
mov dword [edi + 0xe8], 0
mov dword [edi + 0xec], 0
mov byte [edi + 0xf0], 0
mov dword [edi + 0xf4], 0
mov dword [edi + 0xf8], 0
mov byte [edi + 0xfc], 0
mov dword [edi + 0x100], 0
mov dword [edi + 0x104], 0
mov byte [edi + 0x108], 0
mov dword [edi + 0x134], 0
mov dword [edi + 0x15c], 0
mov dword [edi + 0x184], 0
mov dword [edi + 0x188], 0x14
mov dword [edi + 0x18c], 0
mov dword [edi + 0x1b4], 0
mov byte [edi + 0x1b8], 0
mov dword [edi + 0x1bc], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret