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

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r12
sub rsp, 0x480
mov rax, qword [0x100080218]
xor rax, rsp
mov qword [rsp + 0x470], rax
xor r12d, r12d
mov ebp, edx
mov rsi, rcx
mov ebx, r12d
cmp rcx, r12
je 0x10004bf81
cmp word [rcx], r12w
jne 0x10004bf86
mov ebx, 0x57
mov edi, r12d
cmp ebx, r12d
jne 0x10004bf9f
mov edx, 0x2c
call sub.msvcrt.dll_wcschr
cmp rax, r12
sete dil
lea rcx, [rsp + 0x50]
call fcn.1000026b4
cmp edi, r12d
je 0x10004c02b
lea rcx, [rsp + 0x62]
xor edx, edx
mov r8d, 0x40e
mov word [rsp + 0x60], r12w
call sub.msvcrt.dll_memset
mov dword [rsp + 0x48], 0x410
cmp ebx, r12d
jne 0x10004c040
lea rax, [rsp + 0x48]
lea rdx, str.SoftwareMicrosoftWindows_NTCurrentVersionDevices
mov r9d, 2
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x60]
mov r8, rsi
mov qword [rsp + 0x28], rax
mov rcx, 0xffffffff80000001
mov qword [rsp + 0x20], r12
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegGetValueW]
mov ebx, eax
cmp eax, r12d
jne 0x10004c040
lea r9, [rsp + 0x60]
lea rdx, str._s__s
lea rcx, [rsp + 0x50]
mov r8, rsi
call fcn.10000a7f4
jmp 0x10004c03d
cmp ebx, r12d
jne 0x10004c040
lea rcx, [rsp + 0x50]
mov rdx, rsi
call fcn.1000027bc
movzx ebx, ax
mov qword [rsp + 0x40], r12
cmp ebx, r12d
jne 0x10004c107
lea rax, [rsp + 0x40]
lea rdx, str.SoftwareMicrosoftWindows_NTCurrentVersionWindows
mov r9d, 2
xor r8d, r8d
mov rcx, 0xffffffff80000001
mov qword [rsp + 0x20], rax
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegOpenKeyExW]
mov ebx, eax
cmp eax, r12d
jne 0x10004c0f2
mov rbx, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x40]
lea rcx, [rsp + 0x50]
call fcn.10001ad74
lea rdx, str.Device
mov r9d, 1
add eax, eax
xor r8d, r8d
mov rcx, rdi
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rbx
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegSetValueExW]
mov ebx, eax
cmp eax, r12d
jne 0x10004c0f2
xor r8d, r8d
lea r9, str.Windows
mov ecx, 0xffff
lea edx, [r8 + 0x1a]
call qword [sym.imp.USER32.dll_SendNotifyMessageW]
cmp eax, r12d
jne 0x10004c0e1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp ebx, r12d
jne 0x10004c0f2
mov edx, ebp
mov rcx, rsi
call fcn.10004bef4
mov ebx, eax
mov rcx, qword [rsp + 0x40]
cmp rcx, r12
je 0x10004c107
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCloseKey]
mov qword [rsp + 0x40], r12
lea rcx, [rsp + 0x50]
call fcn.1000026d0
mov eax, ebx
mov rcx, qword [rsp + 0x470]
xor rcx, rsp
call fcn.1000010b0
lea r11, [rsp + 0x480]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r12
pop rdi
pop rsi
ret
Function at 0x140002890
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x160
mov rax, qword [0x14001d048]
xor rax, rsp
mov qword [rsp + 0x150], rax
xor edx, edx
mov rdi, rcx
lea ecx, [rdx + 2]
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
lea rdx, [rsp + 0x20]
mov rcx, rax
mov rbx, rax
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x14000291d
mov qword [rsp + 0x178], rsi
xor esi, esi
nop word [rax + rax]
lea rdx, [rsp + 0x4c]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x140002905
lea rdx, [rsp + 0x20]
mov rcx, rbx
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x1400028e0
jmp 0x14000290a
mov esi, 1
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
mov rsi, qword [rsp + 0x178]
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.140002f40
mov rbx, qword [rsp + 0x180]
add rsp, 0x160
pop rdi
ret
Function at 0x140008000
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140007e2c
Function at 0x1400029bc
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
cmp qword [rcx], 0
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
je 0x140002a1f
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140002a33
lea rdx, str.RegDeleteKeyTransactedW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140002a33
mov rcx, qword [rbx]
and qword [rsp + 0x28], 0
xor r9d, r9d
mov qword [rsp + 0x20], rcx
xor r8d, r8d
mov rdx, rdi
mov rcx, rsi
call rax
jmp 0x140002a38
cmp dword [rcx + 8], 0
je 0x140002a33
mov rdx, r8
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
jmp 0x140002a38
mov eax, 1
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x140002ae0
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [rcx + 0x10]
mov rdi, rdx
test rcx, rcx
je 0x140002b06
mov r8, rdx
mov rdx, qword [rbx]
call fcn.1400029bc
jmp 0x140002b6d
cmp byte [0x14000f290], 0
jne 0x140002b4a
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140002b3a
lea rdx, [0x14000ac18]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14000f288], rax
jmp 0x140002b41
mov rax, qword [0x14000f288]
mov byte [0x14000f290], 1
jmp 0x140002b51
mov rax, qword [0x14000f288]
mov rcx, qword [rbx]
mov rdx, rdi
test rax, rax
je 0x140002b67
mov r8d, dword [rbx + 8]
xor r9d, r9d
call rax
jmp 0x140002b6d
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x140002c6c
Capabilities:
Set registry value

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 r12
sub rsp, 0x30
xor edi, edi
mov rbx, r8
mov rbp, rdx
mov r12, rcx
test r8, r8
jne 0x140002c9a
lea eax, [rdi + 0xd]
jmp 0x140002cd1
mov rsi, rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
lea rsi, [rsi + rax*2]
lea edi, [rdi + rax*2]
cmp eax, 1
jne 0x140002c9d
mov rcx, qword [r12]
lea r9d, [rax + 6]
xor r8d, r8d
mov rdx, rbp
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r12
ret
Function at 0x140004a60
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov rax, rsp
push rsi
push rdi
push r12
sub rsp, 0x490
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov rax, qword [0x14000f198]
xor rax, rsp
mov qword [rsp + 0x480], rax
mov r12, r9
mov rdi, r8
mov rax, rdx
xor ebx, ebx
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x70], rbx
xor edx, edx
lea r8d, [rbx + 2]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rsi, rax
mov qword [rsp + 0x38], rax
test rax, rax
jne 0x140004ad4
call fcn.140002854
mov ebx, eax
jmp 0x140004be3
mov r8, r12
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rdi, rax
test rax, rax
jne 0x140004af5
call fcn.140002854
jmp 0x140004bd7
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov r12, rax
mov qword [rsp + 0x40], rax
test rax, rax
je 0x140004aeb
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
mov dword [rsp + 0x30], eax
inc eax
cmp eax, edi
jae 0x140004b30
mov ebx, 0x8007000e
jmp 0x140004bd9
mov ecx, eax
test eax, eax
je 0x140004b6d
xor edx, edx
or rax, 0xffffffffffffffff
div rcx
cmp rax, 2
jb 0x140004b63
lea rdx, [rcx + rcx]
cmp rdx, 0x400
jbe 0x140004b6d
lea rcx, [rsp + 0x70]
call fcn.1400031c4
mov rax, qword [rsp + 0x70]
jmp 0x140004b77
mov ecx, 0x80070216
call fcn.140002838
lea rax, [rsp + 0x78]
mov qword [rsp + 0x70], rax
jmp 0x140004b8e
test rax, rax
je 0x140004b26
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rax
mov r9d, edi
mov r8, r12
xor edx, edx
lea ecx, [rdx + 3]
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x140004aeb
mov ecx, eax
mov rax, qword [rsp + 0x70]
mov word [rax + rcx*2], bx
mov r8d, dword [rsp + 0x4d0]
mov rdx, qword [rsp + 0x70]
lea rcx, [rsp + 0x48]
call fcn.140004900
mov ebx, eax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop
lea rax, [rsp + 0x78]
cmp qword [rsp + 0x70], rax
je 0x140004bfa
lea rcx, [rsp + 0x70]
call fcn.1400031b8
nop
mov eax, ebx
mov rcx, qword [rsp + 0x480]
xor rcx, rsp
call fcn.140007f30
mov rbx, qword [rsp + 0x4b0]
add rsp, 0x490
pop r12
pop rdi
pop rsi
ret

Function at 0x1400055fc
Capabilities:
Check os version

Disassembly:
push rbx
sub rsp, 0x150
mov rax, qword [0x14000f198]
xor rax, rsp
mov qword [rsp + 0x140], rax
xor ebx, ebx
cmp dword [0x14000f354], ebx
je 0x140005629
mov eax, dword [0x14000f350]
jmp 0x14000568e
lea rcx, [rsp + 0x20]
xor edx, edx
mov r8d, 0x11c
call sub.MSVCR100.dll_memset
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x11c
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [rsp + 0x30], 2
mov r11d, 1
jne 0x14000567f
cmp dword [rsp + 0x24], 6
jne 0x14000567f
cmp dword [rsp + 0x28], ebx
jne 0x14000567f
cmp byte [rsp + 0x13a], r11b
jne 0x14000567f
cmp word [rsp + 0x134], bx
jne 0x14000567f
mov ebx, r11d
mov dword [0x14000f350], ebx
mov dword [0x14000f354], r11d
mov eax, ebx
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.140007f30
add rsp, 0x150
pop rbx
ret
Function at 0x1400058ec
Capabilities:
Create process on windows

Disassembly:
sub rsp, 0x68
test rdx, rdx
jne 0x1400058f9
xor eax, eax
jmp 0x140005956
mov rax, qword [rsp + 0xc0]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0xb8]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0xa8]
mov qword [rsp + 0x38], rax
mov eax, dword [rsp + 0xa0]
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x98]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
add rsp, 0x68
ret

Function at 0x140005d7c
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r12
lea rbp, [rsp - 0xf50]
mov eax, 0x1050
call fcn.140007f60
sub rsp, rax
mov rax, qword [0x14000f198]
xor rax, rsp
mov qword [rbp + 0xf40], rax
mov rbx, rcx
mov edi, r8d
mov r12, rdx
lea rcx, [rsp + 0x42]
xor esi, esi
xor edx, edx
mov r8d, 0x7fe
mov word [rsp + 0x40], si
call sub.MSVCR100.dll_memset
lea r8, str.SOFTWAREClassesCLSID_sInprocServer32
lea rcx, [rsp + 0x40]
mov r9, rbx
mov edx, 0x400
call qword [sym.imp.MSVCR100.dll_swprintf_s]
lea rax, [rsp + 0x30]
neg edi
sbb rcx, rcx
lea rdx, [rsp + 0x40]
mov r9d, 0x20019
add rcx, 0xffffffff80000002
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x140005e23
cmp eax, 2
sete sil
jmp 0x140005e88
mov rcx, qword [rsp + 0x30]
lea r9, [rsp + 0x38]
lea r8, [rbp + 0x740]
lea rdx, [0x14000b154]
mov dword [rsp + 0x38], 0x800
call qword [sym.imp.ADVAPI32.dll_RegQueryValueW]
mov rcx, qword [rsp + 0x30]
test eax, eax
je 0x140005e5c
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x140005e8a
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rdx, [rbp + 0x740]
sub rdx, r12
movzx eax, word [r12]
movzx ecx, word [r12 + rdx]
sub eax, ecx
jne 0x140005e82
add r12, 2
test ecx, ecx
jne 0x140005e6c
test eax, eax
setne sil
mov eax, esi
mov rcx, qword [rbp + 0xf40]
xor rcx, rsp
call fcn.140007f30
lea r11, [rsp + 0x1050]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r12
pop rdi
pop rbp
ret
Function at 0x14000614c
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
push rdi
sub rsp, 0x50
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rsi, rcx
xor edi, edi
mov word [rcx], di
mov dword [rax - 0x38], 0x104
mov r9, rcx
xor r8d, r8d
xor edx, edx
lea rcx, [0x14000aaf0]
call qword [sym.imp.SHELL32.dll_SHGetFolderPathEx]
mov ebx, eax
test eax, eax
jns 0x1400061ab
mov edx, eax
lea rcx, str.Error:_08x_in_SHGetFolderPathEx_FOLDERID_LocalAppDataLow__0__NULL__pPath__MAX_PATH_
call fcn.140007b84
xor edx, edx
mov ecx, ebx
call fcn.1400089f0
nop
jmp 0x1400061b6
test ebx, ebx
jns 0x140006237
mov qword [rsp + 0x20], rsi
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0x1a]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov ebx, eax
test eax, eax
jns 0x1400061ef
mov edx, eax
lea rcx, str.Error:_08x_in_SHGetFolderPathW_NULL__CSIDL_APPDATA__NULL__0__pPath_
call fcn.140007b84
xor edx, edx
mov ecx, ebx
call fcn.1400089f0
nop
jmp 0x1400061fa
test ebx, ebx
jns 0x140006237
mov r9d, 1
lea r8d, [r9 + 0x19]
mov rdx, rsi
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov ebx, eax
test eax, eax
jns 0x140006231
mov edx, eax
lea rcx, str.Error:_08x_in_SHGetSpecialFolderPathW_NULL__pPath__CSIDL_APPDATA__TRUE_
call fcn.140007b84
xor edx, edx
mov ecx, ebx
call fcn.1400089f0
nop
jmp 0x140006237
mov eax, ebx
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret
Function at 0x140007984
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r12
push r13
push r14
lea rbp, [rsp - 0xf90]
mov eax, 0x1090
call fcn.140007f60
sub rsp, rax
mov rax, qword [0x14000f198]
xor rax, rsp
mov qword [rbp + 0xf80], rax
mov rsi, rcx
mov rdi, rdx
mov ebx, 0x7fe
lea rcx, [rbp + 0x782]
xor r13d, r13d
xor edx, edx
mov r8d, ebx
mov word [rbp + 0x780], r13w
call sub.MSVCR100.dll_memset
or r14, 0xffffffffffffffff
lea rcx, [rbp + 0x780]
mov r8, r14
mov r9, rsi
mov edx, 0x400
mov qword [rsp + 0x20], rdi
call qword [sym.imp.MSVCR100.dll__vsnwprintf_s]
test eax, eax
jns 0x140007a10
mov word [rbp + 0xf7e], r13w
xor edx, edx
lea rcx, [rsp + 0x42]
mov word [rsp + 0x40], r13w
lea r8d, [rdx + 0x3e]
call sub.MSVCR100.dll_memset
mov edi, 0x20
lea rcx, [rsp + 0x40]
mov edx, edi
call fcn.1400078c4
lea r8, [0x14000be3c]
lea rcx, [rsp + 0x40]
mov edx, edi
call qword [sym.imp.MSVCR100.dll_wcscat_s]
lea rcx, [rbp - 0x7e]
mov r8, rbx
xor edx, edx
mov word [rbp - 0x80], r13w
call sub.MSVCR100.dll_memset
xor eax, eax
mov rcx, r14
mov rdi, rsi
repne scasw ax, word [rdi]
not rcx
dec rcx
cmp rcx, 6
jbe 0x140007a8c
lea rsi, [rsi + rcx*2 - 0xc]
lea rdi, str.__08x_
lea ecx, [rax + 7]
repe cmpsw word [rsi], word [rdi]
lea edx, [rax + 1]
je 0x140007a8f
mov edx, r13d
lea rdi, [rsp + 0x40]
mov rcx, r14
lea rbx, [0x14000be4c]
repne scasw ax, word [rdi]
lea rax, str.Error:
test edx, edx
not rcx
cmovne rbx, rax
lea rsi, [rcx - 1]
lea r12, [rcx + rcx - 2]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edi, eax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edx, 0x3ff
sub rdx, rsi
lea rsi, [rbp + 0x780]
lea rcx, [rbp + r12 - 0x80]
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], rbx
lea r9, str.P:_04d_T:_04d__s_s
mov r8, r14
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], eax
call qword [sym.imp.MSVCR100.dll__snwprintf_s]
test eax, eax
jns 0x140007b21
mov rdx, r13
lea rax, [0x14000bfa8]
movzx eax, word [rdx + rax]
add rdx, 2
mov word [rbp + rdx + 0x774], ax
test ax, ax
jne 0x140007b05
lea rdx, [rsp + 0x40]
lea rcx, [rbp - 0x80]
mov r8, r12
call sub.MSVCR100.dll_memcpy
xor eax, eax
lea rdi, [rbp - 0x80]
mov rcx, r14
repne scasw ax, word [rdi]
mov eax, dword [0x14000be7c]
lea rcx, [rbp - 0x80]
mov dword [rdi - 2], eax
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, qword [rbp + 0xf80]
xor rcx, rsp
call fcn.140007f30
lea r11, [rsp + 0x1090]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r14
pop r13
pop r12
pop rdi
pop rbp
ret
Function at 0x14000851b
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x14000f198]
jne 0x140007f4a
rol rcx, 0x10
test cx, 0xffff
jne 0x140007f46
repz ret
ror rcx, 0x10
jmp 0x140008474
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x14000f440]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x14000f538]
mov qword [rsp + 0x58], rax
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x1400084f9
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x14000f440]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x14000851b
mov rax, qword [rsp + 0x88]
mov qword [0x14000f538], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x14000f4d8], rax
mov rax, qword [0x14000f538]
mov qword [0x14000f3b0], rax
mov rax, qword [rsp + 0x90]
mov qword [0x14000f4c0], rax
mov dword [0x14000f3a0], 0xc0000409
mov dword [0x14000f3a4], 1
mov rax, qword [0x14000f198]
mov qword [rsp + 0x68], rax
mov rax, qword [0x14000f1a0]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x14000f438], eax
mov ecx, 1
call sub.MSVCR100.dll___crt_debugger_hook
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x14000bff0]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x14000f438], 0
jne 0x1400085a2
mov ecx, 1
call sub.MSVCR100.dll___crt_debugger_hook
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret
Function at 0x1400047e4
Capabilities:
Identify system language via api

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x60
mov rax, qword [0x1400128b8]
xor rax, rsp
mov qword [rsp + 0x58], rax
lea r14, str.en_US
mov rsi, rcx
mov qword [rcx], r14
call qword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
mov word [rsp + 0x30], ax
mov ebx, 0x10
mov r9d, ebx
lea rdx, [0x140008110]
lea rax, [0x140004df0]
mov r8d, 0x1b3
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x20], rax
call sub.api_ms_win_crt_private_l1_1_0.dll__o_bsearch
xor ebp, ebp
test rax, rax
jne 0x14000485f
mov ecx, 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x1400048e5
cmp dword [rax + 0xc], 0x7c
jne 0x14000486c
cmp word [rax + 8], 0x7f
jne 0x14000484f
mov r8, qword [rax]
or rcx, 0xffffffffffffffff
inc rcx
cmp word [r8 + rcx*2], bp
jne 0x140004873
inc rcx
cmp rcx, 0x7ffffffe
jbe 0x140004890
mov word [rsp + 0x38], bp
jmp 0x1400048d7
lea rax, [rsp + 0x38]
mov r9d, ebp
sub r8, rax
lea rdx, [rsp + 0x38]
lea rax, [rbx - 0x10]
add rax, rcx
je 0x1400048c0
movzx eax, word [r8 + rdx]
test ax, ax
je 0x1400048c0
mov word [rdx], ax
add rdx, 2
sub rbx, 1
jne 0x1400048a0
test rbx, rbx
jne 0x1400048cf
sub rdx, 2
mov r9d, 0x8007007a
mov word [rdx], bp
test r9d, r9d
jns 0x1400048e1
mov ecx, 0x7a
jmp 0x140004854
test ecx, ecx
jne 0x1400048f1
mov rcx, qword [rsp + 0x78]
call fcn.14000494c
jmp 0x14000492a
mov rbx, rbp
mov rdi, rbp
mov rdx, qword [rdi + r14]
lea rcx, [rsp + 0x38]
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__wcsicmp]
test eax, eax
je 0x14000491c
inc rbx
add rdi, 0x30
cmp rdi, 0x750
jb 0x1400048f7
jmp 0x14000492a
lea rax, [rbx + rbx*2]
shl rax, 4
add rax, r14
mov qword [rsi], rax
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400050e0
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret

Function at 0x140005104
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov ecx, 1
mov dword [0x140012e60], eax
call fcn.1400056f0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x140012e60], 0
jne case.default.0x14000515a
mov ecx, 1
call fcn.1400056f0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]
scasb al, byte [rdi]
in eax, dx
rol ecx, cl
xor dword [rdx + 0x6d], 0xffffffe3
mov edi, 0xd28462f8
test dl, dl
out dx, eax
xchg byte [rbp + 0x30], bl
je 0x14001ad05
cmpsb byte [rsi], byte [rdi]
sub esi, dword [rdi + 0x3d]
cmpsb byte [rsi], byte [rdi]
fstp dword [rax + 0x73ff1eac]
push rbx
shl eax, 0xc0
call 0xdd69ab72
add eax, 0x95d6ba5d
push rsp
imul ebp, ecx, 0xe424baf4
shl bl, 0x64
invalid
Function at 0x140001770
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, 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.140002590
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.140002590
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x1400017e0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1400450a4]
mov rbx, rcx
test esi, esi
jle 0x140001910
mov rax, qword [0x1400450a8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14000182b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x1400018b5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140001810
mov rcx, rbx
call fcn.140002230
mov rdi, rax
test rax, rax
je 0x140001932
mov rax, qword [0x1400450a8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140002370
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1400450a8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140001917
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x1400018ae
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x1400018c0
add dword [0x1400450a4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x1400450a8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1400018ae
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140001770
nop dword [rax]
xor esi, esi
jmp 0x140001838
mov rax, qword [0x1400450a8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140001770
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140001770
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140001ea0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140045100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400450e0]
test rbx, rbx
je 0x140001efc
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x140001ef3
test rsi, rsi
je 0x140001ef3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140001ed8
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]