joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180001c90
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x280
mov rax, qword [0x180029008]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov edi, dword [rcx + 8]
xor eax, eax
mov rsi, rcx
mov rcx, qword [rcx]
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x50], eax
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x58]
or edi, 0x2001f
xor r8d, r8d
mov r9d, edi
mov rbp, rdx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov rcx, qword [rsp + 0x48]
mov ebx, eax
test eax, eax
jne 0x180001ddc
test rcx, rcx
je 0x180001d05
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, eax
mov rcx, qword [rsp + 0x58]
and edi, 0x300
mov qword [rsp + 0x48], rcx
mov dword [rsp + 0x50], edi
test ebx, ebx
jne 0x180001ddc
xor edi, edi
lea rax, [rsp + 0x60]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rdi
lea r8, [rsp + 0x70]
xor edx, edx
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x40], pe_nt_image_headers64
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x180001db1
nop word [rax + rax]
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x48]
call fcn.180001c90
mov rcx, qword [rsp + 0x48]
mov ebx, eax
test eax, eax
jne 0x180001ddc
lea rax, [rsp + 0x60]
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x70]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rdi
xor edx, edx
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x40], pe_nt_image_headers64
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x180001d60
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x180001dc6
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x48], rdi
mov rdx, rbp
mov rcx, rsi
mov dword [rsp + 0x50], edi
call fcn.180001230
mov rcx, qword [rsp + 0x48]
mov ebx, eax
test rcx, rcx
je 0x180001de7
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.18000be70
mov rbx, qword [rsp + 0x2b0]
add rsp, 0x280
pop rdi
pop rsi
pop rbp
ret
Function at 0x180005a90
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rsi
push rdi
push r12
sub rsp, 0x490
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov qword [rsp + 0x4b0], rbx
mov rax, qword [0x180029008]
xor rax, rsp
mov qword [rsp + 0x480], rax
mov rsi, r9
mov rbx, r8
mov rax, rdx
xor r12d, r12d
mov qword [rsp + 0x60], r12
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x70], r12
xor edx, edx
lea r8d, [r12 + 2]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdi, rax
mov qword [rsp + 0x38], rax
test rax, rax
jne 0x180005b08
call fcn.180001200
mov ebx, eax
jmp 0x180005c4a
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
test rax, rax
jne 0x180005b2b
call fcn.180001200
mov ebx, eax
jmp 0x180005c40
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rsi, rax
mov qword [rsp + 0x40], rax
test rax, rax
jne 0x180005b50
call fcn.180001200
mov ebx, eax
jmp 0x180005c40
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
mov dword [rsp + 0x30], eax
inc eax
cmp eax, ebx
jae 0x180005b89
lea rax, [rsp + 0x78]
cmp qword [rsp + 0x70], rax
je 0x180005b7f
lea rcx, [rsp + 0x70]
call fcn.180001b10
nop
mov eax, 0x8007000e
jmp 0x180005c63
mov ecx, eax
test eax, eax
je 0x180005bc6
xor edx, edx
or rax, 0xffffffffffffffff
div rcx
cmp rax, 2
jb 0x180005bbc
lea rdx, [rcx + rcx]
cmp rdx, 0x400
jbe 0x180005bc6
lea rcx, [rsp + 0x70]
call fcn.180001b20
mov rax, qword [rsp + 0x70]
jmp 0x180005bd0
mov ecx, 0x80070057
call fcn.180001000
lea rax, [rsp + 0x78]
mov qword [rsp + 0x70], rax
jmp 0x180005be8
test rax, rax
jne 0x180005bf4
mov ebx, 0x8007000e
jmp 0x180005c40
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rax
mov r9d, ebx
mov r8, rsi
xor edx, edx
lea ecx, [rdx + 3]
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x180005c1b
call fcn.180001200
mov ebx, eax
jmp 0x180005c40
mov ecx, eax
mov rax, qword [rsp + 0x70]
mov word [rax + rcx*2], r12w
mov r8d, dword [rsp + 0x4d0]
mov rdx, qword [rsp + 0x70]
lea rcx, [rsp + 0x48]
call fcn.1800051b0
mov ebx, eax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop
lea rax, [rsp + 0x78]
cmp qword [rsp + 0x70], rax
je 0x180005c61
lea rcx, [rsp + 0x70]
call fcn.180001b10
nop
mov eax, ebx
mov rcx, qword [rsp + 0x480]
xor rcx, rsp
call fcn.18000be70
mov rbx, qword [rsp + 0x4b0]
add rsp, 0x490
pop r12
pop rdi
pop rsi
ret
Function at 0x18000e694
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
lea edx, [r8 + 1]
jmp 0x18000e508

Function at 0x18000ec1b
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x180029008]
jne 0x18000be8a
rol rcx, 0x10
test cx, 0xffff
jne 0x18000be86
repz ret
ror rcx, 0x10
jmp 0x18000eb74
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x18002b090]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov r11, qword [0x18002b188]
mov qword [rsp + 0x58], r11
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x18000ebf9
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x18002b090]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x18000ec1b
mov rax, qword [rsp + 0x88]
mov qword [0x18002b188], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x18002b128], rax
mov rax, qword [0x18002b188]
mov qword [0x18002b000], rax
mov rax, qword [rsp + 0x90]
mov qword [0x18002b110], rax
mov dword [0x18002aff0], 0xc0000409
mov dword [0x18002aff4], 1
mov rax, qword [0x180029008]
mov qword [rsp + 0x68], rax
mov rax, qword [0x180029010]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x18002b088], eax
mov ecx, 1
call fcn.1800158b8
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x180021260]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x18002b088], 0
jne 0x18000eca2
mov ecx, 1
call fcn.1800158b8
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret
Function at 0x180015be0
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x40
mov ebp, r8d
mov r13, rdx
mov r14, rcx
call fcn.18000edf8
xor ebx, ebx
mov rdi, rax
cmp qword [0x18002b9b8], rbx
jne 0x180015ce6
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
je 0x180015dbb
lea rdx, str.MessageBoxA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x180015dbb
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x18002b9b8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x18002b9c0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetUserObjectInformationA
mov rcx, rsi
mov qword [0x18002b9c8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov r11, rax
mov qword [0x18002b9d8], rax
test rax, rax
je 0x180015cdd
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov qword [0x18002b9d0], rax
jmp 0x180015ced
mov rax, qword [0x18002b9d0]
jmp 0x180015cf4
mov rax, qword [0x18002b9d0]
mov r11, qword [0x18002b9d8]
cmp rax, rdi
je 0x180015d5c
cmp r11, rdi
je 0x180015d5c
mov rcx, rax
call sub.KERNEL32.dll_DecodePointer
mov rcx, qword [0x18002b9d8]
mov rsi, rax
call sub.KERNEL32.dll_DecodePointer
mov r12, rax
test rsi, rsi
je 0x180015d5c
test rax, rax
je 0x180015d5c
call rsi
test rax, rax
je 0x180015d56
lea rcx, [rsp + 0x88]
mov r9d, 0xc
lea r8, [rsp + 0x30]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x180015d56
test byte [rsp + 0x38], 1
jne 0x180015d5c
bts ebp, 0x15
jmp 0x180015d9a
mov rcx, qword [0x18002b9c0]
cmp rcx, rdi
je 0x180015d9a
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x180015d9a
call rax
mov rbx, rax
test rax, rax
je 0x180015d9a
mov rcx, qword [0x18002b9c8]
cmp rcx, rdi
je 0x180015d9a
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x180015d9a
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x18002b9b8]
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x180015dbb
mov r9d, ebp
mov r8, r13
mov rdx, r14
mov rcx, rbx
call rax
jmp 0x180015dbd
xor eax, eax
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
add rsp, 0x40
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x180002550
Capabilities:
Create thread

Disassembly:
sub rsp, 0x48
mov rax, qword [0x180031080]
xor rax, rsp
mov qword [rsp + 0x38], rax
cmp edx, 1
jne 0x18000258b
lea rax, [rsp + 0x30]
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea r8, [0x1800022c0]
and dword [rsp + 0x20], 0
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, 1
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1800055d0
add rsp, 0x48
ret

Function at 0x18000294c
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x20
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x18000296c
xor eax, eax
jmp 0x180002a52
cmp qword [rcx + 0x68], 0
je 0x18000297d
call fcn.18000315c
jmp 0x180002a52
mov rax, qword [rcx + 0x38]
mov rdi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x180002994
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x180002996
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x1800029c8
cmp rax, rbp
mov rbx, rbp
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call fcn.18001f9c0
mov rax, qword [rsi + 0x50]
add r14, rbx
sub rdi, rbx
sub dword [rax], ebx
mov rcx, qword [rsi + 0x38]
movsxd rax, ebx
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x180002a4c
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x1800029ff
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
mov ebx, 0xfff
jmp 0x180002a28
mov r9, qword [rsi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call fcn.18000c798
add r14, rax
sub rdi, rax
cmp rax, rbx
jne 0x180002a4c
cmp rdi, rbx
ja 0x180002a06
test rdi, rdi
je 0x180002a4c
mov r9, qword [rsi + 0x80]
mov r8, rdi
mov edx, 1
mov rcx, r14
call fcn.18000c798
sub rdi, rax
sub rbp, rdi
mov rax, rbp
add rsp, 0x20
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x18000e870
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 0x18000e8df
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x18000e8df
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x18000e8df
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x18000e8df
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x18000e8df
cmp dword [rcx + 0x84], 0xe
jbe 0x18000e8df
cmp dword [rcx + 0xf8], 0
je 0x18000e8df
mov ecx, ebx
call fcn.18000e990
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.18000e76c
nop
cmp dword [rbp + 0x20], 0
je 0x18000e92d
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.18000e938
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x18000e870
Function at 0x18001009c
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1800100b2
mov al, 1
jmp 0x180010112
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1800100c3
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x180010110
mov ecx, dword [rcx + 0x18]
nop
call fcn.180019938
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x180010110
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x180010110
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x180010110
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x180010112
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x1800146c0
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.180005e30
sub rsp, rax
mov rax, qword [0x180031080]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.18000ff7c
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x18001470f
mov rax, rbp
jmp 0x180014817
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 + 0x33150]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.18001560c
mov r13, rax
lea rax, [0x180000000]
mov rcx, qword [rax + rbx*8 + 0x33150]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x180014813
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 0x180014813
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.18001560c
test rax, rax
js 0x180014813
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x180014813
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x180014805
lea r8, [0x180000000]
cmp rcx, rdx
jae 0x180014805
cmp byte [rcx], 0xd
jne 0x1800147eb
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x1800147fa
cmp byte [rcx + 1], 0xa
jne 0x1800147fa
inc rcx
jmp 0x1800147fa
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x314a0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x1800147cd
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x180014817
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1800055d0
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 0x1800149ac
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, [0x180033150]
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 0x180014a03
cmp word [rdx], r13w
jne 0x180014a03
or byte [rax + rdi*8 + 0x38], cl
jmp 0x180014a08
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x180014b2d
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x180014b4e
lea r9, [rdx + 2]
cmp cx, r11w
je 0x180014a41
mov rdx, r9
mov word [rbx], cx
jmp 0x180014a68
cmp r9, r8
jae 0x180014a78
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 0x180014a22
jmp 0x180014b2d
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 0x180014b22
cmp dword [rsp + 0x80], esi
je 0x180014b22
lea r8, [0x180033150]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x180014afa
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x180014aca
mov word [rbx], r13w
jmp 0x180014b2a
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 0x180014ad7
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x180014b2a
cmp word [rsp + 0x70], r13w
jne 0x180014b07
cmp rbx, r14
je 0x180014ac4
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.180015614
cmp word [rsp + 0x70], r13w
je 0x180014b2d
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, [0x180033150]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x180014b27
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x180014b2d
Function at 0x18001917c
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 0x1800191ac
xor eax, eax
jmp 0x18001926f
mov rbp, rbx
cmp word [rax], si
je 0x1800191d1
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1800191b8
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1800191b4
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.180017864
movsxd r14, eax
test eax, eax
jne 0x18001920f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1800191a5
mov rcx, r14
call fcn.1800156b8
mov rdi, rax
test rax, rax
jne 0x180019228
xor ecx, ecx
call fcn.1800131dc
jmp 0x180019204
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.180017864
test eax, eax
jne 0x180019259
mov rcx, rdi
call fcn.1800131dc
jmp 0x180019263
xor ecx, ecx
call fcn.1800131dc
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 0x18001bfe4
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.1800105a0
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 0x18001c085
cmp ebx, dword [rsp + 0x30]
je 0x18001c07e
test esi, esi
je 0x18001c07e
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x18001c059
sub r8w, 0x61
cmp r8w, 0x19
ja 0x18001c066
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x18001c043
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x18001c06a
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x18001c087
mov eax, 1
jmp 0x18001c087
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x18001eaf4
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.180015614
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.180015614
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x18001ec44
cmp rax, 0xffffffffffffffff
je 0x18001ec44
xor edi, edi
test rbp, rbp
jle 0x18001ebef
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1800137c8
mov rbx, rax
test rax, rax
jne 0x18001eb7c
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x18001ebe5
mov edx, 0x8000
mov ecx, r14d
call fcn.18001e978
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.180012ed4
cmp eax, 0xffffffff
je 0x18001ebc5
cdqe
sub rbp, rax
test rbp, rbp
jg 0x18001eb8c
mov edx, r15d
mov ecx, r14d
call fcn.18001e978
jmp 0x18001ebe5
cmp byte [rsi + 0x38], dil
je 0x18001ebdc
cmp dword [rsi + 0x34], 5
jne 0x18001ebdc
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x18001ebe5
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1800131dc
jmp 0x18001ec58
jns 0x18001ec58
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.180015614
cmp rax, 0xffffffffffffffff
jne 0x18001ec10
cmp byte [rsi + 0x30], dil
je 0x18001ec58
mov edi, dword [rsi + 0x2c]
jmp 0x18001ec58
mov ecx, r14d
call fcn.180019938
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x18001ec58
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 0x18001ec58
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x18001ec51
mov eax, dword [rsi + 0x2c]
jmp 0x18001ec56
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.180015614
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 0x18001f720
Capabilities:
Parse pe header

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