joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180002e40
Capabilities:
Set registry value

Disassembly:
push rbp
sub rsp, 0xb0
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x28], 0xfffffffffffffffe
lea rdx, str.Activate
lea rcx, [rbp + 8]
call fcn.180004700
lea rdx, str.Software_
lea rcx, [rbp - 0x18]
call fcn.180004700
jmp 0x180002e7d
lea rdx, [0x1800d2680]
lea rcx, [rbp - 0x18]
call fcn.180004a10
jmp 0x180002e92
lea rcx, [rbp - 0x18]
call fcn.180004a90
mov rdx, rax
mov rax, rsp
lea rcx, [rbp - 0x20]
mov qword [rax + 0x38], rcx
mov qword [rax + 0x40], 0
mov qword [rax + 0x30], 0
mov dword [rax + 0x28], 0x20006
mov dword [rax + 0x20], 1
mov rax, qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
xor r8d, r8d
mov r9d, r8d
mov rcx, 0xffffffff80000001
call rax
jmp 0x180002ee2
lea rcx, [rbp + 8]
mov qword [rbp - 0x38], rcx
call fcn.1800047b0
mov rcx, qword [rbp - 0x38]
add eax, eax
mov dword [rbp - 0x2c], eax
call fcn.180004a90
mov rcx, qword [rbp - 0x38]
mov qword [rbp - 0x28], rax
call fcn.180004a90
mov r9d, dword [rbp - 0x2c]
mov r8, qword [rbp - 0x28]
mov rdx, rax
mov rcx, qword [rbp - 0x20]
mov rax, rsp
mov dword [rax + 0x28], r9d
mov qword [rax + 0x20], r8
mov rax, qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
xor r8d, r8d
mov r9d, 1
call rax
jmp 0x180002f3b
mov rcx, qword [rbp - 0x20]
mov rax, qword [sym.imp.ADVAPI32.dll_RegCloseKey]
call rax
jmp 0x180002f4d
lea rcx, [rbp - 0x18]
call fcn.180004780
lea rcx, [rbp + 8]
call fcn.180004780
nop
add rsp, 0xb0
pop rbp
ret
Function at 0x180002fd0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
sub rsp, 0x2d0
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x248], 0xfffffffffffffffe
lea rdx, str.Activate
lea rcx, [rbp + 0x218]
call fcn.180004700
lea rdx, str.Software_
lea rcx, [rbp + 0x1f8]
call fcn.180004700
jmp 0x180003016
lea rdx, [0x1800d2680]
lea r8, [0x18004a6d4]
lea rcx, [rbp + 0x1d8]
call fcn.180004b00
jmp 0x180003035
lea rcx, [rbp + 0x1f8]
lea rdx, [rbp + 0x1d8]
call fcn.180004a10
jmp 0x18000304d
lea rcx, [rbp + 0x1d8]
call fcn.180004780
lea rcx, [rbp + 0x1f8]
call fcn.180004a90
mov rdx, rax
mov rax, rsp
lea rcx, [rbp + 0x238]
mov qword [rax + 0x20], rcx
mov rax, qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov rcx, 0xffffffff80000001
xor r8d, r8d
mov r9d, 0x201
call rax
mov dword [rbp - 0x48], eax
jmp 0x180003097
mov eax, dword [rbp - 0x48]
mov dword [rbp + 0x1d4], eax
cmp dword [rbp + 0x1d4], 0
je 0x1800030c6
mov dword [rbp + 0x244], 0
mov dword [rbp + 0x1d0], 1
jmp 0x180003198
mov dword [rbp - 0x44], 0x208
lea rcx, [rbp + 0x218]
call fcn.180004a90
mov rdx, rax
mov rcx, qword [rbp + 0x238]
mov rax, rsp
lea r8, [rbp - 0x44]
mov qword [rax + 0x28], r8
lea r8, [rbp - 0x40]
mov qword [rax + 0x20], r8
mov rax, qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
xor r8d, r8d
mov r9d, r8d
mov r8, r9
call rax
mov dword [rbp - 0x4c], eax
jmp 0x180003110
mov eax, dword [rbp - 0x4c]
mov dword [rbp + 0x1d4], eax
cmp dword [rbp + 0x1d4], 0
je 0x18000313f
mov dword [rbp + 0x244], 0
mov dword [rbp + 0x1d0], 1
jmp 0x180003198
lea rcx, [rbp + 0x218]
call fcn.180004a90
mov rdx, rax
lea rcx, [rbp - 0x40]
call fcn.18002c660
mov dword [rbp - 0x50], eax
jmp 0x18000315f
mov eax, dword [rbp - 0x50]
cmp eax, 0
jne 0x180003184
mov dword [rbp + 0x244], 1
mov dword [rbp + 0x1d0], 1
jmp 0x180003198
mov dword [rbp + 0x244], 0
mov dword [rbp + 0x1d0], 1
lea rcx, [rbp + 0x1f8]
call fcn.180004780
lea rcx, [rbp + 0x218]
call fcn.180004780
mov eax, dword [rbp + 0x244]
add rsp, 0x2d0
pop rbp
ret

Function at 0x180005e60
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x20
mov qword [rsp + 0x10], rcx
mov rax, qword [rsp + 0x10]
mov qword [rsp + 8], rax
mov rax, qword [rsp + 8]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x180005e94
mov qword [rsp + 0x18], 0
jmp 0x180005ed8
mov rax, qword [rsp + 0x10]
mov rcx, qword [rsp + 8]
movsxd rcx, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
mov rax, qword [rsp]
cmp dword [rax], 0x4550
je 0x180005ec7
mov qword [rsp + 0x18], 0
jmp 0x180005ed8
mov rax, qword [rsp]
mov eax, dword [rax + 0x28]
add rax, qword [rsp + 0x10]
mov qword [rsp + 0x18], rax
mov rax, qword [rsp + 0x18]
add rsp, 0x20
ret
Function at 0x180009700
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x88
mov qword [rsp + 0x78], r8
mov qword [rsp + 0x70], rdx
mov qword [rsp + 0x68], rcx
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x78], 0
jg 0x18000973d
mov qword [rsp + 0x80], 0
jmp 0x180009909
mov rax, qword [rsp + 0x30]
cmp qword [rax + 0x68], 0
je 0x18000976e
mov rcx, qword [rsp + 0x30]
mov r8, qword [rsp + 0x78]
mov rdx, qword [rsp + 0x70]
call fcn.18000a4e0
mov qword [rsp + 0x80], rax
jmp 0x180009909
mov rcx, qword [rsp + 0x30]
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x58], rax
call fcn.18000a850
mov qword [rsp + 0x50], rax
xor eax, eax
cmp rax, qword [rsp + 0x50]
jae 0x18000980d
lea rcx, [rsp + 0x60]
lea rdx, [rsp + 0x50]
call fcn.180006d70
mov rcx, qword [rsp + 0x30]
mov rax, qword [rax]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x28], rax
call fcn.18000a8a0
mov r8, qword [rsp + 0x28]
mov rdx, rax
mov rcx, qword [rsp + 0x70]
call fcn.180006c10
mov rcx, qword [rsp + 0x30]
mov rax, qword [rsp + 0x48]
add rax, qword [rsp + 0x70]
mov qword [rsp + 0x70], rax
mov rdx, qword [rsp + 0x48]
mov rax, qword [rsp + 0x60]
sub rax, rdx
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x48]
mov edx, eax
call fcn.18000a8c0
mov rax, qword [rsp + 0x30]
cmp qword [rax + 0x80], 0
je 0x1800098f7
mov rcx, qword [rsp + 0x30]
call fcn.180008b80
mov qword [rsp + 0x40], 0xfff
mov eax, 0xfff
cmp rax, qword [rsp + 0x60]
jae 0x1800098b5
mov rax, qword [rsp + 0x30]
mov r9, qword [rax + 0x80]
mov rcx, qword [rsp + 0x70]
mov edx, 1
mov r8d, 0xfff
call fcn.1800300d8
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
add rax, qword [rsp + 0x70]
mov qword [rsp + 0x70], rax
mov rcx, qword [rsp + 0x38]
mov rax, qword [rsp + 0x60]
sub rax, rcx
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0x38], 0xfff
je 0x1800098b0
mov rax, qword [rsp + 0x58]
sub rax, qword [rsp + 0x60]
mov qword [rsp + 0x80], rax
jmp 0x180009909
jmp 0x180009833
xor eax, eax
cmp rax, qword [rsp + 0x60]
jae 0x1800098f2
mov rax, qword [rsp + 0x30]
mov r9, qword [rax + 0x80]
mov r8, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x70]
mov edx, 1
call fcn.1800300d8
mov rcx, rax
mov rax, qword [rsp + 0x60]
sub rax, rcx
mov qword [rsp + 0x60], rax
jmp 0x1800098f7
mov rax, qword [rsp + 0x58]
sub rax, qword [rsp + 0x60]
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x80]
add rsp, 0x88
ret
Function at 0x180010340
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub rsp, 0x68
mov qword [rsp + 0x58], rcx
mov rcx, qword [rsp + 0x58]
mov qword [rsp + 0x40], rcx
call fcn.1800047b0
mov rcx, rax
mov eax, 2
cmp rax, rcx
jae 0x1800104b7
mov rcx, qword [rsp + 0x40]
xor eax, eax
mov edx, eax
call fcn.1800047c0
movzx eax, word [rax]
cmp eax, 0x2f
je 0x18001039d
mov rcx, qword [rsp + 0x40]
xor eax, eax
mov edx, eax
call fcn.1800047c0
movzx eax, word [rax]
cmp eax, 0x5c
jne 0x1800104b7
mov rcx, qword [rsp + 0x40]
mov edx, 1
call fcn.1800047c0
movzx eax, word [rax]
cmp eax, 0x2f
je 0x1800103d3
mov rcx, qword [rsp + 0x40]
mov edx, 1
call fcn.1800047c0
movzx eax, word [rax]
cmp eax, 0x5c
jne 0x1800104b7
mov rcx, qword [rsp + 0x40]
mov edx, 2
call fcn.1800047c0
movzx eax, word [rax]
cmp eax, 0x2f
je 0x1800104b7
mov rcx, qword [rsp + 0x40]
mov edx, 2
call fcn.1800047c0
movzx eax, word [rax]
cmp eax, 0x5c
je 0x1800104b7
mov qword [rsp + 0x50], 3
mov rcx, qword [rsp + 0x40]
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x30], rax
call fcn.1800047b0
mov rcx, qword [rsp + 0x30]
mov rdx, rax
xor eax, eax
cmp rcx, rdx
mov byte [rsp + 0x3f], al
jae 0x180010484
mov rcx, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x50]
call fcn.1800047c0
movzx ecx, word [rax]
mov al, 1
cmp ecx, 0x2f
mov byte [rsp + 0x2f], al
je 0x18001047a
mov rcx, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x50]
call fcn.1800047c0
movzx eax, word [rax]
cmp eax, 0x5c
sete al
mov byte [rsp + 0x2f], al
mov al, byte [rsp + 0x2f]
xor al, 0xff
mov byte [rsp + 0x3f], al
mov al, byte [rsp + 0x3f]
test al, 1
jne 0x180010495
jmp 0x1800104a8
mov rax, qword [rsp + 0x50]
add rax, 1
mov qword [rsp + 0x50], rax
jmp 0x180010412
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x60], rax
jmp 0x180010502
mov rcx, qword [rsp + 0x40]
mov edx, 0x3a
xor eax, eax
mov r8d, eax
call fcn.1800105c0
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0xffffffffffffffff
jne 0x1800104ea
mov qword [rsp + 0x48], 0
jmp 0x1800104f8
mov rax, qword [rsp + 0x48]
add rax, 1
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x60]
add rsp, 0x68
ret

Function at 0x180025a9c
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, rdx
lea r8, [rsp + 0x60]
mov ebx, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov r8d, ebx
mov ecx, 0x1300
neg eax
sbb r9d, r9d
and qword [rsp + 0x30], 0
and r9d, dword [rsp + 0x60]
xor edx, edx
and dword [rsp + 0x28], 0
mov dword [rsp + 0x60], r9d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x180025b20
mov r8, qword [rdi]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x1800bc7b0]
cmp byte [rcx + rax], 0
je 0x180025b20
dec r8
sub rdx, 1
jne 0x180025b06
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x18002d230
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 0x18002d0e3
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x18002d0e3
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x18002d0e3
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x18002d0e3
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x18002d0e3
cmp dword [rcx + 0x84], 0xe
jbe 0x18002d0e3
cmp dword [rcx + 0xf8], 0
je 0x18002d0e3
mov ecx, ebx
call fcn.18002d194
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.18002cf70
nop
cmp dword [rbp + 0x20], 0
je 0x18002d131
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.18002d13c
int3
xor r8d, r8d
xor edx, edx
jmp 0x18002d074

Function at 0x18003241c
Capabilities:
Delete directory

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x18003243c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.18002ca40
or eax, 0xffffffff
jmp 0x18003243e
xor eax, eax
add rsp, 0x28
ret

Function at 0x180032444
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x180032464
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.18002ca40
or eax, 0xffffffff
jmp 0x180032466
xor eax, eax
add rsp, 0x28
ret
Function at 0x18003bc68
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x18003bc7e
mov al, 1
jmp 0x18003bcde
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x18003bc8f
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x18003bcdc
mov ecx, dword [rcx + 0x18]
nop
call fcn.180044180
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x18003bcdc
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x18003bcdc
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x18003bcdc
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x18003bcde
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x18003bf84
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, [0x1800d3840]
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 0x18003bfdb
cmp word [rdx], r13w
jne 0x18003bfdb
or byte [rax + rdi*8 + 0x38], cl
jmp 0x18003bfe0
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x18003c105
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x18003c126
lea r9, [rdx + 2]
cmp cx, r11w
je 0x18003c019
mov rdx, r9
mov word [rbx], cx
jmp 0x18003c040
cmp r9, r8
jae 0x18003c050
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 0x18003bffa
jmp 0x18003c105
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 0x18003c0fa
cmp dword [rsp + 0x80], esi
je 0x18003c0fa
lea r8, [0x1800d3840]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x18003c0d2
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x18003c0a2
mov word [rbx], r13w
jmp 0x18003c102
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 0x18003c0af
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x18003c102
cmp word [rsp + 0x70], r13w
jne 0x18003c0df
cmp rbx, r14
je 0x18003c09c
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.18003cbec
cmp word [rsp + 0x70], r13w
je 0x18003c105
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, [0x1800d3840]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x18003c0ff
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x18003c105
Function at 0x18003cfa8
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.180049030
sub rsp, rax
mov rax, qword [0x1800d1898]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.18003a910
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x18003cff7
mov rax, rbp
jmp 0x18003d0ff
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 + 0xd3840]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.18003cbe4
mov r13, rax
lea rax, [0x180000000]
mov rcx, qword [rax + rbx*8 + 0xd3840]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x18003d0fb
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 0x18003d0fb
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.18003cbe4
test rax, rax
js 0x18003d0fb
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x18003d0fb
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x18003d0ed
lea r8, [0x180000000]
cmp rcx, rdx
jae 0x18003d0ed
cmp byte [rcx], 0xd
jne 0x18003d0d3
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x18003d0e2
cmp byte [rcx + 1], 0xa
jne 0x18003d0e2
inc rcx
jmp 0x18003d0e2
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0xd1d00]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x18003d0b5
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x18003d0ff
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.180024ce0
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 0x18003e864
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 0x18003e894
xor eax, eax
jmp 0x18003e957
mov rbp, rbx
cmp word [rax], si
je 0x18003e8b9
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x18003e8a0
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x18003e89c
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.18003e784
movsxd r14, eax
test eax, eax
jne 0x18003e8f7
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x18003e88d
mov rcx, r14
call fcn.1800396fc
mov rdi, rax
test rax, rax
jne 0x18003e910
xor ecx, ecx
call fcn.180038990
jmp 0x18003e8ec
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.18003e784
test eax, eax
jne 0x18003e941
mov rcx, rdi
call fcn.180038990
jmp 0x18003e94b
xor ecx, ecx
call fcn.180038990
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 0x18004378c
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.180036c5c
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 0x18004382d
cmp ebx, dword [rsp + 0x30]
je 0x180043826
test esi, esi
je 0x180043826
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x180043801
sub r8w, 0x61
cmp r8w, 0x19
ja 0x18004380e
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x1800437eb
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x180043812
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x18004382f
mov eax, 1
jmp 0x18004382f
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x180048a94
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.18003cbec
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.18003cbec
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x180048be4
cmp rax, 0xffffffffffffffff
je 0x180048be4
xor edi, edi
test rbp, rbp
jle 0x180048b8f
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.180038918
mov rbx, rax
test rax, rax
jne 0x180048b1c
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x180048b85
mov edx, 0x8000
mov ecx, r14d
call fcn.180048918
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.18003b868
cmp eax, 0xffffffff
je 0x180048b65
cdqe
sub rbp, rax
test rbp, rbp
jg 0x180048b2c
mov edx, r15d
mov ecx, r14d
call fcn.180048918
jmp 0x180048b85
cmp byte [rsi + 0x38], dil
je 0x180048b7c
cmp dword [rsi + 0x34], 5
jne 0x180048b7c
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x180048b85
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.180038990
jmp 0x180048bf8
jns 0x180048bf8
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.18003cbec
cmp rax, 0xffffffffffffffff
jne 0x180048bb0
cmp byte [rsi + 0x30], dil
je 0x180048bf8
mov edi, dword [rsi + 0x2c]
jmp 0x180048bf8
mov ecx, r14d
call fcn.180044180
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x180048bf8
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 0x180048bf8
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x180048bf1
mov eax, dword [rsi + 0x2c]
jmp 0x180048bf6
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.18003cbec
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 0x140013ec0
Capabilities:
Parse pe header

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

Function at 0x1800010b0
Capabilities:
Create thread

Disassembly:
sub rsp, 0x38
cmp edx, 1
jne 0x1800010e1
xor eax, eax
lea r8, section..text
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor edx, edx
mov dword [rsp + 0x20], eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
add rsp, 0x38
ret
Function at 0x413160
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x41330b
sub rsp, 0x50
mov qword [rsp + 0x48], rbp
lea rbp, [rsp + 0x48]
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rbx
mov rcx, qword [sym.imp.kernel32.dll_VirtualFree]
mov qword [rsp], rcx
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x4000
call fcn.0042c300
xorps xmm15, xmm15
mov r14, qword gs:[0x28]
mov r14, qword [r14]
cmp qword [rsp + 0x20], 0
nop
jne 0x4131ce
mov rax, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x60]
jmp 0x4131e1
mov rbp, qword [rsp + 0x48]
add rsp, 0x50
ret
sub rcx, rbx
add rax, rbx
mov rbx, rcx
test rbx, rbx
jbe 0x413205
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x40], rax
mov rcx, rbx
jmp 0x413219
cmp rbx, 0x1000
jae 0x4131d8
nop
jmp 0x413289
mov rbp, qword [rsp + 0x48]
add rsp, 0x50
ret
shr rbx, 1
and rbx, 0xfffffffffffff000
mov qword [rsp + 0x38], rbx
nop
cmp rbx, 0x1000
jae 0x41322d
xor edx, edx
jmp 0x413280
mov rcx, qword [sym.imp.kernel32.dll_VirtualFree]
mov qword [rsp], rcx
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x4000
call fcn.0042c300
xorps xmm15, xmm15
mov r14, qword gs:[0x28]
mov r14, qword [r14]
cmp qword [rsp + 0x20], 0
sete al
mov rcx, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x38]
mov edx, eax
mov rax, qword [rsp + 0x40]
nop
test dl, dl
jne 0x41320f
jmp 0x4131f5
call fcn.00459160
xorps xmm15, xmm15
mov r14, qword gs:[0x28]
mov r14, qword [r14]
mov eax, dword [rsp]
mov qword [rsp + 0x30], rax
call fcn.00431160
lea rax, [0x00476b89]
mov ebx, 0x18
nop dword [rax + rax]
call fcn.00431a60
mov rax, qword [rsp + 0x38]
call fcn.00431760
lea rax, [0x00476c19]
mov ebx, 0x19
nop dword [rax + rax]
call fcn.00431a60
mov rax, qword [rsp + 0x30]
call fcn.00431760
call fcn.004313c0
call fcn.004311e0
lea rax, [0x004783b8]
mov ebx, 0x21
call fcn.0042f9e0
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.00455620
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp fcn.00413160