joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4de0d0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55eccf
mov eax, dword fs:[0]
push eax
sub esp, 0x1ac
mov eax, dword [0x5df7e4]
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 dword [ebp - 4], 0
mov edi, dword [ebp + 8]
mov dword [ebp - 0x1b0], edi
push 0x18
mov dword [ebp - 0x1ac], 0
call fcn.00511c4f
mov esi, eax
add esp, 4
mov dword [ebp - 0x1b4], esi
mov dword [ebp - 4], 1
test esi, esi
je 0x4de1e6
lea ebx, [esi + 0xc]
mov dword [esi + 4], 1
mov ecx, ebx
mov dword [esi + 8], 1
mov dword [esi], vtable.std::_Ref_count_obj_class_asio::io_context_.0
mov dword [ebp - 0x1b8], ebx
call fcn.004e2ea0
mov byte [ebp - 4], 2
push 0x5e4f84
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
cmp eax, 1
jne 0x4de18c
lea eax, [ebp - 0x1a0]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
push eax
push 0x5e4f88
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 0
push 0x5e4f88
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
mov dword [ebp - 0x1a4], eax
test eax, eax
jne 0x4de230
mov byte [ebp - 4], 3
push 0x60
call fcn.00511c4f
add esp, 4
mov dword [ebp - 0x1a4], eax
mov byte [ebp - 4], 4
test eax, eax
je 0x4de1cf
push 0xffffffffffffffff
push ebx
mov ecx, eax
call fcn.004e36a0
jmp 0x4de1d1
xor eax, eax
mov byte [ebp - 4], 3
mov ecx, ebx
push eax
call fcn.004f91d0
mov dword [ebx + 8], eax
mov byte [ebp - 4], 1
jmp 0x4de1e8
xor esi, esi
mov byte [ebp - 4], 0
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [ebp - 4], 0
lea ecx, [esi + 0xc]
mov dword [ebp - 0x1ac], 1
mov dword [edi], ecx
mov dword [edi + 4], esi
mov eax, edi
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.005121be
mov esp, ebp
pop ebp
ret
call fcn.004fecd0
mov ecx, dword [ebp - 0x1a4]
mov dword [ebp - 0x1a4], eax
lea eax, [ebp - 0x1a8]
push str.winsock
push eax
mov dword [ebp - 0x1a8], ecx
call fcn.004fd610
int3

Function at 0x4de5e0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, dword [ecx + 4]
cmp esi, 0xffffffff
jne 0x4de600
call fcn.004fecd0
mov ebx, dword [ebp + 0x10]
mov dword [ebx], 0x2719
jmp 0x4de644
push edi
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push 4
push dword [ebp + 0xc]
push 1
push 6
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
mov edi, eax
call fcn.004fecd0
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, dword [ebp + 0x10]
test edi, edi
pop edi
mov dword [ebx], eax
mov dword [ebx + 4], esi
jne 0x4de647
lea ecx, [ebp - 8]
call fcn.004e2e60
mov ecx, dword [eax]
mov dword [ebx], ecx
mov eax, dword [eax + 4]
mov dword [ebx + 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebx]
pop esi
mov dword [eax], ecx
mov ecx, dword [ebx + 4]
mov dword [eax + 4], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4de660
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push 0x5e4f30
push 0x4d7a50
push 0x5e4f2c
mov esi, ecx
call fcn.0050f8be
add esp, 0xc
test eax, eax
je 0x4de6f0
mov esi, dword [esi + 4]
cmp esi, 0xffffffff
jne 0x4de699
mov ebx, 0x2719
call fcn.004fecd0
jmp 0x4de6de
push edi
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push 4
push dword [ebp + 8]
push 4
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
mov edi, eax
call fcn.004fecd0
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
mov dword [ebp - 4], esi
test edi, edi
mov dword [ebp - 8], ebx
pop edi
jne 0x4de6e4
lea ecx, [ebp - 0x10]
call fcn.004e2e60
mov ebx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 4], eax
mov dword [ebp - 8], ebx
pop esi
test ebx, ebx
pop ebx
jne 0x4de6f5
mov esp, ebp
pop ebp
ret 4
call fcn.0053626b
push str.set_option
lea eax, [ebp - 8]
push eax
call fcn.004fd610
int3

Function at 0x4e0bc0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55f423
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x5df7e4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
call fcn.004e0b30
mov dword [ebp - 4], 0
lea ebx, [esi + 0x3c]
mov eax, dword [ebp + 8]
mov dword [esi], vtable.asio::basic_streambuf_class_std::allocator_char__.0
mov dword [esi + 0x38], eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov byte [ebp - 4], 1
mov edi, dword [esi + 0x38]
cmp edi, 0x80
jbe 0x4e0c30
mov edi, 0x80
jmp 0x4e0c3a
mov eax, 1
cmp edi, 1
jb 0x4e0c3c
mov eax, edi
push ebx
push eax
mov ecx, ebx
call fcn.004d9770
mov eax, dword [esi + 0xc]
mov ecx, dword [ebx]
mov dword [eax], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], 0
mov eax, dword [esi + 0x10]
mov ecx, dword [ebx]
mov dword [eax], ecx
mov eax, dword [esi + 0x20]
mov dword [eax], ecx
mov eax, dword [esi + 0x30]
mov dword [eax], edi
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4e0f70
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55f526
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x5df7e4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov edx, dword [ebp + 8]
lea ecx, [esi + 0x24]
mov eax, dword [edx]
mov dword [esi], eax
mov eax, dword [edx + 4]
mov dword [esi + 4], eax
mov eax, dword [edx + 8]
mov dword [esi + 8], eax
mov eax, dword [edx + 0xc]
mov dword [esi + 0xc], eax
mov eax, dword [edx + 0x10]
mov dword [esi + 0x10], eax
mov eax, dword [edx + 0x14]
mov dword [esi + 0x14], eax
mov eax, dword [edx + 0x18]
mov dword [esi + 0x18], eax
mov eax, dword [edx + 0x1c]
mov dword [esi + 0x1c], eax
mov eax, dword [edx + 0x20]
mov dword [esi + 0x20], eax
mov dword [ebp + 8], ecx
mov eax, dword [edx + 0x24]
mov dword [ecx], eax
mov eax, dword [edx + 0x28]
mov dword [ecx + 4], eax
mov eax, dword [edx + 0x2c]
mov dword [ecx + 8], eax
mov eax, dword [edx + 0x30]
mov dword [ecx + 0xc], eax
mov eax, dword [edx + 0x34]
mov dword [ecx + 0x10], eax
lea eax, [edx + 0x38]
push eax
add ecx, 0x14
call fcn.004df220
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x4e1950
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55f7f6
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x5df7e4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov edx, dword [ebp + 8]
lea ecx, [esi + 0x14]
mov eax, dword [edx]
mov dword [esi], eax
movq xmm0, qword [edx + 4]
movq qword [esi + 4], xmm0
mov eax, dword [edx + 0xc]
mov dword [esi + 0xc], eax
mov eax, dword [edx + 0x10]
mov dword [esi + 0x10], eax
mov dword [ebp + 8], ecx
mov eax, dword [edx + 0x14]
mov dword [ecx], eax
mov eax, dword [edx + 0x18]
mov dword [ecx + 4], eax
mov eax, dword [edx + 0x1c]
mov dword [ecx + 8], eax
mov eax, dword [edx + 0x20]
mov dword [ecx + 0xc], eax
mov eax, dword [edx + 0x24]
mov dword [ecx + 0x10], eax
mov eax, dword [edx + 0x28]
mov dword [ecx + 0x14], eax
mov eax, dword [edx + 0x2c]
mov dword [ecx + 0x18], eax
mov eax, dword [edx + 0x30]
mov dword [ecx + 0x1c], eax
mov eax, dword [edx + 0x34]
mov dword [ecx + 0x20], eax
lea eax, [edx + 0x38]
push eax
add ecx, 0x24
call fcn.004e1230
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x4e1a00
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55f836
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x5df7e4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov edx, dword [ebp + 8]
lea ecx, [esi + 0x14]
mov eax, dword [edx]
mov dword [esi], eax
movq xmm0, qword [edx + 4]
movq qword [esi + 4], xmm0
mov eax, dword [edx + 0xc]
mov dword [esi + 0xc], eax
mov eax, dword [edx + 0x10]
mov dword [esi + 0x10], eax
mov dword [ebp + 8], ecx
mov eax, dword [edx + 0x14]
mov dword [ecx], eax
mov eax, dword [edx + 0x18]
mov dword [ecx + 4], eax
mov eax, dword [edx + 0x1c]
mov dword [ecx + 8], eax
mov eax, dword [edx + 0x20]
mov dword [ecx + 0xc], eax
mov eax, dword [edx + 0x24]
mov dword [ecx + 0x10], eax
mov eax, dword [edx + 0x28]
mov dword [ecx + 0x14], eax
mov eax, dword [edx + 0x2c]
mov dword [ecx + 0x18], eax
mov eax, dword [edx + 0x30]
mov dword [ecx + 0x1c], eax
mov eax, dword [edx + 0x34]
mov dword [ecx + 0x20], eax
lea eax, [edx + 0x38]
push eax
add ecx, 0x24
call fcn.004e13a0
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x4e1ab0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55f876
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x5df7e4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov edx, dword [ebp + 8]
lea ecx, [esi + 0x14]
mov eax, dword [edx]
mov dword [esi], eax
movq xmm0, qword [edx + 4]
movq qword [esi + 4], xmm0
mov eax, dword [edx + 0xc]
mov dword [esi + 0xc], eax
mov eax, dword [edx + 0x10]
mov dword [esi + 0x10], eax
mov dword [ebp + 8], ecx
mov eax, dword [edx + 0x14]
mov dword [ecx], eax
mov eax, dword [edx + 0x18]
mov dword [ecx + 4], eax
mov eax, dword [edx + 0x1c]
mov dword [ecx + 8], eax
mov eax, dword [edx + 0x20]
mov dword [ecx + 0xc], eax
mov eax, dword [edx + 0x24]
mov dword [ecx + 0x10], eax
mov eax, dword [edx + 0x28]
mov dword [ecx + 0x14], eax
mov eax, dword [edx + 0x2c]
mov dword [ecx + 0x18], eax
mov eax, dword [edx + 0x30]
mov dword [ecx + 0x1c], eax
mov eax, dword [edx + 0x34]
mov dword [ecx + 0x20], eax
lea eax, [edx + 0x38]
push eax
add ecx, 0x24
call fcn.004e12d0
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x4e1b60
Capabilities:
Get hostname
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55f911
mov eax, dword fs:[0]
push eax
sub esp, 0x36c
mov eax, dword [0x5df7e4]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, ecx
mov dword [ebp - 0x350], ebx
mov dword [ebp - 0x354], ebx
push ebx
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [ebp - 4], 0
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x1c], 0
mov dword [ebx + 0x20], 0
mov dword [ebx + 0x24], 0
lea esi, [ebx + 0x28]
mov dword [ebp - 0x350], esi
mov dword [esi], 0
mov dword [esi + 4], 0
mov ecx, esi
call fcn.004f3e00
mov dword [esi], eax
mov byte [ebp - 4], 3
mov dword [ebp - 0x134], 0
mov dword [ebp - 0x130], 0
mov dword [ebp - 0x134], 0
mov dword [ebp - 0x130], 0xf
mov byte [ebp - 0x144], 0
push 9
push str.127.0.0.1
lea ecx, [ebp - 0x144]
call fcn.004cf730
mov byte [ebp - 4], 4
push dword [ebp - 0x350]
lea eax, [ebp - 0x144]
push eax
push 0
lea eax, [ebp - 0x368]
push eax
mov ecx, esi
call fcn.004d86d0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x144]
call fcn.004c02e0
push 0x100
lea eax, [ebp - 0x12c]
push eax
call dword [sym.imp.WS2_32.dll_gethostname]
test eax, eax
jne 0x4e1f0d
lea eax, [ebp - 0x12c]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov dword [ebp - 0x350], eax
test eax, eax
je 0x4e1f0d
xor esi, esi
mov dword [ebp - 0x358], esi
mov eax, dword [ebp - 0x350]
mov eax, dword [eax + 0xc]
mov edi, dword [eax + esi*4]
test edi, edi
je 0x4e1f0d
mov dword [ebp - 0x368], 0
push 0x5e4f30
push 0x4d7a50
push 0x5e4f2c
call fcn.0050f8be
add esp, 0xc
test eax, eax
je 0x4e1f32
mov dword [ebp - 0x364], 0x5e4f30
mov byte [ebp - 4], 5
lea eax, [ebp - 0x368]
push eax
push 0
push 0x16
lea eax, [ebp - 0x2c]
push eax
push edi
push 2
call fcn.004fee20
add esp, 0x18
mov dword [ebp - 4], 3
mov dword [ebp - 0x134], 0
mov dword [ebp - 0x130], 0
mov dword [ebp - 0x134], 0
mov dword [ebp - 0x130], 0xf
mov byte [ebp - 0x144], 0
lea eax, [ebp - 0x2c]
lea edx, [eax + 1]
nop dword [eax + eax]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4e1d40
sub eax, edx
push eax
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x144]
call fcn.004cf730
mov byte [ebp - 4], 0xd
push dword [ebp - 0x350]
lea eax, [ebp - 0x144]
push eax
push 0
lea eax, [ebp - 0x378]
push eax
lea ecx, [ebx + 0x28]
call fcn.004d86d0
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x130]
cmp edx, 0x10
jb 0x4e1db9
inc edx
mov ecx, dword [ebp - 0x144]
mov eax, ecx
cmp edx, 0x1000
jb 0x4e1daf
add edx, 0x23
mov ecx, dword [ecx - 4]
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4e1f37
push edx
push ecx
call fcn.00511c7f
add esp, 8
mov dword [ebp - 0x134], 0
mov dword [ebp - 0x130], 0xf
mov byte [ebp - 0x144], 0
inc esi
jmp 0x4e1c94
mov dword [ebp - 4], 0xffffffff
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.005121be
mov esp, ebp
pop ebp
ret
call fcn.0053626b
call fcn.0052dad9
int3
Function at 0x4e36a0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55fdbc
mov eax, dword fs:[0]
push eax
sub esp, 0x12c
mov eax, dword [0x5df7e4]
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 - 0x130], edi
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x138], edi
mov dword [edi], vtable.asio::execution_context::service.0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], 0
mov dword [ebp - 4], 0
mov dword [edi], vtable.asio::detail::execution_context_service_base_class_asio::detail::win_iocp_io_context_.0
mov dword [ebp - 4], 1
mov dword [edi], vtable.asio::detail::win_iocp_io_context.0
mov dword [edi + 0x14], 0
mov byte [ebp - 4], 2
lea eax, [ebp - 0x124]
push 0x114
push 0
push eax
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
call fcn.0052a280
add esp, 0xc
mov dword [ebp - 0x12c], 0x11c
mov dword [ebp - 0x128], 6
push 3
push 2
push 0
push 0
call dword [sym.imp.KERNEL32.dll_VerSetConditionMask]
push edx
push eax
push 2
lea eax, [ebp - 0x12c]
push eax
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
neg eax
sbb eax, eax
and eax, 0xfffffe0b
add eax, 0x1f4
mov dword [edi + 0x28], eax
mov dword [edi + 0x2c], 0
mov byte [ebp - 4], 3
mov dword [edi + 0x30], 0
mov byte [ebp - 4], 4
lea ecx, [edi + 0x38]
mov dword [edi + 0x34], 0
call fcn.004fcff0
mov esi, eax
call fcn.004fecd0
mov dword [ebp - 0x134], esi
mov dword [ebp - 0x130], eax
test esi, esi
jne 0x4e3849
mov byte [ebp - 4], 5
mov dword [edi + 0x50], esi
mov dword [edi + 0x54], esi
mov dword [edi + 0x58], esi
mov byte [ebp - 4], 6
or eax, 0xffffffff
test ebx, ebx
mov dword [edi + 0x5c], ebx
cmovns eax, ebx
push eax
push esi
push esi
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
mov dword [edi + 0x14], eax
test eax, eax
jne 0x4e3822
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call fcn.004fecd0
mov dword [ebp - 0x134], esi
mov dword [ebp - 0x130], eax
test esi, esi
jne 0x4e385a
mov dword [ebp - 4], 0xffffffff
mov eax, edi
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.005121be
mov esp, ebp
pop ebp
ret 8
push str.mutex
lea eax, [ebp - 0x134]
push eax
call fcn.004fd610
push str.iocp
lea eax, [ebp - 0x134]
push eax
call fcn.004fd610
int3
Function at 0x4f3440
Capabilities:
Parse credit card information

Disassembly:
push esi
mov esi, ecx
xor cl, cl
mov eax, dword [esi + 0x4c]
cmp eax, 0xffffffff
je 0x4f3655
push ebx
push edi
cmp eax, 0x7c
je 0x4f3653
cmp eax, 0x29
jne 0x4f3481
cmp dword [esi + 0x10], 0
jne 0x4f3653
cmp eax, eax
jne 0x4f3481
test dword [esi + 0x50], 0x10000000
je 0x4f3662
jmp 0x4f360c
cmp eax, 0x2e
jne 0x4f34db
push 5
lea ecx, [esi + 0x24]
call fcn.004f7f30
mov eax, dword [esi]
mov edx, dword [esi + 8]
cmp eax, edx
je 0x4f34cf
cmp byte [eax], 0x5c
jne 0x4f34cc
lea ecx, [eax + 1]
cmp ecx, edx
je 0x4f34cc
mov edx, dword [esi + 0x50]
test dl, 8
jne 0x4f34b9
mov bl, byte [ecx]
cmp bl, 0x28
je 0x4f34ca
cmp bl, 0x29
je 0x4f34ca
test dl, 0x10
jne 0x4f34cc
mov dl, byte [ecx]
cmp dl, 0x7b
je 0x4f34ca
cmp dl, 0x7d
jne 0x4f34cc
mov eax, ecx
inc eax
mov dword [esi], eax
mov ecx, esi
call fcn.004f8560
jmp 0x4f363e
cmp eax, 0x5c
jne 0x4f3537
mov ecx, esi
call fcn.004f7fe0
test byte [esi + 0x50], 0x80
je 0x4f352b
mov al, byte [esi + 0x48]
cmp al, 0x62
jne 0x4f350a
push 4
lea ecx, [esi + 0x24]
call fcn.004f7f30
mov ecx, esi
call fcn.004f7fe0
jmp 0x4f3645
cmp al, 0x42
jne 0x4f352b
push 4
lea ecx, [esi + 0x24]
call fcn.004f7f30
mov eax, dword [esi + 0x28]
mov ecx, esi
xor dword [eax + 8], 1
call fcn.004f7fe0
jmp 0x4f3645
mov ecx, esi
call fcn.004f3680
jmp 0x4f363e
cmp eax, 0x5b
jne 0x4f3598
mov ecx, esi
call fcn.004f7fe0
lea ecx, [esi + 0x24]
call fcn.004f28e0
mov eax, dword [esi + 0x4c]
cmp eax, 0x5e
jne 0x4f3564
mov eax, dword [esi + 0x28]
mov ecx, esi
xor dword [eax + 8], 1
call fcn.004f7fe0
mov eax, dword [esi + 0x4c]
test dword [esi + 0x50], 0x20000000
je 0x4f3582
cmp eax, 0x5d
jne 0x4f3582
push eax
lea ecx, [esi + 0x24]
call fcn.004f2830
mov ecx, esi
call fcn.004f7fe0
mov ecx, esi
call fcn.004f49a0
cmp dword [esi + 0x4c], 0x5d
jne 0x4f366b
jmp 0x4f3637
cmp eax, 0x28
jne 0x4f35c8
mov ecx, esi
call fcn.004f7fe0
mov ecx, esi
call fcn.004f8940
cmp dword [esi + 0x4c], 0x29
mov bl, al
jne 0x4f3662
mov ecx, esi
call fcn.004f7fe0
test bl, bl
je 0x4f3645
jmp 0x4f363e
cmp eax, 0x5e
jne 0x4f35e0
push 2
lea ecx, [esi + 0x24]
call fcn.004f7f30
mov ecx, esi
call fcn.004f7fe0
jmp 0x4f3645
cmp eax, 0x24
jne 0x4f35f8
push 3
lea ecx, [esi + 0x24]
call fcn.004f7f30
mov ecx, esi
call fcn.004f7fe0
jmp 0x4f3645
cmp eax, 0x2a
je 0x4f3659
cmp eax, 0x2b
je 0x4f3659
cmp eax, 0x3f
je 0x4f3659
cmp eax, 0x7b
je 0x4f3659
cmp eax, 0x7d
jne 0x4f361c
test dword [esi + 0x50], 0x10000000
je 0x4f3674
jmp 0x4f362a
cmp eax, 0x5d
jne 0x4f362a
test dword [esi + 0x50], 0x10000000
je 0x4f366b
movzx eax, byte [esi + 0x48]
lea ecx, [esi + 0x24]
push eax
call fcn.004f26e0
mov ecx, esi
call fcn.004f7fe0
mov ecx, esi
call fcn.004f8040
mov eax, dword [esi + 0x4c]
mov cl, 1
cmp eax, 0xffffffff
jne 0x4f3453
pop edi
pop ebx
mov al, cl
pop esi
ret
push 0xa
mov ecx, esi
call fcn.004f6f80
push 5
mov ecx, esi
call fcn.004f6f80
push 4
mov ecx, esi
call fcn.004f6f80
push 6
mov ecx, esi
call fcn.004f6f80
int3
Function at 0x4f74b0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push esi
push edi
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [eax + 0x14], 0x10
mov esi, eax
jb 0x4f74c8
mov esi, dword [eax]
mov ecx, eax
jb 0x4f74ce
mov ecx, dword [eax]
mov eax, dword [eax + 0x10]
add eax, ecx
mov dword [ebp + 8], eax
cmp esi, eax
je 0x4f7547
push ebx
nop dword [eax + eax]
movsx eax, byte [esi]
push eax
call fcn.005398a0
mov ebx, eax
inc esi
movzx ecx, bl
add esp, 4
xor ecx, 0x811c9dc5
imul edx, ecx, 0x1000193
mov ecx, ebx
sar ecx, 8
movzx ecx, cl
xor edx, ecx
mov ecx, ebx
sar ecx, 0x10
imul edx, edx, 0x1000193
movzx eax, cl
sar ebx, 0x18
xor edx, eax
movzx eax, bl
imul ecx, edx, 0x1000193
xor ecx, eax
mov eax, edi
imul edx, ecx, 0x1000193
mov ecx, edi
shr eax, 2
shl ecx, 6
add eax, 0x9e3779b9
add ecx, edx
add eax, ecx
xor edi, eax
cmp esi, dword [ebp + 8]
jne 0x4f74e0
pop ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x18]
and eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x4f7560
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
movzx eax, byte [esi]
xor eax, 0x811c9dc5
imul edx, eax, 0x1000193
movzx eax, byte [esi + 1]
xor edx, eax
movzx eax, byte [esi + 2]
imul edx, edx, 0x1000193
xor edx, eax
movzx eax, byte [esi + 3]
imul ecx, edx, 0x1000193
xor ecx, eax
mov eax, dword [edi + 0x18]
imul ecx, ecx, 0x1000193
pop edi
pop esi
and eax, ecx
pop ebp
ret 4

Function at 0x4f9650
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push dword [0x5e4f78]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4f9668
mov ecx, dword [eax + 4]
jmp 0x4f966a
xor ecx, ecx
push ebx
push esi
mov esi, dword [ebp + 8]
lea ebx, [esi + 3]
shr ebx, 2
test ecx, ecx
je 0x4f969e
mov eax, dword [ecx]
test eax, eax
je 0x4f969e
mov dword [ecx], 0
mov dl, byte [eax]
movzx ecx, dl
cmp ecx, ebx
jb 0x4f9695
mov byte [eax + esi], dl
pop esi
pop ebx
pop ebp
ret
push eax
call fcn.0051261a
add esp, 4
lea eax, [ebx*4 + 1]
push eax
call fcn.00511c4f
add esp, 4
movzx ecx, bl
xor edx, edx
cmp ebx, 0xff
cmova ecx, edx
mov byte [eax + esi], cl
pop esi
pop ebx
pop ebp
ret

Function at 0x4f96d0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push dword [0x5e4f78]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4f96e8
mov edx, dword [eax + 4]
jmp 0x4f96ea
xor edx, edx
mov eax, dword [ebp + 0xc]
cmp eax, 0x3fc
ja 0x4f9709
test edx, edx
je 0x4f9709
cmp dword [edx], 0
jne 0x4f9709
mov ecx, dword [ebp + 8]
mov al, byte [ecx + eax]
mov byte [ecx], al
mov dword [edx], ecx
pop ebp
ret
push dword [ebp + 8]
call fcn.0051261a
add esp, 4
pop ebp
ret
Function at 0x4fa1b0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
xor ebx, ebx
cmp dword [ebp + 8], 0xffffffff
push edi
mov edi, dword [ebp + 0x14]
je 0x4fa2c7
cmp byte [ebp + 0x10], bl
je 0x4fa222
mov ebx, dword [ebp + 0xc]
test byte [ebx], 8
je 0x4fa222
xor eax, eax
lea ecx, [ebp - 0xc]
mov dword [ebp - 4], eax
call fcn.004e2e60
or byte [ebx], 8
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov ebx, dword [ebp + 8]
lea eax, [ebp - 4]
push 4
push eax
push 0x80
push 0xffff
push ebx
call dword [sym.imp.WS2_32.dll_setsockopt]
mov esi, eax
call fcn.004fecd0
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test esi, esi
jne 0x4fa225
lea ecx, [ebp - 0xc]
call fcn.004e2e60
jmp 0x4fa225
mov ebx, dword [ebp + 8]
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
mov ebx, eax
call fcn.004fecd0
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [edi], eax
mov dword [edi + 4], esi
test ebx, ebx
je 0x4fa2c7
call fcn.004fecd0
mov ecx, eax
mov eax, dword [edi + 4]
mov eax, dword [eax + 4]
cmp eax, dword [ecx + 4]
jne 0x4fa266
cmp dword [edi], 0x2733
je 0x4fa280
call fcn.004fecd0
mov ecx, eax
mov eax, dword [edi + 4]
mov eax, dword [eax + 4]
cmp eax, dword [ecx + 4]
jne 0x4fa2c3
cmp dword [edi], 0x4d5
jne 0x4fa2c3
mov ebx, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push 0x8004667e
push ebx
mov dword [ebp - 4], 0
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov eax, dword [ebp + 0xc]
push 0
and byte [eax], 0xfc
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
mov ebx, eax
call fcn.004fecd0
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [edi], eax
mov dword [edi + 4], esi
test ebx, ebx
jne 0x4fa2ef
push 0x5e4f30
push 0x4d7a50
push 0x5e4f2c
call fcn.0050f8be
add esp, 0xc
test eax, eax
je 0x4fa2f8
mov dword [edi], 0
mov dword [edi + 4], 0x5e4f30
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.0053626b
int3