joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10009daa8
Capabilities:
Query environment variable

Disassembly:
dec ebx
je 0x10009dab5
lea rcx, [0x1000b49c7]
jmp 0x10009dac5
lea rcx, [0x1000b499f]
jmp 0x10009dac5
call fcn.1000a3c37
call fcn.10009e0eb
test al, al
je 0x10009db1a
lea rcx, [0x1000b54a7]
call fcn.1000a3c37
xor ebx, ebx
cmp dword [rsp + 0x40], ebx
jle 0x10009db0c
xor edi, edi
mov r8, qword [rsp + 0x48]
lea rcx, [0x1000b5497]
mov edx, ebx
mov r8, qword [rdi + r8]
call fcn.1000a3c37
inc ebx
add rdi, 8
cmp ebx, dword [rsp + 0x40]
jl 0x10009dae9
lea rcx, [0x1000b51cf]
xor edx, edx
call fcn.10009b2b3
mov rdx, qword [rsp + 0x48]
mov ecx, dword [rsp + 0x40]
lea r8, [rsp + 0x60]
call fcn.10009c82f
mov r9d, 0x104
lea rax, [rbp + 0x90]
mov dword [rsp + 0x38], r9d
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0x80]
mov dword [rsp + 0x28], r9d
lea r8, [rbp + 0x1a0]
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x20], rax
call fcn.10009f4bf
and qword [rsp + 0x68], 0
and qword [rsp + 0x70], 0
call fcn.10009e0eb
test al, al
je 0x10009db87
call fcn.10009e29b
mov rbx, rax
jmp 0x10009db8c
mov rbx, qword [rsp + 0x58]
lea rdx, [rsp + 0x68]
lea rcx, [rbp - 0x80]
call fcn.10009f8a3
test al, al
jne 0x10009dba8
mov eax, 6
jmp 0x10009dcce
call fcn.10009e0eb
test al, al
je 0x10009dbb8
call fcn.10009e29b
jmp 0x10009dbbd
mov rax, qword [rsp + 0x58]
sub rax, rbx
mov rcx, rax
call fcn.10009e2e7
lea rcx, [0x1000b546f]
mov rdx, rax
call fcn.10009e087
add qword [rsp + 0x48], 8
dec dword [rsp + 0x40]
cmp byte [0x1000be7fb], 0
je 0x10009dc1a
lea r9, [rsp + 0x48]
lea r8, [rsp + 0x40]
mov rdx, r12
mov ecx, esi
call fcn.10009d283
mov ecx, dword [rbp + 0x320]
mov rdx, r13
call fcn.10009b7b7
test al, al
jne 0x10009dc39
mov eax, 1
jmp 0x10009dcce
lea rcx, [0x1000b479f]
call fcn.1000a3d9f
lea rcx, [0x1000b5467]
test rax, rax
cmovne rcx, rax
call fcn.10009b423
lea rax, [rsp + 0x60]
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x50]
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x20], rax
call fcn.10009cd2b
test al, al
jne 0x10009dc66
mov eax, dword [rsp + 0x60]
jmp 0x10009dcce
mov edi, dword [rsp + 0x50]
mov rbx, qword [rsp + 0x58]
cmp edi, 2
jne 0x10009dc7c
mov rcx, rbx
call fcn.10009b423
mov r8, qword [rsp + 0x48]
mov edx, dword [rsp + 0x40]
mov rcx, rbx
call fcn.10009b953
lea rcx, [0x1000b47c7]
xor edx, edx
call fcn.10009b2b3
call fcn.10009eeaf
mov r11d, dword [rsp + 0x60]
mov r9, qword [rsp + 0x48]
mov r8d, dword [rsp + 0x40]
mov rdx, qword [0x1000be82f]
mov dword [rsp + 0x30], r11d
lea rcx, [rsp + 0x68]
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], edi
call fcn.10009ee43
mov rcx, qword [rbp + 0x2b0]
xor rcx, rsp
call fcn.1000a4857
add rsp, 0x3c8
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x10009fa7f
Capabilities:
Create thread
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0x40
and dword [rax + 0x20], 0
lea rax, [rax - 0x18]
mov rsi, r8
mov r9, r8
mov rbp, rcx
mov r8, rcx
mov qword [rsp + 0x28], rax
xor ecx, ecx
mov rdi, rdx
mov dword [rsp + 0x20], 0x10000
call fcn.1000a64b7
mov rbx, rax
test rax, rax
jne 0x10009fae6
lea rax, [rsp + 0x30]
mov r9, rsi
mov r8, rbp
mov qword [rsp + 0x28], rax
and dword [rsp + 0x20], ebx
mov edx, edi
xor ecx, ecx
call fcn.1000a64b7
mov rbx, rax
cmp dword [0x1000bd10f], 0
je 0x10009fba3
lea rcx, [0x1000b5cbf]
call fcn.1000a3d9f
test rax, rax
je 0x10009fb23
lea rdx, [0x1000b4e3b]
mov rcx, rax
call 0x1000b3757
neg eax
sbb ecx, ecx
and ecx, dword [0x1000bd10f]
mov dword [0x1000bd10f], ecx
lea rcx, [0x1000b5caf]
call fcn.1000a3d9f
mov rdi, rax
test rax, rax
je 0x10009fb58
lea rdx, [0x1000b4e3b]
mov rcx, rax
call 0x1000b3757
neg eax
sbb ecx, ecx
and ecx, dword [0x1000bd10f]
mov dword [0x1000bd10f], ecx
jmp 0x10009fb5e
mov ecx, dword [0x1000bd10f]
test ecx, ecx
jns 0x10009fb95
and dword [0x1000bd10f], 0
test rdi, rdi
je 0x10009fba3
lea rdx, [0x1000b4e43]
mov rcx, rdi
call 0x1000b3757
mov ecx, dword [0x1000bd10f]
mov edx, 1
test eax, eax
cmove ecx, edx
mov dword [0x1000bd10f], ecx
test ecx, ecx
je 0x10009fba3
lea rcx, [0x1000b5c9f]
call fcn.10009f93f
test rbx, rbx
je 0x10009fbcd
or edx, 0xffffffff
mov rcx, rbx
call qword [0x1000b411f]
lea rdx, [rsp + 0x68]
mov rcx, rbx
call qword [0x1000b4147]
mov rcx, rbx
call qword [0x1000b410f]
jmp 0x10009fbd6
mov rcx, rsi
call rbp
mov dword [rsp + 0x68], eax
cmp dword [str.R6010_r_n__abort___has_been_called_r_n], 0
je 0x10009fbed
mov rax, qword [0x1000be897]
test rax, rax
je 0x10009fbed
call rax
mov eax, dword [rsp + 0x68]
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret

Function at 0x1000a016b
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov edx, 0x2a
mov rdi, rcx
call fcn.1000a6083
test rax, rax
jne 0x1000a0191
mov rax, rdi
jmp 0x1000a01e1
mov dl, 0x3b
mov rcx, rdi
call fcn.10009fd27
mov rcx, rax
mov rbx, rax
call fcn.1000a000b
mov dl, 0x3b
mov rcx, rbx
call fcn.10009fc63
mov rcx, rbx
mov rsi, rax
call fcn.10009fc07
lea rcx, [0x1000b4507]
call fcn.1000a3d9f
test rax, rax
je 0x1000a01de
lea rcx, [0x1000b5ccf]
mov r8, rsi
mov rdx, rdi
call fcn.1000a3c37
mov rax, rsi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x413240
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x4133eb
sub rsp, 0x50
mov qword [rsp + 0x48], rbp
lea rbp, [rsp + 0x48]
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rbx
mov rcx, qword [sym.imp.kernel32.dll_VirtualFree]
mov qword [rsp], rcx
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x4000
call fcn.0042c3e0
xorps xmm15, xmm15
mov r14, qword gs:[0x28]
mov r14, qword [r14]
cmp qword [rsp + 0x20], 0
nop
jne 0x4132ae
mov rax, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x60]
jmp 0x4132c1
mov rbp, qword [rsp + 0x48]
add rsp, 0x50
ret
sub rcx, rbx
add rax, rbx
mov rbx, rcx
test rbx, rbx
jbe 0x4132e5
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x40], rax
mov rcx, rbx
jmp 0x4132f9
cmp rbx, 0x1000
jae 0x4132b8
nop
jmp 0x413369
mov rbp, qword [rsp + 0x48]
add rsp, 0x50
ret
shr rbx, 1
and rbx, 0xfffffffffffff000
mov qword [rsp + 0x38], rbx
nop
cmp rbx, 0x1000
jae 0x41330d
xor edx, edx
jmp 0x413360
mov rcx, qword [sym.imp.kernel32.dll_VirtualFree]
mov qword [rsp], rcx
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x4000
call fcn.0042c3e0
xorps xmm15, xmm15
mov r14, qword gs:[0x28]
mov r14, qword [r14]
cmp qword [rsp + 0x20], 0
sete al
mov rcx, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x38]
mov edx, eax
mov rax, qword [rsp + 0x40]
nop
test dl, dl
jne 0x4132ef
jmp 0x4132d5
call fcn.00459560
xorps xmm15, xmm15
mov r14, qword gs:[0x28]
mov r14, qword [r14]
mov eax, dword [rsp]
mov qword [rsp + 0x30], rax
call fcn.00431240
lea rax, [0x004789f4]
mov ebx, 0x18
nop dword [rax + rax]
call fcn.00431b40
mov rax, qword [rsp + 0x38]
call fcn.00431840
lea rax, [0x00478a84]
mov ebx, 0x19
nop dword [rax + rax]
call fcn.00431b40
mov rax, qword [rsp + 0x30]
call fcn.00431840
call fcn.004314a0
call fcn.004312c0
lea rax, [0x0047a6ec]
mov ebx, 0x21
call fcn.0042fac0
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.00455a20
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp fcn.00413240
Function at 0x413420
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x41364a
sub rsp, 0x58
mov qword [rsp + 0x50], rbp
lea rbp, [rsp + 0x50]
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rbx
mov rcx, qword [sym.imp.kernel32.dll_VirtualAlloc]
mov qword [rsp], rcx
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x1000
mov qword [rsp + 0x20], 4
call fcn.0042c460
xorps xmm15, xmm15
mov r14, qword gs:[0x28]
mov r14, qword [r14]
mov rax, qword [rsp + 0x60]
mov rcx, rax
cmp qword [rsp + 0x28], rax
je 0x41349b
mov rbx, qword [rsp + 0x68]
mov rax, rbx
jmp 0x4134ae
mov rbp, qword [rsp + 0x50]
add rsp, 0x58
ret
sub rdx, rbx
add rcx, rbx
mov rbx, rdx
test rbx, rbx
jbe 0x4134d0
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rcx
mov rdx, rbx
jmp 0x4134e4
cmp rbx, 0x1000
jae 0x4134a5
jmp 0x41356e
mov rbp, qword [rsp + 0x50]
add rsp, 0x58
ret
shr rbx, 1
and rbx, 0xfffffffffffff000
mov qword [rsp + 0x38], rbx
cmp rbx, 0x1000
jae 0x4134f6
xor esi, esi
jmp 0x413560
mov rax, qword [sym.imp.kernel32.dll_VirtualAlloc]
mov qword [rsp], rax
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x1000
mov qword [rsp + 0x20], 4
nop dword [rax]
call fcn.0042c460
xorps xmm15, xmm15
mov r14, qword gs:[0x28]
mov r14, qword [r14]
cmp qword [rsp + 0x28], 0
sete al
mov rcx, qword [rsp + 0x48]
mov rdx, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x38]
mov esi, eax
mov rax, qword [rsp + 0x68]
nop dword [rax + rax]
test sil, sil
jne 0x4134da
jmp 0x4134c2
call fcn.00459560
xorps xmm15, xmm15
mov r14, qword gs:[0x28]
mov r14, qword [r14]
mov eax, dword [rsp]
mov dword [rsp + 0x34], eax
cmp eax, 8
jne 0x4135e9
call fcn.00431240
lea rax, [0x00478def]
mov ebx, 0x19
call fcn.00431b40
mov rax, qword [rsp + 0x68]
call fcn.00431840
lea rax, [0x00478a84]
mov ebx, 0x19
nop
call fcn.00431b40
mov eax, dword [rsp + 0x34]
call fcn.00431840
call fcn.004314a0
call fcn.004312c0
lea rax, [0x004762e4]
mov ebx, 0xd
call fcn.0042fac0
cmp eax, 0x5af
je 0x413593
call fcn.00431240
lea rax, [0x00478def]
mov ebx, 0x19
call fcn.00431b40
mov rax, qword [rsp + 0x38]
call fcn.00431840
lea rax, [0x00478a84]
mov ebx, 0x19
nop dword [rax]
call fcn.00431b40
mov eax, dword [rsp + 0x34]
call fcn.00431840
call fcn.004314a0
call fcn.004312c0
lea rax, [0x0047a1e5]
mov ebx, 0x1f
call fcn.0042fac0
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.00455a20
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp fcn.00413420
Function at 0x419f20
Capabilities:
Hash data using murmur3

Disassembly:
sub rsp, 0x18
mov qword [rsp + 0x10], rbp
lea rbp, [rsp + 0x10]
cmp byte [0x00533f72], 0
jne 0x41a019
nop
nop
nop
nop
sub rbx, qword [rax + 0x18]
nop
mov edx, dword [rax + 0x5c]
imul rbx, rdx
mov rdx, rbx
shr rbx, 0x20
nop
shr rdx, 0x23
and rbx, 7
mov rsi, rcx
mov rcx, rbx
mov r8d, 1
shl r8d, cl
nop
add rdx, qword [rax + 0x50]
lock or byte [rdx], r8b
nop
nop
mov rcx, qword [rax + 0x18]
nop
movabs rdx, 0x800000000000
lea rax, [rdx + rcx]
mov rdx, rax
shr rax, 0x2a
cmp rax, 0x40
jae 0x41a00f
lea rbx, [0x005063d8]
mov rax, qword [rbx + rax*8]
shr rdx, 0x16
and rdx, 0xfffff
mov rdx, qword [rax + rdx*8]
test byte [rdx], al
test byte [rax], al
mov rax, rcx
shr rcx, 0x10
and rcx, 0x3f
movzx ebx, byte [rdx + rcx + 0x21040]
lea rdx, [rdx + rcx]
lea rdx, [rdx + 0x21040]
shr rax, 0xd
and rax, 7
mov rcx, rax
mov eax, 1
shl eax, cl
test al, bl
jne 0x419fea
lock or byte [rdx], al
mov rax, qword [r14 + 0x30]
mov rax, qword [rax + 0xa0]
test byte [rax], al
add qword [rax + 0x16a8], rsi
add qword [rax + 0x16b0], rdi
mov rbp, qword [rsp + 0x10]
add rsp, 0x18
ret
mov ecx, 0x40
call fcn.00458120
lea rax, [0x0047b762]
mov ebx, 0x2c
call fcn.0042fac0
nop
int3
Function at 0x140001070
Capabilities:
Download url
Receive data
Terminate process

Disassembly:
sub rsp, 0x78
lea rcx, str.Press_any_key_to_start_the_download..._n
call fcn.140001010
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_getchar]
mov eax, dword [0x1400022e0]
lea r8, [rsp + 0x30]
movups xmm0, xmmword [str.https:__example.com_file.zip]
mov dword [rsp + 0x60], eax
lea rdx, [rsp + 0x48]
movzx eax, byte [0x1400022e4]
xor r9d, r9d
mov byte [rsp + 0x64], al
xor ecx, ecx
mov eax, dword [0x1400022f8]
movups xmmword [rsp + 0x48], xmm0
mov dword [rsp + 0x40], eax
movsd xmm0, qword [0x1400022d8]
movzx eax, word [0x1400022fc]
movsd qword [rsp + 0x58], xmm0
movups xmm0, xmmword [str.D:downloaded_file.zip]
mov word [rsp + 0x44], ax
movzx eax, byte [0x1400022fe]
movups xmmword [rsp + 0x30], xmm0
mov byte [rsp + 0x46], al
mov qword [rsp + 0x20], 0
call qword [sym.imp.urlmon.dll_URLDownloadToFileA]
test eax, eax
je 0x14000111e
mov edx, eax
lea rcx, str.Download_failed._Error_code:__ld_n
call fcn.140001010
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
lea rdx, [rsp + 0x30]
lea rcx, str.Download_succeeded._File_saved_to__s_n
call fcn.140001010
xor eax, eax
add rsp, 0x78
ret

Function at 0x140001870
Capabilities:
Parse pe header

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

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

Function at 0x14000a524
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14000a66c

Function at 0x14000b7d0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14000b7f8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14000b7f8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140012584
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 0x1400125b4
xor eax, eax
jmp 0x140012677
mov rbp, rbx
cmp word [rax], si
je 0x1400125d9
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1400125c0
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1400125bc
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.1400124a4
movsxd r14, eax
test eax, eax
jne 0x140012617
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1400125ad
mov rcx, r14
call fcn.14000edc8
mov rdi, rax
test rax, rax
jne 0x140012630
xor ecx, ecx
call fcn.14000de30
jmp 0x14001260c
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.1400124a4
test eax, eax
jne 0x140012661
mov rcx, rdi
call fcn.14000de30
jmp 0x14001266b
xor ecx, ecx
call fcn.14000de30
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 0x140016414
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14001642a
mov al, 1
jmp 0x14001648a
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14001643b
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140016488
mov ecx, dword [rcx + 0x18]
nop
call fcn.140012adc
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140016488
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140016488
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140016488
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14001648a
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x1400188d4
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.14000d2dc
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14001895e
cmp byte [rbp - 0x21], r15b
je 0x140018959
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140018994
call fcn.14000c314
test eax, eax
jne 0x140018980
cmp byte [rbp - 0x21], r15b
je 0x140018978
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140018994
cmp byte [rbp - 0x21], r15b
je 0x140018991
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.140011954
test eax, eax
jne 0x140018a34
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14000d2dc
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1400189d3
cmp byte [rbp - 0x21], r15b
je 0x140018a08
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140018a08
call fcn.14000c314
test eax, eax
jne 0x1400189f4
cmp byte [rbp - 0x21], r15b
je 0x1400189ed
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140018a08
cmp byte [rbp - 0x21], r15b
je 0x140018a05
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.140011954
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140018a34
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x140018a37
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140018a45
mov rcx, rdi
call fcn.14000de30
cmp byte [rbp + 0x3f], r15b
je 0x140018a54
mov rcx, qword [rbp + 0x27]
call fcn.14000de30
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x1800027b8
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov rbx, qword [rcx + 0x10]
mov rdi, rdx
mov rsi, qword [rcx]
test rbx, rbx
je 0x18000282e
cmp qword [rbx], 0
je 0x180002821
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x180002827
lea rdx, str.RegDeleteKeyTransactedW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x180002827
mov rdx, qword [rbx]
xor r9d, r9d
and qword [rsp + 0x28], 0
xor r8d, r8d
mov qword [rsp + 0x20], rdx
mov rcx, rsi
mov rdx, rdi
call rax
jmp 0x180002837
cmp dword [rbx + 8], 0
jne 0x18000282e
mov eax, 1
jmp 0x180002837
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x1800029e8
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x180]
sub rsp, 0x280
mov rax, qword [0x18012b010]
xor rax, rsp
mov qword [rbp + 0x170], rax
mov r9d, dword [rcx + 8]
xor r14d, r14d
mov rsi, rdx
mov qword [rsp + 0x48], r14
mov r8, rdx
mov qword [rsp + 0x40], r14
mov rdx, qword [rcx]
mov rdi, rcx
or r9d, 0x2001f
mov qword [rsp + 0x50], r14
lea rcx, [rsp + 0x40]
call fcn.180002900
jmp 0x180002a5a
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x40]
call fcn.1800029e8
mov ebx, eax
test eax, eax
jne 0x180002ac3
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x58]
mov qword [rsp + 0x30], r14
lea r8, [rsp + 0x70]
mov qword [rsp + 0x28], r14
xor edx, edx
mov qword [rsp + 0x20], r14
mov dword [rsp + 0x58], 0x100
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x180002a4b
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x180002ab1
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x40], r14
mov rdx, rsi
mov dword [rsp + 0x48], r14d
mov rcx, rdi
call fcn.1800027b8
mov ebx, eax
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x180002ad3
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.1800a0260
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x180002ff0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbx
push rsi
push rdi
push r14
push r15
sub rsp, 0x490
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov rax, qword [0x18012b010]
xor rax, rsp
mov qword [rsp + 0x480], rax
mov r15, r9
mov r14, r8
mov rbx, rdx
xor edi, edi
mov qword [rsp + 0x60], rdi
mov qword [rsp + 0x58], rcx
mov qword [rsp + 0x50], rdi
xor edx, edx
mov r8d, 0x408
lea rcx, [rsp + 0x70]
call fcn.1800a4070
mov qword [rsp + 0x70], rdi
xor edx, edx
lea r8d, [rdi + 0x60]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rsi, rax
mov qword [rsp + 0x38], rax
test rax, rax
jne 0x18000308f
xor edx, edx
lea r8d, [rdi + 2]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rsi, rax
mov qword [rsp + 0x38], rax
test rax, rax
jne 0x18000308f
call fcn.1800024e4
mov ebx, eax
jmp 0x18000319a
mov r8, r15
mov rdx, r14
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
test rax, rax
jne 0x1800030b0
call fcn.1800024e4
jmp 0x180003189
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov r14, rax
mov qword [rsp + 0x40], rax
test rax, rax
je 0x1800030a6
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
mov dword [rsp + 0x30], eax
inc eax
cmp eax, ebx
jae 0x1800030eb
mov ebx, 0x8007000e
jmp 0x18000318b
mov ecx, eax
test eax, eax
je 0x18000311d
xor edx, edx
or rax, 0xffffffffffffffff
div rcx
cmp rax, 2
jb 0x1800031d2
lea rdx, [rcx + rcx]
cmp rdx, 0x400
jbe 0x18000311d
lea rcx, [rsp + 0x70]
call fcn.180005b20
jmp 0x180003127
lea rax, [rsp + 0x78]
mov qword [rsp + 0x70], rax
jmp 0x180003139
cmp qword [rsp + 0x70], rdi
je 0x1800030e1
mov dword [rsp + 0x28], ebx
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r9d, ebx
mov r8, r14
xor edx, edx
lea ecx, [rdx + 3]
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x1800030a6
mov ecx, eax
mov rax, qword [rsp + 0x70]
mov word [rax + rcx*2], di
mov r8d, dword [rsp + 0x4e0]
mov rdx, qword [rsp + 0x70]
lea rcx, [rsp + 0x50]
call fcn.180003db4
mov ebx, eax
test rsi, rsi
je 0x18000319a
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop
lea rax, [rsp + 0x78]
cmp qword [rsp + 0x70], rax
je 0x1800031b1
lea rcx, [rsp + 0x70]
call fcn.180005948
nop
mov eax, ebx
mov rcx, qword [rsp + 0x480]
xor rcx, rsp
call fcn.1800a0260
add rsp, 0x490
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
mov ecx, 0x80070216
call fcn.1800024b8
int3