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

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x180
mov rax, qword [0x1800c20c0]
xor rax, rsp
mov qword [rsp + 0x170], rax
mov rsi, rdx
mov rdi, rcx
mov rax, qword [rcx + 0x10]
dec rax
cmp rax, 0xfffffffffffffffd
ja 0x180023936
mov rbx, qword [rcx + 0x18]
mov qword [rsp + 0x30], rbx
mov rcx, rbx
call fcn.180049d9c
test eax, eax
jne 0x180023963
mov eax, dword [rbx + 0x4c]
cmp eax, 0x7fffffff
je 0x18002396e
xor r14d, r14d
mov qword [rsi + 0x28], r14
mov qword [rsi + 0x30], r14
xor edx, edx
mov r8d, pe_nt_image_headers64
lea rcx, [rsp + 0x50]
call fcn.1800747b0
mov qword [rsp + 0x60], r14
lea r15, vtable.fmt::v10::basic_memory_buffer_char__250__class_std::allocator_char__.0
mov qword [rsp + 0x50], r15
lea rax, [rsp + 0x70]
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x68], 0xfa
mov rcx, qword [rdi + 0x28]
mov rax, qword [rcx]
lea r8, [rsp + 0x50]
mov rdx, rsi
call qword [rax + 8]
cmp byte [rdi + 0x20], r14b
je 0x1800238ca
mov r8, qword [rsi + 0x28]
cmp qword [rsi + 0x30], r8
jbe 0x1800238ca
test r8, r8
je 0x18002382a
mov qword [rsp + 0x20], r14
xor r9d, r9d
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rdi + 0x10]
call qword [sym.imp.KERNEL32.dll_WriteConsoleA]
movsxd rax, dword [rsi + 0x10]
movzx ebp, word [rdi + rax*2 + 0x30]
lea rdx, [rsp + 0x38]
mov rcx, qword [rdi + 0x10]
call qword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
test eax, eax
jne 0x18002384b
lea ebp, [rax + 7]
jmp 0x180023866
mov edx, dword [rsp + 0x40]
and edx, 0xfff0
or edx, ebp
mov rcx, qword [rdi + 0x10]
call qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
movzx ebp, word [rsp + 0x40]
mov r8, qword [rsi + 0x30]
mov rcx, qword [rsi + 0x28]
cmp r8, rcx
jbe 0x180023890
sub r8d, ecx
mov rdx, qword [rsp + 0x58]
add rdx, rcx
mov qword [rsp + 0x20], r14
xor r9d, r9d
mov rcx, qword [rdi + 0x10]
call qword [sym.imp.KERNEL32.dll_WriteConsoleA]
movzx edx, bp
mov rcx, qword [rdi + 0x10]
call qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
mov rcx, qword [rsi + 0x30]
mov r8, qword [rsp + 0x60]
cmp r8, rcx
jbe 0x1800238ee
sub r8d, ecx
mov rdx, qword [rsp + 0x58]
add rdx, rcx
mov qword [rsp + 0x20], r14
xor r9d, r9d
mov rcx, qword [rdi + 0x10]
call qword [sym.imp.KERNEL32.dll_WriteConsoleA]
jmp 0x1800238ee
mov dword [rsp + 0x30], r14d
mov qword [rsp + 0x20], r14
lea r9, [rsp + 0x30]
mov r8d, dword [rsp + 0x60]
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rdi + 0x10]
call qword [sym.imp.KERNEL32.dll_WriteFile]
nop
mov qword [rsp + 0x50], r15
lea rax, [rsp + 0x70]
mov rcx, qword [rsp + 0x58]
cmp rcx, rax
je 0x18002392e
mov rdx, qword [rsp + 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180023928
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18002395d
call fcn.18004b90c
nop
mov rcx, rbx
call fcn.180049dc0
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.18004b650
mov rbx, qword [rsp + 0x1c0]
add rsp, 0x180
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
call fcn.18005b2ec
nop
mov ecx, 5
call fcn.18004a3cc
int3
dec eax
mov dword [rbx + 0x4c], eax
mov ecx, 6
call fcn.18004a3cc
int3
Function at 0x180041e30
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x1b0]
sub rsp, 0x2b0
mov rax, qword [0x1800c20c0]
xor rax, rsp
mov qword [rbp + 0x1a0], rax
movzx r14d, r8b
mov rsi, rdx
mov rdi, rcx
mov qword [rsp + 0x58], rcx
xor r15d, r15d
mov dword [rsp + 0x30], r15d
lea rdx, str.C:ProgramDataMicrosoftUser_Account_Picturesuser_48.png
call fcn.18000fed0
mov dword [rsp + 0x30], 1
test r14b, r14b
je 0x180041ecc
cmp qword [rdi + 0x18], 0x3b
jb 0x180041eb8
mov rbx, qword [rdi]
mov qword [rdi + 0x10], 0x3b
lea r8d, [r15 + 0x76]
lea rdx, str.C:ProgramDataMicrosoftUser_Account_Picturesuser_192.png
mov rcx, rbx
call fcn.180074110
mov word [rbx + 0x76], r15w
jmp 0x180041ecc
lea r9, str.C:ProgramDataMicrosoftUser_Account_Picturesuser_192.png
mov edx, 0x3b
mov rcx, rdi
call fcn.180043ef0
mov rdx, rsi
lea rcx, [rsp + 0x38]
call fcn.18000fed0
nop
mov r8, rax
lea rcx, [rsp + 0x70]
call fcn.180043d10
nop
mov rdx, qword [rsp + 0x50]
cmp rdx, 7
jbe 0x180041f2a
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180041f25
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800420a1
call fcn.18004b90c
movdqa xmm0, xmmword [0x1800b0980]
movdqu xmmword [rsp + 0x48], xmm0
mov word [rsp + 0x38], r15w
lea rdx, [rsp + 0x70]
cmp qword [rbp - 0x78], 7
cmova rdx, qword [rsp + 0x70]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x180042035
mov dword [rsp + 0x68], 0x208
mov dword [rsp + 0x6c], 1
lea rax, str.Image240
lea rdx, str.Image64
test r14b, r14b
cmovne rdx, rax
lea rax, [rsp + 0x68]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x70]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x6c]
xor r8d, r8d
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x180042029
lea rcx, [rbp - 0x70]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x180042029
lea rax, [rbp - 0x70]
mov rdx, 0xffffffffffffffff
nop
inc rdx
cmp word [rax + rdx*2], 0
jne 0x180041fe0
mov rax, qword [rdi + 0x18]
cmp rdx, rax
ja 0x18004201d
mov rsi, rdi
cmp rax, 7
jbe 0x180041fff
mov rsi, qword [rdi]
mov qword [rdi + 0x10], rdx
lea rbx, [rdx + rdx]
mov r8, rbx
lea rdx, [rbp - 0x70]
mov rcx, rsi
call fcn.180074110
mov word [rbx + rsi], r15w
jmp 0x180042029
lea r9, [rbp - 0x70]
mov rcx, rdi
call fcn.180043ef0
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rdx, qword [rbp - 0x78]
cmp rdx, 7
jbe 0x180042072
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18004206d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18004209b
call fcn.18004b90c
mov rax, rdi
mov rcx, qword [rbp + 0x1a0]
xor rcx, rsp
call fcn.18004b650
mov rbx, qword [rsp + 0x2f8]
add rsp, 0x2b0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
call fcn.18005b2ec
nop
call fcn.18005b2ec
int3
Function at 0x180045a50
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x38
lea rax, [r8 - 1]
mov r14, r9
mov r15, rax
mov qword [rsp + 0x20], rax
sar r15, 1
mov r13, r8
mov rsi, rdx
mov rbp, rcx
mov r12, rdx
mov rdi, rdx
cmp rdx, r15
jge 0x180045b06
nop word [rax + rax]
lea rbx, [rdi + rdi]
lea rdx, [rbx + 2]
shl rdx, 6
add rdx, rbp
lea r8, [rdx - 0x40]
call fcn.180042290
lea rdi, [rbx + 1]
movzx eax, al
xor rax, 1
shl rsi, 6
add rdi, rax
add rsi, rbp
mov rbx, rdi
shl rbx, 6
add rbx, rbp
lea rcx, [rsi + 8]
mov rax, qword [rbx]
lea rdx, [rbx + 8]
mov qword [rsi], rax
call fcn.18003bdc0
movzx eax, word [rbx + 0x28]
mov word [rsi + 0x28], ax
mov eax, dword [rbx + 0x2c]
mov dword [rsi + 0x2c], eax
mov rax, qword [rbx + 0x30]
mov qword [rsi + 0x30], rax
movzx eax, byte [rbx + 0x38]
mov byte [rsi + 0x38], al
movzx eax, byte [rbx + 0x39]
mov byte [rsi + 0x39], al
mov rsi, rdi
cmp rdi, r15
jl 0x180045a90
mov rbx, rdi
cmp rdi, r15
jne 0x180045b69
test r13b, 1
jne 0x180045b69
shl r13, 6
lea rdx, [rbp - 0x38]
shl rdi, 6
add rdx, r13
add rdi, rbp
mov rax, qword [rbp + r13 - 0x40]
lea rcx, [rdi + 8]
mov qword [rdi], rax
call fcn.18003bdc0
movzx eax, word [rbp + r13 - 0x18]
mov rbx, qword [rsp + 0x20]
mov word [rdi + 0x28], ax
mov eax, dword [rbp + r13 - 0x14]
mov dword [rdi + 0x2c], eax
mov rax, qword [rbp + r13 - 0x10]
mov qword [rdi + 0x30], rax
movzx eax, byte [rbp + r13 - 8]
mov byte [rdi + 0x38], al
movzx eax, byte [rbp + r13 - 7]
mov byte [rdi + 0x39], al
cmp r12, rbx
jge 0x180045bd6
nop
lea rsi, [rbx - 1]
mov r8, r14
sar rsi, 1
mov rdi, rsi
shl rdi, 6
add rdi, rbp
mov rdx, rdi
call fcn.180042290
test al, al
je 0x180045bd6
mov rax, qword [rdi]
lea rdx, [rdi + 8]
shl rbx, 6
add rbx, rbp
lea rcx, [rbx + 8]
mov qword [rbx], rax
call fcn.18003bdc0
movzx eax, word [rdi + 0x28]
mov word [rbx + 0x28], ax
mov eax, dword [rdi + 0x2c]
mov dword [rbx + 0x2c], eax
mov rax, qword [rdi + 0x30]
mov qword [rbx + 0x30], rax
movzx eax, byte [rdi + 0x38]
mov byte [rbx + 0x38], al
movzx eax, byte [rdi + 0x39]
mov byte [rbx + 0x39], al
mov rbx, rsi
cmp r12, rsi
jl 0x180045b70
mov rax, qword [r14]
lea rdx, [r14 + 8]
shl rbx, 6
add rbx, rbp
lea rcx, [rbx + 8]
mov qword [rbx], rax
call fcn.18003bdc0
movzx eax, word [r14 + 0x28]
mov word [rbx + 0x28], ax
mov eax, dword [r14 + 0x2c]
mov dword [rbx + 0x2c], eax
mov rax, qword [r14 + 0x30]
mov qword [rbx + 0x30], rax
movzx eax, byte [r14 + 0x38]
mov byte [rbx + 0x38], al
movzx eax, byte [r14 + 0x39]
mov byte [rbx + 0x39], al
add rsp, 0x38
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x180045fa0
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x2b0
mov rax, qword [0x1800c20c0]
xor rax, rsp
mov qword [rsp + 0x2a0], rax
movzx r14d, r8b
mov rbp, rdx
mov rbx, rcx
mov qword [rsp + 0x50], rcx
lea rax, str.C:ProgramDataMicrosoftUser_Account_Picturesuser_48.png
lea rsi, str.C:ProgramDataMicrosoftUser_Account_Picturesuser_192.png
test r8b, r8b
cmove rsi, rax
mov rdx, rcx
lea rcx, [rsp + 0x30]
call fcn.180041790
nop
mov r8, rax
lea rcx, [rsp + 0x68]
call fcn.180043d10
nop
mov rdx, qword [rsp + 0x48]
cmp rdx, 7
jbe 0x180046047
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180046042
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800461fa
call fcn.18004b90c
xor r15d, r15d
movzx eax, r15w
lea rdi, [rsp + 0x90]
mov ecx, 0x104
rep stosw word [rdi], ax
lea rdx, [rsp + 0x68]
cmp qword [rsp + 0x80], 7
cmova rdx, qword [rsp + 0x68]
mov rdi, rsi
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x180046113
mov dword [rsp + 0x60], 0x208
mov dword [rsp + 0x50], 1
lea rax, str.Image240
lea rdx, str.Image64
test r14b, r14b
cmovne rdx, rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x90]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x50]
xor r8d, r8d
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x180046108
lea rcx, [rsp + 0x90]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea rdi, [rsp + 0x90]
test eax, eax
cmove rdi, rsi
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r8, rdi
mov edx, 0x106
mov rcx, rbp
call fcn.18005b364
mov rdx, qword [rsp + 0x80]
cmp rdx, 7
jbe 0x180046168
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180046163
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800461ee
call fcn.18004b90c
movdqa xmm0, xmmword [0x1800b0980]
movdqu xmmword [rsp + 0x78], xmm0
mov word [rsp + 0x68], r15w
mov rdx, qword [rbx + 0x18]
cmp rdx, 7
jbe 0x1800461b7
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x1800461b2
add rdx, 0x27
mov rdi, qword [rcx - 8]
sub rcx, rdi
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1800461f4
mov rcx, rdi
call fcn.18004b90c
mov qword [rbx + 0x10], r15
mov qword [rbx + 0x18], 7
mov word [rbx], r15w
mov rcx, qword [rsp + 0x2a0]
xor rcx, rsp
call fcn.18004b650
mov rbx, qword [rsp + 0x2f8]
add rsp, 0x2b0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
call fcn.18005b2ec
nop
call fcn.18005b2ec
nop
call fcn.18005b2ec
int3

Function at 0x180046250
Capabilities:
Hide graphical window

Disassembly:
sub rsp, 0x28
lea rdx, str.C:Windows_system32LogonUI.exe
xor ecx, ecx
call qword [sym.imp.USER32.dll_FindWindowW]
test rax, rax
je 0x18004627f
xor edx, edx
mov byte [0x1800c2d20], 0
mov rcx, rax
add rsp, 0x28
jmp qword [sym.imp.USER32.dll_ShowWindow]
add rsp, 0x28
ret
Function at 0x180046430
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rax, qword [rsp + 0x78]
sub rax, 0x10000
mov rcx, rax
call fcn.180046680
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x70]
cmp qword [rsp + 0x20], rax
jbe 0x18004654a
mov rax, qword [section..data]
cmp qword [rsp + 0x20], rax
jb 0x180046494
mov rax, qword [0x1800c2008]
cmp qword [rsp + 0x20], rax
ja 0x180046494
mov rax, qword [rsp + 0x20]
sub rax, 0x8000000
mov qword [rsp + 0x20], rax
jmp 0x180046456
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.1800747b0
mov r8d, 0x30
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_VirtualQuery
test rax, rax
jne 0x1800464c5
jmp 0x18004654a
cmp dword [rsp + 0x50], 0x10000
jne 0x18004652d
cmp qword [rsp + 0x48], 0x10000
jb 0x18004652d
mov r9d, 0x40
mov r8d, 0x3000
mov edx, 0x10000
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_VirtualAlloc
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x18004650b
mov rax, qword [rsp + 0x28]
jmp 0x18004654c
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
jne 0x18004651b
xor eax, eax
jmp 0x18004654c
mov rax, qword [rsp + 0x20]
sub rax, 0x10000
mov qword [rsp + 0x20], rax
jmp 0x180046545
mov rax, qword [rsp + 0x38]
sub rax, 0x10000
mov rcx, rax
call fcn.180046680
mov qword [rsp + 0x20], rax
jmp 0x180046456
xor eax, eax
add rsp, 0x68
ret

Function at 0x180046560
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rcx, qword [rsp + 0x70]
call fcn.1800466c0
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x78]
cmp qword [rsp + 0x20], rax
jae 0x180046676
mov rax, qword [section..data]
cmp qword [rsp + 0x20], rax
jb 0x1800465bb
mov rax, qword [0x1800c2008]
cmp qword [rsp + 0x20], rax
ja 0x1800465bb
mov rax, qword [rsp + 0x20]
add rax, 0x8000000
mov qword [rsp + 0x20], rax
jmp 0x18004657d
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.1800747b0
mov r8d, 0x30
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_VirtualQuery
test rax, rax
jne 0x1800465ec
jmp 0x180046676
cmp dword [rsp + 0x50], 0x10000
jne 0x180046654
cmp qword [rsp + 0x48], 0x10000
jb 0x180046654
mov r9d, 0x40
mov r8d, 0x3000
mov edx, 0x10000
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_VirtualAlloc
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x180046632
mov rax, qword [rsp + 0x28]
jmp 0x180046678
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
jne 0x180046642
xor eax, eax
jmp 0x180046678
mov rax, qword [rsp + 0x20]
add rax, 0x10000
mov qword [rsp + 0x20], rax
jmp 0x180046671
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
mov rcx, rax
call fcn.1800466c0
mov qword [rsp + 0x20], rax
jmp 0x18004657d
xor eax, eax
add rsp, 0x68
ret
Function at 0x180046710
Capabilities:
Hook routines via microsoft detours

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x58
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x38]
mov rcx, qword [rsp + 0x60]
call fcn.180046ca0
mov qword [rsp + 0x28], 0
cmp qword [0x1800c5f78], 0
jne 0x180046758
cmp qword [0x1800c5f70], 0
je 0x180046758
mov rax, qword [0x1800c5f70]
mov qword [0x1800c5f78], rax
cmp qword [0x1800c5f78], 0
je 0x1800467fe
mov rax, qword [0x1800c5f78]
cmp qword [rax + 0x10], 0
je 0x1800467fe
mov rax, qword [0x1800c5f78]
mov rcx, qword [rsp + 0x38]
cmp qword [rax + 0x10], rcx
jb 0x1800467fe
mov rax, qword [0x1800c5f78]
mov rcx, qword [rsp + 0x30]
cmp qword [rax + 0x10], rcx
ja 0x1800467fe
mov rax, qword [0x1800c5f78]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x38]
cmp qword [rsp + 0x28], rax
jb 0x1800467c4
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x28], rax
jbe 0x1800467cb
xor eax, eax
jmp 0x180046975
mov rax, qword [0x1800c5f78]
mov rcx, qword [rsp + 0x28]
mov rcx, qword [rcx + 0x48]
mov qword [rax + 0x10], rcx
mov r8d, 0x60
mov edx, 0xcc
mov rcx, qword [rsp + 0x28]
call fcn.1800747b0
mov rax, qword [rsp + 0x28]
jmp 0x180046975
mov rax, qword [0x1800c5f70]
mov qword [0x1800c5f78], rax
jmp 0x180046820
mov rax, qword [0x1800c5f78]
mov rax, qword [rax + 8]
mov qword [0x1800c5f78], rax
cmp qword [0x1800c5f78], 0
je 0x18004686d
cmp qword [0x1800c5f78], 0
je 0x18004686b
mov rax, qword [0x1800c5f78]
cmp qword [rax + 0x10], 0
je 0x18004686b
mov rax, qword [0x1800c5f78]
mov rcx, qword [rsp + 0x38]
cmp qword [rax + 0x10], rcx
jb 0x18004686b
mov rax, qword [0x1800c5f78]
mov rcx, qword [rsp + 0x30]
cmp qword [rax + 0x10], rcx
ja 0x18004686b
jmp 0x18004679c
jmp 0x18004680e
mov rax, qword [rsp + 0x60]
and rax, 0xffff
mov eax, eax
mov rcx, qword [rsp + 0x60]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x60], rax
mov r8, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x60]
call fcn.180046980
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
je 0x180046973
mov rax, qword [rsp + 0x48]
mov qword [0x1800c5f78], rax
mov rax, qword [0x1800c5f78]
mov dword [rax], 0x52727464
mov rax, qword [0x1800c5f78]
mov qword [rax + 0x10], 0
mov rax, qword [0x1800c5f78]
mov rcx, qword [0x1800c5f70]
mov qword [rax + 8], rcx
mov rax, qword [0x1800c5f78]
mov qword [0x1800c5f70], rax
mov qword [rsp + 0x40], 0
mov rax, qword [0x1800c5f78]
add rax, 0x60
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x2a8
jmp 0x180046924
mov eax, dword [rsp + 0x20]
dec eax
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 1
jle 0x18004695e
movsxd rax, dword [rsp + 0x20]
imul rax, rax, 0x60
mov rcx, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x40]
mov qword [rcx + rax + 0x48], rdx
movsxd rax, dword [rsp + 0x20]
imul rax, rax, 0x60
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
jmp 0x18004691a
mov rax, qword [0x1800c5f78]
mov rcx, qword [rsp + 0x40]
mov qword [rax + 0x10], rcx
jmp 0x18004679c
xor eax, eax
add rsp, 0x58
ret
Function at 0x180047690
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov r8d, 0x30
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x80]
call sub.KERNEL32.dll_VirtualQuery
nop
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x1800476d7
xor al, al
jmp 0x180047779
mov rax, qword [rsp + 0x28]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp dword [rax], 0x4550
je 0x180047701
xor al, al
jmp 0x180047779
mov eax, 8
imul rax, rax, 0xc
mov rcx, qword [rsp + 0x30]
mov eax, dword [rcx + rax + 0x88]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
cmp qword [rsp + 0x88], rax
jb 0x180047771
mov eax, 8
imul rax, rax, 0xc
mov rcx, qword [rsp + 0x30]
mov eax, dword [rcx + rax + 0x88]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov ecx, 8
imul rcx, rcx, 0xc
mov rdx, qword [rsp + 0x30]
mov ecx, dword [rdx + rcx + 0x8c]
add rax, rcx
cmp qword [rsp + 0x88], rax
jae 0x180047771
mov al, 1
jmp 0x180047779
jmp 0x180047777
xor al, al
add rsp, 0x78
ret

Function at 0x180047a80
Capabilities:
Allocate or change rwx memory

Disassembly:
sub rsp, 0x38
mov rax, qword [0x1800c5f70]
mov qword [rsp + 0x28], rax
jmp 0x180047aa0
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 8]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x180047acf
lea r9, [rsp + 0x20]
mov r8d, 0x40
mov edx, 0x10000
mov rcx, qword [rsp + 0x28]
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
jne 0x180047acd
call sub.KERNEL32.dll_GetLastError
jmp 0x180047ad1
jmp 0x180047a92
xor eax, eax
add rsp, 0x38
ret
Function at 0x180048190
Capabilities:
Resume thread

Disassembly:
sub rsp, 0x68
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [0x1800c5f88], eax
je 0x1800481ab
mov eax, 0x10dd
jmp 0x1800482d0
mov rax, qword [0x1800c5fa0]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x180048255
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 0x20]
movzx eax, byte [rax + 0x3e]
lea r9, [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
mov r8d, dword [rcx + 0x28]
mov edx, eax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rax + 0x18]
call sub.KERNEL32.dll_VirtualProtect
mov rax, qword [rsp + 0x28]
cmp dword [rax + 8], 0
jne 0x180048220
mov rax, qword [rsp + 0x28]
cmp qword [rax + 0x20], 0
je 0x180048220
mov rax, qword [rsp + 0x28]
mov rcx, qword [rax + 0x20]
call fcn.180046de0
mov rax, qword [rsp + 0x28]
mov qword [rax + 0x20], 0
mov rax, qword [rsp + 0x28]
mov rax, qword [rax]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x38], rax
mov edx, 0x30
mov rcx, qword [rsp + 0x38]
call fcn.18004b90c
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x28], rax
jmp 0x1800481b7
mov qword [0x1800c5fa0], 0
call fcn.180047840
mov rax, qword [0x1800c5f98]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x1800482b9
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax + 8]
call sub.KERNEL32.dll_ResumeThread
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x48], rax
mov edx, 0x10
mov rcx, qword [rsp + 0x48]
call fcn.18004b90c
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x30], rax
jmp 0x180048271
mov qword [0x1800c5f98], 0
mov dword [0x1800c5f88], 0
xor eax, eax
add rsp, 0x68
ret