joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400152fc
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x14001537a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x140015371
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x140015371
mov rax, qword [rbp - 8]
jmp 0x14001538f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x140015344
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x140f46dc4
Capabilities:
Encode data using xor

Disassembly:
jmp 0x140f46dce
push rax
push rcx
push rdx
push rbx
push rbp
push rsi
push rdi
push r8
push r9
push r10
push r11
push r12
push r13
push r14
push r15
pushfq
sub rsp, 8
stmxcsr dword [rsp]
call 0x140f46df7
pop rbp
sub rbp, 0x33
sub rbp, 0xf46dc4
sub rsp, 0x20
jmp 0x140f46e16
mov rax, 0xf46dc4
add rax, rbp
add rax, 0x84
mov rcx, 0x60b
mov rdx, 0xffffffffc81677de
xor byte [rax], dl
inc rax
dec rcx
jne 0x140f46e35
jmp 0x140f46e4c
xchg esi, eax
push rdi
invalid
Function at 0x141012f60
Capabilities:
Encode data using xor

Disassembly:
jmp 0x141012f6a
push rax
push rcx
push rdx
push rbx
push rbp
push rsi
push rdi
push r8
push r9
push r10
push r11
push r12
push r13
push r14
push r15
pushfq
sub rsp, 8
stmxcsr dword [rsp]
call 0x141012f93
pop rbp
sub rbp, 0x33
sub rbp, 0x1012f60
sub rsp, 0x20
jmp 0x141012fb2
mov rax, 0x1012f60
add rax, rbp
add rax, 0x84
mov rcx, 0x60b
mov rdx, 0xffffffffeb43f9ae
xor byte [rax], dl
inc rax
dec rcx
jne 0x141012fd1
jmp 0x141012fe8
out 0x27, al
and eax, 0xaeae9227
scasb al, byte [rdi]
out 0x2f, al
outsd dx, dword [rsi]
cmpsb byte [rsi], byte [rdi]
scasd eax, dword [rdi]
scasb al, byte [rdi]
scasb al, byte [rdi]
out 0xaf, al
out 0x69, al
outsb dx, byte [rsi]
lodsd eax, dword [rsi]
scasb al, byte [rdi]
scasb al, byte [rdi]
scasb al, byte [rdi]
out 0x69, al
insb byte [rdi], dx
xchg byte [rsi + 0x59e6aeae], ch
out 0xaf, al
outsd dx, dword [rsi]
and eax, 0xaeaea22f
scasb al, byte [rdi]
out 0xaf, al
invalid
Function at 0x180003460
Capabilities:
Capture screenshot

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xa0
mov rbx, rdx
mov r12, rcx
call qword [sym.imp.USER32.dll_GetDC]
lea rdx, [rbp - 9]
mov rcx, r12
mov r14, rax
call qword [sym.imp.USER32.dll_GetClientRect]
mov rcx, r14
call qword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov r8d, dword [rbp + 3]
mov rcx, r14
mov edx, dword [rbp - 1]
mov r15, rax
call qword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov rdx, rax
mov rcx, r15
mov r13, rax
call qword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [rbp + 3]
xor edi, edi
mov r9d, dword [rbp - 1]
xor r8d, r8d
mov dword [rsp + 0x40], 0xcc0020
xor edx, edx
mov dword [rsp + 0x38], edi
mov dword [rsp + 0x30], edi
mov qword [rsp + 0x28], r14
mov dword [rsp + 0x20], ecx
mov rcx, r15
call qword [sym.imp.GDI32.dll_BitBlt]
mov edx, dword [rbp - 1]
mov eax, 0x4d42
mov word [rbp - 0x19], ax
xorps xmm0, xmm0
mov dword [rbp - 0x13], edi
movdqu xmmword [rbp + 0x1b], xmm0
lea eax, [rdx + 1]
mov dword [rbp + 0x2b], edi
lea ecx, [rax + rax*2]
mov dword [rbp - 0xf], 0x36
mov eax, dword [rbp + 3]
and ecx, 0xfffffffc
imul ecx, eax
mov dword [rbp + 7], 0x28
mov dword [rbp + 0xb], edx
mov dword [rbp + 0xf], eax
mov qword [rbp + 0x13], 0x180001
add ecx, 0x36
cmp qword [rbx + 0x18], 0xf
mov dword [rbp - 0x17], ecx
jbe 0x180003550
mov rbx, qword [rbx]
lea rdx, [0x180099680]
mov rcx, rbx
call fcn.18006d2fc
mov r9, rax
lea rcx, [rbp - 0x19]
mov edx, InitCommonControls
mov r8d, 1
mov rsi, rax
call fcn.180070b50
mov r9, rsi
lea rcx, [rbp + 7]
mov edx, 0x28
mov r8d, 1
call fcn.180070b50
mov ecx, dword [rbp - 1]
inc ecx
lea ebx, [rcx + rcx*2]
and ebx, 0xfffffffc
mov eax, ebx
imul eax, dword [rbp + 3]
movsxd rcx, eax
call fcn.1800676d0
mov r9d, dword [rbp + 3]
mov rdi, rax
lea rax, [rbp + 7]
mov dword [rsp + 0x30], 0
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov rdx, r13
mov qword [rsp + 0x20], rdi
mov rcx, r15
call qword [sym.imp.GDI32.dll_GetDIBits]
imul ebx, dword [rbp + 3]
mov r9, rsi
mov r8d, 1
mov rcx, rdi
movsxd rdx, ebx
call fcn.180070b50
mov rcx, rsi
call fcn.18006d81c
mov rcx, rdi
call fcn.180067238
mov rcx, r13
call qword [sym.imp.GDI32.dll_DeleteObject]
mov rcx, r15
call qword [sym.imp.GDI32.dll_DeleteDC]
mov rdx, r14
mov rcx, r12
call qword [sym.imp.USER32.dll_ReleaseDC]
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
Function at 0x180006a60
Capabilities:
Create directory
Delete file
Get common file path
Get system firmware table
Manipulate console buffer
Terminate thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdx
push rdi
sub rsp, 0x40
mov rbx, qword [0x180117e40]
mov edx, 0x28
mov rcx, rbx
mov rdi, r8
call fcn.180007470
mov edx, 0x44a8
mov qword [rdi], rax
mov rcx, rbx
call fcn.180007470
cmp dword [0x180117e58], 0x974692fb
mov rcx, qword [rdi]
mov qword [rcx + 0x18], rax
jne 0x180006bfb
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_AllocateUserPhysicalPages]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryExW]
xor ecx, ecx
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_GetAtomNameW]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_OpenFileMappingW]
call qword [sym.imp.KERNEL32.dll_SwitchToThread]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetBinaryTypeW]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_WaitForThreadpoolIoCallbacks]
xor ebx, ebx
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rbx
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetMailslotInfo]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LocalFlags]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_DeleteFileTransactedW]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_WaitForDebugEvent]
mov qword [rsp + 0x30], rbx
xor r9d, r9d
mov qword [rsp + 0x28], rbx
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x20], rbx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_UpdateProcThreadAttribute]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetSystemFirmwareTable]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_FreeUserPhysicalPages]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetSearchPathMode]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetUserPreferredUILanguages]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
xor edx, edx
lea rcx, str.6TBA54C4ZUGj2OQtfYvy
call qword [sym.imp.KERNEL32.dll_LoadModule]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetInformationJobObject]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetProcessPriorityBoost]
mov r9d, dword [rsp + 0x58]
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x20], rbx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_WriteConsoleOutputCharacterW]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_WakeAllConditionVariable]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
xor ecx, ecx
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_GetAtomNameW]
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x180009ea0
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov r8d, 0x29b
inc r8d
test r8b, 1
jne 0x180009eb5
mov ecx, 0x1d69
mov r9d, 0x919
nop dword [rax]
inc ecx
mov eax, 0x55555556
imul ecx
mov r10d, ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
lea edx, [rdx + rdx*2]
cmp ecx, edx
jne 0x180009ed0
mov edi, ecx
lea r11d, [rcx + 0x3a8d]
sub ecx, 0x1fd5
sub r8d, 0x4d5
and ecx, 0x80000003
jge 0x180009f0f
dec ecx
or ecx, 0xfffffffc
inc ecx
test ecx, ecx
mov eax, 0xffffe02b
mov ebx, 0xfffffbab
cmove ebx, eax
mov eax, 0x55555556
imul r11d
add ebx, r10d
mov r10d, 0x156f
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
mov edx, 0x1c2b
cmp r11d, eax
lea r11d, [r8 + r8]
mov eax, 0x55555556
cmove r10d, edx
sub r10d, r8d
add r8d, 0xffffcbe4
imul r8d
add r10d, 0xfffff944
mov eax, edx
shr eax, 0x1f
add edx, eax
lea ecx, [rdx + rdx*2]
cmp r8d, ecx
je 0x180009f7d
test r8d, r8d
jle 0x180009f7d
sub r8d, 0x1d94
add r10d, edi
lea edx, [r8 + r8]
lea edi, [rdx + 0x315a]
add r8d, 0xfffff4a6
sub ebx, r8d
mov ecx, 0x22f2
sub ecx, r11d
add ebx, ecx
add edi, ecx
add edi, r11d
lea ecx, [r11 - 0x39ed]
sub edx, ecx
lea r11d, [r10 - 0x2a62]
sub edx, ebx
add edi, r10d
add r11d, edx
add r10d, 0x2007
sub ebx, r11d
mov eax, r10d
sub r11d, 0xc47
and eax, 0x80000003
jge 0x180009fdd
dec eax
or eax, 0xfffffffc
inc eax
test eax, eax
je 0x180009fef
test r10d, r10d
jle 0x180009fef
add r10d, 0xf98
jmp 0x180009ff6
sub r10d, 0xf98
sub edi, r11d
lea eax, [rcx - 0x3640]
add eax, r10d
lea esi, [r8 + 0x12c8]
sub r10d, eax
add esi, edi
add r11d, 0x1ad8
add edi, 0x2f21
lea ecx, [r10 + rbx]
lea ebx, [rax + 0x1106]
add ebx, ecx
lea eax, [rsi*2 + 0x919]
add ebx, esi
lea r8d, [rcx + 0x2c31]
sub ebx, r11d
sub r11d, eax
sub esi, r11d
mov eax, 0x55555556
imul r8d
add esi, r10d
sub edi, ebx
mov eax, edx
shr eax, 0x1f
add edx, eax
lea ecx, [rdx + rdx*2]
cmp r8d, ecx
je 0x18000a07a
nop dword [rax]
inc r8d
mov eax, 0x55555556
imul r8d
mov eax, edx
shr eax, 0x1f
add edx, eax
lea ecx, [rdx + rdx*2]
cmp r8d, ecx
jne 0x18000a060
add r11d, 0x2cc9
mov ecx, 0xffffd96b
sub ecx, r11d
sub ebx, r8d
add r10d, ecx
add r11d, ebx
inc r9d
test r9b, 1
jne 0x18000a092
mov eax, 0x55555556
imul edi
mov eax, edx
shr eax, 0x1f
add edx, eax
lea ecx, [rdx + rdx*2]
cmp edi, ecx
je 0x18000a0b8
add edi, 0xffffc4db
jmp 0x18000a0be
add edi, 0x1101
lea eax, [rsi + r9]
cmp eax, 0x30445
jne 0x18000a100
cmp edi, 0xfffde753
jne 0x18000a100
cmp ebx, 0x10bf0
jne 0x18000a100
cmp r8d, 0x1cf77
jne 0x18000a100
sub r10d, r9d
cmp r10d, 0x1fedc
jne 0x18000a100
cmp r11d, 0xffff5204
jne 0x18000a100
cmp r9d, 0x91a
je 0x18000a10c
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_ExitProcess]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x1800739e8
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x180073a57
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x180073a57
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x180073a57
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x180073a57
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x180073a57
cmp dword [rcx + 0x84], 0xe
jbe 0x180073a57
cmp dword [rcx + 0xf8], 0
je 0x180073a57
mov ecx, ebx
call fcn.180073b08
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.1800738e4
nop
cmp dword [rbp + 0x20], 0
je 0x180073aa5
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.180073ab0
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x1800739e8

Function at 0x180075398
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1800753ae
mov al, 1
jmp 0x18007540e
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1800753bf
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x18007540c
mov ecx, dword [rcx + 0x18]
nop
call fcn.180080a00
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x18007540c
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x18007540c
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x18007540c
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x18007540e
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x18007b74c
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.180067b10
sub rsp, rax
mov rax, qword [0x1800b60c0]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.18007517c
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x18007b79b
mov rax, rbp
jmp 0x18007b8a3
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 + 0x1176d0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.18007d100
mov r13, rax
lea rax, [0x180000000]
mov rcx, qword [rax + rbx*8 + 0x1176d0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x18007b89f
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 0x18007b89f
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.18007d100
test rax, rax
js 0x18007b89f
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x18007b89f
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x18007b891
lea r8, [0x180000000]
cmp rcx, rdx
jae 0x18007b891
cmp byte [rcx], 0xd
jne 0x18007b877
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x18007b886
cmp byte [rcx + 1], 0xa
jne 0x18007b886
inc rcx
jmp 0x18007b886
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0xb64f0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x18007b859
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x18007b8a3
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.180067ae0
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 0x18007c4a0
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, [0x1801176d0]
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 0x18007c4f7
cmp word [rdx], r13w
jne 0x18007c4f7
or byte [rax + rdi*8 + 0x38], cl
jmp 0x18007c4fc
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x18007c621
mov r11d, InitCommonControls
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x18007c642
lea r9, [rdx + 2]
cmp cx, r11w
je 0x18007c535
mov rdx, r9
mov word [rbx], cx
jmp 0x18007c55c
cmp r9, r8
jae 0x18007c56c
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 0x18007c516
jmp 0x18007c621
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 0x18007c616
cmp dword [rsp + 0x80], esi
je 0x18007c616
lea r8, [0x1801176d0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x18007c5ee
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x18007c5be
mov word [rbx], r13w
jmp 0x18007c61e
mov ecx, InitCommonControls
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 0x18007c5cb
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x18007c61e
cmp word [rsp + 0x70], r13w
jne 0x18007c5fb
cmp rbx, r14
je 0x18007c5b8
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.18007d108
cmp word [rsp + 0x70], r13w
je 0x18007c621
mov ecx, InitCommonControls
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, [0x1801176d0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x18007c61b
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x18007c621
Function at 0x180080244
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 0x180080274
xor eax, eax
jmp 0x180080337
mov rbp, rbx
cmp word [rax], si
je 0x180080299
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x180080280
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x18008027c
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.18007e92c
movsxd r14, eax
test eax, eax
jne 0x1800802d7
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x18008026d
mov rcx, r14
call fcn.18007945c
mov rdi, rax
test rax, rax
jne 0x1800802f0
xor ecx, ecx
call fcn.180078e7c
jmp 0x1800802cc
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.18007e92c
test eax, eax
jne 0x180080321
mov rcx, rdi
call fcn.180078e7c
jmp 0x18008032b
xor ecx, ecx
call fcn.180078e7c
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 0x1800830ac
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.180075968
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 0x18008314d
cmp ebx, dword [rsp + 0x30]
je 0x180083146
test esi, esi
je 0x180083146
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x180083121
sub r8w, 0x61
cmp r8w, 0x19
ja 0x18008312e
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x18008310b
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x180083132
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x18008314f
mov eax, 1
jmp 0x18008314f
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x180087074
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.18007d108
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.18007d108
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1800871c4
cmp rax, 0xffffffffffffffff
je 0x1800871c4
xor edi, edi
test rbp, rbp
jle 0x18008716f
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1800777bc
mov rbx, rax
test rax, rax
jne 0x1800870fc
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x180087165
mov edx, 0x8000
mov ecx, r14d
call fcn.180086ef8
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.180078b74
cmp eax, 0xffffffff
je 0x180087145
cdqe
sub rbp, rax
test rbp, rbp
jg 0x18008710c
mov edx, r15d
mov ecx, r14d
call fcn.180086ef8
jmp 0x180087165
cmp byte [rsi + 0x38], dil
je 0x18008715c
cmp dword [rsi + 0x34], 5
jne 0x18008715c
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], InitCommonControls
cmp byte [rsi + 0x30], dil
je 0x180087165
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.180078e7c
jmp 0x1800871d8
jns 0x1800871d8
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.18007d108
cmp rax, 0xffffffffffffffff
jne 0x180087190
cmp byte [rsi + 0x30], dil
je 0x1800871d8
mov edi, dword [rsi + 0x2c]
jmp 0x1800871d8
mov ecx, r14d
call fcn.180080a00
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1800871d8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, InitCommonControls
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], InitCommonControls
jmp 0x1800871d8
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1800871d1
mov eax, dword [rsi + 0x2c]
jmp 0x1800871d6
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.18007d108
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 0x180088560
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x180088588
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x180088588
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140009900
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
movabs rax, 0xcbf29ce484222325
mov r9d, 0
sub r8, rdx
je 0x140009934
movabs r10, 0x100000001b3
nop
movzx ecx, byte [rdx + r9]
inc r9
xor rax, rcx
imul rax, r10
cmp r9, r8
jb 0x140009920
ret