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

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp - 0x38], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x140292900]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov r12, rcx
xor r15d, r15d
cmp qword [rcx + 0x68], r15
je 0x1401aae62
cmp byte [rcx + 0x72], r15b
je 0x1401aae62
mov rax, qword [rcx]
mov edi, 0xffff
mov rbx, qword [rax + 0x18]
mov rcx, rbx
call fcn.1401a913c
movzx edx, di
mov rcx, r12
call rbx
cmp di, ax
jne 0x1401aad4f
xor al, al
jmp 0x1401aae64
mov edx, SafeArrayGetDim
mov qword [rbp - 0x18], rdx
xor ecx, ecx
mov qword [rbp - 0x30], rcx
mov qword [rbp - 0x20], 8
lea rax, [rbp - 0x30]
cmp rdx, 0x10
cmovae rax, rcx
mov byte [rax + 8], r15b
mov r8, qword [rbp - 0x30]
mov rdx, qword [rbp - 0x18]
lea r9, [rbp - 0x30]
cmp rdx, 0x10
cmovae r9, r8
lea r14, [rbp - 0x30]
cmovae r14, r8
mov rsi, qword [r12 + 0x68]
mov rdx, qword [rsi]
mov rbx, qword [rbp - 0x20]
add rbx, r9
mov rdi, qword [rdx + 0x40]
mov rcx, rdi
call fcn.1401a913c
lea rax, [rbp - 0x40]
mov qword [rsp + 0x20], rax
mov r9, rbx
mov r8, r14
lea rdx, [r12 + 0x74]
mov rcx, rsi
call rdi
mov ecx, eax
test eax, eax
je 0x1401aadd3
sub ecx, 1
jne 0x1401aae47
jmp 0x1401aadd8
mov byte [r12 + 0x72], r15b
lea rax, [rbp - 0x30]
mov r8, qword [rbp - 0x30]
mov rdx, qword [rbp - 0x18]
cmp rdx, 0x10
cmovae rax, r8
mov rbx, qword [rbp - 0x40]
sub rbx, rax
je 0x1401aae23
lea rcx, [rbp - 0x30]
cmp rdx, 0x10
cmovae rcx, r8
mov r9, qword [r12 + 0x80]
mov r8, rbx
mov edx, 1
call fcn.1401b4008
cmp rbx, rax
jne 0x1401aae4f
mov rdx, qword [rbp - 0x18]
mov r8, qword [rbp - 0x30]
cmp byte [r12 + 0x72], r15b
je 0x1401aae4c
test rbx, rbx
jne 0x1401aad7e
xor r8d, r8d
lea edx, [rbx + 8]
lea rcx, [rbp - 0x30]
call fcn.14000a500
jmp 0x1401aad76
cmp ecx, 2
jne 0x1401aae4f
mov r15b, 1
xor r8d, r8d
mov dl, 1
lea rcx, [rbp - 0x30]
call fcn.140009dd4
mov al, r15b
jmp 0x1401aae64
mov al, 1
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.1401a82a0
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
Function at 0x1401c1c5c
Capabilities:
Parse pe header

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0x20
mov esi, r8d
mov ebx, edx
mov r14d, ecx
test r8d, r8d
jne 0x1401c1a30
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1401c1a30
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1401c1a30
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1401c1a30
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1401c1a30
cmp dword [rcx + 0x84], 0xe
jbe 0x1401c1a30
cmp dword [rcx + 0xf8], esi
je 0x1401c1a30
mov ecx, r14d
call fcn.1401c1b78
mov ecx, 2
call fcn.1401c3758
nop
cmp byte [0x1402a49b0], 0
jne 0x1401c1afa
mov r15d, 1
mov eax, r15d
xchg dword [0x1402a49a4], eax
test ebx, ebx
jne 0x1401c1aa3
mov rdi, qword [0x140292900]
mov edx, edi
and edx, 0x3f
lea ecx, [rbx + 0x40]
sub ecx, edx
xor eax, eax
ror rax, cl
xor rax, rdi
mov rcx, qword [0x1402a49a8]
cmp rcx, rax
je 0x1401c1a9a
xor rdi, rcx
mov ecx, edx
ror rdi, cl
mov rcx, rdi
call qword [fcn.1400245c4]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call rdi
lea rcx, [0x1402a49c0]
jmp 0x1401c1aaf
cmp ebx, r15d
jne 0x1401c1ab5
lea rcx, [0x1402a49d8]
call fcn.1401c34c4
nop
test ebx, ebx
jne 0x1401c1acc
lea rdx, [0x1401e3bd0]
lea rcx, [0x1401e3bb0]
call fcn.1401c18f0
lea rdx, [0x1401e3be0]
lea rcx, [0x1401e3bd8]
call fcn.1401c18f0
movzx eax, byte [0x1402a49b0]
test esi, esi
cmove eax, r15d
mov byte [0x1402a49b0], al
jmp 0x1401c1afa
mov ecx, 2
call fcn.1401c37ac
test esi, esi
jne 0x1401c1b11
mov ecx, r14d
call fcn.1401c1b2c
int3
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop r15
ret
xor r8d, r8d
xor edx, edx
jmp 0x1401c19c0
Function at 0x1401c83dc
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov qword [rax + 8], rcx
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x20
test rcx, rcx
jne 0x1401c8242
call fcn.1401b0510
mov dword [rax], 0x16
call fcn.1401b03c0
mov eax, 0xffff
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop rbp
ret
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x1401c8224
mov rax, qword [rbp + 0x20]
mov ecx, dword [rax + 0x14]
shr ecx, 0xc
test cl, 1
jne 0x1401c8224
mov rax, qword [rbp + 0x20]
mov ecx, dword [rax + 0x14]
mov rax, qword [rbp + 0x20]
shr ecx, 1
test cl, 1
je 0x1401c8274
lock or dword [rax + 0x14], 0x10
jmp 0x1401c8224
lock or dword [rax + 0x14], 1
mov rax, qword [rbp + 0x20]
mov ecx, dword [rax + 0x14]
test ecx, 0x4c0
jne 0x1401c8291
mov rcx, qword [rbp + 0x20]
call fcn.1401c8964
mov rax, qword [rbp + 0x20]
cmp dword [rax + 0x10], 1
jne 0x1401c82a6
mov rcx, qword [rax]
mov sil, 1
mov r14b, byte [rcx]
jmp 0x1401c82ac
xor sil, sil
xor r14b, r14b
mov rcx, qword [rax + 8]
mov qword [rax], rcx
mov rbx, qword [rbp + 0x20]
mov rcx, rbx
call fcn.1401bfcf4
mov rdx, qword [rbp + 0x20]
mov ecx, eax
mov r8d, dword [rdx + 0x20]
mov rdx, qword [rdx + 8]
call fcn.1401cba60
mov dword [rbx + 0x10], eax
mov rax, qword [rbp + 0x20]
mov edx, dword [rax + 0x10]
lea ecx, [rdx + 1]
cmp ecx, 2
ja 0x1401c82ff
neg edx
sbb ecx, ecx
and ecx, 8
add ecx, 8
lock or dword [rax + 0x14], ecx
mov rax, qword [rbp + 0x20]
and dword [rax + 0x10], 0
jmp 0x1401c8224
mov ecx, dword [rax + 0x14]
test cl, 6
jne 0x1401c836b
mov rcx, qword [rbp + 0x20]
call fcn.1401bfcf4
cmp eax, 0xffffffff
je 0x1401c8352
mov rcx, qword [rbp + 0x20]
call fcn.1401bfcf4
cmp eax, 0xfffffffe
je 0x1401c8352
mov rbx, qword [rbp + 0x20]
mov rcx, rbx
call fcn.1401bfcf4
movsxd rdi, eax
lea r15, [0x1402a4c20]
mov rcx, rbx
sar rdi, 6
call fcn.1401bfcf4
and eax, 0x3f
shl rax, 6
add rax, qword [r15 + rdi*8]
jmp 0x1401c8359
lea rax, [0x140292ec0]
mov al, byte [rax + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x1401c836b
mov rax, qword [rbp + 0x20]
lock or dword [rax + 0x14], 0x20
mov rax, qword [rbp + 0x20]
cmp dword [rax + 0x20], 0x200
jne 0x1401c83a1
mov ecx, dword [rax + 0x14]
shr ecx, 6
test cl, 1
je 0x1401c839d
mov rax, qword [rbp + 0x20]
mov ecx, dword [rax + 0x14]
shr ecx, 8
test cl, 1
jne 0x1401c839d
mov rax, qword [rbp + 0x20]
mov dword [rax + 0x20], 0x1000
mov rax, qword [rbp + 0x20]
mov rcx, qword [rax]
test sil, sil
je 0x1401c83bf
movzx edx, byte [rcx]
dec dword [rax + 0x10]
shl dx, 8
movzx ecx, r14b
or dx, cx
inc qword [rax]
jmp 0x1401c83ca
movzx edx, word [rcx]
add dword [rax + 0x10], 0xfffffffe
add qword [rax], 2
movzx eax, dx
jmp 0x1401c8229
jmp 0x1401c81f0
Function at 0x1801aacf0
Capabilities:
Get session user name

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x4f8
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x470], 0xfffffffffffffffe
mov dword [rbp + 0x464], 0x400
mov rax, qword [0x18056b2c0]
xor edx, edx
sub rdx, qword [0x18056b320]
movabs r8, 0x256afd9bf0288648
xor rdx, r8
lea rdx, [rdx + rdx*2]
lea r9, [rdx*2 + 7]
movabs r10, 0xa56afd9bf0288648
xor r9, r10
mov rdx, qword [0x18056b2a0]
mov r8, qword [0x18056b300]
add r8, r8
neg r8
movabs r11, 0x4ad5fb37e0510c91
xor r8, r11
add r8, 2
xor r8, r10
mov rdx, qword [rdx + r8 + 0x20]
shl rdx, 2
neg rdx
movabs r8, 0xf77ae1f2eb6f15b1
xor r8, rdx
add r8, 4
movabs rdx, 0x7ddeb87cbadbc56c
xor r8, rdx
add r8, qword [rax + r9 + 0x20]
mov qword [rbp + 0x468], rcx
call r8
lea rcx, [rbp - 0x60]
lea rdx, [rbp + 0x464]
call qword [sym.imp.ADVAPI32.dll_GetUserNameA]
xor ecx, ecx
test eax, eax
setne cl
lea rax, [rcx*8 + 4]
mov rcx, qword [0x18056b330]
shl rcx, 3
neg rcx
movabs rdx, 0x2b57ecdf81443241
xor rcx, rdx
add rcx, 8
movabs r10, 0xa56afd9bf0288648
xor rcx, r10
add rcx, qword [0x18056b2d0]
lea edx, [rax*8]
mov rcx, qword [rdx + rcx]
xor r8d, r8d
sub r8, qword [0x18056b338]
xor r9d, r9d
xor r8, r10
lea r8, [r8 + r8*8]
add r8, 9
xor r8, r10
add r8, qword [0x18056b2d8]
sub r9, qword [rdx + r8 + 1]
movabs rdx, 0xe1720545533a2dd
xor r9, rdx
inc r9
imul r9, rax
movabs rax, 0x8e1720545533a2dd
xor r9, rax
lea rax, [rcx + r9]
inc rax
jmp rax

Function at 0x1801afd70
Capabilities:
Query environment variable

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp], 0xfffffffffffffffe
mov rax, qword [0x18056b4d0]
mov rdx, qword [0x18056b500]
movabs rdx, 0xe56c876567d9fc62
mov rax, qword [rax + rdx]
mov r9, qword [0x18056b4e8]
xor edx, edx
sub rdx, qword [0x18056b518]
movabs r8, 0xe56c876567d9fc51
xor rdx, r8
lea rdx, [rdx + rdx*2]
add rdx, 3
xor rdx, r8
mov r8, qword [r9 + rdx + 0x11]
add r8, r8
neg r8
movabs rdx, 0xf1a7847e2352e42
xor rdx, r8
add rdx, 2
movabs r8, 0x878d3c23f11a9721
xor rdx, r8
add rax, rdx
inc rax
mov qword [rbp - 8], rcx
call rax
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
movabs r15, 0xe20de92e14fc3e0e
movabs rdi, 0xae9f40a1cce5e988
movabs r12, 0xae9f40a1cce5e999
movabs r13, 0xc41bd25c29f87c1a
movabs rsi, 0xe20de92e14fc3e0d
movabs rbx, 0xe56c876567d9fc51
mov r14, rax
nop dword [rax + rax]
cmp byte [r14], 1
mov edx, 3
sbb rdx, 0
mov rax, qword [0x18056b4e0]
mov rcx, qword [0x18056b510]
add rcx, rcx
neg rcx
movabs r8, 0xcad90ecacfb3f8a2
xor rcx, r8
add rcx, 2
xor rcx, rbx
add rcx, rax
lea r8d, [rdx*8]
mov r9, qword [r8 + rcx + 1]
mov rcx, qword [0x18056b4f8]
xor r10d, r10d
sub r10, qword [0x18056b528]
xor r10, rbx
lea r10, [r10 + r10*4]
add r10, 5
xor r10, rbx
add r10, rcx
xor r11d, r11d
sub r11, qword [r8 + r10 + 1]
movabs r8, 0xf4064029ed90992c
xor r11, r8
inc r11
imul r11, rdx
xor r11, r8
lea rdx, [r9 + r11]
inc rdx
jmp rdx
Function at 0x1801b2b60
Capabilities:
Enumerate process modules

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
mov eax, 0x1188
call fcn.1802fb9b0
sub rsp, rax
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x1100], 0xfffffffffffffffe
mov rax, qword [0x18056b6b8]
xor edx, edx
sub rdx, qword [0x18056b6f8]
xor r8d, r8d
movabs r10, 0x71c5715dac51ac08
xor rdx, r10
lea rdx, [rdx + rdx*4]
add rdx, 5
xor rdx, r10
mov rax, qword [rax + rdx + 0x31]
mov rdx, qword [0x18056b6a0]
mov r9, qword [0x18056b6e0]
add r9, r9
neg r9
movabs r11, 0xe38ae2bb58a35811
xor r9, r11
add r9, 2
xor r9, r10
sub r8, qword [rdx + r9 + 0x30]
mov qword [rbp + 0x10f8], rcx
movabs rcx, 0x4e6d59b1cd199f67
xor rcx, r8
lea rcx, [rcx + rcx*2]
lea rcx, [rcx*2 + 6]
movabs rdx, 0xce6d59b1cd199f67
xor rcx, rdx
add rax, rcx
inc rax
lea rcx, [rbp + 0x10c8]
call rax
lea rdi, [rbp - 0x60]
lea r8, [rbp + 0x10f0]
mov rcx, rdi
mov edx, 0x1000
call sub.KERNEL32.dll_K32EnumProcesses
xor edx, edx
cmp eax, 1
mov r8d, 0
adc r8, 4
mov rax, qword [0x18056b6c8]
xor ecx, ecx
sub rcx, qword [0x18056b708]
movabs r14, 0x71c5715dac51ac08
xor rcx, r14
lea r9, [rcx*8]
sub r9, rcx
add r9, 7
xor r9, r14
add r9, rax
lea r10d, [r8*8]
mov r9, qword [r10 + r9 + 1]
mov rcx, qword [0x18056b690]
mov r11, qword [0x18056b6d0]
add r10, rcx
movabs r15, 0x71c5715dac51ac09
sub rdx, qword [r15 + r10]
movabs r13, 0x80b2ae02bb11ab97
xor rdx, r13
inc rdx
imul rdx, r8
xor rdx, r13
add rdx, r9
inc rdx
jmp rdx

Function at 0x1802f4820
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov r8d, gethostbyname
lea rdx, [rsp + 0x20]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
nop
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x1802f4862
xor al, al
jmp 0x1802f48e0
mov rax, qword [rsp + 0x50]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x50]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
cmp dword [rax], 0x4550
je 0x1802f488c
xor al, al
jmp 0x1802f48e0
mov rax, qword [rsp + 0x58]
mov eax, dword [rax + 0xe8]
mov rcx, qword [rsp + 0x50]
add rcx, rax
mov rax, rcx
cmp qword [rsp + 0x78], rax
jb 0x1802f48d8
mov rax, qword [rsp + 0x58]
mov eax, dword [rax + 0xe8]
mov rcx, qword [rsp + 0x50]
add rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x58]
mov ecx, dword [rcx + 0xec]
add rax, rcx
cmp qword [rsp + 0x78], rax
jae 0x1802f48d8
mov al, 1
jmp 0x1802f48e0
xor al, al
jmp 0x1802f48e0
add rsp, 0x68
ret

Function at 0x1802f4970
Capabilities:
Allocate or change rwx memory

Disassembly:
sub rsp, 0x38
mov rax, qword [0x1805f01f0]
mov qword [rsp + 0x20], rax
jmp 0x1802f4990
mov rax, qword [rsp + 0x20]
mov rax, qword [rax + 8]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x1802f49b5
lea r9, [rsp + 0x28]
mov r8d, 0x40
mov edx, 0x10000
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
jmp 0x1802f4982
add rsp, 0x38
ret
Function at 0x1802f49c0
Capabilities:
Resume thread

Disassembly:
sub rsp, 0x68
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x1805f0208], eax
je 0x1802f49dc
mov eax, 0x10dd
jmp 0x1802f4af9
mov rax, qword [0x1805f0220]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x1802f4a82
mov rax, qword [rsp + 0x20]
mov rax, qword [rax + 0x20]
movzx eax, byte [rax + 0x3e]
lea r9, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
mov r8d, dword [rcx + 0x28]
mov edx, eax
mov rax, qword [rsp + 0x20]
mov rcx, qword [rax + 0x18]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov rax, qword [rsp + 0x20]
cmp dword [rax + 8], 0
jne 0x1802f4a52
mov rax, qword [rsp + 0x20]
cmp qword [rax + 0x20], 0
je 0x1802f4a52
mov rax, qword [rsp + 0x20]
mov rcx, qword [rax + 0x20]
call fcn.1802f4b70
mov rax, qword [rsp + 0x20]
mov qword [rax + 0x20], 0
mov rax, qword [rsp + 0x20]
mov rax, qword [rax]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x48], rax
mov rcx, qword [rsp + 0x48]
call fcn.18030e8b0
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x20], rax
jmp 0x1802f49e8
mov qword [0x1805f0220], 0
call fcn.1802f4b00
mov rax, qword [0x1805f0218]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
je 0x1802f4ae2
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax + 8]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rax, qword [rsp + 0x38]
mov rax, qword [rax]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x50], rax
mov rcx, qword [rsp + 0x50]
call fcn.18030e8b0
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x38], rax
jmp 0x1802f4a9e
mov qword [0x1805f0218], 0
mov dword [0x1805f0208], 0
xor eax, eax
add rsp, 0x68
ret
Function at 0x1802f5270
Capabilities:
Hook routines via microsoft detours

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rax, qword [rsp + 0x30]
cmp dword [rax], 0x52727464
je 0x1802f528d
xor eax, eax
jmp 0x1802f5325
mov rax, qword [rsp + 0x30]
mov qword [rsp], rax
mov rax, qword [rsp]
add rax, 0x10000
mov qword [rsp + 8], rax
mov rax, qword [rsp + 0x30]
add rax, 0x60
mov qword [rsp + 0x10], rax
mov dword [rsp + 0x18], 0
jmp 0x1802f52c7
mov eax, dword [rsp + 0x18]
inc eax
mov dword [rsp + 0x18], eax
cmp dword [rsp + 0x18], 0x2a9
jae 0x1802f5320
movsxd rax, dword [rsp + 0x18]
imul rax, rax, 0x60
mov rcx, qword [rsp + 0x10]
cmp qword [rcx + rax + 0x48], 0
je 0x1802f531e
movsxd rax, dword [rsp + 0x18]
imul rax, rax, 0x60
mov rcx, qword [rsp + 0x10]
mov rdx, qword [rsp]
cmp qword [rcx + rax + 0x48], rdx
jb 0x1802f531a
movsxd rax, dword [rsp + 0x18]
imul rax, rax, 0x60
mov rcx, qword [rsp + 0x10]
mov rdx, qword [rsp + 8]
cmp qword [rcx + rax + 0x48], rdx
jb 0x1802f531e
xor eax, eax
jmp 0x1802f5325
jmp 0x1802f52bd
mov eax, 1
add rsp, 0x28
ret
Function at 0x1802f6020
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.1802f6120
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x78]
cmp qword [rsp + 0x20], rax
jae 0x1802f6118
cmp qword [rsp + 0x20], 0x50000000
jb 0x1802f6070
mov eax, 0x80000000
cmp qword [rsp + 0x20], rax
ja 0x1802f6070
mov eax, 0x80010000
mov qword [rsp + 0x20], rax
jmp 0x1802f603d
mov r8d, gethostbyname
xor edx, edx
lea rcx, [rsp + 0x28]
call fcn.180378170
mov r8d, gethostbyname
lea rdx, [rsp + 0x28]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x1802f609f
jmp 0x1802f6118
cmp dword [rsp + 0x48], 0x10000
jne 0x1802f60f6
cmp qword [rsp + 0x40], 0x10000
jb 0x1802f60f6
mov r9d, 0x40
mov r8d, 0x3000
mov edx, 0x10000
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
je 0x1802f60e4
mov rax, qword [rsp + 0x58]
jmp 0x1802f611a
mov rax, qword [rsp + 0x20]
add rax, 0x10000
mov qword [rsp + 0x20], rax
jmp 0x1802f6113
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov rcx, rax
call fcn.1802f6120
mov qword [rsp + 0x20], rax
jmp 0x1802f603d
xor eax, eax
add rsp, 0x68
ret

Function at 0x1802f6170
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.1802f6280
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x70]
cmp qword [rsp + 0x20], rax
jbe 0x1802f626b
cmp qword [rsp + 0x20], 0x50000000
jb 0x1802f61c8
mov eax, 0x80000000
cmp qword [rsp + 0x20], rax
ja 0x1802f61c8
mov qword [rsp + 0x20], 0x4fff0000
jmp 0x1802f6196
mov r8d, gethostbyname
xor edx, edx
lea rcx, [rsp + 0x28]
call fcn.180378170
mov r8d, gethostbyname
lea rdx, [rsp + 0x28]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x1802f61f7
jmp 0x1802f626b
cmp dword [rsp + 0x48], 0x10000
jne 0x1802f624e
cmp qword [rsp + 0x40], 0x10000
jb 0x1802f624e
mov r9d, 0x40
mov r8d, 0x3000
mov edx, 0x10000
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
je 0x1802f623c
mov rax, qword [rsp + 0x58]
jmp 0x1802f626d
mov rax, qword [rsp + 0x20]
sub rax, 0x10000
mov qword [rsp + 0x20], rax
jmp 0x1802f6266
mov rax, qword [rsp + 0x30]
sub rax, 0x10000
mov rcx, rax
call fcn.1802f6280
mov qword [rsp + 0x20], rax
jmp 0x1802f6196
xor eax, eax
add rsp, 0x68
ret
Function at 0x1802f6500
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x78
cmp qword [rsp + 0x80], 0
jne 0x1802f651f
mov qword [rsp + 0x20], 0x10000
jmp 0x1802f6532
mov rax, qword [rsp + 0x80]
add rax, 0x10000
mov qword [rsp + 0x20], rax
mov r8d, gethostbyname
xor edx, edx
lea rcx, [rsp + 0x28]
call fcn.180378170
jmp 0x1802f655b
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], rax
mov r8d, gethostbyname
lea rdx, [rsp + 0x28]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
ja 0x1802f657b
jmp 0x1802f6618
cmp dword [rsp + 0x48], 0x1000
jne 0x1802f65a0
mov eax, dword [rsp + 0x4c]
and eax, 0xff
cmp eax, 1
je 0x1802f65a0
mov eax, dword [rsp + 0x4c]
and eax, 0x100
test eax, eax
je 0x1802f65a2
jmp 0x1802f6546
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
movzx eax, word [rax]
cmp eax, 0x5a4d
jne 0x1802f65d8
mov rax, qword [rsp + 0x58]
mov eax, dword [rax + 0x3c]
cmp rax, qword [rsp + 0x40]
ja 0x1802f65d8
mov rax, qword [rsp + 0x58]
mov eax, dword [rax + 0x3c]
cmp rax, 0x40
jae 0x1802f65dd
jmp 0x1802f6546
mov rax, qword [rsp + 0x58]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x58]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x60]
cmp dword [rax], 0x4550
jne 0x1802f6546
mov rax, qword [rsp + 0x58]
jmp 0x1802f661a
xor eax, eax
add rsp, 0x78
ret
Function at 0x1802f6620
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x60], 0
jne 0x1802f6648
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x1802f6669
mov ecx, 0xc1
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x1802f67e7
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp dword [rax], 0x4550
je 0x1802f66a1
mov ecx, 0xbf
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x1802f67e7
mov rax, qword [rsp + 0x30]
movzx eax, word [rax + 0x14]
test eax, eax
jne 0x1802f66c0
mov ecx, 0xc0
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x1802f67e7
mov rax, qword [rsp + 0x30]
movzx eax, word [rax + 0x14]
mov rcx, qword [rsp + 0x30]
lea rax, [rcx + rax + 0x18]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x38], 0
jmp 0x1802f66ec
mov eax, dword [rsp + 0x38]
inc eax
mov dword [rsp + 0x38], eax
mov rax, qword [rsp + 0x30]
movzx eax, word [rax + 6]
cmp dword [rsp + 0x38], eax
jae 0x1802f67c9
mov eax, dword [rsp + 0x38]
imul rax, rax, 0x28
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
lea rdx, str..detour
mov rcx, rax
call fcn.18038bc30
test eax, eax
jne 0x1802f67c4
mov eax, dword [rsp + 0x38]
imul rax, rax, 0x28
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0xc], 0
je 0x1802f6751
mov eax, dword [rsp + 0x38]
imul rax, rax, 0x28
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x10], 0
jne 0x1802f6753
jmp 0x1802f67c9
mov eax, dword [rsp + 0x38]
imul rax, rax, 0x28
mov rcx, qword [rsp + 0x28]
mov eax, dword [rcx + rax + 0xc]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
mov eax, dword [rax]
cmp rax, 0x40
jb 0x1802f6799
mov rax, qword [rsp + 0x40]
cmp dword [rax + 4], 0x727444
je 0x1802f679b
jmp 0x1802f67c9
mov rax, qword [rsp + 0x40]
cmp dword [rax + 8], 0
jne 0x1802f67b5
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x40]
mov ecx, dword [rcx]
mov dword [rax + 8], ecx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, qword [rsp + 0x40]
jmp 0x1802f67e7
jmp 0x1802f66e2
mov ecx, 0xc0
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x1802f67e7
add rsp, 0x58
ret