joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43754d
Capabilities:
Enumerate processes

Disassembly:
push 0x280
mov eax, 0x59f717
call fcn.005964ca
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x28c], ebx
test eax, eax
je 0x43773b
push eax
lea ecx, [ebp - 0x40]
call fcn.00401a40
and dword [ebp - 4], 0
lea eax, [ebp - 0x40]
push eax
call fcn.00428713
mov dword [esp], 0x22c
lea eax, [ebp - 0x284]
push 0
push eax
call fcn.00440e80
add esp, 0xc
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
mov dword [ebp - 0x28c], edi
cmp edi, 0xffffffff
je 0x43772b
call fcn.00423b7b
test al, al
je 0x4375d0
pop ebp
push ecx
push ebp
push esi
pop ecx
push ebp
pop ebp
push ebp
push edi
push edx
push edx
pop esi
push ecx
pop esi
push ebx
push edx
lea eax, [ebp - 0x284]
mov dword [ebp - 0x284], 0x22c
push eax
push edi
call sub.KERNEL32.dll_Process32FirstW
jmp 0x4376ac
and dword [ebp - 0x18], 0
xor eax, eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
cmp word [ebp - 0x260], ax
je 0x437613
lea eax, [ebp - 0x260]
push eax
call fcn.00450cbb
pop ecx
push eax
lea eax, [ebp - 0x260]
push eax
lea ecx, [ebp - 0x28]
call fcn.00403c20
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 1
push eax
call fcn.00428713
pop ecx
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x28]
call fcn.0042605e
test eax, eax
je 0x437667
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.004276d5
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x40]
or ebx, 1
call fcn.0042605e
mov byte [ebp - 0x285], 0
test eax, eax
jne 0x43766e
mov byte [ebp - 0x285], 1
test bl, 1
je 0x437682
push 0
push 1
lea ecx, [ebp - 0x58]
and ebx, 0xfffffffe
call fcn.00424956
cmp byte [ebp - 0x285], 0
jne 0x437741
push 0
push 1
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
call fcn.00424956
lea eax, [ebp - 0x284]
push eax
push edi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x4375ec
call fcn.00423a22
test al, al
je 0x4376d7
pop esp
pop esi
pop ecx
pop edx
pop edx
push ebx
push edx
push ebp
pop ecx
pop ebp
pop eax
pop esi
push ebx
pop esp
pop eax
push ebp
push esi
push esp
pop eax
push esi
push ebx
push eax
push esp
pop ecx
pop edi
push ebx
call fcn.00423aac
test al, al
je 0x4376f6
push eax
pop esi
pop edx
push ebp
pop ebx
push ebx
pop eax
push ebx
push ebx
push eax
push edx
push esp
pop ecx
pop esi
push ebx
pop edi
push ebx
push ebx
push esp
pop ebp
pop esi
pop esp
call fcn.00423bc0
test al, al
je 0x43771f
push edi
push eax
pop ebx
pop ebx
push esp
pop ecx
push esi
pop eax
push edx
pop ecx
pop edi
push esp
pop esp
pop edx
push ebx
pop edx
push esi
pop ebx
push ecx
push eax
pop edi
pop eax
pop eax
pop edi
pop esi
push ebx
pop ecx
push ebp
push edx
pop ebp
push ebp
push ebp
push dword [ebp - 0x28c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
push 0
push 1
lea ecx, [ebp - 0x40]
call fcn.00424956
mov eax, esi
call fcn.00596485
ret
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x27c]
lea ecx, [ebp - 0x28]
push 0
push 1
call fcn.00424956
jmp 0x43772d
Function at 0x4381e1
Capabilities:
Hash data with md5

Disassembly:
xor eax, eax
mov byte [ecx + 0x68], al
mov dword [ecx + 0x14], eax
mov dword [ecx + 0x10], eax
mov dword [ecx], 0x67452301
mov dword [ecx + 4], 0xefcdab89
mov dword [ecx + 8], 0x98badcfe
mov dword [ecx + 0xc], 0x10325476
ret

Function at 0x438a73
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, ecx
mov byte [ebp - 1], 0
push ebx
push esi
push edi
lea ecx, [eax + 0x210]
mov dword [ebp - 0x14], eax
mov esi, dword [ecx]
mov dword [ebp - 0x18], ecx
cmp esi, dword [eax + 0x214]
je 0x438b2a
mov eax, dword [ebp + 8]
lea edi, [esi + 0x28]
mov ebx, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov dword [ebp - 8], edi
lea ecx, [eax + 0xa8]
add eax, 0x28
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], eax
push ecx
call ebx
push 0x5a2ec4
call ebx
sub edi, 0xffffff80
push edi
call ebx
push 0x5a2ec4
call ebx
push dword [ebp - 0xc]
call ebx
push 0x5a2ec4
call ebx
push dword [ebp - 8]
call ebx
push 0x5a2ec4
call ebx
push edi
push dword [ebp - 0x10]
call fcn.00451760
mov edi, dword [ebp - 8]
pop ecx
pop ecx
test eax, eax
jne 0x438b0a
push edi
push dword [ebp - 0xc]
call fcn.00451760
pop ecx
pop ecx
test eax, eax
je 0x438b26
mov eax, 0x1b0
add edi, eax
add esi, eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 8], edi
cmp esi, dword [eax + 0x214]
je 0x438b2a
mov ecx, dword [ebp - 0x10]
jmp 0x438aba
mov byte [ebp - 1], 1
call fcn.004237b5
test al, al
je 0x438b4b
push ecx
push esi
pop esi
pop esi
pop ebx
pop ebp
pop ebp
push ebx
pop ecx
push ebp
pop esp
push esp
push esi
push esp
pop edi
pop ebp
pop ecx
pop edi
pop esi
push edi
push ecx
push ebp
pop esi
pop esp
cmp byte [ebp - 1], 0
jne 0x438b72
mov esi, dword [ebp + 8]
lea edx, [esi + 0xa8]
push edx
call fcn.00450c30
pop ecx
test eax, eax
je 0x438b72
mov ecx, dword [ebp - 0x18]
push esi
call fcn.0043990b
mov al, 1
jmp 0x438b74
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4397fc
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x625260]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ecx + 0x210]
push ebx
push esi
push edi
mov dword [ebp - 0x11c], ecx
mov dword [ecx + 0x214], eax
call fcn.00423c8f
test al, al
je 0x439845
push ecx
push esp
push esi
push ebx
push edx
pop esi
pop ebx
pop esp
pop edi
pop eax
pop esi
pop edx
pop esp
pop esi
pop esp
pop ebp
push ebx
pop edi
pop edx
pop ebx
pop esi
push eax
pop ecx
push ebx
call fcn.00423c8f
test al, al
je 0x43986c
push edi
pop ecx
push ecx
pop esi
push ebx
pop ebp
push edx
pop esp
pop esi
push edx
pop ebx
push ecx
push esp
pop ebp
pop edi
pop edi
pop ebp
pop edi
pop esp
pop ecx
push edx
pop edx
push ecx
push esp
pop eax
pop ebp
push esp
push eax
push esp
pop edi
mov esi, 0x114
lea eax, [ebp - 0x118]
push esi
xor ebx, ebx
push ebx
push eax
call fcn.00440e80
add esp, 0xc
mov dword [ebp - 0x118], esi
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x108], 2
mov esi, dword [ebp - 0x11c]
jne 0x4398af
mov ecx, esi
call fcn.00439060
jmp 0x4398c4
mov edi, ebx
test ebx, ebx
jne 0x4398c4
mov ecx, esi
call fcn.00438edb
inc edi
mov ebx, eax
cmp edi, 0xa
jl 0x4398b1
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.004229e8
mov esp, ebp
pop ebp
ret
Function at 0x43cc4d
Capabilities:
Query or enumerate registry key

Disassembly:
push 0x248
mov eax, 0x59fd39
call fcn.005964ca
mov eax, dword [ebp + 8]
and dword [ebp - 0x24c], 0
mov dword [ebp - 0x250], eax
mov eax, dword [ebp + 0xc]
push 0x208
mov dword [ebp - 0x254], eax
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00440e80
add esp, 0xc
call fcn.00423c05
test al, al
je 0x43ccb1
push ecx
pop ecx
push eax
push edx
push esp
pop esi
pop ebp
push ebx
pop ebp
pop ebx
pop esp
push ecx
pop esp
pop edi
push ecx
push ebx
push edx
push ecx
pop edx
push edx
pop ecx
push ecx
push ebx
pop eax
push ebx
push eax
push ecx
pop ebx
pop edi
call fcn.00423c8f
test al, al
je 0x43ccd3
push eax
pop edi
pop edi
pop edi
push esp
pop edx
pop eax
pop eax
push eax
push esi
push esp
push edx
pop esp
push esp
push esi
pop eax
pop edi
pop edx
push ebx
push esp
pop ecx
push esp
push ebp
push esi
push esp
call fcn.00423e2d
test al, al
je 0x43ccfb
push ebx
push eax
push esi
pop ebx
pop esi
push ebx
pop eax
push eax
pop edi
push ebp
push edi
pop ebx
pop ebx
pop edx
push esi
pop esp
push edx
push ebx
pop eax
push edx
push ebx
pop ebp
push esp
push eax
pop edx
push esi
push ebp
pop esp
push esi
push ebp
push eax
mov ebx, dword [ebp - 0x250]
lea eax, [ebp - 0x218]
push 0x104
xor edi, edi
push eax
push edi
jmp 0x43ce09
lea eax, [ebp - 0x24c]
push eax
lea eax, [ebp - 0x218]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x43cdfb
call fcn.00423b7b
test al, al
je 0x43cd4b
pop ebp
push ecx
push ebp
push esi
pop ecx
push ebp
pop ebp
push ebp
push edi
push edx
push edx
pop esi
push ecx
pop esi
push ebx
push edx
and dword [ebp - 0x220], 0
xor eax, eax
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
cmp word [ebp - 0x218], ax
je 0x43cd7b
lea eax, [ebp - 0x218]
push eax
call fcn.00450cbb
pop ecx
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x230]
call fcn.00403c20
and dword [ebp - 4], 0
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.00428a75
pop ecx
pop ecx
push 0
push 1
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 2
call fcn.00424956
cmp dword [ebp - 0x234], 0x10
lea eax, [ebp - 0x248]
cmovae eax, dword [ebp - 0x248]
push eax
push dword [ebp - 0x254]
call fcn.00437af5
pop ecx
pop ecx
push dword [ebp - 0x24c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x248]
push 0
push 1
call fcn.0040d260
push 0x104
lea eax, [ebp - 0x218]
inc edi
push eax
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
je 0x43cd15
call fcn.00596485
ret
Function at 0x43d390
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59fe96
mov eax, dword fs:[0]
push eax
sub esp, 0x630
mov eax, dword [0x625260]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x638], esi
lea eax, [esi + 8]
mov dword [esi], 0
mov dword [eax + 0x14], 7
mov dword [eax + 0x10], 0
cmp dword [eax + 0x14], 8
mov dword [ebp - 0x63c], esi
jb 0x43d3ea
mov eax, dword [eax]
xor ecx, ecx
mov word [eax], cx
mov dword [esi + 0x34], 7
mov dword [esi + 0x30], ecx
cmp dword [esi + 0x34], 8
mov dword [ebp - 4], ecx
jb 0x43d407
mov eax, dword [esi + 0x20]
jmp 0x43d40a
lea eax, [esi + 0x20]
xor ecx, ecx
mov word [eax], cx
lea eax, [esi + 0x38]
mov dword [eax + 0x14], 7
mov dword [eax + 0x10], ecx
cmp dword [eax + 0x14], 8
jb 0x43d424
mov eax, dword [eax]
xor ecx, ecx
mov word [eax], cx
lea eax, [esi + 0x50]
mov dword [eax + 0x14], 7
mov dword [eax + 0x10], ecx
cmp dword [eax + 0x14], 8
jb 0x43d43e
mov eax, dword [eax]
xor ecx, ecx
mov word [eax], cx
lea eax, [esi + 0x68]
mov dword [eax + 0x14], 7
mov dword [eax + 0x10], ecx
cmp dword [eax + 0x14], 8
jb 0x43d458
mov eax, dword [eax]
xor ecx, ecx
mov word [eax], cx
push ecx
mov byte [ebp - 4], 4
mov dword [esi + 0x80], ecx
mov dword [esi + 0x84], ecx
call fcn.004447f7
push eax
call fcn.004515ae
push 0x20c
lea eax, [ebp - 0x220]
push 0
push eax
call fcn.00440e80
add esp, 0x14
lea eax, [ebp - 0x220]
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0x103
ja 0x43d517
xor eax, eax
push 0x412
push eax
mov word [ebp - 0x16], ax
lea eax, [ebp - 0x634]
push eax
call fcn.00440e80
add esp, 0xc
lea eax, [ebp - 0x634]
push 0x208
push eax
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
cmp eax, 0x208
ja 0x43d508
test eax, eax
je 0x43d508
add eax, eax
cmp eax, 0x412
jae 0x43d503
xor ecx, ecx
mov word [ebp + eax - 0x634], cx
lea eax, [ebp - 0x634]
jmp 0x43d50e
call fcn.00423182
lea eax, [ebp - 0x220]
push eax
lea ecx, [esi + 0x20]
call fcn.00401d10
mov eax, dword [esi + 0x30]
test eax, eax
je 0x43d543
cmp dword [esi + 0x34], 8
jb 0x43d529
mov ecx, dword [esi + 0x20]
jmp 0x43d52c
lea ecx, [esi + 0x20]
cmp word [ecx + eax*2 - 2], 0x5c
je 0x43d543
push 1
push 0x5a18e8
lea ecx, [esi + 0x20]
call fcn.004039d0
cmp dword [esi + 0x30], 0
jne 0x43d558
push 3
push 0x5a52c4
lea ecx, [esi + 0x20]
call fcn.00403c20
mov dword [esi + 4], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004229e8
mov esp, ebp
pop ebp
ret
Function at 0x43d580
Capabilities:
Delete file

Disassembly:
push esi
push edi
mov edi, ecx
cmp dword [edi + 0x60], 0
je 0x43d59c
cmp dword [edi + 0x64], 8
lea eax, [edi + 0x50]
jb 0x43d595
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [edi + 0x80]
test eax, eax
je 0x43d5b9
push eax
call fcn.004229e3
add esp, 4
mov dword [edi + 0x80], 0
mov eax, dword [edi + 0x7c]
lea esi, [edi + 0x68]
cmp eax, 8
jb 0x43d5cf
inc eax
mov ecx, esi
push eax
push dword [esi]
call fcn.00403d70
mov dword [esi + 0x14], 7
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], 0
jb 0x43d5e5
mov esi, dword [esi]
xor eax, eax
mov word [esi], ax
lea esi, [edi + 0x50]
mov eax, dword [esi + 0x14]
cmp eax, 8
jb 0x43d600
inc eax
mov ecx, esi
push eax
push dword [esi]
call fcn.00403d70
mov dword [esi + 0x14], 7
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], 0
jb 0x43d616
mov esi, dword [esi]
xor eax, eax
mov word [esi], ax
lea esi, [edi + 0x38]
mov eax, dword [esi + 0x14]
cmp eax, 8
jb 0x43d631
inc eax
mov ecx, esi
push eax
push dword [esi]
call fcn.00403d70
mov dword [esi + 0x14], 7
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], 0
jb 0x43d647
mov esi, dword [esi]
xor eax, eax
mov word [esi], ax
lea esi, [edi + 0x20]
mov eax, dword [esi + 0x14]
cmp eax, 8
jb 0x43d662
inc eax
mov ecx, esi
push eax
push dword [esi]
call fcn.00403d70
mov dword [esi + 0x14], 7
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], 0
jb 0x43d678
mov esi, dword [esi]
xor eax, eax
mov word [esi], ax
mov eax, dword [edi + 0x1c]
cmp eax, 8
jb 0x43d692
inc eax
lea ecx, [edi + 8]
push eax
push dword [edi + 8]
call fcn.00403d70
mov dword [edi + 0x1c], 7
cmp dword [edi + 0x1c], 8
mov dword [edi + 0x18], 0
jb 0x43d6b1
mov eax, dword [edi + 8]
xor ecx, ecx
pop edi
pop esi
mov word [eax], cx
ret
xor eax, eax
mov word [edi + 8], ax
pop edi
pop esi
ret
Function at 0x43ed00
Capabilities:
Get http content length

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ecx + 4]
sub esp, 8
test eax, eax
je 0x43ed3e
push 0
lea ecx, [ebp - 8]
mov dword [ebp - 4], 0
push ecx
lea ecx, [ebp - 4]
mov dword [ebp - 8], 4
push ecx
push 0x20000005
push eax
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x43ed3e
mov eax, dword [ebp - 4]
xor edx, edx
mov esp, ebp
pop ebp
ret
xor eax, eax
xor edx, edx
mov esp, ebp
pop ebp
ret

Function at 0x45631d
Capabilities:
Read file on windows

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

Function at 0x457717
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004573d7
Function at 0x4640c0
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], 3
jne 0x4640ec
mov ecx, dword [esi + 0xc]
test ecx, ecx
jne 0x4640dd
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 0x464120
cmp dword [esi + 8], 0
jne 0x464110
push 0x5a2ed0
push dword [eax + 8]
call fcn.0044d2fb
add esp, 8
mov dword [esi + 8], eax
test eax, eax
jne 0x464110
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.0044d7ad
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x464142
mov eax, dword [esi + 8]
test eax, eax
je 0x46413c
push eax
call fcn.0044d0e2
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 0x464560
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x625260]
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 0x4645b0
mov eax, dword [ebp - 0x194]
cmp al, 2
jne 0x4645aa
shr eax, 8
cmp al, 2
jne 0x4645aa
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004229e8
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.004229e8
mov esp, ebp
pop ebp
ret
Function at 0x465610
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.004763f0

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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push eax
push edi
mov esi, dword [edi + eax*4 + 0x168]
call fcn.00466920
add esp, 8
push 0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push esi
call dword [sym.imp.WS2_32.dll_send]
mov ebx, eax
mov eax, dword [ebp + 0x18]
mov dword [eax], 0
cmp ebx, 0xffffffff
jne 0x4666c4
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp esi, 0x2733
jne 0x46669c
mov eax, dword [ebp + 0x18]
pop edi
pop esi
pop ebx
mov dword [eax], 0x51
xor eax, eax
pop ebp
ret
push esi
push edi
call fcn.004646b0
push eax
push str.Send_failure:__s
push dword [edi]
call fcn.00466300
mov eax, dword [edi]
add esp, 0x14
mov dword [eax + 0x85b8], esi
mov eax, dword [ebp + 0x18]
mov dword [eax], 0x37
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov eax, edx
push ebx
push esi
shl eax, 4
lea esi, [ecx + 0x18c]
mov ebx, dword [ecx + edx*4 + 0x168]
add esi, eax
mov eax, dword [ecx + 0x248]
push edi
mov edi, dword [esi + 4]
sub edi, dword [esi + 8]
test byte [eax + 0x3c], 3
je 0x4669d0
cmp dword [ecx + edx*4 + 0x17c], 0x466590
jne 0x4669d0
cmp dword [esi], 0
je 0x466968
test edi, edi
je 0x4669d0
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push ebx
call fcn.004749d0
add esp, 0x10
cmp eax, 0xffffffff
je 0x4669d0
test al, 1
je 0x4669d0
cmp dword [esi], 0
jne 0x4669b9
push 0x8000
mov dword [esi + 4], 0x8000
call dword [0x625c34]
mov edi, dword [esi + 4]
add esp, 4
mov dword [esi], eax
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
test eax, eax
jne 0x4669b9
pop edi
mov dword [esi + 4], eax
pop esi
pop ebx
pop ebp
ret
mov eax, dword [esi]
add eax, dword [esi + 8]
push 0
push edi
push eax
push ebx
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x4669d0
add dword [esi + 8], eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x4669e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x190]
test eax, eax
je 0x466a09
push dword [esi + 0x11c]
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 0x466a3f
push dword [esi + 0x118]
lea eax, [eax + eax*2]
push 1
add eax, 0x5aef90
push 2
push eax
call fcn.00451010
push dword [esi + 0x118]
push 1
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.00451010
add esp, 0x20
xor eax, eax
pop esi
pop ebp
ret
Function at 0x46c9b0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x46c9ce
cmp dword [esi + 0x48], 0
je 0x46c9ce
push 2
push 3
push esi
call fcn.0047a450
add esp, 0xc
push dword [ebp + 0xc]
call fcn.0047ac20
add esp, 4
test esi, esi
je 0x46c9ee
cmp dword [esi + 0x48], 0
je 0x46c9ee
push 3
push esi
call fcn.0047a490
add esp, 8
pop esi
pop ebp
ret
Function at 0x474f20
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, dword [edi + 0x578]
test esi, esi
je 0x474f74
mov eax, dword [edi + 0x44]
test eax, eax
jne 0x474f41
cmp dword [edi + 0x40], eax
je 0x474f74
mov dword [ebp - 8], esi
mov byte [ebp - 4], 0
test eax, eax
jne 0x474f4f
mov eax, dword [edi + 0x40]
push 0x475d60
lea ecx, [ebp - 8]
add eax, 0x68
push ecx
push eax
call fcn.0047f660
add esp, 0xc
cmp byte [ebp - 4], 0
jne 0x474f7d
mov dword [edi + 0x578], 0
pop edi
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x474f86
mov dword [eax], esi
cmp byte [esi + 0x1ac], 0
mov edi, dword [esi + 0x168]
je 0x474fab
push esi
call fcn.00465610
add esp, 4
test eax, eax
jne 0x474fc3
pop edi
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret
cmp edi, 0xffffffff
je 0x474fc3
push 2
push 1
lea eax, [ebp + 0xb]
push eax
push edi
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
je 0x474f74
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x475410
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x62b498]
mov dword [ebp - 8], 0x4020
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 4
test eax, eax
jne 0x475461
push 3
push 2
push eax
push 6
call fcn.00494a90
add esp, 0x10
test al, al
je 0x475455
mov dword [0x62b498], 2
mov esp, ebp
pop ebp
ret
mov dword [0x62b498], 1
jmp 0x475466
cmp eax, 2
je 0x4754a6
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push 0x1001
push 0xffff
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x47548d
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
jg 0x4754a6
push 4
lea eax, [ebp - 8]
push eax
push 0x1001
push 0xffff
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_setsockopt]
mov esp, ebp
pop ebp
ret

Function at 0x475570
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp + 8]
push 4
push eax
push 1
mov esi, dword [edi]
push 6
push dword [ebp + 0xc]
mov dword [ebp + 8], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x4755b8
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.004646b0
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.004663a0
add esp, 0x14
pop edi
pop esi
pop ebp
ret
push str.TCP_NODELAY_set_n
push esi
call fcn.004663a0
add esp, 8
pop edi
pop esi
pop ebp
ret
Function at 0x4756a0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x625260]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
mov edi, dword [ebp + 8]
cmp dword [edi + 0x8c], 2
mov ebx, dword [edi]
je 0x47587a
cmp byte [edi + 0x21a], 0
push esi
jne 0x475870
cmp byte [edi + 0x234], 0
jne 0x475870
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x104]
mov dword [ebp - 0x108], 0x80
push eax
push esi
call dword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x475738
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push edi
call fcn.004646b0
push eax
push esi
push str.getpeername___failed_with_errno__d:__s
push ebx
call fcn.00466300
add esp, 0x18
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004229e8
mov esp, ebp
pop ebp
ret
push 0x80
lea eax, [ebp - 0x84]
mov dword [ebp - 0x108], 0x80
push 0
push eax
call fcn.00440e80
add esp, 0xc
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x84]
push eax
push esi
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x4757a1
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push edi
call fcn.004646b0
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
push ebx
call fcn.00466300
add esp, 0x18
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004229e8
mov esp, ebp
pop ebp
ret
lea eax, [edi + 0xfc]
push eax
lea esi, [edi + 0xcc]
lea eax, [ebp - 0x104]
push esi
push eax
call fcn.00475d80
add esp, 0xc
test al, al
jne 0x4757f2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push edi
call fcn.004646b0
push eax
push esi
push str.ssrem_inet_ntop___failed_with_errno__d:__s
push ebx
call fcn.00466300
add esp, 0x18
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004229e8
mov esp, ebp
pop ebp
ret
movups xmm0, xmmword [esi]
mov eax, dword [esi + 0x28]
movups xmmword [edi + 0x58], xmm0
movups xmm0, xmmword [esi + 0x10]
movups xmmword [edi + 0x68], xmm0
movq xmm0, qword [esi + 0x20]
movq qword [edi + 0x78], xmm0
mov dword [edi + 0x80], eax
mov ax, word [esi + 0x2c]
mov word [edi + 0x84], ax
lea eax, [edi + 0x130]
push eax
lea eax, [edi + 0x100]
push eax
lea eax, [ebp - 0x84]
push eax
call fcn.00475d80
add esp, 0xc
test al, al
jne 0x475870
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push edi
call fcn.004646b0
push eax
push esi
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push ebx
call fcn.00466300
add esp, 0x18
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004229e8
mov esp, ebp
pop ebp
ret
push edi
call fcn.00475350
add esp, 4
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.004229e8
mov esp, ebp
pop ebp
ret