joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4284ac
Capabilities:
Check if file exists
Get common file path
Get startup folder

Disassembly:
push 0x83c
mov eax, 0x599624
call fcn.00410ff3
mov edi, ecx
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x218]
push 0x208
xor ebx, ebx
push ebx
push eax
call fcn.00431720
add esp, 0xc
lea eax, [ebp - 0x218]
push ebx
push 0x1a
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
xor eax, eax
mov dword [ebp - 0x834], 7
mov dword [ebp - 0x838], ebx
mov word [ebp - 0x848], ax
cmp word [ebp - 0x218], ax
je 0x428517
lea eax, [ebp - 0x218]
push eax
call fcn.00434fd1
pop ecx
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x848]
call fcn.00401f62
mov dword [ebp - 4], ebx
mov ebx, str.MicrosoftInternet_ExplorerQuick_LaunchUser_PinnedTaskBar_
push ebx
call fcn.00434fd1
pop ecx
push eax
push ebx
lea ecx, [ebp - 0x848]
call fcn.00401cf3
xor ebx, ebx
cmp word [esi], bx
jne 0x428551
mov eax, ebx
jmp 0x428558
push esi
call fcn.00434fd1
pop ecx
push eax
push esi
lea ecx, [ebp - 0x848]
call fcn.00401cf3
mov esi, 0x59bb70
push esi
call fcn.00434fd1
pop ecx
push eax
push esi
lea ecx, [ebp - 0x848]
call fcn.00401cf3
cmp dword [ebp - 0x834], 8
lea eax, [ebp - 0x848]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmovae eax, dword [ebp - 0x848]
push eax
call esi
test eax, eax
je 0x428666
push 0x208
lea eax, [ebp - 0x830]
push ebx
push eax
call fcn.00431720
push 0x208
lea eax, [ebp - 0x628]
push ebx
push eax
call fcn.00431720
cmp dword [ebp - 0x834], 8
lea eax, [ebp - 0x848]
cmovae eax, dword [ebp - 0x848]
push eax
lea eax, [ebp - 0x830]
push eax
call fcn.0043fbd8
add esp, 0x20
lea eax, [ebp - 0x628]
mov ecx, edi
push eax
lea eax, [ebp - 0x830]
push eax
call fcn.00426bb6
push 0x208
lea eax, [ebp - 0x420]
push ebx
push eax
call fcn.00431720
add esp, 0xc
lea eax, [ebp - 0x420]
push 0x104
push eax
lea eax, [ebp - 0x628]
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
lea eax, [ebp - 0x420]
push eax
call fcn.00434fd1
pop ecx
test eax, eax
jne 0x428654
lea eax, [ebp - 0x628]
push eax
lea eax, [ebp - 0x420]
push eax
call fcn.0043fbd8
pop ecx
pop ecx
lea eax, [ebp - 0x420]
push eax
call esi
test eax, eax
je 0x428666
xor esi, esi
inc esi
jmp 0x428668
mov esi, ebx
push ebx
push 1
lea ecx, [ebp - 0x848]
call fcn.00401bfd
mov eax, esi
call fcn.00410fae
ret 4
Function at 0x428680
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x620290]
xor eax, ebp
mov dword [ebp - 4], eax
mov al, byte [0x6258b0]
test al, al
jne 0x428719
push ebx
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.00431720
add esp, 0xc
lea eax, [ebp - 0x20c]
xor ebx, ebx
inc ebx
push ebx
push 0x1a
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x428710
lea eax, [ebp - 0x20c]
push eax
call fcn.0044105c
lea eax, [ebp - 0x20c]
mov dword [esp], 0x59dab4
push eax
call fcn.0043187a
pop ecx
pop ecx
test eax, eax
jne 0x428708
lea eax, [ebp - 0x20c]
push str.documents_and_settingslocalservice
push eax
call fcn.0043187a
pop ecx
pop ecx
test eax, eax
je 0x428710
mov byte [0x6258b0], bl
jmp 0x428716
mov bl, byte [0x6258b0]
mov al, bl
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00410f88
mov esp, ebp
pop ebp
ret
Function at 0x4291e3
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x620290]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push esi
push edi
push 0x208
xor esi, esi
mov edi, ecx
push esi
push eax
call fcn.00431720
add esp, 0xc
lea eax, [ebp - 0x20c]
push esi
push 0x17
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x42924e
lea eax, [ebp - 0x20c]
push 0x59bb6c
push eax
call fcn.0043841c
pop ecx
pop ecx
push ebx
lea eax, [ebp - 0x20c]
mov ecx, edi
push eax
call fcn.00428727
mov esi, eax
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00410f88
mov esp, ebp
pop ebp
ret 4

Function at 0x429ada
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
call fcn.004156b6
test al, al
je 0x429b02
pop esi
pop ecx
pop edi
push ebx
pop ecx
push edi
push eax
pop edi
push ebp
push edi
push eax
pop eax
push esp
push edx
push ebx
pop eax
pop edi
push ebp
pop ebp
push ecx
pop edx
call fcn.00415b06
test al, al
je 0x429b1e
push esp
pop esp
push edi
pop ecx
pop ebp
push esp
push esp
pop eax
push esi
push esi
push ebp
pop esp
pop ebx
pop ebx
push edi
pop esp
push esp
pop edi
push edx
call fcn.0041580f
test al, al
je 0x429b45
push edx
push edi
pop eax
pop esp
push edi
pop ebx
pop esi
pop ebp
push esi
pop edi
push esp
push ecx
pop eax
push eax
push ecx
push ebp
push ecx
push ebp
pop esp
push esp
pop edx
pop esp
pop ebp
pop eax
pop esp
pop ebx
pop esi
push edi
push edi
pop ebp
push dword [ebp + 8]
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, dword [ebp - 4]
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 0xb7
neg eax
pop edi
sbb eax, eax
inc eax
mov dword [esi + 4], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x429d51
Capabilities:
Query or enumerate registry key

Disassembly:
push 0x24c
mov eax, 0x599899
call fcn.00410ff3
mov eax, dword [ebp + 8]
and dword [ebp - 0x250], 0
mov dword [ebp - 0x24c], eax
mov eax, dword [ebp + 0xc]
push 0x208
mov dword [ebp - 0x258], eax
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00431720
add esp, 0xc
call fcn.004158de
test al, al
je 0x429db3
push ecx
pop esp
push eax
pop ebp
push esi
pop eax
pop esp
push eax
push esi
pop ecx
pop eax
push ebp
pop eax
pop esi
push edx
pop edi
pop ebp
push edx
push eax
pop ebx
pop edx
pop edx
push esi
push esi
pop edx
pop ebp
pop ebx
call fcn.00415923
test al, al
je 0x429dd3
pop esp
push eax
push esi
push esi
push ebp
push esi
pop eax
pop ecx
pop eax
push edi
push edi
pop ebx
push esp
pop esp
push esi
pop ecx
push esi
push esi
push ebx
pop esi
push edx
pop esp
pop eax
call fcn.0041562c
test al, al
je 0x429df1
push ebp
push ecx
pop esp
push ecx
pop ebp
push ecx
push esp
push ecx
pop esp
pop edi
push edi
pop ebp
push edi
push esp
pop ebx
push ecx
push edi
pop ebx
pop eax
pop ebx
push ebp
mov ebx, dword [ebp - 0x24c]
lea eax, [ebp - 0x218]
push 0x104
xor esi, esi
push eax
push esi
jmp 0x429f29
lea eax, [ebp - 0x250]
push eax
lea eax, [ebp - 0x218]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x429f1b
call fcn.00415671
test al, al
je 0x429e4c
push ebp
pop esi
pop edi
pop eax
push esp
pop edx
push ecx
pop ecx
pop ebx
push ecx
push eax
push esi
push esp
push ebp
push ebp
push edx
push edi
push edi
pop ecx
push esi
push esi
mov ebx, dword [ebp - 0x24c]
call fcn.00415740
test al, al
je 0x429e65
pop eax
pop edi
pop ecx
push esp
push esp
push edi
push edi
pop esp
pop eax
pop esi
pop esi
pop ebp
pop esi
pop edi
push edi
pop esi
and dword [ebp - 0x220], 0
xor eax, eax
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
cmp word [ebp - 0x218], ax
je 0x429e95
lea eax, [ebp - 0x218]
push eax
call fcn.00434fd1
pop ecx
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x230]
call fcn.00401f62
and dword [ebp - 4], 0
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.0041a9ff
pop ecx
pop ecx
push 0
push 1
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 2
call fcn.00401bfd
cmp dword [ebp - 0x234], 0x10
lea eax, [ebp - 0x248]
cmovae eax, dword [ebp - 0x248]
push eax
push dword [ebp - 0x258]
call fcn.0041f7d0
pop ecx
pop ecx
push dword [ebp - 0x250]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x248]
push 0
push 1
call fcn.00401ba8
mov esi, dword [ebp - 0x254]
push 0x104
lea eax, [ebp - 0x218]
inc esi
push eax
push esi
push ebx
mov dword [ebp - 0x254], esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
je 0x429e0b
call fcn.00410fae
ret
Function at 0x42abd4
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
xor eax, eax
push esi
push edi
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
call fcn.004155a2
test al, al
je 0x42ac0b
pop edx
pop edx
push esi
pop esp
pop edi
pop eax
pop ebx
push eax
pop edx
push eax
push eax
push eax
pop ebp
push esi
push edi
push esp
push ecx
push ebx
pop edx
push ebx
push esp
push edx
push ebx
pop edi
push esp
push ebx
call fcn.0041580f
test al, al
je 0x42ac2d
pop edi
pop esi
push ecx
pop ecx
pop edi
push ebx
pop ebx
push esp
pop esi
pop ebx
pop edx
push esp
pop ebx
pop edx
pop ebp
pop esp
pop edx
push esi
push esi
push ecx
pop ebx
push eax
pop edi
push edx
push edx
lea eax, [ebp - 0xc]
mov esi, 0xf013f
push eax
push esi
xor ebx, ebx
push ebx
push str.SoftWare
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x42ad60
push ebx
lea eax, [ebp - 8]
push eax
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
push ebx
push ebx
push ebx
push dword [ebp + 8]
push dword [ebp - 0xc]
call esi
test eax, eax
je 0x42ac7c
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x42ad60
call fcn.0041555d
test al, al
je 0x42ac9c
push ecx
push ecx
push esi
pop ebp
pop ebx
push esp
push ebx
push ecx
pop eax
pop ebp
pop ebp
pop ecx
pop edx
pop edi
push edi
push esi
push esp
push ebp
push eax
pop eax
pop edx
xor ebx, ebx
push ebx
lea eax, [ebp - 4]
push eax
push ebx
push 0xf013f
push ebx
push ebx
push ebx
push dword [ebp + 0xc]
push dword [ebp - 8]
call esi
test eax, eax
je 0x42acc9
push dword [ebp - 8]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 4]
jmp 0x42ad5e
push dword [ebp + 0x14]
call fcn.00434fd1
pop ecx
lea eax, [eax*2 + 2]
push eax
push dword [ebp + 0x14]
push 1
push ebx
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.004157ca
test al, al
je 0x42ad0f
pop ebx
pop eax
pop ecx
push esp
pop edi
push esi
push edx
push edx
push ecx
pop edi
push ebx
push esi
push ebp
pop esi
pop esi
pop edi
push eax
call fcn.004156b6
test al, al
je 0x42ad32
push ecx
push esi
push eax
push ebp
pop ebp
push ebp
pop esi
pop edi
pop ebp
push ecx
push edi
pop esp
pop ecx
push ebp
pop edx
pop ebp
pop esp
push edx
pop ecx
push edx
pop esi
pop eax
pop ecx
pop edx
pop edx
pop eax
call fcn.004159ad
test al, al
je 0x42ad50
push edx
pop esi
pop ebx
pop ebp
pop esi
push esi
push ebp
push esp
push eax
push ecx
push ecx
pop ebx
push ebx
pop eax
pop ebx
push esp
push ebp
push ebp
pop esp
push ecx
pop ebx
push dword [ebp - 8]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 0xc]
call esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42c236
Capabilities:
Hash data with md5

Disassembly:
xor eax, eax
mov byte [ecx + 0x89], 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 0x42f792
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 0x42f849
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 0x59cc58
call ebx
sub edi, 0xffffff80
push edi
call ebx
push 0x59cc58
call ebx
push dword [ebp - 0xc]
call ebx
push 0x59cc58
call ebx
push dword [ebp - 8]
call ebx
push 0x59cc58
call ebx
push edi
push dword [ebp - 0x10]
call fcn.004458c0
mov edi, dword [ebp - 8]
pop ecx
pop ecx
test eax, eax
jne 0x42f829
push edi
push dword [ebp - 0xc]
call fcn.004458c0
pop ecx
pop ecx
test eax, eax
je 0x42f845
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 0x42f849
mov ecx, dword [ebp - 0x10]
jmp 0x42f7d9
mov byte [ebp - 1], 1
call fcn.004159f2
test al, al
je 0x42f86c
push edi
pop esp
push esp
pop edi
push esi
pop edx
push ecx
pop edx
push esi
pop edx
push esi
push eax
push esp
pop ebx
pop ebp
push ebx
pop ebx
push edx
push esp
pop ebp
push ebp
push edi
push ebp
pop esi
push ebx
pop ebx
call fcn.004158de
test al, al
je 0x42f886
pop ebp
push esi
pop eax
pop esp
push ecx
pop ebp
push ebx
pop ebp
pop ecx
pop edi
push edi
pop ecx
push ecx
pop eax
pop ebx
push esp
pop edx
call fcn.004155e7
test al, al
je 0x42f8a1
pop ecx
push esp
pop ebp
push esi
pop esp
pop eax
pop edi
push ebp
push esp
pop edi
push ecx
pop ecx
push edx
push ecx
pop ecx
push eax
push esp
push ecx
cmp byte [ebp - 1], 0
jne 0x42f8c8
mov esi, dword [ebp + 8]
lea edx, [esi + 0xa8]
push edx
call fcn.00434ff0
pop ecx
test eax, eax
je 0x42f8c8
mov ecx, dword [ebp - 0x18]
push esi
call fcn.0043068f
mov al, 1
jmp 0x42f8ca
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4305aa
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x620290]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
push esi
push edi
xor esi, esi
mov eax, dword [ebx + 0x210]
mov dword [ebx + 0x214], eax
call fcn.004155e7
test al, al
je 0x4305f8
push edi
pop ecx
push esi
push ebx
push edi
push ebp
push ebp
push esp
pop eax
pop edi
pop ecx
pop ebp
pop ecx
pop esp
push esi
pop eax
pop ebp
push ebp
push ebp
push eax
pop edi
push edx
push eax
push eax
pop ebp
push ebx
pop edx
push ebp
pop esi
xor esi, esi
mov edi, 0x114
lea eax, [ebp - 0x118]
push edi
push esi
push eax
call fcn.00431720
add esp, 0xc
mov dword [ebp - 0x118], edi
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x108], 2
jne 0x430633
mov ecx, ebx
call fcn.0042fd85
jmp 0x430648
mov edi, esi
test esi, esi
jne 0x430648
mov ecx, ebx
call fcn.0042fc38
inc edi
mov esi, eax
cmp edi, 0xa
jl 0x430635
mov eax, dword [ebx + 0x214]
mov ecx, 0x1b0
sub eax, dword [ebx + 0x210]
cdq
idiv ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00410f88
mov esp, ebp
pop ebp
ret

Function at 0x44ac80
Capabilities:
Read file on windows

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

Function at 0x44c0fb
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0044bdbb
Function at 0x4599c0
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 0x4599ec
mov ecx, dword [esi + 0xc]
test ecx, ecx
jne 0x4599dd
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 0x459a20
cmp dword [esi + 8], 0
jne 0x459a10
push 0x59cc64
push dword [eax + 8]
call fcn.004416f0
add esp, 8
mov dword [esi + 8], eax
test eax, eax
jne 0x459a10
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.00441ba2
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x459a42
mov eax, dword [esi + 8]
test eax, eax
je 0x459a3c
push eax
call fcn.004414d7
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 0x459e00
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x620290]
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 0x459e50
mov eax, dword [ebp - 0x194]
cmp al, 2
jne 0x459e4a
shr eax, 8
cmp al, 2
jne 0x459e4a
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00410f88
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.00410f88
mov esp, ebp
pop ebp
ret
Function at 0x45af30
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.0046c240

Function at 0x45bf30
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.0045c210
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 0x45bfb4
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp esi, 0x2733
jne 0x45bf8c
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.00459f50
push eax
push str.Send_failure:__s
push dword [edi]
call fcn.0045bbf0
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 0x45c210
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 0x45c2c0
cmp dword [ecx + edx*4 + 0x17c], 0x45be80
jne 0x45c2c0
cmp dword [esi], 0
je 0x45c258
test edi, edi
je 0x45c2c0
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push ebx
call fcn.0046a2c0
add esp, 0x10
cmp eax, 0xffffffff
je 0x45c2c0
test al, 1
je 0x45c2c0
cmp dword [esi], 0
jne 0x45c2a9
push 0x8000
mov dword [esi + 4], 0x8000
call dword [0x620c74]
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 0x45c2a9
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 0x45c2c0
add dword [esi + 8], eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x45c2d0
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 0x45c2f9
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 0x45c32f
push dword [esi + 0x118]
lea eax, [eax + eax*2]
push 1
add eax, 0x5ad150
push 2
push eax
call fcn.004451dc
push dword [esi + 0x118]
push 1
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.004451dc
add esp, 0x20
xor eax, eax
pop esi
pop ebp
ret
Function at 0x4622a0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x4622be
cmp dword [esi + 0x48], 0
je 0x4622be
push 2
push 3
push esi
call fcn.0045a760
add esp, 0xc
push dword [ebp + 0xc]
call fcn.0046bd90
add esp, 4
test esi, esi
je 0x4622de
cmp dword [esi + 0x48], 0
je 0x4622de
push 3
push esi
call fcn.0045a7a0
add esp, 8
pop esi
pop ebp
ret
Function at 0x46a810
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 0x46a864
mov eax, dword [edi + 0x44]
test eax, eax
jne 0x46a831
cmp dword [edi + 0x40], eax
je 0x46a864
mov dword [ebp - 8], esi
mov byte [ebp - 4], 0
test eax, eax
jne 0x46a83f
mov eax, dword [edi + 0x40]
push 0x46b650
lea ecx, [ebp - 8]
add eax, 0x68
push ecx
push eax
call fcn.00474eb0
add esp, 0xc
cmp byte [ebp - 4], 0
jne 0x46a86d
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 0x46a876
mov dword [eax], esi
cmp byte [esi + 0x1ac], 0
mov edi, dword [esi + 0x168]
je 0x46a89b
push esi
call fcn.0045af30
add esp, 4
test eax, eax
jne 0x46a8b3
pop edi
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret
cmp edi, 0xffffffff
je 0x46a8b3
push 2
push 1
lea eax, [ebp + 0xb]
push eax
push edi
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
je 0x46a864
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x46ad00
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x6267d8]
mov dword [ebp - 8], 0x4020
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 4
test eax, eax
jne 0x46ad51
push 3
push 2
push eax
push 6
call fcn.0048a2c0
add esp, 0x10
test al, al
je 0x46ad45
mov dword [0x6267d8], 2
mov esp, ebp
pop ebp
ret
mov dword [0x6267d8], 1
jmp 0x46ad56
cmp eax, 2
je 0x46ad96
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 0x46ad7d
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
jg 0x46ad96
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 0x46ae60
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 0x46aea8
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.00459f50
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.0045bc90
add esp, 0x14
pop edi
pop esi
pop ebp
ret
push str.TCP_NODELAY_set_n
push esi
call fcn.0045bc90
add esp, 8
pop edi
pop esi
pop ebp
ret