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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov eax, dword [rcx + 0x20c]
mov rbx, rcx
test eax, eax
jne 0x1400307a9
xor esi, esi
nop word [rax + rax]
mov r8d, dword [rbx + 0x44]
mov rdx, qword [rbx + 0x80]
mov rcx, qword [rbx + 0x28]
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_recv]
mov edi, eax
test eax, eax
jle 0x14003075f
mov rcx, qword [rbx + 0x80]
mov edx, eax
mov dword [rbx + 0x210], esi
call fcn.14002b820
test eax, eax
jne 0x1400307be
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, qword [rbx]
mov rdx, qword [rbx + 0x80]
mov r8d, edi
mov rcx, rbx
call qword [rax + 0x128]
cmp eax, 2
jne 0x14003079b
mov rdx, qword [rbx + 0x38]
lea rcx, str._C_CNNID:__Iu__OnReceive___event_return_HR_ERROR__connection_will_be_closed___n
call fcn.14002e3c0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 0x4c7
test eax, eax
cmove eax, ecx
mov dword [rbx + 0x18], 1
mov dword [rbx + 0x1c], 4
mov dword [rbx + 0x20], eax
mov dword [rbx + 0x24], 1
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
cmp eax, 0xffffffff
jne 0x140030781
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x1400307a9
cmp eax, 0x2744
je 0x14003079b
cmp eax, 0x2746
jne 0x140030735
jmp 0x14003079b
test eax, eax
jne 0x14003079b
mov rdx, qword [rbx + 0x38]
lea rcx, str._C_CNNID:__Iu__recv_0_bytes__detect_package__n
mov dword [rbx + 0x210], esi
call fcn.14002e3c0
mov eax, dword [rbx + 0x20c]
test eax, eax
je 0x1400306b0
mov eax, 1
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov dword [rbx + 0x24], esi
mov rsi, qword [rsp + 0x38]
mov dword [rbx + 0x18], 1
mov qword [rbx + 0x1c], 5
mov rbx, qword [rsp + 0x30]
xor eax, eax
add rsp, 0x20
pop rdi
ret
Function at 0x140030e60
Capabilities:
Send data
Send data on socket

Disassembly:
push r12
sub rsp, 0x40
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x68], rdi
mov rsi, rcx
call fcn.1400307f0
mov rdi, rax
lea rbx, [rsi + 0xa8]
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x30], rax
test rax, rax
je 0x140031005
nop dword [rax + rax]
mov r8d, dword [rdi + 0x30]
sub r8d, dword [rdi + 0x28]
xor r9d, r9d
mov rdx, qword [rdi + 0x28]
mov rcx, qword [rsi + 0x28]
call qword [sym.imp.WS2_32.dll_send]
mov ebp, eax
test eax, eax
jle 0x140030f27
lea rcx, [rsi + 0x1a8]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
sub dword [rsi + 0x208], ebp
lea rcx, [rsi + 0x1a8]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov r9, qword [rsi]
mov r8d, ebp
mov rdx, qword [rdi + 0x28]
mov rcx, rsi
call qword [r9 + 0x118]
cmp eax, 2
jne 0x140030f20
mov rdx, qword [rsi + 0x38]
lea rcx, str._C_CNNID:__Iu__OnSend___event_should_not_return_HR_ERROR____n
call fcn.14002e3c0
mov rbx, qword [rsp + 0x28]
jmp 0x140030f2c
cmp eax, 0xffffffff
je 0x140030f6e
lea rcx, [rbx + 0x30]
mov rdx, rdi
call fcn.14002aa70
test eax, eax
jne 0x140030f44
mov rcx, rdi
call fcn.14002e3a0
mov rcx, rsi
call fcn.1400307f0
mov rdi, rax
lea rbx, [rsi + 0xa8]
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x30], rax
test rax, rax
jne 0x140030eb0
jmp 0x140031005
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x140030fd1
lea rcx, [rsi + 0x1a8]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [rsi + 0x1d8]
test rax, rax
je 0x140030fa5
mov qword [rax + 0x10], rdi
mov rax, qword [rsi + 0x1d8]
mov qword [rdi + 8], rax
jmp 0x140030fb4
mov qword [rdi + 0x10], rax
mov qword [rdi + 8], rax
mov qword [rsi + 0x1e0], rdi
mov qword [rsi + 0x1d8], rdi
inc dword [rsi + 0x1d0]
lea rcx, [rsi + 0x1a8]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop
jmp 0x140031022
mov dword [rsi + 0x18], 1
mov dword [rsi + 0x1c], 3
mov dword [rsi + 0x20], eax
mov dword [rsi + 0x24], 1
lea rcx, [rbx + 0x30]
mov rdx, rdi
call fcn.14002aa70
test eax, eax
jne 0x140031001
mov rcx, rdi
call fcn.14002e3a0
xor eax, eax
jmp 0x140031027
test rdi, rdi
je 0x140031022
lea rcx, [rbx + 0x30]
mov rdx, rdi
call fcn.14002aa70
test eax, eax
jne 0x140031022
mov rcx, rdi
call fcn.14002e3a0
mov eax, 1
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r12
ret

Function at 0x1400319f0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
lea rax, [rcx + 0x60]
mov rbx, rcx
mov r9, rcx
mov qword [rsp + 0x28], rax
lea r8, [0x1400315a0]
xor edi, edi
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], edi
call fcn.1400349d8
test rax, rax
mov qword [rbx + 0x58], rax
mov rbx, qword [rsp + 0x40]
setne dil
mov eax, edi
add rsp, 0x30
pop rdi
ret

Function at 0x140035f00
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
xor edx, edx
jmp fcn.140035d70
Function at 0x14003e830
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, edx
test rcx, rcx
jne 0x14003e85a
call fcn.1400392c4
and dword [rax], 0
call fcn.1400392a4
mov ebx, reloc.WS2_32.dll_shutdown
mov dword [rax], ebx
call fcn.14003923c
mov eax, ebx
jmp 0x14003e8aa
test edx, 0xfffffff9
jne 0x14003e83d
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x14003e883
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400392e4
call fcn.1400392a4
mov eax, dword [rax]
jmp 0x14003e8aa
test al, 0x10
jne 0x14003e8a8
test al, 1
je 0x14003e8a8
test bl, 2
je 0x14003e8a8
call fcn.1400392c4
mov dword [rax], 5
call fcn.1400392a4
mov dword [rax], ntohs
jmp 0x14003e87a
xor eax, eax
add rsp, 0x20
pop rbx
ret

Function at 0x140041ccf
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x14006d360]
jne 0x140037b6a
rol rcx, 0x10
test cx, 0xffff
jne 0x140037b66
repz ret
ror rcx, 0x10
jmp 0x140041c28
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x140071890]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x140071988]
mov qword [rsp + 0x58], rax
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x140041cad
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x140071890]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x140041ccf
mov rax, qword [rsp + 0x88]
mov qword [0x140071988], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x140071928], rax
mov rax, qword [0x140071988]
mov qword [0x140071800], rax
mov rax, qword [rsp + 0x90]
mov qword [0x140071910], rax
mov dword [0x1400717f0], 0xc0000409
mov dword [0x1400717f4], 1
mov rax, qword [0x14006d360]
mov qword [rsp + 0x68], rax
mov rax, qword [0x14006d368]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x140071888], eax
mov ecx, 1
call fcn.140043cec
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x14005f1d0]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x140071888], 0
jne 0x140041d56
mov ecx, 1
call fcn.140043cec
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret
Function at 0x140044f58
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x50
mov rax, qword [0x14006d360]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov ebp, r8d
mov r14, rdx
mov r13, rcx
call fcn.140039498
xor ebx, ebx
cmp qword [0x140071dd8], rbx
mov rdi, rax
jne 0x14004506b
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
test rax, rax
je 0x140045142
lea rdx, str.MessageBoxW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140045142
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x140071dd8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x140071de0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetUserObjectInformationW
mov rcx, rsi
mov qword [0x140071de8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov r11, rax
mov qword [0x140071df8], rax
test rax, rax
je 0x140045062
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov qword [0x140071df0], rax
jmp 0x140045072
mov rax, qword [0x140071df0]
jmp 0x140045079
mov rax, qword [0x140071df0]
mov r11, qword [0x140071df8]
cmp rax, rdi
je 0x1400450e0
cmp r11, rdi
je 0x1400450e0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov rcx, qword [0x140071df8]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov r12, rax
test rsi, rsi
je 0x1400450e0
test rax, rax
je 0x1400450e0
call rsi
test rax, rax
je 0x1400450da
lea rcx, [rsp + 0x30]
mov r9d, reloc.WS2_32.dll_inet_ntoa
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x1400450da
test byte [rsp + 0x40], 1
jne 0x1400450e0
bts ebp, 0x15
jmp 0x140045120
mov rcx, qword [0x140071de0]
cmp rcx, rdi
je 0x140045120
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x140045120
call rax
mov rbx, rax
test rax, rax
je 0x140045120
mov rcx, qword [0x140071de8]
cmp rcx, rdi
je 0x140045120
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x140045120
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x140071dd8]
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x140045142
mov r9d, ebp
mov r8, r14
mov rdx, r13
mov rcx, rbx
call rax
jmp 0x140045144
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140037b50
add rsp, 0x50
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140003c60
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
push rsi
sub rsp, 0x40
mov rbx, r9
mov rsi, r8
test r9, r9
je 0x140003d24
cmp dword [rsp + 0x70], 4
jb 0x140003d24
xor eax, eax
mov dword [r9], eax
test rcx, rcx
je 0x140003d24
test rdx, rdx
je 0x140003d24
test r8, r8
je 0x140003d24
mov r9d, dword [rsp + 0x78]
xor r8d, r8d
mov qword [rsp + 0x30], rax
or r9d, 0x20019
mov dword [rsp + 0x68], eax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x50], rdi
xor dil, dil
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140003d10
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x70]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x68]
xor r8d, r8d
mov qword [rsp + 0x20], rbx
mov rdx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x30]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
sete dil
movzx eax, dil
mov rdi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rsi
ret
mov rbx, qword [rsp + 0x58]
xor al, al
add rsp, 0x40
pop rsi
ret
Function at 0x1400041e0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], r8
push rbp
push rsi
push r14
sub rsp, 0x50
mov rax, rdx
mov r14, rcx
test rdx, rdx
je 0x1400043b3
xor ebp, ebp
xor r9d, r9d
mov qword [rsp + 0x30], rbp
mov edx, 0xc0000000
mov dword [rsp + 0x28], 0x80
mov rcx, rax
mov dword [rsp + 0x20], 4
lea r8d, [rbp + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x1400043b3
mov qword [rsp + 0x70], rbx
lea r8, [rsp + 0x7c]
xor r9d, r9d
mov qword [rsp + 0x48], rdi
xor edx, edx
mov qword [rsp + 0x78], rbp
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [rsp + 0x78], eax
cmp eax, 0xffffffff
jne 0x14000426e
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1400043a6
cmp qword [rsp + 0x78], rbp
jne 0x1400043a6
mov rbx, qword [r14 + 8]
mov rdi, rbp
mov qword [rsp + 0x40], r15
mov r15, qword [r14]
test r15, r15
je 0x1400042f2
test rbx, rbx
je 0x1400042ea
nop dword [rax]
nop word [rax + rax]
mov r8d, 0xfffffff
mov dword [rsp + 0x80], ebp
cmp rbx, r8
mov qword [rsp + 0x20], rbp
lea rdx, [r15 + rdi]
mov rcx, rsi
cmovb r8d, ebx
lea r9, [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1400042e3
mov eax, dword [rsp + 0x80]
add rdi, rax
sub rbx, rax
jne 0x1400042a0
jmp 0x1400042ea
mov dword [rsp + 0x80], ebp
lock add qword [0x1401f3d68], rdi
mov r15, qword [rsp + 0x40]
cmp rdi, qword [r14 + 8]
jne 0x1400043a6
mov r9d, 1
mov qword [rsp + 0x80], rbp
lea r8, [rsp + 0x84]
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [rsp + 0x80], eax
mov rdi, 0xffffffffffffffff
cmp eax, 0xffffffff
jne 0x140004342
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rbx, rdi
test eax, eax
jne 0x14000434a
mov rbx, qword [rsp + 0x80]
xor r9d, r9d
mov qword [rsp + 0x78], rbx
lea r8, [rsp + 0x7c]
mov edx, ebx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [rsp + 0x78], eax
cmp eax, 0xffffffff
jne 0x140004375
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x14000437a
mov rdi, qword [rsp + 0x78]
cmp rdi, rbx
jne 0x140004388
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
mov rbx, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x48]
add rsp, 0x50
pop r14
pop rsi
pop rbp
ret
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x140004393
xor al, al
add rsp, 0x50
pop r14
pop rsi
pop rbp
ret
Function at 0x140004440
Capabilities:
Get file size
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r15
sub rsp, 0x40
mov r15, r8
mov rbx, rdx
mov rdi, rcx
test rdx, rdx
je 0x1400045d8
mov rcx, qword [rcx + 8]
cmp rcx, 0xffffffffffffffff
je 0x140004475
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi + 8], 0xffffffffffffffff
xor ebp, ebp
xor r9d, r9d
mov qword [rsp + 0x30], rbp
mov edx, 0x80000000
mov dword [rsp + 0x28], 0x80
mov rcx, rbx
mov dword [rsp + 0x20], 3
lea r8d, [rbp + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rdi + 8], rax
cmp rax, 0xffffffffffffffff
je 0x1400045d8
lea rdx, [rsp + 0x88]
mov qword [rsp + 0x88], rbp
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1400045bd
mov rcx, qword [rsp + 0x88]
mov qword [r15], rcx
test rcx, rcx
je 0x1400045c0
add rcx, 0x10
lea rdx, [0x14014fdc0]
call fcn.14002e8b0
mov rsi, rax
test rax, rax
je 0x1400045c0
mov qword [rsp + 0x70], r14
mov r14, qword [r15]
test r14, r14
je 0x140004586
cmp qword [rdi + 8], 0xffffffffffffffff
mov ebx, ebp
je 0x14000456b
nop word [rax + rax]
mov rcx, qword [rdi + 8]
lea rdx, [rbx + rsi]
mov r8d, 0xfffffff
mov dword [rsp + 0x78], ebp
mov rax, r14
mov qword [rsp + 0x20], rbp
sub rax, rbx
lea r9, [rsp + 0x78]
cmp rax, r8
cmovb r8d, eax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140004563
mov eax, dword [rsp + 0x78]
test eax, eax
je 0x140004563
add rbx, rax
cmp rbx, r14
jb 0x140004520
lock add qword [0x1401f3d70], rbx
mov rax, qword [r15]
cmp rbx, rax
je 0x140004580
mov rcx, rsi
call fcn.14002e8a8
mov rsi, rbp
jmp 0x140004592
mov byte [rax + rsi], bpl
jmp 0x14000458a
mov byte [r14 + rax], bpl
mov rax, qword [r15]
mov byte [rax + rsi + 1], bpl
mov rcx, qword [rdi + 8]
mov r14, qword [rsp + 0x70]
cmp rcx, 0xffffffffffffffff
je 0x1400045af
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi + 8], 0xffffffffffffffff
mov rax, rsi
add rsp, 0x40
pop r15
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov qword [r15], rbp
mov rcx, qword [rdi + 8]
cmp rcx, 0xffffffffffffffff
je 0x1400045d8
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi + 8], 0xffffffffffffffff
xor eax, eax
add rsp, 0x40
pop r15
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140004760
Capabilities:
Encode data using base64

Disassembly:
push rbx
push rsi
push r14
xor r10d, r10d
mov r11, r8
mov ebx, edx
mov rsi, rcx
mov eax, r10d
mov r14d, r10d
test rcx, rcx
je 0x1400048ca
test r8, r8
je 0x1400048ca
cmp r9d, 9
jb 0x1400048ca
mov byte [r8], al
test edx, edx
je 0x1400048c1
mov qword [rsp + 0x30], r12
lea r12, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
mov qword [rsp + 0x38], r15
lea r15d, [r9 - 8]
mov qword [rsp + 0x20], rbp
mov qword [rsp + 0x28], rdi
nop dword [rax]
cmp eax, r15d
jae 0x1400048ad
movzx r8d, byte [r10 + rsi]
inc r10d
cmp r10d, ebx
jb 0x1400047e4
xor r9b, r9b
mov r14d, 2
xor bpl, bpl
jmp 0x140004804
movzx ebp, byte [r10 + rsi]
inc r10d
cmp r10d, ebx
jae 0x1400047fb
movzx r9d, byte [r10 + rsi]
inc r10d
jmp 0x140004804
xor r9b, r9b
mov r14d, 1
mov edx, eax
movzx ecx, r9b
shr cl, 6
inc eax
movzx edi, bpl
and dil, 0xf
shl dil, 2
or dil, cl
mov rcx, r8
shr rcx, 2
and r8b, 3
shl r8b, 4
movzx r8d, r8b
movzx ecx, byte [rcx + r12]
mov byte [rdx + r11], cl
movzx ecx, bpl
shr rcx, 4
or r8, rcx
movzx ecx, byte [r8 + r12]
mov byte [rax + r11], cl
inc eax
mov ecx, r14d
test r14d, r14d
je 0x140004886
sub ecx, 1
je 0x140004870
cmp ecx, 1
jne 0x1400048a4
mov byte [rax + r11], 0x3d
inc eax
mov byte [rax + r11], 0x3d
jmp 0x1400048a2
movzx ecx, dil
movzx ecx, byte [rcx + r12]
mov byte [rax + r11], cl
inc eax
mov byte [rax + r11], 0x3d
jmp 0x1400048a2
movzx ecx, dil
movzx ecx, byte [rcx + r12]
mov byte [rax + r11], cl
inc eax
and r9d, 0x3f
movzx ecx, byte [r9 + r12]
mov byte [rax + r11], cl
inc eax
cmp r10d, ebx
jb 0x1400047c0
mov rdi, qword [rsp + 0x28]
mov rbp, qword [rsp + 0x20]
mov r12, qword [rsp + 0x30]
mov r15, qword [rsp + 0x38]
mov ecx, eax
inc eax
mov byte [rcx + r11], 0
pop r14
pop rsi
pop rbx
ret
Function at 0x140007700
Capabilities:
Get socket status
Set socket configuration

Disassembly:
mov r11, rsp
push rbx
sub rsp, 0x240
mov rbx, rcx
mov eax, 1
mov rcx, qword [rcx + 8]
mov dword [r11 + 8], eax
cmp rcx, 0xffffffffffffffff
je 0x1400077b0
lea r8, [r11 + 8]
mov edx, 0x4004667f
call qword [sym.imp.WS2_32.dll_ioctlsocket]
test eax, eax
je 0x14000774e
mov rcx, rbx
call fcn.140003920
mov eax, 1
add rsp, 0x240
pop rbx
ret
mov eax, dword [rsp + 0x250]
test eax, eax
jne 0x1400077b0
mov rax, qword [rbx + 8]
lea rdx, [rsp + 0x30]
mov qword [rsp + 0x38], rax
xor r9d, r9d
lea rax, [rsp + 0x258]
mov dword [rsp + 0x30], 1
xor r8d, r8d
mov qword [rsp + 0x20], rax
xor ecx, ecx
mov dword [rsp + 0x258], 0
mov dword [rsp + 0x25c], 0x3e8
call qword [sym.imp.WS2_32.dll_select]
test eax, eax
mov eax, 1
jg 0x1400077b0
mov eax, dword [rsp + 0x250]
add rsp, 0x240
pop rbx
ret
Function at 0x140007b40
Capabilities:
Send data
Send data on socket

Disassembly:
push rbx
push rbp
push r12
push r15
sub rsp, 0x58
xor r12d, r12d
mov r15, r9
mov rbx, r8
mov rbp, rcx
test r9, r9
je 0x140007b5f
mov dword [r9], r12d
test rdx, rdx
je 0x140007cd9
cmp qword [rcx + 8], 0xffffffffffffffff
je 0x140007cd9
mov qword [rsp + 0x80], rsi
mov esi, r12d
mov qword [rsp + 0x50], r14
mov r14d, r12d
mov qword [rsp + 0x90], rdi
mov qword [rsp + 0x98], r13
mov dword [rsp + 0x40], r12d
mov qword [rsp + 0x48], rdx
test rbx, rbx
je 0x140007cbe
mov r13d, 0x200000
nop
cmp byte [rbp + 0x449], r12b
jne 0x140007c60
mov rdi, qword [rbp + 0x460]
mov dword [rsp + 0x88], r12d
call qword [sym.imp.KERNEL32.dll_GetTickCount64]
mov rcx, qword [rbp + 8]
lea r9, [rsp + 0x88]
add rax, rdi
mov qword [rsp + 0x30], r12
mov qword [rbp + 0x468], rax
lea rdx, [rsp + 0x40]
mov eax, ebx
mov qword [rsp + 0x28], r12
cmp rbx, r13
mov dword [rsp + 0x20], r12d
mov r8d, 1
cmova eax, r13d
mov dword [rsp + 0x40], eax
call qword [sym.imp.WS2_32.dll_WSASend]
test eax, eax
je 0x140007c40
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r14d, eax
cmp eax, 0x2733
jne 0x140007c5b
inc esi
cmp esi, 0x7d0
je 0x140007c5b
mov ecx, 5
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140007c52
mov eax, dword [rsp + 0x88]
mov esi, r12d
sub rbx, rax
add qword [rsp + 0x48], rax
test rbx, rbx
jne 0x140007bb0
test rbx, rbx
je 0x140007cbe
lea rcx, [rbp + 0x22c]
mov qword [rsp + 0x20], rbx
lea r9, str.raw___send_failed___zu_bytes_needed
mov edx, 0xff
mov r8, 0xffffffffffffffff
call fcn.140003a90
test r15, r15
je 0x140007c8c
mov dword [r15], r14d
mov rcx, rbp
call fcn.140003920
xor al, al
mov r13, qword [rsp + 0x98]
mov rdi, qword [rsp + 0x90]
mov rsi, qword [rsp + 0x80]
mov r14, qword [rsp + 0x50]
add rsp, 0x58
pop r15
pop r12
pop rbp
pop rbx
ret
mov rbx, qword [rbp + 0x460]
call qword [sym.imp.KERNEL32.dll_GetTickCount64]
add rax, rbx
mov qword [rbp + 0x468], rax
mov al, 1
jmp 0x140007c96
xor al, al
add rsp, 0x58
pop r15
pop r12
pop rbp
pop rbx
ret
Function at 0x140009520
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rsi
sub rsp, 0x248
mov rax, qword [rcx + 8]
xor ebp, ebp
mov dword [rcx + 0x10], ebp
mov rsi, rcx
test rax, rax
je 0x14000953e
mov word [rax], bp
mov qword [rsp + 0x278], rbx
call fcn.14000b340
test al, al
jne 0x14000967a
mov rcx, rsi
call fcn.140008fc0
test al, al
jne 0x14000967a
xor edx, edx
lea rcx, [rsp + 0x34]
mov r8d, 0x204
call fcn.14014d290
xor eax, eax
mov dword [rsp + 0x260], 0x206
mov dword [rsp + 0x30], eax
lea rdx, str.HardwareDescriptionSystem
lea rax, [rsp + 0x270]
mov qword [rsp + 0x270], rbp
mov r9d, 0x20119
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rsp + 0x268], ebp
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000968e
mov rcx, qword [rsp + 0x270]
lea rax, [rsp + 0x260]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x268]
lea rax, [rsp + 0x30]
xor r8d, r8d
lea rdx, str.SystemBiosVersion
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x270]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x14000968e
movabs rax, 0x58004f00420056
cmp qword [rsp + 0x30], rax
jne 0x14000968e
cmp qword [rsi + 8], rbp
je 0x14000967a
mov edx, dword [rsi + 0x14]
lea rcx, str.VirtualBox
mov qword [rsp + 0x240], rdi
call fcn.14003c464
mov r8d, dword [rsi + 0x14]
lea rdx, str.VirtualBox
cmp eax, r8d
lea ecx, [r8 - 1]
cmovb ecx, eax
mov ebx, ecx
lea rdi, [rcx + rcx]
mov rcx, qword [rsi + 8]
mov r8, rdi
call fcn.14014cbf0
mov dword [rsi + 0x10], ebx
mov rax, qword [rsi + 8]
mov word [rdi + rax], bp
mov rdi, qword [rsp + 0x240]
mov al, 1
mov rbx, qword [rsp + 0x278]
add rsp, 0x248
pop rsi
pop rbp
ret
mov rbx, qword [rsp + 0x278]
xor al, al
add rsp, 0x248
pop rsi
pop rbp
ret