joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400112bc
Capabilities:
Parse pe header

Disassembly:
jmp 0x140014590
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x1400145b0
xor al, al
jmp 0x140014631
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x1400145c3
xor al, al
jmp 0x140014631
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 0x1400145ed
xor al, al
jmp 0x140014631
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140014601
xor al, al
jmp 0x140014631
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140014613
xor al, al
jmp 0x140014631
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14001462f
xor al, al
jmp 0x140014631
mov al, 1
add rsp, 0x38
ret
Function at 0x140012470
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x68
mov ecx, 1
call fcn.1400113f2
movzx eax, al
test eax, eax
jne 0x140012490
mov ecx, 7
call fcn.140011366
nop
mov byte [rsp + 0x20], 0
call fcn.14001137a
mov byte [rsp + 0x21], al
cmp dword [0x14001d868], 1
jne 0x1400124b4
mov ecx, 7
call fcn.140011366
nop
jmp 0x14001250c
cmp dword [0x14001d868], 0
jne 0x140012507
mov dword [0x14001d868], 1
lea rdx, [0x14001a660]
lea rcx, [0x14001a330]
call fcn.1400111c7
test eax, eax
je 0x1400124e8
mov eax, 0xff
jmp 0x140012611
lea rdx, [0x14001a220]
lea rcx, [section..rdata]
call fcn.140011370
mov dword [0x14001d868], 2
jmp 0x14001250c
mov byte [rsp + 0x20], 1
movzx ecx, byte [rsp + 0x21]
call fcn.140011352
call fcn.1400112e4
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp qword [rax], 0
je 0x140012569
mov rcx, qword [rsp + 0x30]
call fcn.14001117c
movzx eax, al
test eax, eax
je 0x140012569
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 [0x140024020]
nop
call fcn.140011316
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
cmp qword [rax], 0
je 0x14001259d
mov rcx, qword [rsp + 0x38]
call fcn.14001117c
movzx eax, al
test eax, eax
je 0x14001259d
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax]
call fcn.1400113ac
nop
call fcn.1400126c0
mov dword [rsp + 0x28], eax
call fcn.1400112bc
movzx eax, al
test eax, eax
jne 0x1400125bc
mov ecx, dword [rsp + 0x28]
call fcn.14001105f
nop
movzx eax, byte [rsp + 0x20]
test eax, eax
jne 0x1400125cb
call fcn.1400113b6
nop
xor edx, edx
mov cl, 1
call fcn.140011168
mov eax, dword [rsp + 0x28]
jmp 0x140012611
add rsp, 0x68
ret
Function at 0x180004a40
Capabilities:
Encode data using xor
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov r12d, edx
mov r15, rcx
xor edx, edx
lea rcx, str.kernel32.dll
call qword [sym.imp.ole32.dll_CoLoadLibrary]
mov rbp, rax
xor edi, edi
mov ebx, edi
movsxd r8, dword [rax + 0x3c]
mov r9d, dword [r8 + rax + 0x88]
add r9, rax
mov esi, dword [r9 + 0x20]
mov r13d, dword [r9 + 0x1c]
add rsi, rax
mov r14d, dword [r9 + 0x18]
add r13, rax
mov eax, dword [r9 + 0x24]
add rax, rbp
mov qword [rsp + 0x60], rax
test r14d, r14d
je 0x180004ad0
nop word [rax + rax]
mov ecx, dword [rsi]
lea rdx, str.VirtualAlloc
add rcx, rbp
call fcn.180038570
test eax, eax
je 0x180004b09
inc ebx
add rsi, 4
cmp ebx, r14d
jb 0x180004ab0
mov rsi, rdi
lea rcx, str.8192
call fcn.18001dffc
lea rcx, str.4096
mov ebx, eax
call fcn.18001dffc
or ebx, eax
mov rdx, r12
mov r8d, ebx
mov r9d, 0x40
xor ecx, ecx
call rsi
mov r9, rax
test rax, rax
jne 0x180004b1e
jmp 0x180004b60
mov rcx, qword [rsp + 0x60]
mov eax, ebx
movzx ecx, word [rcx + rax*2]
mov esi, dword [r13 + rcx*4]
add rsi, rbp
jmp 0x180004ad3
test r12d, r12d
je 0x180004b5d
mov r8, r9
lea r10, str._J_VtwdCvTWPm_wPveaXjR5Eod_3YYZG_E_Ja8m
sub r15, r9
mov eax, 0xae4c415d
lea r8, [r8 + 1]
mul edi
mov ecx, edi
inc edi
shr edx, 5
imul eax, edx, 0x2f
sub ecx, eax
movsxd rax, ecx
movzx eax, byte [rax + r10]
xor al, byte [r15 + r8 - 1]
mov byte [r8 - 1], al
cmp edi, r12d
jb 0x180004b30
mov rax, r9
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x68]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x18000c9d0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
movsxd rax, dword [rdx + 0x3c]
xor r9d, r9d
mov rdi, r8
mov r11, rdx
mov ecx, dword [rax + rdx + 0x88]
add rcx, rdx
mov r10d, dword [rcx + 0x20]
mov esi, dword [rcx + 0x1c]
add r10, rdx
mov ebp, dword [rcx + 0x24]
add rsi, rdx
mov ebx, dword [rcx + 0x18]
add rbp, rdx
test ebx, ebx
je 0x18000ca53
nop word [rax + rax]
mov eax, dword [r10]
mov r8, rdi
add rax, r11
sub r8, rax
nop dword [rax]
movzx edx, byte [rax]
movzx ecx, byte [rax + r8]
sub edx, ecx
jne 0x18000ca43
inc rax
test ecx, ecx
jne 0x18000ca30
test edx, edx
je 0x18000ca6a
inc r9d
add r10, 4
cmp r9d, ebx
jb 0x18000ca20
xor eax, eax
mov rbx, qword [rsp + 8]
mov rbp, qword [rsp + 0x10]
mov rsi, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
ret
movzx ecx, word [rbp + r9*2]
mov eax, dword [rsi + rcx*4]
add rax, r11
jmp 0x18000ca55

Function at 0x18000ca80
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rsi, qword [0x18008ea00]
xor ebp, ebp
mov ebx, ebp
movsxd rax, dword [rsi + 0x3c]
mov ecx, dword [rax + rsi + 0x88]
add rcx, rsi
mov edi, dword [rcx + 0x20]
mov r15d, dword [rcx + 0x1c]
add rdi, rsi
mov r12d, dword [rcx + 0x24]
add r15, rsi
mov r14d, dword [rcx + 0x18]
add r12, rsi
test r14d, r14d
je 0x18000cb04
mov ecx, dword [rdi]
lea rdx, [0x180068a98]
add rcx, rsi
call fcn.180038570
test eax, eax
je 0x18000caf6
inc ebx
add rdi, 4
cmp ebx, r14d
jb 0x18000cad4
jmp 0x18000cb04
mov eax, ebx
movzx ecx, word [r12 + rax*2]
mov ebp, dword [r15 + rcx*4]
add rbp, rsi
call rbp
mov rbx, qword [rsp + 0x40]
xor eax, eax
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
Function at 0x18002b928
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 rbx, rcx
test rcx, rcx
jne 0x18002b64a
call fcn.18001f26c
mov dword [rax], 0x16
call fcn.18001d7a0
jmp 0x18002b79a
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x18002b79a
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x18002b79a
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x18002b679
lock or dword [rcx + 0x14], 0x10
jmp 0x18002b79a
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x18002b68d
call fcn.18002bd28
mov ebp, dword [rbx + 0x10]
cmp ebp, 1
jne 0x18002b69d
mov rax, qword [rbx]
mov r14b, byte [rax]
jmp 0x18002b6a0
xor r14b, r14b
mov rsi, qword [rbx + 8]
mov rcx, rbx
mov edi, dword [rbx + 0x20]
mov qword [rbx], rsi
call fcn.180026fe8
mov r8d, edi
mov rdx, rsi
mov ecx, eax
call fcn.1800354f4
mov dword [rbx + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 2
jbe 0x18002b788
mov eax, dword [rbx + 0x14]
test al, 6
jne 0x18002b733
mov rcx, rbx
call fcn.180026fe8
cmp eax, 0xffffffff
je 0x18002b71e
mov rcx, rbx
call fcn.180026fe8
cmp eax, 0xfffffffe
je 0x18002b71e
mov rcx, rbx
call fcn.180026fe8
movsxd rdi, eax
lea rsi, [0x18008e400]
mov rcx, rbx
sar rdi, 6
call fcn.180026fe8
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [rsi + rdi*8]
lea rdx, [rax + rcx*8]
jmp 0x18002b725
lea rdx, [0x18008c250]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x18002b733
lock or dword [rbx + 0x14], 0x20
cmp dword [rbx + 0x20], 0x200
jne 0x18002b757
mov eax, dword [rbx + 0x14]
shr eax, 6
test al, 1
je 0x18002b757
mov eax, dword [rbx + 0x14]
shr eax, 8
test al, 1
jne 0x18002b757
mov dword [rbx + 0x20], 0x1000
mov rdx, qword [rbx]
cmp ebp, 1
jne 0x18002b775
movzx ecx, byte [rdx]
dec dword [rbx + 0x10]
shl cx, 8
movzx eax, r14b
or cx, ax
inc rdx
jmp 0x18002b780
movzx ecx, word [rdx]
add dword [rbx + 0x10], 0xfffffffe
add rdx, 2
mov qword [rbx], rdx
movzx eax, cx
jmp 0x18002b79f
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rbx + 0x14], eax
and dword [rbx + 0x10], 0
mov eax, 0xffff
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
jmp 0x18002b614
Function at 0x18002ceb0
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.180013860
sub rsp, rax
mov rax, qword [0x18008c030]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.180026fe8
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x18002ceff
mov rax, rbp
jmp 0x18002d007
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 + 0x8e400]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.18002d3a0
mov r13, rax
lea rax, [0x180000000]
mov rcx, qword [rax + rbx*8 + 0x8e400]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x18002d003
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 0x18002d003
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.18002d3a0
test rax, rax
js 0x18002d003
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x18002d003
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x18002cff5
lea r8, [0x180000000]
cmp rcx, rdx
jae 0x18002cff5
cmp byte [rcx], 0xd
jne 0x18002cfdb
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x18002cfea
cmp byte [rcx + 1], 0xa
jne 0x18002cfea
inc rcx
jmp 0x18002cfea
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x8cb10]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x18002cfbd
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x18002d007
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.180012fe0
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 0x18002f400
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 0x18002f430
xor eax, eax
jmp 0x18002f4f3
mov rbp, rbx
cmp word [rax], si
je 0x18002f455
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x18002f43c
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x18002f438
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.18002db44
movsxd r14, eax
test eax, eax
jne 0x18002f493
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x18002f429
mov rcx, r14
call fcn.180025c38
mov rdi, rax
test rax, rax
jne 0x18002f4ac
xor ecx, ecx
call fcn.180024f34
jmp 0x18002f488
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.18002db44
test eax, eax
jne 0x18002f4dd
mov rcx, rdi
call fcn.180024f34
jmp 0x18002f4e7
xor ecx, ecx
call fcn.180024f34
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 0x180035048
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, [0x18008e400]
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 0x1800350a6
cmp word [rdx], r12w
jne 0x1800350a6
or byte [rax + r8*8 + 0x38], cl
jmp 0x1800350ac
and byte [rax + r8*8 + 0x38], 0xfb
lea rdx, [rdx + r9*2]
mov rcx, rsi
mov rbx, rsi
cmp rsi, rdx
jae 0x180035207
mov r9d, 0x1a
lea r13d, [r9 - 0xd]
movzx eax, word [rcx]
cmp ax, r9w
je 0x1800351e2
lea r9, [rcx + 2]
cmp ax, r13w
je 0x1800350e5
mov rcx, r9
jmp 0x180035108
cmp r9, rdx
jae 0x18003511f
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 0x1800350c9
jmp 0x180035207
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 0x1800351dc
cmp dword [rsp + 0x80], edi
je 0x1800351dc
mov rdx, r14
lea r11, [0x18008e400]
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 0x1800351b5
movzx eax, word [rsp + 0x70]
cmp ax, r12w
jne 0x180035188
mov word [rbx], r12w
jmp 0x180035203
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 0x180035191
mov rax, qword [r11 + rdx*8]
mov byte [rax + r8*8 + 0x3c], r12b
jmp 0x180035203
cmp word [rsp + 0x70], r12w
jne 0x1800351c2
cmp rbx, rsi
je 0x180035182
mov rdx, 0xfffffffffffffffe
mov ecx, ebp
lea r8d, [rdx + 3]
call fcn.18002d3a8
cmp word [rsp + 0x70], r12w
je 0x180035207
mov word [rbx], r13w
jmp 0x180035203
lea r11, [0x18008e400]
mov rcx, qword [r11 + r10*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x1800351ff
or al, 2
mov byte [rcx + r8*8 + 0x38], al
jmp 0x180035207
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 0x180037884
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.18002d3a8
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.18002d3a8
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1800379d4
cmp rax, 0xffffffffffffffff
je 0x1800379d4
xor edi, edi
test rbp, rbp
jle 0x18003797f
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.180024ebc
mov rbx, rax
test rax, rax
jne 0x18003790c
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x180037975
mov edx, 0x8000
mov ecx, r14d
call fcn.18003770c
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.18002c890
cmp eax, 0xffffffff
je 0x180037955
cdqe
sub rbp, rax
test rbp, rbp
jg 0x18003791c
mov edx, r15d
mov ecx, r14d
call fcn.18003770c
jmp 0x180037975
cmp byte [rsi + 0x38], dil
je 0x18003796c
cmp dword [rsi + 0x34], 5
jne 0x18003796c
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x180037975
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.180024f34
jmp 0x1800379e8
jns 0x1800379e8
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.18002d3a8
cmp rax, 0xffffffffffffffff
jne 0x1800379a0
cmp byte [rsi + 0x30], dil
je 0x1800379e8
mov edi, dword [rsi + 0x2c]
jmp 0x1800379e8
mov ecx, r14d
call fcn.18002fd50
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1800379e8
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 0x1800379e8
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1800379e1
mov eax, dword [rsi + 0x2c]
jmp 0x1800379e6
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.18002d3a8
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 0x140002060
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
push r15
mov eax, dword [rcx + 0x48]
lea rbx, [rcx + 0x28]
mov rdi, qword [rcx]
lea r11, [rcx + 0x28]
add rbx, rax
mov r9, rcx
movabs rbp, 0xc2b2ae3d27d4eb4f
movabs rsi, 0x9e3779b185ebca87
movabs r14, 0x27d4eb2f165667c5
movabs r15, 0x7a1435883d4d519d
cmp rdi, 0x20
jb 0x140002159
mov r8, qword [r9 + 0x18]
mov rdx, qword [rcx + 8]
mov rax, r8
mov r9, qword [r9 + 0x20]
mov rcx, qword [rcx + 0x10]
mov r10, r9
rol r10, 0x12
rol rax, 0xc
add r10, rax
mov rax, rcx
rol rax, 7
add r10, rax
mov rax, rdx
rol rax, 1
add r10, rax
movabs rax, 0x85ebca77c2b2ae63
imul rdx, rbp
imul rcx, rbp
imul r8, rbp
imul r9, rbp
rol rdx, 0x1f
imul rdx, rsi
rol rcx, 0x1f
xor r10, rdx
rol r8, 0x1f
imul r10, rsi
imul rcx, rsi
imul r8, rsi
sub r10, r15
rol r9, 0x1f
xor r10, rcx
imul r10, rsi
imul r9, rsi
sub r10, r15
xor r10, r8
imul r10, rsi
sub r10, r15
xor r10, r9
imul r10, rsi
add rax, r10
add rax, rdi
jmp 0x140002161
lea rax, [rdi + r14]
add rax, qword [rcx + 0x18]
lea rdx, [r11 + 8]
cmp rdx, rbx
ja 0x14000219a
nop word [rax + rax]
mov rcx, qword [r11]
add rdx, 8
imul rcx, rbp
add r11, 8
rol rcx, 0x1f
imul rcx, rsi
xor rax, rcx
rol rax, 0x1b
imul rax, rsi
sub rax, r15
cmp rdx, rbx
jbe 0x140002170
lea rdx, [r11 + 4]
movabs r8, 0x165667b19e3779f9
cmp rdx, rbx
ja 0x1400021c5
mov ecx, dword [r11]
mov r11, rdx
imul rcx, rsi
xor rax, rcx
rol rax, 0x17
imul rax, rbp
add rax, r8
cmp r11, rbx
jae 0x1400021eb
nop word [rax + rax]
movzx ecx, byte [r11]
inc r11
imul rcx, r14
xor rax, rcx
rol rax, 0xb
imul rax, rsi
cmp r11, rbx
jb 0x1400021d0
mov rbx, qword [rsp + 0x18]
mov rcx, rax
mov rsi, qword [rsp + 0x28]
mov rdi, qword [rsp + 0x30]
shr rcx, 0x21
xor rcx, rax
imul rcx, rbp
mov rbp, qword [rsp + 0x20]
mov rdx, rcx
shr rdx, 0x1d
xor rdx, rcx
imul rdx, r8
mov rax, rdx
shr rax, 0x20
xor rax, rdx
pop r15
pop r14
ret

Function at 0x14000a500
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x90
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x80], rax
movzx eax, byte [rcx]
lea rbx, [rsp + 0x30]
xor r14d, r14d
mov rbp, rdx
mov word [rsp + 0x30], r14w
mov rsi, rcx
mov edi, 0x28
test al, al
je 0x14000a5b1
nop word [rax + rax]
mov r8d, 2
mov byte [rsp + 0x20], al
lea rdx, [rsp + 0x20]
mov byte [rsp + 0x21], r14b
lea rcx, [rsp + 0x24]
call fcn.140010060
cmp rax, 1
jne 0x14000a5e7
mov rcx, rdi
mov rax, rbx
cmp word [rbx], r14w
je 0x14000a58d
add rax, 2
dec rcx
cmp word [rax], r14w
jne 0x14000a580
cmp rcx, 1
jb 0x14000a5e7
movzx ecx, word [rsp + 0x24]
inc rsi
mov word [rax], cx
add rbx, 2
mov word [rax + 2], r14w
dec rdi
movzx eax, byte [rsi]
test al, al
jne 0x14000a550
mov rdx, rbp
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.14000c570
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
call fcn.14000fd24
int3
Function at 0x14000a670
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x250
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rdi, r8
lea rax, [rsp + 0x30]
mov rbx, rcx
mov qword [rsp + 0x20], rax
xor r8d, r8d
xor ecx, ecx
xor r9d, r9d
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
je 0x14000a6b5
xor al, al
jmp 0x14000a702
cmp word [rbx], 0
je 0x14000a6cd
nop dword [rax + rax]
add rbx, 2
dec rdi
cmp word [rbx], 0
jne 0x14000a6c0
cmp word [rsp + 0x30], 0
je 0x14000a6fb
lea rcx, [rsp + 0x30]
sub rcx, rbx
nop dword [rax]
cmp rdi, 1
jb 0x14000a723
movzx eax, word [rcx + rbx]
dec rdi
mov word [rbx], ax
add rbx, 2
cmp word [rcx + rbx], 0
jne 0x14000a6e0
xor eax, eax
mov word [rbx], ax
mov al, 1
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.14000c570
mov rbx, qword [rsp + 0x270]
add rsp, 0x250
pop rdi
ret
call fcn.14000fd24
int3
Function at 0x14000b800
Capabilities:
Check if file exists
Delete file
Get file attributes
Terminate process

Disassembly:
sub rsp, 0x68
mov rcx, qword [0x14002fdd8]
test rcx, rcx
je 0x14000b83b
mov edx, 0x1388
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x14000b82e
mov rcx, qword [0x14002fdd8]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, qword [0x14002fdd8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [0x14002fde8], 0
je 0x14000b92e
mov qword [rsp + 0x70], rbx
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x78], rbp
lea rbp, [0x140029960]
mov qword [rsp + 0x80], rsi
lea rsi, [0x140030610]
mov qword [rsp + 0x88], rdi
xor edi, edi
mov qword [rsp + 0x60], r14
mov r14d, 0x414
mov word [rsp + 0x40], r14w
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x28], 3
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], rbp
mov dword [rsp + 0x44], edi
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x50], rbp
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
mov ebx, edi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14000b90f
test al, 0x10
je 0x14000b90f
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x28], 3
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], rbp
mov word [rsp + 0x40], r14w
mov dword [rsp + 0x44], edi
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x50], rbp
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
inc ebx
cmp ebx, 0x14
jl 0x14000b8b5
mov rdi, qword [rsp + 0x88]
mov rsi, qword [rsp + 0x80]
mov rbp, qword [rsp + 0x78]
mov rbx, qword [rsp + 0x70]
mov r14, qword [rsp + 0x60]
add rsp, 0x68
ret