joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140029170
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.140023624
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x1400291fa
cmp byte [rbp - 0x21], r15b
je 0x1400291f5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140029230
call fcn.14001f774
test eax, eax
jne 0x14002921c
cmp byte [rbp - 0x21], r15b
je 0x140029214
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140029230
cmp byte [rbp - 0x21], r15b
je 0x14002922d
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.140022c04
test eax, eax
jne 0x1400292d0
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140023624
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14002926f
cmp byte [rbp - 0x21], r15b
je 0x1400292a4
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1400292a4
call fcn.14001f774
test eax, eax
jne 0x140029290
cmp byte [rbp - 0x21], r15b
je 0x140029289
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x1400292a4
cmp byte [rbp - 0x21], r15b
je 0x1400292a1
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.140022c04
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x1400292d0
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x1400292d3
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x1400292e1
mov rcx, rdi
call fcn.14001f524
cmp byte [rbp + 0x3f], r15b
je 0x1400292f0
mov rcx, qword [rbp + 0x27]
call fcn.14001f524
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 0x14002b5c0
Capabilities:
Parse pe header

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

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.140014940
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call fcn.140014940
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]

Function at 0x14000aa30
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x50
movsxd rbx, dword [0x1400f4104]
mov r12, rcx
test ebx, ebx
jle 0x14000ab60
mov rax, qword [0x1400f4108]
xor r9d, r9d
add rax, 0x18
nop dword [rax + rax]
mov r8, qword [rax]
cmp r8, r12
ja 0x14000aa7b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp r12, r8
jb 0x14000ab05
add r9d, 1
add rax, 0x28
cmp r9d, ebx
jne 0x14000aa60
mov rcx, r12
call fcn.14000b4b0
mov rsi, rax
test rax, rax
je 0x14000ab82
mov rax, qword [0x1400f4108]
lea rbx, [rbx + rbx*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rsi
mov dword [rax], 0
call fcn.14000b5e0
mov edx, dword [rsi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1400f4108]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14000ab67
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14000aafe
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x14000ab10
add dword [0x1400f4104], 1
add rsp, 0x50
pop rbx
pop rsi
pop r12
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 4
mov eax, 0x40
cmovne r8d, eax
add rbx, qword [0x1400f4108]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000aafe
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.14000a9c0
nop dword [rax]
xor ebx, ebx
jmp 0x14000aa88
mov rax, qword [0x1400f4108]
mov edx, dword [rsi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.14000a9c0
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.14000a9c0
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x14000b100
Capabilities:
Get thread local storage value

Disassembly:
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r13, [0x1400f4160]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400f4140]
test rbx, rbx
je 0x14000b15c
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x14000b153
test r12, r12
je 0x14000b153
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x14000b138
mov rcx, r13
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop r12
pop r13
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x14000b4b0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1400cb4b0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x14000b4d0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x14000b4d8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x14000b4d0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
movzx edx, word [r8 + 6]
lea rax, [r8 + rax + 0x18]
test edx, edx
je 0x14000b525
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x14000b51c
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x14000b4d0
add rax, 0x28
cmp rax, r9
jne 0x14000b508
xor eax, eax
ret

Function at 0x14000b530
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400cb4b0]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x14000b550
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x14000b558
mov eax, r8d
ret
cmp word [rax + 0x18], 0x20b
jne 0x14000b550
movzx r8d, word [rax + 6]
mov eax, r8d
ret

Function at 0x14000b5e0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400cb4b0]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x14000b600
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
cmp dword [rdx], 0x4550
je 0x14000b608
mov rax, r8
ret
cmp word [rdx + 0x18], 0x20b
cmove r8, rax
mov rax, r8
ret

Function at 0x140016fb0
Capabilities:
Print debug messages

Disassembly:
sub rsp, 0x98
movabs rax, 0x6c6320726f727245
movabs rdx, 0x7520676e696e6165
mov qword [rsp + 0x20], rax
movabs rax, 0x6b5f6e6970732070
mov qword [rsp + 0x28], rdx
movabs rdx, 0x20726f6620737965
mov qword [rsp + 0x30], rax
movabs rax, 0x20646165726874
mov qword [rsp + 0x38], rdx
xor edx, edx
mov qword [rsp + 0x40], rax
xor eax, eax
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x68], 0
mov qword [rsp + 0x70], 0
mov qword [rsp + 0x78], 0
mov qword [rsp + 0x80], 0
mov word [rsp + 0x88], ax
mov byte [rsp + 0x8a], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea rdx, [rsp + 0x47]
mov r8d, 0xa
mov ecx, eax
call qword [sym.imp.msvcrt.dll__ultoa]
cmp byte [rsp + 0x47], 0
je 0x1400170c2
mov eax, 0x28
lea rcx, [rsp + 0x20]
jmp 0x14001709a
add rax, 1
cmp rax, 0x6b
je 0x1400170b7
cmp byte [rcx + rax], 0
movsxd rdx, eax
jne 0x140017090
cmp edx, 0x6a
je 0x1400170b7
lea eax, [rdx + 1]
cdqe
mov byte [rsp + rdx + 0x20], 0xa
mov byte [rsp + rax + 0x20], 0
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call sub.msvcrt.dll_abort
mov eax, 0x28
mov edx, 0x27
lea rcx, [rsp + 0x20]
jmp 0x1400170ab
Function at 0x140017460
Capabilities:
Allocate thread local storage

Disassembly:
push r13
push r12
push rsi
push rbx
sub rsp, 0x28
lea rsi, [0x1400f4d40]
mov rcx, rsi
call fcn.140016d20
lea r13, [rax + 8]
mov r12, rax
mov rcx, r13
call fcn.1400165b0
mov ebx, dword [0x1400f4d40]
test ebx, ebx
jne 0x1400174d0
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x1400c1138], eax
cmp eax, 0xffffffff
je 0x1400c0076
mov dword [0x1400f4d40], 1
mov rcx, r13
call fcn.1400168d0
test r12, r12
je 0x140017502
mov rcx, r12
add rsp, 0x28
pop rbx
pop rsi
pop r12
pop r13
jmp fcn.1400170e0
cmp ebx, 1
je 0x1400174b1
mov ecx, 2
call qword [fcn.140014940]
mov r9d, ebx
mov r8, rsi
lea rdx, str._once__p_is__d_n
mov rcx, rax
call sub.msvcrt.dll_fprintf
mov rcx, r13
call fcn.1400168d0
test r12, r12
jne 0x1400174be
add rsp, 0x28
pop rbx
pop rsi
pop r12
pop r13
ret
call sub.msvcrt.dll_abort
nop
Function at 0x14001c1e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
mov dword [rbp + 0x10], ecx
mov eax, dword [rbp + 0x10]
movzx eax, ax
mov r8d, 0xa
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_FindResourceA]
call rax
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_LoadResource]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 8]
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_SizeofResource]
call rax
mov eax, eax
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
mov rdx, rax
lea rax, [0x1400c1200]
mov rcx, rax
call fcn.1400a4d90
lea rax, [0x1400c1200]
mov rcx, rax
call fcn.1400a4d30
mov rcx, rax
mov rdx, qword [rbp - 0x18]
mov rax, qword [rbp - 0x10]
mov r8, rdx
mov rdx, rax
call sub.msvcrt.dll_memcpy
mov rax, qword [rbp - 0x18]
add rsp, 0x40
pop rbp
ret

Function at 0x14001c290
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
mov dword [rbp + 0x10], ecx
mov qword [rbp + 0x18], rdx
mov eax, dword [rbp + 0x10]
movzx eax, ax
mov r8d, 0xa
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_FindResourceA]
call rax
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_LoadResource]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 8]
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_SizeofResource]
call rax
mov eax, eax
mov qword [rbp - 0x18], rax
mov rdx, qword [rbp - 0x18]
mov rax, qword [rbp + 0x18]
mov r8d, 0
mov rcx, rax
call fcn.1400a79a0
mov rax, qword [rbp + 0x18]
mov rcx, rax
call fcn.1400a6bd0
mov rcx, rax
mov rdx, qword [rbp - 0x18]
mov rax, qword [rbp - 0x10]
mov r8, rdx
mov rdx, rax
call sub.msvcrt.dll_memcpy
mov rax, qword [rbp - 0x18]
add rsp, 0x40
pop rbp
ret

Function at 0x14001c340
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
mov dword [rbp + 0x10], ecx
mov qword [rbp + 0x18], rdx
mov eax, dword [rbp + 0x10]
movzx eax, ax
mov r8d, 0xa
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_FindResourceA]
call rax
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_LoadResource]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 8]
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_SizeofResource]
call rax
mov eax, eax
mov qword [rbp - 0x18], rax
mov byte [rbp - 0x19], 0
lea rcx, [rbp - 0x19]
mov rdx, qword [rbp - 0x18]
mov rax, qword [rbp + 0x18]
mov r8, rcx
mov rcx, rax
call fcn.1400a4e10
mov rax, qword [rbp + 0x18]
mov rcx, rax
call fcn.1400a4d30
mov rcx, rax
mov rdx, qword [rbp - 0x18]
mov rax, qword [rbp - 0x10]
mov r8, rdx
mov rdx, rax
call sub.msvcrt.dll_memcpy
mov rax, qword [rbp - 0x18]
add rsp, 0x40
pop rbp
ret
Function at 0x140082550
Capabilities:
Read file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov r12, qword [sym.imp.msvcrt.dll__errno]
mov rdi, rcx
mov rsi, rdx
mov ebx, r8d
mov rcx, qword [rdi]
call sub.msvcrt.dll__fileno_1
mov ecx, eax
mov r8d, ebx
mov rdx, rsi
call sub.msvcrt.dll__read
movsxd rbp, eax
cmp eax, 0xffffffff
je 0x140082598
mov rax, rbp
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call r12
cmp dword [rax], 4
je 0x14008256a
mov rax, rbp
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret

Function at 0x1400bdc20
Capabilities:
Write file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
mov rbx, rcx
call fcn.1400bd2f0
mov rax, qword [rbx - 0x10]
mov rcx, qword [rbx - 0x40]
mov rbp, qword [rbx - 0x18]
movsxd rsi, dword [rbx - 0x24]
mov qword [rsp + 0x30], rax
mov rdi, qword [rbx - 0x38]
call fcn.14001de60
mov rcx, rax
jmp 0x1400bdb10
call fcn.1400bd2f0
call fcn.1400bd550
mov rbx, qword [rax]
test byte [rbx + 0x50], 1
je 0x1400bdb97
mov rbx, qword [rbx]
lea r12, [rsp + 0x20]
mov rdx, rbp
xor ecx, ecx
mov r8, r12
call fcn.14001d8f0
mov rdx, qword [rbx - 0x90]
mov r9, rsi
mov r8, rbx
mov rcx, r12
call fcn.14001d9e0
test al, al
jne 0x1400bdbb5
lea rbx, [0x1400ccf60]
mov r9, rsi
xor r8d, r8d
mov rcx, r12
mov rdx, rbx
call fcn.14001d9e0
test al, al
je 0x1400bdbba
mov ecx, 8
call fcn.1400bd280
lea r8, [0x140088730]
mov rdx, rbx
mov rcx, rax
mov rax, qword [0x1400cb110]
add rax, 0x10
mov qword [rcx], rax
call fcn.1400bd810
add rbx, 0x90
jmp 0x1400bdb26
call fcn.1400bd7c0
mov rcx, rdi
call fcn.14001de40
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
call sub.msvcrt.dll_abort
mov rcx, rax
call fcn.1400bd2f0
call sub.msvcrt.dll_abort
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov ecx, 8
call fcn.1400bd280
lea r8, [fcn.1400b3fd0]
lea rdx, [0x1400cdad0]
mov rcx, rax
mov rax, qword [str._7_r_]
add rax, 0x10
mov qword [rcx], rax
call fcn.1400bd810
nop
nop
nop
mov rcx, rax
mov rax, rdx
sub rax, 1
jne 0x1400bdc9c
call fcn.1400bd2f0
mov rcx, rax
mov rax, qword [rax]
call qword [rax + 0x10]
mov ecx, 2
mov rbx, rax
call rsi
mov r9, rax
mov r8d, 0xb
mov edx, 1
lea rcx, str.__what__:
call sub.msvcrt.dll_fwrite
mov ecx, 2
call rsi
mov rdx, rax
mov rcx, rbx
call sub.msvcrt.dll_fputs
mov ecx, 2
call rsi
mov rdx, rax
mov ecx, 0xa
call sub.msvcrt.dll_fputc
call fcn.1400bd420
call sub.msvcrt.dll_abort
mov rcx, rdi
call sub.msvcrt.dll_free
call fcn.1400bd7c0
call fcn.1400bd2f0
call fcn.1400bd420
jmp 0x1400bdc8a
Function at 0x180001000
Capabilities:
Acquire debug privileges

Disassembly:
sub rsp, 0x48
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x50]
mov edx, 0x28
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x180001084
lea r8, [rsp + 0x58]
lea rdx, [0x18001b0f8]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov rcx, qword [rsp + 0x50]
test eax, eax
je 0x18000107e
mov rax, qword [rsp + 0x58]
lea r8, [rsp + 0x30]
xor edx, edx
mov qword [rsp + 0x34], rax
xor eax, eax
mov dword [rsp + 0x30], 1
mov qword [rsp + 0x28], rax
lea r9d, [rax + 0x10]
mov dword [rsp + 0x3c], 2
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x18000108b
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
add rsp, 0x48
ret
mov eax, 1
add rsp, 0x48
ret

Function at 0x1800010a0
Capabilities:
Get common file path
Write file on windows

Disassembly:
push rbx
sub rsp, 0x270
mov rax, qword [0x18001e038]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov ecx, 0x15c48
mov dword [rsp + 0x40], 0x15c48
call fcn.1800038e0
mov rbx, rax
test rax, rax
jne 0x1800010e1
lea rcx, str.malloc_error___n
call fcn.180001450
lea r8, [0x180013ce0]
lea rdx, [rsp + 0x40]
mov r9d, 0x7418
mov rcx, rbx
call fcn.180009a60
cmp eax, 0xfffffffb
je 0x180001260
cmp eax, 0xfffffffc
je 0x180001248
test eax, eax
je 0x18000112c
lea rcx, str.uncompress_unknow_error__n
call fcn.180001450
mov rcx, rbx
call fcn.1800038a0
xor eax, eax
jmp 0x18000121f
mov edx, dword [rsp + 0x40]
lea rcx, str.uncompressedsize_d_n
mov qword [rsp + 0x280], rdi
call fcn.180001450
lea rcx, str.Z_OK
call fcn.180001450
lea rcx, [rsp + 0x50]
xor edx, edx
mov r8d, 0x104
call fcn.1800062b0
lea rdx, [rsp + 0x50]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
lea r8, str.instsrv.dat
lea rcx, [rsp + 0x50]
mov edx, 0x104
call fcn.180003998
xor r9d, r9d
mov qword [rsp + 0x30], 0
lea rcx, [rsp + 0x50]
lea r8d, [r9 + 2]
mov edx, 0x40000000
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x180001238
mov r8d, dword [rsp + 0x40]
lea r9, [rsp + 0x44]
mov rdx, rbx
mov rcx, rax
mov dword [rsp + 0x44], 0
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x180001244
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov rcx, rbx
call fcn.1800038a0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, str.CreateFile_ok_________n
call fcn.180001450
mov eax, 1
mov rdi, qword [rsp + 0x280]
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.180003880
add rsp, 0x270
pop rbx
ret
lea rcx, str.CreateFile_error__n
call fcn.180001450
xor eax, eax
jmp 0x180001217
lea rcx, str.Z_MEM_ERROR
call fcn.180001450
mov rcx, rbx
call fcn.1800038a0
xor eax, eax
jmp 0x18000121f
lea rcx, str.Z_BUF_ERROR
call fcn.180001450
mov rcx, rbx
call fcn.1800038a0
xor eax, eax
jmp 0x18000121f
Function at 0x180001280
Capabilities:
Check os version

Disassembly:
sub rsp, 0x158
mov rax, qword [0x18001e038]
xor rax, rsp
mov qword [rsp + 0x140], rax
lea rcx, str.StartService
call fcn.180001450
lea r8, str.instsrv.dat
lea rcx, [0x180013ce0]
mov edx, 0x7418
call fcn.1800010a0
test eax, eax
jne 0x1800012cf
lea rcx, str.unpack_file_error__n
call fcn.180001450
jmp 0x180001337
lea rcx, [rsp + 0x20]
xor edx, edx
mov r8d, 0x11c
call fcn.1800062b0
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x11c
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x18000130f
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x114
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x180001337
mov eax, dword [rsp + 0x24]
cmp eax, 5
jae 0x180001326
call fcn.180001000
lea rcx, str.dwm.exe
jmp 0x180001332
call fcn.180001000
lea rcx, str.explorer.exe
call fcn.180001380
xor eax, eax
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.180003880
add rsp, 0x158
ret

Function at 0x180001380
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x270
mov rax, qword [0x18001e038]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov rdi, rcx
lea rcx, [rsp + 0x24]
xor edx, edx
mov r8d, 0x234
mov dword [rsp + 0x20], 0
call fcn.1800062b0
xor edx, edx
lea ecx, [rdx + 2]
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x1800013d3
xor eax, eax
jmp 0x18000142b
lea rdx, [rsp + 0x20]
mov rcx, rax
mov dword [rsp + 0x20], 0x238
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x1800013cf
nop dword [rax]
lea rdx, [rsp + 0x4c]
mov rcx, rdi
call fcn.180003bf4
test eax, eax
je 0x180001412
lea rdx, [rsp + 0x20]
mov rcx, rbx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x1800013f0
mov edx, dword [rsp + 0x28]
mov cl, 1
call fcn.180001930
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.180003880
mov rbx, qword [rsp + 0x288]
add rsp, 0x270
pop rdi
ret

Function at 0x180001450
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbx
sub rsp, 0x830
mov rax, qword [0x18001e038]
xor rax, rsp
mov qword [rsp + 0x820], rax
mov rbx, rcx
xor eax, eax
lea rcx, [rsp + 0x22]
xor edx, edx
mov r8d, 0x7fe
mov word [rsp + 0x20], ax
call fcn.1800062b0
lea r8, [rsp + 0x848]
lea rcx, [rsp + 0x20]
mov rdx, rbx
call qword [sym.imp.USER32.dll_wvsprintfW]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, qword [rsp + 0x820]
xor rcx, rsp
call fcn.180003880
add rsp, 0x830
pop rbx
ret
Function at 0x180002fa0
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
sub rsp, 0x30
mov rbp, rcx
test r9b, r9b
mov eax, 4
mov ecx, 0x40
mov rsi, rdx
mov r9d, 0x1004
cmovne eax, ecx
mov rcx, qword [rbp + 8]
xor edx, edx
mov rdi, r8
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov rbx, rax
mov qword [rsp + 0x50], rax
test rax, rax
je 0x18000307b
mov rcx, qword [rbp + 8]
mov r9, rdi
mov r8, rsi
mov rdx, rax
mov dword [rsp + 0x68], 0
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x180003063
mov rsi, qword [rbp + 0x38]
lea r9, [rsp + 0x50]
lea rcx, [rbp + 0x10]
mov r8, qword [rsi + 8]
mov rdx, rsi
call fcn.1800034d0
lea rcx, [rbp + 0x10]
mov edx, 1
mov rbx, rax
call fcn.180003540
mov qword [rsi + 8], rbx
mov rcx, qword [rbx + 8]
mov qword [rcx], rbx
mov rbx, qword [rsp + 0x50]
test rbx, rbx
je 0x18000307b
mov rax, rbx
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
pop rsi
pop rbp
ret
mov rcx, qword [rbp + 8]
mov r9d, 0x8000
xor r8d, r8d
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
xor ebx, ebx
mov rax, rbx
mov rbx, qword [rsp + 0x58]
mov byte [rbp + 0x48], 1
add rsp, 0x30
pop rdi
pop rsi
pop rbp
ret

Function at 0x1800045ab
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x18001e038]
jne 0x18000389a
rol rcx, 0x10
test cx, 0xffff
jne 0x180003896
repz ret
ror rcx, 0x10
jmp 0x180004504
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x18001f2b0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov r11, qword [0x18001f3a8]
mov qword [rsp + 0x58], r11
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 0x180004589
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, [0x18001f2b0]
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 0x1800045ab
mov rax, qword [rsp + 0x88]
mov qword [0x18001f3a8], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x18001f348], rax
mov rax, qword [0x18001f3a8]
mov qword [0x18001f220], rax
mov rax, qword [rsp + 0x90]
mov qword [0x18001f330], rax
mov dword [0x18001f210], 0xc0000409
mov dword [0x18001f214], 1
mov rax, qword [0x18001e038]
mov qword [rsp + 0x68], rax
mov rax, qword [0x18001e040]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x18001f2a8], eax
mov ecx, 1
call fcn.180006298
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x18000f3a0]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x18001f2a8], 0
jne 0x180004632
mov ecx, 1
call fcn.180006298
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 0x180004a6c
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
lea edx, [r8 + 1]
jmp 0x1800048e0