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

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x88
mov rcx, qword [rsp + 0x98]
call fcn.180006f90
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, 0x80000000
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0xffffffffffffffff
jne 0x180016342
mov rcx, qword [rsp + 0x90]
call fcn.180006a20
mov rax, qword [rsp + 0x90]
jmp 0x180016443
xor edx, edx
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [rsp + 0x44], eax
mov eax, dword [rsp + 0x44]
mov r9d, 4
mov r8d, 0x3000
mov edx, eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x1800163a1
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x48]
mov r8d, dword [rsp + 0x44]
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1800163d3
cmp qword [rsp + 0x50], 0
je 0x1800163bc
mov r8d, 0x8000
xor edx, edx
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rcx, qword [rsp + 0x90]
call fcn.180006a20
mov rax, qword [rsp + 0x90]
jmp 0x180016443
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rsp + 0x40]
call fcn.180001bd0
mov ecx, dword [rsp + 0x44]
mov rdx, qword [rsp + 0x50]
add rdx, rcx
mov rcx, rdx
mov r9, rax
mov r8, rcx
mov rdx, qword [rsp + 0x50]
lea rcx, [rsp + 0x60]
call fcn.18001b1c0
mov r8d, 0x8000
xor edx, edx
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x90]
call fcn.1800177c0
lea rcx, [rsp + 0x60]
call fcn.1800177a0
mov rax, qword [rsp + 0x90]
add rsp, 0x88
ret
Function at 0x1800173f0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rsi
push rdi
sub rsp, 0x58
lea rcx, [rsp + 0x40]
call fcn.1800174c0
mov eax, 0x25ff
mov word [rsp + 0x40], ax
mov dword [rsp + 0x42], 0
lea rax, [0x180017390]
mov qword [rsp + 0x46], rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov eax, dword [rax + 0x28]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [0x180064150], rax
lea rax, [0x180064158]
mov rdi, rax
mov rsi, qword [0x180064150]
mov ecx, 0xe
rep movsb byte [rdi], byte [rsi]
lea r9, [rsp + 0x20]
mov r8d, 0x40
mov edx, pe_nt_image_headers64
mov rcx, qword [0x180064150]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
lea rax, [rsp + 0x40]
mov rdi, qword [0x180064150]
mov rsi, rax
mov ecx, 0xe
rep movsb byte [rdi], byte [rsi]
xor eax, eax
add rsp, 0x58
pop rdi
pop rsi
ret
Function at 0x1800218e0
Capabilities:
Acquire debug privileges

Disassembly:
sub rsp, 0x78
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x38]
mov edx, 0x28
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x18002194e
lea rdx, str.Failed_to_open_process_token:
lea rcx, [0x180062bb0]
call fcn.18000dcc0
mov qword [rsp + 0x40], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x30], eax
mov edx, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x40]
call fcn.180022380
mov qword [rsp + 0x48], rax
lea rdx, [0x18000e050]
mov rcx, qword [rsp + 0x48]
call fcn.1800066c0
xor al, al
jmp 0x180021a17
mov dword [rsp + 0x60], 1
mov eax, 0xc
imul rax, rax, 0
lea rax, [rsp + rax + 0x64]
mov r8, rax
lea rdx, str.SeDebugPrivilege
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov eax, 0xc
imul rax, rax, 0
mov dword [rsp + rax + 0x6c], 2
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, 0x10
lea r8, [rsp + 0x60]
xor edx, edx
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x180021a0a
lea rdx, str.Failed_to_adjust_token_privileges:
lea rcx, [0x180062bb0]
call fcn.18000dcc0
mov qword [rsp + 0x50], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x34], eax
mov edx, dword [rsp + 0x34]
mov rcx, qword [rsp + 0x50]
call fcn.180022380
mov qword [rsp + 0x58], rax
lea rdx, [0x18000e050]
mov rcx, qword [rsp + 0x58]
call fcn.1800066c0
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x180021a17
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
add rsp, 0x78
ret
Function at 0x18003b53c
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x18003b552
mov al, 1
jmp 0x18003b5b2
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x18003b563
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x18003b5b0
mov ecx, dword [rcx + 0x18]
nop
call fcn.180047a00
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x18003b5b0
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x18003b5b0
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x18003b5b0
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x18003b5b2
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x18003eac0
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.180026db0
sub rsp, rax
mov rax, qword [0x180061078]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.18003a170
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x18003eb0f
mov rax, rbp
jmp 0x18003ec17
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 + 0x639b0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.18003fa0c
mov r13, rax
lea rax, [0x180000000]
mov rcx, qword [rax + rbx*8 + 0x639b0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x18003ec13
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 0x18003ec13
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.18003fa0c
test rax, rax
js 0x18003ec13
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x18003ec13
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x18003ec05
lea r8, [0x180000000]
cmp rcx, rdx
jae 0x18003ec05
cmp byte [rcx], 0xd
jne 0x18003ebeb
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x18003ebfa
cmp byte [rcx + 1], 0xa
jne 0x18003ebfa
inc rcx
jmp 0x18003ebfa
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x61460]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x18003ebcd
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x18003ec17
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.180026bd0
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 0x18003edac
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, [0x1800639b0]
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 0x18003ee03
cmp word [rdx], r13w
jne 0x18003ee03
or byte [rax + rdi*8 + 0x38], cl
jmp 0x18003ee08
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x18003ef2d
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x18003ef4e
lea r9, [rdx + 2]
cmp cx, r11w
je 0x18003ee41
mov rdx, r9
mov word [rbx], cx
jmp 0x18003ee68
cmp r9, r8
jae 0x18003ee78
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 0x18003ee22
jmp 0x18003ef2d
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 0x18003ef22
cmp dword [rsp + 0x80], esi
je 0x18003ef22
lea r8, [0x1800639b0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x18003eefa
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x18003eeca
mov word [rbx], r13w
jmp 0x18003ef2a
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 0x18003eed7
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x18003ef2a
cmp word [rsp + 0x70], r13w
jne 0x18003ef07
cmp rbx, r14
je 0x18003eec4
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.18003fa14
cmp word [rsp + 0x70], r13w
je 0x18003ef2d
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, [0x1800639b0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x18003ef27
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x18003ef2d
Function at 0x180042dac
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 0x180042ddc
xor eax, eax
jmp 0x180042e9f
mov rbp, rbx
cmp word [rax], si
je 0x180042e01
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x180042de8
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x180042de4
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.180041494
movsxd r14, eax
test eax, eax
jne 0x180042e3f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x180042dd5
mov rcx, r14
call fcn.180038ddc
mov rdi, rax
test rax, rax
jne 0x180042e58
xor ecx, ecx
call fcn.180038da0
jmp 0x180042e34
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.180041494
test eax, eax
jne 0x180042e89
mov rcx, rdi
call fcn.180038da0
jmp 0x180042e93
xor ecx, ecx
call fcn.180038da0
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 0x180045a3c
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.180037148
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 0x180045add
cmp ebx, dword [rsp + 0x30]
je 0x180045ad6
test esi, esi
je 0x180045ad6
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x180045ab1
sub r8w, 0x61
cmp r8w, 0x19
ja 0x180045abe
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x180045a9b
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x180045ac2
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x180045adf
mov eax, 1
jmp 0x180045adf
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x18004a10c
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.1800310d0
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x18004a196
cmp byte [rbp - 0x21], r15b
je 0x18004a191
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x18004a1cc
call fcn.18003ba18
test eax, eax
jne 0x18004a1b8
cmp byte [rbp - 0x21], r15b
je 0x18004a1b0
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x18004a1cc
cmp byte [rbp - 0x21], r15b
je 0x18004a1c9
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.1800357fc
test eax, eax
jne 0x18004a26c
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.1800310d0
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x18004a20b
cmp byte [rbp - 0x21], r15b
je 0x18004a240
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x18004a240
call fcn.18003ba18
test eax, eax
jne 0x18004a22c
cmp byte [rbp - 0x21], r15b
je 0x18004a225
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x18004a240
cmp byte [rbp - 0x21], r15b
je 0x18004a23d
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.1800357fc
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x18004a26c
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x18004a26f
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x18004a27d
mov rcx, rdi
call fcn.180038da0
cmp byte [rbp + 0x3f], r15b
je 0x18004a28c
mov rcx, qword [rbp + 0x27]
call fcn.180038da0
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 0x18004b108
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.18003fa14
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.18003fa14
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x18004b258
cmp rax, 0xffffffffffffffff
je 0x18004b258
xor edi, edi
test rbp, rbp
jle 0x18004b203
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.180038d28
mov rbx, rax
test rax, rax
jne 0x18004b190
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x18004b1f9
mov edx, 0x8000
mov ecx, r14d
call fcn.18004af8c
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.18003cd74
cmp eax, 0xffffffff
je 0x18004b1d9
cdqe
sub rbp, rax
test rbp, rbp
jg 0x18004b1a0
mov edx, r15d
mov ecx, r14d
call fcn.18004af8c
jmp 0x18004b1f9
cmp byte [rsi + 0x38], dil
je 0x18004b1f0
cmp dword [rsi + 0x34], 5
jne 0x18004b1f0
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x18004b1f9
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.180038da0
jmp 0x18004b26c
jns 0x18004b26c
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.18003fa14
cmp rax, 0xffffffffffffffff
jne 0x18004b224
cmp byte [rsi + 0x30], dil
je 0x18004b26c
mov edi, dword [rsi + 0x2c]
jmp 0x18004b26c
mov ecx, r14d
call fcn.180047a00
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x18004b26c
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 0x18004b26c
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x18004b265
mov eax, dword [rsi + 0x2c]
jmp 0x18004b26a
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.18003fa14
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 0x18004bab0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x18004bad8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x18004bad8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x1400134d4
Capabilities:
Query environment variable

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x1480]
mov eax, 0x1580
call fcn.1400140b0
sub rsp, rax
mov rax, qword [0x140036008]
xor rax, rsp
mov qword [rbp + 0x1470], rax
mov r14, qword [rbp + 0x14e0]
xor r12d, r12d
mov r15d, r9d
mov rdi, r8
mov rbx, rdx
mov esi, r12d
test rcx, rcx
je 0x14001370c
test r14, r14
je 0x14001370c
mov r8, rcx
mov qword [r14], r12
lea rcx, [rbp + 0x70]
lea rdx, str.SYSTEMCurrentControlSetServicesEventlog_s
call fcn.140013cd8
test rbx, rbx
je 0x14001357f
lea rcx, [rbp + 0x70]
dec rcx
inc rcx
cmp byte [rcx], r12b
jne 0x14001354f
movzx eax, word [0x14002b388]
mov word [rcx], ax
lea rcx, [rbp + 0x70]
dec rcx
inc rcx
cmp byte [rcx], r12b
jne 0x140013568
xor edx, edx
mov al, byte [rbx + rdx]
mov byte [rcx + rdx], al
inc rdx
test al, al
jne 0x140013572
mov eax, 0x1000
lea rcx, [rbp + 0x470]
mov r8d, eax
mov dword [rsp + 0x40], eax
xor edx, edx
call fcn.1400151a0
lea rax, [rsp + 0x40]
mov r8, rdi
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x50]
lea rax, [rbp + 0x470]
mov rcx, 0xffffffff80000002
lea rdx, [rbp + 0x70]
mov qword [rsp + 0x20], rax
call fcn.1400139b4
test eax, eax
jne 0x140013708
cmp byte [rbp + 0x470], r12b
je 0x140013708
lea rdi, [rbp + 0x470]
test esi, esi
jne 0x140013708
lea edx, [rsi + 0x3b]
mov rcx, rdi
call fcn.14001e340
mov rbx, rax
test rax, rax
je 0x140013619
inc rbx
mov byte [rax], r12b
mov edx, ebx
lea rax, [rbp + 0x470]
sub edx, eax
cmp edx, dword [rsp + 0x40]
sbb rdx, rdx
and rbx, rdx
mov r8d, 0x105
lea rdx, [rsp + 0x60]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
test eax, eax
je 0x1400136fc
xor edx, edx
lea rcx, [rsp + 0x60]
lea r8d, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov rdi, rax
test rax, rax
je 0x1400136fc
mov ecx, dword [rbp + 0x14e8]
or ecx, 0x900
mov qword [rsp + 0x48], r12
cmp dword [rbp + 0x14f0], r12d
je 0x140013675
test rbx, rbx
jne 0x140013675
bts ecx, 0xc
mov qword [rsp + 0x30], r12
lea rax, [rsp + 0x48]
mov dword [rsp + 0x28], r12d
xor r9d, r9d
mov r8d, r15d
mov qword [rsp + 0x20], rax
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
test eax, eax
je 0x1400136f3
mov rax, qword [rsp + 0x48]
test rax, rax
je 0x1400136f3
or rcx, 0xffffffffffffffff
inc rcx
cmp byte [rax + rcx], r12b
jne 0x1400136aa
dec ecx
mov dword [rsp + 0x40], ecx
cmp byte [rcx + rax], 0xd
je 0x1400136c5
cmp byte [rcx + rax], 0xa
jne 0x1400136d6
mov byte [rcx + rax], r12b
mov ecx, dword [rsp + 0x40]
mov rax, qword [rsp + 0x48]
dec ecx
jmp 0x1400136b5
or rcx, 0xffffffffffffffff
inc rcx
cmp byte [rax + rcx], r12b
jne 0x1400136da
mov dword [rsp + 0x40], ecx
test ecx, ecx
je 0x1400136f3
mov qword [r14], rax
mov esi, 1
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rdi, rbx
test rbx, rbx
jne 0x1400135e3
mov eax, esi
jmp 0x14001370e
xor eax, eax
mov rcx, qword [rbp + 0x1470]
xor rcx, rsp
call fcn.140014120
add rsp, 0x1580
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x1400139b4
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rsi
push rdi
sub rsp, 0x40
and qword [r11 - 0x18], 0
lea rax, [r11 - 0x18]
mov rdi, r9
mov qword [r11 - 0x28], rax
mov rsi, r8
mov r9d, 0x20019
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov ebx, eax
test eax, eax
jne 0x140013a21
mov rax, qword [rsp + 0x78]
mov r9, rdi
mov rcx, qword [rsp + 0x30]
xor r8d, r8d
mov qword [rsp + 0x28], rax
mov rdx, rsi
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov rcx, qword [rsp + 0x30]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rsi, qword [rsp + 0x58]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x1400143a4
Capabilities:
Allocate or change rwx memory

Disassembly:
mov rcx, 0x6c616378
jmp 0x140008c91
dec rcx
jmp 0x140009805
jmp 0x14000ad15
jne 0x140008c91
jmp 0x140009170
jmp 0x14000ad4d
jmp 0x14000ad98
jmp 0x14000add7
jmp 0x14000ae1a
jmp 0x14000ae7d
jmp 0x14000aec1
jmp 0x14000af38
jmp 0x14000af96
jmp 0x14000af9d
jmp 0x14000aff5
jmp 0x14000b07a
jmp 0x14000b0d9
jmp 0x14000b0fa
jmp 0x14000b13e
jmp 0x14000b195
jmp 0x14000b20c
jmp 0x14000b242
jmp 0x14000b28d
jmp 0x14000b30d
xor rcx, rcx
mov rdx, 0x6e93
mov r8d, 0x1000
lea r9d, [rcx + 0x40]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
call 0x14000b32d
pop rsi
add rsi, 0xe40
mov rdi, rax
mov rcx, 0x6e93
rep movsb byte [rdi], byte [rsi]
jmp rax
sub rsp, 0x28
call fcn.14001466c
add rsp, 0x28
xor rcx, rcx
invalid
invalid
invalid
invalid

Function at 0x14001f2b0
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14001f014
Function at 0x140003268
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x17b4f2e0
mov ecx, eax
mov byte [rsp + 0xdb], 0x29
mov dx, word [rsp + 0x52]
sub dx, 0xba11
mov r8w, word [rsp + 0xd6]
mov word [rsp + 0xd8], dx
mov r9, qword [rsp + 0xc0]
xor r8w, 0xa34f
movabs dword [0x8b4cc0095424448b], eax
push rsp
and al, 0x58
mov dx, word [r10 + r9*2]
mov dword [rsp + 0xdc], eax
mov r9, qword [rsp + 0x48]
sub rcx, r9
mov qword [rsp + 0xe0], rcx
mov eax, 0xfb6c3ca
mov rcx, qword [rsp + 0x48]
and rcx, 0x7c9ac9f4
mov qword [rsp + 0xe0], rcx
mov dword [rsp + 0xe0], ecx
mov dx, word [rsp + 0xae]
mov r8w, word [rsp + 0x6e]
mov rcx, qword [rsp + 0x48]
sub rcx, 0x732b9cb
mov qword [rsp + 0xe0], rcx
mov r9d, dword [rsp + 0xd0]
mov qword [rsp + 0xe0], 0x6fb172d8
add al, bl
jb 0x14000312d
outsd dx, dword [rsi]
sub eax, r9d
mov byte [rsp + 0xdb], 0xf5
mov al, byte [rsp + 0x3f]
mov byte [rsp + 0xdb], al
mov cx, word [rsp + 0x52]
xor cx, 0x3aee
movzx edx, word [rsp + 0x9e]
mov word [rsp + 0x24], cx
mov ecx, edx
call fcn.140005540
mov r8w, word [rsp + 0x24]
mov word [rsp + 0xd8], r8w
mov word [rsp + 0xae], ax
mov r9, qword [rsp + 0x80]
mov r10, qword [rsp + 0xc0]
mov r11, qword [rsp + 0xe8]
mov dword [rsp + 0xdc], 0x73ccf073
mov rsi, qword [rsp + 0x58]
mov ax, word [rsi + r10*2]
add r11, 0x42d0d7e6
mov word [rsp + 0x6e], ax
cmp r11, r9
jbe 0x1400031b7
jmp 0x14000312e
pop rsp
mov word [rsp + 0xd8], cx
mov qword [rsp + 0xc0], rdx
mov cx, word [rsp + 0x52]
and cx, cx
mov rdx, qword [rsp + 0xa0]
mov word [rsp + 0xd8], cx
mov r9, qword [rsp + 0xc0]
mov r10b, byte [rsp + 0x3f]
or r10b, 0xc5
mov byte [rsp + 0xdb], r10b
mov r11, qword [rsp + 0x48]
mov qword [rsp + 0xe0], r11
mov cx, word [rsp + 0x52]
and cx, 0x389d
mov si, word [rdx + r9*2]
mov word [rsp + 0xd8], cx
mov word [rsp + 0x9e], si
mov cx, word [rsp + 0x9e]
mov r10b, byte [rsp + 0x3f]
mov byte [rsp + 0xdb], r10b
mov eax, dword [rsp + 0x54]
mov dword [rsp + 0xdc], eax
cmp cx, r8w
je 0x140002dfd
invalid
mov dl, 0xfe
invalid