joyce8/EMBER2024-capa huggingface dataset:
Function at 0x747555
Capabilities:
Create thread

Disassembly:
push 0x278
mov eax, 0x7b4b0c
call fcn.00772fd1
mov ebx, ecx
xor eax, eax
mov dword [ebp - 0x284], eax
mov dword [ebp - 0x280], eax
mov dword [ebp - 0x27c], eax
push 0x4c
pop ecx
mov esi, str.GYV8A0VhyKZ7ZXTeyAGKgooRcsR4bAxMaTe46PfXKMaiEb9lziUna2TWhSg0VRRld5Jhn8Kmt1eNVffiBu6ZfXnPir4SzD1jyXdaIa2pXeLoEGas4bHyRUdF94ocjJlL6f6mloUfIzqqO12D6CbMAJyuaydHuCKlBkGBG9ihm4Yehmvj9Pc7usJxrPEKlbkkg1LY0b48WrOsxC9o9nVXZq9DpJTacFJvrAHuFjaSON23zIaGepWDs2mtSb2TVE2jNuJ9ye7sIXOKZorNCyRNJGohIj9KRTZFa4JJKdTdWKa9QgQo
mov dword [ebp - 4], eax
lea edi, [ebp - 0x248]
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x248]
push eax
lea ecx, [ebp - 0x260]
movsb byte es:[edi], byte [esi]
call fcn.00405a50
lea eax, [ebp - 0x260]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x284]
call fcn.004082f0
push 0
push 1
lea ecx, [ebp - 0x260]
mov byte [ebp - 4], 0
call fcn.004096c0
mov eax, dword [ebx + 0x300]
or esi, 0xffffffff
cmp eax, esi
je 0x7475df
cmp eax, 1
jne 0x74766d
xor eax, eax
mov dword [ebp - 0x254], eax
mov dword [ebp - 0x250], eax
mov dword [ebp - 0x24c], eax
push 0x41
pop ecx
mov esi, str.OxlqXa3CfAV2q1H1kbGlmGCfSaLLSWu2bH76blBAcELULZmRFOeq3yXnaViI3xg2eThlx8G0qUQBDsYOtJnBkT1JRXLuSIvWGWQVDGFGVYzXzqsgrwetD9Jyh8ytsUxhenAIKpc2iaIeBi7ADO0wl4YnoIDL2DLf3kzQ9U5uTlUMic0NesSs4ZWJ07FvsTAYA1g9xVYcVigR1CAuPObe2kaZz2z0pOD9GuwWgflW9TQCj9NRPajChqPNSbZXSc7kRcI
mov byte [ebp - 4], 2
lea edi, [ebp - 0x114]
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x278]
call fcn.00405a50
lea eax, [ebp - 0x278]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x254]
call fcn.004082f0
push 0
push 1
lea ecx, [ebp - 0x278]
mov byte [ebp - 4], 2
call fcn.004096c0
xor eax, eax
push eax
push eax
push ebx
push 0x746f6c
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.00402330
lea ecx, [ebp - 0x254]
call fcn.006ec102
xor esi, esi
lea ecx, [ebp - 0x284]
call fcn.006ec102
mov eax, esi
call fcn.00772f7b
ret
Function at 0x749281
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x8ca144]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0x14]
test edi, edi
jle 0x749316
lea ecx, [eax + 0x80]
add eax, 0x100
dec edi
mov dword [ebp - 0x14], ecx
shr edi, 3
inc edi
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x10], edi
mov edx, ebx
mov ecx, esi
push 8
sub edx, esi
pop edi
mov al, byte [edx + ecx]
mov byte [ecx], al
inc ecx
sub edi, 1
jne 0x7492c6
push 8
lea eax, [ebp - 0xc]
push ebx
push eax
call fcn.0074f6a0
push esi
push esi
push dword [ebp - 0x14]
call fcn.0074856a
mov edx, dword [ebp - 0x18]
add esp, 0x18
xor ecx, ecx
mov al, byte [edx + ecx]
xor byte [esi + ecx], al
inc ecx
cmp ecx, 8
jl 0x7492ef
push 8
lea eax, [ebp - 0xc]
push eax
push edx
call fcn.0074f6a0
add esp, 0xc
add ebx, 8
add esi, 8
sub dword [ebp - 0x10], 1
jne 0x7492bd
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.006e70bb
mov esp, ebp
pop ebp
ret

Function at 0x74c18c
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov ebx, dword [ebp + 8]
mov eax, ecx
push esi
push edi
mov dword [ebp - 4], eax
lea edi, [eax + 0x210]
mov esi, dword [edi]
mov dword [ebp - 8], edi
cmp esi, dword [eax + 0x214]
je 0x74c259
lea edi, [esi + 0x28]
lea ecx, [ebx + 0xa8]
mov dword [ebp + 8], edi
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0x85274c
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
sub edi, 0xffffff80
push edi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0x85274c
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea eax, [ebx + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0x85274c
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0x85274c
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea eax, [ebx + 0xa8]
push edi
push eax
call fcn.00760570
mov edi, dword [ebp + 8]
pop ecx
pop ecx
test eax, eax
jne 0x74c235
lea eax, [ebx + 0x28]
push edi
push eax
call fcn.00760570
pop ecx
pop ecx
test eax, eax
je 0x74c276
mov eax, 0x1b0
lea ecx, [ebx + 0xa8]
add edi, eax
add esi, eax
mov eax, dword [ebp - 4]
mov dword [ebp + 8], edi
cmp esi, dword [eax + 0x214]
jne 0x74c1bf
mov edi, dword [ebp - 8]
lea eax, [ebx + 0xa8]
push eax
call fcn.0075fd70
pop ecx
test eax, eax
je 0x74c276
push ebx
mov ecx, edi
call fcn.0074cb95
mov al, 1
jmp 0x74c278
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x74cad8
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x8ca144]
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.0074fc20
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 0x74cb39
mov ecx, esi
call fcn.0074c552
jmp 0x74cb4e
mov ebx, edi
test edi, edi
jne 0x74cb4e
mov ecx, esi
call fcn.0074c42d
inc ebx
mov edi, eax
cmp ebx, 0xa
jl 0x74cb3b
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.006e70bb
mov esp, ebp
pop ebp
ret

Function at 0x74ce00
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 [0x8ca144]
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 0x74ce48
xor eax, eax
jmp 0x74cf32
push 0x208
lea eax, [ebp - 0x414]
push ebx
push eax
call fcn.0074fc20
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 0x8b08c8
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 0x74cf14
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x208
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.0074fc20
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.0075fe06
pop ecx
pop ecx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x74ce41
lea ecx, [ebp - 0x20c]
push ecx
push esi
call fcn.0075fe77
pop ecx
pop ecx
jmp 0x74cf2f
lea eax, [ebp - 0x414]
push eax
push esi
call fcn.0075fe77
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.006e70bb
mov esp, ebp
pop ebp
ret 4
Function at 0x74cfc0
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x8ca144]
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.0074fc20
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 0x8b09b4
push SysReAllocString
call esi
test eax, eax
je 0x74d030
xor eax, eax
jmp 0x74d0fe
lea eax, [ebp - 0x210]
push eax
push ebx
push edi
push str.shell
push dword [ebp - 0x218]
call esi
test eax, eax
jne 0x74d029
lea eax, [ebp - 0x214]
push eax
push ebx
push edi
push str.opencommand
push dword [ebp - 0x210]
call esi
test eax, eax
jne 0x74d029
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 0x8b08c8
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.0075a865
mov edi, 0x813adc
push edi
push eax
call fcn.0074efd5
add esp, 0xc
test eax, eax
je 0x74d029
lea esi, [eax + 2]
push edi
push esi
call fcn.0074efd5
pop ecx
pop ecx
test eax, eax
je 0x74d029
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.006e70bb
mov esp, ebp
pop ebp
ret
Function at 0x74d458
Capabilities:
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1fa4
call fcn.006e70d0
mov eax, dword [0x8ca144]
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.0074fc20
push edi
lea eax, [ebp - 0x1004]
push ebx
push eax
call fcn.0074fc20
add esp, 0x18
lea eax, [ebp - 0x1fa4]
push 0x7d0
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push 0x89e388
push 0x89e3e8
call fcn.0075fe99
pop ecx
lea eax, [ebp + eax*2 - 0x1fa4]
push eax
call fcn.0075fe77
lea eax, [ebp - 0x1fa4]
push eax
lea eax, [ebp - 0x1004]
push eax
call fcn.0075fe77
lea eax, [ebp - 0x804]
push esi
push eax
call fcn.0075fe77
lea eax, [ebp - 0x1fa4]
push esi
push eax
call fcn.0075fe06
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 0x74d528
push ebx
push ebx
lea ecx, [ebp - 0x804]
push ecx
lea ecx, [ebp - 0x1004]
push ecx
call fcn.0072940d
add esp, 0x10
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
inc eax
pop ebx
call fcn.006e70bb
mov esp, ebp
pop ebp
ret 4

Function at 0x74d8b9
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 0x74d8cd
mov eax, dword [esi]
jmp 0x74d8cf
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x74d933
push 0x8a1844
call fcn.0075fe99
pop ecx
push eax
push 0x8a1844
lea ecx, [edi + 0x34]
call fcn.00402820
cmp dword [esi + 0x14], 8
jb 0x74d8fd
mov eax, dword [esi]
jmp 0x74d8ff
mov eax, esi
push dword [ebp + 8]
mov ecx, edi
push eax
call fcn.0074d826
test eax, eax
jne 0x74d933
cmp dword [esi + 0x14], 8
jb 0x74d918
mov eax, dword [esi]
jmp 0x74d91a
mov eax, esi
push 0
push 0
push dword [ebp + 8]
push eax
call fcn.0072940d
add esp, 0x10
test eax, eax
je 0x74d933
xor eax, eax
inc eax
jmp 0x74d99b
lea eax, [edi + 0x1c]
cmp dword [eax + 0x14], 8
jb 0x74d93e
mov eax, dword [eax]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x74d999
push 0x8a1850
call fcn.0075fe99
pop ecx
push eax
push 0x8a1850
lea ecx, [edi + 0x34]
call fcn.00402820
cmp dword [esi + 0x14], 8
jb 0x74d96c
mov eax, dword [esi]
jmp 0x74d96e
mov eax, esi
push dword [ebp + 8]
mov ecx, edi
push eax
call fcn.0074d826
test eax, eax
jne 0x74d999
cmp dword [esi + 0x14], 8
jb 0x74d985
mov esi, dword [esi]
push 0
push 0
push dword [ebp + 8]
push esi
call fcn.0072940d
add esp, 0x10
test eax, eax
jne 0x74d92e
xor eax, eax
pop edi
pop esi
pop ebp
ret 4
Function at 0x74d9a1
Capabilities:
Get disk information

Disassembly:
push 0x4e0
mov eax, 0x7b51d4
call fcn.00772fd1
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 0x8b08c8
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 0x74dad7
lea eax, [ebp - 0x4c8]
push eax
push 0x3e8
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
je 0x74dad7
mov dword [ebp - 0x4e4], edi
cmp word [ebp - 0x4c8], di
je 0x74dad7
and dword [ebp - 0x4e8], 0
lea edi, [ebp - 0x4c8]
push 0x8a1868
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x74daab
push 0x8a1870
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x74daab
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 0x74db55
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.00762069
add esp, 0xc
test eax, eax
je 0x74dafd
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 0x74da2d
xor edi, edi
lea eax, [ebp - 0x4e0]
mov ecx, esi
push eax
call fcn.00404890
push edi
push 1
lea ecx, [ebp - 0x4e0]
call fcn.00402760
mov eax, esi
call fcn.00772f7b
ret 8
cmp word [ebp - 0x18], 0
jne 0x74db08
xor eax, eax
jmp 0x74db12
lea eax, [ebp - 0x18]
push eax
call fcn.0075fe99
pop ecx
push eax
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x4e0]
call fcn.004044c0
lea edi, [ebx + edi*2]
xor ebx, ebx
cmp word [edi], bx
jne 0x74db30
mov eax, ebx
jmp 0x74db37
push edi
call fcn.0075fe99
pop ecx
push eax
push edi
lea ecx, [ebp - 0x4e0]
call fcn.004044c0
lea eax, [ebp - 0x4e0]
mov ecx, esi
push eax
call fcn.00404890
push ebx
jmp 0x74dae6
push 0x8b08c8
mov ecx, esi
call fcn.004026c0
xor eax, eax
push eax
jmp 0x74dae6

Function at 0x765ef3
Capabilities:
Read file on windows

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

Function at 0x767a59
Capabilities:
Set environment variable

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x8ca144]
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.0074fc20
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 0x774c72
cmp dword [ebp - 0x118], 2
jg 0x774c72
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006e70bb
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.006e70bb
mov esp, ebp
pop ebp
ret

Function at 0x774e00
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 0x774e2c
mov ecx, dword [esi + 0xc]
test ecx, ecx
jne 0x774e1d
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 0x774e60
cmp dword [esi + 8], 0
jne 0x774e50
push 0x7ba458
push dword [eax + 8]
call fcn.00756ecd
add esp, 8
mov dword [esi + 8], eax
test eax, eax
jne 0x774e50
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.007570b0
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x774e82
mov eax, dword [esi + 8]
test eax, eax
je 0x774e7c
push eax
call fcn.00756c7e
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 0x775150
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x8ca144]
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 0x7751a0
mov eax, dword [ebp - 0x194]
cmp al, 2
jne 0x77519a
shr eax, 8
cmp al, 2
jne 0x77519a
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006e70bb
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.006e70bb
mov esp, ebp
pop ebp
ret

Function at 0x775810
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 0x77588e
push esi
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp esi, 0x2733
jne 0x77585e
pop esi
pop edi
mov dword [ebx], 0x51
xor eax, eax
pop ebx
pop ebp
ret
push esi
push dword [ebp + 8]
call fcn.00782fc0
push eax
mov eax, dword [ebp + 8]
push str.Send_failure:__s
push dword [eax]
call fcn.007754f0
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 0x775a70
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 0x775a99
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 0x775acf
push dword [esi + 0xf0]
lea eax, [eax + eax*2]
push 1
add eax, 0x8aa198
push 2
push eax
call fcn.00757c71
push dword [esi + 0xf0]
push 1
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.00757c71
add esp, 0x20
xor eax, eax
pop esi
pop ebp
ret

Function at 0x778d50
Capabilities:
Create udp socket

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0x48
push 1
call dword [0x8cb060]
mov esi, dword [ebp + 8]
mov edi, eax
add esp, 8
mov ebx, 8
mov dword [esi + 0x3bc], edi
test edi, edi
je 0x778e2c
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.00778e60
add esp, 0x10
test eax, eax
je 0x778e2c
mov eax, dword [esi + 0x3a8]
test eax, eax
je 0x778de4
push eax
call dword [0x8cb054]
add esp, 4
mov dword [esi + 0x3a8], 0
push dword [ebp + 0xc]
call dword [0x8cb05c]
add esp, 4
mov dword [esi + 0x3a8], eax
test eax, eax
je 0x778e2c
push 0
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [edi + 4], eax
cmp eax, 0xffffffff
je 0x778e2c
lea eax, [edi + 0x10]
push eax
push 0x778cc0
call fcn.00785600
add esp, 8
mov dword [edi], eax
test eax, eax
jne 0x778e49
call fcn.00756a53
mov ebx, dword [eax]
lea eax, [esi + 0x3a8]
push eax
call fcn.00778bd0
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 0x7815f0
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 0x78164b
mov eax, dword [eax + 0x524]
mov eax, dword [eax]
mov eax, dword [eax + ecx*4]
test eax, eax
je 0x78164b
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x781619
mov dword [ecx], eax
cmp dword [eax + 0x148], 0
push esi
mov esi, dword [eax + 0x130]
je 0x78162f
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 0x781830
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x8ca144]
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 0x7819a3
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 0x7818ae
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push edi
call fcn.00782fc0
push eax
push esi
push str.getpeername___failed_with_errno__d:__s
push ebx
call fcn.007754f0
add esp, 0x18
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006e70bb
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 0x781901
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push edi
call fcn.00782fc0
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
push ebx
call fcn.007754f0
add esp, 0x18
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006e70bb
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.00781da0
add esp, 0xc
test eax, eax
jne 0x781952
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push edi
call fcn.00782fc0
push eax
push esi
push str.ssrem_inet_ntop___failed_with_errno__d:__s
push ebx
call fcn.007754f0
add esp, 0x18
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006e70bb
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.00781da0
add esp, 0xc
test eax, eax
jne 0x7819a3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push edi
call fcn.00782fc0
push eax
push esi
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push ebx
call fcn.007754f0
add esp, 0x18
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006e70bb
mov esp, ebp
pop ebp
ret
push edi
call fcn.00781650
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.006e70bb
mov esp, ebp
pop ebp
ret
Function at 0x782210
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 0x78225a
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.00782fc0
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.00775590
add esp, 0x14
pop edi
pop esi
pop ebp
ret
push str.TCP_NODELAY_set_n
push esi
call fcn.00775590
add esp, 8
pop edi
pop esi
pop ebp
ret

Function at 0x7840c0
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.0x7840d1
jmp dword [eax*4 + 0x784144]
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