joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140120910
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbx
push rdi
push r14
sub rsp, 0xd0
mov rax, qword [0x140563980]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rbx, qword [rcx + 0xa00]
lea rax, [rsp + 0x30]
mov rdi, qword [rcx]
mov r14, rcx
mov dword [rsp + 0x30], 0x80
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov r8d, dword [rbx + 0x15c]
mov rdx, qword [rbx + 0x168]
add r8d, 4
mov rcx, qword [rbx + 0x18]
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [rbx + 0x150], 0
mov dword [rbx + 0x154], eax
jne 0x1401209a5
movsxd r8, dword [rsp + 0x30]
lea rcx, [rbx + 0xd0]
lea rdx, [rsp + 0x40]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [rsp + 0x30]
mov dword [rbx + 0x150], eax
mov r8d, dword [rbx + 0x154]
mov qword [rsp + 0xf8], rbp
mov qword [rsp + 0x100], rsi
cmp r8d, 4
jge 0x140120a06
lea rdx, str.Received_too_short_packet
mov rcx, rdi
call fcn.1400fb040
mov dword [rbx + 0xc], 7
xor eax, eax
mov rsi, qword [rsp + 0x100]
mov rbp, qword [rsp + 0xf8]
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.140134380
add rsp, 0xd0
pop r14
pop rdi
pop rbx
ret
mov rdx, qword [rbx + 0x168]
movzx eax, byte [rdx]
movzx ecx, byte [rdx + 1]
shl eax, 8
or ecx, eax
mov dword [rbx + 0xc], ecx
sub ecx, 3
je 0x140120ac1
sub ecx, 1
je 0x140120b34
sub ecx, 1
je 0x140120a70
cmp ecx, 1
je 0x140120a53
lea r8, str.Internal_error:_Unexpected_packet
mov rcx, rdi
lea rdx, [0x14013c488]
call fcn.1400fb040
jmp 0x140120b34
add r8d, 0xfffffffe
add rdx, 2
mov rcx, rbx
call fcn.140120640
test eax, eax
je 0x140120b34
jmp 0x1401209da
movzx ecx, byte [rdx + 2]
lea eax, [r8 - 4]
movsxd rbp, eax
lea rsi, [rdx + 4]
movzx eax, byte [rdx + 3]
mov r8, rbp
shl ecx, 8
xor edx, edx
or ecx, eax
mov dword [rbx + 8], ecx
mov rcx, rsi
call sub.VCRUNTIME140.dll_memchr
test rax, rax
je 0x140120b34
sub rax, rsi
cmp rax, rbp
jae 0x140120b34
mov r8, rsi
lea rdx, str.TFTP_error:__s_n
mov rcx, rdi
call fcn.1400fb1c0
jmp 0x140120b34
cmp r8d, 4
jle 0x140120b34
movzx eax, byte [rdx + 3]
movzx ecx, byte [rdx + 2]
shl ecx, 8
or ecx, eax
movzx eax, word [rbx + 0x48]
inc eax
movzx eax, ax
cmp eax, ecx
jne 0x140120b34
lea eax, [r8 - 4]
mov rcx, r14
lea r8, [rdx + 4]
movsxd r9, eax
mov edx, 1
call fcn.1400faf60
mov esi, eax
test eax, eax
je 0x140120b13
mov edx, 5
mov rcx, rbx
call fcn.140121600
mov eax, esi
jmp 0x1401209da
mov eax, dword [rbx + 0x154]
mov rcx, rdi
sub eax, 4
cdqe
add qword [rdi + 0xf8], rax
mov rdx, qword [rdi + 0xf8]
call fcn.140109a30
mov rcx, r14
call fcn.140109d10
test eax, eax
je 0x1401209d8
mov edx, 5
mov rcx, rbx
call fcn.140121600
mov eax, Ordinal_45
jmp 0x1401209da
Function at 0x1401338d0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r14
sub rsp, 0x20
mov eax, dword [rcx + 0x18]
mov rbx, rcx
mov ebp, r8d
mov r14, rdx
lea ecx, [rax + rax]
mov eax, dword [rbx + 0x20]
add rax, 0x18
add rcx, rax
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
test rax, rax
jne 0x140133912
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
lea rcx, [rax + 0x18]
mov qword [rax], rbx
mov qword [rax + 8], rcx
mov eax, dword [rbx + 0x18]
add rax, rcx
mov qword [rsp + 0x48], rsi
mov qword [rdi + 0x10], rax
cmp ebp, dword [rbx + 0x1c]
jbe 0x140133959
call qword [rbx]
mov rcx, qword [rdi + 8]
mov r8d, ebp
mov rdx, r14
call qword [rbx + reloc.WS2_32.dll_htonl]
mov r14d, dword [rbx + 0x18]
add r14, qword [rdi + 0x10]
mov rdx, qword [rdi + 8]
mov rcx, r14
call qword [rbx + reloc.WS2_32.dll_recv]
mov rcx, qword [rdi + 8]
mov ebp, dword [rbx + 0x20]
call qword [rbx]
mov rcx, qword [rdi + 0x10]
call qword [rbx]
xor esi, esi
test rbp, rbp
je 0x1401339b2
mov rsi, rbp
nop dword [rax + rax]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x36
mov r8d, 1
mov byte [rsp + 0x40], al
mov rcx, qword [rdi + 8]
call qword [rbx + reloc.WS2_32.dll_htonl]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x5c
lea r14, [r14 + 1]
mov byte [rsp + 0x40], al
mov r8d, 1
mov rcx, qword [rdi + 0x10]
call qword [rbx + reloc.WS2_32.dll_htonl]
sub rbp, 1
jne 0x140133970
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x1401339f3
nop word [rax + rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x14017ec42]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x14017ec43]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x1401339c0
mov rsi, qword [rsp + 0x48]
mov rax, rdi
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret

Function at 0x140133a64
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, [0x14017ed50]
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x140133a9e
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x140133aa3
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x140133aec
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, reloc.WS2_32.dll_accept
cmp byte [rcx + rax], 0
je 0x140133aec
dec r8
sub rdx, 1
jne 0x140133ad2
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x14013523c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140135286
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140135286
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140135286
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140135286
cmp dword [rcx + 0x84], 0xe
jbe 0x140135286
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140135288
xor al, al
add rsp, 0x28
ret
Function at 0x180002642
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, 0x20158
call fcn.180002eb2
sub rsp, rax
lea rax, [0x1800260ca]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
mov ecx, dword [rax + 0x44]
call fcn.180002e02
mov qword [rsp + 0x80], rax
mov eax, 1
imul rax, rax, 0
lea rax, [rsp + rax + 0x150]
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x40]
mov r9d, dword [rax + 0x10]
mov rax, qword [rsp + 0x40]
mov r8d, dword [rax + 0x5c]
mov rdx, qword [rsp + 0x80]
mov rax, qword [rsp + 0x40]
mov ecx, dword [rax + 0x50]
call fcn.180002ce2
mov qword [rsp + 0xe8], rax
and al, 0xe8
add byte [rax], al
add byte [rcx - 0x48], al
add al, 1
add byte [rax], al

Function at 0x1800026c0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
xor ecx, ecx
call qword [rsp + 0xe8]
mov dword [rsp + 0x98], eax
mov rax, qword [rsp + 0x40]
mov rax, qword [rax + 0x28]
mov qword [rsp + 0xc0], rax
mov eax, dword [rsp + 0x98]
mov dword [rsp + 0x50], eax

Function at 0x180002740
Capabilities:
Resolve function by parsing pe exports

Disassembly:
je 0x180002776
mov eax, dword [rsp + 0x60]
mov rcx, qword [rsp + 0xc0]
movsx ax, byte [rcx + rax]
mov ecx, dword [rsp + 0x50]
mov rdx, qword [rsp + 0x78]
mov word [rdx + rcx*2], ax
mov rax, qword [rsp + 0x40]
mov r9d, dword [rax + 0x10]
mov rax, qword [rsp + 0x40]
mov r8d, dword [rax + 0x1c]
mov rdx, qword [rsp + 0x80]
mov rax, qword [rsp + 0x40]
mov ecx, dword [rax + 0x50]
call fcn.180002ce2
mov qword [rsp + 0xf0], rax
mov qword [rsp + 0x30], 0
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 0x34]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 4]
mov dword [rsp + 0x20], eax
xor r9d, r9d
mov r8d, 1
mov rax, qword [rsp + 0x40]
mov edx, dword [rax + 8]
mov rcx, qword [rsp + 0x78]
call qword [rsp + 0xf0]
mov qword [rsp + 0xc8], rax
mov rax, qword [rsp + 0x40]

Function at 0x180002760
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, dword [rsp + 0x60]
mov rcx, qword [rsp + 0xc0]
movsx eax, byte [rcx + rax]
test eax, eax
mov eax, dword [rsp + 0x50]
inc eax
mov dword [rsp + 0x50], eax
mov eax, dword [rsp + 0x60]
inc eax
mov dword [rsp + 0x60], eax
jmp 0x18000272e
Function at 0x180002ce2
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov dword [rsp + 0x20], r9d
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x68
mov rax, qword [rsp + 0x78]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x78]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x30], rax
mov eax, dword [rsp + 0x70]
mov rcx, qword [rsp + 0x30]
mov eax, dword [rcx + rax*8 + 0x88]
mov rcx, qword [rsp + 0x78]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0x20]
mov rcx, qword [rsp + 0x78]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0x1c]
mov rcx, qword [rsp + 0x78]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0x24]
mov rcx, qword [rsp + 0x78]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x20], 0
jmp 0x180002d8e
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0x18]
cmp dword [rsp + 0x20], eax
jae 0x180002df6
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x38]
mov eax, dword [rcx + rax*4]
mov rcx, qword [rsp + 0x78]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
mov rdx, qword [rsp + 0x40]
mov ecx, dword [rsp + 0x88]
call fcn.180002c62
cmp eax, dword [rsp + 0x80]
jne 0x180002df4
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x48]
movzx eax, word [rcx + rax*2]
mov rcx, qword [rsp + 0x50]
mov eax, dword [rcx + rax*4]
mov rcx, qword [rsp + 0x78]
add rcx, rax
mov rax, rcx
jmp 0x180002df8
jmp 0x180002d84
xor eax, eax
add rsp, 0x68
ret

Function at 0x180002e02
Capabilities:
Access peb ldr_data

Disassembly:
mov dword [rsp + 8], ecx
sub rsp, 0x58
mov rax, qword gs:[0x60]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov rax, qword [rax + 0x18]
sbb byte [rax - 0x77], cl
and al, 0x40
Function at 0x1800039a0
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x48
mov eax, dword [0x180032054]
test eax, eax
jne 0x1800039b3
add rsp, 0x48
ret
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x20], r14
xor r14d, r14d
mov r12d, r14d
test eax, eax
jle 0x180003b56
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x60], rbp
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x28], r13
mov r13d, r14d
nop word [rax + rax]
mov rax, qword [0x180032058]
mov edi, 4
mov rbp, qword [r13 + rax]
mov ecx, dword [rbp + 0x178]
lea rdx, [rsp + 0x50]
mov r8d, edi
call qword [sym.imp.MSVCR100.dll__read]
mov ebx, eax
test eax, eax
jns 0x180003a27
lea rcx, str.Bad_bad_bad_file_error_
call sym.VBoxOGLhostcrutil.dll_crError
test ebx, ebx
jne 0x180003a37
lea rcx, str.END_OF_FILE_
call sym.VBoxOGLhostcrutil.dll_crError
sub edi, ebx
jne 0x180003a01
mov ecx, dword [rsp + 0x50]
test ecx, ecx
jne 0x180003a67
lea r8, str.D:_tinderboxwin_4.2_srcVBoxGuestHostOpenGLutil_filenet.c
lea rdx, str.len___0
lea rcx, str.Assertion_failed:__s__file__s__line__d
mov r9d, 0xe7
call sym.VBoxOGLhostcrutil.dll_crWarning
mov ecx, dword [rsp + 0x50]
cmp ecx, dword [rbp + 0x6c]
ja 0x180003a7a
mov rcx, rbp
call fcn.1800036d0
lea r11, [rax - 0x14]
jmp 0x180003a96
add ecx, 0x14
call sym.VBoxOGLhostcrutil.dll_crAlloc
mov r11, rax
mov dword [rax], 0x89134539
mov dword [rax + 4], 1
mov dword [rax + 0x10], r14d
mov eax, dword [rsp + 0x50]
lea rsi, [r11 + 0x14]
mov dword [r11 + 8], eax
mov edi, dword [rsp + 0x50]
test edi, edi
je 0x180003aec
nop word [rax + rax]
mov ecx, dword [rbp + 0x178]
mov r8d, edi
mov rdx, rsi
call qword [sym.imp.MSVCR100.dll__read]
mov ebx, eax
test eax, eax
jns 0x180003ad4
lea rcx, str.Bad_bad_bad_file_error_
call sym.VBoxOGLhostcrutil.dll_crError
test ebx, ebx
jne 0x180003ae4
lea rcx, str.END_OF_FILE_
call sym.VBoxOGLhostcrutil.dll_crError
sub edi, ebx
jne 0x180003ab0
mov edi, dword [rsp + 0x50]
sub dword [rbp + 0x120], edi
mov r9d, dword [rsp + 0x50]
mov rcx, qword [0x180032090]
mov r8, rsi
mov rdx, rbp
call sym.VBoxOGLhostcrutil.dll_crNetDispatchMessage
mov r11d, dword [rsi]
cmp r11d, 0x77474c01
je 0x180003b29
cmp r11d, 0x77474c08
je 0x180003b29
mov rdx, rsi
mov rcx, rbp
call fcn.1800038f0
inc r12d
add r13, 8
cmp r12d, dword [0x180032054]
jl 0x1800039f0
mov r13, qword [rsp + 0x28]
mov rdi, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x58]
mov r14, qword [rsp + 0x20]
mov r12, qword [rsp + 0x30]
mov eax, 1
add rsp, 0x48
ret
Function at 0x1800087a0
Capabilities:
Initialize winsock library

Disassembly:
mov r11, rsp
push rdi
sub rsp, 0x1d0
mov rax, qword [0x180026138]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
cmp dword [0x1800320a0], 0
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rsi
mov rsi, rcx
mov rdi, rdx
jne 0x180008849
lea rdx, [rsp + 0x20]
mov ecx, 2
call sub.WS2_32.dll_WSAStartup
test eax, eax
je 0x1800087f3
lea rcx, str.Couldnt_initialize_sockets_on_WINDOWS
call sym.VBoxOGLhostcrutil.dll_crError
call fcn.180002860
xor ebx, ebx
lea rcx, [0x1800320e0]
mov qword [0x1800320c4], rbx
mov dword [0x1800320b8], ebx
mov dword [0x1800320cc], ebx
mov qword [0x1800320d0], rbx
mov dword [0x1800320c0], ebx
mov qword [0x1800320d8], rbx
call sym.VBoxOGLhostcrutil.dll_crInitMutex
mov dword [0x1800320a0], 1
mov qword [0x1800320a8], rbx
mov eax, ebx
mov qword [0x1800320b0], rbx
jmp 0x180008857
mov rax, qword [0x1800320b0]
mov rbx, qword [0x1800320a8]
test rsi, rsi
je 0x180008895
test rbx, rbx
je 0x18000886f
cmp qword [rbx], rsi
je 0x180008895
mov rbx, qword [rbx + 8]
test rbx, rbx
jne 0x180008861
mov ecx, reloc.WS2_32.dll_recv
call sym.VBoxOGLhostcrutil.dll_crAlloc
mov qword [rax], rsi
mov rcx, qword [0x1800320a8]
mov qword [rax + 8], rcx
mov qword [0x1800320a8], rax
mov rax, qword [0x1800320b0]
mov rsi, qword [rsp + 0x1e8]
mov rbx, qword [rsp + 0x1e0]
test rdi, rdi
je 0x1800088dd
test rax, rax
je 0x1800088be
nop
cmp qword [rax], rdi
je 0x1800088dd
mov rax, qword [rax + 8]
test rax, rax
jne 0x1800088b0
mov ecx, reloc.WS2_32.dll_recv
call sym.VBoxOGLhostcrutil.dll_crAlloc
mov qword [rax], rdi
mov rcx, qword [0x1800320b0]
mov qword [rax + 8], rcx
mov qword [0x1800320b0], rax
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.18001c120
add rsp, 0x1d0
pop rdi
ret

Function at 0x180012450
Capabilities:
Write file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
sub rsp, 0x40
mov rax, qword [0x180026138]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov ebp, edx
lea rdx, [0x18001d758]
mov r12, r9
mov esi, r8d
mov rbx, rcx
call qword [sym.imp.MSVCR100.dll_fopen]
mov rdi, rax
test rax, rax
jne 0x180012499
lea rcx, str.cant_create__s_
mov rdx, rbx
call sym.VBoxOGLhostcrutil.dll_crError
xor eax, eax
lea rcx, [rsp + 0x20]
mov r9, rdi
lea edx, [rax + 0x12]
lea r8d, [rax + 1]
mov word [rsp + 0x20], 0
mov byte [rsp + 0x22], 2
mov dword [rsp + 0x23], eax
mov byte [rsp + 0x27], al
mov dword [rsp + 0x28], eax
mov word [rsp + 0x2c], bp
mov word [rsp + 0x2e], si
mov word [rsp + 0x30], 0x820
call qword [sym.imp.MSVCR100.dll_fwrite]
mov r9, rdi
imul esi, ebp
shl esi, 2
mov r8d, 1
mov rcx, r12
movsxd rdx, esi
call qword [sym.imp.MSVCR100.dll_fwrite]
mov rcx, rdi
call qword [sym.imp.MSVCR100.dll_fclose]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.18001c120
add rsp, 0x40
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x180012620
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x4e0
mov rax, qword [0x180026138]
xor rax, rsp
mov qword [rsp + 0x4d0], rax
mov rsi, rdx
xor edx, edx
lea rcx, [rsp + 0x70]
lea r8d, [rdx + 0x68]
call sub.MSVCR100.dll_memset
mov rdx, qword [rsi]
xor eax, eax
lea rcx, [rsp + 0xe0]
mov r8d, 0x3e8
mov dword [rsp + 0x70], WSAGetLastError
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
call sym.VBoxOGLhostcrutil.dll_crStrncpy
cmp qword [rsi + 8], 0
lea rdi, [rsi + 8]
mov ebx, 1
je 0x1800126d2
nop word [rax + rax]
lea rdx, [0x18001e82c]
lea rcx, [rsp + 0xe0]
call sym.VBoxOGLhostcrutil.dll_crStrcat
mov rdx, qword [rdi]
lea rcx, [rsp + 0xe0]
call sym.VBoxOGLhostcrutil.dll_crStrcat
inc rbx
cmp qword [rsi + rbx*8], 0
lea rdi, [rsi + rbx*8]
jne 0x1800126a0
lea rax, [rsp + 0x50]
lea rdx, [rsp + 0xe0]
xor r9d, r9d
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x70]
xor r8d, r8d
mov qword [rsp + 0x40], rax
xor eax, eax
xor ecx, ecx
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x18001272c
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.crSpawn_failed___d
mov edx, eax
call sym.VBoxOGLhostcrutil.dll_crWarning
xor eax, eax
jmp 0x180012731
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x4d0]
xor rcx, rsp
call fcn.18001c120
lea r11, [rsp + 0x4e0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

Function at 0x180012830
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x20
mov eax, edx
mov rbx, rcx
mov rdx, rcx
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
jne 0x18001284c
mov byte [rbx], al
add rsp, 0x20
pop rbx
ret
Function at 0x180012920
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 8], rbx
mov edx, dword [0x180026018]
lea rbx, [0x180032120]
cmp edx, 0x270
jl 0x180012a2f
cmp edx, 0x271
jne 0x180012975
mov dword [0x180032120], 0x1105
lea rcx, [0x180032124]
mov edx, 0x26f
nop dword [rax]
mov eax, dword [rcx - 4]
add rcx, 4
imul eax, eax, 0x10dcd
dec rdx
mov dword [rcx - 4], eax
jne 0x180012960
mov rdx, rbx
lea r10, [0x180026020]
lea r9, [0x1800324ac]
nop word [rax + rax]
mov ecx, dword [rdx + 4]
add rdx, 4
xor ecx, dword [rdx - 4]
btr ecx, 0x1f
xor ecx, dword [rdx - 4]
mov eax, ecx
shr ecx, 1
and eax, 1
mov eax, dword [r10 + rax*4]
xor eax, ecx
xor eax, dword [rdx + 0x630]
mov dword [rdx - 4], eax
cmp rdx, r9
jl 0x180012990
lea r11, [0x180032adc]
nop word [rax + rax]
mov edx, dword [r9]
lea r8, [r9 + 4]
xor edx, dword [r8]
btr edx, 0x1f
xor edx, dword [r9]
mov eax, edx
shr edx, 1
and eax, 1
mov ecx, dword [r10 + rax*4]
xor ecx, dword [r8 - 0x390]
xor ecx, edx
mov dword [r9], ecx
mov r9, r8
cmp r8, r11
jl 0x1800129d0
mov eax, dword [0x180032adc]
mov ecx, dword [0x180032120]
xor ecx, eax
btr ecx, 0x1f
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
mov eax, dword [r10 + rax*4]
xor eax, ecx
xor eax, dword [0x180032750]
xor edx, edx
mov dword [0x180032adc], eax
movsxd rax, edx
pxor xmm0, xmm0
inc edx
mov ecx, dword [rbx + rax*4]
mov rbx, qword [rsp + 8]
mov dword [0x180026018], edx
mov eax, ecx
shr eax, 0xb
xor ecx, eax
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov eax, ecx
and eax, 0xffffdf8c
shl eax, 0xf
xor ecx, eax
mov eax, ecx
shr eax, 0x12
xor eax, ecx
cvtsi2sd xmm0, rax
divsd xmm0, qword [0x18001e610]
ret

Function at 0x180013740
Capabilities:
Allocate thread local storage

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [rbx], eax
cmp eax, 0xffffffff
jne 0x180013762
lea rcx, str.crInitTSD_failed_
call sym.VBoxOGLhostcrutil.dll_crError
mov dword [rbx + 4], 0xff8adc98
add rsp, 0x20
pop rbx
ret

Function at 0x180013770
Capabilities:
Allocate thread local storage

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [rbx], eax
cmp eax, 0xffffffff
jne 0x180013792
lea rcx, str.crInitTSD_failed_
call sym.VBoxOGLhostcrutil.dll_crError
mov dword [rbx + 4], 0xff8adc98
add rsp, 0x20
pop rbx
ret

Function at 0x1800137d0
Capabilities:
Allocate thread local storage
Set thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
cmp dword [rcx + 4], 0xff8adc98
mov rdi, rdx
mov rbx, rcx
je 0x180013809
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [rbx], eax
cmp eax, 0xffffffff
jne 0x180013802
lea rcx, str.crInitTSD_failed_
call sym.VBoxOGLhostcrutil.dll_crError
mov dword [rbx + 4], 0xff8adc98
mov ecx, dword [rbx]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x180013824
lea rcx, str.crSetTSD_failed_
call sym.VBoxOGLhostcrutil.dll_crError
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x180013830
Capabilities:
Allocate thread local storage
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x40
cmp dword [rcx + 4], 0xff8adc98
mov rbx, rcx
je 0x180013862
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [rbx], eax
cmp eax, 0xffffffff
jne 0x18001385b
lea rcx, str.crInitTSD_failed_
call sym.VBoxOGLhostcrutil.dll_crError
mov dword [rbx + 4], 0xff8adc98
mov ecx, dword [rbx]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
jne 0x1800138d4
mov qword [rsp + 0x58], rdi
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test eax, eax
je 0x1800138cc
xor eax, eax
mov r9d, 0x400
mov r8d, edi
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], eax
lea rax, [rsp + 0x50]
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov r8, qword [rsp + 0x50]
lea rcx, str.crGetTSD_failed_with__d:__s
mov edx, edi
call sym.VBoxOGLhostcrutil.dll_crError
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rdi, qword [rsp + 0x58]
mov rax, rbx
add rsp, 0x40
pop rbx
ret

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

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov edi, r8d
mov rsi, rdx
mov rbp, rcx
test rcx, rcx
jne 0x180013bf0
lea eax, [rcx + 1]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov qword [rsp + 0x30], rbx
test r8d, r8d
je 0x180013c4c
nop word [rax + rax]
xor r9d, r9d
mov r8d, edi
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_recv]
movsxd r11, eax
test eax, eax
jns 0x180013c40
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
cmp eax, 0xe
je 0x180013c6f
cmp eax, 0x16
je 0x180013c66
cmp eax, 0x2714
jne 0x180013c7b
lea rcx, str.__tcpip_read_exact_TCPIP_:_caught_an_EINTR__looping_for_more_data
call sym.VBoxOGLhostcrutil.dll_crWarning
jmp 0x180013c48
je 0x180013c96
add rsi, r11
sub edi, r11d
test edi, edi
jne 0x180013c00
mov eax, 1
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
lea rcx, str.EINVAL
jmp 0x180013c76
lea rcx, str.EFAULT
call sym.VBoxOGLhostcrutil.dll_crWarning
mov ecx, ebx
call fcn.180013a30
lea rcx, str.Bad_bad_bad_socket_error:__s
mov rdx, rax
call sym.VBoxOGLhostcrutil.dll_crWarning
or eax, 0xffffffff
jmp 0x180013c51
xor eax, eax
jmp 0x180013c51