joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18000e9e0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
mov eax, 0x50
call fcn.180030460
sub rsp, rax
mov rax, qword [0x180070650]
xor rax, rsp
mov qword [rbp - 8], rax
mov rax, qword [rbp + 0x60]
mov r15, qword [rbp + 0x68]
mov rsi, rcx
movzx r10d, byte [rax]
mov ebx, dword [r15]
lea rdi, [rax + 1]
movzx ecx, byte [rdi + 6]
mov qword [rbp - 0x18], rax
movzx eax, byte [rdi]
shl eax, 8
mov r14, rdx
movzx edx, byte [rdi + 3]
or r10d, eax
movzx eax, byte [rdi + 1]
shl ecx, 8
shl eax, 0x10
mov r12d, r8d
lea r8, [rdi + 5]
or r10d, eax
movzx eax, byte [rdi + 2]
xor r13d, r13d
shl eax, 0x18
mov qword [rbp - 0x28], r9
mov qword [rbp - 0x20], r15
or r10d, eax
movzx eax, byte [rdi + 4]
shl eax, 8
mov dword [rbp - 0x30], r10d
mov byte [rbp - 0x10], r10b
or edx, eax
movzx eax, byte [r8]
or ecx, eax
mov eax, r10d
shr eax, 8
shl ecx, 0x10
mov byte [rbp - 0xf], al
or edx, ecx
mov eax, r10d
shr eax, 0x10
mov dword [rbp - 0x2c], edx
mov byte [rbp - 0xc], dl
mov byte [rbp - 0xe], al
mov eax, r10d
shr eax, 0x18
mov byte [rbp - 0xd], al
mov eax, edx
shr eax, 8
mov byte [rbp - 0xb], al
mov eax, edx
shr eax, 0x10
mov byte [rbp - 0xa], al
mov eax, edx
shr eax, 0x18
mov byte [rbp - 9], al
test r12d, r12d
je 0x18000eb9c
mov r15, qword [rbp - 0x28]
sub r14, rsi
movzx r8d, dl
movzx r9d, r10b
dec r12d
test ebx, ebx
jne 0x18000eb38
lea r8d, [rbx + 1]
lea rcx, [rbp - 0x30]
mov rdx, r15
call fcn.180009d60
mov r10d, dword [rbp - 0x30]
mov edx, dword [rbp - 0x2c]
movzx r9d, byte [rbp - 0x30]
movzx r8d, byte [rbp - 0x2c]
mov eax, r10d
shr eax, 8
mov byte [rbp - 0x10], r9b
mov byte [rbp - 0xc], r8b
mov byte [rbp - 0xf], al
mov eax, r10d
shr eax, 0x10
mov byte [rbp - 0xe], al
mov eax, r10d
shr eax, 0x18
mov byte [rbp - 0xd], al
mov eax, edx
shr eax, 8
mov byte [rbp - 0xb], al
mov eax, edx
shr eax, 0x10
mov byte [rbp - 0xa], al
mov eax, edx
shr eax, 0x18
inc r13d
mov byte [rbp - 9], al
movsxd rax, ebx
inc rsi
movzx ecx, byte [rbp + rax - 0x10]
xor cl, byte [rsi - 1]
inc ebx
mov byte [r14 + rsi - 1], cl
and ebx, 7
test r12d, r12d
jne 0x18000ead2
mov r15, qword [rbp - 0x20]
test r13d, r13d
je 0x18000eb9c
mov rax, qword [rbp - 0x18]
mov byte [rax], r9b
mov eax, r10d
shr eax, 8
mov byte [rdi], al
mov eax, r10d
shr r10d, 0x18
shr eax, 0x10
mov byte [rdi + 1], al
mov byte [rdi + 2], r10b
mov byte [rdi + 3], r8b
mov eax, edx
shr eax, 8
mov byte [rdi + 4], al
mov eax, edx
shr eax, 0x10
shr edx, 0x18
mov byte [rdi + 5], al
mov byte [rdi + 6], dl
mov dword [r15], ebx
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.18002fe30
mov rbx, qword [rsp + 0x90]
add rsp, 0x50
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x180033d67
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x180070650]
jne 0x18002fe4a
rol rcx, 0x10
test cx, 0xffff
jne 0x18002fe46
repz ret
ror rcx, 0x10
jmp 0x180033cc0
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x180072680]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x180072778]
mov qword [rsp + 0x58], rax
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x180033d45
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x180072680]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x180033d67
mov rax, qword [rsp + 0x88]
mov qword [0x180072778], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x180072718], rax
mov rax, qword [0x180072778]
mov qword [0x1800725f0], rax
mov rax, qword [rsp + 0x90]
mov qword [0x180072700], rax
mov dword [0x1800725e0], 0xc0000409
mov dword [0x1800725e4], 1
mov rax, qword [0x180070650]
mov qword [rsp + 0x68], rax
mov rax, qword [0x180070658]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x180072678], eax
mov ecx, 1
call fcn.18003efa0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x180056b20]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x180072678], 0
jne 0x180033dee
mov ecx, 1
call fcn.18003efa0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret
Function at 0x180040e58
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x50
mov rax, qword [0x180070650]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov ebp, r8d
mov r14, rdx
mov r13, rcx
call fcn.18003400c
xor ebx, ebx
cmp qword [0x1800735c8], rbx
mov rdi, rax
jne 0x180040f6b
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
test rax, rax
je 0x180041042
lea rdx, [0x180057e08]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x180041042
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x1800735c8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x1800735d0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, [0x180057dc0]
mov rcx, rsi
mov qword [0x1800735d8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov r11, rax
mov qword [0x1800735e8], rax
test rax, rax
je 0x180040f62
lea rdx, [0x180057da8]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov qword [0x1800735e0], rax
jmp 0x180040f72
mov rax, qword [0x1800735e0]
jmp 0x180040f79
mov rax, qword [0x1800735e0]
mov r11, qword [0x1800735e8]
cmp rax, rdi
je 0x180040fe0
cmp r11, rdi
je 0x180040fe0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov rcx, qword [0x1800735e8]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov r12, rax
test rsi, rsi
je 0x180040fe0
test rax, rax
je 0x180040fe0
call rsi
test rax, rax
je 0x180040fda
lea rcx, [rsp + 0x30]
mov r9d, 0xc
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x180040fda
test byte [rsp + 0x40], 1
jne 0x180040fe0
bts ebp, 0x15
jmp 0x180041020
mov rcx, qword [0x1800735d0]
cmp rcx, rdi
je 0x180041020
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x180041020
call rax
mov rbx, rax
test rax, rax
je 0x180041020
mov rcx, qword [0x1800735d8]
cmp rcx, rdi
je 0x180041020
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x180041020
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x1800735c8]
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x180041042
mov r9d, ebp
mov r8, r14
mov rdx, r13
mov rcx, rbx
call rax
jmp 0x180041044
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.18002fe30
add rsp, 0x50
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140002050
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 0x140002149
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 0x140002151
lea rax, [rdi + r14]
add rax, qword [rcx + 0x18]
lea rdx, [r11 + 8]
cmp rdx, rbx
ja 0x14000218a
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 0x140002160
lea rdx, [r11 + 4]
movabs r8, 0x165667b19e3779f9
cmp rdx, rbx
ja 0x1400021b5
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 0x1400021db
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 0x1400021c0
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 0x14000a3d0
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x90
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x80], rax
xor eax, eax
lea rbx, [rsp + 0x30]
mov rbp, rdx
mov word [rsp + 0x30], ax
movzx edx, byte [rcx]
mov rsi, rcx
lea edi, [rax + 0x28]
test dl, dl
je 0x14000a475
nop dword [rax]
cmp word [rbx], 0
mov rcx, rdi
mov rax, rbx
je 0x14000a42d
nop dword [rax]
add rax, 2
dec rcx
cmp word [rax], 0
jne 0x14000a420
cmp rcx, 1
jb 0x14000a4a6
mov byte [rsp + 0x20], dl
mov rcx, 0xffffffffffffffff
mov byte [rsp + 0x21], 0
cmp word [rax + rcx*2 + 2], 0
lea rcx, [rcx + 1]
jne 0x14000a443
lea rcx, [rax + rcx*2]
mov r8d, 2
lea rdx, [rsp + 0x20]
call fcn.140010130
movzx edx, byte [rsi + 1]
inc rsi
add rbx, 2
dec rdi
test dl, dl
jne 0x14000a410
mov rdx, rbp
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.14000b7e0
mov rbx, qword [rsp + 0xc0]
add rsp, 0x90
pop rdi
pop rsi
pop rbp
ret
call fcn.14000fdec
int3
Function at 0x14000a530
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 0x14000a575
xor al, al
jmp 0x14000a5c2
cmp word [rbx], 0
je 0x14000a58d
nop dword [rax + rax]
add rbx, 2
dec rdi
cmp word [rbx], 0
jne 0x14000a580
cmp word [rsp + 0x30], 0
je 0x14000a5bb
lea rcx, [rsp + 0x30]
sub rcx, rbx
nop dword [rax]
cmp rdi, 1
jb 0x14000a5e3
movzx eax, word [rcx + rbx]
dec rdi
mov word [rbx], ax
add rbx, 2
cmp word [rcx + rbx], 0
jne 0x14000a5a0
xor eax, eax
mov word [rbx], ax
mov al, 1
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.14000b7e0
mov rbx, qword [rsp + 0x270]
add rsp, 0x250
pop rdi
ret
call fcn.14000fdec
int3
Function at 0x14000ad70
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 0x18], rsi
push rdi
mov eax, 0x2030
call fcn.1400201b0
sub rsp, rax
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x2020], rax
mov r11d, dword [0x140030d14]
lea rsi, [0x140035d50]
mov rdi, rcx
test r11d, r11d
jne 0x14000ade9
mov r8d, 0x1000
lea rdx, str.HOME
lea rcx, [rsp + 0x20]
call fcn.14000a5f0
test al, al
je 0x14000aec9
lea rcx, [rsp + 0x20]
call fcn.1400144a0
movsxd r11, dword [0x140030d14]
mov qword [rsi + r11*8], rax
inc r11d
mov dword [0x140030d14], r11d
xor r9d, r9d
test r11d, r11d
jle 0x14000ae24
mov r10, rsi
mov r8, qword [r10]
mov rax, rdi
sub r8, rdi
nop dword [rax]
movzx edx, word [rax]
movzx ecx, word [rax + r8]
sub edx, ecx
jne 0x14000ae14
add rax, 2
test ecx, ecx
jne 0x14000ae00
test edx, edx
je 0x14000ae47
inc r9d
add r10, 8
cmp r9d, r11d
jl 0x14000adf4
mov rax, 0xffffffffffffffff
nop dword [rax + rax]
inc rax
cmp word [rdi + rax*2], 0
jne 0x14000ae30
cmp rax, 2
jne 0x14000ae4b
cmp word [rdi + 2], 0x3a
jne 0x14000ae4b
mov al, 1
jmp 0x14000aea8
xor edx, edx
mov qword [rsp + 0x2048], rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
setne bl
test eax, eax
jne 0x14000ae76
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x14000ae9d
mov bl, 1
cmp dword [0x140030d14], 0x400
jge 0x14000ae9d
mov rcx, rdi
call fcn.1400144a0
movsxd rdx, dword [0x140030d14]
mov qword [rsi + rdx*8], rax
inc edx
mov dword [0x140030d14], edx
movzx eax, bl
mov rbx, qword [rsp + 0x2048]
mov rcx, qword [rsp + 0x2020]
xor rcx, rsp
call fcn.14000b7e0
mov rsi, qword [rsp + 0x2050]
add rsp, 0x2030
pop rdi
ret
lea rcx, str.HOME
call fcn.14000ac10
int3
Function at 0x14000aff0
Capabilities:
Check if file exists
Delete file
Get file attributes
Terminate process

Disassembly:
sub rsp, 0x68
mov rcx, qword [0x140030d18]
test rcx, rcx
je 0x14000b02b
mov edx, 0x1388
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x14000b01e
mov rcx, qword [0x140030d18]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, qword [0x140030d18]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [0x140030d28], 0
je 0x14000b11e
mov qword [rsp + 0x70], rbx
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x78], rbp
lea rbp, [0x14002a9d8]
mov qword [rsp + 0x80], rsi
lea rsi, [0x140033550]
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 0x14000b0ff
test al, 0x10
je 0x14000b0ff
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 0x14000b0a5
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
Function at 0x14000c0a0
Capabilities:
Parse pe header

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

Function at 0x14000fde0
Capabilities:
Parse pe header

Disassembly:
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 0x14000fc67
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000fc67
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000fc67
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000fc67
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000fc67
cmp dword [rcx + 0x84], 0xe
jbe 0x14000fc67
cmp dword [rcx + 0xf8], 0
je 0x14000fc67
mov ecx, ebx
call fcn.14000fd0c
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.14000fb00
nop
cmp dword [rbp + 0x20], 0
jne 0x14000fcc8
call fcn.1400148dc
cmp eax, 1
jne 0x14000fcb8
xor dl, dl
jmp 0x14000fcc2
call fcn.1400148a8
test al, al
sete dl
cmp dword [rbp + 0x20], 0
je 0x14000fcd3
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14000fcdc
int3
xor r8d, r8d
xor edx, edx
jmp 0x14000fbf8
Function at 0x1400195d8
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 0x14001965f
mov rsi, rbx
cmp word [rax], bp
je 0x14001961e
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140019608
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140019604
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140016b10
mov rdi, rax
test rax, rax
je 0x14001964c
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140020860
mov rbp, rdi
xor ecx, ecx
call fcn.140015af0
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 0x14001bb80
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14001bb96
mov al, 1
jmp 0x14001bc02
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14001bba7
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14001bc00
mov ecx, dword [rcx + 0x18]
nop
call fcn.140019d7c
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14001bc00
and qword [rsp + 0x38], 0
lea r8, [rsp + 0x38]
mov r9d, 1
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14001bc00
and qword [rsp + 0x30], 0
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14001bc00
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14001bc02
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x140020040
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140020068
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140020068
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140003980
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x60
mov rax, qword [0x140043040]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rdx + 0x18], 7
mov r12, rdx
mov r13, rcx
mov qword [rsp + 0x30], rdx
jbe 0x1400039bd
mov rax, qword [rdx]
mov qword [rsp + 0x30], rax
cmp qword [rcx + 0x18], 7
mov qword [rsp + 0x38], r13
jbe 0x1400039d1
mov rax, qword [rcx]
mov qword [rsp + 0x38], rax
mov ecx, 0x72
xor edx, edx
call fcn.140001150
mov ecx, 0x75
mov edx, 1
movzx r15d, ax
call fcn.140001150
mov ecx, 0x6e
mov edx, 2
movzx r14d, ax
call fcn.140001150
mov ecx, 0x61
mov edx, 3
movzx ebp, ax
call fcn.140001150
mov ecx, 0x73
mov edx, 4
movzx esi, ax
call fcn.140001150
xor ecx, ecx
mov edx, 5
movzx edi, ax
call fcn.140001150
movzx ecx, word [0x14003d4ac]
mov edx, 6
movzx ebx, ax
call fcn.140001150
movzx ecx, word [0x14003d4ae]
mov edx, 7
movzx r9d, ax
call fcn.140001150
movzx ecx, word [0x14003d4b0]
mov edx, 8
movzx r8d, ax
call fcn.140001150
movzx ecx, word [0x14003d4b2]
mov edx, 9
movzx r11d, ax
call fcn.140001150
movzx ecx, word [0x14003d4b4]
mov edx, 0xa
movzx r10d, ax
call fcn.140001150
mov ecx, 0x133
xor r15w, cx
mov ecx, 0x134
xor r14w, cx
mov word [rsp + 0x40], r15w
mov ecx, 0x135
mov word [rsp + 0x42], r14w
xor bp, cx
mov ecx, 0x136
xor si, cx
mov word [rsp + 0x44], bp
mov ecx, 0x137
mov word [rsp + 0x46], si
xor di, cx
mov ecx, 0x138
xor bx, cx
mov word [rsp + 0x48], di
mov ecx, 0x139
mov word [rsp + 0x4a], bx
xor r9w, cx
mov ecx, 0x13a
xor r8w, cx
mov word [rsp + 0x4c], r9w
mov r9, qword [rsp + 0x30]
mov ecx, 0x13b
xor r11w, cx
mov word [rsp + 0x4e], r8w
mov ecx, 0x13c
mov word [rsp + 0x50], r11w
xor r10w, cx
mov ecx, 0x13d
xor ax, cx
mov word [rsp + 0x52], r10w
xor ebx, ebx
mov word [rsp + 0x54], ax
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rbx
mov word [rsp + 0x56], bx
mov r8, qword [rsp + 0x38]
lea rdx, [rsp + 0x40]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
mov rdx, qword [r13 + 0x18]
cmp rdx, 7
jbe 0x140003ba0
mov rcx, qword [r13]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x140003b9b
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140003c26
mov rcx, r8
call fcn.14000fc04
mov qword [r13 + 0x10], rbx
mov qword [r13 + 0x18], 7
mov word [r13], bx
mov rdx, qword [r12 + 0x18]
cmp rdx, 7
jbe 0x140003bee
mov rcx, qword [r12]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x140003be9
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140003c26
mov rcx, r8
call fcn.14000fc04
mov qword [r12 + 0x10], rbx
mov qword [r12 + 0x18], 7
mov word [r12], bx
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14000f8c0
mov rbx, qword [rsp + 0xb0]
add rsp, 0x60
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.140019114
int3
Function at 0x140003c30
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x50
xor ebp, ebp
mov rdi, rcx
cmp qword [rcx + 0x18], 7
mov dword [rsp + 0x40], ebp
jbe 0x140003c52
mov rcx, qword [rcx]
mov qword [rsp + 0x30], rbp
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
xor r8d, r8d
mov edx, 0x10000000
mov dword [rsp + 0x20], 1
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x50
jne 0x140003ce6
mov rdx, qword [rdi + 0x18]
cmp rdx, 7
jbe 0x140003cc5
lea rdx, [rdx*2 + 2]
mov rcx, qword [rdi]
cmp rdx, 0x1000
jb 0x140003cc0
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140003d8f
mov rcx, r8
call fcn.14000fc04
mov al, 1
mov rsi, qword [rsp + 0x78]
mov word [rdi], bp
mov qword [rdi + 0x18], 7
mov qword [rdi + 0x10], rbp
mov rbp, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
cmp rsi, 0xffffffffffffffff
jne 0x140003d2b
mov rdx, qword [rdi + 0x18]
cmp rdx, 7
jbe 0x140003d27
lea rdx, [rdx*2 + 2]
mov rcx, qword [rdi]
cmp rdx, 0x1000
jb 0x140003d22
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140003d8f
mov rcx, r8
call fcn.14000fc04
xor al, al
jmp 0x140003cc7
lea r9, [rsp + 0x40]
mov qword [rsp + 0x68], rbx
mov r8d, 0x41200
mov qword [rsp + 0x20], rbp
lea rdx, [0x1400460a0]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rsi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rdi + 0x18]
test bl, bl
mov rbx, qword [rsp + 0x68]
jne 0x140003d78
cmp rax, 7
jbe 0x140003d27
lea rdx, [rax*2 + 2]
jmp 0x140003cfe
cmp rax, 7
jbe 0x140003cc5
lea rdx, [rax*2 + 2]
jmp 0x140003c98
call fcn.140019114
int3