joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140014e90
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call fcn.14001bdf0
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call fcn.14001bdf0
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop

Function at 0x140015b62
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x140037228]
test eax, eax
je 0x140015bfa
lea rax, [0x140037200]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x140037230]
mov qword [rbp - 8], rax
jmp 0x140015bde
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x140015bd2
cmp qword [rbp - 0x10], 0
je 0x140015bd2
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x140015b98
lea rax, [0x140037200]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x140015bfb
nop
add rsp, 0x30
pop rbp
ret

Function at 0x140015d00
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x140015d28
mov eax, 0
jmp 0x140015d76
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x140015d51
mov eax, 0
jmp 0x140015d76
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x140015d71
mov eax, 0
jmp 0x140015d76
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x140015d7c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x140015dfa
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x140015df1
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x140015df1
mov rax, qword [rbp - 8]
jmp 0x140015e0f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x140015dc4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140001c04
Capabilities:
Reference http user-agent string

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov qword [rsp + 0x50], 0
mov rax, qword [rsp + 0x90]
mov dword [rax], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov edx, 1
lea rcx, str.Mozilla_5.0__Windows_NT_10.0__Win64__x64__AppleWebKit_537.36__KHTML__like_Gecko__Chrome_130.0.0.0_Safari_537.3
call qword [0x1400071d8]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
jne 0x140001c68
mov ecx, 0x1388
call qword [0x140007180]
jmp 0x140001c2e
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x84000000
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x48]
call qword [0x140007248]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
jne 0x140001cf1
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x84000000
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x48]
call qword [0x140007248]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
jne 0x140001cf1
mov rcx, qword [rsp + 0x48]
call qword [0x1400071f8]
mov ecx, 0x1388
call qword [0x140007180]
jmp 0x140001c2e
mov dword [rsp + 0x3c], 0
mov dword [rsp + 0x38], 4
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x38]
lea r8, [rsp + 0x3c]
mov edx, 0x20000005
mov rcx, qword [rsp + 0x30]
call qword [0x140007258]
mov eax, dword [rsp + 0x3c]
mov qword [rsp + 0x60], rax
call qword [0x140007308]
mov rcx, qword [rsp + 0x60]
mov r8, rcx
mov edx, 8
mov rcx, rax
call qword [0x140007300]
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
jne 0x140001d70
mov rcx, qword [rsp + 0x30]
call qword [0x1400071f8]
mov rcx, qword [rsp + 0x48]
call qword [0x1400071f8]
xor eax, eax
jmp 0x140001def
mov dword [rsp + 0x40], 0
mov eax, dword [rsp + 0x40]
mov ecx, dword [rsp + 0x3c]
sub ecx, eax
mov eax, ecx
mov ecx, dword [rsp + 0x40]
mov rdx, qword [rsp + 0x50]
add rdx, rcx
mov rcx, rdx
lea r9, [rsp + 0x58]
mov r8d, eax
mov rdx, rcx
mov rcx, qword [rsp + 0x30]
call qword [0x140007250]
test eax, eax
je 0x140001dc6
cmp dword [rsp + 0x58], 0
jbe 0x140001dc6
mov eax, dword [rsp + 0x58]
mov ecx, dword [rsp + 0x40]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x40], eax
jmp 0x140001d78
mov rax, qword [rsp + 0x90]
mov ecx, dword [rsp + 0x40]
mov dword [rax], ecx
mov rcx, qword [rsp + 0x30]
call qword [0x1400071f8]
mov rcx, qword [rsp + 0x48]
call qword [0x1400071f8]
mov rax, qword [rsp + 0x50]
add rsp, 0x78
ret
Function at 0x1400027e4
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x28
xor eax, eax
mov word [rsp + 8], ax
mov qword [rsp], 0
mov qword [rsp + 0x10], 0
mov rax, qword [rsp + 0x38]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x38]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x10], rax
mov rax, qword [rsp + 0x10]
movzx eax, word [rax + 0x14]
mov rcx, qword [rsp + 0x10]
lea rax, [rcx + rax + 0x18]
mov qword [rsp], rax
mov rax, qword [rsp]
mov eax, dword [rax + 0x14]
cmp dword [rsp + 0x30], eax
jae 0x14000284f
mov eax, dword [rsp + 0x30]
jmp 0x1400028e9
xor eax, eax
mov word [rsp + 8], ax
jmp 0x140002865
movzx eax, word [rsp + 8]
inc ax
mov word [rsp + 8], ax
movzx eax, word [rsp + 8]
mov rcx, qword [rsp + 0x10]
movzx ecx, word [rcx + 6]
cmp eax, ecx
jge 0x1400028e7
movzx eax, word [rsp + 8]
imul rax, rax, 0x28
mov rcx, qword [rsp]
mov eax, dword [rcx + rax + 0xc]
cmp dword [rsp + 0x30], eax
jb 0x1400028e2
movzx eax, word [rsp + 8]
imul rax, rax, 0x28
movzx ecx, word [rsp + 8]
imul rcx, rcx, 0x28
mov rdx, qword [rsp]
mov eax, dword [rdx + rax + 0xc]
mov rdx, qword [rsp]
add eax, dword [rdx + rcx + 0x10]
cmp dword [rsp + 0x30], eax
jae 0x1400028e2
movzx eax, word [rsp + 8]
imul rax, rax, 0x28
mov rcx, qword [rsp]
mov eax, dword [rcx + rax + 0xc]
mov ecx, dword [rsp + 0x30]
sub ecx, eax
mov eax, ecx
movzx ecx, word [rsp + 8]
imul rcx, rcx, 0x28
mov rdx, qword [rsp]
add eax, dword [rdx + rcx + 0x14]
jmp 0x1400028e9
jmp 0x140002858
xor eax, eax
add rsp, 0x28
ret
Function at 0x1400028f4
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x40], 0
mov dword [rsp + 0x20], 0
mov dword [rsp + 0x30], 2
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x38]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
movzx eax, word [rax + 0x18]
cmp eax, 0x10b
jne 0x14000297d
cmp dword [rsp + 0x30], 1
je 0x14000297b
xor eax, eax
jmp 0x140002b0f
jmp 0x1400029a4
mov rax, qword [rsp + 0x48]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
jne 0x14000299d
cmp dword [rsp + 0x30], 2
je 0x14000299b
xor eax, eax
jmp 0x140002b0f
jmp 0x1400029a4
xor eax, eax
jmp 0x140002b0f
mov rax, qword [rsp + 0x48]
add rax, 0x88
mov qword [rsp + 0x28], rax
mov rdx, qword [rsp + 0x38]
mov rax, qword [rsp + 0x28]
mov ecx, dword [rax]
call fcn.1400027e4
mov eax, eax
mov rcx, qword [rsp + 0x38]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x48], rax
mov rdx, qword [rsp + 0x38]
mov rax, qword [rsp + 0x48]
mov ecx, dword [rax + 0x20]
call fcn.1400027e4
mov eax, eax
mov rcx, qword [rsp + 0x38]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rdx, qword [rsp + 0x38]
mov rax, qword [rsp + 0x48]
mov ecx, dword [rax + 0x1c]
call fcn.1400027e4
mov eax, eax
mov rcx, qword [rsp + 0x38]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
mov rdx, qword [rsp + 0x38]
mov rax, qword [rsp + 0x48]
mov ecx, dword [rax + 0x24]
call fcn.1400027e4
mov eax, eax
mov rcx, qword [rsp + 0x38]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x48]
mov eax, dword [rax + 0x18]
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
mov ecx, dword [rsp + 0x20]
dec ecx
mov dword [rsp + 0x20], ecx
test eax, eax
je 0x140002b0d
mov rdx, qword [rsp + 0x38]
mov rax, qword [rsp + 0x28]
mov ecx, dword [rax]
call fcn.1400027e4
mov eax, eax
mov rcx, qword [rsp + 0x38]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x58], rax
mov rdx, qword [0x140007038]
mov rcx, qword [rsp + 0x58]
call qword [0x140007150]
test rax, rax
je 0x140002aec
mov rdx, qword [rsp + 0x38]
mov rax, qword [rsp + 0x48]
mov ecx, dword [rax + 0x1c]
call fcn.1400027e4
mov eax, eax
mov rcx, qword [rsp + 0x38]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x40]
movzx eax, word [rax]
mov rcx, qword [rsp + 0x50]
lea rax, [rcx + rax*4]
mov qword [rsp + 0x50], rax
mov rdx, qword [rsp + 0x38]
mov rax, qword [rsp + 0x50]
mov ecx, dword [rax]
call fcn.1400027e4
jmp 0x140002b0f
mov rax, qword [rsp + 0x28]
add rax, 4
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x40]
add rax, 2
mov qword [rsp + 0x40], rax
jmp 0x140002a4f
xor eax, eax
add rsp, 0x68
ret
Function at 0x140003de0
Capabilities:
Acquire debug privileges

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x70
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x40], 0
mov dword [rsp + 0x48], 0
mov dword [rsp + 0x68], 0
mov dword [rsp + 0x58], 0
lea rax, [rsp + 0x5c]
mov rdi, rax
xor eax, eax
mov ecx, 0xc
rep stosb byte [rdi], al
mov dword [rsp + 0x4c], 1
mov dword [rsp + 0x38], 0
call qword [0x140007388]
lea r8, [rsp + 0x40]
mov edx, 0x28
mov rcx, rax
call qword [0x1400072d0]
test eax, eax
je 0x140003ebe
mov dword [rsp + 0x58], 1
mov dword [rsp + 0x64], 2
lea r8, [rsp + 0x5c]
lea rdx, str.SeDebugPrivilege
xor ecx, ecx
call qword [0x1400072d8]
test eax, eax
je 0x140003eb3
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [rsp + 0x58]
xor edx, edx
mov rcx, qword [rsp + 0x40]
call qword [0x1400072c8]
mov rcx, qword [rsp + 0x40]
call qword [0x140007110]
mov r8d, dword [rsp + 0x90]
xor edx, edx
mov ecx, 0x43a
call qword [0x1400073b8]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
jne 0x140003eea
mov dword [rsp + 0x4c], 0
jmp 0x140003f38
xor r9d, r9d
mov r8d, dword [rsp + 0x88]
mov rdx, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x30]
call fcn.140002b24
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
jne 0x140003f1e
mov dword [rsp + 0x4c], 0
jmp 0x140003f38
mov edx, 0xffffffff
mov rcx, qword [rsp + 0x50]
call qword [0x140007370]
xor eax, eax
test eax, eax
jne 0x140003e47
cmp qword [rsp + 0x30], 0
je 0x140003f4b
mov rcx, qword [rsp + 0x30]
call qword [0x140007110]
mov eax, dword [rsp + 0x4c]
add rsp, 0x70
pop rdi
ret
Function at 0x67a413d0
Capabilities:
Check os version

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0xc0
mov dword [rbp - 0xa0], 0x94
lea rax, [rbp - 0xa0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetVersionExA]
call rax
mov eax, dword [rbp - 0x9c]
cmp eax, 6
jne 0x67a41415
mov eax, dword [rbp - 0x98]
cmp eax, 1
jne 0x67a41415
mov eax, 1
jmp 0x67a4141a
mov eax, 0
add rsp, 0xc0
pop rbp
ret

Function at 0x67a41423
Capabilities:
Get system firmware table

Disassembly:
push rbp
sub rsp, 0x430
lea rbp, [rsp + 0x80]
mov dword [rbp + 0x3a8], 0x400
lea rax, [rbp - 0x60]
mov r9d, 0x400
mov r8, rax
mov edx, 0
mov ecx, 0x52534d42
mov rax, qword [sym.imp.KERNEL32.dll_GetSystemFirmwareTable]
call rax
mov dword [rbp + 0x3a4], eax
cmp dword [rbp + 0x3a4], 0
jne 0x67a41476
mov eax, 1
jmp 0x67a4151f
mov dword [rbp + 0x3ac], 0
mov eax, dword [rbp + 0x3a4]
sub eax, 8
cmp dword [rbp + 0x3ac], eax
jae 0x67a4151a
lea rdx, [rbp - 0x60]
mov eax, dword [rbp + 0x3ac]
add rax, rdx
mov r8d, 6
lea rdx, str.VMware
mov rcx, rax
call sub.msvcrt.dll_memcmp
test eax, eax
je 0x67a41507
lea rdx, [rbp - 0x60]
mov eax, dword [rbp + 0x3ac]
add rax, rdx
mov r8d, 0xa
lea rdx, str.VirtualBox
mov rcx, rax
call sub.msvcrt.dll_memcmp
test eax, eax
je 0x67a41507
lea rdx, [rbp - 0x60]
mov eax, dword [rbp + 0x3ac]
add rax, rdx
mov r8d, 7
lea rdx, str.Hyper_V
mov rcx, rax
call sub.msvcrt.dll_memcmp
test eax, eax
jne 0x67a4150e
mov eax, 1
jmp 0x67a4151f
add dword [rbp + 0x3ac], 1
jmp 0x67a41480
mov eax, 0
add rsp, 0x430
pop rbp
ret
Function at 0x67a41528
Capabilities:
Read file on windows

Disassembly:
push rbp
sub rsp, 0x2c0
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x250], rcx
mov dword [rbp + 0x258], edx
lea rax, [rbp + 0xe0]
mov rdx, rax
lea rcx, str.2.zal_21d24733_1369_46aa_9e1d_58b276b4d7a0.
mov rax, qword [sym.imp.KERNEL32.dll_FindFirstFileA]
call rax
mov qword [rbp + 0x230], rax
cmp qword [rbp + 0x230], 0xffffffffffffffff
jne 0x67a4157a
mov eax, 0
jmp 0x67a416e4
lea rax, [rbp - 0x30]
mov word [rax], 0x5c2e
mov byte [rax + 2], 0
lea rax, [rbp + 0xe0]
lea rdx, [rax + 0x2c]
lea rax, [rbp - 0x30]
mov rcx, rax
call sub.msvcrt.dll_strcat
lea rax, [rbp - 0x30]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], pe_nt_image_headers64
mov dword [rsp + 0x20], 3
mov r9d, 0
mov r8d, 1
mov edx, 0x80000000
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CreateFileA]
call rax
mov qword [rbp + 0x228], rax
cmp qword [rbp + 0x228], 0xffffffffffffffff
jne 0x67a41606
mov rax, qword [rbp + 0x230]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_FindClose]
call rax
mov eax, 0
jmp 0x67a416e4
mov edx, dword [rbp + 0x258]
lea rcx, [rbp - 0x34]
mov rax, qword [rbp + 0x228]
mov qword [rsp + 0x20], 0
mov r9, rcx
mov r8d, edx
mov rdx, qword [rbp + 0x250]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_ReadFile]
call rax
mov dword [rbp + 0x224], eax
mov rax, qword [rbp + 0x228]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp + 0x230]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_FindClose]
call rax
cmp dword [rbp + 0x224], 0
jne 0x67a41675
mov eax, 0
jmp 0x67a416e4
mov dword [rbp + 0x23c], 0
mov eax, dword [rbp - 0x34]
cmp dword [rbp + 0x23c], eax
jge 0x67a416df
mov eax, dword [rbp + 0x23c]
movsxd rdx, eax
mov rax, qword [rbp + 0x250]
add rax, rdx
movzx eax, byte [rax]
cmp al, 0xd
je 0x67a416be
mov eax, dword [rbp + 0x23c]
movsxd rdx, eax
mov rax, qword [rbp + 0x250]
add rax, rdx
movzx eax, byte [rax]
cmp al, 0xa
jne 0x67a416d6
mov eax, dword [rbp + 0x23c]
movsxd rdx, eax
mov rax, qword [rbp + 0x250]
add rax, rdx
mov byte [rax], 0
jmp 0x67a416df
add dword [rbp + 0x23c], 1
jmp 0x67a4167f
mov eax, 1
add rsp, 0x2c0
pop rbp
ret
Function at 0x67a41a0d
Capabilities:
Create process on windows
Terminate process

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0xe0
mov qword [rbp + 0x10], rcx
lea rax, [rbp - 0x70]
mov r8d, 0x68
mov edx, 0
mov rcx, rax
call sub.msvcrt.dll_memset
mov dword [rbp - 0x70], 0x68
mov dword [rbp - 0x34], 1
mov word [rbp - 0x30], 0
lea rax, [rbp - 0x90]
mov r8d, 0x18
mov edx, 0
mov rcx, rax
call sub.msvcrt.dll_memset
lea rax, [rbp - 0x90]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x70]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9d, 0
mov r8d, 0
mov rdx, qword [rbp + 0x10]
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateProcessA]
call rax
test eax, eax
sete al
test al, al
je 0x67a41acd
mov ecx, 1
mov rax, qword [sym.imp.KERNEL32.dll_ExitProcess]
call rax
mov rax, qword [rbp - 0x90]
mov edx, 0xffffffff
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call rax
mov rax, qword [rbp - 0x90]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp - 0x88]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
nop
add rsp, 0xe0
pop rbp
ret
Function at 0x67a41b15
Capabilities:
Terminate process

Disassembly:
push rbp
sub rsp, 0x930
lea rbp, [rsp + 0x80]
call fcn.67a413d0
test al, al
je 0x67a41b3c
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_ExitProcess]
call rax
movzx eax, byte [0x67a44010]
test al, al
je 0x67a41b57
call fcn.67a41423
test al, al
je 0x67a41b57
mov eax, 1
jmp 0x67a41b5c
mov eax, 0
test al, al
je 0x67a41b6e
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_ExitProcess]
call rax
lea rax, [rbp + 0x7a0]
mov r8d, 0x104
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
call rax
lea rax, [rbp + 0x7a0]
mov edx, 0x5c
mov rcx, rax
call sub.msvcrt.dll_strrchr
add rax, 1
lea rdx, str.rundll32.exe
mov rcx, rax
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x67a41bc5
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_ExitProcess]
call rax
lea rax, [rbp + 0x3a0]
mov edx, 0x400
mov rcx, rax
call fcn.67a41528
test eax, eax
sete al
test al, al
je 0x67a41bf0
mov ecx, 1
mov rax, qword [sym.imp.KERNEL32.dll_ExitProcess]
call rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcessHeap]
call rax
mov r8d, 0x400
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_HeapAlloc]
call rax
mov qword [rbp + 0x8a8], rax
cmp qword [rbp + 0x8a8], 0
jne 0x67a41c2f
mov ecx, 1
mov rax, qword [sym.imp.KERNEL32.dll_ExitProcess]
call rax
mov rdx, qword [rbp + 0x8a8]
lea rax, [rbp + 0x3a0]
mov rcx, rax
call fcn.67a416ed
mov dword [rbp + 0x8a4], eax
cmp dword [rbp + 0x8a4], 0
je 0x67a41c64
mov eax, dword [rbp + 0x8a4]
cdqe
cmp rax, 0x3ff
jbe 0x67a41c96
mov rax, qword [sym.imp.KERNEL32.dll_GetProcessHeap]
call rax
mov rdx, qword [rbp + 0x8a8]
mov r8, rdx
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_HeapFree]
call rax
mov ecx, 1
mov rax, qword [sym.imp.KERNEL32.dll_ExitProcess]
call rax
mov eax, dword [rbp + 0x8a4]
movsxd rcx, eax
mov rdx, qword [rbp + 0x8a8]
lea rax, [rbp - 0x60]
mov r8, rcx
mov rcx, rax
call sub.msvcrt.dll_memcpy
mov eax, dword [rbp + 0x8a4]
cdqe
mov byte [rbp + rax - 0x60], 0
mov rax, qword [sym.imp.KERNEL32.dll_GetProcessHeap]
call rax
mov rdx, qword [rbp + 0x8a8]
mov r8, rdx
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_HeapFree]
call rax
lea rax, [rbp - 0x60]
mov rcx, rax
call fcn.67a41a0d
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_ExitProcess]
call rax
nop

Function at 0x67a420c0
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.67a43360
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.67a43360
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 0x67a42130
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rdi, dword [0x67a485e4]
mov r12, rcx
mov rsi, rdx
mov rbx, r8
test edi, edi
jle 0x67a422d8
mov rax, qword [0x67a485e8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp r12, rdx
jb 0x67a4217c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x67a42207
add ecx, 1
add rax, 0x28
cmp ecx, edi
jne 0x67a42160
mov rcx, r12
call fcn.67a42e30
mov rbp, rax
test rax, rax
je 0x67a42312
mov rax, qword [0x67a485e8]
lea rdi, [rdi + rdi*4]
shl rdi, 3
add rax, rdi
mov qword [rax + 0x20], rbp
mov dword [rax], 0
call fcn.67a42f60
mov ecx, dword [rbp + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x67a485e8]
mov qword [rax + rdi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x67a42321
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x67a42200
sub eax, 4
and eax, 0xfffffffb
jne 0x67a42290
add dword [0x67a485e4], 1
cmp ebx, 8
jae 0x67a42238
test bl, 4
jne 0x67a422e0
test ebx, ebx
je 0x67a42229
movzx eax, byte [rsi]
mov byte [r12], al
test bl, 2
jne 0x67a42300
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rax, qword [rsi]
lea rcx, [r12 + 8]
and rcx, 0xfffffffffffffff8
mov qword [r12], rax
mov eax, ebx
mov rdx, qword [rsi + rax - 8]
mov qword [r12 + rax - 8], rdx
sub r12, rcx
add ebx, r12d
sub rsi, r12
and ebx, 0xfffffff8
cmp ebx, 8
jb 0x67a42229
and ebx, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov r8, qword [rsi + rdx]
mov qword [rcx + rdx], r8
cmp eax, ebx
jb 0x67a4226a
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
add rdi, qword [0x67a485e8]
mov qword [rdi + 8], rcx
mov r9, rdi
mov qword [rdi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x67a42200
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.67a420c0
nop dword [rax]
xor edi, edi
jmp 0x67a42187
mov eax, dword [rsi]
mov ebx, ebx
mov dword [r12], eax
mov eax, dword [rsi + rbx - 4]
mov dword [r12 + rbx - 4], eax
jmp 0x67a42229
mov ebx, ebx
movzx eax, word [rsi + rbx - 2]
mov word [r12 + rbx - 2], ax
jmp 0x67a42229
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.67a420c0
mov rax, qword [0x67a485e8]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rdi + 0x18]
call fcn.67a420c0
nop
nop dword [rax]
Function at 0x67a42aa0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x67a488c0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x67a488a0]
test rbx, rbx
je 0x67a42af4
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 0x67a42aeb
test r12, r12
je 0x67a42aeb
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x67a42ad0
lea rcx, [0x67a488c0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x67a42e30
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r10, qword [0x67a452a0]
xor r8d, r8d
cmp word [r10], 0x5a4d
mov r9, rcx
jne 0x67a42ea9
mov rcx, r10
call fcn.67a42d00
test eax, eax
je 0x67a42ea9
movsxd rax, dword [r10 + 0x3c]
mov rcx, r9
sub rcx, r10
add r10, rax
movzx eax, word [r10 + 0x14]
lea r8, [r10 + rax + 0x18]
movzx eax, word [r10 + 6]
test eax, eax
je 0x67a42ea6
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [r8 + rax*8 + 0x28]
nop dword [rax]
mov edx, dword [r8 + 0xc]
mov rax, rdx
cmp rcx, rdx
jb 0x67a42e9d
add eax, dword [r8 + 8]
cmp rcx, rax
jb 0x67a42ea9
add r8, 0x28
cmp r8, r9
jne 0x67a42e88
xor r8d, r8d
mov rax, r8
add rsp, 0x28
ret