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

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 8], esi
cmp dword [esi + 0x10], ebx
jbe 0x510786
push edi
lea esp, [esp]
push 0
push 0
push esi
push 0x511860
push 0
push 0
call fcn.00557458
mov edi, eax
add esp, 0x18
mov dword [ebp - 4], edi
test edi, edi
je 0x510769
mov eax, dword [esi + 0x68]
lea ecx, [ebp - 4]
cmp ecx, eax
jae 0x510739
mov ecx, dword [esi + 0x64]
lea edx, [ebp - 4]
cmp ecx, edx
ja 0x510739
mov edi, edx
sub edi, ecx
sar edi, 2
cmp eax, dword [esi + 0x6c]
jne 0x510728
push ecx
lea ecx, [esi + 0x64]
call fcn.00513080
mov ecx, dword [esi + 0x68]
test ecx, ecx
je 0x510750
mov eax, dword [esi + 0x64]
mov eax, dword [eax + edi*4]
mov dword [ecx], eax
jmp 0x510750
cmp eax, dword [esi + 0x6c]
jne 0x510747
push ecx
lea ecx, [esi + 0x64]
call fcn.00513080
mov eax, dword [esi + 0x68]
test eax, eax
je 0x510750
mov dword [eax], edi
add dword [esi + 0x68], 4
inc ebx
mov esi, dword [ebp - 8]
cmp ebx, dword [esi + 0x10]
jb 0x5106e0
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov dword [esi + 0x60], 8
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x510eb0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
xor eax, eax
mov dword [ebp - 4], 0x1c
mov word [ebp - 0x20], ax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x20]
push eax
push dword [ecx + 0x54]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x510ee0
xor eax, eax
mov esp, ebp
pop ebp
ret 0xc
push dword [ebp + 0x10]
lea edx, [ebp + 0x10]
push dword [ebp + 0xc]
lea ecx, [ebp - 0x20]
push dword [ebp + 8]
call fcn.00513920
add esp, 0xc
mov esp, ebp
pop ebp
ret 0xc

Function at 0x510f00
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
mov esi, dword [ecx + 0x168]
test esi, esi
je 0x510f8b
mov eax, dword [ebp + 8]
xor edx, edx
dec eax
div dword [ecx + 0x164]
mov ecx, dword [ecx + 0x1a8]
movzx ecx, byte [ecx + edx]
cmp eax, ecx
jne 0x510f8b
mov ecx, dword [esi + edx*4]
mov eax, 0xf
cmp eax, ecx
sbb eax, eax
neg eax
cmp eax, 1
jne 0x510f8b
test ecx, ecx
je 0x510f8b
cmp dword [ecx + 0x30], 0
je 0x510f8b
xor eax, eax
mov dword [ebp - 4], 0x1c
mov word [ebp - 0x20], ax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x20]
push eax
push dword [ecx + 0x8c]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x510f8b
push dword [ebp + 0x14]
lea edx, [ebp + 8]
push dword [ebp + 0x10]
lea ecx, [ebp - 0x20]
push dword [ebp + 0xc]
call fcn.00513920
add esp, 0xc
pop esi
mov esp, ebp
pop ebp
ret 0x10
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0x10
Function at 0x511760
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
mov eax, dword [edi]
call dword [eax + 0x28]
test eax, eax
je 0x511836
movzx eax, word [edi + 0x4c]
push 6
push 1
push eax
call dword [sym.imp.WS2_32.dll_socket]
lea ecx, [edi + 0x80]
mov dword [ebp - 4], eax
call fcn.00512cf0
mov ebx, eax
mov dword [ebp - 8], 0x10
mov eax, dword [edi + 0x1c]
push ebx
push 0
mov dword [ebx + 0x1c], eax
movzx ecx, word [edi + 0x4c]
mov edx, dword [edi + 0x54]
cmp ecx, 2
mov esi, dword [edi + 0x40]
mov eax, dword [ebp - 4]
mov dword [ebx + 0x34], eax
mov eax, 0x1c
cmove eax, dword [ebp - 8]
add eax, 0x10
mov dword [ebp - 0xc], ebx
push eax
push eax
push 0
push dword [ebx + 0x20]
mov dword [ebx + 0x18], 1
push dword [ebp - 4]
push edx
call esi
test eax, eax
jne 0x5117eb
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x5117ed
xor eax, eax
xor ecx, ecx
cmp eax, 0x3e5
cmove eax, ecx
xor ebx, ebx
test eax, eax
sete bl
test ebx, ebx
jne 0x511843
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x28]
test eax, eax
jne 0x51184c
push dword [ebp - 4]
call dword [sym.imp.WS2_32.dll_closesocket]
mov esi, dword [ebp - 0xc]
lea ecx, [edi + 0x9c]
push esi
call fcn.0050f110
test eax, eax
jne 0x511836
push esi
push eax
mov eax, dword [esi + 0x14]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_HeapFree]
lea ecx, [edi + 0x378]
or edx, 0xffffffff
lock xadd dword [ecx], edx
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.004e13b0
int3
Function at 0x511ba0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
push 0
mov ebx, ecx
push 0
push 0xfffffffffffffff1
push dword [ebx + 0x58]
call dword [sym.imp.KERNEL32.dll_PostQueuedCompletionStatus]
test eax, eax
je 0x511d0f
cmp word [ebx + 0x4c], 2
mov ecx, 0x10
mov esi, dword [ebp + 0xc]
mov eax, 0x1c
cmove eax, ecx
add eax, ecx
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 0xc]
push ecx
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x18]
push ecx
push eax
push eax
mov eax, dword [ebx + 0x44]
push 0
push dword [esi + 0x20]
call eax
mov eax, dword [ebx]
mov ecx, ebx
mov edi, dword [esi + 0x34]
mov dword [ebp - 4], 0
mov dword [ebp - 8], edi
call dword [eax + 0x28]
test eax, eax
je 0x511cd9
lea eax, [ebp - 4]
push eax
push ecx
lea ecx, [ebx + 0x164]
call fcn.005130f0
test eax, eax
je 0x511cd9
mov esi, dword [ebp - 4]
mov ecx, ebx
push edi
push esi
call fcn.00510a60
mov dword [ebp - 4], eax
lea edi, [eax + 0x58]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push dword [ebp - 0xc]
mov ecx, ebx
push dword [ebp - 4]
push esi
call fcn.00510c20
mov eax, dword [ebp + 8]
push 4
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
push 0x700b
push 0xffff
push dword [ebp - 8]
call dword [sym.imp.WS2_32.dll_setsockopt]
mov esi, dword [ebp - 4]
push 0
push esi
push dword [ebx + 0x58]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebx]
mov ecx, ebx
push esi
call dword [eax + 0xe8]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, ebx
cmp esi, 2
je 0x511cb8
push dword [ebp + 0xc]
push dword [ebp - 4]
call fcn.00512180
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0
push 0
push 0
push dword [ebp - 4]
call fcn.00510b30
push dword [ebp + 0xc]
mov ecx, ebx
call fcn.00510dc0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 2
push edi
call dword [sym.imp.WS2_32.dll_shutdown]
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
push esi
lea ecx, [ebx + 0x9c]
call fcn.0050f110
test eax, eax
jne 0x511d06
push esi
push eax
mov eax, dword [esi + 0x14]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0x80004005
call fcn.004e13b0
int3
Function at 0x511ee0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x578a28
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x5ea6f0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edx, ecx
mov dword [ebp - 0x10], edx
mov esi, dword [ebp + 8]
xor edi, edi
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x18], edi
jmp 0x511f20
cmp dword [esi + 0x50], 0
jne 0x512022
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
test eax, eax
je 0x511f3c
cmp eax, 1
jne 0x512022
mov ecx, dword [ebp + 0xc]
mov eax, dword [edx + 0x1c]
lea ebx, [ecx + 0x1c]
cmp dword [ebx], eax
jne 0x512018
xor edi, edi
mov dword [ebx], eax
push edi
push edi
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], edi
push eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], edi
push eax
push 1
push ebx
push dword [ecx + 0x34]
call dword [sym.imp.WS2_32.dll_WSARecv]
cmp eax, 0xffffffff
jne 0x511f7c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
jmp 0x511f8c
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x511f87
mov dword [ebx], eax
jmp 0x511f94
mov edi, 0x2775
test edi, edi
jne 0x51201c
cmp dword [esi + 0x30], 0
mov eax, 0xff
mov dword [ebp - 0x14], eax
je 0x511ffb
add esi, 0x58
push esi
mov dword [ebp - 0x20], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp + 8]
mov dword [ebp - 4], 0
cmp dword [eax + 0x30], 0
je 0x511fe2
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push dword [ebx]
mov ecx, dword [ebp - 0x10]
mov ebx, dword [ebp + 0xc]
mov eax, dword [ecx]
push dword [ebx + 0x20]
push dword [ebp + 8]
call dword [eax + 0xf4]
mov dword [ebp - 0x14], eax
jmp 0x511fe5
mov ebx, dword [ebp + 0xc]
push esi
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [ebp + 8]
mov eax, dword [ebp - 0x14]
jmp 0x511ffe
mov ebx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 0x10]
mov dword [ecx], eax
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
cmp eax, 0x1e
jl 0x511f20
jmp 0x512022
mov ebx, ecx
jmp 0x512022
mov ebx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
test eax, eax
je 0x512030
cmp eax, 1
jne 0x512089
test edi, edi
je 0x51209f
cmp edi, 0x2733
je 0x51209f
cmp edi, 0x2775
jne 0x51204c
push 0
push 0
push 1
jmp 0x512061
cmp edi, 0x2736
je 0x512069
cmp edi, 0x3e3
je 0x512069
push edi
push 4
push 2
push esi
mov ecx, edx
call fcn.00510b30
mov ecx, dword [ebp - 0x10]
push ebx
add ecx, 0x9c
call fcn.0050f110
test eax, eax
jne 0x512089
push ebx
push eax
mov eax, dword [ebx + 0x14]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x5124f0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0x10]
mov dword [ebp - 8], ecx
test eax, eax
jle 0x51266f
push ebx
lea ebx, [ecx + 0x80]
push esi
mov dword [ebp - 0xc], ebx
push edi
mov esi, dword [ecx + 0x1c]
cmp eax, esi
lea ecx, [ebx + 0x1c]
mov dword [ebp - 4], 0
cmovl esi, eax
lea eax, [ebp - 4]
push eax
mov dword [ebp - 0x10], esi
call fcn.0050dea0
test eax, eax
je 0x51254c
mov ebx, dword [ebp - 4]
xorps xmm0, xmm0
movdqu xmmword [ebx], xmm0
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x1c], 0
jmp 0x51257e
mov edi, dword [ebx + 0x10]
lea eax, [edi + 0x38]
push eax
push 0
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push 0x38
mov ebx, eax
push 0
push ebx
call fcn.00550c40
mov eax, dword [ebp - 0xc]
add esp, 0xc
mov dword [ebx + 0x14], eax
lea eax, [ebx + 0x38]
mov dword [ebx + 0x24], edi
mov dword [ebx + 0x20], eax
mov dword [ebp - 4], ebx
test esi, esi
jns 0x51258a
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x1c]
jmp 0x51258d
mov eax, dword [ebp - 0x10]
push esi
push dword [ebp + 0xc]
lea edi, [ebx + 0x1c]
mov dword [edi], eax
push dword [ebx + 0x20]
call fcn.0054fa80
mov edx, dword [ebp + 8]
add esp, 0xc
mov eax, esi
lea ecx, [edx + 0x44]
lock xadd dword [ecx], eax
mov eax, dword [edx + 0x8c]
push 0
push ebx
mov dword [ebx + 0x34], eax
lea eax, [ebp - 0x10]
push 0
push eax
push 1
push edi
push dword [ebx + 0x34]
mov dword [ebp - 0x10], 0
mov dword [ebx + 0x18], 3
mov dword [ebx + 0x28], 2
call dword [sym.imp.WS2_32.dll_WSASend]
cmp eax, 0xffffffff
jne 0x5125ef
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
jmp 0x5125f1
xor edi, edi
xor eax, eax
lea ecx, [ebx + 0x28]
cmp edi, 0x3e5
cmove edi, eax
or eax, 0xffffffff
lock xadd dword [ecx], eax
dec eax
je 0x51260d
test edi, edi
je 0x512631
mov ecx, dword [ebp - 8]
push ebx
lea ecx, [ecx + 0x9c]
call fcn.0050f110
test eax, eax
jne 0x51262d
push ebx
push eax
mov eax, dword [ebx + 0x14]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_HeapFree]
test edi, edi
jne 0x512658
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 8]
sub eax, esi
add dword [ebp + 0xc], esi
mov dword [ebp + 0x10], eax
lea ebx, [ecx + 0x80]
test eax, eax
jg 0x512510
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp + 8]
neg esi
add eax, 0x44
lock xadd dword [eax], esi
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
xor eax, eax
mov esp, ebp
pop ebp
ret 0xc
Function at 0x5128f0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], ecx
cmp dword [edi + 0x94], 0
jle 0x512a01
push ebx
lea edx, [edi + 0x48]
push esi
nop
mov esi, dword [edi + 0x98]
cmp esi, dword [edi + 0x9c]
je 0x512930
mov eax, dword [esi + 0x2c]
mov dword [edi + 0x98], eax
mov dword [eax + 0x30], 0
jmp 0x512948
test esi, esi
je 0x512960
mov dword [edi + 0x98], 0
mov dword [edi + 0x9c], 0
test esi, esi
je 0x512960
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
dec dword [edi + 0x94]
mov eax, dword [esi + 0x1c]
lea ecx, [esi + 0x1c]
sub dword [edi + 0x44], eax
lock xadd dword [edx], eax
mov eax, dword [edi + 0x8c]
xor ebx, ebx
push ebx
push esi
mov dword [esi + 0x34], eax
lea eax, [ebp + 8]
push ebx
push eax
push 1
push ecx
push dword [esi + 0x34]
mov dword [ebp + 8], ebx
mov dword [esi + 0x18], 3
mov dword [esi + 0x28], 2
call dword [sym.imp.WS2_32.dll_WSASend]
cmp eax, 0xffffffff
jne 0x5129a9
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
or eax, 0xffffffff
lea ecx, [esi + 0x28]
lock xadd dword [ecx], eax
dec eax
je 0x5129c2
test ebx, ebx
je 0x5129e6
cmp ebx, 0x3e5
je 0x5129e2
mov ecx, dword [ebp - 4]
push esi
lea ecx, [ecx + 0x9c]
call fcn.0050f110
test eax, eax
jne 0x5129e2
push esi
push eax
mov eax, dword [esi + 0x14]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_HeapFree]
test ebx, ebx
jne 0x5129f6
cmp dword [edi + 0x94], 0
lea edx, [edi + 0x48]
jg 0x512910
pop esi
mov eax, ebx
pop ebx
pop edi
mov esp, ebp
pop ebp
ret 4
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret 4

Function at 0x5137d0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
push edi
push eax
push esi
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0
push eax
push dword [ebp - 4]
mov dword [ebp - 8], eax
push 2
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ecx, eax
mov dword [edi + 8], ecx
test ecx, ecx
jne 0x513812
call fcn.0050e890
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x18
mov eax, dword [ebp - 8]
push 0
push eax
mov dword [edi + 0x10], 0
push dword [edi + 0x10]
mov dword [edi + 0x14], 0
push dword [edi + 0x14]
mov dword [edi + 4], eax
push 4
push ecx
mov dword [edi + 0x18], 4
call dword [sym.imp.KERNEL32.dll_MapViewOfFileEx]
mov dword [edi], eax
test eax, eax
jne 0x513866
call fcn.0050e890
push dword [edi + 8]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 8], 0
mov eax, esi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x18
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0x18
Function at 0x513bd0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, edx
mov eax, dword [esi + 4]
test eax, eax
je 0x513bed
sub esp, 0x18
push ecx
mov ecx, eax
call fcn.00513ec0
jmp 0x513c06
push 0
push 0x80
push 3
push 0
push 1
push closesocket
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x513c19
call fcn.0050e890
test eax, eax
jns 0x513c1b
pop esi
mov esp, ebp
pop ebp
ret
mov dword [esi], eax
lea eax, [ebp - 4]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
jne 0x513c3b
call fcn.0050e890
test eax, eax
js 0x513c71
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
test ecx, ecx
jne 0x513c48
test eax, eax
je 0x513c63
test ecx, ecx
ja 0x513c63
jb 0x513c51
cmp eax, dword [ebp + 0xc]
ja 0x513c63
mov ecx, dword [ebp + 8]
sub esp, 0x14
push dword [esi]
call fcn.005137d0
pop esi
mov esp, ebp
pop ebp
ret
or eax, ecx
mov eax, 0x800703ee
je 0x513c71
mov eax, 0x800700df
pop esi
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ecx + 0x8c]
push esi
xor esi, esi
mov dword [edx + 0x34], eax
push esi
push edx
lea eax, [ebp - 4]
mov dword [ebp - 4], esi
push eax
lea eax, [ebp - 8]
mov dword [ebp - 8], esi
push eax
push 1
lea eax, [edx + 0x1c]
mov dword [edx + 0x18], 4
push eax
push dword [edx + 0x34]
call dword [sym.imp.WS2_32.dll_WSARecv]
cmp eax, 0xffffffff
jne 0x513d65
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
xor eax, eax
cmp esi, 0x3e5
cmove esi, eax
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x5195e0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
mov eax, dword [0x5ea6f0]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x30], ecx
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x1c]
call fcn.004e9800
mov dword [ebp - 0x2c], 0x580060
lea ecx, [ebp - 0x20]
push ecx
push 0x2001f
push 0
mov edx, dword [ebp - 0x2c]
push edx
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jne 0x519692
xor eax, eax
mov word [ebp - 0x23c], ax
push 0x206
push 0
lea ecx, [ebp - 0x23a]
push ecx
call fcn.00550c40
add esp, 0xc
mov dword [ebp - 0x34], 1
lea ecx, [ebp - 0x1c]
call fcn.004e9250
shl eax, 1
mov dword [ebp - 0x24], eax
mov edx, dword [ebp - 0x24]
push edx
lea ecx, [ebp - 0x1c]
call fcn.004e9c20
push eax
push 1
push 0
mov ecx, dword [ebp + 8]
call fcn.004e9c20
push eax
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x5196e7
lea edx, [ebp - 0x20]
push edx
mov eax, dword [ebp - 0x2c]
push eax
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x5196e7
lea ecx, [ebp - 0x1c]
call fcn.004e9250
shl eax, 1
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x24]
push ecx
lea ecx, [ebp - 0x1c]
call fcn.004e9c20
push eax
push 1
push 0
mov ecx, dword [ebp + 8]
call fcn.004e9c20
push eax
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x1c]
call fcn.004e9960
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005507d9
mov esp, ebp
pop ebp
ret 8
Function at 0x5199e0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5796a6
mov eax, dword fs:[0]
push eax
sub esp, 0x240
mov eax, dword [0x5ea6f0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x24c], ecx
mov dword [ebp - 0x248], 0
mov dword [ebp - 4], 1
lea eax, [ebp + 0x24]
push eax
lea ecx, [ebp - 0x238]
call fcn.004e9800
mov byte [ebp - 4], 2
mov dword [ebp - 0x244], 0x5801f8
lea ecx, [ebp - 0x23c]
push ecx
push 0x2001f
push 0
mov edx, dword [ebp - 0x244]
push edx
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x240], eax
cmp dword [ebp - 0x240], 0
jne 0x519b5a
xor eax, eax
mov word [ebp - 0x218], ax
push 0x206
push 0
lea ecx, [ebp - 0x216]
push ecx
call fcn.00550c40
add esp, 0xc
mov dword [ebp - 0x220], 1
lea edx, [ebp - 0x21c]
push edx
push 0
lea eax, [ebp - 0x220]
push eax
push 0
lea ecx, [ebp + 0xc]
call fcn.004e9c20
push eax
mov ecx, dword [ebp - 0x23c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x519b08
lea edx, [ebp - 0x21c]
push edx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x220]
push ecx
push 0
lea ecx, [ebp + 0xc]
call fcn.004e9c20
push eax
mov edx, dword [ebp - 0x23c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x238]
call fcn.004e99b0
jmp 0x519b4b
lea ecx, [ebp + 0x24]
call fcn.004e9250
shl eax, 1
mov dword [ebp - 0x21c], eax
mov ecx, dword [ebp - 0x21c]
push ecx
lea ecx, [ebp - 0x238]
call fcn.004e9c20
push eax
push 1
push 0
lea ecx, [ebp + 0xc]
call fcn.004e9c20
push eax
mov edx, dword [ebp - 0x23c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0x240], eax
mov eax, dword [ebp - 0x23c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x519bca
lea ecx, [ebp - 0x23c]
push ecx
mov edx, dword [ebp - 0x244]
push edx
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x519bca
lea ecx, [ebp - 0x238]
call fcn.004e9250
shl eax, 1
mov dword [ebp - 0x21c], eax
mov eax, dword [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x238]
call fcn.004e9c20
push eax
push 1
push 0
lea ecx, [ebp + 0xc]
call fcn.004e9c20
push eax
mov ecx, dword [ebp - 0x23c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0x240], eax
mov edx, dword [ebp - 0x23c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x238]
push eax
mov ecx, dword [ebp + 8]
call fcn.004e98b0
mov ecx, dword [ebp - 0x248]
or ecx, 1
mov dword [ebp - 0x248], ecx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x238]
call fcn.004e9960
mov byte [ebp - 4], 0
lea ecx, [ebp + 0xc]
call fcn.004e9960
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x24]
call fcn.004e9960
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005507d9
mov esp, ebp
pop ebp
ret 0x34
Function at 0x519c30
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x5ea6f0]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], 0x580268
lea eax, [ebp - 8]
push eax
push 0x2001f
push 0
mov ecx, dword [ebp - 0x14]
push ecx
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x519cad
lea ecx, [ebp + 0x20]
call fcn.004e9250
shl eax, 1
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 0x10]
push edx
lea ecx, [ebp + 0x20]
call fcn.004e9c20
push eax
push 1
push 0
lea ecx, [ebp + 8]
call fcn.004e9c20
push eax
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x519d02
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp - 0x14]
push eax
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x519d02
lea ecx, [ebp + 0x20]
call fcn.004e9250
shl eax, 1
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
push ecx
lea ecx, [ebp + 0x20]
call fcn.004e9c20
push eax
push 1
push 0
lea ecx, [ebp + 8]
call fcn.004e9c20
push eax
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp + 8]
call fcn.004e9960
lea ecx, [ebp + 0x20]
call fcn.004e9960
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005507d9
mov esp, ebp
pop ebp
ret 0x30