joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14008f1d0
Capabilities:
Get graphical window text

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [rcx + 0x1890]
test rcx, rcx
je 0x14008f2b3
mov eax, dword [rbx]
test eax, eax
je 0x14008f2b3
mov qword [rsp + 0x38], rsi
xor esi, esi
mov qword [rsp + 0x40], rdi
test al, 1
jne 0x14008f20f
mov rax, qword [rbx + 0x1018]
cmp word [rax], si
je 0x14008f22d
mov r8d, 0x7fff
lea rdx, [rbx + 0x189c]
call qword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
jne 0x14008f22d
mov word [rbx + 0x189c], si
test byte [rbx], 4
je 0x14008f246
mov rcx, qword [rbx + 0x1890]
lea rdx, [rbx + 0x1898]
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test byte [rbx], 0x20
je 0x14008f284
mov rcx, qword [rbx + 0x1890]
lea rdx, [rsp + 0x30]
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test eax, eax
je 0x14008f284
movzx r9d, byte [rbx + 0x1850]
lea rdx, [rbx + 0x11a9c]
mov ecx, dword [rsp + 0x30]
call fcn.14005d630
test eax, eax
jne 0x14008f284
mov word [rbx + 0x11a9c], si
test byte [rbx], 8
mov rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
je 0x14008f2b3
mov rcx, qword [rbx + 0x1890]
lea rdx, [rbx + 0x1189a]
mov r8d, 0x101
add rsp, 0x20
pop rbx
jmp qword [sym.imp.USER32.dll_GetClassNameW]
add rsp, 0x20
pop rbx
ret

Function at 0x14008fb20
Capabilities:
Enumerate gui resources

Disassembly:
mov eax, 0x11cd8
call fcn.1400be180
sub rsp, rax
mov rax, qword [rcx + 0x10]
test rax, rax
je 0x14008fbda
xor r9d, r9d
mov byte [rsp + 0x18a0], dl
lea rcx, [0x1400ccf5c]
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x1038], rcx
lea rdx, [rsp + 0x20]
xorps xmm0, xmm0
mov byte [rsp + 0x1871], r9b
lea rcx, [0x140090420]
mov dword [rsp + 0x1874], r9d
mov qword [rsp + 0x1878], r9
movdqa xmmword [rsp + 0x1880], xmm0
mov dword [rsp + 0x1890], r9d
mov qword [rsp + 0x18a8], r9
mov qword [rsp + 0x18b0], r9
mov qword [rsp + 0x1898], rax
mov dword [rsp + 0x18a4], r8d
call qword [sym.imp.USER32.dll_EnumWindows]
cmp qword [rsp + 0x1878], 0
je 0x14008fbda
mov rax, qword [0x1400fda58]
mov ecx, dword [rax + 0x74]
cmp ecx, 0xffffffff
jle 0x14008fbda
mov edx, 1
call fcn.140001710
mov eax, 1
add rsp, 0x11cd8
ret
Function at 0x14008fbf0
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov qword [rsp + 0x20], rbx
push r14
sub rsp, 0x20
cmp qword [rcx + 0x10], 0
movzx r14d, dl
mov rbx, rcx
jne 0x14008fc1a
mov eax, 1
mov rbx, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x40], rdi
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov r8, qword [0x1400fda58]
mov rcx, rbx
mov rdx, rax
mov rdi, rax
call fcn.1400901c0
cmp byte [rbx], 0
mov rbp, rax
je 0x14008fc51
test rax, rax
jne 0x14008fc5a
jmp 0x14008fcf2
test rbp, rbp
jne 0x14008fced
test rdi, rdi
je 0x14008fced
xor r9d, r9d
mov qword [rsp + 0x38], rsi
xor r8d, r8d
mov rcx, rdi
lea edx, [r9 + 0x10]
call qword [sym.imp.USER32.dll_PostMessageW]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, 1
mov ecx, 0x8000012f
mov esi, eax
call fcn.140001710
mov rcx, rdi
call qword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x14008fccf
nop
call qword [sym.imp.KERNEL32.dll_GetTickCount]
lea ecx, [rsi + 0x1f4]
sub ecx, eax
cmp ecx, 5
jle 0x14008fccf
mov edx, 1
mov ecx, 0x8000012f
call fcn.140001710
mov rcx, rdi
call qword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x14008fca0
mov rax, qword [0x1400fda58]
mov rsi, qword [rsp + 0x38]
mov ecx, dword [rax + 0x74]
cmp ecx, 0xffffffff
jle 0x14008fced
mov edx, 1
call fcn.140001710
cmp byte [rbx], 0
je 0x14008fd06
xor r9d, r9d
mov r8, rbp
movzx edx, r14b
mov rcx, rbx
call fcn.14008fd30
jmp 0x14008fd12
movzx edx, r14b
mov rcx, rbx
call fcn.14008ff20
mov rdi, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret

Function at 0x14008ff20
Capabilities:
Enumerate gui resources

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
mov eax, 0x11ce0
call fcn.1400be180
sub rsp, rax
cmp qword [rcx + 0x10], 0
movzx edi, dl
mov rbx, rcx
je 0x1400900e4
xor edx, edx
call fcn.140090100
test eax, eax
jne 0x14008ff60
mov rbx, qword [rsp + 0x11d00]
add rsp, 0x11ce0
pop rdi
ret
mov qword [rsp + 0x11cf0], rbp
mov qword [rsp + 0x11cf8], rsi
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov r8, qword [0x1400fda58]
mov rcx, rbx
mov rdx, rax
mov rsi, rax
call fcn.1400901c0
mov ecx, dword [0x140104458]
xor ebp, ebp
test rax, rax
mov dword [rsp + 0x30], ebp
lea rax, [0x1400ccf5c]
mov dword [rsp + 0x1884], ebp
cmovne ecx, ebp
mov qword [rsp + 0x1048], rax
mov dword [0x140104458], ecx
mov qword [rsp + 0x1888], rbp
mov qword [rsp + 0x1890], rbp
mov qword [rsp + 0x18b8], rbp
mov qword [rsp + 0x18c0], rbp
test dil, dil
je 0x14008ffea
mov byte [rsp + 0x1881], bpl
test ecx, ecx
je 0x14008fff2
mov byte [rsp + 0x1881], 1
mov rax, qword [0x140104450]
lea rdx, [rsp + 0x30]
mov qword [rsp + 0x1898], rax
test byte [rax + rbx*4], ah
sbb byte [rax], al
add byte [rax - 0x75], cl
adc byte [r9 + 0x18a0248c], cl
add byte [rax], al
Function at 0x1400acdc8
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 0x1400acb9c
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400acb9c
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400acb9c
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400acb9c
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400acb9c
cmp dword [rcx + 0x84], 0xe
jbe 0x1400acb9c
cmp dword [rcx + 0xf8], esi
je 0x1400acb9c
mov ecx, r14d
call fcn.1400acce4
mov ecx, 2
call fcn.1400b6000
nop
cmp byte [0x140100b00], 0
jne 0x1400acc66
mov r15d, 1
mov eax, r15d
xchg dword [0x140100af4], eax
test ebx, ebx
jne 0x1400acc0f
mov rdi, qword [0x1400fd018]
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 [0x140100af8]
cmp rcx, rax
je 0x1400acc06
xor rdi, rcx
mov ecx, edx
ror rdi, cl
mov rcx, rdi
call qword [fcn.140016e70]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call rdi
lea rcx, [0x140100d40]
jmp 0x1400acc1b
cmp ebx, r15d
jne 0x1400acc21
lea rcx, [0x140100d58]
call fcn.1400b2c20
nop
test ebx, ebx
jne 0x1400acc38
lea rdx, [0x1400c4f68]
lea rcx, [0x1400c4f48]
call fcn.1400b2fb4
lea rdx, [0x1400c4f78]
lea rcx, [0x1400c4f70]
call fcn.1400b2fb4
movzx eax, byte [0x140100b00]
test esi, esi
cmove eax, r15d
mov byte [0x140100b00], al
jmp 0x1400acc66
mov ecx, 2
call fcn.1400b6054
test esi, esi
jne 0x1400acc7d
mov ecx, r14d
call fcn.1400acc98
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 0x1400acb2c
Function at 0x14084f058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x14084f1df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x14084f089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14084f06f
add dl, dl
jne 0x14084f096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14084f0f6
xor eax, eax
add dl, dl
jne 0x14084f0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14084f1ad
add dl, dl
jne 0x14084f0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14084f0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14084f0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14084f0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x14084f0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14084f07e
mov eax, 1
add dl, dl
jne 0x14084f106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14084f113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14084f0fb
sub eax, ebx
mov ebx, 1
jne 0x14084f14c
mov ecx, 1
add dl, dl
jne 0x14084f12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14084f13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14084f123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14084f07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x14084f168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14084f175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14084f15d
cmp eax, 0x7d00
jae 0x14084f19b
cmp eax, 0x500
jb 0x14084f196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14084f07e
cmp eax, 0x7f
ja 0x14084f19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14084f07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x14084f1d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x14084f07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x1400038c4
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000390e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000390e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000390e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000390e
cmp dword [rcx + 0x84], 0xe
jbe 0x14000390e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140003910
xor al, al
add rsp, 0x28
ret
Function at 0x1800022f0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x98
lea rbp, [rsp + 0xd0]
xorps xmm4, xmm4
movaps xmmword [rbp - 0x50], xmm4
xor eax, eax
mov qword [rbp - 0x40], rax
mov rbx, rdx
mov rsi, r8
mov rdi, r9
xorps xmm0, xmm0
movups xmmword [rbp - 0x48], xmm0
mov qword [rbp - 0x48], rcx
lea rdx, [rbp - 0x40]
cmp dword [rcx], ecx
call fcn.180039220
nop
test rbx, rbx
jne 0x180002341
xor edx, edx
jmp 0x180002345
lea rdx, [rbx + 0xc]
mov qword [rbp - 0x50], rdx
mov rcx, qword [rbp - 0x48]
mov rbx, qword [rbp + 0x30]
mov qword [rsp + 0x20], rbx
mov rbx, qword [rbp + 0x38]
mov qword [rsp + 0x28], rbx
mov rcx, qword [rcx + 8]
mov qword [rbp - 0x80], rcx
mov qword [rbp - 0x88], rdx
mov r8, rsi
mov qword [rbp - 0x90], r8
mov r9, rdi
mov qword [rbp - 0x98], r9
lea rcx, [rbp - 0x78]
call fcn.1800a4870
mov rcx, qword [rbp - 0x80]
mov rdx, qword [rbp - 0x88]
mov r8, qword [rbp - 0x90]
mov r9, qword [rbp - 0x98]
call sub.ADVAPI32.dll_RegQueryValueExW
mov ebx, eax
lea rcx, [rbp - 0x78]
call fcn.1800a48c0
nop
xor ecx, ecx
mov qword [rbp - 0x50], rcx
cmp byte [rbp - 0x40], 0
je 0x1800023ce
mov rcx, qword [rbp - 0x48]
cmp byte [rcx], cl
xor edx, edx
call fcn.180039260
mov eax, ebx
add rsp, 0x98
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret

Function at 0x180002440
Capabilities:
Set registry value

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x98
lea rbp, [rsp + 0xd0]
xor eax, eax
mov qword [rbp - 0x58], rax
xorps xmm4, xmm4
movaps xmmword [rbp - 0x50], xmm4
mov qword [rbp - 0x40], rax
mov rbx, rdx
mov esi, r8d
mov edi, r9d
mov r14, qword [rbp + 0x30]
xorps xmm0, xmm0
movups xmmword [rbp - 0x48], xmm0
mov qword [rbp - 0x48], rcx
lea rdx, [rbp - 0x40]
cmp dword [rcx], ecx
call fcn.180039220
nop
lea rcx, [r14 + 0x10]
xor edx, edx
test r14, r14
cmove rcx, rdx
mov qword [rbp - 0x50], rcx
test rbx, rbx
jne 0x1800024aa
xor edx, edx
jmp 0x1800024ae
lea rdx, [rbx + 0xc]
mov qword [rbp - 0x58], rdx
mov r8, qword [rbp - 0x48]
mov qword [rsp + 0x20], rcx
mov ebx, dword [rbp + 0x38]
mov dword [rsp + 0x28], ebx
mov rcx, qword [r8 + 8]
mov qword [rbp - 0x90], rcx
mov qword [rbp - 0x98], rdx
mov r8d, esi
mov dword [rbp - 0x84], r8d
mov r9d, edi
mov dword [rbp - 0x88], r9d
lea rcx, [rbp - 0x80]
call fcn.1800a4870
mov rcx, qword [rbp - 0x90]
mov rdx, qword [rbp - 0x98]
mov r8d, dword [rbp - 0x84]
mov r9d, dword [rbp - 0x88]
call sub.ADVAPI32.dll_RegSetValueExW
mov ebx, eax
lea rcx, [rbp - 0x80]
call fcn.1800a48c0
nop
xor ecx, ecx
mov qword [rbp - 0x58], rcx
xor ecx, ecx
mov qword [rbp - 0x50], rcx
cmp byte [rbp - 0x40], 0
je 0x18000253d
mov rcx, qword [rbp - 0x48]
cmp byte [rcx], cl
xor edx, edx
call fcn.180039260
mov eax, ebx
add rsp, 0x98
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
Function at 0x1800025e0
Capabilities:
Set registry value

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x98
lea rbp, [rsp + 0xd0]
xor eax, eax
mov qword [rbp - 0x58], rax
xorps xmm4, xmm4
movaps xmmword [rbp - 0x50], xmm4
mov qword [rbp - 0x40], rax
mov rbx, rdx
mov esi, r8d
mov edi, r9d
mov r14, qword [rbp + 0x30]
xorps xmm0, xmm0
movups xmmword [rbp - 0x48], xmm0
mov qword [rbp - 0x48], rcx
lea rdx, [rbp - 0x40]
cmp dword [rcx], ecx
call fcn.180039220
nop
mov qword [rbp - 0x50], r14
test rbx, rbx
jne 0x18000263d
xor edx, edx
jmp 0x180002641
lea rdx, [rbx + 0xc]
mov qword [rbp - 0x58], rdx
mov rcx, qword [rbp - 0x48]
mov qword [rsp + 0x20], r14
mov ebx, dword [rbp + 0x38]
mov dword [rsp + 0x28], ebx
mov rcx, qword [rcx + 8]
mov qword [rbp - 0x90], rcx
mov qword [rbp - 0x98], rdx
mov r8d, esi
mov dword [rbp - 0x84], r8d
mov r9d, edi
mov dword [rbp - 0x88], r9d
lea rcx, [rbp - 0x80]
call fcn.1800a4870
mov rcx, qword [rbp - 0x90]
mov rdx, qword [rbp - 0x98]
mov r8d, dword [rbp - 0x84]
mov r9d, dword [rbp - 0x88]
call sub.ADVAPI32.dll_RegSetValueExW
mov ebx, eax
lea rcx, [rbp - 0x80]
call fcn.1800a48c0
nop
xor ecx, ecx
mov qword [rbp - 0x58], rcx
xor ecx, ecx
mov qword [rbp - 0x50], rcx
cmp byte [rbp - 0x40], 0
je 0x1800026d0
mov rcx, qword [rbp - 0x48]
cmp byte [rcx], cl
xor edx, edx
call fcn.180039260
mov eax, ebx
add rsp, 0x98
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret

Function at 0x180002770
Capabilities:
Set registry value

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x98
lea rbp, [rsp + 0xd0]
xor eax, eax
mov qword [rbp - 0x58], rax
xorps xmm4, xmm4
movaps xmmword [rbp - 0x50], xmm4
mov qword [rbp - 0x40], rax
mov rbx, rdx
mov esi, r8d
mov edi, r9d
mov r14, qword [rbp + 0x30]
xorps xmm0, xmm0
movups xmmword [rbp - 0x48], xmm0
mov qword [rbp - 0x48], rcx
lea rdx, [rbp - 0x40]
cmp dword [rcx], ecx
call fcn.180039220
nop
test r14, r14
jne 0x1800027c9
xor ecx, ecx
jmp 0x1800027cd
lea rcx, [r14 + 0xc]
mov qword [rbp - 0x50], rcx
test rbx, rbx
jne 0x1800027da
xor edx, edx
jmp 0x1800027de
lea rdx, [rbx + 0xc]
mov qword [rbp - 0x58], rdx
mov r8, qword [rbp - 0x48]
mov qword [rsp + 0x20], rcx
mov ebx, dword [rbp + 0x38]
mov dword [rsp + 0x28], ebx
mov rcx, qword [r8 + 8]
mov qword [rbp - 0x90], rcx
mov qword [rbp - 0x98], rdx
mov r8d, esi
mov dword [rbp - 0x84], r8d
mov r9d, edi
mov dword [rbp - 0x88], r9d
lea rcx, [rbp - 0x80]
call fcn.1800a4870
mov rcx, qword [rbp - 0x90]
mov rdx, qword [rbp - 0x98]
mov r8d, dword [rbp - 0x84]
mov r9d, dword [rbp - 0x88]
call sub.ADVAPI32.dll_RegSetValueExW
mov ebx, eax
lea rcx, [rbp - 0x80]
call fcn.1800a48c0
nop
xor ecx, ecx
mov qword [rbp - 0x58], rcx
xor ecx, ecx
mov qword [rbp - 0x50], rcx
cmp byte [rbp - 0x40], 0
je 0x18000286d
mov rcx, qword [rbp - 0x48]
cmp byte [rcx], cl
xor edx, edx
call fcn.180039260
mov eax, ebx
add rsp, 0x98
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
Function at 0x180004950
Capabilities:
Enumerate process modules

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x98
lea rbp, [rsp + 0xd0]
xor eax, eax
mov qword [rbp - 0x58], rax
xorps xmm4, xmm4
movaps xmmword [rbp - 0x50], xmm4
mov qword [rbp - 0x40], rax
mov rsi, rdx
mov edi, r8d
mov rbx, r9
xor edx, edx
mov dword [rbx], edx
xorps xmm0, xmm0
movups xmmword [rbp - 0x48], xmm0
mov qword [rbp - 0x48], rcx
lea rdx, [rbp - 0x40]
cmp dword [rcx], ecx
call fcn.180039220
nop
mov qword [rbp - 0x50], rbx
lea r14, [rsi + 0x10]
xor ecx, ecx
test rsi, rsi
cmove r14, rcx
mov qword [rbp - 0x58], r14
mov rcx, qword [rbp - 0x48]
mov rsi, qword [rcx + 8]
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov r15d, dword [rbp + 0x30]
mov dword [rsp + 0x20], r15d
mov rcx, rsi
mov qword [rbp - 0x8c], rcx
mov rdx, r14
mov qword [rbp - 0x94], rdx
mov r8d, edi
mov dword [rbp - 0x84], r8d
mov r9, rbx
mov qword [rbp - 0x9c], r9
lea rcx, [rbp - 0x80]
call fcn.1800a4870
mov rcx, qword [rbp - 0x8c]
mov rdx, qword [rbp - 0x94]
mov r8d, dword [rbp - 0x84]
mov r9, qword [rbp - 0x9c]
call sub.KERNEL32.dll_K32EnumProcessModulesEx
mov ebx, eax
lea rcx, [rbp - 0x80]
call fcn.1800a48c0
call sub.KERNEL32.dll_GetLastError
mov esi, eax
xor ecx, ecx
mov qword [rbp - 0x58], rcx
xor ecx, ecx
mov qword [rbp - 0x50], rcx
test ebx, ebx
setne bl
movzx ebx, bl
cmp byte [rbp - 0x40], 0
je 0x180004a58
mov rcx, qword [rbp - 0x48]
cmp byte [rcx], cl
xor edx, edx
call fcn.180039260
mov rax, qword gs:[0x58]
mov ecx, dword [0x1801981cc]
mov edx, 0x10
add rdx, qword [rax + rcx*8]
mov rdi, qword [rdx]
test rdi, rdi
je 0x180004a92
mov dword [rdi + 0x78], esi
movzx eax, bl
add rsp, 0x98
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
mov rcx, rdx
lea rax, [0x18003b3d0]
call rax
mov rdi, rax
jmp 0x180004a78

Function at 0x180006f20
Capabilities:
Enumerate process modules

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
lea rcx, [0x1801ae3b0]
cmp qword [rcx - 8], 0
jne 0x180006f5e
mov rcx, rbx
call fcn.180006ce0
test eax, eax
jne 0x180006f4c
add rsp, 0x20
pop rbx
jmp fcn.180007f80
mov rcx, rbx
mov edx, 1
add rsp, 0x20
pop rbx
jmp fcn.180007f00
call fcn.18009f896
jmp 0x180006f36
Function at 0x180007f80
Capabilities:
Enumerate process modules

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x88
lea rbp, [rsp + 0xc0]
xor eax, eax
mov qword [rbp - 0x48], rax
lea rcx, [0x1801ae608]
cmp qword [rcx - 8], 0
jne 0x18000811f
mov rbx, qword [0x18018c5e8]
mov qword [rbp - 0x80], rbx
mov rcx, qword [rbx + 8]
mov edx, 0x100
cmp dword [rcx], ecx
call fcn.18007f700
mov rsi, rax
mov rcx, qword gs:[0x58]
mov eax, dword [0x1801981cc]
mov edx, 0x10
add rdx, qword [rcx + rax*8]
mov rdi, qword [rdx]
test rdi, rdi
je 0x180008129
mov qword [rbp - 0x88], rdi
jmp 0x180008028
add r14d, r14d
mov rbx, qword [rbp - 0x80]
mov rcx, qword [rbx + 8]
mov rdx, qword [rbp - 0x78]
xor r8d, r8d
cmp dword [rcx], ecx
call fcn.18007f960
mov rcx, qword [rbx + 8]
mov edx, r14d
cmp dword [rcx], ecx
call fcn.18007f700
mov rsi, rax
mov r14d, dword [rsi + 8]
lea r15d, [r14*4]
xor ecx, ecx
mov dword [rbp - 0x3c], ecx
lea r13, [rbp - 0x3c]
mov qword [rbp - 0x78], rsi
lea r12, [rsi + 0x10]
mov qword [rbp - 0x48], r12
call sub.KERNEL32.dll_SetLastError
mov rcx, r12
mov qword [rbp - 0x94], rcx
mov edx, r15d
mov dword [rbp - 0x8c], edx
mov r8, r13
mov qword [rbp - 0x9c], r8
lea rcx, [rbp - 0x70]
call fcn.1800a4870
mov rcx, qword [rbp - 0x94]
mov edx, dword [rbp - 0x8c]
mov r8, qword [rbp - 0x9c]
call sub.KERNEL32.dll_K32EnumProcesses
mov ebx, eax
lea rcx, [rbp - 0x70]
call fcn.1800a48c0
call sub.KERNEL32.dll_GetLastError
xor ecx, ecx
mov qword [rbp - 0x48], rcx
mov rdi, qword [rbp - 0x88]
mov dword [rdi + 0x78], eax
test ebx, ebx
je 0x18000813d
cmp dword [rbp - 0x3c], r15d
je 0x180007ffe
mov rsi, qword [rbp - 0x78]
mov edx, dword [rbp - 0x3c]
sar edx, 0x1f
and edx, 3
add edx, dword [rbp - 0x3c]
sar edx, 2
movsxd rdx, edx
lea rcx, [0x1801c7670]
call fcn.1800a2cc0
mov rdi, rax
mov r8d, dword [rdi + 8]
mov rcx, rsi
mov rdx, rdi
call fcn.180013630
mov rbx, qword [rbp - 0x80]
mov rcx, qword [rbx + 8]
mov rdx, rsi
xor r8d, r8d
cmp dword [rcx], ecx
call fcn.18007f960
mov rax, rdi
add rsp, 0x88
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
call fcn.18009fdb8
jmp 0x180007fb3
mov rcx, rdx
lea rax, [0x18003b3d0]
call rax
mov rdi, rax
jmp 0x180007ff5
lea rcx, [0x1801b2f10]
call fcn.1800a2ba0
mov rbx, rax
mov rcx, rbx
call fcn.1800216f0
mov rcx, rbx
call fcn.1800a3120
int3
Function at 0x18000a120
Capabilities:
Generate random numbers via winapi

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x68
lea rbp, [rsp + 0xa0]
mov r8d, edx
mov dword [rbp - 0x64], r8d
mov rdx, rcx
mov qword [rbp - 0x70], rdx
xor ecx, ecx
mov qword [rbp - 0x78], rcx
mov r9d, 2
mov dword [rbp - 0x68], r9d
lea rcx, [rbp - 0x60]
call fcn.1800a4870
mov r8d, dword [rbp - 0x64]
mov rdx, qword [rbp - 0x70]
mov rcx, qword [rbp - 0x78]
mov r9d, dword [rbp - 0x68]
call sub.bcrypt.dll_BCryptGenRandom
mov ebx, eax
lea rcx, [rbp - 0x60]
call fcn.1800a48c0
test ebx, ebx
jne 0x18000a194
add rsp, 0x68
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
cmp ebx, 0xc0000017
je 0x18000a1bc
lea rcx, [0x1801b1b00]
call fcn.1800a2ba0
mov rbx, rax
mov rcx, rbx
call fcn.180017840
mov rcx, rbx
call fcn.1800a3120
int3
lea rcx, [0x1801b21a0]
call fcn.1800a2ba0
mov rbx, rax
mov rcx, rbx
call fcn.18001aff0
mov rcx, rbx
call fcn.1800a3120
int3

Function at 0x18000a670
Capabilities:
Inspect section memory permissions

Disassembly:
push rbp
push rbx
sub rsp, 0x48
lea rbp, [rsp + 0x50]
mov rbx, rcx
mov eax, dword [rbx + 0x38]
cmp eax, 0xffffffff
jne 0x18000a717
mov dword [rsp + 0x20], 0x10
lea r8, [rbp - 0x10]
lea rdx, [rbp - 0x20]
mov rcx, rbx
mov r9d, 4
call fcn.1800402a0
mov ecx, eax
test ecx, ecx
jne 0x18000a71e
xor eax, eax
mov ecx, 0x40000000
test byte [rbp - 0x10], 0x30
cmove eax, ecx
mov ecx, eax
or ecx, 0x80000000
test byte [rbp - 0x10], 2
cmovne eax, ecx
mov ecx, eax
or ecx, 0x10000000
test dword [rbp - 0x10], 0x800
cmovne eax, ecx
mov ecx, eax
or ecx, 0x8000000
test byte [rbp - 0x10], 4
cmovne eax, ecx
mov ecx, eax
or ecx, 0x4000000
test dword [rbp - 0x10], 0x1000
cmovne eax, ecx
mov ecx, eax
or ecx, 0x20000000
test byte [rbp - 0x10], 8
cmovne eax, ecx
mov dword [rbx + 0x38], eax
add rsp, 0x48
pop rbx
pop rbp
ret
add rsp, 0x48
pop rbx
pop rbp
ret
call fcn.180040170
mov ecx, eax
lea rdx, [0x1801998a8]
xor r8d, r8d
call fcn.180031070
mov rcx, rax
call fcn.1800a3120
int3

Function at 0x18000d0a0
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0x28
test rcx, rcx
je 0x18000d0b2
add rsp, 0x28
jmp fcn.18000d540
lea rcx, [0x1801ac9c8]
call fcn.180004510
int3

Function at 0x18000d0c0
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0x28
test rcx, rcx
je 0x18000d0e0
cmp dword [rcx + 8], 0
je 0x18000d0d8
add rsp, 0x28
jmp fcn.18000d1a0
mov rax, rcx
add rsp, 0x28
ret
lea rcx, [0x1801abf70]
call fcn.180004510
int3