joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4276d0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0xc
mov eax, dword [0x569338]
xor eax, esp
mov dword [esp + 8], eax
push ebp
mov ebp, dword [esp + 0x14]
test ebp, ebp
push esi
push edi
mov esi, ecx
mov edi, edx
jle 0x4277c2
add ebp, 0xffffffff
shr ebp, 3
add ebp, 1
lea ebx, [ebx]
movzx eax, byte [esi]
mov byte [edi], al
movzx ecx, byte [esi + 1]
mov byte [edi + 1], cl
movzx edx, byte [esi + 2]
mov byte [edi + 2], dl
movzx eax, byte [esi + 3]
mov byte [edi + 3], al
movzx ecx, byte [esi + 4]
mov byte [edi + 4], cl
movzx edx, byte [esi + 5]
mov byte [edi + 5], dl
movzx eax, byte [esi + 6]
mov byte [edi + 6], al
movzx ecx, byte [esi + 7]
mov byte [edi + 7], cl
mov eax, dword [esi + 4]
mov edx, dword [esi]
mov dword [esp + 0x10], eax
mov ecx, edi
lea eax, [ebx + 0x80]
mov dword [esp + 0xc], edx
call fcn.00426d60
movzx ecx, byte [ebx + 0x100]
xor byte [edi], cl
movzx edx, byte [ebx + 0x101]
xor byte [edi + 1], dl
movzx eax, byte [ebx + 0x102]
xor byte [edi + 2], al
movzx ecx, byte [ebx + 0x103]
xor byte [edi + 3], cl
movzx edx, byte [ebx + 0x104]
xor byte [edi + 4], dl
movzx eax, byte [ebx + 0x105]
xor byte [edi + 5], al
movzx ecx, byte [ebx + 0x106]
xor byte [edi + 6], cl
movzx edx, byte [ebx + 0x107]
xor byte [edi + 7], dl
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
add esi, 8
add edi, 8
sub ebp, 1
mov dword [ebx + 0x100], eax
mov dword [ebx + 0x104], ecx
jne 0x427700
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.0042d085
add esp, 0xc
ret
Function at 0x428c20
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x51c1c2
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x569338]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov edi, dword [esp + 0x28]
xor ebx, ebx
mov dword [esp + 0x14], ebx
mov dword [edi], 0x56196c
mov dword [edi + 0x58], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
lea esi, [edi + 8]
push esi
mov dword [esp + 0x24], ebx
push edi
mov dword [esp + 0x1c], 1
call fcn.00429970
mov dword [esp + 0x20], 1
mov eax, dword [edi]
mov ecx, dword [eax + 4]
push esi
mov dword [edi + ecx], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
call fcn.00424a10
lea edx, [esi + 8]
mov dword [esi + 0x10], edx
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov byte [esi + 0x48], bl
mov byte [esi + 0x41], bl
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], ebx
mov eax, dword [esi + 0x24]
mov dword [eax], ebx
mov ecx, dword [esi + 0x34]
mov dword [ecx], ebx
mov edx, dword [esi + 0x10]
mov dword [edx], ebx
mov eax, dword [esi + 0x20]
mov edx, dword [0x576b9c]
mov dword [eax], ebx
mov ecx, dword [esi + 0x30]
mov dword [ecx], ebx
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x44], edx
mov dword [esi + 0x3c], ebx
mov eax, dword [esp + 0x2c]
push eax
mov byte [esp + 0x24], 2
call fcn.00429b30
test eax, eax
jne 0x428d21
mov ecx, dword [edi]
mov ecx, dword [ecx + 4]
mov eax, dword [ecx + edi + 8]
add ecx, edi
or eax, 2
cmp dword [ecx + 0x28], ebx
jne 0x428d10
or eax, 4
and eax, 0x17
test dword [ecx + 0xc], eax
mov dword [ecx + 8], eax
je 0x428d21
push ebx
call fcn.0041eaa0
mov eax, edi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x14
ret 8
Function at 0x42a3e0
Capabilities:
Enumerate pe sections

Disassembly:
push ecx
mov eax, dword [esp + 0x10]
push ebx
mov ebx, dword [eax + 4]
mov eax, dword [eax]
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
push esi
lea esi, [ecx + eax + 0x18]
mov dword [esp + 8], 0
jbe 0x42a488
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push edi
add esi, 0x10
mov eax, dword [esi]
test eax, eax
jne 0x42a441
mov edx, dword [esp + 0x1c]
mov edi, dword [edx + 0x38]
test edi, edi
jle 0x42a46a
mov eax, dword [esi - 4]
push 4
push 0x1000
push edi
add eax, ebx
push eax
call ebp
push edi
push 0
push eax
mov dword [esi - 8], eax
call fcn.00433df0
jmp 0x42a467
mov ecx, dword [esi - 4]
push 4
push 0x1000
push eax
add ecx, ebx
push ecx
call ebp
mov edx, dword [esi]
mov edi, eax
mov eax, dword [esi + 4]
add eax, dword [esp + 0x18]
push edx
push eax
push edi
call fcn.00432420
mov dword [esi - 8], edi
add esp, 0xc
mov ecx, dword [esp + 0x20]
mov edx, dword [ecx]
mov eax, dword [esp + 0x10]
movzx ecx, word [edx + 6]
add eax, 1
add esi, 0x28
cmp eax, ecx
mov dword [esp + 0x10], eax
jl 0x42a412
pop edi
pop ebp
pop esi
pop ebx
pop ecx
ret

Function at 0x42a490
Capabilities:
Enumerate pe sections

Disassembly:
push ecx
mov eax, dword [esp + 8]
push ebx
mov ebx, dword [eax]
movzx ecx, word [ebx + 0x14]
push ebp
xor ebp, ebp
cmp word [ebx + 6], bp
lea eax, [ecx + ebx + 0x18]
jbe 0x42a547
push esi
push edi
lea edi, [eax + 0x24]
mov eax, dword [edi]
mov ecx, eax
mov edx, eax
shr ecx, 0x1d
shr edx, 0x1e
mov esi, eax
and ecx, 1
and edx, 1
shr esi, 0x1f
test eax, 0x2000000
je 0x42a4e5
mov edx, dword [edi - 0x14]
mov eax, dword [edi - 0x1c]
push 0x4000
push edx
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x42a52d
test eax, 0x4000000
lea ecx, [edx + ecx*2]
lea edx, [esi + ecx*2]
mov esi, dword [edx*4 + 0x57314c]
je 0x42a4ff
or esi, 0x200
mov edx, dword [edi - 0x14]
mov ecx, edx
test ecx, ecx
jne 0x42a51a
test al, 0x40
je 0x42a511
mov ecx, dword [ebx + 0x20]
jmp 0x42a518
test al, al
jns 0x42a52d
mov ecx, dword [ebx + 0x24]
test ecx, ecx
jbe 0x42a52d
mov ecx, dword [edi - 0x1c]
lea eax, [esp + 0x10]
push eax
push esi
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov edx, dword [esp + 0x18]
mov ebx, dword [edx]
movzx eax, word [ebx + 6]
add ebp, 1
add edi, 0x28
cmp ebp, eax
jl 0x42a4b2
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x42a6f0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, dword [esp + 8]
cmp word [ebp], 0x5a4d
je 0x42a701
xor eax, eax
pop ebp
ret
push ebx
mov ebx, dword [ebp + 0x3c]
add ebx, ebp
cmp dword [ebx], 0x4550
je 0x42a714
pop ebx
xor eax, eax
pop ebp
ret
mov eax, dword [ebx + 0x50]
mov ecx, dword [ebx + 0x34]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push edi
push 4
push 0x2000
push eax
push ecx
call esi
mov edi, eax
test edi, edi
jne 0x42a74b
mov edx, dword [ebx + 0x50]
push 4
push 0x2000
push edx
push eax
call esi
mov edi, eax
test edi, edi
je 0x42a800
push 0x14
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
xor eax, eax
push 4
mov dword [esi + 4], edi
mov dword [esi + 0xc], eax
mov dword [esi + 8], eax
mov dword [esi + 0x10], eax
mov eax, dword [ebx + 0x50]
push 0x1000
push eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ecx, dword [ebx + 0x54]
push 4
push 0x1000
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edx, dword [ebx + 0x54]
add edx, dword [ebp + 0x3c]
mov dword [esp + 0x14], eax
push edx
push ebp
push eax
call fcn.00432420
mov eax, dword [ebp + 0x3c]
mov ecx, dword [esp + 0x20]
push esi
add eax, ecx
push ebx
mov dword [esi], eax
push ebp
mov dword [eax + 0x34], edi
call fcn.0042a3e0
mov eax, edi
add esp, 0x18
sub eax, dword [ebx + 0x34]
je 0x42a7cd
push eax
mov eax, esi
call fcn.0042a550
add esp, 4
push esi
call fcn.0042a5d0
add esp, 4
test eax, eax
je 0x42a7fb
push esi
call fcn.0042a490
mov edx, dword [esi]
mov eax, dword [edx + 0x28]
add esp, 4
test eax, eax
je 0x42a80e
add eax, edi
je 0x42a7fb
push 0
push 1
push edi
call eax
test eax, eax
jne 0x42a807
call fcn.0042a8c0
pop edi
pop esi
pop ebx
xor eax, eax
pop ebp
ret
mov dword [esi + 0x10], 1
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret
Function at 0x42bcc0
Capabilities:
Check if file exists
Delete file
Download url
Receive data

Disassembly:
push 0xffffffffffffffff
push 0x51aea8
mov eax, dword fs:[0]
push eax
sub esp, 0x20c
mov eax, dword [0x569338]
xor eax, esp
mov dword [esp + 0x208], eax
push ebp
push esi
push edi
mov eax, dword [0x569338]
xor eax, esp
push eax
lea eax, [esp + 0x21c]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x224], 0
mov eax, dword [esp + 0x230]
mov edi, 8
cmp dword [esp + 0x244], edi
jae 0x42bd23
lea eax, [esp + 0x230]
mov ebp, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push eax
call ebp
test eax, eax
je 0x42bd4e
cmp dword [esp + 0x244], edi
mov eax, dword [esp + 0x230]
jae 0x42bd47
lea eax, [esp + 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [esp + 0x244], edi
mov eax, dword [esp + 0x230]
jae 0x42bd65
lea eax, [esp + 0x230]
call fcn.0040bd70
push 0x206
lea eax, [esp + 0x16]
push 0
push eax
mov word [esp + 0x1c], 0
call fcn.00433df0
add esp, 0xc
mov eax, 0x98967f
mov ecx, 0xf4240
call fcn.0040c100
cmp dword [esi + 0x18], edi
jb 0x42bd9e
mov esi, dword [esi + 4]
jmp 0x42bda1
add esi, 4
push eax
push esi
lea ecx, [esp + 0x18]
push str._s__d
push ecx
call fcn.0042d101
mov eax, dword [esp + 0x240]
add esp, 0x10
cmp dword [esp + 0x244], edi
jae 0x42bdcc
lea eax, [esp + 0x230]
push 0
push 0
push eax
lea edx, [esp + 0x1c]
push edx
push 0
call sub.urlmon.dll_URLDownloadToFileW
test eax, eax
jl 0x42be1c
cmp dword [esp + 0x244], edi
mov eax, dword [esp + 0x230]
jae 0x42bdf8
lea eax, [esp + 0x230]
push eax
call ebp
test eax, eax
je 0x42be1c
cmp dword [esp + 0x244], edi
jb 0x42be18
mov eax, dword [esp + 0x230]
push eax
call fcn.0042d197
add esp, 4
mov al, 1
jmp 0x42be37
cmp dword [esp + 0x244], edi
jb 0x42be35
mov ecx, dword [esp + 0x230]
push ecx
call fcn.0042d197
add esp, 4
xor al, al
mov ecx, dword [esp + 0x21c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.0042d085
add esp, 0x218
ret 0x1c

Function at 0x42d085
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x569338]
jne 0x42d08f
repz ret
jmp fcn.00434395
Function at 0x436483
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x569368]
je 0x43649e
inc edi
cmp edi, 0x17
jb 0x43648f
cmp edi, 0x17
jae 0x43661e
push ebp
push 3
call fcn.00442a06
cmp eax, 1
pop ecx
je 0x4365ea
push 3
call fcn.00442a06
test eax, eax
pop ecx
jne 0x4364d2
cmp dword [0x569180], 1
je 0x4365ea
cmp ebx, 0xfc
je 0x43661d
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x573c08
push ebp
call fcn.00433fc8
add esp, 0xc
test eax, eax
je 0x436508
push esi
push esi
push esi
push esi
push esi
call fcn.0042d33a
add esp, 0x14
push 0x104
mov esi, 0x573c21
push esi
push 0
mov byte [0x573d25], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x43654c
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.00433fc8
add esp, 0xc
test eax, eax
je 0x43654c
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0042d33a
add esp, 0x14
push esi
call fcn.00431710
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x436591
push esi
call fcn.00431710
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x573f1c
push 0x520524
sub ecx, eax
push ecx
push eax
call fcn.0043c7d9
add esp, 0x14
test eax, eax
je 0x436591
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0042d33a
add esp, 0x14
jmp 0x436593
xor esi, esi
push 0x520520
push ebx
push ebp
call fcn.0043c768
add esp, 0xc
test eax, eax
je 0x4365b3
push esi
push esi
push esi
push esi
push esi
call fcn.0042d33a
add esp, 0x14
push dword [edi*8 + 0x56936c]
push ebx
push ebp
call fcn.0043c768
add esp, 0xc
test eax, eax
je 0x4365d5
push esi
push esi
push esi
push esi
push esi
call fcn.0042d33a
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.00442849
add esp, 0xc
jmp 0x43661d
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x43661d
cmp ebp, 0xffffffff
je 0x43661d
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x56936c]
push dword [esi]
call fcn.00431710
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x442849
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0043507c
xor ebx, ebx
cmp dword [0x574404], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x44291f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x4429ff
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x521780
push edi
call esi
cmp eax, ebx
je 0x4429ff
push eax
call fcn.0043500e
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x574404], eax
call esi
push eax
call fcn.0043500e
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x574408], eax
call esi
push eax
call fcn.0043500e
mov dword [0x57440c], eax
lea eax, [ebp - 0xc]
push eax
call fcn.00433744
test eax, eax
pop ecx
pop ecx
je 0x4428ed
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0042d33a
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x44291f
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0043500e
cmp eax, ebx
pop ecx
mov dword [0x574414], eax
je 0x44291f
push 0x521728
push edi
call esi
push eax
call fcn.0043500e
pop ecx
mov dword [0x574410], eax
mov eax, dword [0x574410]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x4429a4
cmp dword [0x574414], ecx
je 0x4429a4
push eax
call fcn.00435085
push dword [0x574414]
mov esi, eax
call fcn.00435085
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x4429a4
cmp edi, ebx
je 0x4429a4
call esi
cmp eax, ebx
je 0x442971
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x442971
test byte [ebp - 0x18], 1
jne 0x4429a4
lea eax, [ebp - 0x10]
push eax
call fcn.0043377b
test eax, eax
pop ecx
je 0x44298c
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0042d33a
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x44299b
or dword [ebp + 0x10], 0x200000
jmp 0x4429df
or dword [ebp + 0x10], 0x40000
jmp 0x4429df
mov eax, dword [0x574408]
cmp eax, dword [ebp - 8]
je 0x4429df
push eax
call fcn.00435085
cmp eax, ebx
pop ecx
je 0x4429df
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x4429df
mov eax, dword [0x57440c]
cmp eax, dword [ebp - 8]
je 0x4429df
push eax
call fcn.00435085
cmp eax, ebx
pop ecx
je 0x4429df
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x574404]
call fcn.00435085
cmp eax, ebx
pop ecx
je 0x4429ff
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x442a01
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4499e0
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x194
mov eax, dword [0x569338]
xor eax, esp
mov dword [esp + 0x190], eax
lea eax, [esp]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x449a32
mov eax, dword [esp]
cmp al, 2
jne 0x449a2c
shr eax, 8
cmp al, 2
jne 0x449a2c
xor eax, eax
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.0042d085
add esp, 0x194
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [esp + 0x190]
xor ecx, esp
mov eax, 2
call fcn.0042d085
add esp, 0x194
ret
Function at 0x44ad30
Capabilities:
Read file on windows

Disassembly:
push edi
mov edi, eax
mov eax, dword [esi]
cmp dword [eax + 4], 2
jne 0x44ad52
mov ecx, dword [esi + 0xc]
test ecx, ecx
jne 0x44ad46
xor eax, eax
pop edi
ret
mov eax, dword [eax + 8]
push eax
push edi
push 1
push ebx
call ecx
jmp 0x44ad82
cmp dword [esi + 8], 0
jne 0x44ad75
mov ecx, dword [eax + 8]
push 0x521918
push ecx
call fcn.00433688
add esp, 8
mov dword [esi + 8], eax
test eax, eax
jne 0x44ad75
or eax, 0xffffffff
pop edi
ret
mov edx, dword [esi + 8]
push edx
push edi
push 1
push ebx
call fcn.00502ede
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x44ada4
mov eax, dword [esi + 8]
test eax, eax
je 0x44ad9e
push eax
call fcn.0042e00f
add esp, 4
mov dword [esi + 8], edi
mov eax, dword [esi]
mov ecx, dword [eax]
mov dword [esi], ecx
mov eax, edi
pop edi
ret
Function at 0x4564d0
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
push 0
push eax
push ecx
push edx
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x456502
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
sub eax, 0x2733
neg eax
sbb eax, eax
and eax, 0xffffffe7
add eax, 0x51
ret
mov ecx, dword [esp + 0x10]
mov dword [ecx], eax
xor eax, eax
ret

Function at 0x456650
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esi + 0x164]
test ecx, ecx
je 0x45666b
mov edx, dword [esi + 0xf4]
push edx
push edi
push ebx
push eax
push esi
call ecx
add esp, 0x14
ret
test eax, eax
jl 0x45669f
cmp eax, 2
jg 0x45669f
mov ecx, dword [esi + 0xf0]
push ecx
push 1
lea edx, [eax + eax*2 + 0x5229a4]
push 2
push edx
call fcn.0042df1b
mov eax, dword [esi + 0xf0]
push eax
push 1
push edi
push ebx
call fcn.0042df1b
add esp, 0x20
xor eax, eax
ret

Function at 0x4569b0
Capabilities:
Send data
Send data on socket

Disassembly:
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, dword [esp + 0xc]
mov eax, dword [esi + eax*4 + 0x130]
push edi
push 0
push ecx
push edx
push eax
call dword [sym.imp.WS2_32.dll_send]
mov ebx, dword [esp + 0x20]
mov edi, eax
mov dword [ebx], 0
cmp edi, 0xffffffff
jne 0x456a2d
push ebp
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebp, eax
cmp ebp, 0x2733
jne 0x456a04
pop ebp
pop edi
pop esi
mov dword [ebx], 0x51
xor eax, eax
pop ebx
ret
push ebp
push esi
call fcn.0045acc0
push eax
mov eax, dword [esi]
push str.Send_failure:__s
push eax
call fcn.00456830
mov ecx, dword [esi]
add esp, 0x14
mov dword [ecx + 0x856c], ebp
mov dword [ebx], 0x37
mov eax, edi
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x457200
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x10c
mov eax, dword [0x569338]
xor eax, esp
mov dword [esp + 0x108], eax
push ebx
push ebp
mov ebp, dword [esp + 0x118]
cmp dword [ebp + 0x1bc], 0
push esi
push edi
mov edi, dword [ebp]
mov dword [esp + 0x14], edi
jne 0x45733b
mov esi, dword [esp + 0x124]
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x1c]
push ecx
mov ebx, 0x80
push esi
mov dword [esp + 0x1c], ebx
call dword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x45727c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push ebp
call fcn.0045acc0
push eax
push esi
push str.getpeername___failed_with_errno__d:__s
push edi
call fcn.00456830
add esp, 0x18
jmp 0x457344
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x9c]
push eax
push esi
mov dword [esp + 0x1c], ebx
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x4572bc
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push ebp
call fcn.0045acc0
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
push edi
call fcn.00456830
add esp, 0x18
jmp 0x457344
lea ebx, [ebp + 0xcc]
lea edi, [ebp + 0x9e]
lea esi, [esp + 0x18]
call fcn.004571c0
test eax, eax
jne 0x4572fa
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push ebp
call fcn.0045acc0
mov ecx, dword [esp + 0x1c]
push eax
push esi
push str.ssrem_inet_ntop___failed_with_errno__d:__s
push ecx
call fcn.00456830
add esp, 0x18
jmp 0x457344
lea ebx, [ebp + 0x100]
lea edi, [ebp + 0xd0]
lea esi, [esp + 0x98]
call fcn.004571c0
test eax, eax
jne 0x45733b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push ebp
call fcn.0045acc0
mov edx, dword [esp + 0x1c]
push eax
push esi
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push edx
call fcn.00456830
add esp, 0x18
jmp 0x457344
push ebp
call fcn.00457160
add esp, 4
mov ecx, dword [esp + 0x118]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0042d085
add esp, 0x10c
ret

Function at 0x457360
Capabilities:
Set socket configuration

Disassembly:
push ecx
push esi
mov esi, dword [edi]
mov eax, dword [esi + 0x314]
push 4
lea ecx, [esp + 8]
push ecx
push 1
push 6
push edx
mov dword [esp + 0x18], eax
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jge 0x4573a3
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.0045acc0
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.004567a0
add esp, 0x14
pop esi
pop ecx
ret
push str.TCP_NODELAY_set_n
push esi
call fcn.004567a0
add esp, 8
pop esi
pop ecx
ret

Function at 0x4573c0
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0xc
push esi
mov esi, dword [esp + 0x14]
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 8]
push ecx
push 0x1001
push 0xffff
push esi
mov dword [esp + 0x1c], 0x4020
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], 4
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x457409
mov edx, dword [esp + 4]
cmp edx, dword [esp + 8]
jg 0x457421
push 4
lea eax, [esp + 0xc]
push eax
push 0x1001
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
pop esi
add esp, 0xc
ret
Function at 0x457430
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov ecx, dword [esp + 4]
mov eax, dword [ecx + 0x530]
cmp eax, 0xffffffff
je 0x457494
mov ecx, dword [ecx + 0x524]
mov edx, dword [ecx]
cmp dword [edx + eax*4], 0
lea eax, [edx + eax*4]
je 0x457494
mov ecx, dword [esp + 8]
mov eax, dword [eax]
test ecx, ecx
je 0x45745c
mov dword [ecx], eax
cmp dword [eax + 0x148], 0
push esi
mov esi, dword [eax + 0x130]
je 0x45747e
push eax
call fcn.0044c4c0
add esp, 4
test eax, eax
jne 0x457490
or eax, 0xffffffff
pop esi
ret
push 2
push 1
lea eax, [esp + 0x10]
push eax
push esi
call dword [sym.imp.WS2_32.dll_recv]
jmp 0x457475
mov eax, esi
pop esi
ret
or eax, 0xffffffff
ret
Function at 0x4591f0
Capabilities:
Resolve dns

Disassembly:
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
push esi
mov esi, dword [esp + 0x1c]
mov dword [esi], 0
push ecx
mov byte [eax], 0
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov ecx, eax
mov dword [esp + 0x1c], ecx
test ecx, ecx
je 0x459294
cmp word [ecx + 8], 2
push ebx
push ebp
push edi
jne 0x459265
cmp word [ecx + 0xa], 4
jne 0x459265
mov edi, dword [ecx + 0xc]
mov eax, dword [edi]
test eax, eax
je 0x459265
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x18]
lea esp, [esp]
mov edx, dword [eax]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebx
push ebp
call fcn.00459180
mov dword [esi], eax
test eax, eax
je 0x459288
add edi, 4
lea esi, [eax + 0x1c]
mov eax, dword [edi]
test eax, eax
jne 0x459240
mov ecx, dword [esp + 0x28]
mov ecx, dword [ecx]
mov edx, dword [esp + 0x24]
push 0x400
push ecx
push 0x401
push edx
call fcn.0043c7d9
add esp, 0x10
pop edi
pop ebp
pop ebx
xor eax, eax
pop esi
ret 0x18
pop edi
pop ebp
pop ebx
mov eax, 8
pop esi
ret 0x18
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
add eax, 0xffffd507
cmp eax, 3
ja case.0x4592a4.11001
jmp dword [eax*4 + 0x4592c8]
mov eax, 0x2af9
pop esi
ret 0x18
mov eax, 0x2afa
pop esi
ret 0x18
mov eax, 0x2afb
pop esi
ret 0x18