joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140034a60
Capabilities:
Get socket status

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x218]
sub rsp, 0x310
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1400c0030]
xor rax, rsp
mov qword [rbp + 0x200], rax
mov rbx, rcx
lea rax, vtable.LogItem.0
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x70], 7
xor esi, esi
mov qword [rsp + 0x68], rsi
mov word [rsp + 0x58], si
mov qword [rbp - 0x70], 7
mov qword [rbp - 0x78], rsi
mov word [rsp + 0x78], si
mov dword [rbp - 0x68], 1
mov dword [rbp - 0x64], 1
lea rdx, [0x1400a4444]
lea rcx, [rsp + 0x50]
call fcn.140025060
mov dword [rax + 0x48], esi
mov rdx, rbx
mov rcx, rax
call fcn.14002e620
mov dword [rax + 0x48], 1
lea rdx, [0x1400a4448]
mov rcx, rax
call fcn.140025060
mov rcx, rax
lea rdx, str.AcceptClientSocket_called...
call fcn.140025060
nop
lea rcx, [rsp + 0x50]
call fcn.140024c00
cmp qword [rbx + 0x208], 0xffffffffffffffff
jne 0x140034c4b
mov rax, qword [rbx + 0x200]
mov qword [rbp - 8], rax
mov dword [rbp - 0x10], 1
mov qword [rsp + 0x38], 1
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp - 0x10]
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_select]
cmp eax, 1
jne 0x140034b2a
xor r8d, r8d
xor edx, edx
mov rcx, qword [rbx + 0x200]
call qword [sym.imp.WS2_32.dll_accept]
mov qword [rbx + 0x208], rax
cmp rax, 0xffffffffffffffff
jne 0x140034b2a
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
mov dword [rsp + 0x34], 1
mov dword [rsp + 0x30], esi
lea rcx, [rsp + 0x50]
call fcn.140024a10
nop
mov rcx, rax
call fcn.140025220
mov rcx, rax
lea rdx, [0x1400a4444]
call fcn.140025060
mov rcx, rax
lea rdx, [rsp + 0x30]
call fcn.14002e9a0
mov rcx, rax
mov rdx, rbx
call fcn.14002e620
mov rcx, rax
lea rdx, [rsp + 0x34]
call fcn.14002e9a0
mov rcx, rax
lea rdx, [0x1400a4448]
call fcn.140025060
mov rcx, rax
lea rdx, str.Socket_server_error_on_accept_operation_occured.
call fcn.140025060
nop
lea rcx, [rsp + 0x50]
call fcn.140024c00
lea rdx, str.SocketHeciServer::SocketServer::AcceptClientSocket
lea rcx, [rbp - 0x30]
call fcn.140029650
nop
mov r8d, edi
lea rdx, [rbp - 0x30]
lea rcx, [rsp + 0x50]
call fcn.140030710
lea rdx, [0x1400bc8a8]
lea rcx, [rsp + 0x50]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
mov rcx, qword [rbp + 0x200]
xor rcx, rsp
call fcn.14005beb0
lea r11, [rsp + 0x310]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x14003cd00
Capabilities:
Set registry value

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rdx
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x40
mov qword [rax - 0x38], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov r14, r8
mov r12, rcx
mov bpl, 1
mov ecx, 0x18
call fcn.14005bee4
mov rbx, rax
mov qword [rsp + 0x38], rax
xor edi, edi
test rax, rax
je 0x14003cd61
mov qword [rax + 8], rdi
mov dword [rax + 0x10], 1
lea rcx, [0x1400a0d3a]
call fcn.14005b960
mov qword [rbx], rax
jmp 0x14003cd64
mov rbx, rdi
test rbx, rbx
jne 0x14003cd74
mov ecx, 0x8007000e
call fcn.14005b930
int3
lea rax, [rsp + 0x78]
mov qword [rsp + 0x20], rax
mov r9d, 0x2001b
xor r8d, r8d
mov rdx, qword [rbx]
mov rcx, qword [r12]
call qword [sym.imp.advapi32.dll_RegOpenKeyExW]
mov esi, eax
or r15d, 0xffffffff
mov ecx, r15d
lock xadd dword [rbx + 0x10], ecx
cmp ecx, 1
jne 0x14003cdd7
mov rcx, qword [rbx]
test rcx, rcx
je 0x14003cdb8
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rbx], rdi
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x14003cdca
call fcn.14005c1d0
mov qword [rbx + 8], rdi
mov edx, 0x18
mov rcx, rbx
call fcn.14005c1d0
test esi, esi
je 0x14003cde9
mov ecx, esi
call fcn.14003cef0
xor al, al
jmp 0x14003cece
lea rsi, [0x1400c65e0]
cmp qword [0x1400c65f8], 0x10
cmovae rsi, qword [0x1400c65e0]
mov ecx, 0x18
call fcn.14005bee4
mov rbx, rax
mov qword [rsp + 0x38], rax
test rax, rax
je 0x14003ce2f
mov qword [rax + 8], rdi
mov dword [rax + 0x10], 1
mov rcx, rsi
call fcn.14005b960
mov qword [rbx], rax
jmp 0x14003ce32
mov rbx, rdi
test rbx, rbx
jne 0x14003ce42
mov ecx, 0x8007000e
call fcn.14005b930
int3
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], r14
mov r9d, 4
xor r8d, r8d
mov rdx, qword [rbx]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.advapi32.dll_RegSetValueExW]
mov esi, eax
test eax, eax
setne r14b
lock xadd dword [rbx + 0x10], r15d
cmp r15d, 1
jne 0x14003ceaa
mov rcx, qword [rbx]
test rcx, rcx
je 0x14003ce8b
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rbx], rdi
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x14003ce9d
call fcn.14005c1d0
mov qword [rbx + 8], rdi
mov edx, 0x18
mov rcx, rbx
call fcn.14005c1d0
test r14b, r14b
je 0x14003ceb9
mov ecx, esi
call fcn.14003cef0
xor bpl, bpl
mov rcx, qword [rsp + 0x78]
cmp rcx, qword [r12]
je 0x14003ceca
call qword [sym.imp.advapi32.dll_RegCloseKey]
movzx eax, bpl
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x80]
add rsp, 0x40
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x14004c340
Capabilities:
Identify system language via api

Disassembly:
sub rsp, 0x28
cmp byte [0x1400c2129], 0
je 0x14004c358
mov eax, dword [0x1400c212c]
add rsp, 0x28
ret
call qword [sym.imp.kernel32.dll_GetUserDefaultLangID]
movzx r8d, ax
mov edx, r8d
and edx, 0x3ff
sub edx, 7
je 0x14004c3be
sub edx, 3
je 0x14004c39a
sub edx, 0xb
je 0x14004c390
cmp edx, 1
je 0x14004c386
xor eax, eax
add rsp, 0x28
ret
mov eax, 2
add rsp, 0x28
ret
mov eax, 5
add rsp, 0x28
ret
mov eax, 0xfc00
mov ecx, 0x800
and r8w, ax
mov edx, 1
cmp r8w, cx
mov eax, 3
cmovne eax, edx
add rsp, 0x28
ret
mov eax, 4
add rsp, 0x28
ret
Function at 0x140051480
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xe0
mov qword [rbp - 0x51], 0xfffffffffffffffe
mov qword [rsp + 0x128], rbx
mov rax, qword [0x1400c0030]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov r14d, r8d
mov rdi, rdx
mov rsi, rcx
xor r15d, r15d
mov dword [rbp - 0x75], r15d
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.kernel32.dll_CreateEventW]
mov rbx, rax
mov qword [rbp - 0x49], rax
test rax, rax
jne 0x140051544
call qword [sym.imp.kernel32.dll_GetLastError]
mov dword [rbp - 0x79], eax
lea rax, vtable.LogItem.0
mov qword [rbp - 0x39], rax
mov qword [rbp - 0x19], 7
mov qword [rbp - 0x21], r15
mov word [rbp - 0x31], r15w
mov qword [rbp + 7], 7
mov qword [rbp - 1], r15
mov word [rbp - 0x11], r15w
mov dword [rbp + 0xf], 1
mov dword [rbp + 0x13], 1
lea rdx, str.Cannot_create_read_event._Error:
lea rcx, [rbp - 0x39]
call fcn.140025060
mov rcx, rax
lea rdx, [rbp - 0x79]
call fcn.140024e20
nop
jmp 0x140051675
mov qword [rbp - 0x59], rbx
mov qword [rbp - 0x61], r15
lea rax, [rbp - 0x71]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x75]
mov r8d, r14d
mov rdx, rdi
mov rcx, qword [rsi + 0x28]
call qword [sym.imp.kernel32.dll_ReadFile]
mov edi, eax
call qword [sym.imp.kernel32.dll_GetLastError]
test edi, edi
jne 0x140051580
cmp eax, 0x3e5
jne 0x14005167e
mov edx, dword [rsi + 0x34]
mov rcx, rbx
call qword [sym.imp.kernel32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x1400515f8
lea rax, vtable.LogItem.0
mov qword [rbp - 0x39], rax
mov qword [rbp - 0x19], 7
mov qword [rbp - 0x21], r15
mov word [rbp - 0x31], r15w
mov qword [rbp + 7], 7
mov qword [rbp - 1], r15
mov word [rbp - 0x11], r15w
mov dword [rbp + 0xf], 1
mov dword [rbp + 0x13], 1
lea rdx, str.Timeout_occured_while_reading_from_heci_device.
lea rcx, [rbp - 0x39]
call fcn.140025060
nop
lea rcx, [rbp - 0x39]
call fcn.140024c00
mov rdx, rbx
mov rcx, rsi
call fcn.140050530
jmp 0x140051686
mov r9d, 1
lea r8, [rbp - 0x75]
lea rdx, [rbp - 0x71]
mov rcx, qword [rsi + 0x28]
call qword [sym.imp.kernel32.dll_GetOverlappedResult]
test eax, eax
jne 0x14005168b
call qword [sym.imp.kernel32.dll_GetLastError]
mov dword [rbp - 0x79], eax
lea rax, vtable.LogItem.0
mov qword [rbp - 0x39], rax
mov qword [rbp - 0x19], 7
mov qword [rbp - 0x21], r15
mov word [rbp - 0x31], r15w
mov qword [rbp + 7], 7
mov qword [rbp - 1], r15
mov word [rbp - 0x11], r15w
mov dword [rbp + 0xf], 1
mov dword [rbp + 0x13], 1
lea rdx, str.Read_function_fail_to_finish._Error:
lea rcx, [rbp - 0x39]
call fcn.140025060
mov rcx, rax
lea rdx, [rbp - 0x79]
call fcn.140024e20
nop
lea rcx, [rbp - 0x39]
call fcn.140024c00
mov rcx, rsi
call fcn.1400512b0
or edi, 0xffffffff
jmp 0x14005168e
mov edi, dword [rbp - 0x75]
cmp rbx, 0xffffffffffffffff
je 0x14005169d
mov rcx, rbx
call qword [sym.imp.kernel32.dll_CloseHandle]
mov eax, edi
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.14005beb0
mov rbx, qword [rsp + 0x128]
add rsp, 0xe0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x140057110
Capabilities:
Get common file path

Disassembly:
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x260]
sub rsp, 0x360
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov qword [rsp + 0x390], rbx
mov rax, qword [0x1400c0030]
xor rax, rsp
mov qword [rbp + 0x250], rax
mov r10, rdx
mov rsi, rcx
xor ebx, ebx
mov dword [rsp + 0x28], ebx
lea rdi, [rbp + 0x40]
xor eax, eax
mov ecx, 0x208
rep stosb byte [rdi], al
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x20]
xor r8d, r8d
xor edx, edx
mov rcx, r10
call qword [sym.imp.shell32.dll_SHGetKnownFolderPath]
test eax, eax
jns 0x1400571b4
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
lea rcx, [rbp - 0x20]
call fcn.140024210
nop
mov rcx, rax
call fcn.140057650
mov rdx, rax
lea rcx, [rbp - 0x80]
call fcn.1400243f0
lea rdx, [0x1400bc478]
lea rcx, [rbp - 0x80]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
mov qword [rsp + 0x78], 7
mov qword [rsp + 0x70], rbx
mov word [rsp + 0x60], bx
mov rdx, qword [rsp + 0x20]
cmp word [rdx], bx
jne 0x1400571d6
mov r8, rbx
jmp 0x1400571ea
or r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp word [rdx + r8*2], bx
jne 0x1400571e0
lea rcx, [rsp + 0x60]
call fcn.14002a150
nop
lea rdx, [rsp + 0x60]
cmp qword [rsp + 0x78], 8
cmovae rdx, qword [rsp + 0x60]
lea rcx, [rbp + 0x40]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov qword [rsp + 0x48], 7
mov qword [rsp + 0x40], rbx
mov word [rsp + 0x30], bx
cmp word [rbp + 0x40], 0
je 0x14005724a
lea rax, [rbp + 0x40]
or rbx, 0xffffffffffffffff
nop dword [rax]
inc rbx
cmp word [rax + rbx*2], 0
jne 0x140057240
mov r8, rbx
lea rdx, [rbp + 0x40]
lea rcx, [rsp + 0x30]
call fcn.14002a150
lea rdx, [rsp + 0x30]
mov rcx, rsi
call fcn.140024530
nop
mov r8, qword [rsp + 0x78]
cmp r8, 8
jb 0x140057281
inc r8
mov rdx, qword [rsp + 0x60]
call fcn.14002aad0
mov rax, rsi
mov rcx, qword [rbp + 0x250]
xor rcx, rsp
call fcn.14005beb0
mov rbx, qword [rsp + 0x390]
add rsp, 0x360
pop rdi
pop rsi
pop rbp
ret

Function at 0x140058540
Capabilities:
Delete file

Disassembly:
push rbx
sub rsp, 0x150
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov rax, qword [0x1400c0030]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov rbx, rcx
call fcn.140058440
cmp qword [rbx + 0x20], 8
jb 0x140058579
mov rcx, qword [rbx + 8]
jmp 0x14005857d
lea rcx, [rbx + 8]
call qword [sym.imp.kernel32.dll_DeleteFileW]
test eax, eax
jne 0x14005861c
call qword [sym.imp.kernel32.dll_GetLastError]
mov dword [rsp + 0x20], eax
lea rdx, [rbx + 8]
lea rcx, [rsp + 0x38]
call fcn.1400294c0
mov rdx, rax
lea rcx, [rsp + 0x58]
call fcn.140024530
mov rbx, rax
lea rcx, [rsp + 0xe0]
call fcn.140024210
nop
lea rdx, str.Error_when_deleting_file:
mov rcx, rax
call fcn.14002d110
mov rcx, rax
mov rdx, rbx
call fcn.140038150
mov rcx, rax
lea rdx, str.Last_error:
call fcn.14002d110
mov rcx, rax
lea rdx, [rsp + 0x20]
call fcn.14003ae90
mov rdx, rax
lea rcx, [rsp + 0x80]
call fcn.1400243f0
lea rdx, [0x1400bc478]
lea rcx, [rsp + 0x80]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.14005beb0
add rsp, 0x150
pop rbx
ret
Function at 0x140058640
Capabilities:
Move file

Disassembly:
push rdi
sub rsp, 0x190
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x1b0], rbx
mov rax, qword [0x1400c0030]
xor rax, rsp
mov qword [rsp + 0x180], rax
mov rdi, rdx
mov rbx, rcx
call fcn.140058440
cmp qword [rdi + 0x18], 8
jb 0x140058683
mov rdx, qword [rdi]
jmp 0x140058686
mov rdx, rdi
cmp qword [rbx + 0x20], 8
jb 0x140058693
mov rcx, qword [rbx + 8]
jmp 0x140058697
lea rcx, [rbx + 8]
call qword [sym.imp.kernel32.dll_MoveFileW]
test eax, eax
jne 0x140058769
call qword [sym.imp.kernel32.dll_GetLastError]
mov dword [rsp + 0x20], eax
mov rdx, rdi
lea rcx, [rsp + 0x38]
call fcn.1400294c0
mov rdx, rax
lea rcx, [rsp + 0x78]
call fcn.140024530
mov rdi, rax
lea rdx, [rbx + 8]
lea rcx, [rsp + 0x58]
call fcn.1400294c0
mov rdx, rax
lea rcx, [rsp + 0x98]
call fcn.140024530
mov rbx, rax
lea rcx, [rsp + 0x120]
call fcn.140024210
nop
lea rdx, str.Error_when_renaming_file_from
mov rcx, rax
call fcn.14002d110
mov rcx, rax
mov rdx, rbx
call fcn.140038150
mov rcx, rax
call fcn.140058e60
mov rcx, rax
mov rdx, rdi
call fcn.140038150
mov rcx, rax
lea rdx, str.Last_error:
call fcn.14002d110
mov rcx, rax
lea rdx, [rsp + 0x20]
call fcn.14003ae90
mov rdx, rax
lea rcx, [rsp + 0xc0]
call fcn.1400243f0
lea rdx, [0x1400bc478]
lea rcx, [rsp + 0xc0]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
mov rcx, qword [rsp + 0x180]
xor rcx, rsp
call fcn.14005beb0
mov rbx, qword [rsp + 0x1b0]
add rsp, 0x190
pop rdi
ret

Function at 0x140058940
Capabilities:
Write file on windows

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x180
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov rax, qword [0x1400c0030]
xor rax, rsp
mov qword [rsp + 0x170], rax
mov esi, r8d
mov rdi, rdx
mov rbx, rcx
mov dword [rsp + 0x38], r8d
mov dword [rsp + 0x30], 0
test rdx, rdx
je 0x140058a69
mov edx, 0xc0000004
mov r9d, 2
call fcn.140058270
mov dword [rsp + 0x34], 0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x34]
mov r8d, esi
mov rdx, rdi
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.kernel32.dll_WriteFile]
test eax, eax
jne 0x140058aa4
call qword [sym.imp.kernel32.dll_GetLastError]
mov dword [rsp + 0x30], eax
lea rdx, [rbx + 8]
lea rcx, [rsp + 0x50]
call fcn.1400294c0
mov rdx, rax
lea rcx, [rsp + 0x70]
call fcn.140024530
mov rbx, rax
lea rcx, [rsp + 0x110]
call fcn.140024210
nop
mov rcx, rax
call fcn.140059020
mov rcx, rax
lea rdx, [rsp + 0x38]
call fcn.140051e50
mov rcx, rax
lea rdx, str._bytes_to_file
call fcn.14002d110
mov rcx, rax
mov rdx, rbx
call fcn.140038150
mov rcx, rax
lea rdx, str.Last_error:
call fcn.14002d110
mov rcx, rax
lea rdx, [rsp + 0x30]
call fcn.14003ae90
mov rdx, rax
lea rcx, [rsp + 0xb0]
call fcn.1400243f0
lea rdx, [0x1400bc478]
lea rcx, [rsp + 0xb0]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
lea rdx, str.Invalid_data_passed
lea rcx, [rsp + 0x50]
call fcn.140029650
nop
mov dword [rsp + 0x30], 1
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x70]
call fcn.14002e050
lea rdx, [0x1400bc5d8]
lea rcx, [rsp + 0x70]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.14005beb0
add rsp, 0x180
pop rdi
pop rsi
pop rbx
ret
Function at 0x140058ac0
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x170
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rsp + 0x1a8], rbx
mov rax, qword [0x1400c0030]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov edi, r8d
mov rsi, rdx
mov rbx, rcx
mov dword [rsp + 0x30], 0
test rdx, rdx
je 0x140058c38
add rcx, 8
call fcn.140058120
cmp eax, edi
jb 0x140058bfd
mov rax, qword [rbx + 0x28]
dec rax
cmp rax, 0xfffffffffffffffd
ja 0x140058b2e
mov rcx, rbx
call fcn.140058440
xor r9d, r9d
mov edx, 0x80000000
mov rcx, rbx
call fcn.140058270
mov dword [rsp + 0x34], 0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x34]
mov r8d, edi
mov rdx, rsi
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
jne 0x140058c73
call qword [sym.imp.kernel32.dll_GetLastError]
mov dword [rsp + 0x30], eax
lea rdx, [rbx + 8]
lea rcx, [rsp + 0x48]
call fcn.1400294c0
mov rdx, rax
lea rcx, [rsp + 0x68]
call fcn.140024530
mov rbx, rax
lea rcx, [rsp + 0x100]
call fcn.140024210
nop
lea rdx, str.Error_when_reading_file
mov rcx, rax
call fcn.14002d110
mov rcx, rax
mov rdx, rbx
call fcn.140038150
mov rcx, rax
lea rdx, str.Last_error:
call fcn.14002d110
mov rcx, rax
lea rdx, [rsp + 0x30]
call fcn.14003ae90
mov rdx, rax
lea rcx, [rsp + 0xa0]
call fcn.1400243f0
lea rdx, [0x1400bc478]
lea rcx, [rsp + 0xa0]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
lea rdx, str.Invalid_size_passed
lea rcx, [rsp + 0x48]
call fcn.140029650
nop
mov dword [rsp + 0x30], 2
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x68]
call fcn.14002e050
lea rdx, [0x1400bc5d8]
lea rcx, [rsp + 0x68]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
lea rdx, str.Invalid_data_passed
lea rcx, [rsp + 0x48]
call fcn.140029650
nop
mov dword [rsp + 0x30], 1
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x68]
call fcn.14002e050
lea rdx, [0x1400bc5d8]
lea rcx, [rsp + 0x68]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.14005beb0
mov rbx, qword [rsp + 0x1a8]
add rsp, 0x170
pop rdi
pop rsi
pop rbp
ret
Function at 0x14005b100
Capabilities:
Print debug messages

Disassembly:
sub rsp, 0x58
mov rax, qword [0x1400c0030]
xor rax, rsp
mov qword [rsp + 0x40], rax
lea r8, [0x1400a7794]
lea rcx, [rsp + 0x20]
call fcn.140048180
cmp qword [rsp + 0x38], 8
lea rcx, [rsp + 0x20]
cmovae rcx, qword [rsp + 0x20]
call qword [sym.imp.kernel32.dll_OutputDebugStringW]
mov r8, qword [rsp + 0x38]
cmp r8, 8
jb 0x14005b153
mov rdx, qword [rsp + 0x20]
inc r8
call fcn.14002aad0
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14005beb0
add rsp, 0x58
ret
Function at 0x180001440
Capabilities:
Get system information on windows
Read file via mapping

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
mov eax, 0x60
call fcn.180025560
sub rsp, rax
mov rsi, rcx
mov ebx, r8d
lea rcx, [rsp + 0x30]
mov rdi, rdx
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
xor edx, edx
mov eax, ebx
div dword [rsp + 0x58]
xor r8d, r8d
mov rcx, rdi
mov r9d, eax
imul r9d, dword [rsp + 0x58]
lea edx, [r8 + 4]
sub ebx, r9d
lea rax, [rbx + 0x108]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
xor edx, edx
mov qword [rsi + 8], rax
test rax, rax
lea rcx, [rbx + rax]
mov rbx, qword [rsp + 0x70]
cmove rcx, rdx
mov rax, rsi
mov qword [rsi], rcx
mov rsi, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret

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

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x218
xor ebx, ebx
movsxd rax, dword [rcx + 0x3c]
mov eax, dword [rcx + rax + 0x88]
mov r11, rsp
lea r10, [r11 + 0x208]
add rax, rcx
mov r9d, dword [rax + 0x20]
mov edi, dword [rax + 0x1c]
mov ebp, dword [rax + 0x24]
lea rsi, [rcx + r9]
nop dword [rax + rax]
mov r14d, dword [rsi + rbx*4]
mov rax, r11
add r14, rcx
nop word [rax + rax]
mov byte [rax], 0
add rax, 1
cmp rax, r10
jne 0x18000237f
movsx r15w, byte [r14]
test r15b, r15b
je 0x18000244f
xor r12d, r12d
jmp 0x1800023a2
mov r12d, r13d
lea r13d, [r12 + 1]
lea rax, [r14 + r13]
mov r9, r13
cmp byte [rax], 0
jne 0x18000239f
test r9d, r9d
je 0x1800023db
lea r9, [r11 + r13*2]
lea r13, [r14 + r13 - 1]
sub r13, r12
movsx r12w, byte [rax]
sub rax, 1
sub r9, 2
mov word [r9 + 2], r12w
cmp r13, rax
jne 0x1800023c4
mov word [rsp], r15w
xor r12d, r12d
jmp 0x1800023f2
mov r12d, r9d
lea r9d, [r12 + 1]
cmp word [rsp + r9*2], 0
mov rax, r9
jne 0x1800023ef
test eax, eax
je 0x180002485
lea r9, [r11 + 2]
mov r14d, dword [r8 + 0x128]
mov r13, r11
xor eax, eax
lea r12, [r9 + r12*2]
jmp 0x180002423
add r9, 2
movzx r13d, word [r13]
imul eax, r14d
add eax, r13d
cmp r9, r12
mov r13, r9
jne 0x18000241f
lea r9, [rbx + 1]
cmp edx, eax
je 0x18000245f
mov rbx, r9
jmp 0x18000236f
lea r9, [rbx + 1]
xor eax, eax
mov word [rsp], ax
xor eax, eax
cmp edx, eax
jne 0x18000243f
lea rax, [rcx + rbx*2]
movzx eax, word [rax + rbp]
lea rax, [rcx + rax*4]
mov eax, dword [rax + rdi]
add rax, rcx
add rsp, 0x218
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
xor eax, eax
jmp 0x180002437
Function at 0x180005a1b
Capabilities:
Access peb ldr_data

Disassembly:
push rbx
sub rsp, 0x3d0
jmp 0x1800058eb

Function at 0x180007a60
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
mov eax, 0x20
call fcn.180025560
sub rsp, rax
xor eax, eax
mov rbx, r9
mov dword [r9], eax
mov edi, r8d
mov rbp, rdx
mov rsi, rcx
mov r14d, 0x40000000
mov ecx, dword [rsi + 0x1c]
mov r8d, edi
sub r8d, eax
mov edx, eax
cmp r8d, r14d
cmova r8d, r14d
add rdx, rbp
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__read]
mov edx, eax
test eax, eax
jle 0x180007ac5
mov eax, dword [rbx]
add eax, edx
mov dword [rbx], eax
cmp eax, edi
jb 0x180007a9a
test edx, edx
jns 0x180007aee
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov ecx, dword [rax]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_strerror]
mov edx, 0xffffffff
mov rcx, rsi
mov r8, rax
call fcn.180006e00
mov eax, 0xffffffff
jmp 0x180007af9
jne 0x180007af7
mov dword [rsi + 0x50], 1
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x14001bc60
Capabilities:
Create thread

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x90
mov rsi, rcx
mov rax, qword [0x14011a028]
xor rax, rsp
mov qword [rsp + 0x88], rax
movabs rax, 0x300000050
lea rdi, [rsp + 0x38]
mov qword [rdi], rax
lea rax, [0x14001bdb0]
mov qword [rdi + 8], rax
xor ebx, ebx
mov qword [rdi + 0x10], rbx
mov rax, qword [rcx]
mov qword [rdi + 0x18], rax
mov qword [rdi + 0x20], rbx
mov edx, 0x7f00
xor ecx, ecx
call qword [sym.imp.USER32.dll_LoadCursorW]
mov qword [rdi + 0x28], rax
xor ecx, ecx
call qword [sym.imp.GDI32.dll_CreateSolidBrush]
mov qword [rdi + 0x30], rax
mov qword [rdi + 0x38], rbx
lea rax, str.GxSplashWindow
mov qword [rdi + 0x40], rax
mov qword [rdi + 0x48], rbx
mov rcx, rdi
call qword [sym.imp.USER32.dll_RegisterClassExW]
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], 0
lea r8, [0x14001bd40]
xor ecx, ecx
xor edx, edx
mov r9, rsi
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rsi + 0x18], rax
test rax, rax
je 0x14001bd1c
add rsi, 0x20
mov rcx, rsi
call fcn.140064e80
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.140088f10
nop
add rsp, 0x90
pop rbx
pop rdi
pop rsi
ret

Function at 0x14001bd50
Capabilities:
Terminate thread

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
mov rcx, qword [rcx + 0x10]
test rcx, rcx
je 0x14001bd72
mov edx, 0x10
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.USER32.dll_PostMessageW]
mov rcx, qword [rsi + 0x18]
test rcx, rcx
je 0x14001bda8
mov edx, 0x3e8
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x14001bd96
mov rcx, qword [rsi + 0x18]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rcx, qword [rsi + 0x18]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsi + 0x18], 0
add rsp, 0x20
pop rsi
ret