joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800bad80
Capabilities:
Encode data using xor

Disassembly:
mov r11, rsp
push rbx
sub rsp, 0xf0
movaps xmmword [r11 - 0x18], xmm6
mov rax, qword [0x18011f040]
xor rax, rsp
mov qword [rsp + 0xd0], rax
movups xmm0, xmmword [0x1801061f8]
movups xmmword [rsp + 0x70], xmm0
movups xmm1, xmmword [0x180106208]
movups xmmword [r11 - 0x78], xmm1
movups xmm0, xmmword [0x180106218]
movups xmmword [r11 - 0x68], xmm0
movsd xmm0, qword [0x180106228]
movsd qword [r11 - 0x58], xmm0
mov eax, dword [0x180106230]
mov dword [r11 - 0x50], eax
xor ecx, ecx
cmp dword [0x18011f018], 2
jl 0x1800baf22
movdqa xmm5, xmmword [0x180108e60]
movdqa xmm4, xmmword [0x180109000]
movdqa xmm6, xmmword [0x180108e90]
movdqa xmm0, xmmword [0x180108f60]
movdqa xmmword [rsp + 0x40], xmm0
lea rdx, [rsp + 0x74]
mov r8d, dword [rsp + 0x40]
nop dword [rax]
movd xmm2, ecx
pshufd xmm2, xmm2, 0
paddd xmm2, xmm5
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm4
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x180108f40]
packuswb xmm2, xmm2
movd xmm0, r8d
paddb xmm2, xmm0
movd xmm0, dword [rdx - 4]
xorps xmm2, xmm0
movd dword [rdx - 4], xmm2
lea eax, [rcx + 4]
movd xmm3, eax
pshufd xmm3, xmm3, 0
paddd xmm3, xmm5
movdqa xmm1, xmm3
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x180108f40]
packuswb xmm2, xmm2
movd xmm0, r8d
paddb xmm2, xmm0
movd xmm0, dword [rdx]
xorps xmm2, xmm0
movd dword [rdx], xmm2
add ecx, 8
lea rdx, [rdx + 8]
cmp ecx, 0x38
jl 0x1800bae20
cmp ecx, 0x3c
jge 0x1800baf5c
movsxd rax, ecx
lea r8, [rsp + 0x70]
add r8, rax
nop dword [rax]
mov eax, 0x4bda12f7
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul edx, eax, 0x36
movzx eax, cl
sub al, dl
add al, 0x30
xor byte [r8], al
inc ecx
lea r8, [r8 + 1]
cmp ecx, 0x3c
jl 0x1800baf30
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x60], xmm1
lea rax, [rsp + 0x70]
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp byte [rax + r8], 0
jne 0x1800baf80
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x50]
call fcn.18001d0a0
nop
xorps xmm0, xmm0
movups xmmword [rsp + 0xb0], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0xc0], xmm1
xor r8d, r8d
lea rdx, [0x1800f5c56]
lea rcx, [rsp + 0xb0]
call fcn.18001d0a0
nop
cmp byte [0x180120d70], 0
jne 0x1800bafeb
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x70]
call fcn.18001e7f0
mov rcx, rax
call fcn.180004800
jmp 0x1800baff5
lea rcx, [rsp + 0x50]
call fcn.18000edb0
mov rbx, rax
lea rcx, [rsp + 0xb0]
call fcn.18001f2b0
nop
lea rcx, [rsp + 0x50]
call fcn.18001f2b0
mov rax, rbx
mov rcx, qword [rsp + 0xd0]
xor rcx, rsp
call fcn.1800cac90
movaps xmm6, xmmword [rsp + 0xe0]
add rsp, 0xf0
pop rbx
ret
Function at 0x1800c5848
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
cmp qword [rcx], 0
mov rbx, rcx
je 0x1800c58ac
xor edi, edi
cmp dword [rcx + 0xc], edi
jbe 0x1800c589a
mov r8, qword [rbx]
xor edx, edx
mov r8d, dword [r8 + rdi*4]
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x1800c5893
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, dword [rbx + 0xc]
jb 0x1800c5867
mov r8, qword [rbx]
xor edx, edx
mov rcx, qword [0x180120ec0]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x1800c58bc
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
mov eax, ecx
mov esi, edx
imul rbx, rax, 0x38
add rbx, qword [0x1801223c0]
mov rdx, qword [rbx]
mov cl, byte [rbx + 0x20]
mov rbp, rdx
lea rdi, [rdx - 5]
and cl, 1
je 0x1800c58f2
mov rbp, rdi
movzx eax, cl
lea r9, [rsp + 0x40]
test cl, cl
mov r8d, 0x40
cmove rdi, rdx
lea r14, [rax*2 + 5]
mov rcx, rdi
mov rdx, r14
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1800c5928
mov eax, 0xa
jmp 0x1800c59b7
test esi, esi
je 0x1800c594a
mov byte [rdi], 0xe9
mov eax, dword [rbx + 8]
sub eax, ebp
sub eax, 5
mov dword [rdi + 1], eax
test byte [rbx + 0x20], 1
je 0x1800c596b
mov rax, qword [rbx]
mov word [rax], 0xf9eb
jmp 0x1800c596b
mov eax, dword [rbx + 0x18]
test byte [rbx + 0x20], 1
mov dword [rdi], eax
je 0x1800c5965
movzx eax, word [rbx + 0x1c]
mov word [rdi + 4], ax
mov al, byte [rbx + 0x1e]
mov byte [rdi + 6], al
jmp 0x1800c596b
mov al, byte [rbx + 0x1c]
mov byte [rdi + 4], al
mov r8d, dword [rsp + 0x40]
lea r9, [rsp + 0x40]
mov rdx, r14
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r8, r14
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov al, sil
shl sil, 2
add al, al
xor al, byte [rbx + 0x20]
and al, 2
xor al, byte [rbx + 0x20]
xor sil, al
and sil, 4
xor sil, al
mov byte [rbx + 0x20], sil
xor eax, eax
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret

Function at 0x1800c5e14
Capabilities:
Check for software breakpoints

Disassembly:
mov r8b, byte [rcx]
mov r9d, edx
test r8b, r8b
je 0x1800c5e2b
cmp r8b, 0x90
je 0x1800c5e2b
cmp r8b, 0xcc
jne 0x1800c5e4d
mov r10d, 1
mov edx, r10d
cmp r9d, r10d
jbe 0x1800c5e49
mov eax, edx
cmp byte [rax + rcx], r8b
jne 0x1800c5e4d
add edx, r10d
cmp edx, r9d
jb 0x1800c5e39
mov eax, r10d
ret
xor eax, eax
ret
Function at 0x1800c61b4
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
mov rdi, rcx
lea rcx, [rbp - 0x60]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov r14, qword [rbp - 0x58]
cmp rdi, 0x40000000
jbe 0x1800c61fe
lea rax, [rdi - 0x40000000]
cmp r14, rax
cmovb r14, rax
mov rbx, qword [0x1801223b8]
lea r12, [rdi + 0x40000000]
cmp qword [rbp - 0x50], r12
cmovbe r12, qword [rbp - 0x50]
sub r12, 0xfff
xor esi, esi
jmp 0x1800c6237
cmp rbx, r14
jb 0x1800c6234
cmp rbx, r12
jae 0x1800c6234
cmp qword [rbx + 8], rsi
jne 0x1800c6399
mov rbx, qword [rbx]
test rbx, rbx
jne 0x1800c6220
mov r15, rdi
cmp rdi, r14
jb 0x1800c6353
mov r13d, dword [rbp - 0x38]
xor edx, edx
mov rax, r15
div r13
sub r15, rdx
jmp 0x1800c6283
mov r8d, 0x30
lea rdx, [rbp - 0x30]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1800c62bd
cmp dword [rbp - 0x10], 0x10000
je 0x1800c628d
mov r15, qword [rbp - 0x28]
cmp r15, r13
jb 0x1800c62bd
sub r15, r13
cmp r15, r14
jae 0x1800c6259
jmp 0x1800c62bd
test r15, r15
je 0x1800c62bd
mov edx, 0x1000
mov r9d, 0x40
mov r8d, 0x3000
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
test rax, rax
jne 0x1800c635e
cmp r15, r14
jae 0x1800c6248
test rbx, rbx
jmp 0x1800c6351
mov r15d, dword [rbp - 0x38]
xor edx, edx
mov rax, rdi
mov r14d, r15d
div r15
mov eax, r15d
sub rax, rdx
add rax, rdi
mov rdi, rax
cmp rax, r12
ja 0x1800c6399
mov r8d, 0x30
lea rdx, [rbp - 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1800c6399
cmp dword [rbp - 0x10], 0x10000
je 0x1800c632c
xor edx, edx
lea edi, [r15 - 1]
add rdi, qword [rbp - 0x18]
add rdi, qword [rbp - 0x30]
mov rax, rdi
div r14
sub rdi, rdx
cmp rdi, r12
jbe 0x1800c62e9
jmp 0x1800c6399
test rdi, rdi
je 0x1800c6399
mov edx, 0x1000
mov r9d, 0x40
mov r8d, 0x3000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
test rax, rax
jne 0x1800c635e
cmp rdi, r12
jbe 0x1800c62c5
jmp 0x1800c6399
lea rcx, [rbx + 0x40]
mov dword [rbx + 0x10], esi
mov edx, 0x40
mov qword [rcx], rsi
mov rax, rcx
mov qword [rbx + 8], rcx
add rdx, 0x40
add rcx, 0x40
mov rsi, rax
cmp rdx, 0xfc0
jbe 0x1800c636a
mov rax, qword [0x1801223b8]
mov qword [rbx], rax
mov qword [0x1801223b8], rbx
lea r11, [rsp + 0x80]
mov rax, rbx
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
Function at 0x1800c6c50
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.1800c6e70
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x70]
cmp qword [rsp + 0x20], rax
jbe 0x1800c6d57
mov rax, qword [section..data]
cmp qword [rsp + 0x20], rax
jb 0x1800c6cb4
mov rax, qword [0x18011f008]
cmp qword [rsp + 0x20], rax
ja 0x1800c6cb4
mov rax, qword [rsp + 0x20]
sub rax, 0x8000000
mov qword [rsp + 0x20], rax
jmp 0x1800c6c76
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0x30]
call sub.VCRUNTIME140.dll_memset
mov r8d, 0x30
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x1800c6ce3
jmp 0x1800c6d57
cmp dword [rsp + 0x50], 0x10000
jne 0x1800c6d3a
cmp qword [rsp + 0x48], 0x10000
jb 0x1800c6d3a
mov r9d, 0x40
mov r8d, 0x3000
mov edx, 0x10000
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x1800c6d28
mov rax, qword [rsp + 0x28]
jmp 0x1800c6d59
mov rax, qword [rsp + 0x20]
sub rax, 0x10000
mov qword [rsp + 0x20], rax
jmp 0x1800c6d52
mov rax, qword [rsp + 0x38]
sub rax, 0x10000
mov rcx, rax
call fcn.1800c6e70
mov qword [rsp + 0x20], rax
jmp 0x1800c6c76
xor eax, eax
add rsp, 0x68
ret

Function at 0x1800c6d60
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.1800c6eb0
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x78]
cmp qword [rsp + 0x20], rax
jae 0x1800c6e63
mov rax, qword [section..data]
cmp qword [rsp + 0x20], rax
jb 0x1800c6dbb
mov rax, qword [0x18011f008]
cmp qword [rsp + 0x20], rax
ja 0x1800c6dbb
mov rax, qword [rsp + 0x20]
add rax, 0x8000000
mov qword [rsp + 0x20], rax
jmp 0x1800c6d7d
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0x30]
call sub.VCRUNTIME140.dll_memset
mov r8d, 0x30
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x1800c6dea
jmp 0x1800c6e63
cmp dword [rsp + 0x50], 0x10000
jne 0x1800c6e41
cmp qword [rsp + 0x48], 0x10000
jb 0x1800c6e41
mov r9d, 0x40
mov r8d, 0x3000
mov edx, 0x10000
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x1800c6e2f
mov rax, qword [rsp + 0x28]
jmp 0x1800c6e65
mov rax, qword [rsp + 0x20]
add rax, 0x10000
mov qword [rsp + 0x20], rax
jmp 0x1800c6e5e
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
mov rcx, rax
call fcn.1800c6eb0
mov qword [rsp + 0x20], rax
jmp 0x1800c6d7d
xor eax, eax
add rsp, 0x68
ret
Function at 0x1800c6f00
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.1800c7490
mov qword [rsp + 0x28], 0
cmp qword [0x180120588], 0
jne 0x1800c6f48
cmp qword [0x180120580], 0
je 0x1800c6f48
mov rax, qword [0x180120580]
mov qword [0x180120588], rax
cmp qword [0x180120588], 0
je 0x1800c6fee
mov rax, qword [0x180120588]
cmp qword [rax + 0x10], 0
je 0x1800c6fee
mov rax, qword [0x180120588]
mov rcx, qword [rsp + 0x38]
cmp qword [rax + 0x10], rcx
jb 0x1800c6fee
mov rax, qword [0x180120588]
mov rcx, qword [rsp + 0x30]
cmp qword [rax + 0x10], rcx
ja 0x1800c6fee
mov rax, qword [0x180120588]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x38]
cmp qword [rsp + 0x28], rax
jb 0x1800c6fb4
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x28], rax
jbe 0x1800c6fbb
xor eax, eax
jmp 0x1800c7169
mov rax, qword [0x180120588]
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 sub.VCRUNTIME140.dll_memset
mov rax, qword [rsp + 0x28]
jmp 0x1800c7169
mov rax, qword [0x180120580]
mov qword [0x180120588], rax
jmp 0x1800c7010
mov rax, qword [0x180120588]
mov rax, qword [rax + 8]
mov qword [0x180120588], rax
cmp qword [0x180120588], 0
je 0x1800c705d
cmp qword [0x180120588], 0
je 0x1800c705b
mov rax, qword [0x180120588]
cmp qword [rax + 0x10], 0
je 0x1800c705b
mov rax, qword [0x180120588]
mov rcx, qword [rsp + 0x38]
cmp qword [rax + 0x10], rcx
jb 0x1800c705b
mov rax, qword [0x180120588]
mov rcx, qword [rsp + 0x30]
cmp qword [rax + 0x10], rcx
ja 0x1800c705b
jmp 0x1800c6f8c
jmp 0x1800c6ffe
mov rcx, qword [rsp + 0x60]
call fcn.1800c90c0
and eax, 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.1800c7170
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
je 0x1800c7167
mov rax, qword [rsp + 0x48]
mov qword [0x180120588], rax
mov rax, qword [0x180120588]
mov dword [rax], 0x52727464
mov rax, qword [0x180120588]
mov qword [rax + 0x10], 0
mov rax, qword [0x180120588]
mov rcx, qword [0x180120580]
mov qword [rax + 8], rcx
mov rax, qword [0x180120588]
mov qword [0x180120580], rax
mov qword [rsp + 0x40], 0
mov rax, qword [0x180120588]
add rax, 0x60
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x2a8
jmp 0x1800c7118
mov eax, dword [rsp + 0x20]
dec eax
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 1
jle 0x1800c7152
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 0x1800c710e
mov rax, qword [0x180120588]
mov rcx, qword [rsp + 0x40]
mov qword [rax + 0x10], rcx
jmp 0x1800c6f8c
xor eax, eax
add rsp, 0x58
ret
Function at 0x1800caba0
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x1800cabda
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x1800cabdf
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x1800cac28
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x1800eff50]
cmp byte [rcx + rax], 0
je 0x1800cac28
dec r8
sub rdx, 1
jne 0x1800cac0e
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x140661b0c
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x50]
sub rsp, 0x150
mov rsi, rdx
mov r12, rcx
test r8d, r8d
je 0x140661cf5
mov r8d, dword [rdx + 0xc]
test r8d, r8d
je 0x140661cf5
xor edi, edi
mov r9, rdx
mov qword [rbp + 0xa8], rdi
mov eax, dword [r9 + 0x10]
mov r13d, dword [r9]
add rax, r12
mov ebx, r8d
add r13, r12
add rbx, r12
mov qword [rsp + 0x30], rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov r15, rax
test rax, rax
jne 0x140661b8a
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov r15, rax
xor edx, edx
lea rcx, [rsp + 0x40]
mov r8d, 0x104
call fcn.1406598ec
test r15, r15
je 0x140661c98
mov rax, qword [r13]
xor r14d, r14d
xor ebx, ebx
test rax, rax
je 0x140661c77
mov rsi, qword [rsp + 0x30]
mov rdi, r13
jns 0x140661bc7
movzx r13d, ax
jmp 0x140661bcf
lea r13, [r12 + 2]
add r13, rax
mov rdx, r13
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
movsxd rcx, r14d
mov qword [rsi + rcx*8], rax
test rax, rax
jne 0x140661c56
cmp dword [0x14066b4f0], 1
jne 0x140661c56
xor edx, edx
lea rcx, [rsp + 0x40]
mov r8d, 0x104
call fcn.1406598ec
lea rcx, [rsp + 0x40]
call fcn.140661e5c
lea rdx, [0x140658898]
lea rcx, [rsp + 0x40]
call fcn.140659910
mov rdx, r13
lea rcx, [rsp + 0x40]
call fcn.140659910
lea rcx, [rsp + 0x40]
call fcn.140659938
mov rcx, qword [0x14066b490]
lea r9, [rbp + 0xa0]
and qword [rsp + 0x20], 0
lea rdx, [rsp + 0x40]
mov r8, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
inc rbx
inc r14d
mov rax, qword [rdi + rbx*8]
test rax, rax
jne 0x140661bbf
mov rdi, qword [rbp + 0xa8]
mov rsi, qword [rbp + 0x98]
inc rdi
mov qword [rbp + 0xa8], rdi
lea rax, [rdi + rdi*4]
lea r9, [rsi + rax*4]
mov r8d, dword [r9 + 0xc]
test r8d, r8d
jne 0x140661b55
jmp 0x140661cf5
lea rcx, [rsp + 0x40]
call fcn.140661e5c
lea rdx, [0x140658878]
lea rcx, [rsp + 0x40]
call fcn.140659910
mov rdx, rbx
lea rcx, [rsp + 0x40]
call fcn.140659910
cmp dword [0x14066b4f0], 1
jne 0x140661cf5
lea rcx, [rsp + 0x40]
call fcn.140659938
mov rcx, qword [0x14066b490]
lea r9, [rbp + 0xa0]
and qword [rsp + 0x20], 0
lea rdx, [rsp + 0x40]
mov r8, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rbx, qword [rsp + 0x190]
xor eax, eax
add rsp, 0x150
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140661d58
Capabilities:
Read file via mapping

Disassembly:
sub rsp, 0x458
call fcn.140661e14
mov r8d, 0x208
lea rdx, [rsp + 0x40]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov r8d, 1
mov edx, 0x80000000
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [0x14066b238], rax
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
mov r8d, 2
xor edx, edx
mov rcx, qword [0x14066b238]
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov qword [0x14066b240], rax
mov qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov edx, 4
mov rcx, qword [0x14066b240]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
movsxd rcx, dword [0x14066b4f8]
add rax, rcx
add rsp, 0x458
ret
Function at 0x1406624e8
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0xa0
mov rbx, qword [rcx]
xor r14d, r14d
mov esi, r14d
mov rdi, rdx
mov r12, rcx
call fcn.140662460
mov rcx, rbx
call fcn.140662724
mov rcx, rdi
mov rbx, rax
call fcn.140662724
xor edx, edx
mov qword [rbp - 0x41], rax
lea r8d, [r14 + 0x58]
mov r13, rax
lea rcx, [rbp - 0x39]
call fcn.1406598ec
lea r8, [rbp - 0x39]
mov rcx, rbx
lea edx, [r14 + 5]
call fcn.140662258
mov r15d, eax
cmp eax, 5
jb 0x1406626f1
mov r8, qword [rbp - 0x31]
mov rcx, rbx
mov rdx, qword [rbp - 0x39]
call fcn.14066277c
mov rsi, rax
test rax, rax
je 0x1406626f1
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r9d, [r14 + 0x40]
mov dword [rbp + 0x7f], r14d
mov rdi, rax
mov dword [rbp + 0x77], r14d
lea rax, [rbp + 0x7f]
mov rcx, rdi
mov r8d, r15d
mov qword [rsp + 0x20], rax
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x1406626d2
lea rax, [rbp + 0x77]
mov rdx, rsi
lea r9d, [r14 + 0x40]
mov qword [rsp + 0x20], rax
lea r8d, [r14 + 0x78]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x1406626a7
lea r12, [rsi + 0x38]
mov rdx, rbx
sub rdx, r12
mov r8, rsi
sub r8, r12
mov rcx, r12
mov r9d, r15d
mov al, byte [rdx + rcx]
mov byte [rcx], al
mov byte [r8 + rcx + 0x58], al
inc rcx
sub r9, 1
jne 0x1406625ee
lea rdx, [r15 + rbx]
lea rcx, [r15 + r12]
call fcn.14066241c
lea r8, [rbp - 0x39]
mov rdx, rbx
mov rcx, r12
call fcn.1406624ac
mov rcx, rbx
mov rax, r13
sub rcx, r13
sub rax, rbx
cmp r13, rbx
cmovb rax, rcx
cmp rax, 0x7fff0000
jbe 0x14066265b
mov rdx, qword [rbp - 0x41]
lea r13, [rsi + 0x18]
mov rcx, r13
call fcn.14066241c
sub rax, rsi
mov rdx, r13
mov rcx, rdi
lea r8, [rax - 0x18]
call qword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov rdx, r13
mov rcx, rbx
call fcn.14066241c
mov rax, qword [rbp - 0x41]
mov r8, r15
mov rdx, r12
mov qword [rsi + 0x10], rax
mov rcx, rdi
mov dword [rsi + 8], r15d
mov qword [rsi], rbx
call qword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov r9d, dword [rbp + 0x77]
lea rax, [rbp + 0x77]
mov r8d, 0x78
mov qword [rsp + 0x20], rax
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov r12, qword [rbp + 0x67]
mov r8, r15
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov r9d, dword [rbp + 0x7f]
lea rax, [rbp + 0x7f]
mov r8, r15
mov qword [rsp + 0x20], rax
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
cmp qword [rsi], r14
je 0x1406626e1
lea rax, [rsi + 0x38]
mov qword [r12], rax
jmp 0x1406626f1
mov edx, 1
mov rcx, rsi
call fcn.1406628cc
mov rsi, r14
lea rcx, [0x14066b258]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rbx, qword [rsp + 0xe8]
test rsi, rsi
setne r14b
mov eax, r14d
add rsp, 0xa0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14066277c
Capabilities:
Get system information on windows

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x18], rsi
mov qword [r11 + 0x20], rdi
push r14
sub rsp, 0x80
xor edi, edi
cmp dword [0x14066b254], 0x40
jae 0x1406628aa
xorps xmm0, xmm0
lea rbx, [rcx + rdx]
add rcx, r8
mov rbp, 0xfffffffffff80000
cmp rcx, 0xffffffff80000000
movups xmmword [rsp + 0x20], xmm0
lea rax, [rcx + 0x7ff80000]
lea rcx, [r11 - 0x68]
cmovb rbp, rax
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x40], xmm0
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, 0x80000000
lea rsi, [rbx - 0x7fff0000]
cmp rbx, rax
lea r14d, [rdi + 1]
cmovb rsi, r14
cmp rsi, rbp
jae 0x1406628aa
mov r8d, 0x30
lea rdx, [rsp + 0x50]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14066287a
cmp dword [rsp + 0x70], 0x10000
jne 0x140662868
mov rax, qword [rsp + 0x68]
cmp rax, 0x78
jb 0x14066286d
mov edx, dword [rsp + 0x48]
mov ecx, edx
cmp rax, rdx
jb 0x14066286d
lea eax, [rdx - 1]
mov r8d, 0x3000
xor edx, edx
add rax, rsi
div rcx
mov edx, 0x78
imul rcx, rax
lea r9d, [rdx - 0x58]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rdi, rax
test rax, rax
jne 0x14066287f
mov rax, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x50]
add rsi, rax
cmp rsi, rbp
jb 0x140662803
test rdi, rdi
je 0x1406628aa
lea rdx, [0x14066b280]
xor eax, eax
mov rcx, rdx
cmp qword [rcx], 0
je 0x14066289f
add eax, r14d
add rcx, 8
cmp eax, 0x40
jb 0x14066288b
jmp 0x1406628aa
add dword [0x14066b254], r14d
mov qword [rdx + rax*8], rdi
lea r11, [rsp + 0x80]
mov rax, rdi
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret