joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180029e90
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x198]
sub rsp, 0x290
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov rax, qword [0x180154010]
xor rax, rsp
mov qword [rbp + 0x180], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x48], rax
xor esi, esi
mov dword [rsp + 0x44], esi
lea rbx, [0x18015bf70]
mov qword [rsp + 0x48], rbx
xor edx, edx
mov r8d, 0x107
lea rcx, [rsp + 0x60]
call fcn.18006cd10
nop
xor edx, edx
mov r8d, 0x104
lea rcx, [rbp + 0x70]
call fcn.18006cd10
mov dword [rsp + 0x40], 0x104
lea r8, str.C:Program_FilesNVIDIA_CorporationNvStreamSrv
mov edx, 0x104
lea rcx, [rbp + 0x70]
call fcn.180092f08
cmp byte [str.SOFTWARENVIDIA_CorporationNvStreamSrv], sil
je 0x18002a00a
mov rdi, qword [rsp + 0x60]
test rdi, rdi
je 0x180029f67
lea rdx, [rsp + 0x68]
lea rcx, str.SOFTWARENVIDIA_CorporationNvStreamSrv
call fcn.1800f9950
test eax, eax
je 0x180029fb8
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x180029f67
mov qword [rsp + 0x60], rsi
mov byte [rsp + 0x68], al
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 0x20119
xor r8d, r8d
lea rdx, str.SOFTWARENVIDIA_CorporationNvStreamSrv
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
sete dil
test eax, eax
jne 0x180029fae
lea r8, str.SOFTWARENVIDIA_CorporationNvStreamSrv
mov edx, 0xff
lea rcx, [rsp + 0x68]
call fcn.180092f08
test dil, dil
je 0x18002a00a
mov rdi, qword [rsp + 0x60]
test rdi, rdi
je 0x18002a00a
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0x70]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rsi
mov r9d, 0xffff
lea r8, str.InstallLocation
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegGetValueA]
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x18002a00a
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x18002a00a
mov qword [rsp + 0x60], rsi
mov byte [rsp + 0x68], al
mov qword [0x18015bf80], rsi
mov qword [0x18015bf88], 0xf
mov byte [0x18015bf70], 0
lea rax, [rbp + 0x70]
mov r8, 0xffffffffffffffff
nop
inc r8
cmp byte [rax + r8], 0
jne 0x18002a030
lea rdx, [rbp + 0x70]
mov rcx, rbx
call fcn.180002d60
mov dword [rsp + 0x44], 1
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x18002a06b
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x18002a06b
mov qword [rsp + 0x60], rsi
mov byte [rsp + 0x68], al
mov rax, rbx
mov rcx, qword [rbp + 0x180]
xor rcx, rsp
call fcn.18003f930
lea r11, [rsp + 0x290]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x18002a0e0
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x170
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov rax, qword [0x180154010]
xor rax, rsp
mov qword [rsp + 0x160], rax
cmp byte [0x180155170], 0
jne 0x18002a265
mov byte [0x180155170], 1
mov ebx, dword [0x180155168]
mov rbp, qword [str.RxDiagDisabledLogsBitmap]
mov rdi, qword [str.SOFTWARENVIDIA_CorporationNvStreamSrv]
xor edx, edx
mov r8d, 0x107
lea rcx, [rsp + 0x50]
call fcn.18006cd10
nop
test rdi, rdi
je 0x18002a23a
cmp byte [rdi], 0
je 0x18002a23a
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x18002a1b1
mov rax, rdi
lea r9, [rsp + 0x58]
sub r9, rdi
nop dword [rax]
nop dword [rax + rax]
movzx r8d, byte [rax]
movzx edx, byte [rax + r9]
sub r8d, edx
jne 0x18002a195
inc rax
test edx, edx
jne 0x18002a180
test r8d, r8d
je 0x18002a1fa
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x18002a1b1
mov qword [rsp + 0x50], 0
mov byte [rsp + 0x58], al
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9d, 0x20119
xor r8d, r8d
mov rdx, rdi
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
sete sil
test eax, eax
jne 0x18002a1f0
mov r8, rdi
mov edx, 0xff
lea rcx, [rsp + 0x58]
call fcn.180092f08
test sil, sil
je 0x18002a23a
mov rcx, qword [rsp + 0x50]
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x34], 4
test rcx, rcx
je 0x18002a23a
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x38]
xor r8d, r8d
mov rdx, rbp
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, 0xfffffffd
cmove ebx, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x18002a25b
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x18002a25b
mov qword [rsp + 0x50], 0
mov byte [rsp + 0x58], al
mov dword [0x18015516c], ebx
mov eax, ebx
jmp 0x18002a26b
mov eax, dword [0x18015516c]
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.18003f930
lea r11, [rsp + 0x170]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x1800360a0
Capabilities:
Create thread

Disassembly:
push rdi
sub rsp, 0x40
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x58], rbx
mov rdi, rcx
cmp byte [rcx + 0x10], dl
je 0x1800361dc
mov byte [rcx + 0x10], dl
mov rax, qword [rcx]
mov r8, qword [rax]
lea rcx, [0x1801224b8]
cmp rax, rcx
jne 0x1800361e7
test dl, dl
je 0x180036156
cmp qword [rdi + 0x20], 0
jne 0x1800361dc
mov ecx, 0x18
call fcn.18003f954
mov rbx, rax
mov qword [rsp + 0x50], rax
mov qword [rax + 8], 0
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 1]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [rbx + 0x10], rax
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9, rbx
lea r8, [0x180006400]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rbx], rax
mov qword [0x18015aaf0], rbx
mov qword [rdi + 0x20], rbx
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
mov rbx, qword [rdi + 0x20]
test rbx, rbx
je 0x1800361c9
cmp qword [rbx], 0
je 0x1800361ad
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x18003617e
mov edx, 0x7d0
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
sete cl
test cl, cl
je 0x1800361ad
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0x10]
mov rcx, qword [rbx + 8]
call qword [sym.imp.USER32.dll_PostMessageA]
mov edx, 0x1388
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x1800361bc
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, 0x18
mov rcx, rbx
call fcn.18003fe68
mov qword [rdi + 0x20], 0
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
mov rcx, rdi
mov rax, r8
call qword [case.0x18002b58a.0]
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x1800389b0
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
push r14
sub rsp, 0x20
mov r14, r8
mov rsi, rdx
mov rdi, rcx
test r8, r8
jg 0x1800389d2
xor eax, eax
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rbp
je 0x180038a5d
lfence
mov rbx, r14
nop dword [rax]
mov rcx, rdi
call fcn.1800137e0
test rax, rax
jle 0x180038a2e
mov rdx, qword [rdi + 0x38]
cmp rbx, rax
mov rbp, rbx
mov rcx, rsi
cmovge rbp, rax
mov r8, rbp
mov rdx, qword [rdx]
call fcn.18006d180
mov rax, qword [rdi + 0x50]
sub rbx, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x180038a4d
mov rax, qword [rdi]
mov rcx, rdi
mov rax, qword [rax + 0x38]
call qword [case.0x18002b58a.0]
cmp eax, 0xffffffff
je 0x180038a55
mov byte [rsi], al
dec rbx
mov ebp, 1
add rsi, rbp
test rbx, rbx
jg 0x1800389f0
sub r14, rbx
jmp 0x180038b61
mov rax, qword [rcx + 0x38]
mov rbp, r14
mov qword [rsp + 0x50], r14
mov rdx, qword [rax]
test rdx, rdx
je 0x180038a79
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x180038a7b
xor ecx, ecx
movsxd rax, ecx
mov rbx, r14
test ecx, ecx
je 0x180038ab5
cmp rax, r14
mov rcx, rsi
cmovb rbx, rax
mov r8, rbx
call fcn.18006d180
mov rax, qword [rdi + 0x50]
sub rbp, rbx
add rsi, rbx
mov qword [rsp + 0x50], rbp
sub dword [rax], ebx
mov rcx, qword [rdi + 0x38]
movsxd rax, ebx
mov rbx, rbp
add qword [rcx], rax
cmp qword [rdi + 0x80], 0
je 0x180038b59
mov r8, qword [rdi + 0x18]
lea rax, [rdi + 0x70]
cmp qword [r8], rax
jne 0x180038af0
mov rcx, qword [rdi + 0x88]
mov rdx, qword [rdi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rdi + 0x38]
mov qword [rax], rcx
mov rax, qword [rdi + 0x50]
mov dword [rax], edx
cmp rbx, 0xfff
jbe 0x180038b35
nop dword [rax]
mov r9, qword [rdi + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rsi
call fcn.1800966fc
sub rbp, rax
add rsi, rax
mov qword [rsp + 0x50], rbp
mov rbx, rbp
cmp rax, 0xfff
jne 0x180038b59
cmp rbp, rax
ja 0x180038b00
test rbx, rbx
je 0x180038b59
mov r9, qword [rdi + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, rsi
call fcn.1800966fc
sub rbx, rax
mov qword [rsp + 0x50], rbx
lfence
sub r14, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x40]
mov rax, r14
mov rbp, qword [rsp + 0x48]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret
Function at 0x1800390f0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x90
mov rax, qword [0x180154010]
xor rax, rsp
mov qword [rsp + 0x88], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x180039120
xor eax, eax
jmp 0x180039249
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x18003915a
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x18003915a
lea ecx, [r8 - 1]
mov dword [rax], ecx
mov eax, edi
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], dil
jmp 0x180039249
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xb0], rsi
je 0x18003923c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x18003919d
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x1800391ac
movsx ecx, dil
jmp 0x1800391e0
mov byte [rsp + 0x50], dil
lea rdx, vtable.std::codecvt_char__char__struct__Mbstatet_.0
mov rax, qword [rcx]
cmp rax, rdx
jne 0x18003926a
lea rax, [rsp + 0x50]
mov qword [rsp + 0x60], rax
lea rax, [rsp + 0x68]
mov qword [rsp + 0x58], rax
lfence
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call fcn.180094ca4
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x180039241
mov rsi, qword [rsp + 0x58]
lea rax, [rsp + 0x68]
sub rsi, rax
je 0x18003922a
lfence
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x68]
mov r8, rsi
mov edx, 1
call fcn.180095f80
cmp rsi, rax
jne 0x18003923c
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x60], rax
mov eax, edi
jne 0x180039241
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xb0]
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.18003f930
mov rbx, qword [rsp + 0xb8]
add rsp, 0x90
pop rdi
ret
mov rax, qword [rax + 0x38]
lea r8, [rsp + 0x58]
mov qword [rsp + 0x38], r8
lea rdx, [rbx + 0x74]
lea r8, [rsp + 0x88]
mov qword [rsp + 0x30], r8
lea r9, [rsp + 0x51]
lea r8, [rsp + 0x68]
mov qword [rsp + 0x28], r8
lea r8, [rsp + 0x60]
mov qword [rsp + 0x20], r8
lea r8, [rsp + 0x50]
call qword [case.0x18002b58a.0]
test eax, eax
js 0x18003923c
cmp eax, 1
jle 0x1800391fa
cmp eax, 3
jne 0x18003923c
jmp 0x1800391d8
Function at 0x180039c10
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x180154010]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x180039ceb
cmp byte [rcx + 0x71], 0
je 0x180039ceb
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
mov rax, qword [rax + 0x18]
call qword [case.0x18002b58a.0]
cmp eax, 0xffffffff
je 0x180039ce7
mov rcx, qword [rbx + 0x68]
lea rdx, vtable.std::codecvt_char__char__struct__Mbstatet_.0
mov rax, qword [rcx]
cmp rax, rdx
jne 0x180039d00
lea rdi, [rsp + 0x38]
mov eax, 3
mov qword [rsp + 0x30], rdi
test eax, eax
je 0x180039caf
sub eax, 1
je 0x180039cb3
cmp eax, 2
jne 0x180039ce7
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.18003f930
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x180039cde
lfence
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call fcn.180095f80
cmp rdi, rax
jne 0x180039ce7
cmp byte [rbx + 0x71], 0
sete al
jmp 0x180039c97
xor al, al
jmp 0x180039c97
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.18003f930
add rsp, 0x60
pop rbx
ret
mov rax, qword [rax + 0x40]
lea r8, [rsp + 0x30]
mov qword [rsp + 0x20], r8
lea rdx, [rbx + 0x74]
lea r8, [rsp + 0x38]
lea r9, [rsp + 0x58]
call qword [case.0x18002b58a.0]
mov rdi, qword [rsp + 0x30]
jmp 0x180039c83

Function at 0x18003e970
Capabilities:
Terminate thread

Disassembly:
push rdi
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x50], rbp
mov qword [rsp + 0x58], rsi
mov rdi, rcx
lea rbx, [rcx + 0x28]
mov qword [rsp + 0x40], rbx
mov rcx, rbx
call fcn.1800434b4
test eax, eax
jne 0x18003ea82
mov byte [rdi + 0x10], al
cmp qword [rdi + 8], 0
je 0x18003ea52
mov rcx, qword [rdi + 0x80]
call qword [sym.imp.KERNEL32.dll_SetEvent]
xor ebp, ebp
mov eax, dword [0x18015aaf8]
lea esi, [rbp + 1]
test eax, eax
je 0x18003ea05
dec eax
cmp eax, esi
ja 0x18003ea26
xor edx, edx
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ebp, eax
test eax, eax
je 0x18003ea26
cmp byte [rdi + 0x11], 0
jne 0x18003ea1a
mov edx, 0x1388
mov rcx, qword [rdi + 0x18]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ebp, eax
jmp 0x18003ea1a
mov edx, 0x1388
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ebp, eax
test eax, eax
je 0x18003ea26
mov edx, esi
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi + 8], 0
mov rcx, qword [rdi + 0x18]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test ebp, ebp
jne 0x18003ea48
xor esi, esi
mov qword [rdi + 0x18], 0
jmp 0x18003ea57
mov esi, 0xffffffff
mov rcx, rbx
call fcn.180043530
test eax, eax
jne 0x18003ea7a
mov eax, esi
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
mov ecx, eax
call fcn.180042d28
int3
mov ecx, eax
call fcn.180042d28
int3
Function at 0x1800cc7f5
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rbp
push rdi
push rsi
push rbx
movsxd rax, dword [rcx + 0x3c]
mov eax, dword [rcx + rax + 0x88]
add rax, rcx
mov ebx, dword [rax + 0x18]
mov r9d, dword [rax + 0x20]
mov edi, dword [rax + 0x1c]
mov ebp, dword [rax + 0x24]
test ebx, ebx
je 0x1800cc859
lea rsi, [rcx + r9]
lea r10d, [r8 + 0x60]
xor r11d, r11d
nop
mov eax, dword [rsi + r11*4]
xor r8d, r8d
add rax, rcx
cmp byte [rax], 0
je 0x1800cc84b
nop
movzx r9d, byte [rax]
add rax, 1
or r9d, r10d
add r8d, r9d
add r8d, r8d
cmp byte [rax], 0
jne 0x1800cc835
cmp edx, r8d
je 0x1800cc860
add r11, 1
cmp ebx, r11d
ja 0x1800cc825
xor eax, eax
pop rbx
pop rsi
pop rdi
pop rbp
ret
lea rax, [rbp + r11*2]
movzx eax, word [rcx + rax]
lea rax, [rdi + rax*4]
mov eax, dword [rcx + rax]
add rax, rcx
pop rbx
pop rsi
pop rdi
pop rbp
ret

Function at 0x1800ccad5
Capabilities:
Access peb ldr_data

Disassembly:
xor rax, rax
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x20]
mov rax, qword [rax]
mov rax, qword [rax + 0x20]
ret

Function at 0x1800ccc38
Capabilities:
Set thread local storage value

Disassembly:
sub rsp, 0x48
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x1800ccc4b
add rsp, 0x48
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edx, ax
lea rcx, [rsp + 0x20]
or edx, 0x80070000
test eax, eax
cmovle edx, eax
call fcn.1800cdd7c
lea rdx, [0x180151180]
lea rcx, [rsp + 0x20]
call fcn.18006cc14
int3

Function at 0x1800db7fc
Capabilities:
Set thread local storage value

Disassembly:
mov ecx, dword [0x18015a810]
xor edx, edx
jmp fcn.1800ccc38

Function at 0x1800dd280
Capabilities:
Set thread local storage value

Disassembly:
mov rdx, rcx
mov ecx, dword [0x18015a810]
jmp fcn.1800ccc38

Function at 0x1800ef014
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rcx + 0x98], rdx
mov r8, rcx
mov r9, qword [rdx + 0x1a8]
add rcx, 0x40
lea rdx, [0x1800ef100]
mov r9, qword [r9 + 8]
jmp fcn.1800d8400

Function at 0x1800ef0cc
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rcx + 0x98], rdx
mov r8, rcx
mov r9, qword [rdx + 0x1a8]
add rcx, 0x40
lea rdx, [0x1800ef110]
mov r9, qword [r9 + 8]
jmp fcn.1800d8400
Function at 0x140003c68
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x140003ca2
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x140003ca7
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x140003cf0
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x1400063e0]
cmp byte [rcx + rax], 0
je 0x140003cf0
dec r8
sub rdx, 1
jne 0x140003cd6
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x140004cdc
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140004d26
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140004d26
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140004d26
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140004d26
cmp dword [rcx + 0x84], 0xe
jbe 0x140004d26
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140004d28
xor al, al
add rsp, 0x28
ret
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x1400d39a0]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x1400d39b0]
mov dword [rax], 1
mov rax, qword [0x1400d39c0]
mov dword [rax], 1
mov rax, qword [0x1400d3900]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x1400d3990]
mov dword [0x1400fb00c], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010b0
mov ecx, 2
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x1400d3a90]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x1400d3a70]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x1400d2d60]
cmp dword [rax], 1
je 0x1400010f8
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x140001077
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001110
cmp dx, 0x20b
jne 0x14000105a
cmp dword [rax + 0x84], 0xe
jbe 0x14000105a
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x14000105a
mov rcx, qword [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x14000105a
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x14000105a
Function at 0x140001440
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x88]
mov edx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x20]
mov edx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x28], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x24]
mov edx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x30], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x1c]
mov edx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x38], rax
mov dword [rbp - 4], 0
jmp 0x14000153b
mov eax, dword [rbp - 4]
lea rdx, [rax*4]
mov rax, qword [rbp - 0x28]
add rax, rdx
mov eax, dword [rax]
mov edx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x40], rax
mov rdx, qword [rbp + 0x18]
mov rax, qword [rbp - 0x40]
mov rcx, rax
call sym.strcmp
test eax, eax
jne 0x140001537
mov eax, dword [rbp - 4]
lea rdx, [rax + rax]
mov rax, qword [rbp - 0x30]
add rax, rdx
movzx eax, word [rax]
mov word [rbp - 0x42], ax
movzx eax, word [rbp - 0x42]
lea rdx, [rax*4]
mov rax, qword [rbp - 0x38]
add rax, rdx
mov eax, dword [rax]
mov dword [rbp - 0x48], eax
mov rdx, qword [rbp + 0x10]
mov eax, dword [rbp - 0x48]
add rax, rdx
jmp 0x140001586
add dword [rbp - 4], 1
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x18]
cmp dword [rbp - 4], eax
jb 0x1400014c9
lea rax, str.Failed_to_resolve:
mov rdx, rax
mov rax, qword [0x1400d3330]
mov rcx, rax
call method.std::basic_ostream_char__std::char_traits_char____std::operator____std.char_traits_char____std::basic_ostream_char__std::char_traits_char_____char_const_
mov rcx, rax
mov rax, qword [rbp + 0x18]
mov rdx, rax
call method.std::basic_ostream_char__std::char_traits_char____std::operator____std.char_traits_char____std::basic_ostream_char__std::char_traits_char_____char_const_
mov rcx, rax
mov rax, qword [str.__f_]
mov rdx, rax
call method.std::ostream.operator___std::ostream____std::ostream__
mov eax, 0
add rsp, 0x70
pop rbp
ret
Function at 0x140004f50
Capabilities:
Parse pe header

Disassembly:
push rsi
sub rsp, 0x30
mov rax, qword [rcx + 0x18]
movzx edx, byte [rax]
cmp dl, 0x4c
je 0x140004fc0
jg 0x140004f80
sub edx, 0x49
cmp dl, 1
ja 0x140004fd0
add rax, 1
mov qword [rcx + 0x18], rax
add rsp, 0x30
pop rsi
jmp sym.d_template_args_1
cmp dl, 0x58
jne 0x140004fd0
add rax, 1
mov esi, dword [rcx + 0x4c]
mov dword [rcx + 0x4c], 1
mov qword [rcx + 0x18], rax
mov qword [rsp + 0x28], rcx
call sym.d_expression_1
mov rcx, qword [rsp + 0x28]
mov rdx, qword [rcx + 0x18]
mov dword [rcx + 0x4c], esi
cmp byte [rdx], 0x45
jne 0x140004fe0
add rdx, 1
mov qword [rcx + 0x18], rdx
add rsp, 0x30
pop rsi
ret
add rsp, 0x30
pop rsi
jmp sym.d_expr_primary
add rsp, 0x30
pop rsi
jmp sym.d_type
xor eax, eax
jmp 0x140004fba