joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000c65c
Capabilities:
Terminate process

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0xb0
xor r14d, r14d
mov dword [rsp + 0x20], r14d
lea rcx, [rax - 0x78]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_2.dll_GetStartupInfoW]
nop
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
mov esi, r14d
xor eax, eax
lock cmpxchg qword [0x140014cb8], rbx
je 0x14000c6c3
cmp rax, rbx
jne 0x14000c6b6
mov ebx, 1
mov esi, ebx
jmp 0x14000c6c8
mov ecx, 0x3e8
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
jmp 0x14000c69b
mov ebx, 1
mov eax, dword [0x140014cc0]
cmp eax, ebx
jne 0x14000c6e0
mov edi, 0x1f
mov ecx, edi
call sub.msvcrt.dll__amsg_exit
jmp 0x14000c74c
mov eax, dword [0x140014cc0]
test eax, eax
jne 0x14000c741
mov dword [0x140014cc0], ebx
lea r15, [0x14000eb70]
lea rdi, [0x14000eb58]
mov qword [rsp + 0x30], rdi
mov eax, r14d
mov dword [rsp + 0x24], eax
cmp rdi, r15
jae 0x14000c733
test eax, eax
jne 0x14000c737
cmp qword [rdi], r14
je 0x14000c728
mov rax, qword [rdi]
mov rcx, qword [0x14000eb00]
call rcx
mov dword [rsp + 0x24], eax
add rdi, 8
mov qword [rsp + 0x30], rdi
jmp 0x14000c70a
test eax, eax
je 0x14000c747
mov eax, 0xff
jmp 0x14000c8a0
mov dword [0x140014400], ebx
mov edi, 0x1f
mov eax, dword [0x140014cc0]
cmp eax, ebx
jne 0x14000c773
lea rdx, [0x14000eb50]
lea rcx, [0x14000eb18]
call sub.msvcrt.dll__initterm
mov dword [0x140014cc0], 2
test esi, esi
jne 0x14000c781
mov rax, r14
xchg qword [0x140014cb8], rax
cmp qword [0x140014cd8], r14
je 0x14000c7b4
lea rcx, [0x140014cd8]
call fcn.14000cc80
test eax, eax
je 0x14000c7b4
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x140014cd8]
mov r9, qword [0x14000eb00]
call r9
mov rax, qword [sym.imp.msvcrt.dll__wcmdln]
mov rcx, qword [rax]
test rcx, rcx
jne 0x14000c7cd
mov eax, 0xff
jmp 0x14000c8a0
mov qword [rsp + 0x28], rcx
mov edx, dword [rsp + 0x20]
cmp word [rcx], 0x20
ja 0x14000c851
cmp word [rcx], r14w
je 0x14000c7e6
test edx, edx
jne 0x14000c851
movzx eax, word [rcx]
sub ax, bx
cmp ax, di
ja 0x14000c7fc
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x14000c7e6
test byte [rsp + 0x7c], bl
movzx eax, word [rsp + 0x80]
mov r9d, 0xa
cmovne r9d, eax
mov r8, rcx
xor edx, edx
lea rcx, [0x140000000]
call fcn.1400018e8
mov dword [0x1400143fc], eax
cmp dword [0x140014420], r14d
jne 0x14000c83a
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x140014400], r14d
jne 0x14000c84f
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x1400143fc]
jmp 0x14000c8a0
cmp word [rcx], 0x22
jne 0x14000c865
mov eax, r14d
test edx, edx
sete al
mov edx, eax
mov dword [rsp + 0x20], eax
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x14000c7d6
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop r15
ret
sub rsp, 0x28
call fcn.140174000
add rsp, 0x28
jmp 0x14000c65c
Function at 0x140002940
Capabilities:
Enumerate threads
Suspend thread

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x48
mov esi, edx
mov edi, ecx
mov rax, qword [0x140033128]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov ecx, 4
xor edx, edx
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
cmp rax, 0xffffffffffffffff
je 0x140002a16
mov rbx, rax
mov dword [rsp + 0x24], 0x1c
lea rdx, [rsp + 0x24]
mov rcx, rax
call sub.KERNEL32.dll_Thread32First
test eax, eax
je 0x140002a0d
mov r12, qword [sym.imp.KERNEL32.dll_OpenThread]
mov r13, qword [sym.imp.KERNEL32.dll_SuspendThread]
mov rbp, qword [sym.imp.KERNEL32.dll_CloseHandle]
lea r14, [rsp + 0x24]
jmp 0x1400029d7
mov dword [rsp + 0x24], 0x1c
mov rcx, rbx
mov rdx, r14
call sub.KERNEL32.dll_Thread32Next
test eax, eax
je 0x140002a0d
cmp dword [rsp + 0x24], 0x10
jb 0x1400029c0
mov r8d, dword [rsp + 0x2c]
cmp r8d, esi
je 0x1400029c0
cmp dword [rsp + 0x30], edi
jne 0x1400029c0
mov ecx, 0x1fffff
xor edx, edx
call r12
test rax, rax
je 0x1400029c0
mov r15, rax
mov rcx, rax
call r13
mov rcx, r15
call rbp
jmp 0x1400029c0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14000d7e0
nop
add rsp, 0x48
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret

Function at 0x140002a40
Capabilities:
Enumerate threads
Resume thread

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x48
mov esi, edx
mov edi, ecx
mov rax, qword [0x140033128]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov ecx, 4
xor edx, edx
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
cmp rax, 0xffffffffffffffff
je 0x140002b16
mov rbx, rax
mov dword [rsp + 0x24], 0x1c
lea rdx, [rsp + 0x24]
mov rcx, rax
call sub.KERNEL32.dll_Thread32First
test eax, eax
je 0x140002b0d
mov r12, qword [sym.imp.KERNEL32.dll_OpenThread]
mov r13, qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rbp, qword [sym.imp.KERNEL32.dll_CloseHandle]
lea r14, [rsp + 0x24]
jmp 0x140002ad7
mov dword [rsp + 0x24], 0x1c
mov rcx, rbx
mov rdx, r14
call sub.KERNEL32.dll_Thread32Next
test eax, eax
je 0x140002b0d
cmp dword [rsp + 0x24], 0x10
jb 0x140002ac0
mov r8d, dword [rsp + 0x2c]
cmp r8d, esi
je 0x140002ac0
cmp dword [rsp + 0x30], edi
jne 0x140002ac0
mov ecx, 0x1fffff
xor edx, edx
call r12
test rax, rax
je 0x140002ac0
mov r15, rax
mov rcx, rax
call r13
mov rcx, r15
call rbp
jmp 0x140002ac0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14000d7e0
nop
add rsp, 0x48
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x140003b50
Capabilities:
Get mac address on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x38
mov rsi, rcx
mov rax, qword [0x140033128]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov ecx, 0x2c0
call fcn.14000d794
mov rdi, rax
mov r8d, 0x2c0
mov rcx, rax
xor edx, edx
call fcn.1400055c0
mov dword [rsp + 0x2c], 8
lea rdx, [rsp + 0x2c]
mov rcx, rdi
call qword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
cmp eax, 0x6f
jne 0x140003bc2
mov rcx, rdi
call fcn.14000d800
mov ecx, dword [rsp + 0x2c]
call fcn.14000d784
mov rdi, rax
lea rdx, [rsp + 0x2c]
mov rcx, rax
call qword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
test eax, eax
jne 0x140003bd0
mov rax, qword [rdi + 0x198]
mov qword [rsi], rax
mov rcx, rdi
call fcn.14000d800
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.14000d7e0
nop
add rsp, 0x38
pop rdi
pop rsi
ret

Function at 0x1400040e0
Capabilities:
Get common file path
Get startup folder

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x238
mov rsi, rcx
lea rdi, [rsp + 0x30]
mov qword [rsp + 0x20], rdi
xor ecx, ecx
mov edx, 0x19
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov qword [rsi], 0
mov qword [rsi + 0x10], 0
mov qword [rsi + 0x18], 7
mov word [rsi], 0
mov rcx, rdi
call fcn.140015b84
mov rdi, rax
cmp rax, 7
jbe 0x1400041a6
movabs rax, 0x7fffffffffffffff
cmp rdi, rax
jae 0x14000420a
mov rax, rdi
or rax, 7
movabs rcx, 0x7ffffffffffffffe
cmp rax, rcx
ja 0x140004205
cmp rax, 0xb
mov r14d, 0xa
cmovae r14, rax
lea rcx, [r14 + r14]
cmp rax, 0x7ff
jb 0x1400041c5
movabs rdx, 0x7fffffffffffffec
cmp rax, rdx
jae 0x140004205
add rcx, 0x29
call fcn.14000d794
lea rbx, [rax + 0x27]
and rbx, 0xffffffffffffffe0
mov qword [rbx - 8], rax
jmp 0x1400041d1
mov qword [rsi + 0x10], rdi
mov r8, rdi
add r8, rdi
lea rdx, [rsp + 0x30]
mov rcx, rsi
call fcn.1400054f0
mov word [rsi + rdi*2], 0
jmp 0x1400041f5
add rcx, 2
call fcn.14000d794
mov rbx, rax
mov qword [rsi + 0x10], rdi
mov qword [rsi + 0x18], r14
mov r8, rdi
add r8, rdi
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.1400054f0
mov word [rbx + rdi*2], 0
mov qword [rsi], rbx
mov rax, rsi
add rsp, 0x238
pop rbx
pop rdi
pop rsi
pop r14
ret
call fcn.140002510
call fcn.1400024f0
int3
Function at 0x140016420
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov ebx, ecx
test r8d, r8d
jne 0x1400162b3
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400162b3
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400162b3
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400162b3
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400162b3
cmp dword [rcx + 0x84], 0xe
jbe 0x1400162b3
cmp dword [rcx + 0xf8], 0
je 0x1400162b3
mov ecx, ebx
call fcn.140016354
lea rax, [rbp + 0x18]
mov byte [rbp + 0x28], 0
mov qword [rbp - 0x20], rax
lea r9, [rbp - 0x2c]
lea rax, [rbp + 0x20]
mov qword [rbp - 0x18], rax
lea r8, [rbp - 0x20]
lea rax, [rbp + 0x28]
mov qword [rbp - 0x10], rax
lea rdx, [rbp - 0x28]
mov eax, 2
lea rcx, [rbp - 0x30]
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
call fcn.140016144
cmp dword [rbp + 0x20], 0
je 0x140016300
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140016308
int3
xor r8d, r8d
xor edx, edx
jmp 0x14001624c
Function at 0x140cc2fec
Capabilities:
Encode data using xor

Disassembly:
mov r11d, 0xcb06f404
neg r11w
dec r9w
not r9w
lea r11, [r11 + r11 - 0x4168c3f5]
sub r11b, r11b
jle 0x140cca4f1
add rdi, 8
jmp 0x140cb8fcd
lea rsp, [rsp + 0x18]
je 0x140cc3048
lea r11, [0x140ca1670]
mov eax, 0x1da65506
movzx eax, byte [rdx + rax*2 - 0x3b4caa0c]
xor eax, r8d
push 0xf3d498a
and eax, 0xff
mov eax, dword [r11 + rax*4]
shr r8d, 8
xor r8d, eax
shl qword [rsp], 0x20
and dword [rsp + 3], 0x42ad5e88
inc rdx
xor r8d, 0x8d9c4e23
dec r10
lea rsp, [rsp + 8]
jne 0x140cc2ffe
not r8d
call fcn.140c926b4
ror r9w, 1
jmp 0x140cb6bdd
xor r9w, 0x6114
and r11, 0x47a56a92
not r9w
rol r11b, 0x86
shl r11w, 0x2a
xor bp, r9w
rol r11b, 0x21
adc r9, rsp
call fcn.140cc4910
Function at 0x180002620
Capabilities:
Read file on windows

Disassembly:
push rbx
push rsi
push r14
sub rsp, 0x30
mov r14, r8
mov rsi, rdx
mov rbx, rcx
test r8, r8
jg 0x180002642
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rdi
je 0x1800026bc
mov rdi, r14
mov rcx, rbx
call fcn.180003c40
test rax, rax
jle 0x180002694
mov rdx, qword [rbx + 0x38]
cmp rdi, rax
mov rbp, rdi
mov rcx, rsi
cmovge rbp, rax
mov r8, rbp
mov rdx, qword [rdx]
call fcn.180020b40
mov rax, qword [rbx + 0x50]
sub rdi, rbp
sub dword [rax], ebp
mov rcx, qword [rbx + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x1800026ac
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x1800026b4
mov byte [rsi], al
dec rdi
mov ebp, 1
add rsi, rbp
test rdi, rdi
jg 0x180002656
sub r14, rdi
jmp 0x18000279f
mov rax, qword [rcx + 0x38]
mov rbp, r14
mov rdx, qword [rax]
test rdx, rdx
je 0x1800026d3
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x1800026d5
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x180002707
cmp rax, r14
mov rdi, r14
mov rcx, rsi
cmovb rdi, rax
mov r8, rdi
call fcn.180020b40
mov rax, qword [rbx + 0x50]
add rsi, rdi
sub rbp, rdi
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x18000279c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x180002742
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
cmp rbp, 0xfff
jbe 0x18000277d
nop dword [rax + rax]
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rsi
call fcn.18000dd34
add rsi, rax
sub rbp, rax
cmp rax, 0xfff
jne 0x18000279c
cmp rbp, rax
ja 0x180002750
test rbp, rbp
je 0x18000279c
mov r9, qword [rbx + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, rsi
call fcn.18000dd34
sub rbp, rax
sub r14, rbp
mov rbp, qword [rsp + 0x28]
mov rax, r14
mov rdi, qword [rsp + 0x20]
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret

Function at 0x1800135d0
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1800135e6
mov al, 1
jmp 0x180013646
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1800135f7
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x180013644
mov ecx, dword [rcx + 0x18]
nop
call fcn.18001d4a0
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x180013644
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x180013644
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x180013644
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x180013646
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x180014c54
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.180006080
sub rsp, rax
mov rax, qword [0x180032080]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.1800130d4
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x180014ca3
mov rax, rbp
jmp 0x180014dab
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, [0x180000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x34170]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.180014890
mov r13, rax
lea rax, [0x180000000]
mov rcx, qword [rax + rbx*8 + 0x34170]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x180014da7
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 0x180014da7
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.180014890
test rax, rax
js 0x180014da7
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x180014da7
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x180014d99
lea r8, [0x180000000]
cmp rcx, rdx
jae 0x180014d99
cmp byte [rcx], 0xd
jne 0x180014d7f
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x180014d8e
cmp byte [rcx + 1], 0xa
jne 0x180014d8e
inc rcx
jmp 0x180014d8e
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x324a0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x180014d61
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x180014dab
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.180005810
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 0x180015028
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, [0x180034170]
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 0x18001507f
cmp word [rdx], r13w
jne 0x18001507f
or byte [rax + rdi*8 + 0x38], cl
jmp 0x180015084
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x1800151a9
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x1800151ca
lea r9, [rdx + 2]
cmp cx, r11w
je 0x1800150bd
mov rdx, r9
mov word [rbx], cx
jmp 0x1800150e4
cmp r9, r8
jae 0x1800150f4
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 0x18001509e
jmp 0x1800151a9
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 0x18001519e
cmp dword [rsp + 0x80], esi
je 0x18001519e
lea r8, [0x180034170]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x180015176
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x180015146
mov word [rbx], r13w
jmp 0x1800151a6
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 0x180015153
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x1800151a6
cmp word [rsp + 0x70], r13w
jne 0x180015183
cmp rbx, r14
je 0x180015140
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.180014898
cmp word [rsp + 0x70], r13w
je 0x1800151a9
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, [0x180034170]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x1800151a3
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x1800151a9
Function at 0x18001a2fc
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 0x18001a32c
xor eax, eax
jmp 0x18001a3ef
mov rbp, rbx
cmp word [rax], si
je 0x18001a351
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x18001a338
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x18001a334
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.1800189e4
movsxd r14, eax
test eax, eax
jne 0x18001a38f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x18001a325
mov rcx, r14
call fcn.180016838
mov rdi, rax
test rax, rax
jne 0x18001a3a8
xor ecx, ecx
call fcn.1800110fc
jmp 0x18001a384
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.1800189e4
test eax, eax
jne 0x18001a3d9
mov rcx, rdi
call fcn.1800110fc
jmp 0x18001a3e3
xor ecx, ecx
call fcn.1800110fc
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 0x18001cc40
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.1800114f4
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 0x18001cce1
cmp ebx, dword [rsp + 0x30]
je 0x18001ccda
test esi, esi
je 0x18001ccda
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x18001ccb5
sub r8w, 0x61
cmp r8w, 0x19
ja 0x18001ccc2
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x18001cc9f
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x18001ccc6
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x18001cce3
mov eax, 1
jmp 0x18001cce3
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x18001fc74
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.180014898
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.180014898
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x18001fdc4
cmp rax, 0xffffffffffffffff
je 0x18001fdc4
xor edi, edi
test rbp, rbp
jle 0x18001fd6f
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.18001456c
mov rbx, rax
test rax, rax
jne 0x18001fcfc
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x18001fd65
mov edx, 0x8000
mov ecx, r14d
call fcn.18001faf8
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.180014264
cmp eax, 0xffffffff
je 0x18001fd45
cdqe
sub rbp, rax
test rbp, rbp
jg 0x18001fd0c
mov edx, r15d
mov ecx, r14d
call fcn.18001faf8
jmp 0x18001fd65
cmp byte [rsi + 0x38], dil
je 0x18001fd5c
cmp dword [rsi + 0x34], 5
jne 0x18001fd5c
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x18001fd65
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1800110fc
jmp 0x18001fdd8
jns 0x18001fdd8
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.180014898
cmp rax, 0xffffffffffffffff
jne 0x18001fd90
cmp byte [rsi + 0x30], dil
je 0x18001fdd8
mov edi, dword [rsi + 0x2c]
jmp 0x18001fdd8
mov ecx, r14d
call fcn.18001d4a0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x18001fdd8
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 0x18001fdd8
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x18001fdd1
mov eax, dword [rsi + 0x2c]
jmp 0x18001fdd6
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.180014898
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 0x1800208a0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1800208c8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1800208c8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x1400064a0
Capabilities:
Access peb ldr_data

Disassembly:
push rsi
sub rsp, 0x80
mov qword [rsp + 0x68], r8
mov qword [rsp + 0x60], rdx
mov dword [rsp + 0x34], ecx
mov qword [rsp + 0x58], 0
lea rsi, [rsp + 0x50]
mov rcx, rsi
mov dl, 0x60
call fcn.140006ef0
mov rcx, rsi
call fcn.1400030d0
movzx eax, al
mov rax, qword gs:[rax]
mov qword [rsp + 0x58], rax
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x50], rax
lea rcx, [rax + 0x20]
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x40], 0
mov rax, qword [rax + 0x20]
nop word cs:[rax + rax]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp rax, qword [rsp + 0x48]
je 0x140006583
mov rax, qword [rsp + 0x28]
lea rcx, [rax - 0x10]
mov qword [rsp + 0x38], rcx
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rax + 0x50]
call fcn.1400028d0
test eax, eax
je 0x140006560
mov dword [rsp + 0x24], 0
cmp dword [rsp + 0x24], 0
je 0x140006579
jmp 0x14000658b
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x40], rax
and al, 0x40
mov dword [rsp + 0x24], 2
cmp dword [rsp + 0x24], 0
jne 0x14000658b
mov rax, qword [rsp + 0x28]
mov rax, qword [rax]
jmp 0x140006510
mov dword [rsp + 0x24], 2
mov rax, qword [rsp + 0x40]
mov rdx, qword [rax + 0x30]
mov qword [rsp + 0x28], rdx
mov qword [rsp + 0x38], rdx
movsxd rcx, dword [rdx + 0x3c]
add rcx, rdx
mov qword [rsp + 0x78], rcx
mov r8d, dword [rsp + 0x34]
call fcn.140006f20
mov rsi, rax
mov qword [rsp + 0x70], rax
mov rcx, qword [rsp + 0x68]
call fcn.1400071b0
mov rcx, qword [rax]
call rsi
mov dword [rsp + 0x24], 1
add rsp, 0x80
pop rsi
ret