joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5306bb
Capabilities:
Find taskbar

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x69f564]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor esi, esi
push esi
push 0x530758
push esi
push esi
mov dword [0x6af3b8], esi
call dword [sym.imp.USER32.dll_EnumDisplayMonitors]
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
lea eax, [ebp - 0x14]
push eax
push esi
push 0x30
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
push esi
push str.Shell_TrayWnd
call dword [sym.imp.USER32.dll_FindWindowW]
mov edi, eax
call dword [sym.imp.USER32.dll_GetDesktopWindow]
mov esi, dword [sym.imp.USER32.dll_GetWindowRect]
lea ecx, [ebp - 0x24]
push ecx
push eax
call esi
lea eax, [ebp - 0x34]
push eax
push edi
call esi
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 0x14]
mov edx, dword [0x6af3b8]
pop edi
pop esi
cmp edx, 1
jle 0x53074a
test edx, edx
jle 0x53074a
mov ecx, 0x6af3c8
cmp dword [ecx], eax
cmovg eax, dword [ecx]
lea ecx, [ecx + 0x10]
sub edx, 1
jne 0x53073d
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044e8de
mov esp, ebp
pop ebp
ret
Function at 0x530a61
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [0x6af500], 0
mov dword [ebp - 8], ecx
je 0x530bb4
add ecx, 8
cmp dword [ecx + 0x14], 8
jb 0x530a82
mov ecx, dword [ecx]
push esi
push 0x65f020
push ecx
push dword [0x6a02e8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x530bb3
push ebx
push edi
push esi
push dword [0x6a02e8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
push dword [0x6a02e8]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
push esi
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push esi
push edi
push eax
call fcn.00541bc0
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea eax, [ebp - 4]
push eax
push 1
push ebx
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
xor esi, esi
push esi
push dword [ebp - 4]
call fcn.00531271
pop ecx
pop ecx
test eax, eax
je 0x530bb1
mov ebx, dword [ebp - 8]
mov ecx, 0x6af504
mov dword [ebx + 4], eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.00530855
mov eax, dword [ebp - 0xc]
push esi
mov dword [eax + 0x14], ebx
push dword [0x6a02e8]
push esi
push dword [ebp + 8]
push esi
push esi
push esi
push SysReAllocStringLen
push 0x80880000
push esi
push dword [0x6a02e4]
push 0x80020
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov esi, dword [sym.imp.USER32.dll_GetWindowLongW]
push 0xfffffffffffffff0
push dword [ebp + 8]
mov dword [ebx + 0x20], eax
call esi
test eax, 0x10000000
jne 0x530b71
mov byte [ebx + 0x28], 1
jmp 0x530b97
test eax, 0x21000000
je 0x530b7e
mov byte [ebx + 0x28], 5
jmp 0x530b97
push 8
push dword [ebx + 0x20]
mov byte [ebx + 0x28], 7
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [ebp + 8]
mov ecx, ebx
call fcn.0053158b
push 0xfffffffffffffffc
push dword [ebp + 8]
call esi
push 0x53138e
push 0xfffffffffffffffc
push dword [ebp + 8]
mov dword [ebx + 0x24], eax
call dword [sym.imp.USER32.dll_SetWindowLongW]
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x531ae7
Capabilities:
Enumerate files on windows

Disassembly:
push 0x474
mov eax, 0x5f6b48
call fcn.0044e95a
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
cmp dword [esi + 0x14], 8
jb 0x531b06
mov eax, dword [esi]
jmp 0x531b08
mov eax, esi
push eax
lea eax, [ebp - 0x218]
push str._s.
push eax
call fcn.00517d93
add esp, 0xc
lea eax, [ebp - 0x480]
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x531bcc
lea eax, [ebp - 0x480]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x531bcc
push 0x2e
pop eax
cmp word [ebp - 0x454], ax
je 0x531b3c
cmp word [ebp - 0x452], 0
je 0x531b3c
cmp word [ebp - 0x452], ax
jne 0x531b77
cmp word [ebp - 0x450], 0
je 0x531b3c
test byte [ebp - 0x480], 0x10
jne 0x531b3c
lea eax, [ebp - 0x454]
push eax
call fcn.005454d1
pop ecx
test eax, eax
je 0x531b3c
lea eax, [ebp - 0x454]
push eax
lea eax, [ebp - 0x230]
push esi
push eax
call fcn.0040b106
add esp, 0xc
and dword [ebp - 4], 0
mov ecx, ebx
push eax
call fcn.0040981e
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x230]
push 0
push 1
call fcn.004037bf
jmp 0x531b3c
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
call fcn.0044e904
ret
Function at 0x533950
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f6e58
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x69f564]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x5c], edi
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
push 0
push eax
lea eax, [ebp - 0x50]
push eax
call fcn.00533020
cmp dword [ebp - 0x3c], 0x10
lea eax, [ebp - 0x50]
mov dword [ebp - 4], 0
cmovae eax, dword [ebp - 0x50]
push eax
call fcn.00538630
mov ebx, eax
test ebx, ebx
jne 0x5339b7
xor esi, esi
jmp 0x533af3
push ebx
lea eax, [ebp - 0x68]
push 0x5383d0
push eax
call fcn.00532d20
add esp, 0xc
lea eax, [ebp - 0x38]
mov byte [ebp - 4], 1
push eax
push ebx
call fcn.005384e0
test eax, eax
je 0x5339e2
xor esi, esi
jmp 0x533ae7
xor eax, eax
mov dword [ebp - 0x14], 7
push 0xffffffffffffffff
push eax
push esi
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
call fcn.00403b4a
cmp dword [esi + 0x14], 8
mov byte [ebp - 4], 2
jb 0x533a0e
mov esi, dword [esi]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x533a3e
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
cmp word [eax + ecx*2 - 2], 0x5c
je 0x533a3e
push 0x5fb264
lea ecx, [ebp - 0x28]
call fcn.00532e60
cmp dword [ebp - 0x34], 0
mov dword [ebp - 0x54], 0
jb 0x533ab9
ja 0x533a53
cmp dword [ebp - 0x38], 0
jbe 0x533ab9
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
mov ecx, edi
cmovae eax, dword [ebp - 0x28]
push eax
push ebx
call fcn.00533b60
test eax, eax
je 0x533ab5
mov esi, dword [ebp - 0x38]
mov eax, esi
mov edi, dword [ebp - 0x34]
add eax, 0xffffffff
mov dword [ebp - 0x58], eax
mov ecx, edi
mov eax, dword [ebp - 0x54]
adc ecx, 0xffffffff
cdq
cmp edx, ecx
ja 0x533a9d
jb 0x533a8d
cmp eax, dword [ebp - 0x58]
jae 0x533a9d
push ebx
call fcn.00538580
test eax, eax
jne 0x533ab5
mov edi, dword [ebp - 0x34]
mov esi, dword [ebp - 0x38]
mov eax, dword [ebp - 0x54]
inc eax
mov dword [ebp - 0x54], eax
cdq
cmp edx, edi
jb 0x533ab0
ja 0x533ab9
cmp eax, esi
jae 0x533ab9
nop
mov edi, dword [ebp - 0x5c]
jmp 0x533a53
xor esi, esi
jmp 0x533abe
mov esi, 1
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x533ad3
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.004506b6
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
lea eax, [ebp - 0x68]
push eax
call fcn.00532d80
add esp, 4
mov eax, dword [ebp - 0x3c]
cmp eax, 0x10
jb 0x533b3d
mov ecx, dword [ebp - 0x50]
inc eax
cmp eax, 0x1000
jb 0x533b34
test cl, 0x1f
je 0x533b10
call fcn.00545481
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x533b1c
call fcn.00545481
sub ecx, eax
cmp ecx, 4
jae 0x533b28
call fcn.00545481
cmp ecx, 0x23
jbe 0x533b32
call fcn.00545481
mov ecx, eax
push ecx
call fcn.00420fe5
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0044e8de
mov esp, ebp
pop ebp
ret 8
Function at 0x535850
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
mov dword [eax], 0x12345678
mov dword [eax + 4], 0x23456789
mov dword [eax + 8], 0x34567890
mov cl, byte [ebx]
test cl, cl
je 0x5358ca
push esi
push edi
mov edi, dword [eax + 4]
mov esi, 0x34567890
nop
mov edx, dword [eax]
lea ebx, [ebx + 1]
movsx ecx, cl
xor ecx, dword [eax]
mov eax, dword [ebp + 0x10]
movzx ecx, cl
shr edx, 8
mov ecx, dword [eax + ecx*4]
mov eax, dword [ebp + 0xc]
xor ecx, edx
mov edx, dword [ebp + 0x10]
mov dword [eax], ecx
movzx ecx, cl
add ecx, edi
imul edi, ecx, 0x8088405
inc edi
mov ecx, edi
mov dword [eax + 4], edi
shr ecx, 0x18
xor ecx, esi
shr esi, 8
movzx ecx, cl
xor esi, dword [edx + ecx*4]
mov dword [eax + 8], esi
mov cl, byte [ebx]
test cl, cl
jne 0x535880
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x5358d0
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
cmp dword [esi + 0x100ac], ebx
je 0x53597b
cmp dword [esi + 0x7c], ebx
jbe 0x53597b
mov eax, 0xffffff5c
lea ebx, [esi + 0xa4]
sub eax, esi
mov dword [ebp + 8], eax
movzx eax, byte [ebx]
mov ecx, dword [esi + 0x100d0]
xor eax, ecx
mov edx, dword [esi + 0x100dc]
mov edi, dword [esi + 0x100d8]
movzx eax, al
and edi, 0xfffd
shr ecx, 8
or edi, 2
mov eax, dword [edx + eax*4]
xor eax, ecx
mov ecx, dword [esi + 0x100d8]
mov dword [esi + 0x100d0], eax
movzx eax, al
add eax, dword [esi + 0x100d4]
imul eax, eax, 0x8088405
inc eax
mov dword [esi + 0x100d4], eax
shr eax, 0x18
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [edx + eax*4]
mov eax, edi
xor eax, 1
mov dword [esi + 0x100d8], ecx
imul eax, edi
shr eax, 8
xor byte [ebx], al
inc ebx
mov eax, dword [ebp + 8]
add eax, ebx
cmp eax, dword [esi + 0x7c]
jb 0x535900
xor ebx, ebx
mov edi, dword [esi + 0x7c]
lea eax, [esi + 0xa4]
push edi
push eax
push dword [esi + 0x2c]
mov eax, dword [esi + 8]
push dword [esi + 0x1c]
call eax
add esp, 0x10
mov dword [esi + 0x7c], 0
or ecx, 0xffffffff
cmp eax, edi
cmovne ebx, ecx
add dword [esi + 0x100c0], edi
mov ecx, dword [esi + 0x48]
mov eax, ebx
adc dword [esi + 0x100c4], 0
add dword [esi + 0x100c8], ecx
pop edi
adc dword [esi + 0x100cc], 0
mov dword [esi + 0x48], 0
pop esi
pop ebx
pop ebp
ret
Function at 0x53ab40
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, dword [edi + 0x2c]
nop dword [eax]
mov eax, dword [edi + 0x2c]
mov edx, dword [edi + 0x3c]
add eax, 0xfffffefa
sub edx, dword [edi + 0x74]
add eax, esi
sub edx, dword [edi + 0x6c]
mov dword [ebp + 8], edx
cmp dword [edi + 0x6c], eax
jb 0x53abcf
mov ecx, dword [edi + 0x38]
push esi
lea eax, [ecx + esi]
push eax
push ecx
call fcn.00541bc0
mov edx, dword [edi + 0x4c]
add esp, 0xc
mov eax, dword [edi + 0x44]
sub dword [edi + 0x70], esi
sub dword [edi + 0x6c], esi
sub dword [edi + 0x5c], esi
lea ecx, [eax + edx*2]
nop
movzx eax, word [ecx - 2]
lea ecx, [ecx - 2]
cmp eax, esi
jb 0x53ab9f
sub eax, esi
jmp 0x53aba1
xor eax, eax
mov word [ecx], ax
sub edx, 1
jne 0x53ab90
mov eax, dword [edi + 0x40]
mov edx, esi
lea ecx, [eax + esi*2]
movzx eax, word [ecx - 2]
lea ecx, [ecx - 2]
cmp eax, esi
jb 0x53abc0
sub eax, esi
jmp 0x53abc2
xor eax, eax
mov word [ecx], ax
sub edx, 1
jne 0x53abb1
mov edx, dword [ebp + 8]
add edx, esi
mov ebx, dword [edi]
cmp dword [ebx + 4], 0
je 0x53acf9
mov eax, dword [edi + 0x74]
add eax, dword [edi + 0x6c]
add eax, dword [edi + 0x38]
mov dword [ebp - 4], eax
mov eax, dword [ebx + 4]
cmp eax, edx
mov ecx, eax
cmova ecx, edx
mov dword [ebp + 8], ecx
test ecx, ecx
jne 0x53abfc
xor eax, eax
jmp 0x53ac45
sub eax, ecx
mov dword [ebx + 4], eax
mov eax, dword [ebx + 0x1c]
mov eax, dword [eax + 0x18]
cmp eax, 1
jne 0x53ac19
push ecx
push dword [ebx]
push dword [ebx + 0x30]
call fcn.0053e970
jmp 0x53ac29
cmp eax, 2
jne 0x53ac2f
push ecx
push dword [ebx]
push dword [ebx + 0x30]
call fcn.0053afa0
mov ecx, dword [ebp + 8]
mov dword [ebx + 0x30], eax
push ecx
push dword [ebx]
push dword [ebp - 4]
call fcn.00541bc0
mov eax, dword [ebp + 8]
add esp, 0xc
add dword [ebx], eax
add dword [ebx + 8], eax
add dword [edi + 0x74], eax
mov ebx, dword [edi + 0x74]
cmp ebx, 3
jb 0x53ac6d
mov eax, dword [edi + 0x38]
add eax, dword [edi + 0x6c]
mov ecx, dword [edi + 0x58]
movzx edx, byte [eax]
mov dword [edi + 0x48], edx
movzx eax, byte [eax + 1]
shl edx, cl
xor edx, eax
and edx, dword [edi + 0x54]
mov dword [edi + 0x48], edx
cmp ebx, 0x106
jae 0x53ac81
mov eax, dword [edi]
cmp dword [eax + 4], 0
jne 0x53ab50
mov edx, dword [edi + 0x16c0]
mov ecx, dword [edi + 0x3c]
cmp edx, ecx
jae 0x53acf9
mov esi, dword [edi + 0x6c]
add esi, ebx
cmp edx, esi
jae 0x53acc9
sub ecx, esi
mov eax, 0x102
cmp ecx, eax
cmova ecx, eax
mov eax, dword [edi + 0x38]
push ecx
add eax, esi
mov dword [ebp + 8], ecx
push 0
push eax
call fcn.005426c0
mov eax, dword [ebp + 8]
add esp, 0xc
add eax, esi
mov dword [edi + 0x16c0], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [esi + 0x102]
cmp edx, eax
jae 0x53acf9
mov eax, dword [edi + 0x38]
sub esi, edx
sub ecx, edx
add esi, 0x102
cmp esi, ecx
cmova esi, ecx
add eax, edx
push esi
push 0
push eax
call fcn.005426c0
add esp, 0xc
add dword [edi + 0x16c0], esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x53f9e7
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x69f564]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, ecx
mov esi, 0x6a0328
cmp dword [esi], eax
je 0x53fa20
add esi, 0x50
cmp esi, 0x6a0b98
jl 0x53fa0a
xor al, al
jmp 0x53faea
push 0x190
lea eax, [ebp - 0x194]
push 0
push eax
call fcn.005426c0
add edi, 4
add esp, 0xc
cmp dword [edi + 0x14], 8
jb 0x53fa41
mov edi, dword [edi]
lea eax, [esi + 0x38]
cmp dword [eax + 0x14], 8
jb 0x53fa4c
mov eax, dword [eax]
lea ecx, [esi + 0x20]
cmp dword [ecx + 0x14], 8
jb 0x53fa57
mov ecx, dword [ecx]
lea edx, [esi + 8]
cmp dword [edx + 0x14], 8
jb 0x53fa62
mov edx, dword [edx]
push edi
push 0xc8
lea edi, [ebp - 0x194]
push edi
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp word [ebp - 0x194], 0
jne 0x53fa86
xor eax, eax
jmp 0x53fa93
lea eax, [ebp - 0x194]
push eax
call fcn.005454d1
pop ecx
push eax
lea eax, [ebp - 0x194]
lea edi, [ebx + 8]
push eax
mov ecx, edi
call fcn.00403bdf
mov eax, dword [esi + 4]
mov dword [ebx], eax
cmp dword [esi + 4], 1
jne 0x53fac6
cmp dword [edi + 0x14], 8
jb 0x53faba
mov eax, dword [edi]
jmp 0x53fabc
mov eax, edi
push eax
call fcn.0054f0b2
pop ecx
mov dword [ebx + 4], eax
cmp dword [esi + 4], 3
jne 0x53fae8
cmp dword [edi + 0x14], 8
jb 0x53fad4
mov edi, dword [edi]
push edi
call fcn.0054f0b2
pop ecx
xor ecx, ecx
mov dword [ebx + 4], eax
test eax, eax
setg cl
mov dword [ebx + 0x20], ecx
mov al, 1
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0044e8de
mov esp, ebp
pop ebp
ret 8

Function at 0x55d1a3
Capabilities:
Set environment variable

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

Function at 0x561350
Capabilities:
Read file on windows

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

Function at 0x5681e5
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret
Function at 0x57e880
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 0x57e8ac
mov ecx, dword [esi + 0xc]
test ecx, ecx
jne 0x57e89d
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 0x57e8e0
cmp dword [esi + 8], 0
jne 0x57e8d0
push 0x6248bc
push dword [eax + 8]
call fcn.0054f587
add esp, 8
mov dword [esi + 8], eax
test eax, eax
jne 0x57e8d0
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.00555029
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x57e902
mov eax, dword [esi + 8]
test eax, eax
je 0x57e8fc
push eax
call fcn.0054f614
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 0x57ed20
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x69f564]
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 0x57ed70
mov eax, dword [ebp - 0x194]
cmp al, 2
jne 0x57ed6a
shr eax, 8
cmp al, 2
jne 0x57ed6a
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044e8de
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.0044e8de
mov esp, ebp
pop ebp
ret
Function at 0x57fdd0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.00590bc0

Function at 0x580df0
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.005810d0
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 0x580e74
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp esi, 0x2733
jne 0x580e4c
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.0057ee70
push eax
push str.Send_failure:__s
push dword [edi]
call fcn.00580ab0
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 0x5810d0
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 0x581180
cmp dword [ecx + edx*4 + 0x17c], 0x580d40
jne 0x581180
cmp dword [esi], 0
je 0x581118
test edi, edi
je 0x581180
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push ebx
call fcn.0058f1a0
add esp, 0x10
cmp eax, 0xffffffff
je 0x581180
test al, 1
je 0x581180
cmp dword [esi], 0
jne 0x581169
push 0x8000
mov dword [esi + 4], 0x8000
call dword [0x6a15e4]
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 0x581169
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 0x581180
add dword [esi + 8], eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x581190
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 0x5811b9
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 0x5811ef
push dword [esi + 0x118]
lea eax, [eax + eax*2]
push 1
add eax, 0x66b8b8
push 2
push eax
call fcn.0054f8cc
push dword [esi + 0x118]
push 1
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.0054f8cc
add esp, 0x20
xor eax, eax
pop esi
pop ebp
ret
Function at 0x587180
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x58719e
cmp dword [esi + 0x48], 0
je 0x58719e
push 2
push 3
push esi
call fcn.00594c10
add esp, 0xc
push dword [ebp + 0xc]
call fcn.005953e0
add esp, 4
test esi, esi
je 0x5871be
cmp dword [esi + 0x48], 0
je 0x5871be
push 3
push esi
call fcn.00594c50
add esp, 8
pop esi
pop ebp
ret
Function at 0x58f6f0
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 0x58f744
mov eax, dword [edi + 0x44]
test eax, eax
jne 0x58f711
cmp dword [edi + 0x40], eax
je 0x58f744
mov dword [ebp - 8], esi
mov byte [ebp - 4], 0
test eax, eax
jne 0x58f71f
mov eax, dword [edi + 0x40]
push 0x590530
lea ecx, [ebp - 8]
add eax, 0x68
push ecx
push eax
call fcn.00599e00
add esp, 0xc
cmp byte [ebp - 4], 0
jne 0x58f74d
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 0x58f756
mov dword [eax], esi
cmp byte [esi + 0x1ac], 0
mov edi, dword [esi + 0x168]
je 0x58f77b
push esi
call fcn.0057fdd0
add esp, 4
test eax, eax
jne 0x58f793
pop edi
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret
cmp edi, 0xffffffff
je 0x58f793
push 2
push 1
lea eax, [ebp + 0xb]
push eax
push edi
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
je 0x58f744
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x58fbe0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x6b0cec]
mov dword [ebp - 8], 0x4020
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 4
test eax, eax
jne 0x58fc31
push 3
push 2
push eax
push 6
call fcn.005af1f0
add esp, 0x10
test al, al
je 0x58fc25
mov dword [0x6b0cec], 2
mov esp, ebp
pop ebp
ret
mov dword [0x6b0cec], 1
jmp 0x58fc36
cmp eax, 2
je 0x58fc76
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 0x58fc5d
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
jg 0x58fc76
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 0x58fd40
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 0x58fd88
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.0057ee70
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.00580b50
add esp, 0x14
pop edi
pop esi
pop ebp
ret
push str.TCP_NODELAY_set_n
push esi
call fcn.00580b50
add esp, 8
pop edi
pop esi
pop ebp
ret