joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18020455c
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 0x18020458c
xor eax, eax
jmp 0x18020464f
mov rbp, rbx
cmp word [rax], si
je 0x1802045b1
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x180204598
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x180204594
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.180200e3c
movsxd r14, eax
test eax, eax
jne 0x1802045ef
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x180204585
mov rcx, r14
call fcn.1801fc5cc
mov rdi, rax
test rax, rax
jne 0x180204608
xor ecx, ecx
call fcn.1801fa0d8
jmp 0x1802045e4
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.180200e3c
test eax, eax
jne 0x180204639
mov rcx, rdi
call fcn.1801fa0d8
jmp 0x180204643
xor ecx, ecx
call fcn.1801fa0d8
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 0x18020466c
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 0x1802046f3
mov rsi, rbx
cmp word [rax], bp
je 0x1802046b2
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x18020469c
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x180204698
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1801fc5cc
mov rdi, rax
test rax, rax
je 0x1802046e0
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.180210c20
mov rbp, rdi
xor ecx, ecx
call fcn.1801fa0d8
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 0x180204d64
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x180204d84
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1801ec630
or eax, 0xffffffff
jmp 0x180204d86
xor eax, eax
add rsp, 0x28
ret

Function at 0x18020775c
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.1801fa4d0
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 0x1802077fd
cmp ebx, dword [rsp + 0x30]
je 0x1802077f6
test esi, esi
je 0x1802077f6
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x1802077d1
sub r8w, 0x61
cmp r8w, 0x19
ja 0x1802077de
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x1802077bb
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x1802077e2
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x1802077ff
mov eax, 1
jmp 0x1802077ff
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x180209840
Capabilities:
Get disk information

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x1802edb40]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp ecx, 0x1a
jbe 0x18020988a
call fcn.1801ec69c
mov dword [rax], reloc.WS2_32.dll_ntohs
call fcn.1801ec6bc
mov dword [rax], reloc.WS2_32.dll_listen
call fcn.1801dde58
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1801cf080
add rsp, 0x30
pop rbx
ret
xor ebx, ebx
test ecx, ecx
jne 0x180209895
lea eax, [rbx + 1]
jmp 0x180209877
add cx, 0x40
mov dword [rsp + 0x22], 0x5c003a
mov word [rsp + 0x20], cx
lea rcx, [rsp + 0x20]
mov word [rsp + 0x26], bx
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
test eax, eax
je 0x180209875
cmp eax, 1
setne bl
mov eax, ebx
jmp 0x180209877

Function at 0x18020b290
Capabilities:
Parse pe header

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

Function at 0x18032d393
Capabilities:
Encode data using xor

Disassembly:
push qword [rsp + 0x10]
popfq
lea rsp, [rsp + 0x30]
call fcn.1804df348
xchg ebx, eax
cmp eax, dword [rdx]
idiv byte [rdi - 0x77]
xor al, byte [rax - 0x3d6c00c]
mov dword [rdx], esi
xor ah, 0x3f
sub esp, edi
jg 0x18032d409
int1
sar dword [rdi + 0x67], cl
and dword [rdx - 0x36], edx
jg 0x18032d3a8
sbb al, byte fs:[rax + 0x2f913a6e]
adc byte [riz*8 - 0x5b801f5b], 0xbe
add esi, edx
jg 0x18032d3ff
xchg eax, eax
sbb byte cs:[rax - 0x7fd8a282], 0x8e
notrack jmp 0x18032d407
and byte [rsi], 0xe8
sbb eax, dword [rax - 0x71a4df9b]
pop rbx
invalid
Function at 0x1803b4f83
Capabilities:
Encode data using xor

Disassembly:
mov r10, qword [rsp + 0x40]
sub byte [rsp + 0x20], 0xd2
or byte [rsp + 0x20], 0x68
push qword [rsp + 0x48]
popfq
lea rsp, [rsp + 0x50]
call fcn.18043f28b
pop rsi
test al, 0x92
mov ecx, 0xa1ee3238
mov edx, 0xb5ef7361
invalid

Function at 0x1803d9219
Capabilities:
Encode data using xor

Disassembly:
cmp word [rsp + 0x18], 0x3a00
call fcn.180317e1e
invalid

Function at 0x18040a724
Capabilities:
Packed with generic packer

Disassembly:
jbe 0x18037d927
jle 0x180312eef
Function at 0x140f40fec
Capabilities:
Encode data using xor

Disassembly:
jmp 0x140f40ff6
push rax
push rcx
push rdx
push rbx
push rbp
push rsi
push rdi
push r8
push r9
push r10
push r11
push r12
push r13
push r14
push r15
pushfq
sub rsp, 8
stmxcsr dword [rsp]
call 0x140f4101f
pop rbp
sub rbp, 0x33
sub rbp, 0xf40fec
sub rsp, 0x20
jmp 0x140f4103e
mov rax, 0xf40fec
add rax, rbp
add rax, 0x84
mov rcx, 0x60b
mov rdx, 0xffffffffabc7b11e
xor byte [rax], dl
inc rax
dec rcx
jne 0x140f4105d
jmp 0x140f41074
push rsi
xchg edi, eax
not dword [rbp + 0x1e1e2297]
invalid
Function at 0x140002864
Capabilities:
Parse pe header

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

Function at 0x141ace058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.141ace1df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x141ace089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x141ace06f
add dl, dl
jne 0x141ace096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x141ace0f6
xor eax, eax
add dl, dl
jne 0x141ace0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x141ace1ad
add dl, dl
jne 0x141ace0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141ace0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141ace0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141ace0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x141ace0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x141ace07e
mov eax, 1
add dl, dl
jne 0x141ace106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141ace113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141ace0fb
sub eax, ebx
mov ebx, 1
jne 0x141ace14c
mov ecx, 1
add dl, dl
jne 0x141ace12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x141ace13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141ace123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x141ace07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x141ace168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x141ace175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141ace15d
cmp eax, 0x7d00
jae 0x141ace19b
cmp eax, 0x500
jb 0x141ace196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x141ace07e
cmp eax, 0x7f
ja 0x141ace19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x141ace07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x141ace1d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x141ace07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x1400257c4
Capabilities:
Parse pe header

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

Function at 0x14002c290
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
sub r8, rdx
mov rcx, rdx
sar r8, 1
mov rdx, r8
jmp 0x1400397a8
lea r9, [rdx + rdx]
movabs r8, 0xcbf29ce484222325
xor edx, edx
test r9, r9
je 0x1400397da
movzx eax, byte [rcx + rdx]
movabs r10, 0x100000001b3
xor r8, rax
inc rdx
imul r8, r10
cmp rdx, r9
jb 0x1400397bd
mov rax, r8
ret

Function at 0x1400461a8
Capabilities:
Get geographical location

Disassembly:
sub rsp, 0x28
call fcn.14004b1a8
mov rcx, qword [rax + 0x28]
test rcx, rcx
je 0x1400461fa
and dword [rsp + 0x30], 0
lea r8, [rsp + 0x30]
mov r9d, 2
lea edx, [r9 + 0x20]
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
movzx ecx, word [rsp + 0x30]
sub ecx, 0x30
je 0x1400461fa
sub ecx, 1
je 0x1400461f3
cmp ecx, 1
je 0x1400461ec
xor eax, eax
jmp 0x1400461ff
mov eax, 3
jmp 0x1400461ff
mov eax, 1
jmp 0x1400461ff
mov eax, 2
add rsp, 0x28
ret

Function at 0x140052b04
Capabilities:
Parse pe header

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

Function at 0x140052c4c
Capabilities:
Parse pe header

Disassembly:
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x140052c4c
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 0x140052cbb
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140052cbb
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140052cbb
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140052cbb
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140052cbb
cmp dword [rcx + 0x84], 0xe
jbe 0x140052cbb
cmp dword [rcx + 0xf8], 0
je 0x140052cbb
mov ecx, ebx
call fcn.140052b84
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.140052de0
nop
cmp dword [rbp + 0x20], 0
je 0x140052d09
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140052c18
int3

Function at 0x140058fb0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140058fd8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140058fd8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140064250
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.14005c70c
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 0x1400642f1
cmp ebx, dword [rsp + 0x30]
je 0x1400642ea
test esi, esi
je 0x1400642ea
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x1400642c5
sub r8w, 0x61
cmp r8w, 0x19
ja 0x1400642d2
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x1400642af
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x1400642d6
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x1400642f3
mov eax, 1
jmp 0x1400642f3
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140064e58
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 0x140064e88
xor eax, eax
jmp 0x140064f4b
mov rbp, rbx
cmp word [rax], si
je 0x140064ead
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140064e94
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140064e90
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.14005c5cc
movsxd r14, eax
test eax, eax
jne 0x140064eeb
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140064e81
mov rcx, r14
call fcn.14005c4dc
mov rdi, rax
test rax, rax
jne 0x140064f04
xor ecx, ecx
call fcn.14005c4a0
jmp 0x140064ee0
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.14005c5cc
test eax, eax
jne 0x140064f35
mov rcx, rdi
call fcn.14005c4a0
jmp 0x140064f3f
xor ecx, ecx
call fcn.14005c4a0
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 0x140064f68
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 0x140064fef
mov rsi, rbx
cmp word [rax], bp
je 0x140064fae
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140064f98
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140064f94
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14005c4dc
mov rdi, rax
test rax, rax
je 0x140064fdc
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14006ff00
mov rbp, rdi
xor ecx, ecx
call fcn.14005c4a0
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 0x1400679fc
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140067a12
mov al, 1
jmp 0x140067a72
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x140067a23
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140067a70
mov ecx, dword [rcx + 0x18]
nop
call fcn.140065460
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140067a70
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140067a70
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140067a70
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140067a72
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x14006e240
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, [0x14008d360]
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 0x14006e297
cmp word [rdx], r13w
jne 0x14006e297
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14006e29c
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x14006e3c1
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14006e3e2
lea r9, [rdx + 2]
cmp cx, r11w
je 0x14006e2d5
mov rdx, r9
mov word [rbx], cx
jmp 0x14006e2fc
cmp r9, r8
jae 0x14006e30c
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 0x14006e2b6
jmp 0x14006e3c1
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 0x14006e3b6
cmp dword [rsp + 0x80], esi
je 0x14006e3b6
lea r8, [0x14008d360]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14006e38e
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14006e35e
mov word [rbx], r13w
jmp 0x14006e3be
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 0x14006e36b
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14006e3be
cmp word [rsp + 0x70], r13w
jne 0x14006e39b
cmp rbx, r14
je 0x14006e358
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.14006d7fc
cmp word [rsp + 0x70], r13w
je 0x14006e3c1
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, [0x14008d360]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14006e3bb
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x14006e3c1
Function at 0x14006f2fc
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.14006d7fc
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14006d7fc
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x14006f44c
cmp rax, 0xffffffffffffffff
je 0x14006f44c
xor edi, edi
test rbp, rbp
jle 0x14006f3f7
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14005e404
mov rbx, rax
test rax, rax
jne 0x14006f384
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x14006f3ed
mov edx, 0x8000
mov ecx, r14d
call fcn.140055d64
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.140066d00
cmp eax, 0xffffffff
je 0x14006f3cd
cdqe
sub rbp, rax
test rbp, rbp
jg 0x14006f394
mov edx, r15d
mov ecx, r14d
call fcn.140055d64
jmp 0x14006f3ed
cmp byte [rsi + 0x38], dil
je 0x14006f3e4
cmp dword [rsi + 0x34], 5
jne 0x14006f3e4
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x14006f3ed
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14005c4a0
jmp 0x14006f460
jns 0x14006f460
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14006d7fc
cmp rax, 0xffffffffffffffff
jne 0x14006f418
cmp byte [rsi + 0x30], dil
je 0x14006f460
mov edi, dword [rsi + 0x2c]
jmp 0x14006f460
mov ecx, r14d
call fcn.140065460
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x14006f460
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 0x14006f460
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x14006f459
mov eax, dword [rsi + 0x2c]
jmp 0x14006f45e
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14006d7fc
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 0x404fa0
Capabilities:
Reference wmi statements

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x40502a
push rbp
mov rbp, rsp
sub rsp, 0x28
test rax, rax
je 0x404fec
mov rdx, qword [rax + 0x18]
nop dword [rax + rax]
test rdx, rdx
je 0x404ff7
movzx esi, byte [rax + 0x17]
test sil, 0x20
je 0x404fdb
cmp rcx, rbx
sete al
add rsp, 0x28
pop rbp
ret
mov rsi, qword [rdx]
mov rax, rbx
mov rbx, rcx
call rsi
add rsp, 0x28
pop rbp
ret
mov eax, 1
add rsp, 0x28
pop rbp
ret
call sym.runtime.rtype.string
mov ecx, 0x1c
mov rdi, rax
mov rsi, rbx
xor eax, eax
lea rbx, [0x005178e4]
call sym.runtime.concatstring2
call sym.runtime.convTstring
mov rbx, rax
lea rax, [0x004f68e0]
call sym.runtime.gopanic
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rcx
call sym.runtime.morestack_noctxt.abi0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
jmp sym.runtime.efaceeq

Function at 0x405060
Capabilities:
Reference wmi statements

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x4050ea
push rbp
mov rbp, rsp
sub rsp, 0x28
test rax, rax
je 0x4050ac
mov rax, qword [rax + 8]
mov rdx, qword [rax + 0x18]
nop
test rdx, rdx
je 0x4050b7
movzx esi, byte [rax + 0x17]
test sil, 0x20
je 0x40509b
cmp rcx, rbx
sete al
add rsp, 0x28
pop rbp
ret
mov rsi, qword [rdx]
mov rax, rbx
mov rbx, rcx
call rsi
add rsp, 0x28
pop rbp
ret
mov eax, 1
add rsp, 0x28
pop rbp
ret
call sym.runtime.rtype.string
mov ecx, 0x1c
mov rdi, rax
mov rsi, rbx
xor eax, eax
lea rbx, [0x005178e4]
call sym.runtime.concatstring2
call sym.runtime.convTstring
mov rbx, rax
lea rax, [0x004f68e0]
call sym.runtime.gopanic
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rcx
call sym.runtime.morestack_noctxt.abi0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
jmp sym.runtime.ifaceeq