joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140004ca0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x14000c040]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x140004ccd
xor eax, eax
jmp 0x140004e39
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x140004d07
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x140004d07
lea ecx, [r8 - 1]
mov dword [rax], ecx
mov eax, edi
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], dil
jmp 0x140004e39
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x140004e2c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x140004d4a
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x140004d75
mov rdx, qword [rbx + 0x80]
movsx ecx, dil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x140004e31
lea rax, [rsp + 0x40]
mov byte [rsp + 0x50], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x51]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x50]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__char_const____ptr64__char_const____ptr64__char_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140004de4
sub eax, 1
je 0x140004de4
cmp eax, 2
jne 0x140004e2c
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x140004e31
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140004e12
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rsi, rax
jne 0x140004e2c
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x140004e31
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140006830
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x1400053a0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x14000c040]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140005473
cmp byte [rcx + 0x71], 0
je 0x140005473
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x14000546f
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140005434
sub eax, 1
je 0x140005438
cmp eax, 2
jne 0x14000546f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140006830
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140005466
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x14000546f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14000541c
xor al, al
jmp 0x14000541c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140006830
add rsp, 0x60
pop rbx
ret

Function at 0x140007288
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400072d2
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400072d2
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400072d2
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400072d2
cmp dword [rcx + 0x84], 0xe
jbe 0x1400072d2
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400072d4
xor al, al
add rsp, 0x28
ret
Function at 0x14072e0b0
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.14072e237
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 0x14072e0e1
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14072e0c7
add dl, dl
jne 0x14072e0ee
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14072e14e
xor eax, eax
add dl, dl
jne 0x14072e0fd
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14072e205
add dl, dl
jne 0x14072e10e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14072e11b
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14072e128
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14072e135
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x14072e142
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14072e0d6
mov eax, 1
add dl, dl
jne 0x14072e15e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14072e16b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14072e153
sub eax, ebx
mov ebx, 1
jne 0x14072e1a4
mov ecx, 1
add dl, dl
jne 0x14072e186
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14072e193
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14072e17b
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14072e0d6
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x14072e1c0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14072e1cd
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14072e1b5
cmp eax, 0x7d00
jae 0x14072e1f3
cmp eax, 0x500
jb 0x14072e1ee
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14072e0d6
cmp eax, 0x7f
ja 0x14072e1f6
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14072e0d6
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x14072e22a
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 0x14072e0d6
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x14001af30
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x20], r9
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x48
cmp dword [rsp + 0x60], 8
je 0x14001af63
cmp dword [rsp + 0x60], 4
je 0x14001af63
cmp dword [rsp + 0x60], 1
je 0x14001af63
cmp dword [rsp + 0x60], 0x1b
jne 0x14001afdc
mov eax, dword [rsp + 0x70]
mov dword [rsp + 0x20], eax
mov r9, qword [rsp + 0x68]
mov r8d, dword [rsp + 0x60]
mov edx, dword [rsp + 0x58]
mov rax, qword [rsp + 0x50]
mov rcx, qword [rax + 0x90]
call qword [sym.imp.WS2_32.dll_setsockopt]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0xffffffff
jne 0x14001afce
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
call fcn.14001c240
mov dword [rsp + 0x34], eax
call fcn.1400318f4
mov ecx, dword [rsp + 0x34]
mov dword [rax], ecx
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, eax
lea rdx, str.socketio_setsockopt
lea rcx, [0x1400748c8]
call fcn.140003a10
mov eax, dword [rsp + 0x30]
jmp 0x14001b001
mov r8, qword [rsp + 0x50]
mov edx, dword [rsp + 0x60]
lea rcx, str.setsockop___ERROR:_unsupported_optname:_d_io:_p
call fcn.140003a10
call fcn.1400318f4
mov dword [rax], 0x81
mov eax, 0xffffffff
add rsp, 0x48
ret

Function at 0x14001b0b0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov r8, qword [rsp + 0x50]
mov rdx, qword [rsp + 0x48]
mov rax, qword [rsp + 0x40]
mov rcx, qword [rax + 0x90]
call qword [sym.imp.WS2_32.dll_getsockname]
add al, byte [rax]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0xffffffff
jne 0x14001b122
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
call fcn.14001c240
mov dword [rsp + 0x24], eax
call fcn.1400318f4
mov ecx, dword [rsp + 0x24]
mov dword [rax], ecx
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, eax
lea rdx, str.socketio_getsockname
lea rcx, [0x140074948]
call fcn.140003a10
mov eax, dword [rsp + 0x20]
jmp 0x14001b12e
add rsp, 0x38
ret
Function at 0x140755230
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1407553b7
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 0x140755261
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140755247
add dl, dl
jne 0x14075526e
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1407552ce
xor eax, eax
add dl, dl
jne 0x14075527d
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140755385
add dl, dl
jne 0x14075528e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14075529b
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1407552a8
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1407552b5
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1407552c2
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140755256
mov eax, 1
add dl, dl
jne 0x1407552de
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1407552eb
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1407552d3
sub eax, ebx
mov ebx, 1
jne 0x140755324
mov ecx, 1
add dl, dl
jne 0x140755306
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140755313
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1407552fb
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140755256
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140755340
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14075534d
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140755335
cmp eax, 0x7d00
jae 0x140755373
cmp eax, 0x500
jb 0x14075536e
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140755256
cmp eax, 0x7f
ja 0x140755376
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140755256
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1407553aa
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 0x140755256
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140008f60
Capabilities:
Get disk information

Disassembly:
sub rsp, 0x38
mov byte [rsp + 0x20], 0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x28]
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 6
ja case.default.0x140008f99
mov eax, dword [rsp + 0x24]
lea rcx, [0x140000000]
mov eax, dword [rcx + rax*4 + 0x900c]
add rax, rcx
jmp rax
lea rcx, str.Setup_launched_from_unlnown_or_cant_determine_n
call fcn.140009920
jmp case.default.0x140008f99
lea rcx, str.Setup_launched_from_invalid_root_path_n
call fcn.140009920
jmp case.default.0x140008f99
lea rcx, str.Setup_launched_from_removable_media_n
call fcn.140009920
jmp case.default.0x140008f99
lea rcx, str.Setup_launched_from_local_disk_n
call fcn.140009920
jmp case.default.0x140008f99
mov byte [rsp + 0x20], 1
lea rcx, str.Setup_launched_from_remote_or_network_location_n
call fcn.140009920
jmp case.default.0x140008f99
lea rcx, str.Setup_launched_from_CD_ROM_n
call fcn.140009920
jmp case.default.0x140008f99
lea rcx, str.Setup_launched_from_RAM_disk_n
call fcn.140009920
movzx eax, byte [rsp + 0x20]
add rsp, 0x38
ret
Function at 0x140009920
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x1e8
mov rax, qword [0x1400770b8]
xor rax, rsp
mov qword [rsp + 0x1d0], rax
movzx eax, byte [0x1400787d8]
test eax, eax
jne 0x14000995d
jmp 0x140009a92
lea rcx, [rsp + 0x150]
call fcn.140010ce0
nop
lea rax, [rsp + 0x1f8]
mov qword [rsp + 0x20], rax
mov r8, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x1f0]
lea rcx, [rsp + 0x170]
call fcn.14002d800
mov qword [rsp + 0x28], rax
mov rdx, qword [rsp + 0x28]
lea rcx, [rsp + 0x150]
call fcn.140013490
lea rcx, [rsp + 0x170]
call fcn.140012c60
mov qword [rsp + 0x20], 0
mov edx, 1
lea rcx, [rsp + 0x50]
call fcn.140010ef0
nop
lea rax, [rsp + 0x60]
lea rdx, str.SetupCD::
mov rcx, rax
call fcn.14000b720
lea rdx, [rsp + 0x150]
mov rcx, rax
call fcn.14000bb30
lea rdx, [0x14005b8bc]
mov rcx, rax
call fcn.14000b720
lea rdx, [rsp + 0x190]
lea rcx, [rsp + 0x50]
call fcn.140020780
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x30]
call fcn.14001b210
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea rcx, [rsp + 0x190]
call fcn.140012c60
lea rdx, [rsp + 0x1b0]
lea rcx, [rsp + 0x50]
call fcn.140020780
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x40], rax
mov rdx, qword [rsp + 0x40]
lea rcx, [0x1400786d0]
call fcn.14000bb30
nop
lea rcx, [rsp + 0x1b0]
call fcn.140012c60
nop
lea rcx, [rsp + 0x50]
call fcn.140014940
nop
lea rcx, [rsp + 0x150]
call fcn.140012c60
mov rcx, qword [rsp + 0x1d0]
xor rcx, rsp
call fcn.140033040
add rsp, 0x1e8
ret
Function at 0x14000ac10
Capabilities:
Create process on windows

Disassembly:
mov byte [rsp + 0x18], r8b
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x228
mov rax, qword [0x1400770b8]
xor rax, rsp
mov qword [rsp + 0x210], rax
mov dword [rsp + 0x50], 0x8000000
mov rdx, qword [rsp + 0x230]
lea rcx, [rsp + 0x1f0]
call fcn.140010a10
nop
mov r8d, 0x68
xor edx, edx
lea rcx, [rsp + 0x80]
call fcn.140034c20
mov dword [rsp + 0x80], 0x68
mov r8d, 0x18
xor edx, edx
lea rcx, [rsp + 0x68]
call fcn.140034c20
lea rax, [rsp + 0x68]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov eax, dword [rsp + 0x50]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0x230]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x14000ad2b
movzx eax, byte [rsp + 0x240]
test eax, eax
je 0x14000acf7
mov edx, 0xffffffff
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [rsp + 0x54], 1
lea rcx, [rsp + 0x1f0]
call fcn.140012c60
mov eax, dword [rsp + 0x54]
jmp 0x14000adc7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x58], eax
mov edx, 1
lea rcx, [rsp + 0xf0]
call fcn.140010ef0
nop
lea rax, [rsp + 0x100]
lea rdx, str._nFailed_to_lauch__
mov rcx, rax
call fcn.14000b720
mov rdx, qword [rsp + 0x230]
mov rcx, rax
call fcn.14000b720
lea rdx, [0x14005c248]
mov rcx, rax
call fcn.14000b720
mov qword [rsp + 0x60], rax
mov edx, dword [rsp + 0x58]
mov rcx, qword [rsp + 0x60]
call fcn.1400136a0
lea rdx, [0x14005bbc4]
mov rcx, rax
call fcn.14000b720
mov dword [rsp + 0x5c], 0
lea rcx, [rsp + 0xf0]
call fcn.140014940
nop
lea rcx, [rsp + 0x1f0]
call fcn.140012c60
mov eax, dword [rsp + 0x5c]
mov rcx, qword [rsp + 0x210]
xor rcx, rsp
call fcn.140033040
add rsp, 0x228
ret
Function at 0x140015eb0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0xa8
mov rax, qword [0x1400770b8]
xor rax, rsp
mov qword [rsp + 0x90], rax
mov rax, qword [rsp + 0xb0]
cmp qword [rax + 0x68], 0
je 0x140015eed
mov rax, qword [rsp + 0xb0]
movzx eax, byte [rax + 0x72]
test eax, eax
jne 0x140015ef4
mov al, 1
jmp 0x140016050
mov rax, qword [rsp + 0xb0]
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x48], rax
call fcn.14001d4b0
mov word [rsp + 0x30], ax
movzx edx, word [rsp + 0x30]
mov rcx, qword [rsp + 0xb0]
call qword [rsp + 0x48]
mov word [rsp + 0x32], ax
call fcn.14001d4b0
mov word [rsp + 0x34], ax
lea rdx, [rsp + 0x32]
lea rcx, [rsp + 0x34]
call fcn.14001d4f0
movzx eax, al
test eax, eax
je 0x140015f4f
xor al, al
jmp 0x140016050
mov qword [rsp + 0x60], 0x20
mov rax, qword [rsp + 0xb0]
mov rax, qword [rax + 0x68]
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x88]
mov rcx, qword [rsp + 0xb0]
add rcx, 0x74
lea rdx, [rsp + 0x58]
mov qword [rsp + 0x20], rdx
mov r9, rax
lea r8, [rsp + 0x68]
mov rdx, rcx
mov rcx, qword [rsp + 0x50]
call fcn.140020f40
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0
je 0x140015fbe
cmp dword [rsp + 0x38], 1
je 0x140015fca
cmp dword [rsp + 0x38], 3
je 0x14001603e
jmp 0x14001604e
mov rax, qword [rsp + 0xb0]
mov byte [rax + 0x72], 0
lea rax, [rsp + 0x68]
mov rcx, qword [rsp + 0x58]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
jbe 0x140016015
mov rax, qword [rsp + 0xb0]
mov r9, qword [rax + 0x80]
mov r8, qword [rsp + 0x40]
mov edx, 1
lea rcx, [rsp + 0x68]
call fcn.1400399e4
cmp qword [rsp + 0x40], rax
je 0x140016015
xor al, al
jmp 0x140016050
mov rax, qword [rsp + 0xb0]
movzx eax, byte [rax + 0x72]
test eax, eax
jne 0x14001602f
mov dword [rsp + 0x3c], 1
jmp 0x140016037
mov dword [rsp + 0x3c], 0
movzx eax, byte [rsp + 0x3c]
jmp 0x140016050
mov rax, qword [rsp + 0xb0]
mov byte [rax + 0x72], 0
mov al, 1
jmp 0x140016050
xor al, al
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.140033040
add rsp, 0xa8
ret
Function at 0x14001edf0
Capabilities:
Write file on windows

Disassembly:
mov word [rsp + 0x10], dx
mov qword [rsp + 8], rcx
sub rsp, 0xc8
mov rax, qword [0x1400770b8]
xor rax, rsp
mov qword [rsp + 0xb8], rax
call fcn.14001d4b0
mov word [rsp + 0x48], ax
lea rdx, [rsp + 0xd8]
lea rcx, [rsp + 0x48]
call fcn.14001d4f0
movzx eax, al
test eax, eax
je 0x14001ee48
lea rcx, [rsp + 0xd8]
call fcn.14001eba0
jmp 0x14001f0b8
mov rcx, qword [rsp + 0xd0]
call fcn.14001f760
test rax, rax
je 0x14001eeb7
mov rcx, qword [rsp + 0xd0]
call fcn.14001f760
mov qword [rsp + 0x60], rax
mov rcx, qword [rsp + 0xd0]
call fcn.14001d4c0
mov rcx, qword [rsp + 0x60]
cmp rcx, rax
jae 0x14001eeb7
lea rcx, [rsp + 0xd8]
call fcn.1400208d0
mov word [rsp + 0x4a], ax
mov rcx, qword [rsp + 0xd0]
call fcn.1400191b0
movzx ecx, word [rsp + 0x4a]
mov word [rax], cx
movzx eax, word [rsp + 0xd8]
jmp 0x14001f0b8
mov rax, qword [rsp + 0xd0]
cmp qword [rax + 0x80], 0
jne 0x14001eed3
call fcn.14001d4b0
jmp 0x14001f0b8
mov rcx, qword [rsp + 0xd0]
call fcn.140019930
mov rax, qword [rsp + 0xd0]
cmp qword [rax + 0x68], 0
jne 0x14001ef4e
mov rax, qword [rsp + 0xd0]
mov rax, qword [rax + 0x80]
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0xd8]
call fcn.1400208d0
mov word [rsp + 0x4c], ax
mov rdx, qword [rsp + 0x68]
movzx ecx, word [rsp + 0x4c]
call fcn.14000cd30
movzx eax, al
test eax, eax
je 0x14001ef3a
movzx eax, word [rsp + 0xd8]
mov word [rsp + 0x44], ax
jmp 0x14001ef44
call fcn.14001d4b0
mov word [rsp + 0x44], ax
movzx eax, word [rsp + 0x44]
jmp 0x14001f0b8
mov qword [rsp + 0x88], 0x20
lea rcx, [rsp + 0xd8]
call fcn.1400208d0
mov word [rsp + 0x40], ax
mov rax, qword [rsp + 0xd0]
mov rax, qword [rax + 0x68]
mov qword [rsp + 0x70], rax
lea rax, [rsp + 0xb0]
lea rcx, [rsp + 0x42]
mov rdx, qword [rsp + 0xd0]
add rdx, 0x74
lea r8, [rsp + 0x78]
mov qword [rsp + 0x38], r8
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x90]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x20], rax
mov r9, rcx
lea r8, [rsp + 0x40]
mov rcx, qword [rsp + 0x70]
call fcn.14001ed70
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
je 0x14001eff3
cmp dword [rsp + 0x50], 1
je 0x14001eff3
cmp dword [rsp + 0x50], 3
je 0x14001f073
jmp 0x14001f0b3
lea rax, [rsp + 0x90]
mov rcx, qword [rsp + 0x78]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jbe 0x14001f047
mov rax, qword [rsp + 0xd0]
mov r9, qword [rax + 0x80]
mov r8, qword [rsp + 0x58]
mov edx, 1
lea rcx, [rsp + 0x90]
call fcn.1400399e4
cmp qword [rsp + 0x58], rax
je 0x14001f047
call fcn.14001d4b0
jmp 0x14001f0b8
mov rax, qword [rsp + 0xd0]
mov byte [rax + 0x72], 1
lea rax, [rsp + 0x40]
cmp qword [rsp + 0x80], rax
je 0x14001f06c
movzx eax, word [rsp + 0xd8]
jmp 0x14001f0b8
call fcn.14001d4b0
jmp 0x14001f0b8
mov rax, qword [rsp + 0xd0]
mov rdx, qword [rax + 0x80]
movzx ecx, word [rsp + 0x40]
call fcn.14000cd30
movzx eax, al
test eax, eax
je 0x14001f0a2
movzx eax, word [rsp + 0xd8]
mov word [rsp + 0x46], ax
jmp 0x14001f0ac
call fcn.14001d4b0
mov word [rsp + 0x46], ax
movzx eax, word [rsp + 0x46]
jmp 0x14001f0b8
call fcn.14001d4b0
mov rcx, qword [rsp + 0xb8]
xor rcx, rsp
call fcn.140033040
add rsp, 0xc8
ret
Function at 0x140025300
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x1400770b8]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x30], rdx
mov rbx, r8
mov qword [rsp + 0x30], rbx
mov rsi, r9
cmp qword [rdx + 0x18], 8
mov rdi, rdx
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x3c], 4
mov dword [rsp + 0x38], 4
jb 0x14002534d
mov rdx, qword [rdx]
lea rax, [rsp + 0x30]
mov r9d, 0xf003f
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400253c2
cmp qword [rbx + 0x18], 8
mov rdx, rbx
jb 0x140025377
mov rdx, qword [rbx]
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x3c]
xor r8d, r8d
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x30]
test eax, eax
jne 0x1400253bc
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, rdi
call fcn.14001a3c0
mov rcx, rbx
call fcn.14001a3c0
mov al, 1
jmp 0x1400253d4
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, rdi
call fcn.14001a3c0
mov rcx, rbx
call fcn.14001a3c0
xor al, al
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140033040
add rsp, 0x50
pop rdi
pop rsi
pop rbx
ret

Function at 0x140025f20
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x260
mov rax, qword [0x1400770b8]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rdi, rdx
mov qword [rsp + 0x30], 0
mov edx, ecx
lea rax, [rsp + 0x30]
xor ecx, ecx
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
call qword [sym.imp.SHELL32.dll_SHGetFolderLocation]
mov rcx, qword [rsp + 0x30]
mov ebx, eax
test rcx, rcx
je 0x140025fdb
lea rdx, [rsp + 0x40]
call qword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x140025fa8
lea rax, [rsp + 0x40]
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x140025f90
lea rdx, [rsp + 0x40]
mov rcx, rdi
call fcn.14001afd0
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x38], 0
call qword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
js 0x140025fdb
mov rcx, qword [rsp + 0x38]
mov rdx, qword [rsp + 0x30]
mov rax, qword [rcx]
call qword [rax + 0x28]
mov rcx, qword [rsp + 0x38]
mov rax, qword [rcx]
call qword [rax + 0x10]
test ebx, ebx
sete al
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.140033040
mov rbx, qword [rsp + 0x280]
add rsp, 0x260
pop rdi
ret