joyce8/EMBER2024-capa huggingface dataset:
Function at 0x448a60
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x49c3f3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.0048f96e
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], method.CBrush.virtual_0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.00495004
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.00496520
test eax, eax
je 0x448b7c
mov ecx, dword [esp + 0x3c]
call fcn.00495031
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x448b40
push edi
mov ecx, esi
call fcn.00492699
mov ecx, esi
call fcn.00448d30
cmp dword [esp + 0x38], 1
jne 0x448b75
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.004927d4
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x44ad70
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x44ada3
push esi
call fcn.00459110
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x44ad9c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x44ae29
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x44ae12
mov eax, dword [esi + 8]
test eax, eax
je 0x44adc7
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x44ae0e
cmp eax, 2
je 0x44ae12
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x44adba
cmp eax, 3
je 0x44aded
cmp eax, 1
jne 0x44adba
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x44adba
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x44adba
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.0044ae50
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x44ae38
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.0044ae50
add esp, 4
pop esi
ret

Function at 0x44b6c0
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x44b6e1
mov ecx, dword [eax + 0x40]
test ecx, ecx
je 0x44b6e1
mov eax, dword [eax + 0x44]
test eax, eax
je 0x44b6e1
mov edx, dword [esp + 8]
push edx
push eax
call ecx
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x468a90
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x4d7dbc]
xor edx, edx
cmp eax, edx
jne 0x468ab6
xor eax, eax
mov byte [eax + 0x4d7cbc], al
inc eax
cmp eax, 0x100
jl 0x468a9e
mov dword [0x4d7dbc], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x4d7cbc
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x468b47
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x468b1a
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x468ae8
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x468b50
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x468ba3
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x468b8a
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x46f530
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x49c8de
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x10], edi
call fcn.0046fe50
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0x4a68ec
call fcn.0048e0d4
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x46f5c3
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.0048e0d4
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x46f5bc
push 0
mov ecx, eax
call fcn.004666d0
mov dword [esi + 0xc], eax
jmp 0x46f5c5
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x46f5c5
xor esi, esi
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x30], esi
mov dword [edi + 0x34], 0
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8

Function at 0x490764
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x49079c
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0048e7ee
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0048e7c6
jmp 0x4907a8
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x491e56
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x491e98
call fcn.00497910
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x491e98
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x491e8f
xor eax, eax
jmp 0x491ea0
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00491ea6
pop edi
pop esi
pop ebx
ret 4
Function at 0x497e40
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x497e6e
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x497e8c
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00497da6
jmp 0x497e8c
mov eax, dword [esi + 0x14]
test eax, eax
je 0x497e8c
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00497da6
test edi, edi
mov eax, edi
jne 0x497e76
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x5a632d0b
Capabilities:
Set socket configuration

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x5a63e034]
push ebx
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x14]
push eax
push dword [edi + 8]
mov dword [ebp - 0x1c], 0x10
call dword [sym.imp.WSOCK32.dll_accept]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x5a632d4a
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
jmp 0x5a632e4e
push 4
lea eax, [ebp - 0x20]
push eax
push 8
push pe_overlay
push ebx
mov dword [ebp - 0x20], 1
call dword [sym.imp.WSOCK32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x5a632d70
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
push esi
lea eax, [ebp - 0x14]
push eax
push edi
call fcn.5a632023
mov esi, eax
test esi, esi
je 0x5a632dbd
cmp dword [esi + 0x10], 0xffffffff
jne 0x5a632d9a
mov eax, dword [esi + 0x20]
and eax, 0xfffffffd
or eax, 0xc
mov dword [esi + 0x10], ebx
mov dword [esi + 0x20], eax
push 1
jmp 0x5a632daa
or word [esi + 0x20], 0x108
xor eax, eax
inc eax
mov dword [esi + 0x18], ebx
mov dword [esi + 0x50], eax
push eax
push esi
push edi
call fcn.5a6322e3
push esi
push edi
call fcn.5a63271b
jmp 0x5a632e4d
lea eax, [ebp - 0x14]
push eax
push edi
call fcn.5a63223f
mov esi, eax
test esi, esi
je 0x5a632de4
push 1
push esi
push edi
call fcn.5a63251b
push esi
push edi
call fcn.5a632753
push esi
push edi
call fcn.5a63271b
cmp dword [edi + 0x2370], 0
je 0x5a632e18
lea eax, [ebp - 0x14]
push eax
push 0xffffffffffffffff
push edi
call fcn.5a632086
mov esi, eax
test esi, esi
je 0x5a632e18
push esi
push edi
mov dword [esi + 0x18], ebx
call fcn.5a632883
or dword [esi + 0x20], 8
push 1
push esi
push edi
call fcn.5a6322e3
jmp 0x5a632e4d
and word [ebp - 0x18], 0
and word [ebp - 0x16], 0
push 4
lea eax, [ebp - 0x18]
push eax
push 0x80
push pe_overlay
push ebx
call dword [sym.imp.WSOCK32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x5a632e46
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
jmp 0x5a632e4d
push ebx
push edi
call fcn.5a631d2e
pop esi
mov ecx, dword [ebp - 4]
pop edi
pop ebx
call fcn.5a639a99
leave
ret 8
Function at 0x5a633612
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [eax]
push edi
xor ebx, ebx
cmp dword [esi + 0x4c], ebx
push 4
pop edi
jne 0x5a63362c
mov dword [esi + 0x4c], edi
mov edx, dword [esi + 0x48]
mov eax, dword [esi + 0x3c]
mov ecx, dword [esi + 0x4c]
add eax, edx
sub ecx, edx
test byte [esi + 0x20], 0x10
je 0x5a633644
mov edx, dword [esi + 0x10]
jmp 0x5a633647
mov edx, dword [esi + 0x18]
push ebx
push ecx
push eax
push edx
call dword [sym.imp.WSOCK32.dll_recv]
cmp eax, ebx
jne 0x5a63365f
mov eax, 0x88770168
jmp 0x5a633707
cmp eax, 0xffffffff
jne 0x5a633677
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x5a633705
jmp 0x5a633655
add dword [esi + 0x48], eax
cmp dword [esi + 0x48], edi
jne 0x5a6336ee
mov eax, dword [esi + 0x3c]
mov edi, dword [eax]
mov eax, edi
and eax, 0xfff00000
cmp eax, 0xfab00000
je 0x5a6336a7
cmp eax, 0xcab00000
je 0x5a6336a7
cmp eax, 0xbab00000
je 0x5a6336a7
cmp eax, 0xaab00000
jne 0x5a633655
and edi, 0xfffff
je 0x5a6336ee
cmp edi, 0x1000
mov dword [esi + 0x4c], edi
jbe 0x5a6336ee
cmp dword [esi + 0x54], ebx
je 0x5a633655
lea eax, [edi + 3]
push eax
call fcn.5a631cfe
cmp eax, ebx
pop ecx
mov dword [esi + 0x3c], eax
je 0x5a633655
mov byte [eax + edi], bl
mov eax, dword [esi + 0x3c]
mov byte [eax + edi + 1], bl
mov eax, dword [esi + 0x3c]
mov byte [eax + edi + 2], bl
mov eax, dword [esi + 0x40]
mov ecx, dword [esi + 0x3c]
mov dword [esi + 0x44], edi
mov eax, dword [eax]
mov dword [ecx], eax
mov eax, dword [esi + 0x4c]
cmp eax, dword [esi + 0x48]
jne 0x5a633705
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.5a633543
cmp eax, ebx
jl 0x5a633707
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x5a63429d
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x88
mov eax, dword [0x5a63e034]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x80], eax
mov eax, dword [ebp + 0x14]
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push esi
mov dword [ebp - 0x84], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x7c], eax
lea eax, [ebp - 0x6c]
push eax
push 0x20019
xor esi, esi
push esi
push 0x5a63127c
push 0x80000002
mov dword [ebp - 0x70], esi
mov dword [ebp - 0x74], 0x50
mov dword [ebp - 0x88], 1
mov dword [ebp - 0x78], esi
call ebx
test eax, eax
je 0x5a634307
xor eax, eax
jmp 0x5a6343c8
push edi
mov eax, dword [ebp + 0x10]
push esi
push esi
push esi
push esi
lea ecx, [ebp - 0x7c]
push ecx
push dword [ebp - 0x80]
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp - 0x70]
inc dword [ebp - 0x70]
push eax
push dword [ebp - 0x6c]
mov dword [ebp - 0x74], 0x50
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x5a6343ac
lea eax, [ebp - 0x68]
push eax
push 0x20019
push esi
push dword [ebp - 0x80]
push dword [ebp - 0x6c]
call ebx
test eax, eax
jne 0x5a634308
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x88]
push eax
push esi
push 0x5a631274
push dword [ebp - 0x68]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x5a634377
push dword [ebp - 0x68]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x5a634308
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x54]
push eax
call fcn.5a634220
mov edi, dword [ebp + 8]
push 4
pop ecx
lea esi, [ebp - 0x64]
xor eax, eax
repe cmpsd dword [esi], dword es:[edi]
je 0x5a6343a3
push dword [ebp - 0x68]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor esi, esi
jmp 0x5a634308
mov dword [ebp - 0x78], 1
xor esi, esi
push dword [ebp - 0x6c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x78]
cmp eax, esi
pop edi
je 0x5a6343c8
mov ecx, dword [ebp - 0x68]
mov edx, dword [ebp - 0x84]
mov dword [edx], ecx
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.5a639a99
leave
ret 0x10
Function at 0x5a634928
Capabilities:
Connect socket
Send data
Send data on socket

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
or ebx, 0xffffffff
cmp dword [esi + 0x1c], ebx
push edi
mov edi, dword [ebp + 8]
jne 0x5a6349f4
xor ecx, ecx
push ecx
lea edx, [ebp + 0xc]
push edx
push ecx
xor eax, eax
inc eax
push ecx
push eax
mov dword [ebp - 4], eax
lea eax, [ebp + 8]
push eax
push edi
call fcn.5a638710
test eax, eax
jl 0x5a634a54
mov eax, dword [ebp + 8]
lea ecx, [ebp - 4]
push ecx
push 0x8004667e
push eax
mov dword [esi + 0x1c], eax
call dword [sym.imp.WSOCK32.dll_ioctlsocket]
cmp eax, ebx
mov dword [ebp + 0xc], eax
jne 0x5a63498b
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
mov dword [ebp + 0xc], eax
push 0x32
push dword [edi + 0x11c]
push dword [esi + 0x1c]
call dword [0x5a63e674]
cmp eax, ebx
mov dword [ebp + 0xc], eax
jne 0x5a6349ae
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
mov dword [ebp + 0xc], eax
jmp 0x5a634a2a
mov eax, dword [edi + 0x168]
neg eax
lea ecx, [edi + 0x198]
sbb eax, eax
and eax, ecx
push eax
push dword [edi + 8]
push dword [esi + 4]
call fcn.5a638fb3
push 0x10
lea eax, [esi + 8]
push eax
push dword [esi + 0x1c]
call dword [sym.imp.WSOCK32.dll_connect]
cmp eax, ebx
mov dword [ebp + 0xc], eax
jne 0x5a6349f4
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
cmp eax, 0x2733
mov dword [ebp + 0xc], eax
jne 0x5a634a2a
jmp 0x5a634a52
xor eax, eax
cmp dword [esi + 0x24], eax
mov dword [ebp + 0xc], eax
je 0x5a634a2a
cmp eax, ebx
je 0x5a6349e2
push 0
push dword [esi + 0x24]
push dword [esi + 0x20]
push dword [esi + 0x1c]
call dword [sym.imp.WSOCK32.dll_send]
cmp eax, ebx
mov dword [ebp + 0xc], eax
je 0x5a634a20
sub dword [esi + 0x24], eax
add dword [esi + 0x20], eax
cmp dword [esi + 0x24], 0
jne 0x5a6349fe
cmp eax, ebx
je 0x5a6349e2
push 0
push dword [edi + 0x11c]
push dword [esi + 0x1c]
call dword [0x5a63e674]
cmp eax, ebx
mov dword [ebp + 0xc], eax
jne 0x5a634a4b
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
mov dword [ebp + 0xc], eax
push esi
push edi
call fcn.5a6348ea
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x5a6359f3
Capabilities:
Set socket configuration

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
xor ebx, ebx
push 0x5a63e640
mov dword [ebp - 4], ebx
mov dword [ebp - 8], 0x10
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, dword [ebp + 8]
cmp dword [esi + 0x18], ebx
mov edi, dword [ebp + 0xc]
jbe 0x5a635a44
xor eax, eax
cmp dword [ebp - 4], 0
jne 0x5a635a44
mov ecx, dword [esi + 0x1c]
cmp dword [eax + ecx], 0xffffffff
jne 0x5a635a3b
mov dword [ebp - 4], 1
mov edi, ebx
jmp 0x5a635a3f
inc ebx
add eax, 0x28
cmp ebx, dword [esi + 0x18]
jb 0x5a635a21
push 4
lea eax, [ebp + 8]
push eax
push 8
push pe_overlay
push dword [ebp + 0xc]
mov dword [ebp + 8], 1
call sub.WSOCK32.dll_setsockopt
cmp eax, 0xffffffff
jne 0x5a635a6a
call sub.WSOCK32.dll_WSAGetLastError
cmp dword [ebp - 4], 0
jne 0x5a635b05
mov eax, dword [esi + 0x18]
lea eax, [eax + eax*4]
shl eax, 3
mov dword [ebp + 8], eax
add eax, 0x280
push eax
lea eax, [ebp + 8]
push eax
lea edi, [esi + 0x1c]
push edi
call fcn.5a635879
mov ebx, eax
test ebx, ebx
jl 0x5a635b6e
mov eax, dword [esi + 0x18]
lea ecx, [eax + 1]
add eax, 0x10
cmp ecx, eax
jae 0x5a635ac4
lea eax, [ecx + ecx*4]
shl eax, 3
mov edx, dword [edi]
or dword [eax + edx], 0xffffffff
mov edx, dword [esi + 0x18]
inc ecx
add edx, 0x10
add eax, 0x28
cmp ecx, edx
jb 0x5a635ab0
mov edi, dword [esi + 0x18]
test edi, edi
je 0x5a635ada
lea eax, [edi*4 + 4]
mov dword [ebp + 8], eax
add eax, 0x40
jmp 0x5a635ae1
and dword [ebp + 8], 0
push 0x44
pop eax
push eax
lea eax, [ebp + 8]
push eax
lea eax, [esi + 0xe4]
push eax
call fcn.5a635879
mov ebx, eax
test ebx, ebx
jl 0x5a635b6e
add dword [esi + 0x18], 0x10
mov eax, dword [esi + 0x18]
mov dword [esi + 0xe0], eax
mov ecx, dword [esi + 0x1c]
lea eax, [edi + edi*4]
lea esi, [ecx + eax*8]
mov eax, dword [ebp + 0xc]
mov dword [esi], eax
mov eax, dword [ebp + 0x10]
cmp eax, 2
mov dword [esi + 0x24], eax
je 0x5a635b6c
cmp dword [esi + 0x20], 0
jne 0x5a635b4d
push 0x1000
call fcn.5a631cfe
test eax, eax
pop ecx
mov dword [esi + 0x20], eax
jne 0x5a635b4d
push eax
push 1
push dword [esi]
mov ebx, 0x8007000e
call fcn.5a638a56
push esi
call fcn.5a6359a9
jmp 0x5a635b6e
mov eax, dword [esi + 0x20]
mov dword [esi + 0x1c], eax
lea eax, [ebp - 8]
push eax
lea eax, [esi + 0xc]
push eax
push dword [esi]
call sub.WSOCK32.dll_getpeername
cmp eax, 0xffffffff
jne 0x5a635b6c
call sub.WSOCK32.dll_WSAGetLastError
xor ebx, ebx
push 0x5a63e640
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 0xc
Function at 0x5a635d55
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 0x10]
mov edx, dword [esi + 4]
push edi
xor ebx, ebx
cmp edx, ebx
push 4
mov dword [ebp - 4], ebx
pop edi
jne 0x5a635d7c
cmp dword [esi + 0x20], ebx
je 0x5a635e63
mov dword [esi + 8], edi
mov ecx, dword [esi + 8]
mov eax, dword [esi + 0x1c]
push ebx
sub ecx, edx
push ecx
add eax, edx
push eax
push dword [esi]
call sub.WSOCK32.dll_recv
cmp eax, ebx
jne 0x5a635d9c
mov dword [ebp - 4], ebx
jmp 0x5a635e63
cmp eax, 0xffffffff
jne 0x5a635da8
call sub.WSOCK32.dll_WSAGetLastError
jmp 0x5a635ddf
add dword [esi + 4], eax
mov eax, dword [esi + 4]
cmp eax, edi
mov ebx, 0x1000
jne 0x5a635e26
mov eax, dword [esi + 0x20]
mov edi, dword [eax]
mov eax, edi
and eax, 0xfff00000
cmp eax, 0xfab00000
je 0x5a635de8
cmp eax, 0xcab00000
je 0x5a635de8
cmp eax, 0xbab00000
je 0x5a635de8
cmp eax, 0xaab00000
je 0x5a635de8
mov dword [ebp - 4], 0x8000ffff
jmp 0x5a635e63
and edi, 0xfffff
je 0x5a635e26
cmp edi, ebx
mov dword [esi + 8], edi
jbe 0x5a635e26
lea eax, [edi + 3]
push eax
call fcn.5a639925
test eax, eax
pop ecx
mov dword [esi + 0x1c], eax
je 0x5a635e63
mov ecx, dword [esi + 0x20]
mov ecx, dword [ecx]
mov dword [eax], ecx
mov eax, dword [esi + 0x1c]
mov byte [edi + eax], 0
mov eax, dword [esi + 0x1c]
mov byte [eax + edi + 1], 0
mov eax, dword [esi + 0x1c]
mov byte [eax + edi + 2], 0
mov eax, dword [esi + 4]
cmp eax, dword [esi + 8]
jne 0x5a635e72
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.5a635c62
cmp dword [esi + 8], ebx
mov dword [ebp - 4], eax
jbe 0x5a635e50
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x5a635e50
push eax
call fcn.5a631cd5
pop ecx
mov ecx, dword [esi + 0x20]
xor eax, eax
cmp dword [ebp - 4], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0x1c], ecx
jge 0x5a635e72
push dword [esi]
push dword [ebp + 0xc]
call fcn.5a635bd5
mov eax, dword [ebp - 4]
jmp 0x5a635e74
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x5a636177
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0xc]
push edi
xor edi, edi
cmp dword [esi + 0x38], 6
jne 0x5a6361c8
cmp dword [esi + 0x10], edi
jne 0x5a63620d
push 1
lea eax, [ebp - 4]
push eax
push edi
push edi
push 2
lea eax, [esi + 4]
push eax
push esi
call fcn.5a638710
cmp eax, edi
jl 0x5a63620f
lea eax, [ebp + 0xc]
push eax
push edi
push dword [ebp + 8]
push 0x5a6356cb
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, edi
mov dword [esi + 0x10], eax
je 0x5a63620d
push 1
push eax
jmp 0x5a636207
cmp dword [esi + 0xc], edi
jne 0x5a63620d
push esi
call fcn.5a638ac1
cmp eax, edi
jl 0x5a63620f
cmp dword [0x5a63e658], edi
lea eax, [ebp + 0xc]
push eax
push edi
push dword [ebp + 8]
je 0x5a6361ee
push 0x5a6338d4
jmp 0x5a6361f3
push 0x5a635ee3
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0xc], eax
mov esi, eax
cmp esi, edi
je 0x5a63620d
push 1
push esi
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
xor eax, eax
pop edi
pop esi
leave
ret 8