joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140024400
Capabilities:
Delete file

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x58
mov rsi, rcx
mov rax, qword [0x1400e3040]
xor rax, rsp
mov qword [rsp + 0x50], rax
call fcn.1400245c0
mov eax, dword [rsi]
mov dword [0x1400e5020], eax
mov bl, 1
test al, 1
jne 0x140024447
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1400574e0
mov eax, ebx
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop r14
ret
mov rcx, qword [0x1400f4138]
test rcx, rcx
je 0x140024475
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [0x1400f4138], 0
cmp qword [0x1400f4140], 0
jne 0x140024475
and byte [0x1400e5020], 0xfe
mov rax, qword [rsi + 0x28]
test rax, rax
je 0x14002449e
movsx rcx, byte [rsi + 0x1f]
test rcx, rcx
jns 0x14002448c
mov rcx, qword [rsi + 0x10]
test rcx, rcx
jne 0x140024517
mov qword [0x1400f4138], rax
jmp 0x14002442e
movsx rax, byte [rsi + 0x1f]
test rax, rax
jns 0x1400244ac
mov rax, qword [rsi + 0x10]
test rax, rax
je 0x140024566
lea rdi, [rsi + 8]
mov rcx, qword [0x1400f4140]
test rcx, rcx
jne 0x1400244e7
mov ecx, 0x18
call fcn.140056290
mov rcx, rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov qword [rax + 0x10], 0
mov qword [0x1400f4140], rax
mov rdx, rdi
call fcn.14001ca40
cmp dword [rsi + 0x24], 0
jne 0x14002450b
mov rcx, qword [0x1400f4140]
cmp byte [rcx + 0x17], 0
jns 0x140024505
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
call fcn.1400a16c0
mov ebx, eax
jmp 0x14002442e
lea rdx, str.BaseInitLoggingImpl_built_with_NDEBUG
lea r8, [0x1400cc394]
lea rdi, [rsp + 0x28]
mov rcx, rdi
mov r9d, 0x231
call fcn.140046700
lea rdx, str.settings.log_file_path.empty__
lea r14, [rsp + 0x48]
mov rcx, r14
mov r8d, 0x7f
mov r9, rdi
call fcn.1400a6000
mov rcx, r14
call fcn.1400a6210
mov rax, qword [rsi + 0x28]
jmp 0x140024495
lea rdx, str.BaseInitLoggingImpl_built_with_NDEBUG
lea r8, [0x1400cc394]
lea rdi, [rsp + 0x28]
mov rcx, rdi
mov r9d, 0x237
call fcn.140046700
lea rdx, str._settings.log_file_path.empty__
lea rbx, [rsp + 0x20]
mov rcx, rbx
mov r8d, 0x7f
mov r9, rdi
call fcn.1400a6000
lea rdx, str.LOG_TO_FILE_set_but_no_log_file_path_
mov rcx, rbx
call fcn.1400a1690
mov rcx, rbx
call fcn.1400a6210
jmp 0x1400244b5
Function at 0x140025ee0
Capabilities:
Accept command line arguments

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x50
movaps xmmword [rsp + 0x40], xmm6
mov rax, qword [0x1400e3040]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rdi, qword [0x1400f41a8]
test rdi, rdi
jne 0x140025f93
mov ecx, 0x50
call fcn.140056290
mov rsi, rax
xorps xmm6, xmm6
movups xmmword [rax], xmm6
mov byte [rax + 0x10], 0
mov ecx, 0x18
call fcn.140056290
mov qword [rsi + 0x18], rax
lea rcx, [rax + 0x18]
mov qword [rsi + 0x28], rcx
test rax, rax
je 0x140025fb5
movups xmmword [rax], xmm6
mov qword [rax + 0x10], 0
mov qword [rsi + 0x20], rcx
mov rax, rsi
add rax, 0x38
movups xmmword [rsi + 0x38], xmm6
mov qword [rsi + 0x30], rax
mov qword [rsi + 0x48], 1
mov qword [0x1400f41a8], rsi
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov qword [rsp + 0x28], rax
test rax, rax
je 0x140025fb5
mov rcx, rax
call fcn.14006faf8
lea rdx, [rsp + 0x28]
mov qword [rdx + 8], rax
mov rcx, rsi
call fcn.140025fc0
test rdi, rdi
sete bl
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1400574e0
mov eax, ebx
movaps xmm6, xmmword [rsp + 0x40]
add rsp, 0x50
pop rbx
pop rdi
pop rsi
ret
ud2
Function at 0x140025fc0
Capabilities:
Accept command line arguments

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x78
movaps xmmword [rsp + 0x60], xmm6
mov rbx, rdx
mov rsi, rcx
mov rax, qword [0x1400e3040]
xor rax, rsp
mov qword [rsp + 0x58], rax
movups xmm0, xmmword [rdx]
lea rdx, [rsp + 0x40]
movaps xmmword [rdx], xmm0
lea rdi, [rsp + 0x20]
mov rcx, rdi
mov r8d, 3
call fcn.14002dfb0
movups xmm0, xmmword [rdi]
movups xmmword [rbx], xmm0
cmp qword [rbx + 8], 0
je 0x140026148
movups xmm0, xmmword [rbx]
movups xmmword [rsi], xmm0
mov dword [rsp + 0x3c], 0
lea rcx, [0x1400cc528]
xor edx, edx
mov r8d, 0x800
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdi, rax
test rax, rax
je 0x14002617b
lea rdx, [0x1400cc578]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14002616a
mov rcx, qword [rbx]
lea rdx, [rsp + 0x3c]
call qword [0x1400d9088]
mov rbx, rax
movsxd r12, dword [rsp + 0x3c]
xorps xmm6, xmm6
movaps xmmword [rsp + 0x20], xmm6
mov qword [rsp + 0x30], 0
test r12, r12
je 0x1400260e2
test r12d, r12d
js 0x140026171
shl r12, 3
lea r15, [r12 + r12*2]
mov rcx, r15
call fcn.140056290
mov r14, rax
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], rax
add rax, r15
mov qword [rsp + 0x30], rax
xor r15d, r15d
test r14, r14
je 0x140026168
mov rdx, qword [rbx + r15]
mov rcx, r14
call fcn.14001a8f0
add r14, 0x18
add r15, 8
cmp r12, r15
jne 0x1400260bb
mov qword [rsp + 0x28], r14
lea rdx, [rsp + 0x20]
mov rcx, rsi
call fcn.140025cb0
movups xmmword [rsi], xmm6
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
test rdi, rdi
je 0x140026109
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rsi, qword [rsp + 0x20]
test rsi, rsi
je 0x140026148
mov rdi, qword [rsp + 0x28]
cmp rdi, rsi
je 0x140026140
add rdi, 0xffffffffffffffe8
test rdi, rdi
je 0x140026168
cmp byte [rdi + 0x17], 0
jns 0x140026134
mov rcx, qword [rdi]
call fcn.1400562cc
lea rax, [rdi - 0x18]
cmp rdi, rsi
mov rdi, rax
jne 0x140026121
mov rcx, rsi
call fcn.1400562cc
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400574e0
movaps xmm6, xmmword [rsp + 0x60]
add rsp, 0x78
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
ud2
xor ebx, ebx
jmp 0x14002606f
lea rcx, [rsp + 0x20]
call fcn.140087930
mov rcx, qword [rbx]
lea rdx, [rsp + 0x3c]
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
jmp 0x14002606c
Function at 0x1400294a0
Capabilities:
Get system information on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x158
mov rax, qword [0x1400e3040]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov eax, dword [0x1400f41d8]
mov ecx, dword [0x1400f1628]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140029500
lea rsi, [0x1400f41d0]
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.1400574e0
mov rax, rsi
add rsp, 0x158
pop rdi
pop rsi
ret
lea rcx, [0x1400f41d8]
call fcn.14005631c
cmp dword [0x1400f41d8], 0xffffffff
jne 0x1400294dc
lea rsi, [rsp + 0x38]
mov r8d, 0x118
mov rcx, rsi
xor edx, edx
call fcn.140086760
mov dword [rsi - 4], 0x11c
lea rsi, [rsp + 0x34]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
lea rdi, [rsp + 0x30]
mov dword [rdi], 0
mov ecx, dword [rsi + 4]
mov edx, dword [rsi + 8]
mov qword [rsp + 0x20], rdi
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_GetProductInfo]
mov ecx, 0x88
call fcn.140056290
mov rsi, rax
mov edi, dword [rdi]
mov eax, dword [0x1400f4220]
mov ecx, dword [0x1400f1628]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jle 0x1400295d7
lea rcx, [0x1400f4220]
call fcn.14005631c
cmp dword [0x1400f4220], 0xffffffff
jne 0x1400295d7
xorps xmm0, xmm0
movups xmmword [0x1400f4210], xmm0
movups xmmword [0x1400f4200], xmm0
movups xmmword [0x1400f41f0], xmm0
lea rcx, [0x1400f41f0]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea rcx, [0x1400f4220]
call fcn.1400563d0
lea r8, [0x1400f41f0]
lea rdx, [rsp + 0x34]
mov rcx, rsi
mov r9d, edi
call fcn.1400296c0
mov qword [0x1400f41d0], rsi
lea rcx, [0x1400f41d8]
call fcn.1400563d0
jmp 0x1400294dc

Function at 0x140029610
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x28
mov eax, dword [0x1400f4220]
mov ecx, dword [0x1400f1628]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jle 0x14002967b
lea rcx, [0x1400f4220]
call fcn.14005631c
cmp dword [0x1400f4220], 0xffffffff
jne 0x14002967b
xorps xmm0, xmm0
movups xmmword [0x1400f4210], xmm0
movups xmmword [0x1400f4200], xmm0
movups xmmword [0x1400f41f0], xmm0
lea rcx, [0x1400f41f0]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea rcx, [0x1400f4220]
call fcn.1400563d0
movzx eax, word [0x1400f41f0]
cmp eax, 9
jne 0x140029691
mov eax, 1
add rsp, 0x28
ret
test eax, eax
je 0x14002968c
cmp eax, 6
jne 0x1400296a1
mov eax, 2
jmp 0x14002968c
cmp eax, 0xc
jne 0x1400296ad
mov eax, 3
jmp 0x14002968c
mov eax, 4
jmp 0x14002968c
Function at 0x14002c710
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x90
mov rdi, rcx
mov rax, qword [0x1400e3040]
xor rax, rsp
mov qword [rsp + 0x88], rax
movaps xmm0, xmmword [0x1400c9910]
lea rsi, [rsp + 0x40]
movaps xmmword [rsi + 0x30], xmm0
movaps xmmword [rsi + 0x20], xmm0
movaps xmmword [rsi + 0x10], xmm0
movaps xmmword [rsi], xmm0
lea rdx, str.PathExists
lea r8, str....._base_files_file_util_win.cc
lea rbx, [rsp + 0x20]
mov rcx, rbx
mov r9d, 0x20d
call fcn.140046700
mov rcx, rsi
mov rdx, rbx
xor r8d, r8d
call fcn.14002c620
cmp byte [rdi + 0x17], 0
jns 0x14002c782
mov rdi, qword [rdi]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne bl
mov rcx, rsi
call fcn.14002c6a0
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.1400574e0
mov eax, ebx
add rsp, 0x90
pop rbx
pop rdi
pop rsi
ret

Function at 0x140030cd0
Capabilities:
Query or enumerate registry value

Disassembly:
push rsi
push rdi
sub rsp, 0x48
mov rsi, r8
mov rax, qword [0x1400e3040]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov eax, 4
lea r9, [rsp + 0x3c]
mov dword [r9], eax
lea r8, [rsp + 0x38]
mov dword [r8], eax
lea rax, [rsp + 0x34]
mov dword [rax], 0
mov rcx, qword [rcx]
mov qword [rsp + 0x28], r8
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140030d58
mov eax, dword [rsp + 0x3c]
add eax, 0xfffffffd
mov edi, 0x3f4
cmp eax, 1
ja 0x140030d42
cmp dword [rsp + 0x38], 4
jne 0x140030d42
mov eax, dword [rsp + 0x34]
mov dword [rsi], eax
xor edi, edi
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1400574e0
mov eax, edi
add rsp, 0x48
pop rdi
pop rsi
ret
mov edi, eax
jmp 0x140030d42

Function at 0x140030d60
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push r14
push rsi
push rdi
push rbx
mov eax, 0x1048
call fcn.140057480
sub rsp, rax
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
mov rax, qword [0x1400e3040]
xor rax, rsp
mov qword [rsp + 0x1040], rax
lea r14, [rsp + 0x840]
mov r8d, 0x800
mov rcx, r14
mov dl, 0xaa
call fcn.140086760
lea r9, [rsp + 0x3c]
mov dword [r9], 1
lea rax, [rsp + 0x38]
mov dword [rax], 0x800
mov rcx, qword [rbx]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r14
mov rdx, rdi
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140030e13
mov eax, dword [rsp + 0x3c]
cmp eax, 1
jne 0x140030e17
lea rdx, [rsp + 0x840]
mov rcx, rsi
call fcn.140022cd0
xor edi, edi
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1400574e0
mov eax, edi
add rsp, 0x1048
pop rbx
pop rdi
pop rsi
pop r14
ret
mov edi, eax
jmp 0x140030df4
mov edi, 0x3f4
cmp eax, 2
jne 0x140030df4
lea rdi, [rsp + 0x40]
mov r8d, 0x800
mov rcx, rdi
mov dl, 0xaa
call fcn.140086760
lea rcx, [rsp + 0x840]
mov rdx, rdi
mov r8d, 0x400
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [rsp + 0x38], eax
add eax, 0xfffffbff
mov edi, 0xea
cmp eax, 0xfffffc00
jb 0x140030df4
lea rdx, [rsp + 0x40]
jmp 0x140030dea
Function at 0x1400333f0
Capabilities:
Query environment variable

Disassembly:
push rsi
push rdi
push rbx
mov eax, 0x10050
call fcn.140057480
sub rsp, rax
mov rsi, rdx
mov rax, qword [0x1400e3040]
xor rax, rsp
mov qword [rsp + 0x10048], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rdi, [rsp + 0x30]
mov qword [rdi + 0x10], rax
movaps xmm0, xmmword [0x1400c9910]
movaps xmmword [rdi], xmm0
movups xmm0, xmmword [rcx]
lea rdx, [rsp + 0x20]
movaps xmmword [rdx], xmm0
mov rcx, rdi
call fcn.14002db00
test rsi, rsi
jne 0x14003349b
cmp byte [rsp + 0x47], 0
js 0x140033458
lea rcx, [rsp + 0x30]
jmp 0x14003345d
mov rcx, qword [rsp + 0x30]
xor edx, edx
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
setne bl
cmp byte [rsp + 0x47], 0
jns 0x14003347e
mov rcx, qword [rsp + 0x30]
call fcn.1400562cc
mov rcx, qword [rsp + 0x10048]
xor rcx, rsp
call fcn.1400574e0
mov eax, ebx
add rsp, 0x10050
pop rbx
pop rdi
pop rsi
ret
lea rbx, [rsp + 0x4a]
mov r8d, 0xfffe
mov rcx, rbx
mov dl, 0xaa
call fcn.140086760
cmp byte [rsp + 0x47], 0
jns 0x1400334bc
mov rdi, qword [rsp + 0x30]
mov rcx, rdi
mov rdx, rbx
mov r8d, 0x7fff
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
setne bl
je 0x14003346d
cmp eax, 0x7fff
jae 0x1400334ed
mov edx, eax
lea rcx, [rsp + 0x4a]
mov r8, rsi
call fcn.1400a7db0
jmp 0x14003346d
int3

Function at 0x140033a10
Capabilities:
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
test rcx, rcx
je 0x140033a87
movabs rax, 0xe69e32f3ad9ea63
cmp qword [0x1400e5530], rax
jne 0x140033a8a
mov rsi, rcx
call fcn.1400386c0
mov edx, 0x570
mov rcx, rax
xor r8d, r8d
call fcn.140033a90
mov rdi, rax
mov rcx, rax
mov rdx, rsi
call fcn.14004e270
mov ecx, dword [0x1400f6538]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [0x1400f1628]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
mov qword [rax + 0x148], rdi
mov rax, rdi
add rsp, 0x28
pop rdi
pop rsi
ret
int3
int3
Function at 0x1400385c0
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rdi
sub rsp, 0x28
cmp qword [0x1400f7368], 0
jne 0x1400385fd
mov rsi, rdx
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x1400385f0
mov dword [rdi], eax
mov dword [0x1400f7370], eax
mov qword [0x1400f7368], rsi
cmp eax, 0xffffffff
setne al
add rsp, 0x28
pop rdi
pop rsi
ret
int3
Function at 0x140043d80
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
cmp qword [rcx], rdx
je 0x140043dde
mov rsi, rdx
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rdi]
inc rax
cmp rax, 2
jae 0x140043dc8
lea rax, [rsi + 1]
cmp rax, 2
jb 0x140043db8
mov qword [rdi], rsi
call fcn.140046720
mov ecx, ebx
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp qword [sym.imp.KERNEL32.dll_SetLastError]
call fcn.140046720
mov rcx, qword [rdi]
call fcn.140046730
mov qword [rdi], 0
jmp 0x140043da6
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
Function at 0x140055cf0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov eax, ecx
mov rcx, qword [rdx + 8]
test rcx, rcx
js 0x140055d2c
je 0x140055d2b
mov rdx, qword [rdx]
xor r8d, r8d
lea r9, [0x1400d5294]
nop word [rax + rax]
movzx r10d, al
movzx r11d, byte [rdx + r8]
xor r11d, r10d
shr eax, 8
xor eax, dword [r9 + r11*4]
inc r8
cmp rcx, r8
jne 0x140055d10
ret
int3

Function at 0x1400569ac
Capabilities:
Parse pe header

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

Function at 0x140056d00
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
movsxd r8, dword [0x14000003c]
lea rsi, [0x140000000]
add r8, rsi
mov rbx, rdx
mov rdi, rcx
cmp dword [r8 + 0x84], 0xd
jbe 0x140056d78
mov r10d, dword [r8 + 0xf0]
xor r9d, r9d
test r10d, r10d
je 0x140056d78
movzx ecx, word [r8 + 0x14]
movzx r11d, word [r8 + 6]
add rcx, 0x18
mov r10d, dword [r10 + rsi + 0xc]
add rcx, r8
test r11d, r11d
je 0x140056d78
mov eax, dword [rcx + 0xc]
cmp r10d, eax
jb 0x140056d6c
mov edx, dword [rcx + 8]
add eax, edx
cmp r10d, eax
jb 0x140056d8a
inc r9d
add rcx, 0x28
cmp r9d, r11d
jb 0x140056d5a
xor eax, eax
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
ret
mov dword [rdi], edx
mov eax, dword [rcx + 0x24]
mov dword [rbx], eax
mov eax, dword [rcx + 0xc]
add rax, rsi
jmp 0x140056d7a

Function at 0x140064df8
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, edx
mov rbp, rcx
test r8, r8
jne 0x140064e2f
call fcn.140067d10
mov dword [rax], 0x16
call fcn.1400760f4
xor eax, eax
jmp 0x140064ebd
mov rdx, r9
mov rcx, r8
call fcn.140064ee0
mov rbx, rax
test rax, rax
je 0x140064eba
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x140064f50]
mov eax, dword [rsp + 0x60]
mov r9, rbx
mov rcx, rbp
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x140064ea7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140067d50
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x140064e8e
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x140064e9d
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.140046290
jmp 0x140064eba
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140064eb7
mov eax, dword [rsp + 0x50]
mov dword [rcx], eax
mov rdi, rdx
mov rax, rdi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x14006516c
Capabilities:
Parse pe header

Disassembly:
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x14006516c
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x1400651db
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400651db
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400651db
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400651db
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400651db
cmp dword [rcx + 0x84], 0xe
jbe 0x1400651db
cmp dword [rcx + 0xf8], 0
je 0x1400651db
mov ecx, ebx
call fcn.1400650a4
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.140065300
nop
cmp dword [rbp + 0x20], 0
je 0x140065229
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140065138
int3
Function at 0x14006929c
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x1400f24b0]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x1400692f3
cmp word [rdx], r13w
jne 0x1400692f3
or byte [rax + rdi*8 + 0x38], cl
jmp 0x1400692f8
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x14006941d
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14006943e
lea r9, [rdx + 2]
cmp cx, r11w
je 0x140069331
mov rdx, r9
mov word [rbx], cx
jmp 0x140069358
cmp r9, r8
jae 0x140069368
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x140069312
jmp 0x14006941d
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140069412
cmp dword [rsp + 0x80], esi
je 0x140069412
lea r8, [0x1400f24b0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x1400693ea
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x1400693ba
mov word [rbx], r13w
jmp 0x14006941a
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x1400693c7
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14006941a
cmp word [rsp + 0x70], r13w
jne 0x1400693f7
cmp rbx, r14
je 0x1400693b4
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.140077a44
cmp word [rsp + 0x70], r13w
je 0x14006941d
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x1400f24b0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x140069417
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x14006941d
Function at 0x140070130
Capabilities:
Parse pe header

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

Function at 0x14007a638
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.140073d54
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x14007a6d9
cmp ebx, dword [rsp + 0x30]
je 0x14007a6d2
test esi, esi
je 0x14007a6d2
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x14007a6ad
sub r8w, 0x61
cmp r8w, 0x19
ja 0x14007a6ba
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x14007a697
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x14007a6be
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x14007a6db
mov eax, 1
jmp 0x14007a6db
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14007b4e4
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x14007b56b
mov rsi, rbx
cmp word [rax], bp
je 0x14007b52a
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14007b514
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14007b510
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140028b20
mov rdi, rax
test rax, rax
je 0x14007b558
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1400860c0
mov rbp, rdi
xor ecx, ecx
call fcn.140046290
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret