joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1401500f8
Capabilities:
Get graphical window text

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 r14
sub rsp, 0x20
mov rdi, r8
mov rbx, rcx
call fcn.140150238
xor r14d, r14d
mov esi, 1
mov rbp, rax
mov dword [rbx + 0x14], esi
mov rcx, rax
cmp dword [rbx], r14d
je 0x1401501ad
call qword [sym.imp.USER32.dll_GetWindowTextLengthW]
movsxd rbx, eax
test eax, eax
js 0x1401501d0
mov rcx, qword [rdi]
mov edx, dword [rcx - 0xc]
sub esi, dword [rcx - 8]
sub edx, ebx
or esi, edx
jge 0x14015015c
mov edx, ebx
mov rcx, rdi
call fcn.140002a38
mov rdx, qword [rdi]
cmp ebx, dword [rdx - 0xc]
jg 0x1401501d0
mov dword [rdx - 0x10], ebx
lea r8d, [rbx + 1]
mov rax, qword [rdi]
mov rcx, rbp
mov word [rax + rbx*2], r14w
call qword [sym.imp.USER32.dll_GetWindowTextW]
mov rcx, qword [rdi]
test rcx, rcx
jne 0x140150189
mov eax, r14d
jmp 0x140150196
movsxd rdx, dword [rcx - 0xc]
call fcn.14022e9f0
test eax, eax
js 0x1401501d0
mov rcx, qword [rdi]
cmp eax, dword [rcx - 0xc]
jg 0x1401501d0
mov dword [rcx - 0x10], eax
mov ecx, eax
mov rax, qword [rdi]
mov word [rax + rcx*2], r14w
jmp 0x1401501b5
mov rdx, qword [rdi]
call fcn.1400b1684
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
mov ecx, 0x80070057
call fcn.140002d6c
int3

Function at 0x14015028c
Capabilities:
Get graphical window text

Disassembly:
mov r11, rsp
mov dword [r11 + 0x20], r9d
push rbx
push rbp
push rsi
push rdi
push r15
sub rsp, 0xd0
mov rax, qword [0x14031a940]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rbp, r8
lea r15, [r11 + 0x28]
mov rdi, rcx
call fcn.140150238
cmp dword [rdi], 0
mov rsi, rax
mov dword [rdi + 0x14], 1
je 0x140150321
mov rbx, qword [r15]
lea rdx, [rsp + 0x40]
mov r8d, 0x40
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindowTextW]
mov r9, rbx
lea rcx, [rsp + 0x40]
mov r8, rbp
mov edx, 0x40
call fcn.1401503e4
cmp eax, 1
je 0x14015039a
mov ecx, dword [rsp + 0x118]
or r8d, 0xffffffff
xor edx, edx
call fcn.14009b464
mov rcx, rdi
call fcn.1401501dc
jmp 0x14015039a
call fcn.140229950
mov ebx, dword [rax]
call fcn.140229950
and dword [rax], 0
call fcn.140005cd8
mov r9d, 0x3f
mov qword [rsp + 0x30], r15
and qword [rsp + 0x28], 0
lea rdx, [rsp + 0x40]
mov qword [rsp + 0x20], rbp
mov rcx, qword [rax]
lea r8d, [r9 + 1]
call fcn.14022e114
call fcn.140229950
cmp dword [rax], 0
je 0x140150386
call fcn.140229950
cmp dword [rax], 0
je 0x14015038d
cmp dword [rax], 0xc
je 0x1401503ce
cmp dword [rax], 0x16
je 0x1401503c3
cmp dword [rax], 0x22
je 0x1401503c3
cmp dword [rax], 0x50
jne 0x1401503b8
jmp 0x14015038d
call fcn.140229950
mov dword [rax], ebx
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.1400b1684
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.140220510
add rsp, 0xd0
pop r15
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov ecx, 0x80004005
call fcn.140002d6c
int3
mov ecx, 0x80070057
call fcn.140002d6c
int3
mov ecx, 0x8007000e
call fcn.140002d6c
int3
Function at 0x14018225c
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rdi, qword [rcx + 0x28]
xor ebx, ebx
cmp dword [rdi - 0x10], ebx
je 0x1401822d4
mov rsi, qword [rcx + 0x18]
mov rbp, qword [rcx + 0x10]
call fcn.140099334
mov rcx, rax
test rax, rax
je 0x1401822ab
mov rax, qword [rax]
mov rax, qword [rax + 0xe8]
call qword [case.0x14013f43d.0]
test rax, rax
je 0x1401822ab
mov rcx, qword [rax + 0x40]
jmp 0x1401822ae
mov rcx, rbx
mov dword [rsp + 0x28], 1
mov r9, rbp
mov r8, rdi
mov qword [rsp + 0x20], rsi
xor edx, edx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp rax, 0x20
setae bl
mov eax, ebx
jmp 0x1401822d6
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x140189bd4
Capabilities:
Delete registry value

Disassembly:
sub rsp, 0x28
mov rcx, qword [rcx + 8]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
xor ecx, ecx
test eax, eax
sete cl
mov eax, ecx
add rsp, 0x28
ret

Function at 0x140189d0c
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
sub rsp, 0x38
mov rcx, qword [rcx + 8]
lea rax, [r11 + 8]
mov qword [r11 - 0x10], rax
lea r9, [r11 + 0x20]
mov qword [r11 - 0x18], r8
xor r8d, r8d
mov dword [rsp + 0x40], 4
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
xor edx, edx
test eax, eax
jne 0x140189d4e
mov ecx, dword [rsp + 0x58]
sub ecx, 4
neg ecx
sbb eax, eax
and eax, 0xd
test eax, eax
sete dl
mov eax, edx
add rsp, 0x38
ret

Function at 0x14018a144
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x30
mov rdi, r9
mov rbx, r8
mov rsi, rdx
mov rbp, rcx
test rdx, rdx
je 0x14018a20e
test rbx, rbx
je 0x14018a20e
test r9, r9
je 0x14018a20e
and qword [r8], 0
xor r8d, r8d
and dword [r9], 0
mov rcx, qword [rcx + 8]
mov qword [rax - 0x10], r9
lea r9, [rax + 0x10]
and qword [rax - 0x18], 0
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14018a20a
cmp dword [rsp + 0x48], 3
jne 0x14018a20a
cmp dword [rdi], eax
je 0x14018a20a
mov ecx, dword [rdi]
call fcn.140003e80
mov qword [rbx], rax
lea r9, [rsp + 0x48]
mov rcx, qword [rbp + 8]
xor r8d, r8d
mov qword [rsp + 0x28], rdi
mov rdx, rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14018a1fe
cmp dword [rsp + 0x48], 3
jne 0x14018a1fe
mov eax, 1
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
mov rcx, qword [rbx]
call fcn.140004144
and qword [rbx], 0
xor eax, eax
jmp 0x14018a1e9
call fcn.140084558
int3
Function at 0x14018a4d0
Capabilities:
Set registry value

Disassembly:
push rbx
sub rsp, 0x30
xor ebx, ebx
cmp dword [rcx + 0x28], ebx
je 0x14018a4e1
xor eax, eax
jmp 0x14018a50f
mov rcx, qword [rcx + 8]
lea rax, [rsp + 0x40]
mov r9d, 4
mov dword [rsp + 0x40], r8d
mov dword [rsp + 0x28], r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
sete bl
mov eax, ebx
add rsp, 0x30
pop rbx
ret

Function at 0x14018a518
Capabilities:
Set registry value

Disassembly:
push rbx
sub rsp, 0x30
xor ebx, ebx
cmp dword [rcx + 0x28], ebx
je 0x14018a529
xor eax, eax
jmp 0x14018a54d
mov rcx, qword [rcx + 8]
mov dword [rsp + 0x28], r9d
mov r9d, 3
mov qword [rsp + 0x20], r8
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
sete bl
mov eax, ebx
add rsp, 0x30
pop rbx
ret
Function at 0x1401cfeac
Capabilities:
Log keystrokes via polling
Open clipboard
Write clipboard data

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x30
mov rsi, rdx
mov rbp, rcx
cmp dword [rdx + 8], 0x100
jne 0x1401cffe1
mov ebx, dword [rdx + 0x10]
mov ecx, 0x11
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
bt ax, 0xf
jae 0x1401cffe1
cmp ebx, 0x43
je 0x1401cfef8
cmp ebx, 0x2d
jne 0x1401cffe1
mov rcx, qword [rbp + 0x40]
call qword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x1401cffe1
call qword [sym.imp.USER32.dll_EmptyClipboard]
nop
call fcn.140083794
mov rcx, rax
test rax, rax
je 0x1401cfffe
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
call qword [case.0x14013f43d.0]
add rax, 0x18
mov qword [rsp + 0x58], rax
movzx eax, byte [rbp + 0x196]
movzx r9d, byte [rbp + 0x195]
movzx r8d, byte [rbp + 0x194]
mov dword [rsp + 0x20], eax
lea rdx, str.RGB__d___d___d_
lea rcx, [rsp + 0x58]
call fcn.140005ea4
mov rbx, qword [rsp + 0x58]
mov eax, dword [rbx - 0x10]
inc eax
movsxd rdx, eax
add rdx, rdx
mov ecx, 0x2000
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov r14, rax
test rax, rax
je 0x1401cffb8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
test rax, rax
je 0x1401cffb8
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rdx, r14
mov ecx, SafeArrayGetDim
call qword [sym.imp.USER32.dll_SetClipboardData]
call qword [sym.imp.USER32.dll_CloseClipboard]
nop
or eax, 0xffffffff
lock xadd dword [rbx - 8], eax
sub eax, 1
jg 0x1401cffe1
mov rcx, qword [rbx - 0x18]
mov rax, qword [rcx]
lea rdx, [rbx - 0x18]
mov rax, qword [rax + 8]
call qword [case.0x14013f43d.0]
mov rdx, rsi
mov rcx, rbp
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x60]
add rsp, 0x30
pop r14
pop rdi
pop rsi
jmp method.CDialogEx.virtual_536
mov ecx, 0x80004005
call fcn.140002d6c
int3

Function at 0x1401e84a0
Capabilities:
Get file system object information

Disassembly:
push rbx
sub rsp, 0x310
mov rax, qword [0x14031a940]
xor rax, rsp
mov qword [rsp + 0x300], rax
mov qword [rsp + 0x38], rdx
mov rax, r8
mov rbx, rdx
test r8, r8
je 0x1401e851f
mov rcx, qword [rax + 8]
lea r8, [rsp + 0x40]
mov r9d, 0x2b8
mov dword [rsp + 0x20], 0x208
xor edx, edx
call qword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov rcx, rbx
lea rdx, [rsp + 0x50]
test rax, rax
jne 0x1401e84fe
lea rdx, [0x1402aa410]
call fcn.140003de0
mov rax, rbx
mov rcx, qword [rsp + 0x300]
xor rcx, rsp
call fcn.140220510
add rsp, 0x310
pop rbx
ret
call fcn.140084558
int3
Function at 0x1401edcdc
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0x40
and dword [rax - 0x18], 0
mov rbp, r9
mov rbx, r8
mov rdi, rdx
mov rsi, rcx
lea rcx, [rsp + 0x30]
call fcn.14023f33c
test eax, eax
jne 0x1401edd40
mov eax, dword [rsp + 0x30]
lea r8, str._s_s_X.tmp
mov dword [rsp + 0x28], eax
mov r9, rsi
mov rdx, rbp
mov qword [rsp + 0x20], rdi
mov rcx, rbx
call fcn.14009ac14
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1401edd52
jmp 0x1401edd00
mov r9, rbx
xor r8d, r8d
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret

Function at 0x1402001e0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov r14, r9
mov r15, r8
mov rdi, rdx
mov rbp, rcx
test rdx, rdx
je 0x1402002a1
mov esi, 0x811c9dc5
xor ebx, ebx
mov rcx, rdx
call fcn.14022e8c4
mov r8, rax
mov eax, 0xcccccccd
mul r8d
shr edx, 3
inc edx
test r8d, r8d
je 0x140200244
movzx ecx, word [rdi + rbx*2]
imul esi, esi, 0x1000193
xor esi, ecx
add ebx, edx
cmp ebx, r8d
jb 0x140200231
mov dword [r14], esi
xor edx, edx
mov eax, esi
div dword [rbp + 0x10]
mov dword [r15], edx
mov rbx, qword [rbp + 8]
test rbx, rbx
je 0x140200286
mov rbx, qword [rbx + rdx*8]
test rbx, rbx
je 0x140200286
mov eax, dword [r14]
cmp dword [rbx + 8], eax
jne 0x14020027c
mov rdx, rdi
mov rcx, qword [rbx + 0x10]
call fcn.1402379ac
nop
test eax, eax
je 0x140200281
mov rbx, qword [rbx]
jmp 0x14020025e
mov rax, rbx
jmp 0x140200288
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
call fcn.140084558
int3

Function at 0x140221124
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14022116e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14022116e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14022116e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14022116e
cmp dword [rcx + 0x84], 0xe
jbe 0x14022116e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140221170
xor al, al
add rsp, 0x28
ret
Function at 0x1402378b8
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 0x1402378ef
call fcn.140229950
mov dword [rax], 0x16
call fcn.1402297e4
xor eax, eax
jmp 0x14023797d
mov rdx, r9
mov rcx, r8
call fcn.14023778c
mov rbx, rax
test rax, rax
je 0x14023797a
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x140237648]
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 0x140237967
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1402298c4
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x14023794e
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x14023795d
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.140243d10
jmp 0x14023797a
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140237977
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 0x14023e784
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.140220e40
sub rsp, rax
mov rax, qword [0x14031a940]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14023ddec
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14023e7d3
mov rax, rbp
jmp 0x14023e8db
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x329600]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14024ae2c
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x329600]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14023e8d7
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14023e8d7
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14024ae2c
test rax, rax
js 0x14023e8d7
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14023e8d7
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14023e8c9
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14023e8c9
cmp byte [rcx], 0xd
jne 0x14023e8af
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14023e8be
cmp byte [rcx + 1], 0xa
jne 0x14023e8be
inc rcx
jmp 0x14023e8be
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x31af30]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14023e891
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14023e8db
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140220510
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140240768
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140240564
Function at 0x1402480e4
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1402480fa
mov al, 1
jmp 0x14024815a
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14024810b
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140248158
mov ecx, dword [rcx + 0x18]
nop
call fcn.14023eeac
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140248158
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140248158
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140248158
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14024815a
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x140249eb8
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, [0x140329600]
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 0x140249f0f
cmp word [rdx], r13w
jne 0x140249f0f
or byte [rax + rdi*8 + 0x38], cl
jmp 0x140249f14
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x14024a039
mov r11d, SafeArrayGetDim
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14024a05a
lea r9, [rdx + 2]
cmp cx, r11w
je 0x140249f4d
mov rdx, r9
mov word [rbx], cx
jmp 0x140249f74
cmp r9, r8
jae 0x140249f84
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 0x140249f2e
jmp 0x14024a039
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 0x14024a02e
cmp dword [rsp + 0x80], esi
je 0x14024a02e
lea r8, [0x140329600]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14024a006
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x140249fd6
mov word [rbx], r13w
jmp 0x14024a036
mov ecx, SafeArrayGetDim
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 0x140249fe3
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14024a036
cmp word [rsp + 0x70], r13w
jne 0x14024a013
cmp rbx, r14
je 0x140249fd0
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.14024ae34
cmp word [rsp + 0x70], r13w
je 0x14024a039
mov ecx, SafeArrayGetDim
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, [0x140329600]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14024a033
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x14024a039
Function at 0x14024c030
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 0x14024c0b7
mov rsi, rbx
cmp word [rax], bp
je 0x14024c076
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14024c060
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14024c05c
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140243d4c
mov rdi, rax
test rax, rax
je 0x14024c0a4
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140224cf0
mov rbp, rdi
xor ecx, ecx
call fcn.140243d10
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
Function at 0x14024eb54
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.1402438d8
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 0x14024ebf5
cmp ebx, dword [rsp + 0x30]
je 0x14024ebee
test esi, esi
je 0x14024ebee
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x14024ebc9
sub r8w, 0x61
cmp r8w, 0x19
ja 0x14024ebd6
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x14024ebb3
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x14024ebda
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x14024ebf7
mov eax, 1
jmp 0x14024ebf7
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x140253370
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140253398
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140253398
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x1400130a0
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.14001da60
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.14001da60
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 0x140013110
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x140142144]
mov rbx, rcx
test esi, esi
jle 0x140013240
mov rax, qword [0x140142148]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14001315b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x1400131e5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140013140
mov rcx, rbx
call fcn.140013b80
mov rdi, rax
test rax, rax
je 0x140013262
mov rax, qword [0x140142148]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140013cc0
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x140142148]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140013247
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x1400131de
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x1400131f0
add dword [0x140142144], 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 [0x140142148]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1400131de
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.1400130a0
nop dword [rax]
xor esi, esi
jmp 0x140013168
mov rax, qword [0x140142148]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.1400130a0
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.1400130a0
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x1400137f0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x1401421a0]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140142180]
test rbx, rbx
je 0x14001384c
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 rsi, rsi
je 0x140013843
test eax, eax
jne 0x140013843
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140013828
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]