joyce8/EMBER2024-capa huggingface dataset:
Function at 0x505880
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
cmp dword [0x5f8ebc], 0
mov dword [ebp - 0x18], str.getaddrinfo
mov dword [ebp - 0x14], 0x5053a0
mov dword [ebp - 0x10], str.getnameinfo
mov dword [ebp - 0xc], 0x505660
mov dword [ebp - 8], str.freeaddrinfo
mov dword [ebp - 4], fcn.00505350
je 0x5058cd
movzx eax, word [ebp + 8]
mov eax, dword [eax*8 + 0x5f336c]
mov esp, ebp
pop ebp
ret 4
push 0x104
lea ecx, [ebp - 0x22c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x5059ca
push ebx
push esi
push edi
lea edx, [ebp - 0x22c]
push edx
lea eax, [ebp - 0x124]
push 0x10c
push eax
call fcn.0055a2ba
push str.ws2_32
lea ecx, [ebp - 0x124]
push 0x10c
push ecx
call fcn.0055d769
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
add esp, 0x18
lea edx, [ebp - 0x124]
push edx
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x505949
push str.getaddrinfo
push esi
call ebx
test eax, eax
jne 0x505995
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x22c]
push eax
lea ecx, [ebp - 0x124]
push 0x10c
push ecx
call fcn.0055a2ba
push str.wship6
lea edx, [ebp - 0x124]
push 0x10c
push edx
call fcn.0055d769
add esp, 0x18
lea eax, [ebp - 0x124]
push eax
call edi
mov esi, eax
test esi, esi
je 0x5059c7
push str.getaddrinfo
push esi
call ebx
test eax, eax
je 0x5059e5
xor edi, edi
mov ecx, dword [ebp + edi*8 - 0x18]
push ecx
push esi
call ebx
mov dword [ebp + edi*8 - 0x14], eax
test eax, eax
je 0x5059e5
inc edi
cmp edi, 3
jl 0x505997
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
mov dword [0x5f336c], edx
mov dword [0x5f3374], eax
mov dword [fcn.00505350], ecx
pop edi
pop esi
pop ebx
movzx edx, word [ebp + 8]
mov eax, dword [edx*8 + 0x5f336c]
mov dword [0x5f8ebc], 1
mov esp, ebp
pop ebp
ret 4
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x5059c7
Function at 0x505a30
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x505b2c
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x505a47
sub eax, edx
je 0x505b2c
mov ecx, str.127.0.0.1
mov eax, edi
lea ecx, [ecx]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x505a80
test dl, dl
je 0x505a7c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x505a80
add eax, 2
add ecx, 2
test dl, dl
jne 0x505a60
xor eax, eax
jmp 0x505a85
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x505b2c
push str.localhost
push edi
call fcn.0055d8cf
add esp, 8
test eax, eax
je 0x505b2c
push 0x5a7ad8
push edi
call fcn.0055d8cf
add esp, 8
test eax, eax
je 0x505b2c
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 0x14]
push ecx
mov dword [ebp - 4], 0x10
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
test eax, eax
jne 0x505afe
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x505ae2
and eax, 0xffff
or eax, 0x80070000
push str.GetComputerNameA__szLocalHost__dwSize_
push eax
lea ecx, [ebp - 0x24]
call fcn.00434a80
push 0x5cc0a0
lea edx, [ebp - 0x24]
push edx
call fcn.00554cbc
lea ecx, [ebp - 0x14]
mov eax, edi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x505b23
test dl, dl
je 0x505b1f
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x505b23
add eax, 2
add ecx, 2
test dl, dl
jne 0x505b03
xor eax, eax
jmp 0x505b28
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x505b33
mov al, 1
pop edi
mov esp, ebp
pop ebp
ret
lea eax, [ebp + 8]
push eax
push 0
push 0
lea ecx, [ebp - 0x14]
push ecx
call fcn.005059f0
test eax, eax
je 0x505b63
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x505b5c
and eax, 0xffff
or eax, 0x80070000
push str.0__WspiapiGetAddrInfo__szLocalHost__0__0__ai_
jmp 0x505ae7
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x18]
push esi
mov esi, dword [ecx + 4]
lea edx, [ebp + 8]
push edx
push 0
push 0
push edi
call fcn.005059f0
test eax, eax
je 0x505b87
pop esi
xor al, al
pop edi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x18]
xor eax, eax
cmp dword [ecx + 4], esi
pop esi
sete al
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x509f00
Capabilities:
Create new key via cryptacquirecontext
Hash data using sha1
Hash data using sha1 via wincrypt
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push edi
mov edi, dword [ebp + 8]
mov eax, edi
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x509f10
sub eax, edx
jne 0x509f20
pop edi
mov esp, ebp
pop ebp
ret
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
push 0
push 1
push str.Microsoft_Base_Cryptographic_Provider_v1.0
push 0
lea eax, [ebp - 8]
push eax
call esi
test eax, eax
jne 0x509f62
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x80090016
jne 0x509f62
push 8
push 1
push str.Microsoft_Base_Cryptographic_Provider_v1.0
push 0
lea ecx, [ebp - 8]
push ecx
call esi
test eax, eax
je 0x50a05d
mov eax, dword [ebp - 8]
lea edx, [ebp - 4]
push edx
push 0
push 0
push 0x8004
push eax
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x50a009
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x509f86
push 0
sub eax, edx
mov edx, dword [ebp - 4]
push eax
push edi
push edx
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x509fff
mov ecx, dword [ebp - 4]
mov edi, dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
xor eax, eax
push eax
lea edx, [ebp - 0xc]
push edx
mov word [ebp - 0xf], ax
mov byte [ebp - 0xd], al
lea eax, [ebp - 0x10]
push eax
push 4
push ecx
mov byte [ebp - 0x10], 0
mov dword [ebp - 0xc], 4
call edi
mov edx, dword [ebp - 4]
test eax, eax
jne 0x509fee
push edx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, dword [ebp - 8]
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
pop esi
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
push 0
lea ecx, [ebp - 0xc]
push ecx
push 0
push 2
push edx
call edi
test eax, eax
jne 0x50a01d
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov ecx, dword [ebp - 8]
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
pop esi
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0xc]
push edx
call fcn.0053f875
mov ecx, dword [ebp - 4]
add esp, 4
push 0
mov esi, eax
lea eax, [ebp - 0xc]
push eax
push esi
push 2
push ecx
call edi
test eax, eax
jne 0x50a065
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, dword [ebp - 8]
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
push esi
call fcn.005559df
add esp, 4
pop esi
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp - 0xc]
mov dword [ecx], esi
mov ecx, dword [ebp - 4]
push ecx
mov dword [edx], eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov edx, dword [ebp - 8]
push 0
push edx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
pop esi
mov eax, 1
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x50a330
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
lea edx, [ebp - 4]
push edx
push 0
lea ecx, [eax + eax]
lea eax, [ebp - 8]
push eax
push 0
push edi
push ebx
mov dword [ebp - 8], 1
mov dword [ebp - 4], ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [ebp - 4]
push ecx
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
lea edx, [ebp - 4]
push edx
mov esi, eax
push esi
lea eax, [ebp - 8]
push eax
push 0
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test edi, edi
jne 0x50a3a1
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
push esi
push ecx
push edx
call fcn.00554e48
jmp 0x50a3b0
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
push eax
push 0
push ecx
call fcn.00555020
add esp, 0xc
test esi, esi
je 0x50a3c7
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor eax, eax
test edi, edi
pop edi
pop esi
sete al
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x50a540
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
lea eax, [ebp - 4]
push eax
mov dword [ebp - 4], 0
call fcn.0050a470
add esp, 4
test eax, eax
jne 0x50a561
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 8]
push esi
lea ecx, [ebp + 0xc]
push ecx
mov ecx, dword [ebp - 4]
push edx
lea eax, [ebp - 8]
push eax
push 0
push str.InstallPath
push ecx
mov dword [ebp - 8], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edx, dword [ebp - 4]
push edx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
sete al
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x50a5a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x808
push edi
mov edi, dword [ebp + 8]
push 0x104
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x5c
push edi
call fcn.00557400
add esp, 8
test eax, eax
jne 0x50a5d1
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
xor ecx, ecx
lea edx, [ebp - 4]
mov word [eax], cx
push edx
mov dword [ebp - 4], ecx
call fcn.0050a470
add esp, 4
test eax, eax
je 0x50a5ca
push esi
xor eax, eax
push 0x7fe
push eax
lea ecx, [ebp - 0x806]
push ecx
mov word [ebp - 0x808], ax
call fcn.00555020
add esp, 0xc
lea edx, [ebp + 0xc]
push edx
mov edx, dword [ebp - 4]
lea eax, [ebp - 0x808]
push eax
lea ecx, [ebp - 8]
push ecx
push 0
push str.LANG
push edx
mov dword [ebp - 8], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x50a658
xor eax, eax
movzx ecx, word [eax + str.English]
mov word [ebp + eax - 0x808], cx
add eax, 2
test cx, cx
jne 0x50a641
lea eax, [edi - 2]
jmp 0x50a660
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x50a660
mov ecx, dword [str.LANGUAGES_]
mov dword [eax], ecx
mov edx, dword [0x5a1064]
mov dword [eax + 4], edx
mov ecx, dword [0x5a1068]
mov dword [eax + 8], ecx
mov edx, dword [0x5a106c]
mov dword [eax + 0xc], edx
mov ecx, dword [0x5a1070]
mov dword [eax + 0x10], ecx
mov edx, dword [0x5a1074]
mov dword [eax + 0x14], edx
lea eax, [ebp - 0x808]
mov edx, eax
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x50a6b0
sub eax, edx
add edi, 0xfffffffe
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x50a6c0
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop esi
mov eax, 1
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x50a720
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
xor eax, eax
push ebx
mov ebx, dword [ebp + 0x10]
mov dword [ebx], eax
mov dword [ebx + 4], eax
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], eax
mov eax, 2
mov word [ebx], ax
movzx eax, word [ecx]
push esi
xor esi, esi
push edi
test ax, ax
je 0x50a761
jmp 0x50a750
cmp ax, 0x3a
je 0x50a761
movzx eax, word [ecx + esi*2 + 2]
inc esi
test ax, ax
jne 0x50a750
xor edx, edx
cmp dx, word [ecx + esi*2]
jne 0x50a76e
mov eax, dword [ebp + 0xc]
jmp 0x50a77b
lea ecx, [ecx + esi*2 + 2]
push ecx
call fcn.005553cb
add esp, 4
push eax
call dword [sym.imp.WS2_32.dll_htons]
lea edx, [esi + 1]
push edx
mov word [ebx + 2], ax
call fcn.00554bee
mov edi, eax
add esp, 4
xor eax, eax
test edi, edi
je 0x50a7e7
mov byte [edi + esi], al
test esi, esi
jle 0x50a7af
mov ecx, dword [ebp + 8]
mov dl, byte [ecx + eax*2]
mov byte [edi + eax], dl
inc eax
cmp eax, esi
jl 0x50a7a1
push edi
call dword [sym.imp.WS2_32.dll_inet_addr]
push edi
mov dword [ebx + 4], eax
call fcn.00554c82
add esp, 4
cmp dword [ebx + 4], 0xffffffff
jne 0x50a7e2
push edi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x50a7d8
pop edi
pop esi
pop ebx
pop ebp
ret
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx]
mov dword [ebx + 4], edx
mov eax, 1
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x50aad0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Get socket status
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
push ebx
mov ebx, dword [sym.imp.WS2_32.dll_closesocket]
push esi
push edi
mov esi, ecx
or edi, 0xffffffff
mov dword [ebp - 8], 0xfa0
cmp dword [esi + 0x3c], edi
je 0x50ab01
call fcn.0050a6f0
mov eax, dword [esi + 0x3c]
push eax
call ebx
mov dword [esi + 0x3c], edi
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi + 0x3c], eax
cmp eax, edi
je 0x50ab3e
mov edi, dword [sym.imp.WS2_32.dll_setsockopt]
push 4
lea ecx, [ebp - 8]
push ecx
push 0x1006
push 0xffff
push eax
call edi
test eax, eax
je 0x50ab47
mov edx, dword [esi + 0x3c]
push edx
call ebx
mov dword [esi + 0x3c], 0xffffffff
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [esi + 0x3c]
push 4
lea eax, [ebp - 8]
push eax
push 0x1005
push 0xffff
push ecx
call edi
test eax, eax
jne 0x50ab31
mov ecx, dword [esi + 0x3c]
mov edi, dword [sym.imp.WS2_32.dll_ioctlsocket]
lea eax, [ebp - 4]
push eax
push 0x8004667e
push ecx
xor bl, bl
mov dword [ebp - 4], 1
call edi
test eax, eax
jne 0x50ab3e
mov eax, dword [esi + 0x3c]
push 0x10
lea edx, [esi + 0x40]
push edx
push eax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x50ab3e
mov ecx, dword [esi + 0x3c]
lea edx, [ebp - 0x10]
push edx
push 0
mov dword [ebp - 0x110], ecx
lea ecx, [ebp - 0x114]
push ecx
mov eax, 1
push 0
push eax
mov dword [ebp - 0x114], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], 0
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jle 0x50abd2
mov bl, 1
mov eax, dword [esi + 0x3c]
lea edx, [ebp - 4]
push edx
push 0x8004667e
push eax
mov dword [ebp - 4], 0
call edi
test eax, eax
jne 0x50ab3e
pop edi
test bl, bl
pop esi
setne al
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x50b330
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.0050af60

Function at 0x50b340
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x595fc8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x428
push ebx
push esi
xor ebx, ebx
xor eax, eax
push edi
mov esi, ecx
mov dword [ebp - 0x20], 7
mov dword [ebp - 0x24], ebx
mov word [ebp - 0x34], ax
mov dword [ebp - 4], ebx
push 0x3ff
lea ecx, [ebp - 0x433]
push ebx
push ecx
mov byte [ebp - 0x434], bl
call fcn.00555020
mov edi, dword [ebp + 0xc]
mov edx, dword [ebp + 0x14]
lea eax, [edi + edx]
add esp, 0xc
mov ecx, esi
mov word [ebp - 0x18], 0x24
mov dword [ebp - 0x16], 0x20009203
mov dword [ebp + 0xc], eax
mov dword [ebp - 0x12], eax
call fcn.0050aad0
test eax, eax
jne 0x50b3e7
mov dword [ebp - 4], 0xffffffff
pop edi
pop esi
mov dword [ebp - 0x24], ebx
mov word [ebp - 0x34], ax
mov dword [ebp - 0x20], 7
mov eax, 0xe0000001
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x10
cmp byte [esi + 0x2afa], bl
je 0x50b3ff
cmp edi, ebx
jbe 0x50b3ff
mov ecx, dword [ebp + 8]
push edi
push ecx
mov ecx, esi
call fcn.0050b330
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
mov cx, word [ebp - 0x10]
mov dword [ebp - 0x434], edx
mov edx, dword [ebp + 8]
push edi
mov dword [ebp - 0x430], eax
push edx
lea eax, [ebp - 0x42a]
push eax
mov word [ebp - 0x42c], cx
call fcn.00554470
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
push ecx
push edx
lea eax, [ebp + edi - 0x42a]
push eax
call fcn.00554470
mov ecx, dword [ebp + 0xc]
mov eax, dword [esi + 0x3c]
add esp, 0x18
push ebx
add ecx, 0xa
push ecx
lea edx, [ebp - 0x434]
push edx
push eax
call dword [sym.imp.WS2_32.dll_send]
or edi, 0xffffffff
cmp eax, edi
jne 0x50b490
mov dword [ebp - 4], edi
pop edi
xor ecx, ecx
pop esi
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], 7
mov word [ebp - 0x34], cx
mov eax, 0xe0000005
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [esi + 0x3c]
push ebx
push 0xa
lea edx, [ebp - 0x18]
push edx
push eax
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, edi
je 0x50b465
cmp byte [ebp - 0x18], 0x24
jne 0x50b4ee
cmp dword [ebp - 0x16], 0x55aa0000
je 0x50b511
mov edx, dword [0x5f5774]
mov eax, dword [edx + 0xc]
mov ecx, 0x5f5774
call eax
add eax, 0x10
mov dword [ebp + 8], eax
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x16]
push ecx
lea edx, [ebp + 8]
push str.Bad_data_type._Type_received:__04Xh
push edx
call fcn.004060d0
add esp, 0xc
mov byte [ebp - 4], bl
lea ecx, [ebp + 8]
call fcn.00404d60
mov dword [ebp - 4], edi
lea ecx, [ebp - 0x34]
call fcn.00405c10
pop edi
pop esi
mov eax, 0xe0000005
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x10
mov dword [ebp - 4], edi
lea ecx, [ebp - 0x34]
call fcn.00405c10
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
xor eax, eax
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x50b6d0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x595fe8
push eax
mov eax, 0x2028
mov dword fs:[0], esp
call fcn.00555ae0
push ebx
push esi
push edi
mov edi, 7
xor ebx, ebx
xor eax, eax
mov esi, ecx
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x24], ebx
mov word [ebp - 0x34], ax
mov dword [ebp - 4], ebx
call fcn.0050aad0
test eax, eax
jne 0x50b72d
mov dword [ebp - 4], 0xffffffff
xor ecx, ecx
mov word [ebp - 0x34], cx
mov eax, 0xe0000001
jmp 0x50b80a
cmp byte [esi + 0x2afa], bl
je 0x50b73c
mov ecx, esi
call fcn.0050b540
push 0xfff
lea edx, [ebp - 0x2033]
push ebx
push edx
mov byte [ebp - 0x2034], bl
call fcn.00555020
add esp, 0xc
lea eax, [ebp + 8]
push eax
lea ecx, [ebp + 0xdfc]
push ecx
lea edx, [ebp - 0x2034]
push edx
mov ecx, esi
call fcn.0050a950
test eax, eax
jne 0x50b789
mov dword [ebp - 4], 0xffffffff
mov word [ebp - 0x34], ax
mov eax, 0xfffffffe
jmp 0x50b80a
mov dword [ebp - 0x16], 0x20009204
mov word [ebp - 0x18], 0x24
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x12], 0xdf8
mov edx, dword [ebp - 0x14]
mov ax, word [ebp - 0x10]
mov dword [ebp - 0x1034], ecx
push 0xdf8
lea ecx, [ebp - 0x2034]
mov dword [ebp - 0x1030], edx
push ecx
lea edx, [ebp - 0x102a]
push edx
mov word [ebp - 0x102c], ax
call fcn.00554470
mov ecx, dword [esi + 0x3c]
add esp, 0xc
push ebx
push 0xe02
lea eax, [ebp - 0x1034]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_send]
or ecx, 0xffffffff
cmp eax, ecx
jne 0x50b801
mov dword [ebp - 4], ecx
xor edx, edx
mov word [ebp - 0x34], dx
lea eax, [ecx - 3]
jmp 0x50b80a
mov dword [ebp - 4], ecx
xor eax, eax
mov word [ebp - 0x34], ax
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x20], edi
pop edi
mov dword [ebp - 0x24], ebx
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0xdf8
Function at 0x50b830
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x595fe8
push eax
mov eax, 0x2028
mov dword fs:[0], esp
call fcn.00555ae0
push ebx
push esi
push edi
mov edi, 7
xor ebx, ebx
xor eax, eax
mov esi, ecx
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x24], ebx
mov word [ebp - 0x34], ax
mov dword [ebp - 4], ebx
call fcn.0050aad0
test eax, eax
jne 0x50b8a1
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x20], edi
pop edi
xor ecx, ecx
pop esi
mov dword [ebp - 0x24], ebx
mov word [ebp - 0x34], cx
mov eax, 0xe0000001
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
cmp byte [esi + 0x2afa], bl
je 0x50b8b0
mov ecx, esi
call fcn.0050b540
push 0x1000
lea edx, [ebp - 0x1034]
push ebx
push edx
call fcn.00555020
push 0x1000
lea eax, [ebp - 0x2034]
push ebx
push eax
call fcn.00555020
mov edx, dword [esi + 0x3c]
add esp, 0x18
push ebx
push 0xa
lea ecx, [ebp - 0x18]
push ecx
push edx
mov dword [ebp - 0x12], ebx
mov word [ebp - 0x18], 0x124
mov dword [ebp - 0x16], 0x20009204
call dword [sym.imp.WS2_32.dll_send]
or edi, 0xffffffff
cmp eax, edi
jne 0x50b927
mov dword [ebp - 4], edi
xor eax, eax
mov word [ebp - 0x34], ax
mov eax, edi
pop edi
pop esi
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], 7
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
mov edx, dword [esi + 0x3c]
push ebx
push 0x1000
lea ecx, [ebp - 0x1034]
push ecx
push edx
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, edi
je 0x50b8ff
mov eax, dword [ebp - 0x1034]
mov ecx, dword [ebp - 0x1030]
mov dx, word [ebp - 0x102c]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], ecx
mov word [ebp - 0x10], dx
cmp al, 0x24
je 0x50b986
mov dword [ebp - 4], edi
lea ecx, [ebp - 0x34]
call fcn.00405c10
pop edi
pop esi
mov eax, 0xfffffffe
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
cmp dword [ebp - 0x1032], 0x20009204
jne 0x50b963
mov ebx, dword [ebp - 0x102e]
push ebx
lea eax, [ebp - 0x102a]
push eax
lea ecx, [ebp - 0x2034]
push ecx
call fcn.00554470
mov edx, dword [ebp + 8]
add esp, 0xc
push edx
push ebx
lea eax, [ebp - 0x2034]
push eax
mov ecx, esi
call fcn.0050a7f0
test eax, eax
jne 0x50b9e9
mov dword [ebp - 4], edi
lea ecx, [ebp - 0x34]
call fcn.00405c10
pop edi
pop esi
mov eax, 0xfffffffd
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
mov dword [ebp - 4], edi
lea ecx, [ebp - 0x34]
call fcn.00405c10
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
xor eax, eax
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4