joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400c96b0
Capabilities:
Set environment variable

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0xb0
mov rax, qword [0x14010a200]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov rax, qword [0x14011c638]
mov rbp, r8
mov rsi, rdx
mov r14, rcx
test rax, rax
jne 0x1400c9700
lea rcx, [0x1400eb0f4]
call qword [sym.imp.python310.dll_PyImport_ImportModule]
mov qword [0x14011c638], rax
test rax, rax
je 0x1400c993a
mov qword [rsp + 0xa8], rbx
lea rdx, str.environ
mov qword [rsp + 0xa0], rdi
mov rcx, rax
mov qword [rsp + 0x98], r13
mov qword [rsp + 0x90], r15
call qword [sym.imp.python310.dll_PyObject_GetAttrString]
mov rcx, rsi
mov r15, rax
call qword [sym.imp.python310.dll_PyUnicode_FromString]
movzx edx, byte [rsi]
lea rbx, [rsp + 0x30]
xor ecx, ecx
mov r13, rax
mov word [rsp + 0x30], cx
lea edi, [rcx + 0x28]
test rbp, rbp
je 0x1400c9836
test dl, dl
je 0x1400c97d2
nop
cmp word [rbx], 0
mov rcx, rdi
mov rax, rbx
je 0x1400c977d
nop dword [rax]
add rax, 2
dec rcx
cmp word [rax], 0
jne 0x1400c9770
cmp rcx, 1
jb 0x1400c9940
mov byte [rsp + 0x20], dl
mov rcx, 0xffffffffffffffff
mov byte [rsp + 0x21], 0
nop word [rax + rax]
cmp word [rax + rcx*2 + 2], 0
lea rcx, [rcx + 1]
jne 0x1400c97a0
lea rcx, [rax + rcx*2]
mov r8d, 2
lea rdx, [rsp + 0x20]
call fcn.1400d9264
movzx edx, byte [rsi + 1]
inc rsi
add rbx, 2
dec rdi
test dl, dl
jne 0x1400c9760
mov rdx, rbp
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rdx, 0xffffffffffffffff
mov rcx, rbp
call qword [sym.imp.python310.dll_PyUnicode_FromWideChar]
mov rdx, r13
mov rcx, r15
mov r8, rax
mov rbx, rax
call qword [sym.imp.python310.dll_PyObject_SetItem]
test eax, eax
je 0x1400c981d
mov ecx, 1
call qword [sym.imp.python310.dll_PyErr_PrintEx]
mov ecx, 1
call qword [sym.imp.python310.dll_Py_Exit]
int3
sub qword [rbx], 1
jne 0x1400c98d7
mov rax, qword [rbx + 8]
mov rcx, rbx
call qword [rax + 0x30]
jmp 0x1400c98d7
test dl, dl
je 0x1400c98b2
nop word [rax + rax]
cmp word [rbx], 0
mov rcx, rdi
mov rax, rbx
je 0x1400c985d
nop dword [rax]
add rax, 2
dec rcx
cmp word [rax], 0
jne 0x1400c9850
cmp rcx, 1
jb 0x1400c9934
mov byte [rsp + 0x20], dl
mov rcx, 0xffffffffffffffff
mov byte [rsp + 0x21], 0
nop word [rax + rax]
cmp word [rax + rcx*2 + 2], 0
lea rcx, [rcx + 1]
jne 0x1400c9880
lea rcx, [rax + rcx*2]
mov r8d, 2
lea rdx, [rsp + 0x20]
call fcn.1400d9264
movzx edx, byte [rsi + 1]
inc rsi
add rbx, 2
dec rdi
test dl, dl
jne 0x1400c9840
xor edx, edx
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rdx, r13
mov rcx, r15
call qword [sym.imp.python310.dll_PyObject_DelItem]
test eax, eax
je 0x1400c98d7
mov rcx, r14
call fcn.1400015d0
sub qword [r13], 1
jne 0x1400c98e8
mov rax, qword [r13 + 8]
mov rcx, r13
call qword [rax + 0x30]
sub qword [r15], 1
jne 0x1400c98f8
mov rax, qword [r15 + 8]
mov rcx, r15
call qword [rax + 0x30]
mov r13, qword [rsp + 0x98]
mov rdi, qword [rsp + 0xa0]
mov rbx, qword [rsp + 0xa8]
mov r15, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.1400c99e0
add rsp, 0xb0
pop r14
pop rsi
pop rbp
ret
call fcn.1400ce030
int3
call fcn.1400ce030
int3
call fcn.1400ce030
int3
Function at 0x1400ca410
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400ca45a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400ca45a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400ca45a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400ca45a
cmp dword [rcx + 0x84], 0xe
jbe 0x1400ca45a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400ca45c
xor al, al
add rsp, 0x28
ret

Function at 0x1400cf8a8
Capabilities:
Parse pe header

Disassembly:
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 0x1400cf713
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400cf713
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400cf713
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400cf713
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400cf713
cmp dword [rcx + 0x84], 0xe
jbe 0x1400cf713
cmp dword [rcx + 0xf8], 0
je 0x1400cf713
mov ecx, ebx
call fcn.1400cf7c4
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.1400cf5a0
nop
cmp dword [rbp + 0x20], 0
je 0x1400cf761
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1400cf76c
int3
xor r8d, r8d
xor edx, edx
jmp 0x1400cf6a4
Function at 0x1400e1310
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x1400e1397
mov rsi, rbx
cmp word [rax], bp
je 0x1400e1356
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1400e1340
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1400e133c
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1400dc890
mov rdi, rax
test rax, rax
je 0x1400e1384
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1400e7690
mov rbp, rdi
xor ecx, ecx
call fcn.1400dd3d8
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400e4f0c
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1400e4f22
mov al, 1
jmp 0x1400e4f82
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1400e4f33
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1400e4f80
mov ecx, dword [rcx + 0x18]
nop
call fcn.1400e1ab4
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400e4f80
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1400e4f80
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1400e4f80
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1400e4f82
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x1400e7470
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400e7498
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1400e7498
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140002f00
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov r11d, r8d
mov r10, rdx
not r11d
mov r9, rcx
mov eax, r11d
test rdx, rdx
je 0x140002f5d
lea rbx, [0x140047000]
movzx r8d, byte [r9]
lea r9, [r9 + 1]
dec r10
cmp r8b, 0x23
jne 0x140002f44
cmp r10, 2
jb 0x140002f44
cmp byte [r9], r8b
jne 0x140002f44
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
xor rdx, r8
shr eax, 8
xor eax, dword [rbx + rdx*4]
test r10, r10
jne 0x140002f20
not eax
mov rbx, qword [rsp + 8]
ret
movzx r8d, byte [rcx]
inc r9
test r8b, r8b
je 0x140002f9f
lea rbx, [0x140047000]
cmp r8b, 0x23
jne 0x140002f83
cmp byte [r9], r8b
jne 0x140002f83
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
movzx ecx, r8b
movzx r8d, byte [r9]
xor rdx, rcx
shr eax, 8
inc r9
xor eax, dword [rbx + rdx*4]
test r8b, r8b
jne 0x140002f70
mov rbx, qword [rsp + 8]
not eax
ret

Function at 0x1400030e0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push r14
sub rsp, 0x20
mov r14, r8
test r8, r8
je 0x1400030fa
mov qword [r8], 0
lea rdx, [0x140046c84]
call fcn.140002fb0
mov rbx, rax
test rax, rax
jne 0x14000311a
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
mov qword [rsp + 0x30], rsi
mov rcx, rbx
mov qword [rsp + 0x38], rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov esi, eax
cmp eax, 0xffffffff
je 0x1400031f1
xor edx, edx
mov rcx, rbx
lea r8d, [rdx + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x1400031f1
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rdi, eax
cmp edi, 0xffffffff
je 0x1400031f1
xor r8d, r8d
mov edx, esi
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x1400031f1
cmp rdi, 0xffffffffffffffff
je 0x1400031f1
mov rax, qword [0x1400547b0]
test rax, rax
je 0x14000318e
inc dword [rax + 0xec]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rsi, rax
test rax, rax
je 0x1400031f1
mov r9, rbx
mov r8, rdi
mov edx, 1
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rcx, rbx
cmp rax, rdi
je 0x1400031de
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, qword [0x1400547b0]
test rax, rax
je 0x1400031d3
dec dword [rax + 0xec]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x1400031fa
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test r14, r14
je 0x1400031ec
mov qword [r14], rdi
mov rax, rsi
jmp 0x1400031fc
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor eax, eax
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
Function at 0x140005e80
Capabilities:
Hash data with crc32

Disassembly:
push rbx
sub rsp, 0x20
movsxd r8, dword [rcx + 0xd0]
mov rax, qword [rcx + 0xd8]
movsxd r9, edx
mov ebx, dword [rax + r8*4 - 4]
lea r8, [0x140047000]
not ebx
movzx eax, r9b
movzx ecx, bl
xor rcx, rax
shr ebx, 8
mov eax, r9d
shr eax, 8
movzx edx, al
mov eax, r9d
xor ebx, dword [r8 + rcx*4]
movzx ecx, bl
xor rdx, rcx
shr ebx, 8
shr eax, 0x10
xor ebx, dword [r8 + rdx*4]
movzx ecx, bl
shr ebx, 8
movzx edx, al
xor rdx, rcx
xor ebx, dword [r8 + rdx*4]
movzx ecx, bl
shr ebx, 8
mov edx, r9d
shr rdx, 0x18
xor rdx, rcx
mov rcx, qword [0x1400547b0]
xor ebx, dword [r8 + rdx*4]
not ebx
cmp dword [rcx + 0x3edc], ebx
jne 0x140005f16
mov r8, r9
mov edx, 4
mov ecx, ebx
call fcn.1400183f0
mov eax, ebx
add rsp, 0x20
pop rbx
ret
Function at 0x140011c20
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x140054010]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rbx, qword [0x1400547b0]
mov edi, ecx
cmp byte [rbx + 0x424d], 0
jne 0x140011c81
cmp byte [rbx + 0x424e], 0
jne 0x140011c81
movsx r9d, word [rbx + 0x5332]
lea r8, str.Tooltip__02d
mov edx, 0x10
lea rcx, [rsp + 0x20]
call fcn.140002dc0
test dil, 1
je 0x140011da8
jmp 0x140011d0a
movss xmm1, dword [rbx + 0x38b0]
lea r8, str.Tooltip__02d
movsx r9d, word [rbx + 0x5332]
lea rcx, [rsp + 0x20]
movaps xmm0, xmm1
xor eax, eax
mulss xmm0, dword [0x14004c080]
mulss xmm1, dword [0x14004c074]
lea edx, [rax + 0x10]
addss xmm0, dword [rbx + 0xd94]
addss xmm1, dword [rbx + 0xd98]
mov qword [rbx + 0x3fc8], rax
mov dword [rbx + 0x3fb4], 1
movss dword [rbx + 0x3fc0], xmm0
movss dword [rbx + 0x3fc4], xmm1
movss xmm0, dword [rbx + 0x390c]
mulss xmm0, dword [0x14004bf94]
or dword [rbx + 0x3fb0], 0x41
movss dword [rbx + 0x4010], xmm0
call fcn.140002dc0
movzx r9d, byte [rsp + 0x20]
lea r8, [rsp + 0x21]
mov r10d, 0xffffffff
mov ecx, r10d
test r9b, r9b
je 0x140011d60
lea r11, [0x140047000]
nop word [rax + rax]
cmp r9b, 0x23
jne 0x140011d43
cmp byte [r8], r9b
jne 0x140011d43
cmp byte [r8 + 1], r9b
cmove ecx, r10d
movzx edx, cl
movzx eax, r9b
movzx r9d, byte [r8]
xor rdx, rax
shr ecx, 8
inc r8
xor ecx, dword [r11 + rdx*4]
test r9b, r9b
jne 0x140011d30
not ecx
call fcn.14000ae00
test rax, rax
je 0x140011da8
cmp byte [rax + 0x96], 0
je 0x140011da8
mov byte [rax + 0x9d], 1
lea r8, str.Tooltip__02d
mov byte [rax + 0xb8], 1
lea rcx, [rsp + 0x20]
inc word [rbx + 0x5332]
mov edx, 0x10
movsx r9d, word [rbx + 0x5332]
call fcn.140002dc0
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x20c0347
call fcn.14000d540
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140043a40
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret

Function at 0x140016f60
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
cmp qword [rcx + 0x53e0], 0
lea rbx, [rcx + 0x53e8]
mov rsi, r8
mov rbp, rdx
mov rdi, rcx
je 0x140017007
mov r9d, dword [rbx + 4]
mov qword [rsp + 0x30], r14
xor r14d, r14d
test r9d, r9d
jns 0x140016fba
mov eax, r9d
mov rcx, rbx
cdq
sub eax, edx
mov edx, r14d
sar eax, 1
add eax, r9d
test eax, eax
cmovg edx, eax
call fcn.140019020
mov r8, rsi
mov dword [rbx], r14d
mov rdx, rbp
mov rcx, rbx
call fcn.140003770
mov eax, dword [rbx]
mov edx, 1
mov r9, qword [rdi + 0x53e0]
test eax, eax
lea ecx, [rax - 1]
mov rax, qword [rdi + 0x53f0]
cmove ecx, r14d
test rax, rax
movsxd r8, ecx
lea rcx, [0x1400547a8]
cmovne rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r14, qword [rsp + 0x30]
jmp 0x14001700f
mov rcx, rbx
call fcn.140003770
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x140017580
Capabilities:
Hash data with crc32

Disassembly:
sub rsp, 8
movzx r9d, byte [rcx]
lea r8, [rcx + 1]
mov r10, qword [0x1400547b0]
mov r11d, 0xffffffff
mov eax, r11d
test r9b, r9b
je 0x1400175e3
mov qword [rsp], rbx
lea rbx, [0x140047000]
nop dword [rax]
cmp r9b, 0x23
jne 0x1400175c3
cmp byte [r8], r9b
jne 0x1400175c3
cmp byte [r8 + 1], r9b
cmove eax, r11d
movzx edx, al
movzx ecx, r9b
movzx r9d, byte [r8]
xor rdx, rcx
shr eax, 8
inc r8
xor eax, dword [rbx + rdx*4]
test r9b, r9b
jne 0x1400175b0
mov rbx, qword [rsp]
movsxd rcx, dword [r10 + 0x5390]
xor r8d, r8d
not eax
test ecx, ecx
jle 0x140017617
mov r10, qword [r10 + 0x5398]
mov r9, rcx
mov edx, r8d
lea rcx, [r10 + 8]
cmp dword [rcx], eax
je 0x14001761e
inc r8d
inc rdx
add rcx, 0x48
cmp rdx, r9
jl 0x140017604
xor eax, eax
add rsp, 8
ret
movsxd rax, r8d
lea rcx, [rax + rax*8]
lea rax, [r10 + rcx*8]
add rsp, 8
ret
Function at 0x1400393d0
Capabilities:
Hash data with crc32

Disassembly:
push rdi
sub rsp, 0x20
test dword [rcx + 0x10], 0x100000
mov rdi, rdx
je 0x14003945c
movzx r9d, byte [rdx]
lea r8, [rdx + 1]
mov r10d, 0xffffffff
mov eax, r10d
test r9b, r9b
je 0x140039430
lea r11, [0x140047000]
nop
cmp r9b, 0x23
jne 0x140039413
cmp byte [r8], r9b
jne 0x140039413
cmp byte [r8 + 1], r9b
cmove eax, r10d
movzx edx, al
movzx ecx, r9b
movzx r9d, byte [r8]
xor rdx, rcx
shr eax, 8
inc r8
xor eax, dword [r11 + rdx*4]
test r9b, r9b
jne 0x140039400
mov rcx, qword [0x1400547b0]
not eax
cmp dword [rcx + 0x3ef4], eax
jne 0x140039447
mov dword [rcx + 0x3ef8], eax
cmp dword [rcx + 0x3f20], eax
jne 0x1400394b6
mov byte [rcx + 0x3f24], 1
add rsp, 0x20
pop rdi
ret
mov qword [rsp + 0x30], rbx
xor edx, edx
mov rbx, qword [0x1400547b0]
mov qword [rsp + 0x38], rsi
mov rax, qword [rbx + 0x3ea8]
movsxd rcx, dword [rax + 0xd0]
mov rax, qword [rax + 0xd8]
mov r8d, dword [rax + rcx*4 - 4]
mov rcx, rdi
call fcn.140002f00
cmp dword [rbx + 0x3edc], eax
mov esi, eax
mov rbx, qword [rsp + 0x30]
jne 0x1400394af
mov r8, rdi
mov edx, 0xb
mov ecx, eax
call fcn.1400183f0
mov eax, esi
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x14003ed80
Capabilities:
Enumerate process modules

Disassembly:
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov rax, qword [0x140054010]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov r8d, dword [0x1400547cc]
xor edx, edx
mov ecx, 0x1fffff
xor edi, edi
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rsi, rax
test rax, rax
je 0x14003ee22
lea r9, [rsp + 0x20]
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_K32EnumProcessModules]
test eax, eax
je 0x14003ee19
mov eax, dword [rsp + 0x20]
test eax, eax
je 0x14003ee19
mov edx, eax
mov qword [rsp + 0x40], rbx
lea ecx, [rdi + 0x40]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbx, rax
test rax, rax
je 0x14003ee14
mov r8d, dword [rsp + 0x20]
lea r9, [rsp + 0x20]
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_K32EnumProcessModules]
test eax, eax
je 0x14003ee0b
mov rdi, qword [rbx]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rbx, qword [rsp + 0x40]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, rdi
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140043a40
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x1400444b0
Capabilities:
Parse pe header

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

Disassembly:
mov rax, rsp
sub rsp, 0x68
cmp qword [rcx + 8], 0
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
lea rdi, [rcx + 8]
mov rsi, rdx
mov rbx, rcx
jne 0x40e38d
cmp qword [rcx + 0x68], 8
jb 0x40e351
mov rdx, qword [rcx + 0x50]
jmp 0x40e355
lea rdx, [rcx + 0x50]
mov rcx, qword [rcx + 0x18]
lea rax, [rsp + 0x50]
xor r9d, r9d
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], 0
xor r8d, r8d
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp qword [rbx + 0x68], 8
jb 0x40e39a
mov rdx, qword [rbx + 0x50]
jmp 0x40e39e
lea rdx, [rbx + 0x50]
mov rcx, qword [rbx + 0x18]
mov r9d, 0xf003f
xor r8d, r8d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp qword [rbx + 0x10], 0
jne 0x40e3c3
cmp qword [rdi], 0
je 0x40e425
cmp qword [rsi + 0x20], 8
jb 0x40e3d0
mov rcx, qword [rsi + 8]
jmp 0x40e3d4
lea rcx, [rsi + 8]
mov r10, qword [rdi]
mov rax, qword [rsi + 0x18]
test r10, r10
je 0x40e410
cmp qword [rbx + 0x40], 8
jb 0x40e3ed
mov rdx, qword [rbx + 0x28]
jmp 0x40e3f1
lea rdx, [rbx + 0x28]
lea eax, [rax + rax + 2]
mov r9d, 1
xor r8d, r8d
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
mov rcx, r10
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rdi]
test rcx, rcx
je 0x40e41e
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rdi], 0
mov rdi, qword [rsp + 0x88]
mov rsi, qword [rsp + 0x80]
mov rax, rbx
mov rbx, qword [rsp + 0x78]
add rsp, 0x68
ret
Function at 0x40e4c0
Capabilities:
Query or enumerate registry key

Disassembly:
mov rax, rsp
sub rsp, 0xc8
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov qword [rax - 8], rdi
mov qword [rax - 0x10], r12
mov qword [rax - 0x18], r13
mov qword [rax - 0x20], r14
mov qword [rax - 0x28], r15
mov rax, qword [0x0044e3d8]
xor rax, rsp
mov qword [rsp + 0x90], rax
mov rbx, rcx
cmp qword [rcx + 0x40], 8
jb 0x40e515
mov rdx, qword [rcx + 0x28]
jmp 0x40e519
lea rdx, [rcx + 0x28]
lea r12, [rcx + 0x50]
mov qword [rsp + 0x20], r12
mov r9d, 0xf003f
xor r8d, r8d
mov rcx, qword [rcx + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40e718
lea r14, [rbx + 0x888]
lea rbp, [rbx + 0x884]
xor edi, edi
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], rbp
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [r12]
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x40e718
mov dword [rbx + 0x880], edi
cmp dword [rbp], edi
jbe 0x40e70e
nop
mov eax, dword [r14]
add eax, 1
mov dword [rbx + 0x88c], eax
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rdi
lea r9, [rbx + 0x88c]
lea r8, [rbx + 0x470]
mov edx, dword [rbx + 0x880]
mov rcx, qword [r12]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov dword [rbx + 0x89c], eax
mov edx, 7
mov qword [rsp + 0x88], rdx
mov r8, rdi
mov qword [rsp + 0x80], rdi
mov word [rsp + 0x70], 0
xor eax, eax
mov rcx, 0xffffffffffffffff
lea rdi, [rbx + 0x470]
repne scasw ax, word [rdi]
not rcx
sub rcx, 1
mov rsi, rcx
movabs rax, 0x7ffffffffffffffe
cmp rcx, rax
jbe 0x40e644
call fcn.0041ad00
mov rdx, qword [rsp + 0x88]
mov r8, qword [rsp + 0x80]
cmp rdx, rsi
jae 0x40e660
mov rdx, rsi
lea rcx, [rsp + 0x68]
call fcn.0040b310
mov rdx, qword [rsp + 0x88]
jmp 0x40e683
test rsi, rsi
jne 0x40e683
xor edi, edi
mov qword [rsp + 0x80], rdi
lea rax, [rsp + 0x70]
cmp rdx, 8
cmovae rax, qword [rsp + 0x70]
mov word [rax], di
jmp 0x40e6d5
test rsi, rsi
je 0x40e6d3
lea rcx, [rsp + 0x70]
cmp rdx, 8
cmovae rcx, qword [rsp + 0x70]
lea rdi, [rsi + rsi]
add rdx, rdx
mov r9, rdi
lea r8, [rbx + 0x470]
call fcn.0041bef0
mov qword [rsp + 0x80], rsi
lea rax, [rsp + 0x70]
cmp qword [rsp + 0x88], 8
cmovae rax, qword [rsp + 0x70]
mov word [rdi + rax], 0
xor edi, edi
jmp 0x40e6d5
xor edi, edi
lea rdx, [rsp + 0x68]
mov rcx, rbx
call fcn.004054f0
nop
cmp qword [rsp + 0x88], 8
jb 0x40e6f8
mov rcx, qword [rsp + 0x70]
call fcn.0041bee0
add dword [rbx + 0x880], 1
mov eax, dword [rbp]
cmp dword [rbx + 0x880], eax
jb 0x40e5a0
mov rcx, qword [r12]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.0041b870
mov rbx, qword [rsp + 0xd8]
mov rbp, qword [rsp + 0xe0]
mov rsi, qword [rsp + 0xe8]
mov rdi, qword [rsp + 0xc0]
mov r12, qword [rsp + 0xb8]
mov r13, qword [rsp + 0xb0]
mov r14, qword [rsp + 0xa8]
mov r15, qword [rsp + 0xa0]
add rsp, 0xc8
ret
Function at 0x424cf7
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x0044e3d8]
jne 0x41b88a
rol rcx, 0x10
test cx, 0xffff
jne 0x41b886
repz ret
ror rcx, 0x10
jmp 0x424c50
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x00453760]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x00453858]
mov qword [rsp + 0x58], rax
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x424cd5
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x00453760]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x424cf7
mov rax, qword [rsp + 0x88]
mov qword [0x00453858], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x004537f8], rax
mov rax, qword [0x00453858]
mov qword [0x004536d0], rax
mov rax, qword [rsp + 0x90]
mov qword [0x004537e0], rax
mov dword [0x004536c0], 0xc0000409
mov dword [0x004536c4], 1
mov rax, qword [0x0044e3d8]
mov qword [rsp + 0x68], rax
mov rax, qword [0x0044e3e0]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x00453758], eax
mov ecx, 1
call fcn.004258e0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x0043a1d0]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x00453758], 0
jne 0x424d7e
mov ecx, 1
call fcn.004258e0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret