joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1401236e4
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.14011787c
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14011787c
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140123834
cmp rax, 0xffffffffffffffff
je 0x140123834
xor edi, edi
test rbp, rbp
jle 0x1401237df
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.140111398
mov rbx, rax
test rax, rax
jne 0x14012376c
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1401237d5
mov edx, 0x8000
mov ecx, r14d
call fcn.14010e684
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.1401148dc
cmp eax, 0xffffffff
je 0x1401237b5
cdqe
sub rbp, rax
test rbp, rbp
jg 0x14012377c
mov edx, r15d
mov ecx, r14d
call fcn.14010e684
jmp 0x1401237d5
cmp byte [rsi + 0x38], dil
je 0x1401237cc
cmp dword [rsi + 0x34], 5
jne 0x1401237cc
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x1401237d5
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.140111410
jmp 0x140123848
jns 0x140123848
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14011787c
cmp rax, 0xffffffffffffffff
jne 0x140123800
cmp byte [rsi + 0x30], dil
je 0x140123848
mov edi, dword [rsi + 0x2c]
jmp 0x140123848
mov ecx, r14d
call fcn.14011a78c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140123848
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 0x140123848
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140123841
mov eax, dword [rsi + 0x2c]
jmp 0x140123846
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14011787c
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 0x1401241c0
Capabilities:
Parse pe header

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

Function at 0x140001a98
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140001ae2
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140001ae2
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140001ae2
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140001ae2
cmp dword [rcx + 0x84], 0xe
jbe 0x140001ae2
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140001ae4
xor al, al
add rsp, 0x28
ret
Function at 0x140011203
Capabilities:
Terminate process

Disassembly:
jmp 0x140013070
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 0x14001128a
Capabilities:
Parse pe header

Disassembly:
jmp 0x1400143b0
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x1400143d0
xor al, al
jmp 0x140014451
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x1400143e3
xor al, al
jmp 0x140014451
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 0x14001440d
xor al, al
jmp 0x140014451
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140014421
xor al, al
jmp 0x140014451
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140014433
xor al, al
jmp 0x140014451
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14001444f
xor al, al
jmp 0x140014451
mov al, 1
add rsp, 0x38
ret
Function at 0x1400122b0
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x68
mov ecx, 1
call fcn.1400113a7
movzx eax, al
test eax, eax
jne 0x1400122d0
mov ecx, 7
call fcn.140011325
nop
mov byte [rsp + 0x20], 0
call fcn.140011339
mov byte [rsp + 0x21], al
cmp dword [0x14001d868], 1
jne 0x1400122f4
mov ecx, 7
call fcn.140011325
nop
jmp 0x14001234c
cmp dword [0x14001d868], 0
jne 0x140012347
mov dword [0x14001d868], 1
lea rdx, [0x14001a660]
lea rcx, [0x14001a330]
call fcn.1400111a9
test eax, eax
je 0x140012328
mov eax, 0xff
jmp 0x140012451
lea rdx, [0x14001a220]
lea rcx, [section..rdata]
call fcn.14001132f
mov dword [0x14001d868], 2
jmp 0x14001234c
mov byte [rsp + 0x20], 1
movzx ecx, byte [rsp + 0x21]
call fcn.140011311
call fcn.1400112ad
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp qword [rax], 0
je 0x1400123a9
mov rcx, qword [rsp + 0x30]
call fcn.140011159
movzx eax, al
test eax, eax
je 0x1400123a9
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 [0x140023020]
nop
call fcn.1400112df
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
cmp qword [rax], 0
je 0x1400123dd
mov rcx, qword [rsp + 0x38]
call fcn.140011159
movzx eax, al
test eax, eax
je 0x1400123dd
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax]
call fcn.140011366
nop
call fcn.140012500
mov dword [rsp + 0x28], eax
call fcn.14001128a
movzx eax, al
test eax, eax
jne 0x1400123fc
mov ecx, dword [rsp + 0x28]
call fcn.140011055
nop
movzx eax, byte [rsp + 0x20]
test eax, eax
jne 0x14001240b
call fcn.140011370
nop
xor edx, edx
mov cl, 1
call fcn.14001114a
mov eax, dword [rsp + 0x28]
jmp 0x140012451
add rsp, 0x68
ret
Function at 0x1800011e8
Capabilities:
Create thread
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0x1f10]
mov eax, 0x2010
call fcn.1800085c0
sub rsp, rax
mov rax, qword [0x180036080]
xor rax, rsp
mov qword [rbp + 0x1f00], rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x60], xmm0
xor edi, edi
mov qword [rbp - 0x50], rdi
mov qword [rbp - 0x48], 7
mov word [rbp - 0x60], di
movups xmmword [rbp - 0x80], xmm0
movdqa xmm1, xmmword [0x1800308f0]
movdqu xmmword [rbp - 0x70], xmm1
mov word [rbp - 0x80], di
mov word [rbp - 0x40], di
mov ebx, 0xf9e
mov r8d, ebx
xor edx, edx
lea rcx, [rbp - 0x3e]
call fcn.1800242f0
mov word [rbp + 0xf60], di
mov r8d, ebx
xor edx, edx
lea rcx, [rbp + 0xf62]
call fcn.1800242f0
lea rdx, str.Bssgbwb_Nj_qlplew_Ubvow_Pf_vqfAllwVFEJ_gbw
lea rcx, [rbp - 0x60]
call fcn.1800013cc
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x48], rdi
lea rdx, [rbp - 0x60]
cmp qword [rbp - 0x48], 7
cmova rdx, qword [rbp - 0x60]
mov r8, qword [rbp - 0x50]
lea rcx, [rsp + 0x30]
call fcn.1800015a4
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x50]
call fcn.180002218
mov rbx, rax
lea rax, [rbp - 0x80]
cmp rax, rbx
je 0x1800012f6
lea rcx, [rbp - 0x80]
call fcn.180001540
movups xmm0, xmmword [rbx]
movups xmmword [rbp - 0x80], xmm0
movups xmm1, xmmword [rbx + 0x10]
movups xmmword [rbp - 0x70], xmm1
mov qword [rbx + 0x10], rdi
mov qword [rbx + 0x18], 7
mov word [rbx], di
lea rcx, [rsp + 0x50]
call fcn.180001540
lea r8, [rbp - 0x80]
cmp qword [rbp - 0x68], 7
cmova r8, qword [rbp - 0x80]
mov ebx, 0x7d0
mov edx, ebx
lea rcx, [rbp - 0x40]
call fcn.18000e820
mov r8d, ebx
lea rdx, [rbp + 0xf60]
lea rcx, [rbp - 0x40]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea rcx, [rbp + 0xf60]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov eax, 1
mov dword [rsp + 0x70], eax
mov dword [rsp + 0x78], eax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], edi
lea r9, [rsp + 0x78]
lea r8, [0x1800011dc]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
lea rcx, [rbp - 0x80]
call fcn.180001540
nop
lea rcx, [rbp - 0x60]
call fcn.180001540
xor eax, eax
mov rcx, qword [rbp + 0x1f00]
xor rcx, rsp
call fcn.180007d50
lea r11, [rsp + 0x2010]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret
Function at 0x180003830
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 0x180003850
xor eax, eax
jmp 0x180003936
cmp qword [rcx + 0x68], 0
je 0x180003861
call fcn.180004048
jmp 0x180003936
mov rax, qword [rcx + 0x38]
mov rdi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x180003878
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x18000387a
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x1800038ac
cmp rax, rbp
mov rbx, rbp
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call fcn.180023c50
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 0x180003930
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x1800038e3
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 0x18000390c
mov r9, qword [rsi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call fcn.180010458
add r14, rax
sub rdi, rax
cmp rax, rbx
jne 0x180003930
cmp rdi, rbx
ja 0x1800038ea
test rdi, rdi
je 0x180003930
mov r9, qword [rsi + 0x80]
mov r8, rdi
mov edx, 1
mov rcx, r14
call fcn.180010458
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 0x18000f3e8
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x18000f408
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.18001193c
or eax, 0xffffffff
jmp 0x18000f40a
xor eax, eax
add rsp, 0x28
ret

Function at 0x180015d78
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x180015d8e
mov al, 1
jmp 0x180015dee
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x180015d9f
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x180015dec
mov ecx, dword [rcx + 0x18]
nop
call fcn.18002075c
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x180015dec
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x180015dec
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x180015dec
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x180015dee
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x1800184ec
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.1800085c0
sub rsp, rax
mov rax, qword [0x180036080]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.180015c58
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x18001853b
mov rax, rbp
jmp 0x180018643
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 + 0x38160]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.180019438
mov r13, rax
lea rax, [0x180000000]
mov rcx, qword [rax + rbx*8 + 0x38160]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x18001863f
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 0x18001863f
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.180019438
test rax, rax
js 0x18001863f
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x18001863f
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x180018631
lea r8, [0x180000000]
cmp rcx, rdx
jae 0x180018631
cmp byte [rcx], 0xd
jne 0x180018617
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x180018626
cmp byte [rcx + 1], 0xa
jne 0x180018626
inc rcx
jmp 0x180018626
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x364a0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x1800185f9
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x180018643
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.180007d50
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 0x1800187d8
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, [0x180038160]
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 0x18001882f
cmp word [rdx], r13w
jne 0x18001882f
or byte [rax + rdi*8 + 0x38], cl
jmp 0x180018834
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x180018959
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x18001897a
lea r9, [rdx + 2]
cmp cx, r11w
je 0x18001886d
mov rdx, r9
mov word [rbx], cx
jmp 0x180018894
cmp r9, r8
jae 0x1800188a4
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 0x18001884e
jmp 0x180018959
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 0x18001894e
cmp dword [rsp + 0x80], esi
je 0x18001894e
lea r8, [0x180038160]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x180018926
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x1800188f6
mov word [rbx], r13w
jmp 0x180018956
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 0x180018903
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x180018956
cmp word [rsp + 0x70], r13w
jne 0x180018933
cmp rbx, r14
je 0x1800188f0
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.180019440
cmp word [rsp + 0x70], r13w
je 0x180018959
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, [0x180038160]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x180018953
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x180018959
Function at 0x18001d0c0
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 0x18001d0f0
xor eax, eax
jmp 0x18001d1b3
mov rbp, rbx
cmp word [rax], si
je 0x18001d115
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x18001d0fc
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x18001d0f8
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.18001b7a8
movsxd r14, eax
test eax, eax
jne 0x18001d153
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x18001d0e9
mov rcx, r14
call fcn.180019804
mov rdi, rax
test rax, rax
jne 0x18001d16c
xor ecx, ecx
call fcn.180016f1c
jmp 0x18001d148
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.18001b7a8
test eax, eax
jne 0x18001d19d
mov rcx, rdi
call fcn.180016f1c
jmp 0x18001d1a7
xor ecx, ecx
call fcn.180016f1c
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 0x18001d1d0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x18001d257
mov rsi, rbx
cmp word [rax], bp
je 0x18001d216
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x18001d200
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x18001d1fc
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.180019804
mov rdi, rax
test rax, rax
je 0x18001d244
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.180023c50
mov rbp, rdi
xor ecx, ecx
call fcn.180016f1c
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x18001fefc
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.180014078
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 0x18001ff9d
cmp ebx, dword [rsp + 0x30]
je 0x18001ff96
test esi, esi
je 0x18001ff96
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x18001ff71
sub r8w, 0x61
cmp r8w, 0x19
ja 0x18001ff7e
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x18001ff5b
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x18001ff82
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x18001ff9f
mov eax, 1
jmp 0x18001ff9f
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x180022d84
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.180019440
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.180019440
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x180022ed4
cmp rax, 0xffffffffffffffff
je 0x180022ed4
xor edi, edi
test rbp, rbp
jle 0x180022e7f
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.180017508
mov rbx, rax
test rax, rax
jne 0x180022e0c
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x180022e75
mov edx, 0x8000
mov ecx, r14d
call fcn.180022c08
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.180016c14
cmp eax, 0xffffffff
je 0x180022e55
cdqe
sub rbp, rax
test rbp, rbp
jg 0x180022e1c
mov edx, r15d
mov ecx, r14d
call fcn.180022c08
jmp 0x180022e75
cmp byte [rsi + 0x38], dil
je 0x180022e6c
cmp dword [rsi + 0x34], 5
jne 0x180022e6c
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x180022e75
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.180016f1c
jmp 0x180022ee8
jns 0x180022ee8
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.180019440
cmp rax, 0xffffffffffffffff
jne 0x180022ea0
cmp byte [rsi + 0x30], dil
je 0x180022ee8
mov edi, dword [rsi + 0x2c]
jmp 0x180022ee8
mov ecx, r14d
call fcn.18002075c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x180022ee8
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 0x180022ee8
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x180022ee1
mov eax, dword [rsi + 0x2c]
jmp 0x180022ee6
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.180019440
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 0x1800239b0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1800239d8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1800239d8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x1400980e0
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x48
mov dword [rsp + 0x2c], ecx
mov qword [rsp + 0x30], rdx
mov dword [rsp + 0x3c], r8d
mov qword [rsp + 0x40], r9
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
nop
add rsp, 0x48
ret

Function at 0x1400a3910
Capabilities:
Get disk information

Disassembly:
sub rsp, 0x38
mov qword [rsp + 0x30], rcx
call fcn.1400900e0
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], rdx
lea rcx, [rsp + 0x20]
call fcn.1400b71b0
mov rcx, rax
call qword [sym.imp.kernel32.dll_GetDriveTypeW]
nop
add rsp, 0x38
ret

Function at 0x1400a3bb0
Capabilities:
Get disk size

Disassembly:
sub rsp, 0xf8
mov r10, r9
mov qword [rsp + 0x30], r10
mov r11, r8
mov qword [rsp + 0x28], r11
mov qword [rsp + 0x20], rdx
mov rax, rcx
mov rcx, qword [rsp + 0x20]
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x138]
mov qword [rsp + 0x50], rax
mov rdx, qword [rsp + 0x130]
mov qword [rsp + 0x48], rdx
mov r8, qword [rsp + 0x128]
mov qword [rsp + 0x40], r8
mov r9, qword [rsp + 0x120]
mov qword [rsp + 0x38], r9
mov qword [rsp + 0x90], rcx
mov qword [rsp + 0x98], r11
mov qword [rsp + 0xa0], r10
mov qword [rsp + 0xa8], r9
mov qword [rsp + 0xb0], r8
mov qword [rsp + 0xb8], rdx
mov qword [rsp + 0xc0], rax
call fcn.1400900e0
mov qword [rsp + 0x80], rax
mov qword [rsp + 0x88], rdx
lea rcx, [rsp + 0x80]
call fcn.1400b71b0
mov rcx, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x30]
mov qword [rsp + 0x58], rax
mov qword [rsp + 0xe8], 0
mov qword [rsp + 0xf0], 0
xor eax, eax
mov r8d, eax
call fcn.1400e8f80
mov rcx, qword [rsp + 0x38]
mov rdx, qword [rsp + 0x40]
mov qword [rsp + 0x60], rax
mov qword [rsp + 0xd8], 0
mov qword [rsp + 0xe0], 0
xor eax, eax
mov r8d, eax
call fcn.1400e8f80
mov rcx, qword [rsp + 0x48]
mov rdx, qword [rsp + 0x50]
mov qword [rsp + 0x68], rax
mov qword [rsp + 0xc8], 0
mov qword [rsp + 0xd0], 0
xor eax, eax
mov r8d, eax
call fcn.1400e8f80
mov rcx, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
mov r8, qword [rsp + 0x68]
mov r9, rax
call qword [sym.imp.kernel32.dll_GetDiskFreeSpaceExW]
mov rcx, qword [rsp + 0x70]
mov edx, eax
call fcn.1400cf040
mov rax, qword [rsp + 0x78]
add rsp, 0xf8
ret