joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400013a0
Capabilities:
Resume thread
Suspend thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
mov rbp, rsp
sub rsp, 0x60
mov rax, qword [0x140006010]
xor rax, rsp
mov qword [rbp - 0x10], rax
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
lea edx, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_HeapSetInformation]
call fcn.1400010fc
mov rcx, rax
test rax, rax
je 0x14000151a
mov rax, qword [rax]
call qword [rax + 0x18]
lea rdx, [rbp - 0x20]
lea rbx, [rax + 0x18]
mov qword [rbp - 0x18], rbx
call fcn.140001b40
test eax, eax
jne 0x140001403
cmp dword [rbp - 0x20], eax
jne 0x14000142e
lea rcx, [rbp - 0x18]
call fcn.140001d2c
mov rbx, qword [rbp - 0x18]
test eax, eax
je 0x140001439
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__wtoi]
test eax, eax
je 0x140001439
jmp 0x14000142e
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x140001423
int3
lea rdx, [rbx - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140001453
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
xorps xmm0, xmm0
lea rcx, [rbp - 0x40]
movups xmmword [rbp - 0x40], xmm0
movups xmmword [rbp - 0x30], xmm0
call fcn.140001818
mov edi, eax
test eax, eax
js 0x1400014f2
mov r8d, dword [rbp - 0x2c]
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rbx, rax
test rax, rax
jne 0x1400014a8
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
mov eax, 0x80004005
test edi, edi
cmovns edi, eax
jmp 0x1400014e4
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov edi, eax
cmp eax, 0xffffffff
je 0x1400014df
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ResumeThread]
lea eax, [rdi - 1]
cmp eax, 0xfffffffd
ja 0x1400014df
lea rcx, [rbp - 0x40]
call fcn.140001528
mov rcx, rbx
mov edi, eax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
jmp 0x1400014e9
mov edi, 0x80070057
test rbx, rbx
je 0x1400014f2
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x28]
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, edi
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.140002200
mov rbx, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x60
pop rbp
ret
mov ecx, 0x80004005
call fcn.140001008
int3
Function at 0x140001b40
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], r14
push rbp
lea rbp, [rsp - 0x190]
sub rsp, 0x290
mov rax, qword [0x140006010]
xor rax, rsp
mov qword [rbp + 0x180], rax
xor r14d, r14d
lea r8, str.SOFTWAREMicrosoftWindows_NTCurrentVersionImage_File_Execution_Options
mov dword [rdx], r14d
lea rcx, [rsp + 0x50]
mov rbx, rdx
mov qword [rsp + 0x58], r14
mov rdx, 0xffffffff80000002
mov qword [rsp + 0x50], r14
mov r9d, 0x20019
mov qword [rsp + 0x60], r14
call fcn.140001fd4
test eax, eax
jne 0x140001cda
mov r8d, 0x105
lea rdx, [rsp + 0x70]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
dec eax
cmp eax, 0x103
ja 0x140001cd4
lea r9d, [r14 + 1]
mov edx, r14d
mov ecx, r14d
cmp word [rsp + 0x70], r14w
je 0x140001c17
cmp ecx, 0x7fffffff
jae 0x140001ccd
mov eax, ecx
movzx r8d, word [rsp + rax*2 + 0x70]
cmp r8w, 0x5c
je 0x140001c09
cmp r8w, 0x2f
je 0x140001c09
cmp r8w, 0x3a
jne 0x140001c0c
cmp ecx, r9d
jne 0x140001c0c
lea edx, [rcx + 1]
add ecx, r9d
cmp word [rsp + rcx*2 + 0x70], r14w
jne 0x140001bdb
mov eax, edx
cmp word [rsp + rax*2 + 0x70], r14w
je 0x140001ccd
cmp edx, 0xffffffff
je 0x140001ccd
mov eax, edx
lea r8, [rsp + 0x70]
mov rdx, qword [rsp + 0x50]
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x38], r14
lea r8, [r8 + rax*2]
mov qword [rsp + 0x48], r14
call fcn.140001fd4
test eax, eax
jne 0x140001c9c
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x34]
xor r8d, r8d
mov qword [rsp + 0x20], rbx
lea rdx, str.PauseOnStartup
mov dword [rsp + 0x30], 4
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140001c9c
cmp dword [rsp + 0x34], 4
je 0x140001cb6
mov eax, 0xd
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov eax, 0x80004005
test ebx, ebx
cmovns ebx, eax
jmp 0x140001cb9
mov ebx, r14d
cmp qword [rsp + 0x38], r14
je 0x140001cf2
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140001cf2
mov ebx, 0x80004005
jmp 0x140001cf2
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov eax, 0x80004005
test ebx, ebx
cmovns ebx, eax
cmp qword [rsp + 0x50], r14
je 0x140001d04
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rbp + 0x180]
xor rcx, rsp
call fcn.140002200
lea r11, [rsp + 0x290]
mov rbx, qword [r11 + 0x10]
mov r14, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x140001d2c
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rdi, rcx
xor r8d, r8d
lea rcx, str.VS_Debugging_PauseOnStartup
xor edx, edx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
xor ebx, ebx
mov esi, eax
test eax, eax
jne 0x140001daf
mov rax, qword [rdi]
lea rdx, [rax - 0x18]
mov rsi, qword [rdx]
cmp dword [rdx + 8], ebx
je 0x140001e1c
cmp dword [rdx + 0x10], ebx
jge 0x140001d87
cmp dword [rax - 0xc], ebx
jl 0x140001e2e
mov dword [rax - 0x10], ebx
mov rax, qword [rdi]
mov word [rax], bx
jmp 0x140001e1c
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140001d9d
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 0x18]
add rax, 0x18
mov qword [rdi], rax
jmp 0x140001e1c
test esi, esi
js 0x140001e2e
mov r9, qword [rdi]
mov edx, 1
mov eax, dword [r9 - 0xc]
sub edx, dword [r9 - 8]
sub eax, esi
or edx, eax
jge 0x140001dd6
mov edx, esi
mov rcx, rdi
call fcn.140001e3c
mov r9, qword [rdi]
mov r8d, esi
lea rcx, str.VS_Debugging_PauseOnStartup
mov rdx, r9
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov rcx, qword [rdi]
test rcx, rcx
jne 0x140001df5
mov eax, ebx
jmp 0x140001e03
movsxd rdx, dword [rcx - 0xc]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsnlen]
test eax, eax
js 0x140001e2e
mov rcx, qword [rdi]
cmp eax, dword [rcx - 0xc]
jg 0x140001e2e
mov dword [rcx - 0x10], eax
mov rcx, qword [rdi]
mov edx, eax
mov word [rcx + rdx*2], bx
mov ebx, 1
mov rsi, qword [rsp + 0x38]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov ecx, 0x80070057
call fcn.140001008
int3
Function at 0x140003bb0
Capabilities:
Parse pe header

Disassembly:
push rbx
sub rsp, 0x40
mov qword [rsp + 0x58], rdx
mov rbx, r8
xor edx, edx
test rcx, rcx
je 0x140003be4
cmp word [rcx], 0x5a4d
jne 0x140003be4
movsxd rax, dword [rcx + 0x3c]
cmp eax, 0x400
jg 0x140003be4
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140003be4
mov edx, dword [rcx + 0x28]
add rdx, qword [rsp + 0x58]
mov rcx, rbx
call fcn.140003af0
test eax, eax
jne 0x140003c00
xor eax, eax
add rsp, 0x40
pop rbx
ret
mov rcx, rbx
call fcn.140003b60
test rax, rax
je 0x140003bf5
lea rdx, [rax + 0x10]
lea rax, [rsp + 0x38]
mov rcx, qword [rbx]
mov r9d, 8
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x58]
mov qword [rsp + 0x38], 0
call fcn.1400043af
not eax
shr eax, 0x1f
add rsp, 0x40
pop rbx
ret

Function at 0x1400042b0
Capabilities:
Execute syscall

Disassembly:
pop rax
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
mov rcx, r10
call fcn.140004250
add rsp, 0x28
mov rcx, qword [rsp + 8]
mov rdx, qword [rsp + 0x10]
mov r8, qword [rsp + 0x18]
mov r9, qword [rsp + 0x20]
mov r10, rcx
syscall
ret

Function at 0x140004714
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
mov rax, qword [0x14055ff78]
xor ebx, ebx
add rax, 0x18
mov r12, rcx
mov ecx, dword [0x14055ff74]
mov rsi, rdx
mov rdi, r8
cmp ebx, ecx
jge 0x140004762
mov rdx, qword [rax]
cmp r12, rdx
jb 0x14000475a
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x140004849
inc ebx
add rax, 0x28
jmp 0x14000473a
mov rcx, r12
call fcn.140004f41
mov rbp, rax
test rax, rax
jne 0x140004781
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.1400046b0
movsxd rbx, ebx
mov rax, qword [0x14055ff78]
xor edx, edx
imul rbx, rbx, 0x28
add rax, rbx
mov dword [rax], edx
mov qword [rax + 0x20], rbp
call fcn.140004fef
mov edx, dword [rbp + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14055ff78]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x1400047e3
mov rax, qword [0x14055ff78]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.1400046b0
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x140004843
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140004843
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 [0x14055ff78]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140004843
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.1400046b0
inc dword [0x14055ff74]
mov ecx, edi
mov rdi, r12
rep movsb byte [rdi], byte [rsi]
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
Function at 0x140004c70
Capabilities:
Get thread local storage value

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
lea rdi, [0x14055ffe0]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14055ffc0]
test rbx, rbx
je 0x140004cbc
mov ecx, dword [rbx]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
test rsi, rsi
je 0x140004cb6
test eax, eax
jne 0x140004cb6
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
jmp 0x140004c8e
mov rcx, rdi
add rsp, 0x20
pop rbx
pop rsi
pop rdi
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x140004e70
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x140004e93
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
jne 0x140004e93
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x140004e94
Capabilities:
Enumerate pe sections

Disassembly:
xor r8d, r8d
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r9d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
cmp r8d, r9d
jae 0x140004ece
mov r10d, dword [rax + 0xc]
mov rcx, r10
cmp rdx, r10
jb 0x140004ec5
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x140004ed0
inc r8d
add rax, 0x28
jmp 0x140004eac
xor eax, eax
ret

Function at 0x140004f41
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x14055b130]
mov r8, rcx
mov rcx, r9
call fcn.140004e70
test eax, eax
je 0x140004f6d
mov rdx, r8
mov rcx, r9
sub rdx, r9
add rsp, 0x28
jmp fcn.140004e94
xor eax, eax
add rsp, 0x28
ret
Function at 0x14001622b
Capabilities:
Write file on windows

Disassembly:
jmp 0x140039010
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x128
lea rbp, [rsp + 0x20]
lea rcx, [0x14006826b]
call fcn.1400174f5
mov rax, qword [rbp + 0x120]
cmp qword [rax + 0x68], 0
je 0x140039067
mov r8, qword [rbp + 0x130]
mov rdx, qword [rbp + 0x128]
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
jmp 0x140039173
mov rax, qword [rbp + 0x130]
mov qword [rbp + 8], rax
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pnavail_void_const___ptr64]
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x130], 0
jle 0x14003910c
cmp qword [rbp + 0x28], 0
jle 0x14003910c
mov rax, qword [rbp + 0x28]
cmp qword [rbp + 0x130], rax
jge 0x1400390ac
mov rax, qword [rbp + 0x130]
mov qword [rbp + 0x28], rax
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const___ptr64]
mov r8, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x128]
mov rcx, rax
call fcn.1400173ab
mov rax, qword [rbp + 0x28]
mov rcx, qword [rbp + 0x128]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x128], rax
mov rax, qword [rbp + 0x28]
mov rcx, qword [rbp + 0x130]
sub rcx, rax
mov rax, rcx
mov qword [rbp + 0x130], rax
mov edx, dword [rbp + 0x28]
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pbump_int____ptr64]
cmp qword [rbp + 0x130], 0
jle 0x140039162
mov rax, qword [rbp + 0x120]
cmp qword [rax + 0x80], 0
je 0x140039162
mov rax, qword [rbp + 0x120]
mov r9, qword [rax + 0x80]
mov r8, qword [rbp + 0x130]
mov edx, 1
mov rcx, qword [rbp + 0x128]
call qword [sym.imp.ucrtbased.dll_fwrite]
mov rcx, qword [rbp + 0x130]
sub rcx, rax
mov rax, rcx
mov qword [rbp + 0x130], rax
mov rax, qword [rbp + 0x130]
mov rcx, qword [rbp + 8]
sub rcx, rax
mov rax, rcx
lea rsp, [rbp + 0x108]
pop rdi
pop rbp
ret
Function at 0x1400162ad
Capabilities:
Allocate or change rwx memory
Create thread
Inject dll
Inject thread
Spawn thread to rwx shellcode

Disassembly:
jmp 0x140020750
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x158
lea rbp, [rsp + 0x40]
lea rcx, [0x1400680f7]
call fcn.1400174f5
mov rcx, qword [rbp + 0x138]
call fcn.14001620d
mov rcx, rax
call fcn.14001694c
inc rax
mov dword [rsp + 0x20], 4
mov r9d, 0x1000
mov r8, rax
xor edx, edx
mov rcx, qword [rbp + 0x130]
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov qword [rbp + 8], rax
mov rcx, qword [rbp + 0x138]
call fcn.14001620d
mov rcx, rax
call fcn.14001694c
inc rax
mov qword [rbp + 0xf8], rax
mov rcx, qword [rbp + 0x138]
call fcn.14001620d
mov qword [rbp + 0x100], rax
mov qword [rsp + 0x20], 0
mov r9, qword [rbp + 0xf8]
mov r8, qword [rbp + 0x100]
mov rdx, qword [rbp + 8]
mov rcx, qword [rbp + 0x130]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
lea rcx, str.Kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rdx, str.LoadLibraryA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov rcx, qword [rbp + 8]
mov qword [rsp + 0x20], rcx
mov r9, rax
xor r8d, r8d
xor edx, edx
mov rcx, qword [rbp + 0x130]
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov qword [rbp + 0x28], rax
mov edx, 0xffffffff
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rbp + 0x138]
call fcn.14001620d
mov rcx, rax
call fcn.14001694c
inc rax
mov r9d, 0x8000
mov r8, rax
mov rdx, qword [rbp + 8]
mov rcx, qword [rbp + 0x130]
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov rcx, qword [rbp + 0x138]
call fcn.140016415
lea rsp, [rbp + 0x118]
pop rdi
pop rbp
ret

Function at 0x140016bd1
Capabilities:
Terminate process

Disassembly:
jmp 0x14003f590
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret
Function at 0x140016c30
Capabilities:
Enumerate processes

Disassembly:
jmp 0x140020530
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x4c8
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0xca
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x4e8]
mov rax, qword [0x14005a058]
xor rax, rbp
mov qword [rbp + 0x498], rax
lea rcx, [0x1400680f7]
call fcn.1400174f5
mov dword [rbp + 0x264], 0
mov dword [rbp + 0x10], 0x238
xor edx, edx
mov ecx, 2
call fcn.1400169ce
mov qword [rbp + 0x288], rax
cmp qword [rbp + 0x288], 0xffffffffffffffff
jne 0x1400205ca
mov qword [rbp + 0x448], 0
mov rcx, qword [rbp + 0x4c0]
call fcn.1400171e4
mov rax, qword [rbp + 0x448]
jmp 0x1400206a9
lea rdx, [rbp + 0x10]
mov rcx, qword [rbp + 0x288]
call fcn.140016cc1
lea rdx, [rbp + 0x3c]
mov rcx, qword [rbp + 0x4c0]
call fcn.140016258
test eax, eax
jne 0x140020604
mov rcx, qword [rbp + 0x288]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rbp + 0x18]
mov dword [rbp + 0x264], eax
lea rdx, [rbp + 0x10]
mov rcx, qword [rbp + 0x288]
call fcn.1400171f8
test eax, eax
je 0x140020644
lea rdx, [rbp + 0x3c]
mov rcx, qword [rbp + 0x4c0]
call fcn.140016258
test eax, eax
jne 0x140020642
mov rcx, qword [rbp + 0x288]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rbp + 0x18]
mov dword [rbp + 0x264], eax
jmp 0x140020604
cmp dword [rbp + 0x264], 0
je 0x14002068b
mov r8d, dword [rbp + 0x264]
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [rbp + 0x2a8], rax
mov rax, qword [rbp + 0x2a8]
mov qword [rbp + 0x468], rax
mov rcx, qword [rbp + 0x4c0]
call fcn.1400171e4
mov rax, qword [rbp + 0x468]
jmp 0x1400206a9
mov qword [rbp + 0x488], 0
mov rcx, qword [rbp + 0x4c0]
call fcn.1400171e4
mov rax, qword [rbp + 0x488]
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x140049410]
call fcn.140017153
mov rax, rdi
mov rcx, qword [rbp + 0x498]
xor rcx, rbp
call fcn.140016a0a
lea rsp, [rbp + 0x4a8]
pop rdi
pop rbp
ret

Function at 0x140016d9d
Capabilities:
Get geographical location

Disassembly:
jmp 0x140039700
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x58
mov r9d, 2
lea r8, [rsp + 0x40]
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0
jne 0x14003973d
mov dword [rsp + 0x40], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x40]
mov r8d, dword [rsp + 0x60]
xor edx, edx
mov ecx, 0x1300
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov dword [rsp + 0x48], eax
mov eax, dword [rsp + 0x48]
mov edx, eax
mov rax, qword [rsp + 0x68]
mov rcx, qword [rax]
call fcn.1400174d7
add rsp, 0x58
ret
Function at 0x140016e79
Capabilities:
Parse pe header

Disassembly:
jmp 0x140040270
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140040290
xor al, al
jmp 0x140040311
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x1400402a3
xor al, al
jmp 0x140040311
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x1400402cd
xor al, al
jmp 0x140040311
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x1400402e1
xor al, al
jmp 0x140040311
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x1400402f3
xor al, al
jmp 0x140040311
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14004030f
xor al, al
jmp 0x140040311
mov al, 1
add rsp, 0x38
ret
Function at 0x1400174af
Capabilities:
Write file on windows

Disassembly:
jmp 0x140030610
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x1e8
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x3e
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x208]
mov rax, qword [0x14005a058]
xor rax, rbp
mov qword [rbp + 0x1a8], rax
lea rcx, [0x14006826b]
call fcn.1400174f5
mov rax, qword [rbp + 0x1d0]
cmp qword [rax + 0x68], 0
je 0x140030676
mov rax, qword [rbp + 0x1d0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x14003067d
mov al, 1
jmp 0x1400307ef
mov rax, qword [rbp + 0x1d0]
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
mov qword [rbp + 0x198], rax
call fcn.1400165d7
mov dword [rbp + 0x1a0], eax
mov edx, dword [rbp + 0x1a0]
mov rcx, qword [rbp + 0x1d0]
call qword [rbp + 0x198]
mov dword [rbp + 0x164], eax
call fcn.1400165d7
mov dword [rbp + 0x184], eax
lea rdx, [rbp + 0x164]
lea rcx, [rbp + 0x184]
call fcn.14001718a
movzx eax, al
test eax, eax
je 0x1400306e2
xor al, al
jmp 0x1400307ef
mov qword [rbp + 8], 0x20
mov rax, qword [rbp + 0x1d0]
mov rax, qword [rax + 0x68]
mov qword [rbp + 0x198], rax
lea rax, [rbp + 0x48]
mov rcx, qword [rbp + 0x1d0]
add rcx, 0x74
lea rdx, [rbp + 0x68]
mov qword [rsp + 0x20], rdx
mov r9, rax
lea r8, [rbp + 0x28]
mov rdx, rcx
mov rcx, qword [rbp + 0x198]
call qword [sym.imp.MSVCP140D.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
mov dword [rbp + 0x1a0], eax
cmp dword [rbp + 0x1a0], 0
je 0x140030755
cmp dword [rbp + 0x1a0], 1
je 0x140030760
cmp dword [rbp + 0x1a0], 3
je 0x1400307de
jmp 0x1400307ed
mov rax, qword [rbp + 0x1d0]
mov byte [rax + 0x71], 0
lea rax, [rbp + 0x28]
mov rcx, qword [rbp + 0x68]
sub rcx, rax
mov rax, rcx
mov qword [rbp + 0x88], rax
cmp qword [rbp + 0x88], 0
jbe 0x1400307b0
mov rax, qword [rbp + 0x1d0]
mov r9, qword [rax + 0x80]
mov r8, qword [rbp + 0x88]
mov edx, 1
lea rcx, [rbp + 0x28]
call qword [sym.imp.ucrtbased.dll_fwrite]
cmp qword [rbp + 0x88], rax
je 0x1400307b0
xor al, al
jmp 0x1400307ef
mov rax, qword [rbp + 0x1d0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x1400307cb
mov dword [rbp + 0x194], 1
jmp 0x1400307d5
mov dword [rbp + 0x194], 0
movzx eax, byte [rbp + 0x194]
jmp 0x1400307ef
mov rax, qword [rbp + 0x1d0]
mov byte [rax + 0x71], 0
mov al, 1
jmp 0x1400307ef
xor al, al
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, [0x14004bc70]
call fcn.140017153
mov rax, rdi
mov rcx, qword [rbp + 0x1a8]
xor rcx, rbp
call fcn.140016a0a
lea rsp, [rbp + 0x1b8]
pop rdi
pop rbp
ret
Function at 0x140017595
Capabilities:
Print debug messages

Disassembly:
jmp 0x140041364
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
xor edx, edx
mov rdi, rcx
lea r8d, [rdx + 0x28]
add rcx, r8
call fcn.140016fb9
and qword [rdi + 0x50], 0
lea rax, [0x140000000]
and dword [rdi + 0x58], 0
lea rcx, [rdi + 0x28]
and dword [rdi + 0x5c], 0
xor r8d, r8d
mov qword [rdi + 0x10], rax
xor edx, edx
mov qword [rdi + 8], rax
lea rax, [0x1400513c0]
mov qword [rdi + 0x20], rax
mov dword [rdi], 0x60
mov dword [rdi + 0x18], 0xe00
call fcn.1400169bf
test eax, eax
jne 0x1400413fb
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
test ecx, ecx
jns 0x1400413fb
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x1400413f4
lea rcx, str.ERROR_:_Unable_to_initialize_critical_section_in_CAtlBaseModule_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov byte [0x14005d250], 1
mov rbx, qword [rsp + 0x30]
mov rax, rdi
add rsp, 0x20
pop rdi
ret
Function at 0x1400036a4
Capabilities:
Resolve function by parsing pe exports

Disassembly:
movss xmm0, dword [r8]
xorps xmm1, xmm1
ucomiss xmm0, xmm1
jp 0x1400036c0
jne 0x1400036c0
movss xmm0, dword [r8 + 4]
ucomiss xmm0, xmm1
jp 0x1400036c0
je 0x1400036de
mov rax, qword [0x140103e20]
movsd xmm0, qword [r8]
movsd qword [rax + 0x1af4], xmm0
mov dword [rax + 0x1acc], 4
comiss xmm3, xmm1
jb 0x1400036fc
mov rax, qword [0x140103e20]
movss dword [rax + 0x1b28], xmm3
mov dword [rax + 0x1ae0], 1
mov r8d, dword [rsp + 0x28]
jmp fcn.140003708