joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14003c450
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rcx
push r14
sub rsp, 0x40
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x60], rbp
mov qword [rsp + 0x68], rsi
mov rbp, r8
mov r14, rdx
lea rsi, [0x1400ada60]
cmp qword [0x1400ada78], 0x10
cmovae rsi, qword [0x1400ada60]
mov ecx, 0x18
call fcn.140052324
mov rbx, rax
mov qword [rsp + 0x50], rax
test rax, rax
je 0x14003c4c3
mov qword [rax + 8], 0
mov dword [rax + 0x10], 1
mov rcx, rsi
call fcn.140051c50
mov qword [rbx], rax
jmp 0x14003c4c5
xor ebx, ebx
test rbx, rbx
jne 0x14003c4d5
mov ecx, 0x8007000e
call fcn.140051af0
int3
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], r14
mov r9d, 4
xor r8d, r8d
mov rdx, qword [rbx]
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
test eax, eax
setne r14b
or ecx, 0xffffffff
lock xadd dword [rbx + 0x10], ecx
cmp ecx, 1
jne 0x14003c544
mov rcx, qword [rbx]
test rcx, rcx
je 0x14003c521
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rbx], 0
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x14003c537
call fcn.140052610
mov qword [rbx + 8], 0
mov edx, 0x18
mov rcx, rbx
call fcn.140052610
test r14b, r14b
je 0x14003c55d
mov ecx, esi
call fcn.14003bfa0
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
jmp 0x14003c55f
mov al, 1
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x140041f50
Capabilities:
Identify system language via api

Disassembly:
sub rsp, 0x28
cmp byte [0x1400a9f69], 0
je 0x140041f68
mov eax, dword [0x1400a9f6c]
add rsp, 0x28
ret
call qword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
movzx r8d, ax
mov edx, r8d
and edx, 0x3ff
sub edx, 7
je 0x140041fce
sub edx, 3
je 0x140041faa
sub edx, 0xb
je 0x140041fa0
cmp edx, 1
je 0x140041f96
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 0x1400470d0
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xd0
mov qword [rbp - 0x41], 0xfffffffffffffffe
mov qword [rsp + 0x118], rbx
mov rax, qword [0x1400a8020]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov r14d, r8d
mov rdi, rdx
mov rsi, rcx
xor r15d, r15d
mov dword [rbp - 0x65], 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 - 0x39], rax
test rax, rax
jne 0x140047194
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp - 0x69], eax
lea rax, vtable.LogItem.0
mov qword [rbp - 0x29], rax
mov qword [rbp - 9], 7
mov qword [rbp - 0x11], r15
mov word [rbp - 0x21], r15w
mov qword [rbp + 0x17], 7
mov qword [rbp + 0xf], r15
mov word [rbp - 1], r15w
mov dword [rbp + 0x1f], 1
mov dword [rbp + 0x23], 1
lea rdx, str.Cannot_create_read_event._Error:
lea rcx, [rbp - 0x29]
call fcn.14001ccb0
mov rcx, rax
lea rdx, [rbp - 0x69]
call fcn.14001ca50
nop
jmp 0x1400472c5
mov qword [rbp - 0x49], rax
mov qword [rbp - 0x51], r15
lea rax, [rbp - 0x61]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x65]
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 0x1400471d0
cmp eax, 0x3e5
jne 0x1400472ce
mov edx, dword [rsi + 0x34]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x140047248
lea rax, vtable.LogItem.0
mov qword [rbp - 0x29], rax
mov qword [rbp - 9], 7
mov qword [rbp - 0x11], r15
mov word [rbp - 0x21], r15w
mov qword [rbp + 0x17], 7
mov qword [rbp + 0xf], r15
mov word [rbp - 1], r15w
mov dword [rbp + 0x1f], 1
mov dword [rbp + 0x23], 1
lea rdx, str.Timeout_occured_while_reading_from_heci_device.
lea rcx, [rbp - 0x29]
call fcn.14001ccb0
nop
lea rcx, [rbp - 0x29]
call fcn.14001c830
mov rdx, rbx
mov rcx, rsi
call fcn.1400460a0
jmp 0x1400472d6
mov r9d, 1
lea r8, [rbp - 0x65]
lea rdx, [rbp - 0x61]
mov rcx, qword [rsi + 0x28]
call qword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
jne 0x1400472db
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp - 0x69], eax
lea rax, vtable.LogItem.0
mov qword [rbp - 0x29], rax
mov qword [rbp - 9], 7
mov qword [rbp - 0x11], r15
mov word [rbp - 0x21], r15w
mov qword [rbp + 0x17], 7
mov qword [rbp + 0xf], r15
mov word [rbp - 1], r15w
mov dword [rbp + 0x1f], 1
mov dword [rbp + 0x23], 1
lea rdx, str.Read_function_fail_to_finish._Error:
lea rcx, [rbp - 0x29]
call fcn.14001ccb0
mov rcx, rax
lea rdx, [rbp - 0x69]
call fcn.14001ca50
nop
lea rcx, [rbp - 0x29]
call fcn.14001c830
mov rcx, rsi
call fcn.140046f00
or edi, 0xffffffff
jmp 0x1400472de
mov edi, dword [rbp - 0x65]
cmp rbx, 0xffffffffffffffff
je 0x1400472ed
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.1400522f0
mov rbx, qword [rsp + 0x118]
add rsp, 0xd0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x14004d600
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 [0x1400a8020]
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 0x14004d72c
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
lea rcx, [rbp - 0x20]
call fcn.14001bbf0
nop
mov rcx, rax
call fcn.14004dd80
mov rdi, rax
lea rax, vtable.std::exception.0
mov qword [rbp - 0x80], rax
xor eax, eax
mov qword [rbp - 0x78], rax
mov qword [rbp - 0x70], rax
lea rcx, [rdi + 8]
lea rdx, [rbp - 0x78]
call qword [sym.imp.VCRUNTIME140.dll___std_exception_copy]
nop
lea rax, vtable.BaseException.0
mov qword [rbp - 0x80], rax
lea rdx, [rdi + 0x18]
mov qword [rbp - 0x50], reloc.WS2_32.dll_ntohs
mov qword [rbp - 0x58], rbx
mov byte [rbp - 0x68], bl
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rcx, [rbp - 0x68]
call fcn.140022750
nop
lea rax, vtable.ExceptionStream_class_Exception__class_BaseException_.0
mov qword [rbp - 0x80], rax
lea rdx, [rdi + 0x38]
mov qword [rbp - 0x30], reloc.WS2_32.dll_ntohs
mov qword [rbp - 0x38], rbx
mov byte [rbp - 0x48], bl
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rcx, [rbp - 0x48]
call fcn.140022750
nop
lea rax, vtable.Exception.0
mov qword [rbp - 0x80], rax
lea rdx, [0x1400a37c0]
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 0x14004d74e
mov r8, rbx
jmp 0x14004d75c
or r8, 0xffffffffffffffff
inc r8
cmp word [rdx + r8*2], bx
jne 0x14004d752
lea rcx, [rsp + 0x60]
call fcn.140022240
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 0x14004d7ba
lea rax, [rbp + 0x40]
or rbx, 0xffffffffffffffff
nop
inc rbx
cmp word [rax + rbx*2], 0
jne 0x14004d7b0
mov r8, rbx
lea rdx, [rbp + 0x40]
lea rcx, [rsp + 0x30]
call fcn.140022240
lea rdx, [rsp + 0x30]
mov rcx, rsi
call fcn.14001bf20
nop
mov r8, qword [rsp + 0x78]
cmp r8, 8
jb 0x14004d7f1
inc r8
mov rdx, qword [rsp + 0x60]
call fcn.140022b80
mov rax, rsi
mov rcx, qword [rbp + 0x250]
xor rcx, rsp
call fcn.1400522f0
mov rbx, qword [rsp + 0x390]
add rsp, 0x360
pop rdi
pop rsi
pop rbp
ret
Function at 0x14004e7c0
Capabilities:
Delete file

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x58]
sub rsp, 0x150
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rdi
mov rax, qword [0x1400a8020]
xor rax, rsp
mov qword [rbp + 0x40], rax
mov rbx, rcx
call fcn.14004e610
cmp qword [rbx + 0x20], 8
jb 0x14004e803
mov rcx, qword [rbx + 8]
jmp 0x14004e807
lea rcx, [rbx + 8]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x14004e947
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], eax
mov qword [rsp + 0x40], 7
xor edi, edi
mov qword [rsp + 0x38], rdi
mov word [rsp + 0x28], di
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rbx + 8]
lea rcx, [rsp + 0x28]
call fcn.140022390
lea rdx, [rsp + 0x28]
lea rcx, [rbp - 0x40]
call fcn.14001bf20
mov rbx, rax
lea rcx, [rbp - 0x20]
call fcn.14001bbf0
nop
lea rdx, str.Error_when_deleting_file:
mov rcx, rax
call fcn.1400244a0
mov rcx, rax
mov rdx, rbx
call fcn.14002f240
mov rcx, rax
lea rdx, str.Last_error:
call fcn.1400244a0
mov rcx, rax
lea rdx, [rsp + 0x20]
call fcn.1400317d0
mov rbx, rax
lea rax, vtable.std::exception.0
mov qword [rsp + 0x60], rax
xor eax, eax
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x70], rax
lea rcx, [rbx + 8]
lea rdx, [rsp + 0x68]
call qword [sym.imp.VCRUNTIME140.dll___std_exception_copy]
nop
lea rax, vtable.BaseException.0
mov qword [rsp + 0x60], rax
lea rdx, [rbx + 0x18]
mov qword [rbp - 0x70], reloc.WS2_32.dll_ntohs
mov qword [rbp - 0x78], rdi
mov byte [rsp + 0x78], dil
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rcx, [rsp + 0x78]
call fcn.140022750
nop
lea rax, vtable.ExceptionStream_class_Exception__class_BaseException_.0
mov qword [rsp + 0x60], rax
lea rdx, [rbx + 0x38]
mov qword [rbp - 0x50], reloc.WS2_32.dll_ntohs
mov qword [rbp - 0x58], rdi
mov byte [rbp - 0x68], dil
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rcx, [rbp - 0x68]
call fcn.140022750
nop
lea rax, vtable.Exception.0
mov qword [rsp + 0x60], rax
lea rdx, [0x1400a37c0]
lea rcx, [rsp + 0x60]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
mov rcx, qword [rbp + 0x40]
xor rcx, rsp
call fcn.1400522f0
lea r11, [rsp + 0x150]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x14004e970
Capabilities:
Move file

Disassembly:
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x90]
sub rsp, 0x190
mov qword [rsp + 0x70], 0xfffffffffffffffe
mov qword [rsp + 0x1c0], rbx
mov rax, qword [0x1400a8020]
xor rax, rsp
mov qword [rbp + 0x80], rax
mov rdi, rdx
mov rbx, rcx
call fcn.14004e610
cmp qword [rdi + 0x18], 8
jb 0x14004e9bc
mov rdx, qword [rdi]
jmp 0x14004e9bf
mov rdx, rdi
cmp qword [rbx + 0x20], 8
jb 0x14004e9cc
mov rcx, qword [rbx + 8]
jmp 0x14004e9d0
lea rcx, [rbx + 8]
call qword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x14004eb51
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], eax
mov qword [rsp + 0x48], 7
xor esi, esi
mov qword [rsp + 0x40], rsi
mov word [rsp + 0x30], si
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rdi
lea rcx, [rsp + 0x30]
call fcn.140022390
lea rdx, [rsp + 0x30]
lea rcx, [rbp - 0x20]
call fcn.14001bf20
mov rdi, rax
mov qword [rsp + 0x68], 7
mov qword [rsp + 0x60], rsi
mov word [rsp + 0x50], si
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rbx + 8]
lea rcx, [rsp + 0x50]
call fcn.140022390
lea rdx, [rsp + 0x50]
lea rcx, [rbp]
call fcn.14001bf20
mov rbx, rax
lea rcx, [rbp + 0x20]
call fcn.14001bbf0
nop
lea rdx, str.Error_when_renaming_file_from
mov rcx, rax
call fcn.1400244a0
mov rcx, rax
mov rdx, rbx
call fcn.14002f240
mov rcx, rax
call fcn.14004f400
mov rcx, rax
mov rdx, rdi
call fcn.14002f240
mov rcx, rax
lea rdx, str.Last_error:
call fcn.1400244a0
mov rcx, rax
lea rdx, [rsp + 0x20]
call fcn.1400317d0
mov rbx, rax
lea rax, vtable.std::exception.0
mov qword [rbp - 0x80], rax
xor eax, eax
mov qword [rbp - 0x78], rax
mov qword [rbp - 0x70], rax
lea rcx, [rbx + 8]
lea rdx, [rbp - 0x78]
call qword [sym.imp.VCRUNTIME140.dll___std_exception_copy]
nop
lea rax, vtable.BaseException.0
mov qword [rbp - 0x80], rax
lea rdx, [rbx + 0x18]
mov qword [rbp - 0x50], reloc.WS2_32.dll_ntohs
mov qword [rbp - 0x58], rsi
mov byte [rbp - 0x68], sil
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rcx, [rbp - 0x68]
call fcn.140022750
nop
lea rax, vtable.ExceptionStream_class_Exception__class_BaseException_.0
mov qword [rbp - 0x80], rax
lea rdx, [rbx + 0x38]
mov qword [rbp - 0x30], reloc.WS2_32.dll_ntohs
mov qword [rbp - 0x38], rsi
mov byte [rbp - 0x48], sil
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rcx, [rbp - 0x48]
call fcn.140022750
nop
lea rax, vtable.Exception.0
mov qword [rbp - 0x80], rax
lea rdx, [0x1400a37c0]
lea rcx, [rbp - 0x80]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
mov rcx, qword [rbp + 0x80]
xor rcx, rsp
call fcn.1400522f0
mov rbx, qword [rsp + 0x1c0]
add rsp, 0x190
pop rdi
pop rsi
pop rbp
ret
Function at 0x14004ed30
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
lea rbp, [rsp - 0x80]
sub rsp, 0x180
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov rax, qword [0x1400a8020]
xor rax, rsp
mov qword [rbp + 0x70], rax
mov esi, r8d
mov rdi, rdx
mov rbx, rcx
mov dword [rsp + 0x38], r8d
xor r14d, r14d
mov dword [rsp + 0x30], r14d
test rdx, rdx
je 0x14004eef1
mov edx, 0xc0000000
lea r9d, [r14 + 2]
call fcn.14004e310
mov dword [rsp + 0x34], r14d
mov qword [rsp + 0x20], r14
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 0x14004ef7b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x30], eax
lea rdx, [rbx + 8]
mov qword [rsp + 0x68], 7
mov qword [rsp + 0x60], r14
mov word [rsp + 0x50], r14w
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rcx, [rsp + 0x50]
call fcn.140022390
lea rdx, [rsp + 0x50]
lea rcx, [rbp - 0x30]
call fcn.14001bf20
mov rbx, rax
lea rcx, [rbp + 0x10]
call fcn.14001bbf0
nop
mov rcx, rax
call fcn.14004f540
mov rcx, rax
lea rdx, [rsp + 0x38]
call fcn.140047a70
mov rcx, rax
lea rdx, str._bytes_to_file
call fcn.1400244a0
mov rcx, rax
mov rdx, rbx
call fcn.14002f240
mov rcx, rax
lea rdx, str.Last_error:
call fcn.1400244a0
mov rcx, rax
lea rdx, [rsp + 0x30]
call fcn.1400317d0
mov rbx, rax
lea rax, vtable.std::exception.0
mov qword [rsp + 0x70], rax
xor eax, eax
mov qword [rsp + 0x78], rax
mov qword [rbp - 0x80], rax
lea rcx, [rbx + 8]
lea rdx, [rsp + 0x78]
call qword [sym.imp.VCRUNTIME140.dll___std_exception_copy]
nop
lea rax, vtable.BaseException.0
mov qword [rsp + 0x70], rax
lea rdx, [rbx + 0x18]
mov qword [rbp - 0x60], reloc.WS2_32.dll_ntohs
mov qword [rbp - 0x68], r14
mov byte [rbp - 0x78], r14b
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rcx, [rbp - 0x78]
call fcn.140022750
nop
lea rax, vtable.ExceptionStream_class_Exception__class_BaseException_.0
mov qword [rsp + 0x70], rax
lea rdx, [rbx + 0x38]
mov qword [rbp - 0x40], reloc.WS2_32.dll_ntohs
mov qword [rbp - 0x48], r14
mov byte [rbp - 0x58], r14b
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rcx, [rbp - 0x58]
call fcn.140022750
nop
lea rax, vtable.Exception.0
mov qword [rsp + 0x70], rax
lea rdx, [0x1400a37c0]
lea rcx, [rsp + 0x70]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
mov qword [rsp + 0x68], reloc.WS2_32.dll_ntohs
mov qword [rsp + 0x60], r14
mov byte [rsp + 0x50], r14b
mov r8d, reloc.WS2_32.dll_send
lea rdx, str.Invalid_data_passed
lea rcx, [rsp + 0x50]
call fcn.140022620
nop
mov dword [rsp + 0x30], 1
xor eax, eax
mov qword [rbp - 0x28], rax
mov qword [rbp - 0x20], rax
lea rax, vtable.BaseException.0
mov qword [rbp - 0x30], rax
mov qword [rbp], reloc.WS2_32.dll_ntohs
mov qword [rbp - 8], r14
mov byte [rbp - 0x18], 0
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rsp + 0x50]
lea rcx, [rbp - 0x18]
call fcn.140022750
nop
lea rax, vtable.AssertException.0
mov qword [rbp - 0x30], rax
lea rdx, [0x1400a3648]
lea rcx, [rbp - 0x30]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
mov rcx, qword [rbp + 0x70]
xor rcx, rsp
call fcn.1400522f0
add rsp, 0x180
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x140051700
Capabilities:
Print debug messages

Disassembly:
sub rsp, 0x58
mov rax, qword [0x1400a8020]
xor rax, rsp
mov qword [rsp + 0x40], rax
lea r8, [0x14008f664]
lea rcx, [rsp + 0x20]
call fcn.14003dd70
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 0x140051753
mov rdx, qword [rsp + 0x20]
inc r8
call fcn.140022b80
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1400522f0
add rsp, 0x58
ret

Function at 0x1400524b4
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
sub rsp, 0x18
mov r8, rcx
mov eax, 0x5a4d
cmp word [0x140000000], ax
jne 0x140052545
movsxd rax, dword [0x14000003c]
lea rdx, [0x140000000]
lea rcx, [rax + rdx]
cmp dword [rcx], 0x4550
jne 0x140052545
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140052545
sub r8, rdx
movzx eax, word [rcx + 0x14]
lea rdx, [rcx + 0x18]
add rdx, rax
movzx eax, word [rcx + 6]
lea rcx, [rax + rax*4]
lea r9, [rdx + rcx*8]
mov qword [rsp], rdx
cmp rdx, r9
je 0x140052529
mov ecx, dword [rdx + 0xc]
cmp r8, rcx
jb 0x140052523
mov eax, dword [rdx + 8]
add eax, ecx
cmp r8, rax
jb 0x14005252b
add rdx, 0x28
jmp 0x140052508
xor edx, edx
test rdx, rdx
jne 0x140052534
xor al, al
jmp 0x14005254b
test dword [rdx + 0x24], 0x80000000
je 0x140052541
xor al, al
jmp 0x14005254b
mov al, 1
jmp 0x14005254b
xor al, al
jmp 0x14005254b
add rsp, 0x18
ret
Function at 0x276d31890
Capabilities:
Create thread

Disassembly:
sub rsp, 0x38
cmp edx, 1
je 0x276d318a8
mov eax, 1
add rsp, 0x38
ret
mov qword [rsp + 0x28], 0
xor r9d, r9d
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], 0
lea r8, [0x276d31540]
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, 1
add rsp, 0x38
ret

Function at 0x276d3b190
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.276d41250
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call fcn.276d41250
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]

Function at 0x276d3b200
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x50
movsxd rbx, dword [0x276d95064]
mov r12, rcx
test ebx, ebx
jle 0x276d3b330
mov rax, qword [0x276d95068]
xor r9d, r9d
add rax, 0x18
nop dword [rax + rax]
mov r8, qword [rax]
cmp r8, r12
ja 0x276d3b24b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp r12, r8
jb 0x276d3b2d5
add r9d, 1
add rax, 0x28
cmp r9d, ebx
jne 0x276d3b230
mov rcx, r12
call fcn.276d3ba60
mov rsi, rax
test rax, rax
je 0x276d3b352
mov rax, qword [0x276d95068]
lea rbx, [rbx + rbx*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rsi
mov dword [rax], 0
call fcn.276d3bb90
mov edx, dword [rsi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x276d95068]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x276d3b337
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x276d3b2ce
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x276d3b2e0
add dword [0x276d95064], 1
add rsp, 0x50
pop rbx
pop rsi
pop r12
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 4
mov eax, 0x40
cmovne r8d, eax
add rbx, qword [0x276d95068]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x276d3b2ce
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.276d3b190
nop dword [rax]
xor ebx, ebx
jmp 0x276d3b258
mov rax, qword [0x276d95068]
mov edx, dword [rsi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.276d3b190
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.276d3b190
nop
nop word cs:[rax + rax]
nop dword [rax]
Function at 0x276d3b6b0
Capabilities:
Get thread local storage value

Disassembly:
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r13, [0x276d950a0]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x276d95080]
test rbx, rbx
je 0x276d3b70c
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x276d3b703
test r12, r12
je 0x276d3b703
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x276d3b6e8
mov rcx, r13
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop r12
pop r13
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x276d3ba60
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x276d8f750]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x276d3ba80
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x276d3ba88
ret
cmp word [r8 + 0x18], 0x20b
jne 0x276d3ba80
movzx eax, word [r8 + 0x14]
sub rcx, rdx
movzx edx, word [r8 + 6]
lea rax, [r8 + rax + 0x18]
test edx, edx
je 0x276d3bad5
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x276d3bacc
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x276d3ba80
add rax, 0x28
cmp rax, r9
jne 0x276d3bab8
xor eax, eax
ret

Function at 0x276d3bae0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x276d8f750]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x276d3bb00
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x276d3bb08
mov eax, r8d
ret
cmp word [rax + 0x18], 0x20b
jne 0x276d3bb00
movzx r8d, word [rax + 6]
mov eax, r8d
ret

Function at 0x276d3bb90
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x276d8f750]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x276d3bbb0
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
cmp dword [rdx], 0x4550
je 0x276d3bbb8
mov rax, r8
ret
cmp word [rdx + 0x18], 0x20b
cmove r8, rax
mov rax, r8
ret
Function at 0x276d424d0
Capabilities:
Print debug messages

Disassembly:
sub rsp, 0x98
movabs rax, 0x6c6320726f727245
movabs rdx, 0x7520676e696e6165
mov qword [rsp + 0x20], rax
movabs rax, 0x6b5f6e6970732070
mov qword [rsp + 0x28], rdx
movabs rdx, 0x20726f6620737965
mov qword [rsp + 0x30], rax
movabs rax, 0x20646165726874
mov qword [rsp + 0x38], rdx
xor edx, edx
mov qword [rsp + 0x40], rax
xor eax, eax
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x68], 0
mov qword [rsp + 0x70], 0
mov qword [rsp + 0x78], 0
mov qword [rsp + 0x80], 0
mov word [rsp + 0x88], ax
mov byte [rsp + 0x8a], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea rdx, [rsp + 0x47]
mov r8d, 0xa
mov ecx, eax
call qword [sym.imp.msvcrt.dll__ultoa]
cmp byte [rsp + 0x47], 0
je 0x276d425e2
mov eax, 0x28
lea rcx, [rsp + 0x20]
jmp 0x276d425ba
add rax, 1
cmp rax, 0x6b
je 0x276d425d7
cmp byte [rcx + rax], 0
movsxd rdx, eax
jne 0x276d425b0
cmp edx, 0x6a
je 0x276d425d7
lea eax, [rdx + 1]
cdqe
mov byte [rsp + rdx + 0x20], 0xa
mov byte [rsp + rax + 0x20], 0
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call sub.msvcrt.dll_abort
mov eax, 0x28
mov edx, 0x27
lea rcx, [rsp + 0x20]
jmp 0x276d425cb

Function at 0x276d42980
Capabilities:
Allocate thread local storage

Disassembly:
push r13
push r12
push rsi
push rbx
sub rsp, 0x28
lea rsi, [0x276d95b70]
mov rcx, rsi
call fcn.276d42240
lea r13, [rax + 8]
mov r12, rax
mov rcx, r13
call fcn.276d41b40
mov ebx, dword [0x276d95b70]
test ebx, ebx
jne 0x276d429f0
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x276d8cbc8], eax
cmp eax, 0xffffffff
je 0x276d496d6
mov dword [0x276d95b70], 1
mov rcx, r13
call fcn.276d41e60
test r12, r12
je 0x276d42a22
mov rcx, r12
add rsp, 0x28
pop rbx
pop rsi
pop r12
pop r13
jmp fcn.276d42600
cmp ebx, 1
je 0x276d429d1
mov ecx, 2
call qword [fcn.276d41250]
mov r9d, ebx
mov r8, rsi
lea rdx, str._once__p_is__d_n
mov rcx, rax
call sub.msvcrt.dll_fprintf
mov rcx, r13
call fcn.276d41e60
test r12, r12
jne 0x276d429de
add rsp, 0x28
pop rbx
pop rsi
pop r12
pop r13
ret
call sub.msvcrt.dll_abort
nop