joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140080450
Capabilities:
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x50
mov rbx, rdx
xor esi, esi
mov dword [rsp + 0x20], esi
lea r9, vtable.type_info.0
lea r8, vtable.type_info.0
xor edx, edx
call fcn.1400cc570
mov rdi, rax
mov dword [rsp + 0x20], esi
lea r9, vtable.type_info.0
lea r8, vtable.type_info.0
xor edx, edx
mov rcx, rbx
call fcn.1400cc570
mov rbx, rax
test rdi, rdi
je 0x1400805bc
test rax, rax
je 0x1400805bc
mov eax, 4
mov rcx, qword gs:[0x58]
mov rcx, qword [rcx]
mov ecx, dword [rax + rcx]
cmp dword [0x1405a8320], ecx
jg 0x1400805ce
lea rdx, [rbx + 0x70]
mov rax, qword [rdx]
mov qword [rsp + 0x40], rax
add rax, 0xfffffffffffffff0
lea rsi, [0x140592ec8]
cmp rax, rsi
je 0x1400804f0
lock inc dword [rax]
lea rcx, [rsp + 0x70]
call fcn.140016140
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
nop
test al, 0x10
je 0x140080512
cmp eax, 0xffffffff
mov byte [rsp + 0x48], 1
jne 0x140080517
mov byte [rsp + 0x48], 0
lea rdx, [rdi + 0x70]
mov rax, qword [rdx]
mov qword [rsp + 0x30], rax
add rax, 0xfffffffffffffff0
cmp rax, rsi
je 0x14008052f
lock inc dword [rax]
lea rcx, [rsp + 0x78]
call fcn.140016140
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
nop
test al, 0x10
je 0x140080551
cmp eax, 0xffffffff
mov byte [rsp + 0x38], 1
jne 0x140080556
mov byte [rsp + 0x38], 0
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x30]
call fcn.14007f6d0
mov edi, eax
mov rcx, qword [rsp + 0x30]
add rcx, 0xfffffffffffffff0
mov ebx, 0xffffffff
cmp rcx, rsi
je 0x14008058c
mov edx, ebx
lock xadd dword [rcx], edx
dec edx
cmp edx, ebx
jne 0x14008058c
call fcn.1400c9d7c
nop
mov rcx, qword [rsp + 0x40]
add rcx, 0xfffffffffffffff0
cmp rcx, rsi
je 0x1400805aa
lock xadd dword [rcx], ebx
dec ebx
cmp ebx, 0xffffffff
jne 0x1400805aa
call fcn.1400c9d7c
mov eax, edi
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
xor eax, eax
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
lea rcx, [0x1405a8320]
call fcn.1400c9e58
cmp dword [0x1405a8320], 0xffffffff
jne 0x1400804d1
call fcn.140117220
mov dword [0x1405a8220], eax
lea rcx, [0x1405a8320]
call fcn.1400c9dec
jmp 0x1400804d1

Function at 0x1400b8bc0
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rsi, rdx
call fcn.1400641d0
mov ecx, 1
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
movzx ebx, ax
mov ecx, 2
shr ebx, 0xf
and ebx, 1
shl ebx, 4
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
shr eax, 0xf
mov edi, ebx
or edi, 0x20
mov ecx, 4
test al, 1
cmove edi, ebx
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
mov rbx, qword [rsp + 0x30]
mov ecx, edi
shr eax, 0xf
or ecx, 0x40
test al, 1
mov eax, dword [0x1405a7830]
cmove ecx, edi
and eax, 0xffffff8f
or ecx, eax
mov rax, rsi
mov dword [rsi], ecx
mov rsi, qword [rsp + 0x38]
mov dword [0x1405a7830], ecx
add rsp, 0x20
pop rdi
ret
Function at 0x1400ba620
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0xc0
mov rax, qword [0x1405921c0]
xor rax, rsp
mov qword [rbp + 0x17], rax
mov r12, rcx
sub rdx, rcx
sar rdx, 4
mov qword [rbp - 0x49], rdx
mov r14, rdx
sar r14, 1
test r14, r14
jle 0x1400ba83d
lea r9, [rdx - 1]
mov qword [rbp - 0x41], r9
mov r13, r9
sar r13, 1
mov r15, r14
shl r15, 4
add r15, rcx
lea rcx, reloc.WS2_32.dll_accept
nop word [rax + rax]
dec r14
lea r15, [r15 - 0x10]
mov rax, qword [r15]
mov qword [rbp + 7], rax
mov rax, qword [r15 + 8]
mov qword [rbp + 0xf], rax
mov qword [r15], rcx
mov rbx, r14
mov r8, r14
cmp r14, r13
jge 0x1400ba7ca
lea rax, [rbp - 0x59]
mov qword [rbp - 9], rax
lea rax, [rbp - 0x69]
mov qword [rbp - 1], rax
nop dword [rax + rax]
lea rsi, [r8 + r8]
lea rax, [rbp - 0x59]
mov qword [rbp - 0x39], rax
mov rdi, rsi
shl rdi, 4
add rdi, r12
mov rax, qword [rdi + 0x10]
mov qword [rbp - 0x59], rax
mov r8, qword [rax + 0x60]
lea rdx, [rdi + 0x18]
lea rcx, [rbp - 0x51]
call r8
nop
mov rax, qword [rdi + 0x20]
mov qword [rbp - 0x69], rax
mov r8, qword [rax + 0x60]
lea rdx, [rdi + 0x28]
lea rcx, [rbp - 0x61]
call r8
nop
lea rax, [rbp - 0x29]
mov qword [rbp - 0x31], rax
mov rax, qword [rbp - 0x59]
mov qword [rbp - 0x29], rax
mov r8, qword [rax + 0x60]
lea rdx, [rbp - 0x51]
lea rcx, [rbp - 0x21]
call r8
nop
mov rax, qword [rbp - 0x69]
mov qword [rbp - 0x19], rax
mov r8, qword [rax + 0x60]
lea rdx, [rbp - 0x61]
lea rcx, [rbp - 0x11]
call r8
nop
lea rdx, [rbp - 0x29]
lea rcx, [rbp - 0x19]
call fcn.14008e760
shr eax, 0x1f
mov edi, eax
mov rax, qword [rbp - 0x69]
mov rdx, qword [rax + 0x58]
lea rcx, [rbp - 0x61]
call rdx
nop
mov rax, qword [rbp - 0x59]
mov rdx, qword [rax + 0x58]
lea rcx, [rbp - 0x51]
call rdx
nop
xor rdi, 1
lea r8, [rdi + 1]
add r8, rsi
mov rdx, r8
shl rdx, 4
add rdx, r12
shl rbx, 4
add rbx, r12
mov rcx, qword [rbx]
mov rax, qword [rdx]
mov qword [rbx], rax
mov qword [rdx], rcx
mov rax, qword [rbx + 8]
mov rcx, qword [rdx + 8]
mov qword [rbx + 8], rcx
mov qword [rdx + 8], rax
mov rbx, r8
cmp r8, r13
jl 0x1400ba6d0
mov rdx, qword [rbp - 0x49]
mov r9, qword [rbp - 0x41]
cmp rbx, r13
jne 0x1400ba803
test dl, 1
jne 0x1400ba803
shl rdx, 4
add rdx, r12
shl rbx, 4
add rbx, r12
mov rcx, qword [rbx]
mov rax, qword [rdx - 0x10]
mov qword [rbx], rax
mov qword [rdx - 0x10], rcx
mov rax, qword [rbx + 8]
mov rcx, qword [rdx - 8]
mov qword [rbx + 8], rcx
mov qword [rdx - 8], rax
mov rbx, r9
lea r9, [rbp + 7]
mov r8, r14
mov rdx, rbx
mov rcx, r12
call fcn.1400bc620
nop
mov rax, qword [rbp + 7]
mov rdx, qword [rax + 0x58]
lea rcx, [rbp + 0xf]
call rdx
nop
test r14, r14
mov rdx, qword [rbp - 0x49]
lea r9, [rdx - 1]
lea rcx, reloc.WS2_32.dll_accept
jg 0x1400ba690
mov rcx, qword [rbp + 0x17]
xor rcx, rsp
call fcn.1400c9d20
mov rbx, qword [rsp + 0x110]
add rsp, 0xc0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400bbda0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], r9
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
mov r15, r8
mov rbx, rdx
mov r12, rcx
mov qword [rbp + 0x48], rdx
mov r8, rdx
lea r13, [r15 - 1]
mov r14, r13
sar r14, 1
cmp rdx, r14
jge 0x1400bbefa
lea rax, [rbp - 0x30]
mov qword [rbp + 0x50], rax
lea rax, [rbp - 0x40]
mov qword [rbp + 0x60], rax
nop dword [rax]
nop word [rax + rax]
lea rsi, [r8 + r8]
lea rax, [rbp - 0x30]
mov qword [rbp - 0x50], rax
mov rdi, rsi
shl rdi, 4
add rdi, r12
mov rax, qword [rdi + 0x10]
mov qword [rbp - 0x30], rax
mov r8, qword [rax + 0x60]
lea rdx, [rdi + 0x18]
lea rcx, [rbp - 0x28]
call r8
nop
mov rax, qword [rdi + 0x20]
mov qword [rbp - 0x40], rax
mov r8, qword [rax + 0x60]
lea rdx, [rdi + 0x28]
lea rcx, [rbp - 0x38]
call r8
nop
lea rax, [rbp - 0x20]
mov qword [rbp - 0x48], rax
mov rax, qword [rbp - 0x30]
mov qword [rbp - 0x20], rax
mov r8, qword [rax + 0x60]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x18]
call r8
nop
mov rax, qword [rbp - 0x40]
mov qword [rbp - 0x10], rax
mov r8, qword [rax + 0x60]
lea rdx, [rbp - 0x38]
lea rcx, [rbp - 8]
call r8
nop
lea rdx, [rbp - 0x20]
lea rcx, [rbp - 0x10]
call fcn.14008e760
shr eax, 0x1f
mov edi, eax
mov rax, qword [rbp - 0x40]
mov rdx, qword [rax + 0x58]
lea rcx, [rbp - 0x38]
call rdx
nop
mov rax, qword [rbp - 0x30]
mov rdx, qword [rax + 0x58]
lea rcx, [rbp - 0x28]
call rdx
nop
xor rdi, 1
lea r8, [rdi + 1]
add r8, rsi
mov rdx, r8
shl rdx, 4
add rdx, r12
shl rbx, 4
add rbx, r12
mov rcx, qword [rbx]
mov rax, qword [rdx]
mov qword [rbx], rax
mov qword [rdx], rcx
mov rax, qword [rbx + 8]
mov rcx, qword [rdx + 8]
mov qword [rbx + 8], rcx
mov qword [rdx + 8], rax
mov rbx, r8
cmp r8, r14
jl 0x1400bbe00
mov r9, qword [rbp + 0x58]
mov rdx, qword [rbp + 0x48]
cmp r8, r14
jne 0x1400bbf34
test r15b, 1
jne 0x1400bbf34
add r15, r15
shl rbx, 4
add rbx, r12
mov rcx, qword [rbx]
mov rax, qword [r12 + r15*8 - 0x10]
mov qword [rbx], rax
mov qword [r12 + r15*8 - 0x10], rcx
mov rax, qword [rbx + 8]
mov rcx, qword [r12 + r15*8 - 8]
mov qword [rbx + 8], rcx
mov qword [r12 + r15*8 - 8], rax
mov rbx, r13
mov r8, rdx
mov rdx, rbx
mov rcx, r12
mov rbx, qword [rsp + 0xc0]
add rsp, 0x80
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
jmp fcn.1400bc620

Function at 0x1400cac30
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400cac7a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400cac7a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400cac7a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400cac7a
cmp dword [rcx + 0x84], 0xe
jbe 0x1400cac7a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400cac7c
xor al, al
add rsp, 0x28
ret
Function at 0x1400d4f98
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.1400caa40
sub rsp, rax
mov rax, qword [0x1405921c0]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.1400dc754
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x1400d4fe7
mov rax, rbp
jmp 0x1400d50ef
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 + 0x5a7290]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.1400eac3c
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x5a7290]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x1400d50eb
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 0x1400d50eb
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.1400eac3c
test rax, rax
js 0x1400d50eb
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x1400d50eb
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x1400d50dd
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x1400d50dd
cmp byte [rcx], 0xd
jne 0x1400d50c3
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x1400d50d2
cmp byte [rcx + 1], 0xa
jne 0x1400d50d2
inc rcx
jmp 0x1400d50d2
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x5927a0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x1400d50a5
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x1400d50ef
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1400c9d20
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 0x1400da88c
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 0x1400da8c3
call fcn.1400dd37c
mov dword [rax], SafeArrayUnaccessData
call fcn.1400d4b44
xor eax, eax
jmp 0x1400da951
mov rdx, r9
mov rcx, r8
call fcn.1400da828
mov rbx, rax
test rax, rax
je 0x1400da94e
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x1400da754]
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 0x1400da93b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400dd2f0
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x1400da922
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x1400da931
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.1400e7bcc
jmp 0x1400da94e
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x1400da94b
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 0x1400e6874
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1400e6670

Function at 0x1400eace8
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, [0x1405a7290]
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 0x1400ead3f
cmp word [rdx], r13w
jne 0x1400ead3f
or byte [rax + rdi*8 + 0x38], cl
jmp 0x1400ead44
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x1400eae69
mov r11d, SafeArrayGetDim
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x1400eae8a
lea r9, [rdx + 2]
cmp cx, r11w
je 0x1400ead7d
mov rdx, r9
mov word [rbx], cx
jmp 0x1400eada4
cmp r9, r8
jae 0x1400eadb4
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 0x1400ead5e
jmp 0x1400eae69
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 0x1400eae5e
cmp dword [rsp + 0x80], esi
je 0x1400eae5e
lea r8, [0x1405a7290]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x1400eae36
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x1400eae06
mov word [rbx], r13w
jmp 0x1400eae66
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 0x1400eae13
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x1400eae66
cmp word [rsp + 0x70], r13w
jne 0x1400eae43
cmp rbx, r14
je 0x1400eae00
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.1400eac44
cmp word [rsp + 0x70], r13w
je 0x1400eae69
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, [0x1405a7290]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x1400eae63
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x1400eae69
Function at 0x1400ebb38
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1400ebb4e
mov al, 1
jmp 0x1400ebbae
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1400ebb5f
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1400ebbac
mov ecx, dword [rcx + 0x18]
nop
call fcn.1400edae4
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400ebbac
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1400ebbac
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1400ebbac
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1400ebbae
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x1400f329c
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.1400ea454
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 0x1400f333d
cmp ebx, dword [rsp + 0x30]
je 0x1400f3336
test esi, esi
je 0x1400f3336
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x1400f3311
sub r8w, 0x61
cmp r8w, 0x19
ja 0x1400f331e
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x1400f32fb
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x1400f3322
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x1400f333f
mov eax, 1
jmp 0x1400f333f
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400f47dc
Capabilities:
Query environment variable

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, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x1400f480c
xor eax, eax
jmp 0x1400f48cf
mov rbp, rbx
cmp word [rax], si
je 0x1400f4831
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1400f4818
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1400f4814
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.1400edc48
movsxd r14, eax
test eax, eax
jne 0x1400f486f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1400f4805
mov rcx, r14
call fcn.1400e8c70
mov rdi, rax
test rax, rax
jne 0x1400f4888
xor ecx, ecx
call fcn.1400e7bcc
jmp 0x1400f4864
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.1400edc48
test eax, eax
jne 0x1400f48b9
mov rcx, rdi
call fcn.1400e7bcc
jmp 0x1400f48c3
xor ecx, ecx
call fcn.1400e7bcc
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x1400f48ec
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 0x1400f4973
mov rsi, rbx
cmp word [rax], bp
je 0x1400f4932
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1400f491c
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1400f4918
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1400e8c70
mov rdi, rax
test rax, rax
je 0x1400f4960
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140279770
mov rbp, rdi
xor ecx, ecx
call fcn.1400e7bcc
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 0x1400f86ec
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.1400d6878
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x1400f8776
cmp byte [rbp - 0x21], r15b
je 0x1400f8771
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x1400f87ac
call fcn.1400e7f28
test eax, eax
jne 0x1400f8798
cmp byte [rbp - 0x21], r15b
je 0x1400f8790
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x1400f87ac
cmp byte [rbp - 0x21], r15b
je 0x1400f87a9
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.1400da5d8
test eax, eax
jne 0x1400f884c
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.1400d6878
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1400f87eb
cmp byte [rbp - 0x21], r15b
je 0x1400f8820
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1400f8820
call fcn.1400e7f28
test eax, eax
jne 0x1400f880c
cmp byte [rbp - 0x21], r15b
je 0x1400f8805
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x1400f8820
cmp byte [rbp - 0x21], r15b
je 0x1400f881d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.1400da5d8
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x1400f884c
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x1400f884f
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x1400f885d
mov rcx, rdi
call fcn.1400e7bcc
cmp byte [rbp + 0x3f], r15b
je 0x1400f886c
mov rcx, qword [rbp + 0x27]
call fcn.1400e7bcc
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x1400f9120
Capabilities:
Clear file content

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
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.1400eac44
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.1400eac44
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1400f9270
cmp rax, 0xffffffffffffffff
je 0x1400f9270
xor edi, edi
test rbp, rbp
jle 0x1400f921b
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1400e7b54
mov rbx, rax
test rax, rax
jne 0x1400f91a8
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1400f9211
mov edx, 0x8000
mov ecx, r14d
call fcn.1400e79a8
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.1400ed08c
cmp eax, 0xffffffff
je 0x1400f91f1
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1400f91b8
mov edx, r15d
mov ecx, r14d
call fcn.1400e79a8
jmp 0x1400f9211
cmp byte [rsi + 0x38], dil
je 0x1400f9208
cmp dword [rsi + 0x34], 5
jne 0x1400f9208
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], SafeArrayGetDim
cmp byte [rsi + 0x30], dil
je 0x1400f9211
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1400e7bcc
jmp 0x1400f9284
jns 0x1400f9284
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.1400eac44
cmp rax, 0xffffffffffffffff
jne 0x1400f923c
cmp byte [rsi + 0x30], dil
je 0x1400f9284
mov edi, dword [rsi + 0x2c]
jmp 0x1400f9284
mov ecx, r14d
call fcn.1400edae4
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1400f9284
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, SafeArrayGetDim
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], SafeArrayGetDim
jmp 0x1400f9284
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1400f927d
mov eax, dword [rsi + 0x2c]
jmp 0x1400f9282
mov eax, SafeArrayUnaccessData
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.1400eac44
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x1400f94a0
Capabilities:
Parse pe header

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

Function at 0x140101ab0
Capabilities:
Get thread local storage value

Disassembly:
mov r9, rcx
cmp edx, 0x20
jae 0x140101adc
mov ecx, edx
mov eax, 1
shl eax, cl
mov ecx, dword [r9 + 0x18]
test r8b, r8b
je 0x140101ace
or eax, ecx
jmp 0x140101ad2
not eax
and eax, ecx
mov dword [r9 + 0x18], eax
test edx, edx
je 0x140101aed
jmp 0x140101ae8
movzx eax, r8b
neg al
sbb ecx, ecx
mov dword [r9 + 0x18], ecx
cmp edx, 0x20
jne 0x140101af9
test r8b, r8b
jne 0x140101af9
xor edx, edx
jmp fcn.140101b60
ret