joyce8/EMBER2024-capa huggingface dataset:
Function at 0x74e163
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x8cf144]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
mov ebx, 0x114
push edi
push ebx
xor edi, edi
mov eax, dword [esi + 0x210]
mov dword [esi + 0x214], eax
lea eax, [ebp - 0x118]
push edi
push eax
call fcn.007512b0
add esp, 0xc
mov dword [ebp - 0x118], ebx
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x108], 2
jne 0x74e1c4
mov ecx, esi
call fcn.0074dbdd
jmp 0x74e1d9
mov ebx, edi
test edi, edi
jne 0x74e1d9
mov ecx, esi
call fcn.0074dab8
inc ebx
mov edi, eax
cmp ebx, 0xa
jl 0x74e1c6
mov eax, dword [esi + 0x214]
mov ecx, 0x1b0
sub eax, dword [esi + 0x210]
cdq
idiv ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.006e615c
mov esp, ebp
pop ebp
ret

Function at 0x74e48b
Capabilities:
Check if file exists
Get common file path
Get program files directory
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x8cf144]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x418]
push eax
push 0x20019
xor ebx, ebx
push ebx
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_PathsIEXPLORE.EXE
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x418], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x74e4d3
xor eax, eax
jmp 0x74e5bd
push 0x208
lea eax, [ebp - 0x414]
push ebx
push eax
call fcn.007512b0
add esp, 0xc
mov dword [ebp - 0x41c], 0x104
lea eax, [ebp - 0x41c]
mov dword [ebp - 0x420], 1
push eax
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x420]
push eax
push ebx
push 0x8b5798
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x74e59f
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x208
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.007512b0
add esp, 0xc
lea eax, [ebp - 0x20c]
push ebx
push 0x26
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x20c]
push str.Internet_Exploreriexplore.exe
push eax
call fcn.00761506
pop ecx
pop ecx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x74e4cc
lea ecx, [ebp - 0x20c]
push ecx
push esi
call fcn.00761577
pop ecx
pop ecx
jmp 0x74e5ba
lea eax, [ebp - 0x414]
push eax
push esi
call fcn.00761577
pop ecx
pop ecx
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.006e615c
mov esp, ebp
pop ebp
ret 4
Function at 0x74e64b
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x8cf144]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor edi, edi
lea eax, [ebp - 0x20c]
push 0x208
push edi
push eax
mov dword [ebp - 0x218], edi
mov dword [ebp - 0x210], edi
mov dword [ebp - 0x214], edi
mov dword [ebp - 0x21c], edi
call fcn.007512b0
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0x218]
add esp, 0xc
mov ebx, 0x20019
push eax
push ebx
push edi
push 0x8b5884
push SysReAllocString
call esi
test eax, eax
je 0x74e6bb
xor eax, eax
jmp 0x74e789
lea eax, [ebp - 0x210]
push eax
push ebx
push edi
push str.shell
push dword [ebp - 0x218]
call esi
test eax, eax
jne 0x74e6b4
lea eax, [ebp - 0x214]
push eax
push ebx
push edi
push str.opencommand
push dword [ebp - 0x210]
call esi
test eax, eax
jne 0x74e6b4
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x21c], 0x104
push eax
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x220], 1
push eax
lea eax, [ebp - 0x220]
push eax
push edi
push 0x8b5798
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x210]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 0x214]
call esi
lea eax, [ebp - 0x20c]
push eax
call fcn.0075bf65
mov edi, 0x8130cc
push edi
push eax
call fcn.00750665
add esp, 0xc
test eax, eax
je 0x74e6b4
lea esi, [eax + 2]
push edi
push esi
call fcn.00750665
pop ecx
pop ecx
test eax, eax
je 0x74e6b4
xor ecx, ecx
push esi
mov word [eax], cx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
neg eax
sbb eax, eax
neg eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.006e615c
mov esp, ebp
pop ebp
ret
Function at 0x74eae3
Capabilities:
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1fa4
call fcn.006e6170
mov eax, dword [0x8cf144]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x804]
push edi
mov edi, 0x800
xor ebx, ebx
push edi
push ebx
push eax
call fcn.007512b0
push edi
lea eax, [ebp - 0x1004]
push ebx
push eax
call fcn.007512b0
add esp, 0x18
lea eax, [ebp - 0x1fa4]
push 0x7d0
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push 0x8a3078
push 0x8a30d8
call fcn.00761599
pop ecx
lea eax, [ebp + eax*2 - 0x1fa4]
push eax
call fcn.00761577
lea eax, [ebp - 0x1fa4]
push eax
lea eax, [ebp - 0x1004]
push eax
call fcn.00761577
lea eax, [ebp - 0x804]
push esi
push eax
call fcn.00761577
lea eax, [ebp - 0x1fa4]
push esi
push eax
call fcn.00761506
add esp, 0x20
push 1
push ebx
push ebx
push esi
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
ja 0x74ebb3
push ebx
push ebx
lea ecx, [ebp - 0x804]
push ecx
lea ecx, [ebp - 0x1004]
push ecx
call fcn.0072ac27
add esp, 0x10
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
inc eax
pop ebx
call fcn.006e615c
mov esp, ebp
pop ebp
ret 4

Function at 0x74ef44
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, ecx
lea esi, [edi + 4]
cmp dword [esi + 0x14], 8
jb 0x74ef58
mov eax, dword [esi]
jmp 0x74ef5a
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x74efbe
push 0x8a670c
call fcn.00761599
pop ecx
push eax
push 0x8a670c
lea ecx, [edi + 0x34]
call fcn.00402820
cmp dword [esi + 0x14], 8
jb 0x74ef88
mov eax, dword [esi]
jmp 0x74ef8a
mov eax, esi
push dword [ebp + 8]
mov ecx, edi
push eax
call fcn.0074eeb1
test eax, eax
jne 0x74efbe
cmp dword [esi + 0x14], 8
jb 0x74efa3
mov eax, dword [esi]
jmp 0x74efa5
mov eax, esi
push 0
push 0
push dword [ebp + 8]
push eax
call fcn.0072ac27
add esp, 0x10
test eax, eax
je 0x74efbe
xor eax, eax
inc eax
jmp 0x74f026
lea eax, [edi + 0x1c]
cmp dword [eax + 0x14], 8
jb 0x74efc9
mov eax, dword [eax]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x74f024
push 0x8a6718
call fcn.00761599
pop ecx
push eax
push 0x8a6718
lea ecx, [edi + 0x34]
call fcn.00402820
cmp dword [esi + 0x14], 8
jb 0x74eff7
mov eax, dword [esi]
jmp 0x74eff9
mov eax, esi
push dword [ebp + 8]
mov ecx, edi
push eax
call fcn.0074eeb1
test eax, eax
jne 0x74f024
cmp dword [esi + 0x14], 8
jb 0x74f010
mov esi, dword [esi]
push 0
push 0
push dword [ebp + 8]
push esi
call fcn.0072ac27
add esp, 0x10
test eax, eax
jne 0x74efb9
xor eax, eax
pop edi
pop esi
pop ebp
ret 4
Function at 0x74f02c
Capabilities:
Get disk information

Disassembly:
push 0x4e0
mov eax, 0x7b6949
call fcn.00774621
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x4e0]
mov ebx, dword [ebp + 0xc]
xor edi, edi
push edi
xor eax, eax
mov dword [ebp - 0x4ec], edi
push 0x8b5798
mov dword [ebp - 0x4cc], 7
mov dword [ebp - 0x4d0], edi
mov word [ebp - 0x4e0], ax
call fcn.00402820
mov dword [ebp - 4], edi
test ebx, ebx
je 0x74f162
lea eax, [ebp - 0x4c8]
push eax
push 0x3e8
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
je 0x74f162
mov dword [ebp - 0x4e4], edi
cmp word [ebp - 0x4c8], di
je 0x74f162
and dword [ebp - 0x4e8], 0
lea edi, [ebp - 0x4c8]
push 0x8a6730
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x74f136
push 0x8a6738
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x74f136
mov ax, word [edi]
mov word [ebp - 0x18], ax
mov eax, dword [ebp - 0x4e8]
push 0x64
mov ax, word [ebp + eax - 0x4c6]
mov word [ebp - 0x16], ax
xor eax, eax
mov word [ebp - 0x14], ax
lea eax, [ebp - 0xe0]
push eax
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x74f1e0
lea eax, [ebp - 0xe0]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, eax
lea eax, [ebp - 0xe0]
push edi
push eax
push ebx
call fcn.00763789
add esp, 0xc
test eax, eax
je 0x74f188
mov eax, dword [ebp - 0x4e4]
lea edi, [ebp - 0x4c8]
add eax, 4
mov dword [ebp - 0x4e4], eax
add eax, eax
add edi, eax
mov dword [ebp - 0x4e8], eax
xor eax, eax
cmp word [edi], ax
jne 0x74f0b8
xor edi, edi
lea eax, [ebp - 0x4e0]
mov ecx, esi
push eax
call fcn.00404840
push edi
push 1
lea ecx, [ebp - 0x4e0]
call fcn.00402760
mov eax, esi
call fcn.007745cb
ret 8
cmp word [ebp - 0x18], 0
jne 0x74f193
xor eax, eax
jmp 0x74f19d
lea eax, [ebp - 0x18]
push eax
call fcn.00761599
pop ecx
push eax
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x4e0]
call fcn.00404470
lea edi, [ebx + edi*2]
xor ebx, ebx
cmp word [edi], bx
jne 0x74f1bb
mov eax, ebx
jmp 0x74f1c2
push edi
call fcn.00761599
pop ecx
push eax
push edi
lea ecx, [ebp - 0x4e0]
call fcn.00404470
lea eax, [ebp - 0x4e0]
mov ecx, esi
push eax
call fcn.00404840
push ebx
jmp 0x74f171
push 0x8b5798
mov ecx, esi
call fcn.004026c0
xor eax, eax
push eax
jmp 0x74f171

Function at 0x7675f6
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00767475

Function at 0x7690db
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00768d9b
Function at 0x776260
Capabilities:
Check os version
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x8cf144]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x144]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
push 0x11c
lea eax, [ebp - 0x120]
push 0
push eax
call fcn.007512b0
add esp, 0xc
mov dword [ebp - 0x120], 0x11c
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x11c], 5
jg 0x7762d2
cmp dword [ebp - 0x118], 2
jg 0x7762d2
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006e615c
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.006e615c
mov esp, ebp
pop ebp
ret

Function at 0x776460
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov eax, dword [esi]
cmp dword [eax + 4], 2
jne 0x77648c
mov ecx, dword [esi + 0xc]
test ecx, ecx
jne 0x77647d
pop edi
xor eax, eax
pop esi
pop ebp
ret
push dword [eax + 8]
push dword [ebp + 0x10]
push 1
push dword [ebp + 0xc]
call ecx
jmp 0x7764c0
cmp dword [esi + 8], 0
jne 0x7764b0
push 0x7bb514
push dword [eax + 8]
call fcn.00758542
add esp, 8
mov dword [esi + 8], eax
test eax, eax
jne 0x7764b0
pop edi
or eax, 0xffffffff
pop esi
pop ebp
ret
push dword [esi + 8]
push dword [ebp + 0x10]
push 1
push dword [ebp + 0xc]
call fcn.00758725
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x7764e2
mov eax, dword [esi + 8]
test eax, eax
je 0x7764dc
push eax
call fcn.007582f3
add esp, 4
mov dword [esi + 8], edi
mov eax, dword [esi]
mov eax, dword [eax]
mov dword [esi], eax
mov eax, edi
pop edi
pop esi
pop ebp
ret

Function at 0x7767b0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x8cf144]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x194]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x776800
mov eax, dword [ebp - 0x194]
cmp al, 2
jne 0x7767fa
shr eax, 8
cmp al, 2
jne 0x7767fa
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006e615c
mov esp, ebp
pop ebp
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [ebp - 4]
mov eax, 2
xor ecx, ebp
call fcn.006e615c
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push ebx
push edi
push 0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ecx + eax*4 + 0x130]
call dword [sym.imp.WS2_32.dll_send]
mov ebx, dword [ebp + 0x18]
mov edi, eax
mov dword [ebx], 0
cmp edi, 0xffffffff
jne 0x776eee
push esi
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp esi, 0x2733
jne 0x776ebe
pop esi
pop edi
mov dword [ebx], 0x51
xor eax, eax
pop ebx
pop ebp
ret
push esi
push dword [ebp + 8]
call fcn.00784620
push eax
mov eax, dword [ebp + 8]
push str.Send_failure:__s
push dword [eax]
call fcn.00776b50
mov eax, dword [ebp + 8]
add esp, 0x14
mov eax, dword [eax]
mov dword [eax + 0x856c], esi
mov eax, edi
mov dword [ebx], 0x37
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x7770d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x164]
test eax, eax
je 0x7770f9
push dword [esi + 0xf4]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call eax
add esp, 0x14
pop esi
pop ebp
ret
mov eax, dword [ebp + 0xc]
cmp eax, 2
ja 0x77712f
push dword [esi + 0xf0]
lea eax, [eax + eax*2]
push 1
add eax, 0x8af068
push 2
push eax
call fcn.00759367
push dword [esi + 0xf0]
push 1
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.00759367
add esp, 0x20
xor eax, eax
pop esi
pop ebp
ret

Function at 0x77a3b0
Capabilities:
Create udp socket

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0x48
push 1
call dword [0x8d0060]
mov esi, dword [ebp + 8]
mov edi, eax
add esp, 8
mov ebx, 8
mov dword [esi + 0x3bc], edi
test edi, edi
je 0x77a48c
push dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
lea eax, [edi + 0x10]
push ecx
push dword [ebp + 0xc]
mov dword [esi + 0x3ac], ecx
mov dword [esi + 0x3b4], 0
mov dword [esi + 0x3b8], 0
mov dword [esi + 0x3b0], 0
push eax
mov dword [edi + 4], 0xffffffff
mov dword [edi], 0
call fcn.0077a4c0
add esp, 0x10
test eax, eax
je 0x77a48c
mov eax, dword [esi + 0x3a8]
test eax, eax
je 0x77a444
push eax
call dword [0x8d0054]
add esp, 4
mov dword [esi + 0x3a8], 0
push dword [ebp + 0xc]
call dword [0x8d005c]
add esp, 4
mov dword [esi + 0x3a8], eax
test eax, eax
je 0x77a48c
push 0
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [edi + 4], eax
cmp eax, 0xffffffff
je 0x77a48c
lea eax, [edi + 0x10]
push eax
push 0x77a320
call fcn.00786c60
add esp, 8
mov dword [edi], eax
test eax, eax
jne 0x77a4a9
call fcn.007580c8
mov ebx, dword [eax]
lea eax, [esi + 0x3a8]
push eax
call fcn.0077a230
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret
pop edi
pop esi
mov eax, 1
pop ebx
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x530]
cmp ecx, 0xffffffff
je 0x782cab
mov eax, dword [eax + 0x524]
mov eax, dword [eax]
mov eax, dword [eax + ecx*4]
test eax, eax
je 0x782cab
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x782c79
mov dword [ecx], eax
cmp dword [eax + 0x148], 0
push esi
mov esi, dword [eax + 0x130]
je 0x782c8f
or eax, 0xffffffff
pop esi
pop ebp
ret
push 2
push 1
lea eax, [ebp + 0xb]
push eax
push esi
call dword [sym.imp.WS2_32.dll_recv]
or ecx, 0xffffffff
test eax, eax
cmove esi, ecx
mov eax, esi
pop esi
pop ebp
ret
or eax, 0xffffffff
pop ebp
ret
Function at 0x782e90
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x8cf144]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
cmp dword [edi + 0x19c], 0
mov ebx, dword [edi]
jne 0x783003
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x84]
mov dword [ebp - 0x108], 0x80
push eax
push esi
call dword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x782f0e
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push edi
call fcn.00784620
push eax
push esi
push str.getpeername___failed_with_errno__d:__s
push ebx
call fcn.00776b50
add esp, 0x18
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006e615c
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x108]
mov dword [ebp - 0x108], 0x80
push eax
lea eax, [ebp - 0x104]
push eax
push esi
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x782f61
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push edi
call fcn.00784620
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
push ebx
call fcn.00776b50
add esp, 0x18
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006e615c
mov esp, ebp
pop ebp
ret
lea eax, [edi + 0xcc]
push eax
lea eax, [edi + 0x9e]
push eax
lea eax, [ebp - 0x84]
push eax
call fcn.00783400
add esp, 0xc
test eax, eax
jne 0x782fb2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push edi
call fcn.00784620
push eax
push esi
push str.ssrem_inet_ntop___failed_with_errno__d:__s
push ebx
call fcn.00776b50
add esp, 0x18
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006e615c
mov esp, ebp
pop ebp
ret
lea eax, [edi + 0x100]
push eax
lea eax, [edi + 0xd0]
push eax
lea eax, [ebp - 0x104]
push eax
call fcn.00783400
add esp, 0xc
test eax, eax
jne 0x783003
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push edi
call fcn.00784620
push eax
push esi
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push ebx
call fcn.00776b50
add esp, 0x18
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006e615c
mov esp, ebp
pop ebp
ret
push edi
call fcn.00782cb0
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.006e615c
mov esp, ebp
pop ebp
ret
Function at 0x783870
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
push 4
mov esi, dword [edi]
mov eax, dword [esi + 0x314]
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
push 1
push 6
push dword [ebp + 0xc]
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x7838ba
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.00784620
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.00776bf0
add esp, 0x14
pop edi
pop esi
pop ebp
ret
push str.TCP_NODELAY_set_n
push esi
call fcn.00776bf0
add esp, 8
pop edi
pop esi
pop ebp
ret

Function at 0x785720
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov cl, byte [ebp + 8]
movsx eax, cl
add eax, 0xffffff9f
cmp eax, 0x19
ja case.default.0x785731
jmp dword [eax*4 + 0x7857a4]
mov al, 0x41
pop ebp
ret
mov al, 0x42
pop ebp
ret
mov al, 0x43
pop ebp
ret
mov al, 0x44
pop ebp
ret
mov al, 0x45
pop ebp
ret
mov al, 0x46
pop ebp
ret
mov al, 0x47
pop ebp
ret
mov al, 0x48
pop ebp
ret
mov al, 0x49
pop ebp
ret
mov al, 0x4a
pop ebp
ret
mov al, 0x4b
pop ebp
ret
mov al, 0x4c
pop ebp
ret
mov al, 0x4d
pop ebp
ret
mov al, 0x4e
pop ebp
ret
mov al, 0x4f
pop ebp
ret
mov al, 0x50
pop ebp
ret
mov al, 0x51
pop ebp
ret
mov al, 0x52
pop ebp
ret
mov al, 0x53
pop ebp
ret
mov al, 0x54
pop ebp
ret
mov al, 0x55
pop ebp
ret
mov al, 0x56
pop ebp
ret
mov al, 0x57
pop ebp
ret
mov al, 0x58
pop ebp
ret
mov al, 0x59
pop ebp
ret
mov al, 0x5a
pop ebp
ret
mov al, cl
pop ebp
ret
Function at 0x7864f0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x8cf144]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x8d6340], 0
mov dword [ebp - 0x230], str.getaddrinfo
mov dword [ebp - 0x22c], 0x786000
mov dword [ebp - 0x228], str.getnameinfo
mov dword [ebp - 0x224], 0x7862a0
mov dword [ebp - 0x220], str.freeaddrinfo
mov dword [ebp - 0x21c], fcn.00785fb0
jne 0x786672
push 0x104
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x786668
push ebx
push esi
push edi
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x110]
push 0x10c
push eax
call fcn.00763c59
push str.ws2_32
lea eax, [ebp - 0x110]
push 0x10c
push eax
call fcn.0079ee6f
add esp, 0x18
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov edi, eax
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
test edi, edi
je 0x7865c8
push str.getaddrinfo
push edi
call ebx
test eax, eax
jne 0x78661d
push edi
call esi
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x110]
push 0x10c
push eax
call fcn.00763c59
push str.wship6
lea eax, [ebp - 0x110]
push 0x10c
push eax
call fcn.0079ee6f
add esp, 0x18
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x786665
push str.getaddrinfo
push edi
call ebx
test eax, eax
jne 0x78661d
push edi
call esi
jmp 0x786665
xor esi, esi
nop
push dword [ebp + esi*8 - 0x230]
push edi
call ebx
mov dword [ebp + esi*8 - 0x22c], eax
test eax, eax
je 0x78665e
inc esi
cmp esi, 3
jl 0x786620
mov eax, dword [ebp - 0x22c]
mov dword [0x8d0068], eax
mov eax, dword [ebp - 0x224]
mov dword [0x8d0070], eax
mov eax, dword [ebp - 0x21c]
mov dword [fcn.00785fb0], eax
jmp 0x786665
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop esi
pop ebx
mov dword [0x8d6340], 1
movzx eax, word [ebp + 8]
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, dword [eax*8 + 0x8d0068]
call fcn.006e615c
mov esp, ebp
pop ebp
ret 4
Function at 0x786930
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x18]
push ebx
push edi
mov edi, dword [ebp + 0x1c]
push dword [ebp + 8]
mov dword [edi], 0
mov byte [eax], 0
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov ebx, eax
test ebx, ebx
je 0x7869be
cmp word [ebx + 8], 2
push esi
jne 0x786992
cmp word [ebx + 0xa], 4
jne 0x786992
mov esi, dword [ebx + 0xc]
mov eax, dword [esi]
test eax, eax
je 0x786992
nop dword [eax + eax]
push dword [eax]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.00786850
mov dword [edi], eax
test eax, eax
je 0x7869b2
add esi, 4
lea edi, [eax + 0x1c]
mov eax, dword [esi]
test eax, eax
jne 0x786970
push 0x400
push dword [ebx]
push 0x401
push dword [ebp + 0x18]
call fcn.00771b8b
add esp, 0x10
xor eax, eax
pop esi
pop edi
pop ebx
pop ebp
ret 0x18
pop esi
pop edi
mov eax, 8
pop ebx
pop ebp
ret 0x18
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
add eax, 0xffffd507
cmp eax, 3
ja case.0x7869ce.11001
jmp dword [eax*4 + 0x7869f8]
pop edi
mov eax, 0x2af9
pop ebx
pop ebp
ret 0x18
pop edi
mov eax, 0x2afa
pop ebx
pop ebp
ret 0x18
pop edi
mov eax, 0x2afb
pop ebx
pop ebp
ret 0x18

Function at 0x786c60
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0
push 0
call fcn.0079f02c
add esp, 0x18
test eax, eax
je 0x786c82
cmp eax, 0xffffffff
jne 0x786c84
xor eax, eax
pop ebp
ret