joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4cb020
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x73c1d6
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x8bb040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
lea esi, [edi + 8]
mov dword [edi], 1
mov dword [edi + 4], 0
mov dword [ebp - 0x14], esi
mov dword [esi], 0
push 0x58
mov dword [esi + 4], 0
mov dword [esi + 8], 0
call fcn.0073298e
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [esi + 4], eax
lea ecx, [esi + 0xc]
mov dword [ebp - 4], 0
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
mov byte [ebp - 4], 1
mov dword [esi + 0x18], 7
mov dword [esi + 0x1c], 8
mov dword [esi], 0x3f800000
push dword [esi + 4]
push 0x10
call fcn.00488bd0
mov dword [ebp - 4], 2
lea esi, [edi + 0x28]
mov dword [ebp - 0x14], esi
push 0x14
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.0073298e
xor ecx, ecx
push 2
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
lea eax, [edi + 0x30]
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x18], ecx
mov dword [eax + 0x1c], ecx
mov dword [eax + 0x20], ecx
mov dword [eax + 0x24], ecx
push eax
mov dword [eax + 0x28], ecx
mov dword [eax + 0x2c], ecx
call dword [sym.imp.MSVCP140.dll__Mtx_init_in_situ]
lea eax, [edi + 0x60]
push eax
call dword [sym.imp.MSVCP140.dll__Cnd_init_in_situ]
add esp, 0x10
xor eax, eax
mov dword [edi + 0x88], eax
mov dword [edi + 0x8c], eax
mov byte [edi + 0x90], al
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 0x4d0ac0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x30
push ebx
mov ebx, dword [0x8e83b0]
push ebp
push esi
mov esi, dword [esp + 0x40]
push edi
mov edi, dword [0x8e83b4]
mov dword [esp + 0x18], ecx
mov ecx, esi
mov eax, dword [esi]
mov dword [esp + 0x1c], edi
call dword [eax + 0x38]
cmp ebx, eax
ja 0x4d0af5
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x3c]
cmp edi, eax
jbe 0x4d0afe
mov eax, dword [esi]
mov ecx, esi
push edi
push ebx
call dword [eax + 0x78]
mov eax, dword [esi]
mov ecx, esi
push 0
push 0
call dword [eax + 0x48]
mov eax, dword [esi]
mov ecx, esi
push edi
push ebx
call dword [eax + 0x4c]
mov eax, dword [0x8e83b8]
mov ebp, dword [esi + 4]
mov ecx, dword [0x8e8398]
mov edx, dword [esi + 8]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x14], ebp
mov dword [esp + 0x10], ecx
mov eax, dword [eax]
mov eax, dword [eax + 8]
mov dword [esp + 0x18], eax
test edi, edi
je 0x4d0c42
lea eax, [edx*4]
mov dword [esp + 0x44], eax
mov eax, dword [0x8e83b0]
mov edx, dword [esp + 0x44]
jmp 0x4d0b60
xor edi, edi
mov ebx, ebp
cmp byte [esp + 0x48], 0
je 0x4d0bcb
test eax, eax
je 0x4d0c29
mov ebp, dword [esp + 0x18]
lea esi, [ecx + 2]
lea ebx, [ebx]
movzx eax, byte [esi + 1]
mov ecx, dword [ebp + 4]
mov byte [esp + 0x20], al
movzx eax, byte [esi]
push dword [esp + 0x20]
mov byte [esp + 0x28], al
movzx eax, byte [esi - 1]
push dword [esp + 0x28]
mov byte [esp + 0x30], al
movzx eax, byte [esi - 2]
push dword [esp + 0x30]
mov byte [esp + 0x38], al
mov eax, dword [ecx]
push dword [esp + 0x38]
call dword [eax + 0x3c]
mov dword [ebx], eax
lea esi, [esi + 4]
mov eax, dword [0x8e83b0]
lea ebx, [ebx + 4]
inc edi
cmp edi, eax
jb 0x4d0b80
jmp 0x4d0c1d
test eax, eax
je 0x4d0c29
mov ebp, dword [esp + 0x18]
lea esi, [ecx + 1]
jmp 0x4d0be0
movzx eax, byte [esi + 1]
mov ecx, dword [ebp + 4]
mov byte [esp + 0x30], al
movzx eax, byte [esi]
push dword [esp + 0x30]
mov byte [esp + 0x38], al
movzx eax, byte [esi - 1]
push dword [esp + 0x38]
mov byte [esp + 0x40], al
mov eax, dword [ecx]
push dword [esp + 0x40]
call dword [eax + 0x38]
mov dword [ebx], eax
lea ebx, [ebx + 4]
mov eax, dword [0x8e83b0]
lea esi, [esi + 3]
inc edi
cmp edi, eax
jb 0x4d0be0
mov edx, dword [esp + 0x44]
mov ecx, dword [esp + 0x10]
mov ebp, dword [esp + 0x14]
add ecx, dword [esp + 0x3c]
add ebp, edx
sub dword [esp + 0x1c], 1
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], ebp
jne 0x4d0b60
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret 8
Function at 0x4ded70
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x73e02d
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push esi
push edi
mov eax, dword [0x8bb040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
xor ebx, ebx
cmp dword [esi + 0x7304], ebx
jbe 0x4dee5e
jmp 0x4dedb0
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0x18]
push 0x20
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x20], eax
call fcn.0073298e
mov ecx, 8
mov dword [ebp - 0x14], eax
lea esi, [ebp - 0x3c]
mov edi, eax
add esp, 4
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 0
push ecx
push 0
push eax
push 0x4e08e0
push 0
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov edx, eax
add esp, 0x18
mov dword [ebp - 0x1c], edx
test edx, edx
je 0x4dee91
mov esi, dword [ebp - 0x10]
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [esi + 0x7300]
cmp dword [ecx + ebx*8 + 4], 0
jne 0x4dee8b
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
mov dword [ecx + ebx*8], edx
mov dword [ecx + ebx*8 + 4], eax
cmp dword [ebp - 0x18], 0
jne 0x4dee8b
inc ebx
cmp ebx, dword [esi + 0x7304]
jb 0x4dedb0
push dword [ebp + 0x18]
mov ecx, dword [ebp + 0x1c]
lea ebx, [esi + 0x7304]
mov eax, dword [esi + 0x7308]
push dword [ebp + 0x14]
test ecx, ecx
jne 0x4deea0
push ecx
push eax
push dword [ebp + 0x10]
mov ecx, esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004def50
jmp 0x4deeb4
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
push 6
mov dword [ebp - 0x18], 0
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
push ecx
push 0
push eax
push dword [ebp + 0x10]
mov ecx, esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004df6d0
xor edi, edi
cmp dword [esi + 0x7304], edi
jbe 0x4deefc
mov edi, edi
mov eax, dword [esi + 0x7300]
cmp dword [eax + edi*8 + 4], 0
lea esi, [eax + edi*8]
je 0x4def3b
call dword [sym.imp.MSVCP140.dll__Thrd_id]
cmp dword [esi + 4], eax
je 0x4def33
push 0
push dword [esi + 4]
push dword [esi]
call dword [sym.imp.MSVCP140.dll__Thrd_join]
add esp, 0xc
test eax, eax
jne 0x4def2b
mov dword [esi], eax
inc edi
mov dword [esi + 4], eax
mov esi, dword [ebp - 0x10]
cmp edi, dword [ebx]
jb 0x4deec0
mov ecx, dword [ebp + 0x1c]
test ecx, ecx
je 0x4def17
mov eax, dword [ebp + 0x10]
imul eax, dword [ebp + 0x18]
push eax
push ecx
push dword [ebp + 0x14]
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
push 2
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
push 5
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
push 1
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
Function at 0x54de10
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 8
push ebx
push ebp
push esi
push edi
mov edi, ecx
sub esp, 8
mov edx, dword [edi + 0x34]
mov eax, dword [edx + 0x28]
mov ecx, dword [edx + 0x10]
mov ebp, dword [eax + 0x170]
mov eax, esp
mov dword [eax], str.dev.settings
mov dword [eax + 4], 0xc
call fcn.00481e10
mov ecx, dword [edi + 0x34]
test al, al
mov edx, str.dev.console
mov ebx, dword [ecx + 0x10]
mov ecx, str.plr.console
cmove edx, ecx
mov ecx, edx
lea esi, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x54de60
sub ecx, esi
mov dword [esp + 0x10], edx
lea eax, [esp + 0x10]
mov dword [esp + 0x14], ecx
push eax
lea ecx, [ebx + 4]
call fcn.004e6570
cmp eax, dword [ebx + 4]
je 0x54de88
lea ecx, [eax + 0x28]
jmp 0x54dea2
lea eax, [esp + 0x10]
push eax
lea ecx, [ebx + 0xc]
call fcn.004e6570
lea ecx, [eax + 0x28]
cmp eax, dword [ebx + 0xc]
jne 0x54dea2
mov ecx, 0x8cdf48
cmp dword [ecx + 0x14], 0xf
mov edx, dword [ecx + 0x10]
jbe 0x54dead
mov ecx, dword [ecx]
push 4
push str.7800
call fcn.00483510
mov ecx, dword [edi + 0x158]
mov bl, al
mov dl, bl
mov byte [esp + 0x18], bl
add esp, 8
xor dl, 1
movzx edx, dl
mov esi, dword [ecx]
push edx
call dword [esi + 0xc0]
mov ecx, dword [edi + 0x164]
push dword [esp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xc0]
mov ecx, dword [edi + 0x164]
push 0
test bl, bl
je 0x54df10
xor eax, eax
cmp byte [ecx + 0x15c], al
mov ecx, dword [edi + 0x158]
sete al
push eax
call fcn.00639170
jmp 0x54df32
mov eax, dword [edi + 0x158]
mov edx, dword [ecx]
mov eax, dword [eax + 0x188]
cmp dword [eax + 0x17c], 0
sete al
movzx eax, al
push eax
call dword [edx + 0xfc]
mov eax, dword [edi + 0x158]
mov ecx, dword [ebp + 8]
add ecx, 4
mov eax, dword [eax + 0x188]
mov edi, dword [eax + 0x17c]
mov eax, dword [ecx]
call dword [eax + 8]
mov esi, eax
cmp edi, 0xffffffff
jle 0x54df6f
mov cl, byte [esi + 8]
mov dl, cl
or cl, 8
and dl, 0xf7
movzx ecx, cl
test edi, edi
movzx eax, dl
cmovle ecx, eax
mov byte [esi + 8], cl
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x577260
Capabilities:
Get socket status

Disassembly:
sub esp, 0x11c
mov eax, dword [0x8bb040]
xor eax, esp
mov dword [esp + 0x114], eax
mov eax, dword [esp + 0x120]
push ebx
push ebp
mov ebp, dword [sym.imp.WS2_32.dll_select]
lea ebx, [ecx + 1]
push esi
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x134]
push edi
mov edi, dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], 1
mov dword [esp + 0x14], eax
lea esp, [esp]
lea eax, [esp + 0x10]
push eax
push 0
push 0
lea eax, [esp + 0x24]
push eax
push ebx
call ebp
mov esi, eax
test esi, esi
jns 0x5772ce
call edi
cmp dword [eax], 4
je 0x5772b0
mov ecx, dword [esp + 0x124]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0073297b
add esp, 0x11c
ret

Function at 0x5772f0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 8
push ebx
push ebp
push esi
push edi
push 0
push 0
push 0
push 0
mov ebx, ecx
call fcn.00577260
add esp, 0x10
test eax, eax
jne 0x57731d
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
jns 0x577336
call edi
cmp dword [eax], 9
jne 0x577336
xor al, al
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
mov ebp, dword [sym.imp.WS2_32.dll_recv]
lea eax, [esp + 0x17]
push 2
push 1
push eax
push ebx
call ebp
mov esi, eax
test esi, esi
jns 0x57735b
call edi
cmp dword [eax], 4
lea eax, [esp + 0x17]
je 0x577340
test esi, esi
pop edi
setg al
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x578330
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x74a020
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x8bb040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
xor eax, eax
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], 0xf
mov byte [edi], al
mov dword [ebp - 4], eax
mov dword [edi + 0x18], eax
mov dword [edi + 0x1c], eax
mov dword [edi + 0x20], eax
mov dword [edi + 0x24], eax
mov dword [edi + 0x28], eax
mov dword [edi + 0x2c], 0xf
mov byte [edi + 0x18], al
lea esi, [edi + 0x30]
mov byte [ebp - 4], 1
push 0x40
mov dword [ebp - 0x14], esi
mov dword [esi], eax
mov dword [esi + 4], eax
call fcn.0073298e
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
xor eax, eax
mov dword [edi + 0x38], eax
mov dword [edi + 0x3c], eax
mov dword [edi + 0x40], eax
mov dword [edi + 0x44], eax
mov dword [edi + 0x48], eax
mov dword [edi + 0x4c], 0xf
mov byte [edi + 0x38], al
mov dword [edi + 0x50], eax
mov dword [edi + 0x54], eax
mov dword [edi + 0x58], eax
mov dword [edi + 0x5c], eax
mov dword [edi + 0x60], eax
mov dword [edi + 0x64], 0xf
mov byte [edi + 0x50], al
mov dword [edi + 0x68], 0xffffffff
mov dword [edi + 0x6c], eax
mov dword [edi + 0x70], eax
mov dword [edi + 0x74], eax
mov dword [edi + 0x78], eax
mov dword [edi + 0x7c], eax
mov dword [edi + 0x80], 0xf
mov byte [edi + 0x6c], al
mov dword [edi + 0x84], eax
mov dword [edi + 0x88], eax
mov dword [edi + 0x8c], eax
mov dword [edi + 0x90], eax
mov dword [edi + 0x94], eax
mov dword [edi + 0x98], 0xf
mov byte [edi + 0x84], al
lea esi, [edi + 0x9c]
mov byte [ebp - 4], 6
push 0x40
mov dword [ebp - 0x14], esi
mov dword [esi], eax
mov dword [esi + 4], eax
call fcn.0073298e
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 + 0xa4]
mov byte [ebp - 4], 7
mov dword [ebp - 0x14], esi
push 0x88
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.0073298e
add esp, 0xc
lea ecx, [edi + 0xb8]
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 + 0xac], 0
mov dword [edi + 0xb0], 0
mov dword [edi + 0xb4], 0
call fcn.00577130
mov dword [edi + 0x114], 0
mov eax, edi
mov dword [edi + 0x13c], 0
mov dword [edi + 0x164], 0
mov dword [edi + 0x168], 0x14
mov dword [edi + 0x16c], 0
mov dword [edi + 0x194], 0
mov byte [edi + 0x198], 0
mov dword [edi + 0x19c], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x578530
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x74a058
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x8bb040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
xor eax, eax
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], 0xf
mov byte [edi], al
mov dword [ebp - 4], eax
mov dword [edi + 0x18], 0xffffffff
mov dword [edi + 0x1c], eax
mov dword [edi + 0x20], eax
mov dword [edi + 0x24], eax
mov dword [edi + 0x28], eax
mov dword [edi + 0x2c], eax
mov dword [edi + 0x30], 0xf
mov byte [edi + 0x1c], al
lea esi, [edi + 0x34]
mov byte [ebp - 4], 1
push 0x40
mov dword [ebp - 0x14], esi
mov dword [esi], eax
mov dword [esi + 4], eax
call fcn.0073298e
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
xor eax, eax
mov dword [edi + 0x3c], eax
mov dword [edi + 0x40], eax
mov dword [edi + 0x44], eax
mov dword [edi + 0x48], eax
mov dword [edi + 0x4c], eax
mov dword [edi + 0x50], 0xf
mov byte [edi + 0x3c], al
mov dword [edi + 0x54], eax
mov dword [edi + 0x58], eax
mov dword [edi + 0x5c], eax
mov dword [edi + 0x60], eax
mov dword [edi + 0x64], eax
mov dword [edi + 0x68], 0xf
mov byte [edi + 0x54], al
mov dword [edi + 0x6c], eax
mov dword [edi + 0x94], eax
mov dword [edi + 0xbc], eax
mov word [edi + 0xc0], ax
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 0x57d9c0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x74a90b
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x8bb040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov eax, dword [ebp + 8]
mov dword [edi + 4], eax
mov eax, dword [ebp + 0xc]
mov dword [edi + 8], eax
xor eax, eax
mov dword [edi], 0x81f278
mov byte [edi + 0xc], 0
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], eax
mov dword [edi + 0x18], eax
mov dword [edi + 0x1c], eax
mov dword [edi + 0x20], eax
mov dword [edi + 0x24], 0xf
mov byte [edi + 0x10], al
mov dword [ebp - 4], eax
mov dword [edi + 0x28], eax
mov dword [edi + 0x2c], eax
mov dword [edi + 0x30], eax
mov dword [edi + 0x34], eax
mov dword [edi + 0x38], eax
mov dword [edi + 0x3c], 0xf
mov byte [edi + 0x28], al
mov byte [ebp - 4], 1
lea esi, [edi + 0x244]
mov word [edi + 0x240], ax
mov byte [edi + 0x242], al
push 8
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
call fcn.0073298e
push 0x100
push 0
mov dword [eax + 4], 0
mov dword [esi], eax
mov dword [eax], esi
lea eax, [edi + 0x40]
push eax
mov dword [edi + 0x27c], 0
call sub.VCRUNTIME140.dll_memset
push 0x100
lea eax, [edi + 0x140]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x1c
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 8
Function at 0x57f770
Capabilities:
Resolve dns
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x74ac15
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x8bb040]
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 dword [ebp - 4], 0
xor esi, esi
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x48], 1
mov dword [ebp - 0x44], esi
cmp dword [edx + 0x10], esi
je 0x57f7d9
cmp dword [edx + 0x14], 0xf
mov esi, edx
jbe 0x57f7c9
mov esi, dword [edx]
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x50], 4
jmp 0x57f7f5
cmp dword [ecx + 0x10], esi
je 0x57f7e8
cmp dword [ecx + 0x14], 0xf
mov esi, ecx
jbe 0x57f7e8
mov esi, dword [ecx]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x50], 0
mov edx, dword [ebp + 8]
lea ecx, [ebp - 0x28]
call fcn.0048f960
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x30]
cmp dword [ebp - 0x14], 0xf
lea eax, [ebp - 0x28]
push ecx
cmova eax, dword [ebp - 0x28]
lea ecx, [ebp - 0x50]
push ecx
push eax
push esi
call dword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
jne 0x57f8e6
mov esi, dword [ebp - 0x30]
test esi, esi
je 0x57f8df
mov ebx, dword [sym.imp.WS2_32.dll_setsockopt]
jmp 0x57f840
push 0x81
push 0
push 0
push dword [esi + 0xc]
push dword [esi + 8]
push dword [esi + 4]
call dword [sym.imp.WS2_32.dll_WSASocketW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x57f875
push dword [esi + 0xc]
push dword [esi + 8]
push dword [esi + 4]
call dword [sym.imp.WS2_32.dll_socket]
mov edi, eax
cmp edi, 0xffffffff
je 0x57f8d1
cmp byte [ebp + 0x14], 0
je 0x57f88f
push 4
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], 1
push eax
push 1
push 6
push edi
call ebx
mov ecx, dword [ebp + 0x3c]
test ecx, ecx
je 0x57f8a2
mov dword [ebp - 0x2c], edi
lea edx, [ebp - 0x2c]
mov eax, dword [ecx]
push edx
call dword [eax + 8]
cmp dword [esi + 4], 0x17
jne 0x57f8bc
push 4
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], 0
push eax
push 0x1b
push 0x29
push edi
call ebx
push esi
push edi
lea ecx, [ebp + 0x40]
call fcn.005774b0
test al, al
jne 0x57f927
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
mov esi, dword [esi + 0x1c]
test esi, esi
jne 0x57f840
mov esi, dword [ebp - 0x30]
push esi
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
or edi, 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00481520
mov ecx, dword [ebp + 0x3c]
test ecx, ecx
je 0x57f909
mov esi, dword [ecx]
lea eax, [ebp + 0x18]
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 ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0073297b
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x30]
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
jmp 0x57f8e9
Function at 0x583830
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x74b173
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x8bb040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [ebp - 4], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 0
lea ecx, [esi + 0x40]
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 0x14]
mov edx, dword [ebp + 0x20]
mov byte [ebp - 4], 2
mov dword [esi + 0x50], eax
mov eax, dword [ebp + 8]
mov dword [esi + 0x54], eax
mov eax, dword [ebp + 0x1c]
mov dword [esi + 0x5c], eax
mov eax, dword [ebp + 0x18]
mov dword [esi + 0x58], edi
mov dword [esi + 0x60], edx
mov byte [esi + 0x64], 0
mov dword [esi + 0x68], eax
test byte [edi + 8], 8
je 0x583915
test dl, 0x10
jne 0x583915
mov al, 1
jmp 0x583917
xor al, al
mov byte [esi + 0x6c], al
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x70], eax
push dword [edi + 0x18]
call fcn.005829f0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x5a75f0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x74de5c
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x8bb040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov eax, dword [ebp + 8]
mov dword [esi], eax
mov dword [esi + 4], 0
mov dword [ebp - 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 0
mov dword [esi + 0x40], 0
mov dword [esi + 0x44], 0
mov dword [esi + 0x48], 0
mov byte [esi + 0x4c], 0
lea ecx, [esi + 0x68]
mov dword [esi + 0x50], 0
mov dword [esi + 0x54], 0
mov dword [esi + 0x58], 0
mov dword [esi + 0x5c], 0
mov dword [esi + 0x60], 0xffffffff
call fcn.005a7810
lea ecx, [esi + 0xc0]
call fcn.005a7810
mov dword [esi + 0x118], 0
mov dword [esi + 0x11c], 0
mov dword [esi + 0x120], 0
mov dword [esi + 0x124], 0
mov dword [esi + 0x128], 0
mov dword [esi + 0x12c], 0
mov dword [esi + 0x130], 0
mov dword [esi + 0x134], 0
lea ecx, [esi + 0x138]
call fcn.005a7890
lea ecx, [esi + 0x194]
call fcn.005a7890
mov byte [esi + 0x1f0], 0
mov dword [esi + 0x1f4], 0
mov byte [esi + 0x1f8], 0
mov dword [esi + 0x1fc], 0
mov dword [esi + 0x200], 0
mov dword [esi + 0x204], 0
mov dword [esi + 0x208], 0
mov dword [esi + 0x20c], 0
mov dword [esi + 0x210], 0
mov dword [esi + 0x214], 0
mov dword [esi + 0x218], 0
mov byte [ebp - 4], 0x11
fld qword [0x892cf8]
fstp qword [esi + 0x220]
push 0x10
mov dword [esi + 0x228], 0
mov dword [esi + 0x22c], 0
call fcn.0073298e
mov dword [eax], eax
mov dword [eax + 4], eax
push 0x48c
mov dword [esi + 0x228], eax
lea eax, [esi + 0x230]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x10
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4