joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18005f29c
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x30
movsxd rbp, ecx
mov r9, r8
mov rax, rbp
lea rcx, [0x1800983b0]
and eax, 0x3f
mov r10, rbp
sar r10, 6
xor edi, edi
mov rsi, rdx
mov r14, rbp
lea r8, [rax + rax*8]
mov rax, qword [rcx + r10*8]
mov ecx, 4
mov qword [rsp + 0x78], rcx
mov r11, qword [rax + r8*8 + 0x28]
lea r12d, [rcx + 6]
test r9, r9
je 0x18005f2fa
cmp word [rdx], r12w
jne 0x18005f2fa
or byte [rax + r8*8 + 0x38], cl
jmp 0x18005f300
and byte [rax + r8*8 + 0x38], 0xfb
lea rdx, [rdx + r9*2]
mov rcx, rsi
mov rbx, rsi
cmp rsi, rdx
jae 0x18005f45b
mov r9d, 0x1a
lea r13d, [r9 - 0xd]
movzx eax, word [rcx]
cmp ax, r9w
je 0x18005f436
lea r9, [rcx + 2]
cmp ax, r13w
je 0x18005f339
mov rcx, r9
jmp 0x18005f35c
cmp r9, rdx
jae 0x18005f373
cmp word [r9], r12w
mov eax, 2
cmove rax, qword [rsp + 0x78]
add rcx, rax
mov eax, r12d
cmp word [r9], r12w
cmovne ax, r13w
mov word [rbx], ax
mov r9d, 0x1a
add rbx, 2
cmp rcx, rdx
jb 0x18005f31d
jmp 0x18005f45b
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rdi
mov r8d, 2
lea rdx, [rsp + 0x70]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x18005f430
cmp dword [rsp + 0x80], edi
je 0x18005f430
mov rdx, r14
lea r11, [0x1800983b0]
sar rdx, 6
and r14d, 0x3f
mov rax, qword [r11 + rdx*8]
lea r8, [r14 + r14*8]
test byte [rax + r8*8 + 0x38], 0x48
je 0x18005f409
movzx eax, word [rsp + 0x70]
cmp ax, r12w
jne 0x18005f3dc
mov word [rbx], r12w
jmp 0x18005f457
mov word [rbx], r13w
mov word [rsp + 0x78], ax
mov rax, qword [r11 + rdx*8]
lea rcx, [rax + r8*8]
mov al, byte [rsp + rdi + 0x78]
mov byte [rcx + rdi + 0x3a], al
inc rdi
cmp rdi, 2
jl 0x18005f3e5
mov rax, qword [r11 + rdx*8]
mov byte [rax + r8*8 + 0x3c], r12b
jmp 0x18005f457
cmp word [rsp + 0x70], r12w
jne 0x18005f416
cmp rbx, rsi
je 0x18005f3d6
mov rdx, 0xfffffffffffffffe
mov ecx, ebp
lea r8d, [rdx + 3]
call fcn.18005ff28
cmp word [rsp + 0x70], r12w
je 0x18005f45b
mov word [rbx], r13w
jmp 0x18005f457
lea r11, [0x1800983b0]
mov rcx, qword [r11 + r10*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x18005f453
or al, 2
mov byte [rcx + r8*8 + 0x38], al
jmp 0x18005f45b
mov word [rbx], r9w
add rbx, 2
sub rbx, rsi
sar rbx, 1
lea eax, [rbx + rbx]
add rsp, 0x30
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x180062674
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x180062694
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.18004eaac
or eax, 0xffffffff
jmp 0x180062696
xor eax, eax
add rsp, 0x28
ret
Function at 0x180066af8
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 0x180066b28
xor eax, eax
jmp 0x180066beb
mov rbp, rbx
cmp word [rax], si
je 0x180066b4d
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x180066b34
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x180066b30
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.1800640e0
movsxd r14, eax
test eax, eax
jne 0x180066b8b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x180066b21
mov rcx, r14
call fcn.180060184
mov rdi, rax
test rax, rax
jne 0x180066ba4
xor ecx, ecx
call fcn.18005c318
jmp 0x180066b80
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.1800640e0
test eax, eax
jne 0x180066bd5
mov rcx, rdi
call fcn.18005c318
jmp 0x180066bdf
xor ecx, ecx
call fcn.18005c318
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 0x18006cbac
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.18005012c
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x18006cc36
cmp byte [rbp - 0x21], r15b
je 0x18006cc31
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x18006cc6c
call fcn.18005d13c
test eax, eax
jne 0x18006cc58
cmp byte [rbp - 0x21], r15b
je 0x18006cc50
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x18006cc6c
cmp byte [rbp - 0x21], r15b
je 0x18006cc69
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.18004ffb0
test eax, eax
jne 0x18006cd0c
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.18005012c
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x18006ccab
cmp byte [rbp - 0x21], r15b
je 0x18006cce0
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x18006cce0
call fcn.18005d13c
test eax, eax
jne 0x18006cccc
cmp byte [rbp - 0x21], r15b
je 0x18006ccc5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x18006cce0
cmp byte [rbp - 0x21], r15b
je 0x18006ccdd
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.18004ffb0
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x18006cd0c
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x18006cd0f
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x18006cd1d
mov rcx, rdi
call fcn.18005c318
cmp byte [rbp + 0x3f], r15b
je 0x18006cd2c
mov rcx, qword [rbp + 0x27]
call fcn.18005c318
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x18006d838
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.18005ff28
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.18005ff28
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x18006d988
cmp rax, 0xffffffffffffffff
je 0x18006d988
xor edi, edi
test rbp, rbp
jle 0x18006d933
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.18005c2a0
mov rbx, rax
test rax, rax
jne 0x18006d8c0
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x18006d929
mov edx, 0x8000
mov ecx, r14d
call fcn.18006a4f4
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.18005ebe8
cmp eax, 0xffffffff
je 0x18006d909
cdqe
sub rbp, rax
test rbp, rbp
jg 0x18006d8d0
mov edx, r15d
mov ecx, r14d
call fcn.18006a4f4
jmp 0x18006d929
cmp byte [rsi + 0x38], dil
je 0x18006d920
cmp dword [rsi + 0x34], 5
jne 0x18006d920
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x18006d929
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.18005c318
jmp 0x18006d99c
jns 0x18006d99c
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.18005ff28
cmp rax, 0xffffffffffffffff
jne 0x18006d954
cmp byte [rsi + 0x30], dil
je 0x18006d99c
mov edi, dword [rsi + 0x2c]
jmp 0x18006d99c
mov ecx, r14d
call fcn.18006a1ec
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x18006d99c
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 0x18006d99c
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x18006d995
mov eax, dword [rsi + 0x2c]
jmp 0x18006d99a
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.18005ff28
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 0x140003280
Capabilities:
Delete file

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, rdx
mov rdi, rcx
cmp byte [rcx + 0x17], 0
js 0x1400032dc
mov rcx, rdi
je 0x1400032ac
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp byte [rdi + 0x17], 0
js 0x1400032f9
mov word [rdi], 0
mov byte [rdi + 0x17], 0
cmp rdi, rsi
je 0x1400032cf
cmp byte [rdi + 0x17], 0
movzx r8d, byte [rsi + 0x17]
js 0x140003319
test r8b, r8b
js 0x1400032e8
mov rax, qword [rsi + 0x10]
mov qword [rdi + 0x10], rax
movups xmm0, xmmword [rsi]
movups xmmword [rdi], xmm0
cmp byte [rsi + 0x17], 0
js 0x14000330b
add rsp, 0x28
pop rdi
pop rsi
ret
cmp qword [rdi + 8], 0
je 0x1400032ac
mov rcx, qword [rdi]
jmp 0x140003297
mov rdx, qword [rsi]
mov r8, qword [rsi + 8]
mov rcx, rdi
call fcn.140009380
jmp 0x1400032cf
mov rax, qword [rdi]
mov word [rax], 0
mov qword [rdi + 8], 0
jmp 0x1400032ac
mov rcx, qword [rsi]
add rsp, 0x28
pop rdi
pop rsi
jmp fcn.14000b880
mov rdx, rsi
test r8b, r8b
jns 0x140003328
mov r8, qword [rsi + 8]
mov rdx, qword [rsi]
mov rcx, rdi
call fcn.1400092a0
jmp 0x1400032cf

Function at 0x14000bea0
Capabilities:
Parse pe header

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

Function at 0x14000c888
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
movsxd r8, dword [0x14000003c]
lea rsi, [0x140000000]
add r8, rsi
mov rbx, rdx
mov rdi, rcx
cmp dword [r8 + 0x84], 0xd
jbe 0x14000c900
mov r10d, dword [r8 + 0xf0]
xor r9d, r9d
test r10d, r10d
je 0x14000c900
movzx ecx, word [r8 + 0x14]
movzx r11d, word [r8 + 6]
add rcx, 0x18
mov r10d, dword [r10 + rsi + 0xc]
add rcx, r8
test r11d, r11d
je 0x14000c900
mov eax, dword [rcx + 0xc]
cmp r10d, eax
jb 0x14000c8f4
mov edx, dword [rcx + 8]
add eax, edx
cmp r10d, eax
jb 0x14000c912
inc r9d
add rcx, 0x28
cmp r9d, r11d
jb 0x14000c8e2
xor eax, eax
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
ret
mov dword [rdi], edx
mov eax, dword [rcx + 0x24]
mov dword [rbx], eax
mov eax, dword [rcx + 0xc]
add rax, rsi
jmp 0x14000c902

Function at 0x14001a50c
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14001a654
Function at 0x14001a654
Capabilities:
Parse pe header

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

Function at 0x140022a70
Capabilities:
Parse pe header

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

Function at 0x14002d014
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.140026734
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 0x14002d0b5
cmp ebx, dword [rsp + 0x30]
je 0x14002d0ae
test esi, esi
je 0x14002d0ae
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x14002d089
sub r8w, 0x61
cmp r8w, 0x19
ja 0x14002d096
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x14002d073
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x14002d09a
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x14002d0b7
mov eax, 1
jmp 0x14002d0b7
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14002dabc
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 0x14002db43
mov rsi, rbx
cmp word [rax], bp
je 0x14002db02
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14002daec
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14002dae8
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140029320
mov rdi, rax
test rax, rax
je 0x14002db30
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140038260
mov rbp, rdi
xor ecx, ecx
call fcn.140025df8
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 0x140030f34
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, [0x14006be40]
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 0x140030f8b
cmp word [rdx], r13w
jne 0x140030f8b
or byte [rax + rdi*8 + 0x38], cl
jmp 0x140030f90
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x1400310b5
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x1400310d6
lea r9, [rdx + 2]
cmp cx, r11w
je 0x140030fc9
mov rdx, r9
mov word [rbx], cx
jmp 0x140030ff0
cmp r9, r8
jae 0x140031000
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 0x140030faa
jmp 0x1400310b5
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 0x1400310aa
cmp dword [rsp + 0x80], esi
je 0x1400310aa
lea r8, [0x14006be40]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x140031082
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x140031052
mov word [rbx], r13w
jmp 0x1400310b2
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 0x14003105f
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x1400310b2
cmp word [rsp + 0x70], r13w
jne 0x14003108f
cmp rbx, r14
je 0x14003104c
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.140031190
cmp word [rsp + 0x70], r13w
je 0x1400310b5
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, [0x14006be40]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x1400310af
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x1400310b5

Function at 0x140031894
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1400318aa
mov al, 1
jmp 0x14003190a
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1400318bb
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140031908
mov ecx, dword [rcx + 0x18]
nop
call fcn.14001ce88
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140031908
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140031908
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140031908
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14003190a
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x7ff7b0803590
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r14
sub rsp, 0x30
xor edi, edi
mov qword [rsp + 0x58], r15
mov r15, qword [r8 + 8]
mov r14, r8
sub r15, qword [r8]
mov rsi, rdx
mov qword [rdx], rdi
mov r12, rcx
mov qword [rdx + 8], rdi
mov qword [rdx + 0x10], rdi
je 0x7ff7b08035ef
mov rdx, r15
mov qword [rsp + 0x50], rbx
mov rcx, rsi
call fcn.7ff7b0810b90
mov rbx, qword [rsi]
mov r8, r15
mov rcx, rbx
xor edx, edx
call sub.VCRUNTIME140.dll_memset
lea rax, [r15 + rbx]
mov rbx, qword [rsp + 0x50]
mov qword [rsi + 8], rax
mov rax, qword [r14 + 8]
mov r8d, edi
mov r10, rdi
mov r15, qword [rsp + 0x58]
cmp rax, qword [r14]
je 0x7ff7b0803697
nop word [rax + rax]
lea eax, [rdi + 1]
and eax, 0x800000ff
jge 0x7ff7b0803623
dec eax
or eax, 0xffffff00
inc eax
movsxd rdi, eax
mov r9d, dword [r12 + rdi*4]
lea rdx, [r12 + rdi*4]
add r8d, r9d
and r8d, 0x800000ff
jge 0x7ff7b0803647
dec r8d
or r8d, 0xffffff00
inc r8d
movsxd rax, r8d
lea rcx, [r12 + rax*4]
mov eax, dword [r12 + rax*4]
mov dword [rdx], eax
mov dword [rcx], r9d
mov ecx, dword [rdx]
add ecx, r9d
and ecx, 0x800000ff
jge 0x7ff7b080366e
dec ecx
or ecx, 0xffffff00
inc ecx
mov rax, qword [r14]
movsxd rcx, ecx
movzx edx, byte [r12 + rcx*4]
xor dl, byte [rax + r10]
mov rax, qword [rsi]
mov byte [r10 + rax], dl
inc r10
mov rax, qword [r14 + 8]
sub rax, qword [r14]
cmp r10, rax
jb 0x7ff7b0803610
mov rax, rsi
mov rsi, qword [rsp + 0x60]
add rsp, 0x30
pop r14
pop r12
pop rdi
ret

Function at 0x7ff7b08036b0
Capabilities:
Enumerate threads

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
mov rbx, rcx
xorps xmm0, xmm0
xor esi, esi
mov ecx, 4
xor edx, edx
mov qword [rsp + 0x34], rsi
movdqu xmmword [rsp + 0x24], xmm0
call qword [sym.imp.kernel32.dll_CreateToolhelp32Snapshot]
lea rdx, [rsp + 0x58]
mov dword [rsp + 0x20], 0x1c
mov rcx, rbx
mov rdi, rax
call qword [sym.imp.user32.dll_GetWindowThreadProcessId]
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.kernel32.dll_Thread32First]
test eax, eax
je 0x7ff7b0803732
nop word [rax + rax]
mov eax, dword [rsp + 0x58]
cmp dword [rsp + 0x2c], eax
je 0x7ff7b080372e
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.kernel32.dll_Thread32Next]
test eax, eax
jne 0x7ff7b0803710
jmp 0x7ff7b0803732
mov esi, dword [rsp + 0x28]
mov rcx, rdi
call qword [sym.imp.kernel32.dll_CloseHandle]
mov rbx, qword [rsp + 0x50]
mov eax, esi
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x7ff7b0803750
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
cmp qword [rcx + 0x18], 0xf
mov ebx, r8d
mov rsi, rdx
jbe 0x7ff7b080376f
mov rcx, qword [rcx]
mov qword [rsp + 0x30], 0
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
xor r8d, r8d
mov edx, 0x40000000
mov dword [rsp + 0x20], 2
call qword [sym.imp.kernel32.dll_CreateFileA]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x7ff7b08037eb
mov rcx, qword [sym.imp.msvcp140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
lea rdx, [0x7ff7b0837060]
call fcn.7ff7b080e3f0
mov rbx, rax
call qword [sym.imp.kernel32.dll_GetLastError]
mov edx, eax
mov rcx, rbx
call qword [sym.imp.msvcp140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_int____ptr64]
mov rcx, rax
lea rdx, [0x7ff7b080e5f0]
call qword [0x7ff7b08363b0]
xor al, al
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
lea r9, [rsp + 0x50]
mov qword [rsp + 0x20], 0
mov r8d, ebx
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.kernel32.dll_WriteFile]
test eax, eax
jne 0x7ff7b080385e
mov rcx, qword [sym.imp.msvcp140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
lea rdx, [0x7ff7b0837080]
call fcn.7ff7b080e3f0
mov rbx, rax
call qword [sym.imp.kernel32.dll_GetLastError]
mov edx, eax
mov rcx, rbx
call qword [sym.imp.msvcp140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_int____ptr64]
mov rcx, rax
lea rdx, [0x7ff7b080e5f0]
call qword [0x7ff7b08363b0]
mov rcx, rdi
call qword [sym.imp.kernel32.dll_CloseHandle]
xor al, al
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
cmp dword [rsp + 0x50], ebx
je 0x7ff7b080389a
mov rcx, qword [sym.imp.msvcp140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
lea rdx, [0x7ff7b08370b0]
call fcn.7ff7b080e3f0
mov edx, ebx
mov rcx, rax
call qword [sym.imp.msvcp140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_int____ptr64]
mov rcx, rax
lea rdx, [0x7ff7b08370a0]
call fcn.7ff7b080e3f0
mov edx, dword [rsp + 0x50]
mov rcx, rax
jmp 0x7ff7b080382d
mov rcx, rdi
call qword [sym.imp.kernel32.dll_CloseHandle]
mov rbx, qword [rsp + 0x58]
mov al, 1
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret