joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140085358
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rdx, rcx
mov ecx, 0x105
call fcn.140084870
mov ebx, eax
test eax, eax
jne 0x140085388
and dword [rsp + 0x38], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x3c], eax
jmp 0x1400853eb
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400853e2
test al, 0x10
je 0x1400853e2
bt eax, 0xa
jae 0x1400853db
mov r9d, 0x2000000
lea rcx, [rsp + 0x38]
mov r8d, 0x80
mov rdx, rdi
call fcn.140085408
mov rcx, qword [rsp + 0x38]
mov edi, eax
cmp rcx, 0xffffffffffffffff
je 0x1400853d7
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x1400853d7
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_abort]
int3
test edi, edi
jne 0x1400853e2
and dword [rsp + 0x3c], 0
jmp 0x1400853e7
or dword [rsp + 0x3c], 0xffffffff
mov dword [rsp + 0x38], ebx
mov rax, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x1400857ac
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 0x1400857e6
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x1400857eb
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 0x140085834
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x14008d0f0]
cmp byte [rcx + rax], 0
je 0x140085834
dec r8
sub rdx, 1
jne 0x14008581a
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x140011258
Capabilities:
Terminate process

Disassembly:
jmp 0x140013de0
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
add rsp, 0x28
ret

Function at 0x1400112e4
Capabilities:
Parse pe header

Disassembly:
jmp 0x140015130
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140015150
xor al, al
jmp 0x1400151d1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140015163
xor al, al
jmp 0x1400151d1
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x14001518d
xor al, al
jmp 0x1400151d1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x1400151a1
xor al, al
jmp 0x1400151d1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x1400151b3
xor al, al
jmp 0x1400151d1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x1400151cf
xor al, al
jmp 0x1400151d1
mov al, 1
add rsp, 0x38
ret
Function at 0x140013010
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x68
mov ecx, 1
call fcn.140011433
movzx eax, al
test eax, eax
jne 0x140013030
mov ecx, 7
call fcn.1400113a2
nop
mov byte [rsp + 0x20], 0
call fcn.1400113b6
mov byte [rsp + 0x21], al
cmp dword [0x14001f868], 1
jne 0x140013054
mov ecx, 7
call fcn.1400113a2
nop
jmp 0x1400130ac
cmp dword [0x14001f868], 0
jne 0x1400130a7
mov dword [0x14001f868], 1
lea rdx, [0x14001b660]
lea rcx, [0x14001b330]
call fcn.1400111f4
test eax, eax
je 0x140013088
mov eax, 0xff
jmp 0x1400131b1
lea rdx, [0x14001b220]
lea rcx, [section..rdata]
call fcn.1400113ac
mov dword [0x14001f868], 2
jmp 0x1400130ac
mov byte [rsp + 0x20], 1
movzx ecx, byte [rsp + 0x21]
call fcn.14001138e
call fcn.140011307
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp qword [rax], 0
je 0x140013109
mov rcx, qword [rsp + 0x30]
call fcn.1400111a4
movzx eax, al
test eax, eax
je 0x140013109
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x50], rax
xor r8d, r8d
mov edx, 2
xor ecx, ecx
mov rax, qword [rsp + 0x50]
call qword [0x140026020]
nop
call fcn.140011343
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
cmp qword [rax], 0
je 0x14001313d
mov rcx, qword [rsp + 0x38]
call fcn.1400111a4
movzx eax, al
test eax, eax
je 0x14001313d
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax]
call fcn.1400113e8
nop
call fcn.140013260
mov dword [rsp + 0x28], eax
call fcn.1400112e4
movzx eax, al
test eax, eax
jne 0x14001315c
mov ecx, dword [rsp + 0x28]
call fcn.140011069
nop
movzx eax, byte [rsp + 0x20]
test eax, eax
jne 0x14001316b
call fcn.1400113f7
nop
xor edx, edx
mov cl, 1
call fcn.14001118b
mov eax, dword [rsp + 0x28]
jmp 0x1400131b1
add rsp, 0x68
ret
Function at 0x405a82
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
mov rax, rcx
movsxd rcx, dword [rcx + 0x3c]
add rcx, rax
mov ebp, r9d
mov ecx, dword [rcx + rbp*8 + 0x88]
mov r10d, dword [rax + rcx + 0x18]
test r10, r10
je 0x405aff
mov r14d, dword [rax + rcx + 0x20]
add r14, rax
mov r9d, dword [rax + rcx + 0x1c]
add r9, rax
mov r11d, dword [rax + rcx + 0x24]
add r11, rax
xor r15d, r15d
mov edi, dword [r14 + r15*4]
add rdi, rax
xor ecx, ecx
mov ebx, ecx
inc ecx
cmp byte [rdi + rbx], 0
jne 0x405acc
xor ebp, ebp
cmp ecx, 1
je 0x405af3
xor ecx, ecx
xor ebp, ebp
movzx esi, byte [rdi + rcx]
imul ebp, r8d
add ebp, esi
inc rcx
cmp rbx, rcx
jne 0x405ae1
cmp ebp, edx
je 0x405b03
inc r15
cmp r15, r10
jne 0x405ac3
xor eax, eax
jmp 0x405b12
mov ecx, r15d
movzx ecx, word [r11 + rcx*2]
mov ecx, dword [r9 + rcx*4]
add rax, rcx
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret

Function at 0x405b1b
Capabilities:
Access peb ldr_data

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x78
mov rax, qword gs:[0x60]
mov rcx, qword [rax + 0x18]
mov rax, qword [rcx + 0x10]
add rcx, 0x10
xor r14d, r14d
Function at 0x40d6b0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
sub rsp, 0x28
lea rax, [0x1a0]
test rax, rax
je 0x40d6f0
cmp dword [0x00441264], 0xffffffff
je 0x40d6f0
mov ecx, dword [0x00441264]
call sub.kernel32.dll_TlsGetValue
test rax, rax
je 0x40d6f0
mov rcx, rax
call sub.kernel32.dll_LocalFree
mov ecx, dword [0x00441264]
xor rdx, rdx
call sub.kernel32.dll_TlsSetValue
add rsp, 0x28
ret

Function at 0x40d730
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
cmp byte [0x0044bf34], 0
je 0x40d76b
mov ecx, dword [0x00441264]
call sub.kernel32.dll_TlsGetValue
test rax, rax
jne 0x40d77f
call fcn.0040d610
mov ecx, dword [0x00441264]
call sub.kernel32.dll_TlsGetValue
test rax, rax
jne 0x40d77f
mov rax, qword [0x0044bf70]
jmp 0x40d77f
mov rax, qword gs:[0x58]
movsxd rcx, dword [0x00441264]
mov rax, qword [rax + rcx*8]
add rsp, 0x28
ret

Function at 0x41ea60
Capabilities:
Get geographical location

Disassembly:
push rbp
push rbx
sub rsp, 0x38
mov rbp, rsp
mov ebx, r8d
lea r8, [rbp + 0x2c]
mov r9d, 2
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x41ea87
movzx rax, word [rbp + 0x2c]
jmp 0x41ea89
mov eax, ebx
lea rsp, [rbp + 0x38]
pop rbx
pop rbp
ret

Function at 0x422cb0
Capabilities:
Encode data using xor

Disassembly:
push rbp
push r13
push rdi
push rsi
push rbx
sub rsp, 0x240
mov rbp, rsp
mov rbx, rcx
mov rcx, rbx
call fcn.00409410
mov r13d, eax
mov ecx, 0xfde9
xor rdx, rdx
mov r8, rbx
mov r9d, r13d
mov qword [rsp + 0x20], 0
mov dword [rsp + 0x28], 0
call fcn.0040d2e0
mov esi, eax
cmp esi, 0x104
jbe 0x422d0d
mov ecx, esi
add ecx, ecx
mov ecx, ecx
call fcn.00404f40
mov rdi, rax
jmp 0x422d11
lea rdi, [rbp + 0x38]
mov ecx, 0xfde9
xor rdx, rdx
mov r8, rbx
mov r9d, r13d
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x28], esi
call fcn.0040d2e0
mov rcx, rdi
call sub.user32.dll_CharUpperW
xor rbx, rbx
xor rax, rax
mov ecx, esi
sub ecx, 1
cmp eax, ecx
jg 0x422d64
add ecx, 1
mov edx, ebx
shl edx, 5
shr ebx, 0x1b
or edx, ebx
mov ebx, edx
movsxd rdx, eax
movzx edx, word [rdi + rdx*2]
xor ebx, edx
add eax, 1
cmp eax, ecx
jne 0x422d48
nop
lea rax, [rbp + 0x38]
cmp rdi, rax
je 0x422d76
mov rcx, rdi
call fcn.00404f70
mov eax, ebx
lea rsp, [rbp + 0x240]
pop rbx
pop rsi
pop rdi
pop r13
pop rbp
ret
Function at 0x180002acc
Capabilities:
Read file on windows

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, 0x20
mov rbp, r8
mov r14, rdx
mov rdi, rcx
test r8, r8
jg 0x180002afa
xor eax, eax
jmp 0x180002be0
cmp qword [rcx + 0x68], 0
je 0x180002b0b
call fcn.180003afc
jmp 0x180002be0
mov rax, qword [rcx + 0x38]
mov rsi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x180002b22
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x180002b24
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x180002b56
cmp rax, rbp
mov rbx, rbp
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call fcn.18002feb0
mov rax, qword [rdi + 0x50]
add r14, rbx
sub rsi, rbx
sub dword [rax], ebx
mov rcx, qword [rdi + 0x38]
movsxd rax, ebx
add qword [rcx], rax
cmp qword [rdi + 0x80], 0
je 0x180002bda
mov r8, qword [rdi + 0x18]
lea rax, [rdi + 0x70]
cmp qword [r8], rax
jne 0x180002b8d
mov rcx, qword [rdi + 0x88]
mov rdx, qword [rdi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rdi + 0x38]
mov qword [rax], rcx
mov rax, qword [rdi + 0x50]
mov dword [rax], edx
mov ebx, 0xfff
jmp 0x180002bb6
mov r9, qword [rdi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call fcn.18000e988
add r14, rax
sub rsi, rax
cmp rax, rbx
jne 0x180002bda
cmp rsi, rbx
ja 0x180002b94
test rsi, rsi
je 0x180002bda
mov r9, qword [rdi + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.18000e988
sub rsi, rax
sub rbp, rsi
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret

Function at 0x1800060a8
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 0x1800060e2
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x1800060e7
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 0x180006130
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x180032420]
cmp byte [rcx + rax], 0
je 0x180006130
dec r8
sub rdx, 1
jne 0x180006116
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x180010a68
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 0x180010ad7
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x180010ad7
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x180010ad7
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x180010ad7
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x180010ad7
cmp dword [rcx + 0x84], 0xe
jbe 0x180010ad7
cmp dword [rcx + 0xf8], 0
je 0x180010ad7
mov ecx, ebx
call fcn.180010b88
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.180010964
nop
cmp dword [rbp + 0x20], 0
je 0x180010b25
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.180010b30
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x180010a68

Function at 0x18001228c
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1800122a2
mov al, 1
jmp 0x180012302
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1800122b3
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x180012300
mov ecx, dword [rcx + 0x18]
nop
call fcn.18001bb28
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x180012300
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x180012300
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x180012300
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x180012302
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x1800168b0
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.180007fb0
sub rsp, rax
mov rax, qword [0x180042080]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.18001216c
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x1800168ff
mov rax, rbp
jmp 0x180016a07
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 + 0x44660]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.1800177fc
mov r13, rax
lea rax, [0x180000000]
mov rcx, qword [rax + rbx*8 + 0x44660]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x180016a03
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 0x180016a03
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.1800177fc
test rax, rax
js 0x180016a03
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x180016a03
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x1800169f5
lea r8, [0x180000000]
cmp rcx, rdx
jae 0x1800169f5
cmp byte [rcx], 0xd
jne 0x1800169db
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x1800169ea
cmp byte [rcx + 1], 0xa
jne 0x1800169ea
inc rcx
jmp 0x1800169ea
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x424b0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x1800169bd
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x180016a07
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.180007c10
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 0x180016b9c
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, [0x180044660]
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 0x180016bf3
cmp word [rdx], r13w
jne 0x180016bf3
or byte [rax + rdi*8 + 0x38], cl
jmp 0x180016bf8
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x180016d1d
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x180016d3e
lea r9, [rdx + 2]
cmp cx, r11w
je 0x180016c31
mov rdx, r9
mov word [rbx], cx
jmp 0x180016c58
cmp r9, r8
jae 0x180016c68
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 0x180016c12
jmp 0x180016d1d
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 0x180016d12
cmp dword [rsp + 0x80], esi
je 0x180016d12
lea r8, [0x180044660]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x180016cea
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x180016cba
mov word [rbx], r13w
jmp 0x180016d1a
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 0x180016cc7
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x180016d1a
cmp word [rsp + 0x70], r13w
jne 0x180016cf7
cmp rbx, r14
je 0x180016cb4
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.180017804
cmp word [rsp + 0x70], r13w
je 0x180016d1d
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, [0x180044660]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x180016d17
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x180016d1d
Function at 0x18001b36c
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 0x18001b39c
xor eax, eax
jmp 0x18001b45f
mov rbp, rbx
cmp word [rax], si
je 0x18001b3c1
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x18001b3a8
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x18001b3a4
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.180019a54
movsxd r14, eax
test eax, eax
jne 0x18001b3ff
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x18001b395
mov rcx, r14
call fcn.1800178a8
mov rdi, rax
test rax, rax
jne 0x18001b418
xor ecx, ecx
call fcn.1800153cc
jmp 0x18001b3f4
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.180019a54
test eax, eax
jne 0x18001b449
mov rcx, rdi
call fcn.1800153cc
jmp 0x18001b453
xor ecx, ecx
call fcn.1800153cc
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 0x18001e1d4
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.180012790
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 0x18001e275
cmp ebx, dword [rsp + 0x30]
je 0x18001e26e
test esi, esi
je 0x18001e26e
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x18001e249
sub r8w, 0x61
cmp r8w, 0x19
ja 0x18001e256
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x18001e233
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x18001e25a
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x18001e277
mov eax, 1
jmp 0x18001e277
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x180020ce4
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.180017804
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.180017804
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x180020e34
cmp rax, 0xffffffffffffffff
je 0x180020e34
xor edi, edi
test rbp, rbp
jle 0x180020ddf
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1800159b8
mov rbx, rax
test rax, rax
jne 0x180020d6c
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x180020dd5
mov edx, 0x8000
mov ecx, r14d
call fcn.180020b68
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.1800150c4
cmp eax, 0xffffffff
je 0x180020db5
cdqe
sub rbp, rax
test rbp, rbp
jg 0x180020d7c
mov edx, r15d
mov ecx, r14d
call fcn.180020b68
jmp 0x180020dd5
cmp byte [rsi + 0x38], dil
je 0x180020dcc
cmp dword [rsi + 0x34], 5
jne 0x180020dcc
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x180020dd5
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1800153cc
jmp 0x180020e48
jns 0x180020e48
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.180017804
cmp rax, 0xffffffffffffffff
jne 0x180020e00
cmp byte [rsi + 0x30], dil
je 0x180020e48
mov edi, dword [rsi + 0x2c]
jmp 0x180020e48
mov ecx, r14d
call fcn.18001bb28
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x180020e48
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 0x180020e48
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x180020e41
mov eax, dword [rsi + 0x2c]
jmp 0x180020e46
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.180017804
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 0x180021910
Capabilities:
Parse pe header

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