joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14006f4b0
Capabilities:
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rax, qword [0x1401550c0]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov rsi, rcx
mov dword [rsp + 0x20], 0x60
mov dword [rsp + 0x24], 0x60
call fcn.14006f3b0
test eax, eax
je 0x14006f632
mov edx, 4
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
mov eax, dword [rdx + rcx]
cmp dword [0x1402d2e10], eax
jle 0x14006f5ee
lea rcx, [0x1402d2e10]
call fcn.1400cce38
cmp dword [0x1402d2e10], 0xffffffff
jne 0x14006f5ee
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x10]
nop dword [rax + rax]
mov r10, qword [rax + 0x30]
movsxd rcx, dword [r10 + 0x3c]
mov ebx, dword [rcx + r10 + 0x88]
add rbx, r10
cmp rbx, r10
je 0x14006f5b6
mov r9d, dword [rbx + 0x18]
test r9d, r9d
je 0x14006f5b6
mov edi, dword [rbx + 0x20]
nop dword [rax]
nop dword [rax + rax]
dec r9d
lea rcx, [rdi + r9*4]
mov edx, dword [rcx + r10]
add rdx, r10
mov r8d, 0x4df2c91e
movzx ecx, byte [rdx]
inc rdx
test cl, cl
je 0x14006f5b1
nop
movsx ecx, cl
xor ecx, r8d
imul r8d, ecx, 0x1000193
movzx ecx, byte [rdx]
lea rdx, [rdx + 1]
test cl, cl
jne 0x14006f590
cmp r8d, 0xdfaa7b70
je 0x14006f5bb
test r9d, r9d
jne 0x14006f570
mov rax, qword [rax]
jmp 0x14006f540
mov ecx, dword [rbx + 0x1c]
add rcx, r10
mov eax, dword [rbx + 0x24]
add rax, r10
movzx eax, word [rax + r9*2]
mov edx, dword [rcx + rax*4]
add rdx, r10
lea rcx, str.shcore.dll
call rdx
mov qword [0x1402d2e08], rax
lea rcx, [0x1402d2e10]
call fcn.1400ccdcc
mov rax, qword [0x1402b6118]
test rax, rax
jne 0x14006f61f
mov rcx, qword [0x1402d2e08]
test rcx, rcx
je 0x14006f632
lea rdx, str.GetDpiForMonitor
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1402b6118], rax
test rax, rax
je 0x14006f632
lea r9, [rsp + 0x24]
lea r8, [rsp + 0x20]
xor edx, edx
mov rcx, rsi
call rax
jmp 0x14006f66c
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetDC]
mov rbx, rax
mov edx, 0x58
mov rcx, rax
call qword [sym.imp.GDI32.dll_GetDeviceCaps]
mov dword [rsp + 0x20], eax
mov edx, 0x5a
mov rcx, rbx
call qword [sym.imp.GDI32.dll_GetDeviceCaps]
mov dword [rsp + 0x24], eax
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.USER32.dll_ReleaseDC]
xorps xmm0, xmm0
mov eax, dword [rsp + 0x20]
cvtsi2ss xmm0, rax
divss xmm0, dword [0x14013ef7c]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1400cc9e0
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x1400950d0
Capabilities:
Access peb ldr_data
Encode data using xor
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
push rdi
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x10]
nop word [rax + rax]
mov r10, qword [rax + 0x30]
movsxd rcx, dword [r10 + 0x3c]
mov ebx, dword [rcx + r10 + 0x88]
add rbx, r10
cmp rbx, r10
je 0x140095167
mov r9d, dword [rbx + 0x18]
test r9d, r9d
je 0x140095167
mov edi, dword [rbx + 0x20]
nop dword [rax]
nop dword [rax + rax]
dec r9d
mov r8d, 0x9a342202
lea rcx, [rdi + r9*4]
mov ecx, dword [rcx + r10]
add rcx, r10
movzx edx, byte [rcx]
inc rcx
test dl, dl
je 0x140095162
nop
movsx edx, dl
lea rcx, [rcx + 1]
xor edx, r8d
imul r8d, edx, 0x1000193
movzx edx, byte [rcx - 1]
test dl, dl
jne 0x140095140
cmp r8d, 0xfced386
je 0x14009516c
test r9d, r9d
jne 0x140095120
mov rax, qword [rax]
jmp 0x1400950f0
mov ecx, dword [rbx + 0x24]
add rcx, r10
movzx edx, word [rcx + r9*2]
mov ecx, dword [rbx + 0x1c]
add rcx, r10
mov eax, dword [rcx + rdx*4]
mov rcx, qword [0x1402d2e20]
add rax, r10
mov rbx, qword [rsp + 0x10]
pop rdi
jmp rax
Function at 0x140098900
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 8
mov r9, rcx
mov r10d, 0x270
mov ecx, dword [rcx]
cmp ecx, r10d
jne 0x140098961
lea r8, [r9 + 8]
nop dword [rax + rax]
mov edx, dword [r8 - 4]
xor edx, dword [r8]
lea r8, [r8 + 4]
btr edx, 0x1f
xor edx, dword [r8 - 8]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x62c]
xor ecx, edx
mov dword [r8 + 0x9b8], ecx
sub r10, 1
jne 0x140098920
mov ecx, dword [r9]
jmp 0x140098a48
cmp ecx, 0x4e0
jb 0x140098a48
lea r10, [r9 + 0x9c4]
mov qword [rsp], rbx
mov r11d, dword [r10]
mov ebx, 0xe3
mov eax, r11d
mov r11d, dword [r10 + 4]
mov edx, r11d
lea r10, [r10 + 4]
xor edx, eax
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r10 + 0x630]
xor ecx, edx
mov dword [r10 - 0x9c4], ecx
sub rbx, 1
jne 0x140098980
lea r10, [r9 + 0xd50]
mov ebx, 0x18c
mov r11d, dword [r10]
nop dword [rax + rax]
mov eax, r11d
mov r11d, dword [r10 + 4]
mov edx, r11d
lea r10, [r10 + 4]
xor edx, eax
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r10 - 0xd50]
xor ecx, edx
mov dword [r10 - 0x9c4], ecx
sub rbx, 1
jne 0x1400989d0
mov eax, dword [r9 + 0x1380]
mov edx, eax
xor edx, dword [r9 + 4]
mov rbx, qword [rsp]
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r9 + 0x634]
xor ecx, edx
mov dword [r9 + 0x9c0], ecx
xor ecx, ecx
mov dword [r9], ecx
mov eax, ecx
mov edx, dword [r9 + rax*4 + 4]
lea eax, [rcx + 1]
mov dword [r9], eax
mov ecx, edx
mov eax, dword [r9 + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
add rsp, 8
ret
Function at 0x1400a0880
Capabilities:
Access peb ldr_data
Encode data using xor
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x50
mov rax, qword [0x1401550c0]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rbp, r8
mov r14, rdx
mov rsi, rcx
mov qword [rsp + 0x38], rcx
xor r15d, r15d
mov dword [rsp + 0x30], r15d
mov dword [rsp + 0x40], r15d
mov dword [rsp + 0x44], 4
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
mov qword [rcx + 0x10], r15
mov qword [rcx + 0x18], r15
xor r8d, r8d
lea rdx, [0x140135898]
call fcn.140003440
mov dword [rsp + 0x30], 1
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x10]
nop dword [rax + rax]
mov r11, qword [rax + 0x30]
movsxd rcx, dword [r11 + 0x3c]
mov ebx, dword [rcx + r11 + 0x88]
add rbx, r11
cmp rbx, r11
je 0x1400a0976
mov r9d, dword [rbx + 0x18]
test r9d, r9d
je 0x1400a0976
mov edi, dword [rbx + 0x20]
nop dword [rax]
nop dword [rax + rax]
dec r9d
lea rcx, [rdi + r9*4]
mov ecx, dword [rcx + r11]
add rcx, r11
mov r8d, 0xab51ec04
movzx edx, byte [rcx]
inc rcx
test dl, dl
je 0x1400a0971
nop
movsx edx, dl
xor edx, r8d
imul r8d, edx, 0x1000193
movzx edx, byte [rcx]
lea rcx, [rcx + 1]
test dl, dl
jne 0x1400a0950
cmp r8d, 0x9824a8c1
je 0x1400a097b
test r9d, r9d
jne 0x1400a0930
mov rax, qword [rax]
jmp 0x1400a0900
mov ecx, dword [rbx + 0x24]
add rcx, r11
movzx edx, word [rcx + r9*2]
mov ecx, dword [rbx + 0x1c]
add rcx, r11
mov r10d, dword [rcx + rdx*4]
add r10, r11
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x44]
lea r8, [rsp + 0x40]
mov edx, 0x20000013
mov rcx, qword [r14]
call r10
test eax, eax
je 0x1400a0a13
mov edx, dword [rsp + 0x40]
lea ecx, [rdx - 0x12c]
cmp ecx, 0x63
jbe 0x1400a09d0
cmp edx, 0xc9
je 0x1400a09d0
mov dword [rbp + 0xa0], edx
jmp 0x1400a0a13
mov rcx, qword [rsi + 0x18]
cmp rcx, 2
jb 0x1400a09f9
mov rax, rsi
cmp rcx, 0xf
jbe 0x1400a09e6
mov rax, qword [rsi]
mov qword [rsi + 0x10], 2
mov word [rax], 0x6e6f
mov byte [rax + 2], 0
jmp 0x1400a0a0d
lea r9, [0x14013e868]
mov edx, 2
mov rcx, rsi
call fcn.1400138b0
inc dword [rbp + 0xd0]
mov rax, rsi
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400cc9e0
mov rbx, qword [rsp + 0x98]
add rsp, 0x50
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400a7060
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x1400a709a
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x1400a709f
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x1400a70e8
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x140106930]
cmp byte [rcx + rax], 0
je 0x1400a70e8
dec r8
sub rdx, 1
jne 0x1400a70ce
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x1400c23c8
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
lea r9, [rdx + rdx]
movabs r8, 0xcbf29ce484222325
xor edx, edx
test r9, r9
je 0x1400ae406
movzx eax, byte [rdx + rcx]
movabs r10, 0x100000001b3
xor r8, rax
inc rdx
imul r8, r10
cmp rdx, r9
jb 0x1400ae3e9
mov rax, r8
ret
sub r8, rdx
mov rcx, rdx
sar r8, 1
mov rdx, r8
jmp 0x1400ae3d4

Function at 0x1400cd8d0
Capabilities:
Parse pe header

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

Function at 0x1400de064
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 0x1400de09b
call fcn.1400ddf0c
mov dword [rax], 0x16
call fcn.1400d7074
xor eax, eax
jmp 0x1400de129
mov rdx, r9
mov rcx, r8
call fcn.1400de000
mov rbx, rax
test rax, rax
je 0x1400de126
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x1400ddf2c]
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 0x1400de113
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400dde80
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x1400de0fa
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x1400de109
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.1400e8db0
jmp 0x1400de126
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x1400de123
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 0x1400de9a0
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.1400cd6e0
sub rsp, rax
mov rax, qword [0x1401550c0]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.1400eb158
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x1400de9ef
mov rax, rbp
jmp 0x1400deaf7
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 + 0x2b5810]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.1400edc24
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x2b5810]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x1400deaf3
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 0x1400deaf3
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.1400edc24
test rax, rax
js 0x1400deaf3
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x1400deaf3
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x1400deae5
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x1400deae5
cmp byte [rcx], 0xd
jne 0x1400deacb
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x1400deada
cmp byte [rcx + 1], 0xa
jne 0x1400deada
inc rcx
jmp 0x1400deada
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x1554d0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x1400deaad
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x1400deaf7
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1400cc9e0
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 0x1400e6198
Capabilities:
Parse pe header

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

Function at 0x1400ebabc
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1400ebad2
mov al, 1
jmp 0x1400ebb32
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1400ebae3
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1400ebb30
mov ecx, dword [rcx + 0x18]
nop
call fcn.1400f4398
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400ebb30
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1400ebb30
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1400ebb30
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1400ebb32
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x1400ecfc4
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, [0x1402b5810]
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 0x1400ed01b
cmp word [rdx], r13w
jne 0x1400ed01b
or byte [rax + rdi*8 + 0x38], cl
jmp 0x1400ed020
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x1400ed145
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x1400ed166
lea r9, [rdx + 2]
cmp cx, r11w
je 0x1400ed059
mov rdx, r9
mov word [rbx], cx
jmp 0x1400ed080
cmp r9, r8
jae 0x1400ed090
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 0x1400ed03a
jmp 0x1400ed145
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 0x1400ed13a
cmp dword [rsp + 0x80], esi
je 0x1400ed13a
lea r8, [0x1402b5810]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x1400ed112
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x1400ed0e2
mov word [rbx], r13w
jmp 0x1400ed142
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 0x1400ed0ef
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x1400ed142
cmp word [rsp + 0x70], r13w
jne 0x1400ed11f
cmp rbx, r14
je 0x1400ed0dc
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.1400edc2c
cmp word [rsp + 0x70], r13w
je 0x1400ed145
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, [0x1402b5810]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x1400ed13f
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x1400ed145
Function at 0x1400f318c
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 0x1400f31bc
xor eax, eax
jmp 0x1400f327f
mov rbp, rbx
cmp word [rax], si
je 0x1400f31e1
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1400f31c8
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1400f31c4
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.1400f097c
movsxd r14, eax
test eax, eax
jne 0x1400f321f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1400f31b5
mov rcx, r14
call fcn.1400e9e58
mov rdi, rax
test rax, rax
jne 0x1400f3238
xor ecx, ecx
call fcn.1400e8db0
jmp 0x1400f3214
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.1400f097c
test eax, eax
jne 0x1400f3269
mov rcx, rdi
call fcn.1400e8db0
jmp 0x1400f3273
xor ecx, ecx
call fcn.1400e8db0
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 0x1400f329c
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 0x1400f3323
mov rsi, rbx
cmp word [rax], bp
je 0x1400f32e2
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1400f32cc
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1400f32c8
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1400e9e58
mov rdi, rax
test rax, rax
je 0x1400f3310
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1400fda30
mov rbp, rdi
xor ecx, ecx
call fcn.1400e8db0
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 0x1400f68ec
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.1400eb664
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 0x1400f698d
cmp ebx, dword [rsp + 0x30]
je 0x1400f6986
test esi, esi
je 0x1400f6986
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x1400f6961
sub r8w, 0x61
cmp r8w, 0x19
ja 0x1400f696e
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x1400f694b
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x1400f6972
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x1400f698f
mov eax, 1
jmp 0x1400f698f
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400fa37c
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.1400da37c
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x1400fa406
cmp byte [rbp - 0x21], r15b
je 0x1400fa401
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x1400fa43c
call fcn.1400e910c
test eax, eax
jne 0x1400fa428
cmp byte [rbp - 0x21], r15b
je 0x1400fa420
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x1400fa43c
cmp byte [rbp - 0x21], r15b
je 0x1400fa439
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.1400e1dac
test eax, eax
jne 0x1400fa4dc
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.1400da37c
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1400fa47b
cmp byte [rbp - 0x21], r15b
je 0x1400fa4b0
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1400fa4b0
call fcn.1400e910c
test eax, eax
jne 0x1400fa49c
cmp byte [rbp - 0x21], r15b
je 0x1400fa495
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x1400fa4b0
cmp byte [rbp - 0x21], r15b
je 0x1400fa4ad
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.1400e1dac
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x1400fa4dc
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x1400fa4df
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x1400fa4ed
mov rcx, rdi
call fcn.1400e8db0
cmp byte [rbp + 0x3f], r15b
je 0x1400fa4fc
mov rcx, qword [rbp + 0x27]
call fcn.1400e8db0
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 0x1400fb25c
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.1400edc2c
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.1400edc2c
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1400fb3ac
cmp rax, 0xffffffffffffffff
je 0x1400fb3ac
xor edi, edi
test rbp, rbp
jle 0x1400fb357
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1400e8d38
mov rbx, rax
test rax, rax
jne 0x1400fb2e4
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1400fb34d
mov edx, 0x8000
mov ecx, r14d
call fcn.1400e72cc
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.1400ec6e4
cmp eax, 0xffffffff
je 0x1400fb32d
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1400fb2f4
mov edx, r15d
mov ecx, r14d
call fcn.1400e72cc
jmp 0x1400fb34d
cmp byte [rsi + 0x38], dil
je 0x1400fb344
cmp dword [rsi + 0x34], 5
jne 0x1400fb344
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x1400fb34d
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1400e8db0
jmp 0x1400fb3c0
jns 0x1400fb3c0
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.1400edc2c
cmp rax, 0xffffffffffffffff
jne 0x1400fb378
cmp byte [rsi + 0x30], dil
je 0x1400fb3c0
mov edi, dword [rsi + 0x2c]
jmp 0x1400fb3c0
mov ecx, r14d
call fcn.1400f4398
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1400fb3c0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x1400fb3c0
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1400fb3b9
mov eax, dword [rsi + 0x2c]
jmp 0x1400fb3be
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.1400edc2c
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 0x1400fbd20
Capabilities:
Parse pe header

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