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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ebx
je 0x43a9ce
cmp dword [ebp + 0x14], edi
je 0x43a9ce
cmp ecx, edi
jne 0x43a9d5
call fcn.0043a759
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.0043b95e
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x43a9e9
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x43aa0a
cmp ebx, 0xffffffff
je 0x43a9f9
push ebx
push edi
push ecx
call fcn.0043b4c0
add esp, 0xc
cmp esi, edi
je 0x43a9b6
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x43a9b6
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x43aa26
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x43aa2d
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x43ab1e
test word [esi + 0xc], 0x10c
je 0x43aa81
mov eax, dword [esi + 4]
test eax, eax
je 0x43aa81
jl 0x43ab7f
cmp ebx, eax
mov edi, ebx
jb 0x43aa52
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x43ab26
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.0043ba2b
sub dword [esi + 4], edi
add dword [esi], edi
add dword [ebp - 8], edi
sub ebx, edi
add esp, 0x10
sub dword [ebp - 4], edi
mov edi, dword [ebp - 0x10]
jmp 0x43ab16
cmp ebx, dword [ebp - 0xc]
jb 0x43aaee
cmp dword [ebp - 0xc], 0
je 0x43aaab
mov ecx, SysReAllocString
xor edx, edx
cmp ebx, ecx
jbe 0x43aaa0
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x43aaa7
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x43aab6
mov eax, SysReAllocString
cmp ebx, eax
ja 0x43aab6
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x43ab52
push eax
push dword [ebp - 8]
push esi
call fcn.00445858
pop ecx
push eax
call fcn.0044616c
add esp, 0xc
test eax, eax
je 0x43ab91
cmp eax, 0xffffffff
je 0x43ab7f
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x43ab16
push esi
call fcn.00445a8b
cmp eax, 0xffffffff
pop ecx
je 0x43ab83
cmp dword [ebp - 4], 0
je 0x43ab52
mov ecx, dword [ebp - 8]
inc dword [ebp - 8]
mov byte [ecx], al
mov eax, dword [esi + 0x18]
dec ebx
dec dword [ebp - 4]
mov dword [ebp - 0xc], eax
test ebx, ebx
jne 0x43aa35
mov eax, dword [ebp + 0x14]
jmp 0x43a9d0
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x43ab3d
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.0043b4c0
add esp, 0xc
call fcn.0043a759
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x43a9c6
cmp dword [ebp + 0xc], 0xffffffff
je 0x43ab68
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.0043b4c0
add esp, 0xc
call fcn.0043a759
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x43a9c6
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x43a9d0
or dword [esi + 0xc], 0x10
jmp 0x43ab83
Function at 0x43b4a5
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x506550]
jne 0x43b4af
repz ret
jmp fcn.00446f77

Function at 0x4447d4
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 + 0x506790]
je 0x4447ef
inc edi
cmp edi, 0x17
jb 0x4447e0
cmp edi, 0x17
jae 0x44496f
push ebp
push 3
call fcn.00450ec9
cmp eax, 1
pop ecx
je 0x44493b
push 3
call fcn.00450ec9
test eax, eax
pop ecx
jne 0x444823
cmp dword [0x506660], 1
je 0x44493b
cmp ebx, 0xfc
je 0x44496e
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x50dbf0
push ebp
call fcn.00448af5
add esp, 0xc
test eax, eax
je 0x444859
push esi
push esi
push esi
push esi
push esi
call fcn.0043b862
add esp, 0x14
push 0x104
mov esi, 0x50dc09
push esi
push 0
mov byte [0x50dd0d], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x44489d
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.00448af5
add esp, 0xc
test eax, eax
je 0x44489d
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0043b862
add esp, 0x14
push esi
call fcn.0043b9a0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x4448e2
push esi
call fcn.0043b9a0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x50df04
push 0x4ce254
sub ecx, eax
push ecx
push eax
call fcn.0044f8d9
add esp, 0x14
test eax, eax
je 0x4448e2
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0043b862
add esp, 0x14
jmp 0x4448e4
xor esi, esi
push 0x4ce800
push ebx
push ebp
call fcn.0044f868
add esp, 0xc
test eax, eax
je 0x444904
push esi
push esi
push esi
push esi
push esi
call fcn.0043b862
add esp, 0x14
push dword [edi*8 + 0x506794]
push ebx
push ebp
call fcn.0044f868
add esp, 0xc
test eax, eax
je 0x444926
push esi
push esi
push esi
push esi
push esi
call fcn.0043b862
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.004530bf
add esp, 0xc
jmp 0x44496e
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x44496e
cmp ebp, 0xffffffff
je 0x44496e
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x506794]
push dword [esi]
call fcn.0043b9a0
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 0x450b12
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00444ab3
xor ebx, ebx
cmp dword [0x50e380], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x450be8
push 0x4caeec
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
cmp edi, ebx
je 0x450cc8
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4cfbfc
push edi
call esi
cmp eax, ebx
je 0x450cc8
push eax
call fcn.00444a45
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x50e380], eax
call esi
push eax
call fcn.00444a45
mov dword [esp], 0x4cfbd8
push edi
mov dword [0x50e384], eax
call esi
push eax
call fcn.00444a45
mov dword [0x50e388], eax
lea eax, [ebp - 0xc]
push eax
call fcn.0044378c
test eax, eax
pop ecx
pop ecx
je 0x450bb6
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0043b862
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x450be8
push str.GetUserObjectInformationW
push edi
call esi
push eax
call fcn.00444a45
cmp eax, ebx
pop ecx
mov dword [0x50e390], eax
je 0x450be8
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00444a45
pop ecx
mov dword [0x50e38c], eax
mov eax, dword [0x50e38c]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x450c6d
cmp dword [0x50e390], ecx
je 0x450c6d
push eax
call fcn.00444abc
push dword [0x50e390]
mov esi, eax
call fcn.00444abc
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x450c6d
cmp edi, ebx
je 0x450c6d
call esi
cmp eax, ebx
je 0x450c3a
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x450c3a
test byte [ebp - 0x18], 1
jne 0x450c6d
lea eax, [ebp - 0x10]
push eax
call fcn.004437c3
test eax, eax
pop ecx
je 0x450c55
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0043b862
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x450c64
or dword [ebp + 0x10], 0x200000
jmp 0x450ca8
or dword [ebp + 0x10], 0x40000
jmp 0x450ca8
mov eax, dword [0x50e384]
cmp eax, dword [ebp - 8]
je 0x450ca8
push eax
call fcn.00444abc
cmp eax, ebx
pop ecx
je 0x450ca8
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x450ca8
mov eax, dword [0x50e388]
cmp eax, dword [ebp - 8]
je 0x450ca8
push eax
call fcn.00444abc
cmp eax, ebx
pop ecx
je 0x450ca8
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x50e380]
call fcn.00444abc
cmp eax, ebx
pop ecx
je 0x450cc8
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x450cca
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4530bf
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00444ab3
xor ebx, ebx
cmp dword [0x50e5b4], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x453195
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x453275
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x453275
push eax
call fcn.00444a45
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x50e5b4], eax
call esi
push eax
call fcn.00444a45
mov dword [esp], 0x4cfbd8
push edi
mov dword [0x50e5b8], eax
call esi
push eax
call fcn.00444a45
mov dword [0x50e5bc], eax
lea eax, [ebp - 0xc]
push eax
call fcn.0044378c
test eax, eax
pop ecx
pop ecx
je 0x453163
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0043b862
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x453195
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00444a45
cmp eax, ebx
pop ecx
mov dword [0x50e5c4], eax
je 0x453195
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00444a45
pop ecx
mov dword [0x50e5c0], eax
mov eax, dword [0x50e5c0]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x45321a
cmp dword [0x50e5c4], ecx
je 0x45321a
push eax
call fcn.00444abc
push dword [0x50e5c4]
mov esi, eax
call fcn.00444abc
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x45321a
cmp edi, ebx
je 0x45321a
call esi
cmp eax, ebx
je 0x4531e7
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4531e7
test byte [ebp - 0x18], 1
jne 0x45321a
lea eax, [ebp - 0x10]
push eax
call fcn.004437c3
test eax, eax
pop ecx
je 0x453202
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0043b862
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x453211
or dword [ebp + 0x10], 0x200000
jmp 0x453255
or dword [ebp + 0x10], 0x40000
jmp 0x453255
mov eax, dword [0x50e5b8]
cmp eax, dword [ebp - 8]
je 0x453255
push eax
call fcn.00444abc
cmp eax, ebx
pop ecx
je 0x453255
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x453255
mov eax, dword [0x50e5bc]
cmp eax, dword [ebp - 8]
je 0x453255
push eax
call fcn.00444abc
cmp eax, ebx
pop ecx
je 0x453255
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x50e5b4]
call fcn.00444abc
cmp eax, ebx
pop ecx
je 0x453275
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x453277
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x45c6d0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x4c3373
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
mov eax, dword [0x506550]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
xor ebx, ebx
or eax, 0xffffffff
mov dword [esi + 8], eax
mov dword [esi + 4], eax
mov dword [esi + 0xc], ebx
mov dword [esi + 0x20], 0x50e838
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
lea ecx, [esi + 0x34]
mov dword [esi], vtable.TiXmlDocument.0
mov dword [esp + 0x18], ebx
mov dword [ecx], 0x50e838
mov dword [esi + 0x40], eax
mov dword [esi + 0x3c], eax
push ebx
push 0x4dfb90
mov byte [esp + 0x20], 1
mov dword [esi + 0x38], 4
mov byte [esi + 0x44], bl
mov byte [esi + 0x2c], bl
mov dword [esi + 0x30], ebx
call fcn.0045bb90
mov dword [esi + 0x40], ebx
mov dword [esi + 0x3c], ebx
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x10
ret

Function at 0x45cb00
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4c3419
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x506550]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x14], esi
or eax, 0xffffffff
mov dword [esi + 8], eax
mov dword [esi + 4], eax
xor ebx, ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x20], 0x50e838
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], 5
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
lea edi, [esi + 0x2c]
mov dword [esi], vtable.TiXmlDeclaration.0
mov dword [esp + 0x20], ebx
mov dword [edi], 0x50e838
lea ebp, [esi + 0x30]
mov dword [ebp], 0x50e838
mov dword [esi + 0x34], 0x50e838
mov ecx, dword [esp + 0x28]
mov eax, ecx
lea edx, [eax + 1]
mov byte [esp + 0x20], 3
mov dword [esp + 0x28], edx
lea esp, [esp]
mov dl, byte [eax]
add eax, 1
cmp dl, bl
jne 0x45cb90
sub eax, dword [esp + 0x28]
push eax
push ecx
mov ecx, edi
call fcn.0045bb90
mov edi, dword [esp + 0x2c]
mov eax, edi
lea ecx, [eax + 1]
nop
mov dl, byte [eax]
add eax, 1
cmp dl, bl
jne 0x45cbb0
sub eax, ecx
push eax
push edi
mov ecx, ebp
call fcn.0045bb90
mov edx, dword [esp + 0x30]
mov eax, edx
lea edi, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x45cbd0
sub eax, edi
push eax
push edx
lea ecx, [esi + 0x34]
call fcn.0045bb90
mov eax, esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 0xc
Function at 0x45f680
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x194
mov eax, dword [0x506550]
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 0x45f6d0
mov ax, word [esp]
cmp al, 2
jne 0x45f6ca
cmp ah, al
jne 0x45f6ca
xor eax, eax
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.0043b4a5
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.0043b4a5
add esp, 0x194
ret

Function at 0x46b1b0
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 0x46b1e2
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 0x46b330
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esi + 0x164]
test ecx, ecx
je 0x46b34b
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 0x46b37f
cmp eax, 2
jg 0x46b37f
mov ecx, dword [esi + 0xf0]
push ecx
push 1
lea edx, [eax + eax*2 + 0x4d1f80]
push 2
push edx
call fcn.0043ada7
mov eax, dword [esi + 0xf0]
push eax
push 1
push edi
push ebx
call fcn.0043ada7
add esp, 0x20
xor eax, eax
ret

Function at 0x46b690
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
cmp edi, 0xffffffff
mov dword [ebx], 0
jne 0x46b70d
push ebp
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebp, eax
cmp ebp, 0x2733
jne 0x46b6e4
pop ebp
pop edi
pop esi
mov dword [ebx], 0x51
xor eax, eax
pop ebx
ret
push ebp
push esi
call fcn.0046f590
push eax
mov eax, dword [esi]
push str.Send_failure:__s
push eax
call fcn.0046b510
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 0x46bed0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x10c
mov eax, dword [0x506550]
xor eax, esp
mov dword [esp + 0x108], eax
push ebx
push ebp
mov ebp, dword [esp + 0x118]
cmp dword [ebp + 0x19c], 0
push esi
push edi
mov edi, dword [ebp]
mov dword [esp + 0x14], edi
jne 0x46c00b
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 0x46bf4c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push ebp
call fcn.0046f590
push eax
push esi
push str.getpeername___failed_with_errno__d:__s
push edi
call fcn.0046b510
add esp, 0x18
jmp 0x46c014
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 0x46bf8c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push ebp
call fcn.0046f590
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
push edi
call fcn.0046b510
add esp, 0x18
jmp 0x46c014
lea ebx, [ebp + 0xcc]
lea edi, [ebp + 0x9e]
lea esi, [esp + 0x18]
call fcn.0046be90
test eax, eax
jne 0x46bfca
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push ebp
call fcn.0046f590
mov ecx, dword [esp + 0x1c]
push eax
push esi
push str.ssrem_inet_ntop___failed_with_errno__d:__s
push ecx
call fcn.0046b510
add esp, 0x18
jmp 0x46c014
lea ebx, [ebp + 0x100]
lea edi, [ebp + 0xd0]
lea esi, [esp + 0x98]
call fcn.0046be90
test eax, eax
jne 0x46c00b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push ebp
call fcn.0046f590
mov edx, dword [esp + 0x1c]
push eax
push esi
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push edx
call fcn.0046b510
add esp, 0x18
jmp 0x46c014
push ebp
call fcn.0046be30
add esp, 4
mov ecx, dword [esp + 0x118]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0043b4a5
add esp, 0x10c
ret

Function at 0x46c030
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 0x46c073
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.0046f590
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.0046b480
add esp, 0x14
pop esi
pop ecx
ret
push str.TCP_NODELAY_set_n
push esi
call fcn.0046b480
add esp, 8
pop esi
pop ecx
ret

Function at 0x46c090
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 0x46c0d9
mov edx, dword [esp + 4]
cmp edx, dword [esp + 8]
jg 0x46c0f1
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 0x46c100
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov ecx, dword [esp + 4]
mov eax, dword [ecx + 0x530]
cmp eax, 0xffffffff
je 0x46c159
mov ecx, dword [ecx + 0x524]
mov edx, dword [ecx]
cmp dword [edx + eax*4], 0
lea eax, [edx + eax*4]
je 0x46c159
mov ecx, dword [esp + 8]
test ecx, ecx
mov eax, dword [eax]
je 0x46c12c
mov dword [ecx], eax
cmp dword [eax + 0x148], 0
push esi
mov esi, dword [eax + 0x130]
jne 0x46c150
push 2
push 1
lea eax, [esp + 0x10]
push eax
push esi
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jne 0x46c155
or eax, 0xffffffff
pop esi
ret
mov eax, esi
pop esi
ret
or eax, 0xffffffff
ret
Function at 0x46dba0
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
test ecx, ecx
mov dword [esp + 0x1c], ecx
je 0x46dc44
cmp word [ecx + 8], 2
push ebx
push ebp
push edi
jne 0x46dc15
cmp word [ecx + 0xa], 4
jne 0x46dc15
mov edi, dword [ecx + 0xc]
mov eax, dword [edi]
test eax, eax
je 0x46dc15
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.0046db30
test eax, eax
mov dword [esi], eax
je 0x46dc38
add edi, 4
lea esi, [eax + 0x1c]
mov eax, dword [edi]
test eax, eax
jne 0x46dbf0
mov ecx, dword [esp + 0x28]
mov ecx, dword [ecx]
mov edx, dword [esp + 0x24]
push 0x400
push ecx
push 0x401
push edx
call fcn.0044f8d9
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.0x46dc54.11001
jmp dword [eax*4 + 0x46dc78]
mov eax, 0x2af9
pop esi
ret 0x18
mov eax, 0x2afa
pop esi
ret 0x18
mov eax, 0x2afb
pop esi
ret 0x18
Function at 0x46e4b0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x230
mov eax, dword [0x506550]
xor eax, esp
mov dword [esp + 0x22c], eax
cmp dword [0x50e86c], 0
mov dword [esp], str.getaddrinfo
mov dword [esp + 4], 0x46df00
mov dword [esp + 8], str.getnameinfo
mov dword [esp + 0xc], 0x46e1f0
mov dword [esp + 0x10], str.freeaddrinfo
mov dword [esp + 0x14], fcn.0046deb0
je 0x46e522
movzx eax, word [esp + 0x234]
mov eax, dword [eax*8 + 0x507b70]
mov ecx, dword [esp + 0x22c]
xor ecx, esp
call fcn.0043b4a5
add esp, 0x230
ret 4
push 0x104
lea ecx, [esp + 0x128]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x46e61f
push ebx
push ebp
push esi
push edi
lea edx, [esp + 0x134]
push edx
lea eax, [esp + 0x2c]
push 0x10c
push eax
call fcn.00448af5
push str.ws2_32
lea ecx, [esp + 0x38]
push 0x10c
push ecx
call fcn.0044f868
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
add esp, 0x18
lea edx, [esp + 0x28]
push edx
call edi
mov ebp, dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x46e59d
push str.getaddrinfo
push esi
call ebx
test eax, eax
jne 0x46e5e4
push esi
call ebp
lea eax, [esp + 0x134]
push eax
lea ecx, [esp + 0x2c]
push 0x10c
push ecx
call fcn.00448af5
push str.wship6
lea edx, [esp + 0x38]
push 0x10c
push edx
call fcn.0044f868
add esp, 0x18
lea eax, [esp + 0x28]
push eax
call edi
mov esi, eax
test esi, esi
je 0x46e61b
push str.getaddrinfo
push esi
call ebx
test eax, eax
je 0x46e64f
xor edi, edi
mov ecx, dword [esp + edi*8 + 0x10]
push ecx
push esi
call ebx
test eax, eax
mov dword [esp + edi*8 + 0x14], eax
je 0x46e64f
add edi, 1
cmp edi, 3
jl 0x46e5e6
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x24]
mov dword [0x507b70], edx
mov dword [0x507b78], eax
mov dword [fcn.0046deb0], ecx
pop edi
pop esi
pop ebp
pop ebx
movzx edx, word [esp + 0x234]
mov ecx, dword [esp + 0x22c]
mov eax, dword [edx*8 + 0x507b70]
xor ecx, esp
mov dword [0x50e86c], 1
call fcn.0043b4a5
add esp, 0x230
ret 4
push esi
call ebp
jmp 0x46e61b

Function at 0x46ebb0
Capabilities:
Create thread

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
push 0
push 0
push eax
push ecx
push 0
push 0
call fcn.00443494
add esp, 0x18
test eax, eax
je 0x46ebd3
cmp eax, 0xffffffff
jne 0x46ebd5
xor eax, eax
ret
Function at 0x4753c0
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, dword [esi + 0x10]
mov ecx, dword [eax]
push str.Connected_for_receive
push 0x4d1ecc
push ecx
call fcn.0046b480
add esp, 0xc
mov eax, esi
mov dword [esi], 1
call fcn.00474560
test eax, eax
jne 0x4753f0
mov eax, esi
jmp fcn.004749f0
ret