joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6a242130
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rdi, dword [0x6a2485e4]
mov r12, rcx
mov rsi, rdx
mov rbx, r8
test edi, edi
jle 0x6a2422d8
mov rax, qword [0x6a2485e8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp r12, rdx
jb 0x6a24217c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x6a242207
add ecx, 1
add rax, 0x28
cmp ecx, edi
jne 0x6a242160
mov rcx, r12
call fcn.6a242e30
mov rbp, rax
test rax, rax
je 0x6a242312
mov rax, qword [0x6a2485e8]
lea rdi, [rdi + rdi*4]
shl rdi, 3
add rax, rdi
mov qword [rax + 0x20], rbp
mov dword [rax], 0
call fcn.6a242f60
mov ecx, dword [rbp + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x6a2485e8]
mov qword [rax + rdi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x6a242321
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x6a242200
sub eax, 4
and eax, 0xfffffffb
jne 0x6a242290
add dword [0x6a2485e4], 1
cmp ebx, 8
jae 0x6a242238
test bl, 4
jne 0x6a2422e0
test ebx, ebx
je 0x6a242229
movzx eax, byte [rsi]
mov byte [r12], al
test bl, 2
jne 0x6a242300
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 0x6a242229
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 0x6a24226a
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 [0x6a2485e8]
mov qword [rdi + 8], rcx
mov r9, rdi
mov qword [rdi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x6a242200
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.6a2420c0
nop dword [rax]
xor edi, edi
jmp 0x6a242187
mov eax, dword [rsi]
mov ebx, ebx
mov dword [r12], eax
mov eax, dword [rsi + rbx - 4]
mov dword [r12 + rbx - 4], eax
jmp 0x6a242229
mov ebx, ebx
movzx eax, word [rsi + rbx - 2]
mov word [r12 + rbx - 2], ax
jmp 0x6a242229
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.6a2420c0
mov rax, qword [0x6a2485e8]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rdi + 0x18]
call fcn.6a2420c0
nop
nop dword [rax]
Function at 0x6a242aa0
Capabilities:
Get thread local storage value

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

Function at 0x6a242e30
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r10, qword [0x6a2452a0]
xor r8d, r8d
cmp word [r10], 0x5a4d
mov r9, rcx
jne 0x6a242ea9
mov rcx, r10
call fcn.6a242d00
test eax, eax
je 0x6a242ea9
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 0x6a242ea6
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 0x6a242e9d
add eax, dword [r8 + 8]
cmp rcx, rax
jb 0x6a242ea9
add r8, 0x28
cmp r8, r9
jne 0x6a242e88
xor r8d, r8d
mov rax, r8
add rsp, 0x28
ret
Function at 0x14000543c
Capabilities:
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
sub rsp, 0x58
rdtsc
and qword [0x14000d918], 0
and qword [0x14000d908], 0
shl rdx, 0x20
or rax, rdx
btr eax, 0x1f
mov qword [0x14000d928], rax
call fcn.140005274
mov qword [0x14000d900], rax
mov rdx, rax
test rax, rax
je 0x14000548d
mov eax, 1
mov qword [0x14000d910], rax
mov qword [0x14000d920], rax
jmp 0x14000549d
and qword [0x14000d910], 0
and qword [0x14000d920], 0
mov rax, rdx
neg rax
sbb ecx, ecx
xor eax, eax
not ecx
and ecx, 0x8007000e
test rdx, rdx
cmove eax, ecx
test eax, eax
js 0x1400054fd
and dword [rsp + 0x30], 0
lea rax, [rsp + 0x30]
and qword [rsp + 0x38], 0
lea rdx, [rsp + 0x20]
and dword [rsp + 0x40], 0
xor r9d, r9d
mov ecx, 0xb9
mov dword [rsp + 0x34], 0x64
mov qword [rsp + 0x20], 8
mov qword [rsp + 0x28], rax
lea r8d, [r9 + 0x10]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
xor eax, eax
add rsp, 0x58
ret

Function at 0x140005504
Capabilities:
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
mov rsi, qword [0x14000d900]
jmp 0x14000555b
mov rdi, rsi
mov rsi, qword [rsi + 0xfbd0]
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
lea rcx, [rdi + 0xfbe0]
mov ebx, eax
call qword [sym.imp.api_ms_win_core_rtlsupport_l1_1_0.dll_RtlDeleteFunctionTable]
xor edx, edx
mov r8d, 0x8000
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_memory_l1_1_0.dll_VirtualFree]
mov ecx, ebx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
dec qword [0x14000d910]
test rsi, rsi
jne 0x14000551c
and qword [0x14000d900], rsi
lea rax, [0x140000000]
and dword [rsp + 0x20], esi
lea r8d, [rsi + 0x10]
mov qword [rsp + 0x28], rax
lea rdx, [rsp + 0x30]
lea rax, [rsp + 0x20]
mov qword [rsp + 0x30], 9
xor r9d, r9d
mov qword [rsp + 0x38], rax
mov ecx, 0xb9
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret

Function at 0x1400072c0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14000730c
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140007304
cmp dword [rcx + 0x3c], edx
jl 0x140007304
cmp dword [rcx + 0x3c], 0x10000000
jae 0x140007304
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x14000730c
mov rax, rdx
add rsp, 0x18
ret
Function at 0x140001000
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x70
lea rcx, str._JAVA_LAUNCHER_DEBUG
call qword [sym.imp.MSVCR100.dll_getenv]
test rax, rax
je 0x140001066
lea rcx, str.Windows_original_main_args:_n
call qword [sym.imp.MSVCR100.dll_printf]
mov rax, qword [sym.imp.MSVCR100.dll___argc]
xor ebx, ebx
cmp dword [rax], ebx
jle 0x140001066
xor edi, edi
mov rax, qword [sym.imp.MSVCR100.dll___argv]
lea rcx, str.wwwd_args__d____s_n
mov edx, ebx
mov r8, qword [rax]
mov r8, qword [r8 + rdi]
call qword [sym.imp.MSVCR100.dll_printf]
mov rax, qword [sym.imp.MSVCR100.dll___argc]
inc ebx
add rdi, 8
cmp ebx, dword [rax]
jl 0x140001038
call qword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov rcx, rax
call sub.jli.dll_JLI_CmdToArgs
call sub.jli.dll_JLI_GetStdArgc
movsxd rdi, eax
lea ecx, [rdi + 1]
movsxd rcx, ecx
shl rcx, 3
call sub.jli.dll_JLI_MemAlloc
mov rbx, rax
call sub.jli.dll_JLI_GetStdArgs
xor r9d, r9d
xor edx, edx
test edi, edi
jle 0x1400010b2
mov r9d, edi
mov rcx, qword [rax]
add rax, 0x10
mov qword [rbx + rdx*8], rcx
inc rdx
cmp rdx, rdi
jl 0x14000109f
mov rcx, qword [str.java]
movsxd rax, r9d
and qword [rbx + rax*8], 0
test rcx, rcx
jne 0x1400010c9
mov rcx, qword [rbx]
mov rax, qword [str.java]
test rax, rax
jne 0x1400010d8
mov rax, qword [rbx]
and dword [rsp + 0x68], 0
mov byte [rsp + 0x60], 0
mov byte [rsp + 0x58], 0
mov byte [rsp + 0x50], 1
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x40], rax
lea rax, [0x140002250]
lea r9, str._J_ms8m
mov r8d, 3
mov qword [rsp + 0x38], rax
lea rax, [0x140002240]
mov rdx, rbx
mov qword [rsp + 0x30], rax
lea rax, str._lib_tools.jar
mov ecx, edi
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 2
call sub.jli.dll_JLI_Launch
mov rbx, qword [rsp + 0x80]
add rsp, 0x70
pop rdi
ret

Function at 0x100411ce0
Capabilities:
Encode data using xor

Disassembly:
add dword [rax - 0x66], edi
sub al, 0x75
enter 0xffffffffffffe29b, 0xffffffffffffffbd
int3
jg 0x100411c82
movsd dword [rdi], dword [rsi]
invalid
Function at 0x140729058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x1407291df
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 0x140729089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14072906f
add dl, dl
jne 0x140729096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1407290f6
xor eax, eax
add dl, dl
jne 0x1407290a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1407291ad
add dl, dl
jne 0x1407290b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1407290c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1407290d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1407290dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1407290ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14072907e
mov eax, 1
add dl, dl
jne 0x140729106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140729113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1407290fb
sub eax, ebx
mov ebx, 1
jne 0x14072914c
mov ecx, 1
add dl, dl
jne 0x14072912e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14072913b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140729123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14072907e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140729168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140729175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14072915d
cmp eax, 0x7d00
jae 0x14072919b
cmp eax, 0x500
jb 0x140729196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14072907e
cmp eax, 0x7f
ja 0x14072919e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14072907e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1407291d2
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 0x14072907e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20

Function at 0x1406b1c00
Capabilities:
Encode data using xor

Disassembly:
mov rax, qword gs:[0x60]
movabs r11, 0x6b1c70
movabs r10, 0x6b1c74
mov r9, qword [rax + 0x10]
xor eax, eax
movsxd rcx, dword [r9 + 0x3c]
movsxd r11, dword [r9 + r11]
add rcx, r9
mov r10d, dword [r9 + r10]
movzx r8d, word [rcx + 0x14]
add r8, rcx
cmp dword [r8 + 0x20], eax
jbe 0x1406b1c66
mov edx, eax
nop dword [rax]
nop word [rax + rax]
mov ecx, dword [r8 + 0x24]
inc eax
add rcx, rdx
inc rdx
xor byte [rcx + r9], r10b
cmp eax, dword [r8 + 0x20]
jb 0x1406b1c50
lea rax, [r9 + r11]
jmp rax
Function at 0x180039140
Capabilities:
Create thread

Disassembly:
sub rsp, 0x38
cmp edx, 1
jne 0x18003916e
mov r9, rcx
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
lea r8, [0x1800314f0]
xor ecx, ecx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov al, 1
add rsp, 0x38
ret

Function at 0x18003df3c
Capabilities:
Parse pe header

Disassembly:
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x18003df3c
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x18003dfab
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x18003dfab
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x18003dfab
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x18003dfab
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x18003dfab
cmp dword [rcx + 0x84], 0xe
jbe 0x18003dfab
cmp dword [rcx + 0xf8], 0
je 0x18003dfab
mov ecx, ebx
call fcn.18003dea8
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.18003e0e0
nop
cmp dword [rbp + 0x20], 0
jne 0x18003e00c
call fcn.180045164
cmp eax, 1
jne 0x18003dffc
xor dl, dl
jmp 0x18003e006
call fcn.180045130
test al, al
sete dl
cmp dword [rbp + 0x20], 0
je 0x18003e017
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.18003df0c
int3

Function at 0x180041260
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x180041288
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x180041288
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x1800462e8
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x180046318
xor eax, eax
jmp 0x1800463db
mov rbp, rbx
cmp word [rax], si
je 0x18004633d
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x180046324
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x180046320
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.180046208
movsxd r14, eax
mov rcx, r14
test eax, eax
jne 0x18004637e
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x180046311
call fcn.1800472f0
mov rdi, rax
test rax, rax
jne 0x180046394
xor ecx, ecx
call fcn.1800447e0
jmp 0x180046373
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.180046208
test eax, eax
jne 0x1800463c5
mov rcx, rdi
call fcn.1800447e0
jmp 0x1800463cf
xor ecx, ecx
call fcn.1800447e0
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x180001c90
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0x68
cmp qword [0x180027bc0], 0
je 0x180001ca3
jmp 0x180001e47
mov qword [rsp + 0x40], 0
mov edx, 0x11
lea rcx, [0x18001b6b8]
call fcn.1800015c0
mov qword [rsp + 0x38], rax
mov rcx, qword [rsp + 0x38]
call fcn.180001c20
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jne 0x180001d1b
mov rcx, qword [rsp + 0x38]
call fcn.180009694
mov edx, 0xc
lea rcx, [0x18001b780]
call fcn.1800015c0
mov qword [rsp + 0x38], rax
mov rcx, qword [rsp + 0x38]
call fcn.180001c20
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jne 0x180001d1b
mov rcx, qword [rsp + 0x38]
call fcn.180009694
jmp 0x180001e47
mov eax, dword [rsp + 0x30]
add eax, 8
mov eax, eax
mov ecx, eax
call fcn.1800096d4
mov qword [rsp + 0x40], rax
mov eax, dword [rsp + 0x30]
add eax, 2
mov r8d, eax
mov rdx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov dword [rsp + 0x34], eax
mov rcx, qword [rsp + 0x38]
call fcn.180009694
cmp dword [rsp + 0x34], 0
je 0x180001d6c
mov eax, dword [rsp + 0x30]
add eax, 2
cmp dword [rsp + 0x34], eax
jbe 0x180001d7b
mov rcx, qword [rsp + 0x40]
call fcn.180009694
jmp 0x180001e47
mov edx, 0x1f
lea rcx, [0x18001b790]
call fcn.1800015c0
mov qword [rsp + 0x48], rax
mov rcx, qword [rsp + 0x40]
call fcn.180008e10
mov qword [rsp + 0x58], rax
mov rcx, qword [rsp + 0x48]
call fcn.180008e10
mov rcx, qword [rsp + 0x58]
lea rax, [rcx + rax + 8]
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x30]
add eax, 8
mov eax, eax
mov ecx, eax
call fcn.1800096d4
mov qword [rsp + 0x38], rax
mov eax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x48]
mov qword [rsp + 0x20], rcx
mov r9, qword [rsp + 0x40]
lea r8, str._s_s
mov edx, eax
mov rcx, qword [rsp + 0x38]
call fcn.180009120
mov rcx, qword [rsp + 0x48]
call fcn.180009694
mov rcx, qword [rsp + 0x40]
call fcn.180009694
lea rdx, [0x18001b50c]
mov rcx, qword [rsp + 0x38]
call fcn.180009074
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x180001e3d
mov rcx, qword [rsp + 0x50]
call fcn.180008f34
mov rax, qword [rsp + 0x38]
mov qword [0x180027bc0], rax
jmp 0x180001e47
mov rcx, qword [rsp + 0x38]
call fcn.180009694
add rsp, 0x68
ret
Function at 0x180002080
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov byte [rsp + 0x30], 0
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 0x2001f
xor r8d, r8d
mov rdx, qword [rsp + 0x60]
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x180002166
mov dword [rsp + 0x3c], 0
lea rax, [rsp + 0x3c]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0
je 0x18000215b
cmp dword [rsp + 0x34], 0xea
je 0x18000215b
mov rcx, qword [rsp + 0x70]
call fcn.180008e10
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x18000214a
mov dword [rsp + 0x38], 1
jmp 0x180002152
mov dword [rsp + 0x38], 0
movzx eax, byte [rsp + 0x38]
mov byte [rsp + 0x30], al
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
movzx eax, byte [rsp + 0x30]
add rsp, 0x58
ret

Function at 0x1800038f0
Capabilities:
Hash data with md5

Disassembly:
mov qword [rsp + 8], rcx
mov eax, 4
imul rax, rax, 1
mov rcx, qword [rsp + 8]
mov dword [rcx + rax], 0
mov eax, 4
imul rax, rax, 0
mov rcx, qword [rsp + 8]
mov dword [rcx + rax], 0
mov eax, 4
imul rax, rax, 0
mov rcx, qword [rsp + 8]
mov dword [rcx + rax + 8], 0x67452301
mov eax, 4
imul rax, rax, 1
mov rcx, qword [rsp + 8]
mov dword [rcx + rax + 8], 0xefcdab89
mov eax, 4
imul rax, rax, 2
mov rcx, qword [rsp + 8]
mov dword [rcx + rax + 8], 0x98badcfe
mov eax, 4
imul rax, rax, 3
mov rcx, qword [rsp + 8]
mov dword [rcx + rax + 8], 0x10325476
ret
Function at 0x180004fb0
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov dword [rsp + 0x20], 0x40
mov r9d, 0x3000
mov r8, qword [rsp + 0x60]
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
test rax, rax
jne 0x180004ff5
mov dword [rsp + 0x30], 1
jmp 0x180004ffd
mov dword [rsp + 0x30], 0
movzx eax, byte [rsp + 0x30]
add rsp, 0x48
ret

Function at 0x180005060
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
jne 0x180005083
mov dword [rsp + 0x20], 1
jmp 0x18000508b
mov dword [rsp + 0x20], 0
movzx eax, byte [rsp + 0x20]
add rsp, 0x38
ret

Function at 0x1800050a0
Capabilities:
Create process on windows
Create process suspended

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov edx, 3
mov rcx, qword [rsp + 0x70]
call fcn.180001af0
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 4
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x180005121
mov dword [rsp + 0x54], 1
jmp 0x180005129
mov dword [rsp + 0x54], 0
movzx eax, byte [rsp + 0x54]
mov byte [rsp + 0x50], al
mov rcx, qword [rsp + 0x58]
call fcn.180009694
movzx eax, byte [rsp + 0x50]
add rsp, 0x68
ret
Function at 0x180007ae0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x180007b32
xor eax, eax
jmp 0x180007bed
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x180007b63
jmp 0x180007bdd
mov eax, dword [rsp + 0x30]
add eax, 2
mov eax, eax
mov ecx, eax
call fcn.1800096d4
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
jne 0x180007b84
jmp 0x180007bdd
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x180007bbf
mov qword [rsp + 0x38], 0
jmp 0x180007bdd
mov eax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
mov byte [rcx + rax], 0
mov eax, dword [rsp + 0x30]
inc eax
mov eax, eax
mov rcx, qword [rsp + 0x38]
mov byte [rcx + rax], 0
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rax, qword [rsp + 0x38]
add rsp, 0x58
ret