joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180049680
Capabilities:
Check for software breakpoints

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x50
mov rax, qword [0x180105080]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rsi, rcx
lea rdx, [rcx + 0x38]
lea rcx, [rsp + 0x28]
call fcn.180002d10
nop
xor edi, edi
xor r14d, r14d
mov rbp, qword [rsi + 0x20]
mov rbx, qword [rsi + 0x28]
cmp rbp, rbx
je 0x180049724
sub rbx, rbp
cmp rbx, 0x1000
jb 0x1800496fe
lea rcx, [rbx + 0x27]
cmp rcx, rbx
jbe 0x1800498fe
call fcn.18005eb30
test rax, rax
je 0x1800498f8
lea rdi, [rax + 0x27]
and rdi, 0xffffffffffffffe0
mov qword [rdi - 8], rax
jmp 0x18004970e
test rbx, rbx
je 0x18004970e
mov rcx, rbx
call fcn.18005eb30
mov rdi, rax
lea r14, [rdi + rbx]
mov r8, rbx
mov rdx, rbp
mov rcx, rdi
call fcn.18008c550
mov rbx, qword [rsi + 0x28]
sub rbx, qword [rsi + 0x20]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x28]
cmp rbx, 1
jne 0x18004973d
cmp byte [rdi], 0xcc
jmp 0x18004974c
cmp rbx, 2
jb 0x180049752
cmp byte [rdi], 0xf3
jne 0x180049752
cmp byte [rdi + 1], 0xc3
je 0x1800498f1
lea rax, [rsp + 0x28]
cmp rbp, 0x10
cmovae rax, rsi
mov rcx, qword [rsp + 0x38]
cmp rcx, 3
jne 0x18004978c
cmp byte [rax], 0x72
jne 0x18004977f
cmp byte [rax + 1], 0x65
jne 0x18004977f
cmp byte [rax + 2], 0x74
jne 0x18004977f
xor eax, eax
jmp 0x180049784
sbb eax, eax
or eax, 1
test eax, eax
je 0x1800498f1
lea rax, [rsp + 0x28]
cmp rbp, 0x10
cmovae rax, rsi
cmp rcx, 3
jne 0x1800497c1
cmp byte [rax], 0x6a
jne 0x1800497b4
cmp byte [rax + 1], 0x6d
jne 0x1800497b4
cmp byte [rax + 2], 0x70
jne 0x1800497b4
xor eax, eax
jmp 0x1800497b9
sbb eax, eax
or eax, 1
test eax, eax
je 0x1800498f1
lea rbx, [rsp + 0x28]
cmp rbp, 0x10
cmovae rbx, rsi
cmp rcx, 4
jb 0x180049855
lea r15, [rcx + rbx]
lea r8, [r15 - 3]
sub r8, rbx
mov edx, 0x69
mov rcx, rbx
call fcn.18008c3b0
mov r9, rax
test rax, rax
je 0x180049855
lea r12, str.iret
nop
xor ecx, ecx
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [r9 + rcx]
inc rcx
cmp al, byte [r12 + rcx - 1]
jne 0x180049829
cmp rcx, 4
jne 0x180049810
xor eax, eax
jmp 0x18004982e
sbb eax, eax
or eax, 1
test eax, eax
je 0x1800498e8
inc r9
lea r8, [r15 - 3]
sub r8, r9
mov edx, 0x69
mov rcx, r9
call fcn.18008c3b0
mov r9, rax
test rax, rax
jne 0x180049800
xor bl, bl
test rdi, rdi
je 0x18004988c
sub r14, rdi
cmp r14, 0x1000
jb 0x180049880
add r14, 0x27
mov rcx, qword [rdi - 8]
sub rdi, rcx
lea rax, [rdi - 8]
cmp rax, 0x1f
ja 0x1800498f8
mov rdi, rcx
mov rdx, r14
mov rcx, rdi
call fcn.18005efac
nop
cmp rbp, 0x10
jb 0x1800498bf
lea rdx, [rbp + 1]
mov rax, rsi
cmp rdx, 0x1000
jb 0x1800498b7
add rdx, 0x27
mov rsi, qword [rsi - 8]
sub rax, rsi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180049904
mov rcx, rsi
call fcn.18005efac
movzx eax, bl
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.18005eb10
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
sub r9, rbx
jne 0x180049855
mov bl, 1
jmp 0x180049857
call fcn.180065e0c
int3
call fcn.180002940
nop
call fcn.180065e0c
int3
Function at 0x180049b10
Capabilities:
Hash data using fnv

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
mov qword [rsp + 0x10], rdx
push rdi
sub rsp, 0x50
mov r10, r8
mov rdi, rcx
movzx r9d, dl
movabs rbp, 0xcbf29ce484222325
xor r9, rbp
movabs rsi, 0x100000001b3
imul r9, rsi
mov rax, rdx
shr rax, 8
movzx r8d, al
xor r9, r8
imul r9, rsi
mov rax, rdx
shr rax, 0x10
movzx ecx, al
xor r9, rcx
imul r9, rsi
mov rax, rdx
shr rax, 0x18
movzx ecx, al
xor r9, rcx
imul r9, rsi
mov rax, rdx
shr rax, 0x20
movzx ecx, al
xor r9, rcx
imul r9, rsi
mov rax, rdx
shr rax, 0x28
movzx ecx, al
xor r9, rcx
imul r9, rsi
mov rax, rdx
shr rax, 0x30
movzx ecx, al
xor r9, rcx
imul r9, rsi
mov rax, rdx
shr rax, 0x38
xor r9, rax
imul r9, rsi
mov rcx, qword [rdi + 0x40]
and rcx, r9
shl rcx, 4
add rcx, qword [rdi + 0x28]
mov rax, qword [rcx + 8]
mov r8, qword [rdi + 0x18]
cmp rax, r8
je 0x180049bf9
mov rcx, qword [rcx]
cmp rdx, qword [rax + 0x10]
je 0x180049bfb
cmp rax, rcx
je 0x180049bf9
mov rax, qword [rax + 8]
cmp rdx, qword [rax + 0x10]
jne 0x180049be8
jmp 0x180049bfb
xor eax, eax
test rax, rax
cmove rax, r8
cmp rax, r8
je 0x180049c4a
lea rbx, [rax + 0x18]
mov rcx, qword [rax + 0x20]
cmp rcx, qword [rax + 0x28]
je 0x180049c24
mov rdx, r10
call fcn.180047430
sub qword [rbx + 8], 0xffffffffffffff80
jmp 0x180049c32
mov r8, r10
mov rdx, rcx
mov rcx, rbx
call fcn.180046d90
mov rax, rbx
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], 0
mov r8, r10
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.180046d90
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x68]
lea rdx, [rsp + 0x20]
lea rcx, [rdi + 0x10]
call fcn.180046fd0
mov r8, qword [rsp + 0x68]
movzx edx, r8b
xor rdx, rbp
imul rdx, rsi
movzx eax, byte [rsp + 0x69]
xor rdx, rax
imul rdx, rsi
movzx eax, byte [rsp + 0x6a]
xor rdx, rax
imul rdx, rsi
movzx eax, byte [rsp + 0x6b]
xor rdx, rax
imul rdx, rsi
movzx eax, byte [rsp + 0x6c]
xor rdx, rax
imul rdx, rsi
movzx eax, byte [rsp + 0x6d]
xor rdx, rax
imul rdx, rsi
movzx eax, byte [rsp + 0x6e]
xor rdx, rax
imul rdx, rsi
movzx eax, byte [rsp + 0x6f]
xor rdx, rax
imul rdx, rsi
mov rcx, qword [rdi + 0x40]
and rcx, rdx
shl rcx, 4
add rcx, qword [rdi + 0x28]
mov rax, qword [rcx + 8]
cmp rax, qword [rdi + 0x18]
je 0x180049d90
mov rcx, qword [rcx]
cmp r8, qword [rax + 0x10]
je 0x180049d1f
nop dword [rax]
cmp rax, rcx
je 0x180049d90
mov rax, qword [rax + 8]
cmp r8, qword [rax + 0x10]
jne 0x180049d10
lea rsi, [rax + 0x18]
mov rbx, qword [rsp + 0x30]
test rbx, rbx
je 0x180049d82
mov rdi, qword [rsp + 0x38]
cmp rbx, rdi
je 0x180049d4d
mov rcx, rbx
call fcn.1800478c0
sub rbx, 0xffffffffffffff80
cmp rbx, rdi
jne 0x180049d37
mov rbx, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x40]
sub rdx, rbx
and rdx, 0xffffffffffffff80
mov rax, rbx
cmp rdx, 0x1000
jb 0x180049d7a
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180049d8a
mov rcx, rbx
call fcn.18005efac
mov rax, rsi
jmp 0x180049c35
call fcn.180065e0c
nop
lea rcx, str.invalid_unordered_map_K__T__key
call fcn.18005c7a0
int3
Function at 0x18005db40
Capabilities:
Read file on windows

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, 0x20
mov rbp, r8
mov r14, rdx
mov rdi, rcx
test r8, r8
jg 0x18005db6e
xor eax, eax
jmp 0x18005dc54
cmp qword [rcx + 0x68], 0
je 0x18005db7f
call fcn.18004f850
jmp 0x18005dc54
mov rax, qword [rcx + 0x38]
mov rsi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x18005db96
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x18005db98
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x18005dbca
cmp rax, rbp
mov rbx, rbp
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call fcn.18008c550
mov rax, qword [rdi + 0x50]
add r14, rbx
sub rsi, rbx
sub dword [rax], ebx
mov rcx, qword [rdi + 0x38]
movsxd rax, ebx
add qword [rcx], rax
cmp qword [rdi + 0x80], 0
je 0x18005dc4e
mov r8, qword [rdi + 0x18]
lea rax, [rdi + 0x70]
cmp qword [r8], rax
jne 0x18005dc01
mov rcx, qword [rdi + 0x88]
mov rdx, qword [rdi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rdi + 0x38]
mov qword [rax], rcx
mov rax, qword [rdi + 0x50]
mov dword [rax], edx
mov ebx, 0xfff
jmp 0x18005dc2a
mov r9, qword [rdi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call fcn.18006a408
add r14, rax
sub rsi, rax
cmp rax, rbx
jne 0x18005dc4e
cmp rsi, rbx
ja 0x18005dc08
test rsi, rsi
je 0x18005dc4e
mov r9, qword [rdi + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.18006a408
sub rsi, rax
sub rbp, rsi
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x18006622c
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.18005f840
sub rsp, rax
mov rax, qword [0x180105080]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.180078064
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x18006627b
mov rax, rbp
jmp 0x180066383
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 + 0x107ac0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.1800782f4
mov r13, rax
lea rax, [0x180000000]
mov rcx, qword [rax + rbx*8 + 0x107ac0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x18006637f
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 0x18006637f
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.1800782f4
test rax, rax
js 0x18006637f
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x18006637f
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x180066371
lea r8, [0x180000000]
cmp rcx, rdx
jae 0x180066371
cmp byte [rcx], 0xd
jne 0x180066357
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x180066366
cmp byte [rcx + 1], 0xa
jne 0x180066366
inc rcx
jmp 0x180066366
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x105460]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x180066339
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x180066383
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.18005eb10
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 0x1800783a0
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, [0x180107ac0]
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 0x1800783f7
cmp word [rdx], r13w
jne 0x1800783f7
or byte [rax + rdi*8 + 0x38], cl
jmp 0x1800783fc
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x180078521
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x180078542
lea r9, [rdx + 2]
cmp cx, r11w
je 0x180078435
mov rdx, r9
mov word [rbx], cx
jmp 0x18007845c
cmp r9, r8
jae 0x18007846c
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 0x180078416
jmp 0x180078521
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 0x180078516
cmp dword [rsp + 0x80], esi
je 0x180078516
lea r8, [0x180107ac0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x1800784ee
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x1800784be
mov word [rbx], r13w
jmp 0x18007851e
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 0x1800784cb
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x18007851e
cmp word [rsp + 0x70], r13w
jne 0x1800784fb
cmp rbx, r14
je 0x1800784b8
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.1800782fc
cmp word [rsp + 0x70], r13w
je 0x180078521
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, [0x180107ac0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x18007851b
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x180078521
Function at 0x18007b2a0
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x18007b2b6
mov al, 1
jmp 0x18007b316
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x18007b2c7
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x18007b314
mov ecx, dword [rcx + 0x18]
nop
call fcn.1800840f4
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x18007b314
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x18007b314
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x18007b314
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x18007b316
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x180080f50
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 0x180080f80
xor eax, eax
jmp 0x180081043
mov rbp, rbx
cmp word [rax], si
je 0x180080fa5
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x180080f8c
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x180080f88
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.18007f668
movsxd r14, eax
test eax, eax
jne 0x180080fe3
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x180080f79
mov rcx, r14
call fcn.18007bc3c
mov rdi, rax
test rax, rax
jne 0x180080ffc
xor ecx, ecx
call fcn.180079528
jmp 0x180080fd8
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.18007f668
test eax, eax
jne 0x18008102d
mov rcx, rdi
call fcn.180079528
jmp 0x180081037
xor ecx, ecx
call fcn.180079528
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 0x180083894
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.180076484
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 0x180083935
cmp ebx, dword [rsp + 0x30]
je 0x18008392e
test esi, esi
je 0x18008392e
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x180083909
sub r8w, 0x61
cmp r8w, 0x19
ja 0x180083916
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x1800838f3
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x18008391a
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x180083937
mov eax, 1
jmp 0x180083937
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x180087c70
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.1800782fc
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.1800782fc
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x180087dc0
cmp rax, 0xffffffffffffffff
je 0x180087dc0
xor edi, edi
test rbp, rbp
jle 0x180087d6b
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1800794b0
mov rbx, rax
test rax, rax
jne 0x180087cf8
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x180087d61
mov edx, 0x8000
mov ecx, r14d
call fcn.180087af4
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.18007aa9c
cmp eax, 0xffffffff
je 0x180087d41
cdqe
sub rbp, rax
test rbp, rbp
jg 0x180087d08
mov edx, r15d
mov ecx, r14d
call fcn.180087af4
jmp 0x180087d61
cmp byte [rsi + 0x38], dil
je 0x180087d58
cmp dword [rsi + 0x34], 5
jne 0x180087d58
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x180087d61
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.180079528
jmp 0x180087dd4
jns 0x180087dd4
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.1800782fc
cmp rax, 0xffffffffffffffff
jne 0x180087d8c
cmp byte [rsi + 0x30], dil
je 0x180087dd4
mov edi, dword [rsi + 0x2c]
jmp 0x180087dd4
mov ecx, r14d
call fcn.1800840f4
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x180087dd4
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 0x180087dd4
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x180087dcd
mov eax, dword [rsi + 0x2c]
jmp 0x180087dd2
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.1800782fc
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 0x180088c60
Capabilities:
Parse pe header

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

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
call fcn.14000719c
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateThread]
lea rcx, [0x140021170]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400205b8]
jmp 0x140007248
cmp qword [rbx + 0x18], rdi
je 0x14000724f
mov rbx, qword [rbx]
test rbx, rbx
jne 0x14000723f
jmp 0x140007269
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rbx + 0x10]
lea rcx, [0x1400205b8]
call fcn.140011c68
lea rcx, [0x140021170]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
outsd dx, dword [rsi]
mov edi, 0x80b80094
adc dh, byte [rbx + 0x6c]
adc byte [rbx + 0xb478e00], dl
mov ebx, 0xca03ed0a
invalid
or edi, edx
cmc
jmp qword [rbp - 0x57d81fcf]
movsd dword [rdi], dword [rsi]
xor eax, esp
invalid
sbb edi, ecx
invalid
mov dh, byte [rsi - 0x1000d139]
shr dword [rbp - 8], cl
mov esi, 0x13ef016
in eax, 0x37
invalid
push 0xffffffffba21457b
pop rdx
sub ecx, dword [rsi]
xlatb
fsub dword ss:[rsi]
and eax, 0xda8b5200
invalid
movabs dword [0xf89ca82aea50879c], eax
clc
sahf
add byte [rdx + rax + 0x1c], cl
ja 0x14003f638
jb 0x14003f676
mov dl, 0x9e
add ch, ch
sahf
rol dword [rbx], 1
invalid
adc al, 0x23
invalid
add al, 0x40
cmp byte [rbx + 0x40], al
cwde
add byte [rax + 0x6183d723], dl
mov al, 0x3d
cmpsb byte [rsi], byte [rdi]
xor byte cs:[rsi + 0x6b], ch
add dword [rax + rax*4], eax
add dword [rbp + 0x99ff626], edi
add byte [rdi], al
je 0x14003f660
cmp byte [rbp - 0x47], 2
jb 0x14003f745
sbb eax, 0x701dad9c
mov bh, 0xc1
pop rbp
fbstp tbyte [rcx + rsi*2]
call [rcx - 0x78fca6b]
mov bh, 0x42
invalid
rcl byte [rsi], 0xa0
xlatb
movabs al, byte [0x169fa020ad0f10e]
cmp dword [rax + rax*8], ebp
test byte [rbx], al
call 0x147b02f96
and byte [rbp - 0x27ffa11], dh
insb byte [rdi], dx
invalid
Function at 0x140002e00
Capabilities:
Terminate process

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov ecx, 1
call sub.ucrtbase.dll__configure_wide_argv
call sub.ucrtbase.dll__initialize_wide_environment
call sub.ucrtbase.dll___p___argc
mov esi, dword [rax]
call sub.ucrtbase.dll___p___wargv
mov rdi, qword [rax]
call sub.ucrtbase.dll__get_initial_wide_environment
xor ecx, ecx
mov rbx, rax
mov rax, qword gs:[0x30]
mov rax, qword [rax + 0x60]
mov rax, qword [rax + 0x10]
mov edx, dword [rax + 0x3c]
cmp word [rax + rdx + 0x5c], 2
sete cl
add ecx, 1
call sub.ucrtbase.dll__set_app_type
mov ecx, esi
mov r8, rbx
mov rdx, rdi
call 0x140002e70
mov ecx, eax
call sub.ucrtbase.dll_exit
nop
nop
nop
nop
nop
nop
nop
nop
push rsi
push rbx
sub rsp, 0x98
call qword [sym.imp.kernel32.dll_GetCommandLineW]
mov rbx, rax
movzx eax, word [rax]
test ax, ax
je 0x140002ec9
xor ecx, ecx
xor edx, edx
jmp 0x140002eaa
cmp ax, 0x5c
jne 0x140002f20
add edx, 1
movzx eax, word [rbx + 2]
add rbx, 2
test ax, ax
je 0x140002ec9
cmp ax, 9
je 0x140002eb6
cmp ax, 0x20
jne 0x140002e90
test ecx, ecx
je 0x140002f0c
movzx eax, word [rbx + 2]
add rbx, 2
xor edx, edx
test ax, ax
jne 0x140002eaa
lea rcx, [rsp + 0x20]
call qword [sym.imp.kernel32.dll_GetStartupInfoW]
test byte [rsp + 0x5c], 1
je 0x140002f38
movzx esi, word [rsp + 0x60]
xor ecx, ecx
call qword [sym.imp.kernel32.dll_GetModuleHandleW]
mov r9d, esi
mov r8, rbx
xor edx, edx
mov rcx, rax
call fcn.140002040
add rsp, 0x98
pop rbx
pop rsi
ret
add rbx, 2
movzx eax, word [rbx]
cmp ax, 9
je 0x140002f08
cmp ax, 0x20
je 0x140002f08
jmp 0x140002ec9
cmp ax, 0x22
jne 0x140002eba
and edx, 1
jne 0x140002eba
xor ecx, 1
jmp 0x140002e9d
mov eax, 1
mov esi, 1
mov word [rsp + 0x60], ax
jmp 0x140002ee0
Function at 0x140002e70
Capabilities:
Accept command line arguments
Encrypt data using rc4 prga

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov ecx, 1
call sub.ucrtbase.dll__configure_wide_argv
call sub.ucrtbase.dll__initialize_wide_environment
call sub.ucrtbase.dll___p___argc
mov esi, dword [rax]
call sub.ucrtbase.dll___p___wargv
mov rdi, qword [rax]
call sub.ucrtbase.dll__get_initial_wide_environment
xor ecx, ecx
mov rbx, rax
mov rax, qword gs:[0x30]
mov rax, qword [rax + 0x60]
mov rax, qword [rax + 0x10]
mov edx, dword [rax + 0x3c]
cmp word [rax + rdx + 0x5c], 2
sete cl
add ecx, 1
call sub.ucrtbase.dll__set_app_type
mov ecx, esi
mov r8, rbx
mov rdx, rdi
call 0x140002e70
mov ecx, eax
call sub.ucrtbase.dll_exit
nop
nop
nop
nop
nop
nop
nop
nop
push rsi
push rbx
sub rsp, 0x98
call qword [sym.imp.kernel32.dll_GetCommandLineW]
mov rbx, rax
movzx eax, word [rax]
test ax, ax
je 0x140002ec9
xor ecx, ecx
xor edx, edx
jmp 0x140002eaa
cmp ax, 0x5c
jne 0x140002f20
add edx, 1
movzx eax, word [rbx + 2]
add rbx, 2
test ax, ax
je 0x140002ec9
cmp ax, 9
je 0x140002eb6
cmp ax, 0x20
jne 0x140002e90
test ecx, ecx
je 0x140002f0c
movzx eax, word [rbx + 2]
add rbx, 2
xor edx, edx
test ax, ax
jne 0x140002eaa
lea rcx, [rsp + 0x20]
call qword [sym.imp.kernel32.dll_GetStartupInfoW]
test byte [rsp + 0x5c], 1
je 0x140002f38
movzx esi, word [rsp + 0x60]
xor ecx, ecx
call qword [sym.imp.kernel32.dll_GetModuleHandleW]
mov r9d, esi
mov r8, rbx
xor edx, edx
mov rcx, rax
call fcn.140002040
add rsp, 0x98
pop rbx
pop rsi
ret
add rbx, 2
movzx eax, word [rbx]
cmp ax, 9
je 0x140002f08
cmp ax, 0x20
je 0x140002f08
jmp 0x140002ec9
cmp ax, 0x22
jne 0x140002eba
and edx, 1
jne 0x140002eba
xor ecx, 1
jmp 0x140002e9d
mov eax, 1
mov esi, 1
mov word [rsp + 0x60], ax
jmp 0x140002ee0