joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a1010
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x5925f0]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x220], ecx
mov eax, dword [ebp - 0x220]
mov ecx, dword [eax + 0x714]
mov edx, dword [ebp - 0x220]
mov eax, dword [edx + 0x714]
add eax, 0x4d0
mov edx, dword [ecx + 0x4d0]
mov ecx, eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
je 0x4a1177
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 0x220]
mov eax, dword [edx + 0x714]
mov ecx, dword [ebp - 0x220]
mov ecx, dword [ecx + 0x714]
add ecx, 0x4a0
mov edx, dword [eax + 0x4a0]
mov eax, dword [edx + 0x1c]
call eax
mov ecx, dword [0x594280]
call fcn.0042bd00
mov ecx, eax
call fcn.0048cb00
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
push ecx
mov ecx, dword [ebp - 8]
call fcn.00426fd0
mov ecx, eax
call fcn.004017c0
mov dword [ebp - 0x21c], eax
mov word [ebp - 0x218], 0
push 0x206
push 0
lea edx, [ebp - 0x216]
push edx
call fcn.004caa30
add esp, 0xc
push 0x5583c4
mov eax, dword [ebp - 0x21c]
push eax
mov ecx, dword [0x594280]
call fcn.0042bca0
mov ecx, eax
call fcn.0042b180
push eax
push 0x5583d0
lea ecx, [ebp - 0x218]
push ecx
call fcn.004cb62b
add esp, 0x14
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0x5583e8
mov eax, dword [ebp - 0x21c]
push eax
mov ecx, dword [0x594280]
call fcn.0042bca0
mov ecx, eax
call fcn.0042b1c0
push eax
push 0x5583f4
lea ecx, [ebp - 0x218]
push ecx
call fcn.004cb62b
add esp, 0x14
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [0x594280]
call fcn.0042bd00
mov ecx, eax
call fcn.0048cae0
mov ecx, dword [ebp - 0x220]
call fcn.004a2fe0
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.004ca9d7
mov esp, ebp
pop ebp
ret
Function at 0x4aad89
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
test ebx, 0xffff0000
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
jne 0x4aada9
cmp dword [edi + 0x54], 0
jne 0x4aada9
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.004b63aa
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [esp + 0x18]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.004aad50
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
ret 8

Function at 0x4ae807
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x4ae840
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004ae7a0
push eax
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004ad502
pop esi
ret 4
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
pop esi
jmp dword [eax + 0x8c]

Function at 0x4afe79
Capabilities:
Get graphical window text

Disassembly:
push esi
push edi
mov edi, dword [esp + 0x10]
mov esi, ecx
push 0x57536c
mov ecx, edi
call fcn.0040a960
cmp dword [esi + 0x4c], 0
push dword [esp + 0xc]
jne 0x4afecc
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, eax
test esi, esi
je 0x4afedf
push esi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
push eax
mov ecx, edi
call fcn.004ae7a0
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0xffffffffffffffff
mov ecx, edi
call fcn.004ad502
jmp 0x4afedf
mov ecx, esi
call fcn.004b0c18
test eax, eax
je 0x4afedf
push edi
mov ecx, eax
call fcn.004ae807
mov eax, dword [edi]
mov eax, dword [eax - 0xc]
pop edi
pop esi
ret 8

Function at 0x4b04c6
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x4b0509
call fcn.004b63aa
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4b0509
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x4b0524
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.004b0080
test ebx, ebx
mov esi, eax
je 0x4b0522
test edi, edi
je 0x4b0522
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x4b4f8e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
je 0x4b4fd4
call fcn.004b63aa
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4b4fd4
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 4], eax
je 0x4b5017
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
je 0x4b5000
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x4b5000
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x4b5014
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x4bb270
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4bb29e
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4bb2bc
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004bb1da
jmp 0x4bb2bc
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4bb2bc
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.004bb1da
test edi, edi
mov eax, edi
jne 0x4bb2a6
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x598890]
test ecx, ecx
je 0x4bb37f
jmp 0x4bb26f
ret 8

Function at 0x4ca9d7
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x5925f0]
jne 0x4ca9e1
repz ret
jmp fcn.004d3f1c
Function at 0x4e0395
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.004d2a76
xor ebx, ebx
cmp dword [0x599664], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x4e046a
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x4e03d5
xor eax, eax
jmp 0x4e052e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x4e03ce
push eax
call fcn.004d2a13
mov dword [esp], 0x55ec24
push edi
mov dword [0x599664], eax
call esi
push eax
call fcn.004d2a13
mov dword [esp], 0x55ec10
push edi
mov dword [0x599668], eax
call esi
push eax
call fcn.004d2a13
mov dword [0x59966c], eax
lea eax, [ebp - 8]
push eax
call fcn.004d0fb9
test eax, eax
pop ecx
pop ecx
je 0x4e0438
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004cac52
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x4e046a
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.004d2a13
cmp eax, ebx
pop ecx
mov dword [0x599674], eax
je 0x4e046a
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004d2a13
pop ecx
mov dword [0x599670], eax
mov eax, dword [0x599670]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x4e04e3
cmp dword [0x599674], esi
je 0x4e04e3
push eax
call fcn.004d2a7f
pop ecx
call eax
cmp eax, ebx
je 0x4e04b0
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x599674]
call fcn.004d2a7f
pop ecx
call eax
test eax, eax
je 0x4e04b0
test byte [ebp - 0x18], 1
jne 0x4e04e3
lea eax, [ebp - 0xc]
push eax
call fcn.004d0ff0
test eax, eax
pop ecx
je 0x4e04cb
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004cac52
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x4e04da
or dword [ebp + 0x10], 0x200000
jmp 0x4e0514
or dword [ebp + 0x10], 0x40000
jmp 0x4e0514
mov eax, dword [0x599668]
cmp eax, esi
je 0x4e0514
push eax
call fcn.004d2a7f
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x4e0514
mov eax, dword [0x59966c]
cmp eax, esi
je 0x4e0514
push dword [ebp - 4]
push eax
call fcn.004d2a7f
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x599664]
call fcn.004d2a7f
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4e95a0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x541c13
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
mov eax, dword [0x5925f0]
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], 0x5998f8
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], 0x5998f8
mov dword [esi + 0x40], eax
mov dword [esi + 0x3c], eax
push ebx
push 0x575348
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.004ec910
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 0x4e9650
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x541e58
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5925f0]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov ebx, ecx
mov ebp, dword [esp + 0x28]
xor edi, edi
cmp ebp, edi
jne 0x4e9692
push edi
push edi
push edi
push 2
call fcn.004eaf50
xor al, al
jmp 0x4e982f
mov esi, dword [ebx + 0x18]
cmp esi, edi
je 0x4e96b1
lea esp, [esp]
mov ecx, esi
mov eax, dword [ecx]
mov edx, dword [eax]
mov esi, dword [esi + 0x28]
push 1
call edx
cmp esi, edi
jne 0x4e96a0
push 2
or eax, 0xffffffff
mov dword [ebx + 0x18], edi
mov dword [ebx + 0x1c], edi
push edi
push ebp
mov dword [ebx + 8], eax
mov dword [ebx + 4], eax
call fcn.00516803
push ebp
call fcn.0051670e
push 0
push 0
push ebp
mov edi, eax
call fcn.00516803
add esp, 0x1c
test edi, edi
jne 0x4e96f5
push edi
push edi
push edi
push 0xd
mov ecx, ebx
call fcn.004eaf50
xor al, al
jmp 0x4e982f
mov dword [esp + 0x14], 0x5998f8
push edi
lea ecx, [esp + 0x18]
mov dword [esp + 0x24], 0
call fcn.004ec870
lea eax, [edi + 1]
push eax
call fcn.004aa385
push ebp
mov esi, eax
push 1
push edi
push esi
mov dword [esp + 0x3c], esi
mov byte [esi], 0
call fcn.0051655b
add esp, 0x14
cmp eax, 1
je 0x4e9765
push 0
push 0
push 0
push 2
mov ecx, ebx
call fcn.004eaf50
mov eax, dword [esp + 0x14]
mov dword [esp + 0x20], 0xffffffff
cmp eax, 0x5998f8
je 0x4e975e
push eax
call fcn.004aa3b5
add esp, 4
xor al, al
jmp 0x4e982f
mov ebp, dword [esp + 0x28]
mov byte [edi + ebp], 0
cmp byte [ebp], 0
mov eax, esi
je 0x4e97d7
mov cl, byte [esi]
cmp cl, 0xa
jne 0x4e9795
mov ecx, esi
sub ecx, eax
add ecx, 1
push ecx
push eax
lea ecx, [esp + 0x1c]
call fcn.004eca00
add esi, 1
mov eax, esi
jmp 0x4e97d2
cmp cl, 0xd
jne 0x4e97cf
mov ecx, esi
sub ecx, eax
test ecx, ecx
jle 0x4e97ad
push ecx
push eax
lea ecx, [esp + 0x1c]
call fcn.004eca00
push 1
lea edx, [esp + 0x2c]
push edx
lea ecx, [esp + 0x1c]
mov byte [esp + 0x30], 0xa
call fcn.004eca00
cmp byte [esi + 1], 0xa
jne 0x4e978e
add esi, 2
mov eax, esi
jmp 0x4e97d2
add esi, 1
cmp byte [esi], 0
jne 0x4e9775
sub esi, eax
je 0x4e97e6
push esi
push eax
lea ecx, [esp + 0x1c]
call fcn.004eca00
push ebp
call fcn.004aa3b5
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x18]
mov eax, dword [ebx]
mov eax, dword [eax + 8]
add esp, 4
push ecx
push 0
add edx, 8
push edx
mov ecx, ebx
call eax
cmp byte [ebx + 0x2c], 0
mov eax, dword [esp + 0x14]
mov dword [esp + 0x20], 0xffffffff
jne 0x4e974e
cmp eax, 0x5998f8
je 0x4e982d
push eax
call fcn.004aa3b5
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 8
Function at 0x4e9bc0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x541cb9
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5925f0]
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], 0x5998f8
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], 0x5998f8
lea ebp, [esi + 0x30]
mov dword [ebp], 0x5998f8
mov dword [esi + 0x34], 0x5998f8
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 0x4e9c50
sub eax, dword [esp + 0x28]
push eax
push ecx
mov ecx, edi
call fcn.004ec910
mov edi, dword [esp + 0x2c]
mov eax, edi
lea ecx, [eax + 1]
nop
mov dl, byte [eax]
add eax, 1
cmp dl, bl
jne 0x4e9c70
sub eax, ecx
push eax
push edi
mov ecx, ebp
call fcn.004ec910
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 0x4e9c90
sub eax, edi
push eax
push edx
lea ecx, [esi + 0x34]
call fcn.004ec910
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 0x4eca50
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x194
mov eax, dword [0x5925f0]
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 0x4ecaa0
mov ax, word [esp]
cmp al, 2
jne 0x4eca9a
cmp ah, al
jne 0x4eca9a
xor eax, eax
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.004ca9d7
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.004ca9d7
add esp, 0x194
ret

Function at 0x4f8510
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 0x4f8542
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 0x4f8690
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esi + 0x164]
test ecx, ecx
je 0x4f86ab
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 0x4f86df
cmp eax, 2
jg 0x4f86df
mov ecx, dword [esi + 0xf0]
push ecx
push 1
lea edx, [eax + eax*2 + 0x561680]
push 2
push edx
call fcn.004cb9f7
mov eax, dword [esi + 0xf0]
push eax
push 1
push edi
push ebx
call fcn.004cb9f7
add esp, 0x20
xor eax, eax
ret
Function at 0x4f89f0
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 0x4f8a6d
push ebp
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebp, eax
cmp ebp, 0x2733
jne 0x4f8a44
pop ebp
pop edi
pop esi
mov dword [ebx], 0x51
xor eax, eax
pop ebx
ret
push ebp
push esi
call fcn.004fc8f0
push eax
mov eax, dword [esi]
push str.Send_failure:__s
push eax
call fcn.004f8870
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 0x4f9230
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x10c
mov eax, dword [0x5925f0]
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 0x4f936b
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 0x4f92ac
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push ebp
call fcn.004fc8f0
push eax
push esi
push str.getpeername___failed_with_errno__d:__s
push edi
call fcn.004f8870
add esp, 0x18
jmp 0x4f9374
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 0x4f92ec
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push ebp
call fcn.004fc8f0
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
push edi
call fcn.004f8870
add esp, 0x18
jmp 0x4f9374
lea ebx, [ebp + 0xcc]
lea edi, [ebp + 0x9e]
lea esi, [esp + 0x18]
call fcn.004f91f0
test eax, eax
jne 0x4f932a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push ebp
call fcn.004fc8f0
mov ecx, dword [esp + 0x1c]
push eax
push esi
push str.ssrem_inet_ntop___failed_with_errno__d:__s
push ecx
call fcn.004f8870
add esp, 0x18
jmp 0x4f9374
lea ebx, [ebp + 0x100]
lea edi, [ebp + 0xd0]
lea esi, [esp + 0x98]
call fcn.004f91f0
test eax, eax
jne 0x4f936b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push ebp
call fcn.004fc8f0
mov edx, dword [esp + 0x1c]
push eax
push esi
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push edx
call fcn.004f8870
add esp, 0x18
jmp 0x4f9374
push ebp
call fcn.004f9190
add esp, 4
mov ecx, dword [esp + 0x118]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004ca9d7
add esp, 0x10c
ret

Function at 0x4f9390
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 0x4f93d3
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.004fc8f0
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.004f87e0
add esp, 0x14
pop esi
pop ecx
ret
push str.TCP_NODELAY_set_n
push esi
call fcn.004f87e0
add esp, 8
pop esi
pop ecx
ret

Function at 0x4f93f0
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 0x4f9439
mov edx, dword [esp + 4]
cmp edx, dword [esp + 8]
jg 0x4f9451
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 0x4f9460
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov ecx, dword [esp + 4]
mov eax, dword [ecx + 0x530]
cmp eax, 0xffffffff
je 0x4f94b9
mov ecx, dword [ecx + 0x524]
mov edx, dword [ecx]
cmp dword [edx + eax*4], 0
lea eax, [edx + eax*4]
je 0x4f94b9
mov ecx, dword [esp + 8]
test ecx, ecx
mov eax, dword [eax]
je 0x4f948c
mov dword [ecx], eax
cmp dword [eax + 0x148], 0
push esi
mov esi, dword [eax + 0x130]
jne 0x4f94b0
push 2
push 1
lea eax, [esp + 0x10]
push eax
push esi
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jne 0x4f94b5
or eax, 0xffffffff
pop esi
ret
mov eax, esi
pop esi
ret
or eax, 0xffffffff
ret
Function at 0x4faf00
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 0x4fafa4
cmp word [ecx + 8], 2
push ebx
push ebp
push edi
jne 0x4faf75
cmp word [ecx + 0xa], 4
jne 0x4faf75
mov edi, dword [ecx + 0xc]
mov eax, dword [edi]
test eax, eax
je 0x4faf75
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.004fae90
test eax, eax
mov dword [esi], eax
je 0x4faf98
add edi, 4
lea esi, [eax + 0x1c]
mov eax, dword [edi]
test eax, eax
jne 0x4faf50
mov ecx, dword [esp + 0x28]
mov ecx, dword [ecx]
mov edx, dword [esp + 0x24]
push 0x400
push ecx
push 0x401
push edx
call fcn.004dd7e0
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.0x4fafb4.11001
jmp dword [eax*4 + 0x4fafd8]
mov eax, 0x2af9
pop esi
ret 0x18
mov eax, 0x2afa
pop esi
ret 0x18
mov eax, 0x2afb
pop esi
ret 0x18
Function at 0x4fb810
Capabilities:
Get common file path

Disassembly:
sub esp, 0x230
mov eax, dword [0x5925f0]
xor eax, esp
mov dword [esp + 0x22c], eax
cmp dword [0x59992c], 0
mov dword [esp], str.getaddrinfo
mov dword [esp + 4], 0x4fb260
mov dword [esp + 8], str.getnameinfo
mov dword [esp + 0xc], 0x4fb550
mov dword [esp + 0x10], str.freeaddrinfo
mov dword [esp + 0x14], fcn.004fb210
je 0x4fb882
movzx eax, word [esp + 0x234]
mov eax, dword [eax*8 + 0x593cb0]
mov ecx, dword [esp + 0x22c]
xor ecx, esp
call fcn.004ca9d7
add esp, 0x230
ret 4
push 0x104
lea ecx, [esp + 0x128]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x4fb97f
push ebx
push ebp
push esi
push edi
lea edx, [esp + 0x134]
push edx
lea eax, [esp + 0x2c]
push 0x10c
push eax
call fcn.004d41cb
push str.ws2_32
lea ecx, [esp + 0x38]
push 0x10c
push ecx
call fcn.004dd76f
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 0x4fb8fd
push str.getaddrinfo
push esi
call ebx
test eax, eax
jne 0x4fb944
push esi
call ebp
lea eax, [esp + 0x134]
push eax
lea ecx, [esp + 0x2c]
push 0x10c
push ecx
call fcn.004d41cb
push str.wship6
lea edx, [esp + 0x38]
push 0x10c
push edx
call fcn.004dd76f
add esp, 0x18
lea eax, [esp + 0x28]
push eax
call edi
mov esi, eax
test esi, esi
je 0x4fb97b
push str.getaddrinfo
push esi
call ebx
test eax, eax
je 0x4fb9af
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 0x4fb9af
add edi, 1
cmp edi, 3
jl 0x4fb946
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x24]
mov dword [0x593cb0], edx
mov dword [0x593cb8], eax
mov dword [fcn.004fb210], ecx
pop edi
pop esi
pop ebp
pop ebx
movzx edx, word [esp + 0x234]
mov ecx, dword [esp + 0x22c]
mov eax, dword [edx*8 + 0x593cb0]
xor ecx, esp
mov dword [0x59992c], 1
call fcn.004ca9d7
add esp, 0x230
ret 4
push esi
call ebp
jmp 0x4fb97b

Function at 0x4fbf10
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.004d13d1
add esp, 0x18
test eax, eax
je 0x4fbf33
cmp eax, 0xffffffff
jne 0x4fbf35
xor eax, eax
ret