joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140063ff4
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x30
mov rdi, rdx
mov rbx, rcx
mov edx, 0x1050
mov ecx, 1
mov ebp, r9d
mov rsi, r8
call fcn.14000fd10
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov r14, rax
and dword [rax], 0
mov qword [rax + 8], rbx
call qword [sym.imp.KERNEL32.dll_CreateEventA]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov qword [r14 + 0x10], rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventA]
and dword [r14 + 0x28], 0
and dword [r14 + 0x20], 0
and dword [r14 + 0x24], 0
mov qword [r14 + 0x18], rax
mov rax, qword [0x1400c2798]
mov qword [r14 + 0x1048], rdi
mov qword [r14 + 0x30], rsi
mov dword [r14 + 0x38], ebp
test rax, rax
jne 0x140064096
lea rcx, [0x140063cec]
call fcn.140052ac4
mov qword [0x1400c2798], rax
mov rdx, r14
mov rcx, rax
call fcn.140051c60
lea rax, [rsp + 0x68]
xor edx, edx
mov qword [rsp + 0x28], rax
lea r9, [r14 + 8]
and dword [rsp + 0x20], 0
lea r8, [0x1400640ec]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rbx, qword [rsp + 0x50]
mov rax, r14
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov dword [r14 + 0x2c], 1
add rsp, 0x30
pop r15
pop r14
pop rdi
ret

Function at 0x140064270
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x30
mov rsi, rdx
mov rbx, rcx
mov r15d, 1
mov edx, 0x1050
mov ecx, r15d
mov ebp, r9d
mov rdi, r8
call fcn.14000fd10
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov r14, rax
mov dword [rax], r15d
mov qword [rax + 8], rbx
call qword [sym.imp.KERNEL32.dll_CreateEventA]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov qword [r14 + 0x10], rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventA]
xor ebx, ebx
mov qword [r14 + 0x30], rdi
lea rcx, [r14 + 0x58]
mov qword [r14 + 0x18], rax
mov qword [r14 + 0x28], rbx
mov qword [r14 + 0x20], rbx
call fcn.14000f3e8
mov rax, qword [0x1400c2798]
mov dword [r14 + 0x70], ebx
mov qword [r14 + 0x78], rsi
mov dword [r14 + 0x38], ebp
test rax, rax
jne 0x14006431b
lea rcx, [0x140063cec]
call fcn.140052ac4
mov qword [0x1400c2798], rax
mov rdx, r14
mov rcx, rax
call fcn.140051c60
lea rax, [rsp + 0x68]
xor edx, edx
mov qword [rsp + 0x28], rax
lea r9, [r14 + 8]
lea r8, [0x140064368]
mov dword [rsp + 0x20], ebx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rbx, qword [rsp + 0x50]
mov rax, r14
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret
Function at 0x140065a10
Capabilities:
Get session user name

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
cmp dword [0x1400c2fe0], 0
jne 0x140065a6a
lea rcx, str.secur32.dll
call fcn.140065b68
lea rcx, str.sspicli.dll
mov rbx, rax
call fcn.140065b68
test rbx, rbx
je 0x140065a55
lea rdx, str.GetUserNameExA
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
jmp 0x140065a57
xor eax, eax
mov qword [0x1400c2ff8], rax
mov dword [0x1400c2fe0], 1
jmp 0x140065a71
mov rax, qword [0x1400c2ff8]
test rax, rax
je 0x140065acf
and dword [rsp + 0x30], 0
lea r8, [rsp + 0x30]
xor edx, edx
lea edi, [rdx + 8]
mov ecx, edi
call rax
mov ecx, dword [rsp + 0x30]
lea edx, [rdi - 7]
call fcn.14000fd10
lea r8, [rsp + 0x30]
mov rdx, rax
mov ecx, edi
mov rbx, rax
call qword [0x1400c2ff8]
movzx edi, al
mov rcx, rbx
test al, al
je 0x140065ac6
mov edx, 0x40
call fcn.14006f954
test rax, rax
je 0x140065acb
mov byte [rax], 0
jmp 0x140065acb
call fcn.14000fcfc
test edi, edi
jne 0x140065b1e
and dword [rsp + 0x30], 0
lea rdx, [rsp + 0x30]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_GetUserNameA]
mov ecx, dword [rsp + 0x30]
mov r8d, 0x100
test eax, eax
mov edx, 1
cmove ecx, r8d
mov dword [rsp + 0x30], ecx
call fcn.14000fd10
lea rdx, [rsp + 0x30]
mov rcx, rax
mov rbx, rax
call qword [sym.imp.ADVAPI32.dll_GetUserNameA]
mov edi, eax
test eax, eax
jne 0x140065b1e
mov rcx, rbx
call fcn.14000fcfc
neg edi
sbb rax, rax
and rax, rbx
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x140065b68
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
xor ebx, ebx
mov rcx, qword [0x1400c2fe8]
test rcx, rcx
jne 0x140065bbe
lea eax, [rbx + rbx*2]
mov r8d, 1
cdq
sub eax, edx
sar eax, 1
add eax, 0x200
movsxd rbx, eax
mov rdx, rbx
call fcn.14000fda0
mov edx, ebx
mov qword [0x1400c2fe8], rax
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov rcx, qword [0x1400c2fe8]
cmp eax, ebx
jge 0x140065b83
xor r9d, r9d
lea rdx, [0x1400ac784]
mov r8, rdi
call fcn.14000f5fc
mov rcx, rax
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rcx, rdi
mov rbx, rax
call fcn.14000fcfc
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x1400689b8
Capabilities:
Get memory capacity

Disassembly:
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xb0
mov rax, qword [0x1400bfa10]
xor rax, rsp
mov qword [rbp + 0x47], rax
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov edx, 8
lea rcx, [rbp - 0x29]
mov qword [rbp - 0x29], rax
call fcn.14003cf58
call qword [sym.imp.USER32.dll_GetCapture]
mov edx, 8
lea rcx, [rbp - 0x29]
mov qword [rbp - 0x29], rax
call fcn.14003cf58
call qword [sym.imp.USER32.dll_GetClipboardOwner]
mov edx, 8
lea rcx, [rbp - 0x29]
mov qword [rbp - 0x29], rax
call fcn.14003cf58
mov ecx, 0x1cbf
call qword [sym.imp.USER32.dll_GetQueueStatus]
mov edx, 4
lea rcx, [rbp - 0x21]
mov dword [rbp - 0x21], eax
call fcn.14003cf58
lea rcx, [rbp - 0x19]
call qword [sym.imp.USER32.dll_GetCursorPos]
mov edx, 8
lea rcx, [rbp - 0x19]
call fcn.14003cf58
lea rcx, [rbp - 0x11]
call qword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov edx, 0x38
lea rcx, [rbp - 0x11]
call fcn.14003cf58
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rcx, rax
lea r9, [rbp + 0x37]
lea rax, [rbp + 0x3f]
lea r8, [rbp + 0x2f]
mov qword [rsp + 0x20], rax
lea rdx, [rbp + 0x27]
call qword [sym.imp.KERNEL32.dll_GetThreadTimes]
mov edx, 0x20
lea rcx, [rbp + 0x27]
call fcn.14003cf58
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea r9, [rbp + 0x37]
lea rax, [rbp + 0x3f]
lea r8, [rbp + 0x2f]
mov qword [rsp + 0x20], rax
lea rdx, [rbp + 0x27]
call qword [sym.imp.KERNEL32.dll_GetProcessTimes]
mov edx, 0x20
lea rcx, [rbp + 0x27]
call fcn.14003cf58
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.14006eb50
add rsp, 0xb0
pop rbp
ret

Function at 0x140068ee0
Capabilities:
Connect pipe

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov ebx, edx
mov rbp, rcx
test ebx, ebx
je 0x140068f01
xor ebx, ebx
jmp 0x140068f31
mov rcx, qword [rbp + 0x20]
lea rdx, [rbp + 0x28]
call qword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
jne 0x140068f31
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp eax, 0x3e5
je 0x140068fb6
test eax, eax
je 0x140068f31
cmp eax, 0x217
jne 0x140068f6c
mov rcx, qword [rbp + 0x50]
lea rdx, [0x140068ec0]
mov rdi, qword [rbp + 0x20]
mov r8, rdi
mov rax, qword [rcx]
call qword [rax + 0x20]
test eax, eax
je 0x140068f56
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor edx, edx
mov rcx, rbp
call fcn.140068e28
test eax, eax
jne 0x140068ef9
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov ecx, esi
call fcn.140065c34
mov rdx, rax
lea rcx, str.Error_while_listening_to_named_pipe:__s
call fcn.14000f698
mov rcx, qword [rbp + 0x50]
mov rdi, rax
mov rbx, qword [rcx]
mov rcx, qword [rbp + 0x18]
call fcn.140067290
mov rcx, qword [rbp + 0x50]
xor r9d, r9d
mov r8, rax
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rdi
lea edx, [r9 + 1]
call qword [rbx]
mov rcx, rdi
call fcn.14000fcfc
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x14006af34
Capabilities:
Delete registry value
Query or enumerate registry value
Set registry value

Disassembly:
xor r8d, r8d
mov rdx, rcx
jmp fcn.14006b9c0
Function at 0x14006b100
Capabilities:
Query or enumerate registry key

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x20
lea ebx, [r8 + r8*2]
mov rsi, rdx
mov rdi, rcx
mov edx, 1
movsxd rcx, ebx
mov r14d, r8d
call fcn.14000fd10
mov edx, dword [rdi + 8]
mov r9d, ebx
mov rcx, qword [rdi]
mov r8, rax
mov rbp, rax
lea r10d, [rdx + 1]
mov dword [rdi + 8], r10d
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
xor r10d, r10d
test eax, eax
jne 0x14006b1ce
mov r9, rsi
mov r8, rbp
cmp byte [rbp], r10b
je 0x14006b1c9
mov al, byte [r8]
cmp al, 0x25
jne 0x14006b1b5
cmp byte [r8 + 1], r10b
je 0x14006b1b5
cmp byte [r8 + 2], r10b
je 0x14006b1b5
movsx edx, byte [r8 + 1]
movsx ecx, byte [r8 + 2]
sub edx, 0x30
sub ecx, 0x30
cmp edx, 9
setle al
dec al
and al, 7
sub dl, al
shl dl, 4
cmp ecx, 9
setle al
dec al
and al, 7
sub dl, al
add dl, cl
mov byte [r9], dl
inc r9
sub r14d, 1
je 0x14006b1d1
add r8, 3
jmp 0x14006b1c4
mov byte [r9], al
inc r8
inc r9
sub r14d, 1
je 0x14006b1d1
cmp byte [r8], r10b
jne 0x14006b163
mov byte [r9], r10b
jmp 0x14006b1d1
mov rsi, r10
mov rcx, rbp
call fcn.14000fcfc
mov rbx, qword [rsp + 0x30]
mov rax, rsi
mov rsi, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret

Function at 0x14006b730
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
push rbx
sub rsp, 0x40
mov dword [rsp + 0x50], 4
mov ebx, r8d
test rcx, rcx
je 0x14006b77b
lea rax, [r11 + 8]
xor r8d, r8d
mov qword [r11 - 0x20], rax
lea r9, [r11 + 0x20]
lea rax, [r11 - 0x18]
mov qword [r11 - 0x28], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x14006b77b
cmp dword [rsp + 0x50], 4
jne 0x14006b77b
cmp dword [rsp + 0x68], 4
mov eax, dword [rsp + 0x30]
je 0x14006b77d
mov eax, ebx
add rsp, 0x40
pop rbx
ret

Function at 0x14006b784
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
push rbp
push rsi
push rdi
sub rsp, 0x30
mov rsi, rdx
mov rdi, rcx
test rcx, rcx
je 0x14006b83d
lea rax, [r11 + 8]
xor r8d, r8d
mov qword [r11 - 0x20], rax
lea r9, [r11 + 0x18]
and qword [r11 - 0x28], 0
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x14006b83d
cmp dword [rsp + 0x60], 1
jne 0x14006b83d
mov ebp, dword [rsp + 0x50]
lea edx, [rax + 1]
inc ebp
mov ecx, ebp
call fcn.14000fd10
mov rbx, rax
lea r9, [rsp + 0x60]
lea rax, [rsp + 0x50]
xor r8d, r8d
mov qword [rsp + 0x28], rax
mov rdx, rsi
mov rcx, rdi
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x14006b835
cmp dword [rsp + 0x60], 1
jne 0x14006b835
mov eax, dword [rsp + 0x50]
cmp eax, ebp
jb 0x14006b82c
mov r8d, 0xb0
lea rdx, str...windowswinstore.c
lea rcx, str.size___allocsize
call fcn.140071a0c
mov eax, dword [rsp + 0x50]
mov byte [rax + rbx], 0
mov rax, rbx
jmp 0x14006b83f
mov rcx, rbx
call fcn.14000fcfc
xor eax, eax
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
pop rsi
pop rbp
ret
Function at 0x14006b84c
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push rbx
sub rsp, 0x150
mov rax, qword [0x1400bfa10]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov rbx, rcx
jmp 0x14006b8a9
lea r8, [rsp + 0x20]
mov rcx, rbx
lea rdx, [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x14006b898
mov rcx, qword [rsp + 0x20]
call fcn.14006b84c
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov rcx, rbx
mov r9d, 0x105
lea r8, [rsp + 0x30]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
je 0x14006b86c
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.14006eb50
add rsp, 0x150
pop rbx
ret

Function at 0x14006b8dc
Capabilities:
Delete registry value
Query or enumerate registry value
Set registry value

Disassembly:
mov rdx, rcx
xor r8d, r8d
xor ecx, ecx
jmp fcn.14006b9c0
Function at 0x14006bc50
Capabilities:
Check if file exists
Delete file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
xor ebx, ebx
mov rsi, r8
mov r10d, edx
mov rdi, rcx
test edx, edx
jne 0x14006bcaa
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x14006bca2
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x14006bca2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140065c34
mov r8, rax
lea rcx, str.Unable_to_delete__s:__s
mov rdx, rdi
call fcn.140060d6c
or qword [rsi], 0xffffffffffffffff
xor eax, eax
jmp 0x14006bd04
cmp edx, 2
mov qword [rsp + 0x30], rbx
mov ecx, ebx
mov eax, 0x80
setne cl
mov r9d, ebx
cmove r9d, eax
add ecx, 2
lea eax, [rdx - 2]
mov dword [rsp + 0x28], r9d
neg eax
mov dword [rsp + 0x20], ecx
mov edx, 0x80000000
mov eax, 0x40000000
sbb r8d, r8d
mov rcx, rdi
and r8d, 3
cmp r10d, 2
cmove edx, eax
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileA]
cmp rax, 0xffffffffffffffff
mov qword [rsi], rax
setne bl
mov eax, ebx
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret

Function at 0x14006c104
Capabilities:
Set registry value

Disassembly:
test rcx, rcx
je 0x14006c133
mov r11, rsp
mov dword [r11 + 0x18], r8d
sub rsp, 0x38
mov r9d, 4
lea rax, [r11 + 0x18]
mov dword [r11 - 0x10], r9d
xor r8d, r8d
mov qword [r11 - 0x18], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
add rsp, 0x38
ret

Function at 0x14006cfe0
Capabilities:
Get common file path
Set current directory

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x140
mov rax, qword [0x1400bfa10]
xor rax, rsp
mov qword [rsp + 0x130], rax
xor r14d, r14d
mov ebp, r9d
mov esi, r8d
mov rdi, rdx
mov rbx, rcx
test r8d, r8d
je 0x14006d036
lea rdx, [rsp + 0x20]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
dec eax
cmp eax, 0x102
cmova esi, r14d
mov dword [rdi], 0x88
test rbx, rbx
je 0x14006d049
mov rax, rbx
cmp byte [rbx], r14b
jne 0x14006d04c
mov rax, r14
mov qword [rdi + 0x50], rax
mov rcx, rdi
test ebp, ebp
je 0x14006d05f
call qword [sym.imp.COMDLG32.dll_GetSaveFileNameA]
jmp 0x14006d065
call qword [sym.imp.COMDLG32.dll_GetOpenFileNameA]
mov edi, eax
test rbx, rbx
je 0x14006d086
mov rdx, rbx
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
dec eax
cmp eax, 0x102
jbe 0x14006d086
mov byte [rbx], r14b
test esi, esi
je 0x14006d095
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov eax, edi
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.14006eb50
lea r11, [rsp + 0x140]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x140081698
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov qword [rax + 8], rcx
push rbp
mov rbp, rsp
sub rsp, 0x20
test rcx, rcx
jne 0x140081538
call fcn.140080750
mov dword [rax], 0x16
call fcn.140080630
or eax, 0xffffffff
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop rbp
ret
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x140081520
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
shr ecx, 0xc
test cl, 1
jne 0x140081520
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
mov rax, qword [rbp + 0x10]
shr ecx, 1
test cl, 1
je 0x14008156a
lock or dword [rax + 0x14], 0x10
jmp 0x140081520
lock or dword [rax + 0x14], 1
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
test ecx, 0x4c0
jne 0x140081587
mov rcx, qword [rbp + 0x10]
call fcn.14008805c
mov rax, qword [rbp + 0x10]
mov rcx, qword [rax + 8]
mov qword [rax], rcx
mov rbx, qword [rbp + 0x10]
mov rcx, rbx
call fcn.1400812fc
mov rdx, qword [rbp + 0x10]
mov ecx, eax
mov r8d, dword [rdx + 0x20]
mov rdx, qword [rdx + 8]
call fcn.140087720
mov dword [rbx + 0x10], eax
mov rax, qword [rbp + 0x10]
mov edx, dword [rax + 0x10]
lea ecx, [rdx + 1]
cmp ecx, 1
ja 0x1400815de
neg edx
sbb ecx, ecx
and ecx, 8
add ecx, 8
lock or dword [rax + 0x14], ecx
mov rax, qword [rbp + 0x10]
and dword [rax + 0x10], 0
jmp 0x140081520
mov ecx, dword [rax + 0x14]
test cl, 6
jne 0x14008164a
mov rcx, qword [rbp + 0x10]
call fcn.1400812fc
cmp eax, 0xffffffff
je 0x140081631
mov rcx, qword [rbp + 0x10]
call fcn.1400812fc
cmp eax, 0xfffffffe
je 0x140081631
mov rbx, qword [rbp + 0x10]
mov rcx, rbx
call fcn.1400812fc
movsxd rdi, eax
lea rsi, [0x1400c41a0]
mov rcx, rbx
sar rdi, 6
call fcn.1400812fc
and eax, 0x3f
shl rax, 6
add rax, qword [rsi + rdi*8]
jmp 0x140081638
lea rax, [0x1400bfbe0]
mov al, byte [rax + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x14008164a
mov rax, qword [rbp + 0x10]
lock or dword [rax + 0x14], 0x20
mov rax, qword [rbp + 0x10]
cmp dword [rax + 0x20], 0x200
jne 0x140081680
mov ecx, dword [rax + 0x14]
shr ecx, 6
test cl, 1
je 0x14008167c
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
shr ecx, 8
test cl, 1
jne 0x14008167c
mov rax, qword [rbp + 0x10]
mov dword [rax + 0x20], 0x1000
mov rax, qword [rbp + 0x10]
dec dword [rax + 0x10]
mov rcx, qword [rax]
movzx edx, byte [rcx]
inc rcx
mov qword [rax], rcx
mov eax, edx
jmp 0x140081523
jmp 0x1400814f0
Function at 0x6da7cc40
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x6da9d5e4]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x6da7cdc8
mov rax, qword [0x6da9d5e8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x6da7cc8c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x6da7cd15
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x6da7cc70
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x6da7cdfd
mov rax, qword [0x6da9d5e8]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call sym._GetPEImageBase
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x6da9d5e8]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x6da7cde0
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x6da7cd0e
sub eax, 0x40
and eax, 0xffffffbf
jne 0x6da7cd70
add dword [0x6da9d5e4], 1
cmp edi, 8
jae 0x6da7cd43
test dil, 4
jne 0x6da7cdb4
test edi, edi
je 0x6da7cd38
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x6da7cdcf
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, edi
sub edi, 1
mov rdx, qword [rbp + rax - 8]
cmp edi, 8
mov qword [rbx + rax - 8], rdx
jb 0x6da7cd38
and edi, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, edi
mov qword [rbx + rdx], rcx
jb 0x6da7cd5c
jmp 0x6da7cd38
add rsi, qword [0x6da9d5e8]
mov r8d, 0x40
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x6da7cd0e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x6da7cd38
xor esi, esi
jmp 0x6da7cc97
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x6da7cd38
mov rax, qword [0x6da9d5e8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call sym.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call sym.__report_error
nop
nop dword [rax]

Function at 0x6da7d550
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x6da9d8c0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x6da9d8a0]
test rbx, rbx
je 0x6da7d5a4
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x6da7d59b
test rsi, rsi
je 0x6da7d59b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x6da7d580
lea rcx, [0x6da9d8c0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x6da7d7e0
Capabilities:
Parse pe header

Disassembly:
cmp word [rcx], 0x5a4d
je 0x6da7d7f0
xor eax, eax
ret
jmp sym._ValidateImageBase.part.0

Function at 0x6da7d800
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x6da7d841
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
mov r8d, dword [rax + 0xc]
cmp r8, rdx
mov rcx, r8
ja 0x6da7d838
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x6da7d843
add rax, 0x28
cmp rax, r9
jne 0x6da7d824
xor eax, eax
ret

Function at 0x6da7d8e0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x6da9a1f0]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x6da7d94d
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6da7d94d
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x6da7d94d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x6da7d944
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x6da7d94f
add rax, 0x28
cmp rax, r9
jne 0x6da7d930
xor eax, eax
add rsp, 0x28
ret

Function at 0x6da7da50
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x6da9a1f0]
xor eax, eax
cmp word [r8], 0x5a4d
mov rdx, rcx
je 0x6da7da70
add rsp, 0x28
ret
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6da7da68
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x6da7dacd
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x6da7dac4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x6da7dad4
add rax, 0x28
cmp rax, r9
jne 0x6da7dab0
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret

Function at 0x6da7daf0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x6da9a1f0]
cmp word [r11], 0x5a4d
mov r9d, ecx
jne 0x6da7db5e
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6da7db5e
movsxd rax, dword [r11 + 0x3c]
add rax, r11
mov edx, dword [rax + 0x90]
test edx, edx
je 0x6da7db5e
movzx ecx, word [rax + 0x14]
lea rcx, [rax + rcx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x6da7db5e
sub eax, 1
lea rax, [rax + rax*4]
lea rax, [rcx + rax*8 + 0x28]
mov r10d, dword [rcx + 0xc]
cmp rdx, r10
mov r8, r10
jb 0x6da7db55
add r8d, dword [rcx + 8]
cmp rdx, r8
jb 0x6da7db65
add rcx, 0x28
cmp rcx, rax
jne 0x6da7db40
xor eax, eax
add rsp, 0x28
ret
add rdx, r11
jne 0x6da7db78
jmp 0x6da7db5e
sub r9d, 1
add rdx, 0x14
mov ecx, dword [rdx + 4]
test ecx, ecx
jne 0x6da7db86
mov eax, dword [rdx + 0xc]
test eax, eax
je 0x6da7db5e
test r9d, r9d
jg 0x6da7db70
mov eax, dword [rdx + 0xc]
add rax, r11
add rsp, 0x28
ret
Function at 0x6da7dec0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call sym.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call sym.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop
nop
nop
nop
nop
nop
nop