joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140002764
Capabilities:
Read data from internet
Receive data

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
lea rbp, [rsp - 0x380]
sub rsp, 0x480
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov rax, qword [0x14007a0a0]
xor rax, rsp
mov qword [rbp + 0x370], rax
mov rax, r8
mov rbx, rdx
mov rdi, rcx
mov qword [rsp + 0x40], rdx
xor r14d, r14d
mov dword [rsp + 0x30], r14d
mov qword [rdx + 0x10], r14
mov qword [rdx + 0x18], 7
mov word [rdx], r14w
mov dword [rsp + 0x30], 1
mov rcx, qword [rcx]
test rcx, rcx
je 0x1400028db
cmp qword [r8 + 0x18], 8
jb 0x1400027d8
mov rax, qword [r8]
mov qword [rsp + 0x28], r14
mov dword [rsp + 0x20], 0x80000000
xor r9d, r9d
xor r8d, r8d
mov rdx, rax
call qword [sym.imp.WININET.dll_InternetOpenUrlW]
mov qword [rdi + 8], rax
test rax, rax
je 0x1400028db
mov rcx, rax
jmp 0x1400028bd
mov r9d, dword [rsp + 0x48]
test r9d, r9d
je 0x1400028db
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0x20], r14
lea r8, [rsp + 0x70]
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
movsxd rsi, eax
test eax, eax
jle 0x1400028b9
mov qword [rsp + 0x60], r14
mov qword [rsp + 0x68], 7
mov word [rsp + 0x50], r14w
xor r8d, r8d
mov rdx, rsi
lea rcx, [rsp + 0x50]
call fcn.140007e24
nop
lea rax, [rsp + 0x50]
cmp qword [rsp + 0x68], 8
cmovae rax, qword [rsp + 0x50]
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x48]
lea r8, [rsp + 0x70]
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea rdx, [rsp + 0x50]
cmp qword [rsp + 0x68], 8
cmovae rdx, qword [rsp + 0x50]
mov r8, qword [rsp + 0x60]
mov rcx, rbx
call fcn.140008b10
nop
lea rcx, [rsp + 0x50]
call fcn.140007dc0
mov rcx, qword [rdi + 8]
lea r9, [rsp + 0x48]
mov r8d, 0x400
lea rdx, [rsp + 0x70]
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x140002809
mov rax, rbx
mov rcx, qword [rbp + 0x370]
xor rcx, rsp
call fcn.14002f160
add rsp, 0x480
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x140002c04
Capabilities:
Read data from internet
Receive data

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x478]
sub rsp, 0x578
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov rax, qword [0x14007a0a0]
xor rax, rsp
mov qword [rbp + 0x460], rax
mov rdi, r9
mov rsi, r8
mov rbx, rdx
mov r14, rcx
mov qword [rsp + 0x40], rdx
xor r15d, r15d
mov dword [rsp + 0x30], r15d
mov qword [rdx + 0x10], r15
mov qword [rdx + 0x18], r15
mov rdx, r9
mov rcx, rbx
call fcn.140008028
nop
mov dword [rsp + 0x30], 1
mov rcx, qword [r14]
test rcx, rcx
je 0x140002df1
cmp qword [rsi + 0x18], 8
jb 0x140002c81
mov rsi, qword [rsi]
mov qword [rsp + 0x28], r15
mov dword [rsp + 0x20], 0x80000000
xor r9d, r9d
xor r8d, r8d
mov rdx, rsi
call qword [sym.imp.WININET.dll_InternetOpenUrlW]
mov qword [r14 + 8], rax
test rax, rax
je 0x140002ddc
xor edx, edx
mov r8d, 0x108
lea rcx, [rsp + 0x50]
call fcn.140030f80
cmp qword [rdi + 0x18], 8
jb 0x140002cc6
mov rdi, qword [rdi]
mov rdx, rdi
lea rcx, [rsp + 0x50]
call fcn.140008428
mov rax, qword [rsp + 0x50]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0x50], rax
mov rax, qword [rsp + 0x50]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rsp + rcx + 0x4c], edx
cmp qword [rbp - 0x28], r15
je 0x140002da6
mov edi, 0x400
jmp 0x140002d25
mov eax, dword [rsp + 0x48]
test eax, eax
je 0x140002d3f
mov r8d, eax
lea rdx, [rbp + 0x60]
lea rcx, [rsp + 0x50]
call fcn.140007524
lea r9, [rsp + 0x48]
mov r8d, edi
lea rdx, [rbp + 0x60]
mov rcx, qword [r14 + 8]
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x140002d0c
lea rsi, [rsp + 0x58]
cmp qword [rbp - 0x28], r15
jne 0x140002d4f
mov rdi, r15
jmp 0x140002d70
lea rcx, [rsp + 0x58]
call fcn.1400087a0
neg al
sbb rdi, rdi
and rdi, rsi
mov rcx, qword [rbp - 0x28]
call fcn.1400336cc
test eax, eax
cmovne rdi, r15
mov esi, 2
mov r8d, esi
xor edx, edx
lea rcx, [rsp + 0x58]
call fcn.140008878
test rdi, rdi
jne 0x140002dbb
mov rax, qword [rsp + 0x50]
movsxd rcx, dword [rax + 4]
lea rax, [rsp + 0x50]
add rcx, rax
xor r8d, r8d
mov edx, esi
call fcn.140008980
jmp 0x140002dbb
mov rax, rbx
cmp qword [rbx + 0x18], 8
jb 0x140002db3
mov rax, qword [rbx]
mov qword [rbx + 0x10], r15
mov word [rax], r15w
lea rcx, [rbp - 8]
call fcn.1400069d4
nop
lea rax, vtable.std::ios_base.0
mov qword [rbp - 8], rax
lea rcx, [rbp - 8]
call fcn.140013c0c
nop
jmp 0x140002df1
mov rax, rbx
cmp qword [rbx + 0x18], 8
jb 0x140002de9
mov rax, qword [rbx]
mov qword [rbx + 0x10], r15
mov word [rax], r15w
mov rax, rbx
mov rcx, qword [rbp + 0x460]
xor rcx, rsp
call fcn.14002f160
add rsp, 0x578
pop r15
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x140005514
Capabilities:
Create http request

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0xc8]
sub rsp, 0x1c0
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rdi
mov rax, qword [0x14007a0a0]
xor rax, rsp
mov qword [rbp + 0xb0], rax
call qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
xor edx, edx
mov rcx, rax
call qword [sym.imp.USER32.dll_ShowWindow]
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x58], xmm0
xor edi, edi
mov dword [rsp + 0x20], edi
xor r9d, r9d
xor r8d, r8d
lea ebx, [rdi + 1]
mov edx, ebx
lea rcx, str.WinINet_Example
call qword [sym.imp.WININET.dll_InternetOpenW]
mov qword [rsp + 0x58], rax
xor edx, edx
mov r8d, 0x110
lea rcx, [rbp - 0x60]
call fcn.140030f80
lea rcx, [rbp - 0x60]
call fcn.1400031e4
nop
xor eax, eax
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], rax
movdqa xmm0, xmmword [0x14006dbe0]
movdqu xmmword [rsp + 0x40], xmm0
mov word [rsp + 0x30], di
lea rdx, [0x14006cb08]
lea rcx, [rsp + 0x30]
call fcn.140007f4c
nop
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x68], xmm0
mov qword [rsp + 0x78], rdi
lea r8, [rsp + 0x50]
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x68]
call fcn.140009648
nop
lea r9, [fcn.140005c50]
mov r8d, ebx
lea edx, [rdi + 0x20]
lea rcx, [rsp + 0x30]
call fcn.14002f1c8
lea rcx, [rbp - 0x80]
call fcn.14000c75c
nop
lea rax, [rsp + 0x68]
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0x80]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x40], rax
lea rax, [rbp - 0x60]
mov qword [rsp + 0x48], rax
lea rcx, [rsp + 0x30]
call fcn.1400056b4
mov ebx, eax
lea rcx, [rbp - 0x80]
call fcn.140007dc0
nop
lea rcx, [rsp + 0x68]
call fcn.140007b64
nop
lea rcx, [rbp - 0x60]
call fcn.14000548c
nop
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x14000567b
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x14000568b
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, ebx
mov rcx, qword [rbp + 0xb0]
xor rcx, rsp
call fcn.14002f160
lea r11, [rsp + 0x1c0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret
Function at 0x1400408ec
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140040718
Function at 0x140001288
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x5b0
lea rdi, [rsp + 0x60]
mov ecx, 0x154
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x5c0]
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x5a0], rax
mov dword [rsp + 0x60], 0
mov dword [rsp + 0x64], 0x3fff
mov dword [rsp + 0x2b4], 0
lea rax, [rsp + 0x2f8]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, [0x140018940]
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x140001312
mov eax, dword [rsp + 0x60]
jmp 0x14000153d
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
lea rax, [rsp + 0x2d4]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x2b4]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x2f8]
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov dword [rsp + 0x308], eax
cmp dword [rsp + 0x308], 0
jne 0x14000152b
cmp dword [rsp + 0x2b4], 0
jbe 0x14000152b
mov dword [rsp + 0x304], 0
jmp 0x1400013b8
mov eax, dword [rsp + 0x304]
inc eax
mov dword [rsp + 0x304], eax
mov eax, dword [rsp + 0x2b4]
cmp dword [rsp + 0x304], eax
jae 0x14000152b
mov dword [rsp + 0x294], 0xff
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x294]
lea r8, [rsp + 0x80]
mov edx, dword [rsp + 0x304]
mov rcx, qword [rsp + 0x2f8]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov dword [rsp + 0x308], eax
cmp dword [rsp + 0x308], 0
jne 0x140001526
lea rax, [rsp + 0x318]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x2f8]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140001518
mov dword [rsp + 0x334], 0
lea rax, [rsp + 0x360]
mov rdi, rax
xor eax, eax
mov ecx, 0x208
rep stosb byte [rdi], al
mov dword [rsp + 0x584], 0x104
lea rax, [rsp + 0x584]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x360]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x334]
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x318]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140001518
lea rdx, str.IApplicationAssociationRegistrationInternal
lea rcx, [rsp + 0x360]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
jne 0x140001518
lea r8, [rsp + 0x80]
mov edx, 0x104
mov rcx, qword [rsp + 0x5c0]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
mov rcx, qword [rsp + 0x318]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [rsp + 0x60], 1
jmp 0x14000152b
mov rcx, qword [rsp + 0x318]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1400013a8
mov rcx, qword [rsp + 0x2f8]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [rsp + 0x60]
mov rdi, rax
mov rcx, rsp
lea rdx, [0x140018cd0]
call fcn.140014604
mov rax, rdi
mov rcx, qword [rsp + 0x5a0]
xor rcx, rsp
call fcn.140014710
add rsp, 0x5b0
pop rdi
ret
Function at 0x1400035f8
Capabilities:
Accept command line arguments

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x300
lea rdi, [rsp + 0x20]
mov ecx, 0xb8
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x310]
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x2f8], rax
mov dword [rsp + 0x2ec], 0
mov qword [rsp + 0x248], 0
mov dword [rsp + 0x254], 0
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea rdx, [rsp + 0x254]
mov rcx, rax
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov qword [rsp + 0x248], rax
cmp qword [rsp + 0x248], 0
je 0x1400036e7
lea rdx, [0x1400268a0]
lea rcx, [rsp + 0x268]
call fcn.140001e2c
or dword [rsp + 0x2ec], 1
movsxd rax, dword [rsp + 0x254]
mov rcx, qword [rsp + 0x248]
lea rax, [rcx + rax*8]
lea r8, [rsp + 0x268]
mov rdx, rax
mov rcx, qword [rsp + 0x248]
call fcn.1400029a4
movzx eax, al
test eax, eax
je 0x1400036e7
mov dword [rsp + 0x2f0], 1
jmp 0x1400036f2
mov dword [rsp + 0x2f0], 0
mov al, byte [rsp + 0x2f0]
mov byte [rsp + 0x2e8], al
mov eax, dword [rsp + 0x2ec]
and eax, 1
test eax, eax
je 0x140003723
and dword [rsp + 0x2ec], 0xfffffffe
lea rcx, [rsp + 0x268]
call fcn.1400020e0
movzx eax, byte [rsp + 0x2e8]
test eax, eax
je 0x140003877
lea rdx, str.StageRedirection
lea rcx, [rsp + 0x290]
call fcn.140001e2c
movsxd rax, dword [rsp + 0x254]
mov rcx, qword [rsp + 0x248]
lea rax, [rcx + rax*8]
lea r8, [rsp + 0x290]
mov rdx, rax
mov rcx, qword [rsp + 0x248]
call fcn.140002aec
mov qword [rsp + 0x288], rax
lea rcx, [rsp + 0x290]
call fcn.1400020e0
cmp qword [rsp + 0x288], 0
je 0x1400037b9
lea rdx, [0x1400268ec]
mov rcx, qword [rsp + 0x288]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x1400037b9
mov dword [rsp + 0x2f4], 0
jmp 0x1400037c4
mov dword [rsp + 0x2f4], 1
mov al, byte [rsp + 0x2f4]
mov byte [rsp + 0x2b0], al
lea rdx, [0x1400268f0]
lea rcx, [rsp + 0x2c0]
call fcn.140001e2c
movsxd rax, dword [rsp + 0x254]
mov rcx, qword [rsp + 0x248]
lea rax, [rcx + rax*8]
lea r8, [rsp + 0x2c0]
mov rdx, rax
mov rcx, qword [rsp + 0x248]
call fcn.140002aec
mov qword [rsp + 0x2b8], rax
lea rcx, [rsp + 0x2c0]
call fcn.1400020e0
cmp qword [rsp + 0x2b8], 0
jne 0x140003841
lea rax, [0x140026900]
mov qword [rsp + 0x2b8], rax
call fcn.140002cdc
movzx eax, byte [rsp + 0x2b0]
test eax, eax
je 0x140003861
mov rcx, qword [rsp + 0x2b8]
call fcn.140003130
jmp 0x14000386e
mov rcx, qword [rsp + 0x2b8]
call fcn.140002d2c
mov cl, 1
call fcn.1400135bc
jmp 0x140003898
mov r8d, 0x104
lea rdx, [rsp + 0x30]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x140003898
lea rcx, [rsp + 0x30]
call fcn.140002280
xor eax, eax
mov edi, eax
mov rcx, rsp
lea rdx, [0x140032660]
call fcn.140014604
mov eax, edi
mov rcx, qword [rsp + 0x2f8]
xor rcx, rsp
call fcn.140014710
add rsp, 0x300
pop rdi
ret
Function at 0x1400088c8
Capabilities:
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x100
lea rdi, [rsp + 0x30]
mov ecx, 0x34
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x110]
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0xf0], rax
mov byte [rsp + 0x30], 0
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x68], 0
mov dword [rsp + 0x84], MsiDatabaseExportA
mov dword [rsp + 0x20], 0xf0000040
mov r9d, 1
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x140008a1f
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x8003
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x140008a1f
cmp qword [rsp + 0x68], 0
je 0x140008a1f
xor r9d, r9d
mov r8d, dword [rsp + 0x118]
mov rdx, qword [rsp + 0x110]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x140008a1f
mov dword [rsp + 0x20], 0
lea r9, [rsp + 0x84]
lea r8, [rsp + 0xa8]
mov edx, 2
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x140008a1f
lea r9, [rsp + 0xd8]
lea r8, [rsp + 0xa8]
mov edx, dword [rsp + 0x118]
mov rcx, qword [rsp + 0x110]
call fcn.140008154
movzx eax, al
test eax, eax
je 0x140008a1f
mov rdx, qword [rsp + 0x120]
lea rcx, [rsp + 0xd8]
call fcn.140008f54
movzx eax, al
test eax, eax
je 0x140008a1f
mov byte [rsp + 0x30], 1
cmp qword [rsp + 0x68], 0
je 0x140008a32
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
cmp qword [rsp + 0x48], 0
je 0x140008a47
xor edx, edx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov al, byte [rsp + 0x30]
mov rdi, rax
mov rcx, rsp
lea rdx, [0x140037430]
call fcn.140014604
mov rax, rdi
mov rcx, qword [rsp + 0xf0]
xor rcx, rsp
call fcn.140014710
add rsp, 0x100
pop rdi
ret
Function at 0x140008f54
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0xf8
lea rdi, [rsp + 0x20]
mov ecx, 0x36
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x110]
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0xe8], rax
lea rax, [rsp + 0x30]
lea rcx, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
mov rdi, rax
mov rsi, rcx
mov ecx, 0x82
rep movsb byte [rdi], byte [rsi]
mov dword [rsp + 0xc4], 0
mov dword [rsp + 0xc8], 0
cmp dword [rsp + 0xc8], 8
jae 0x14000918a
mov eax, dword [rsp + 0xc8]
mov rcx, qword [rsp + 0x110]
movzx eax, byte [rcx + rax]
mov dword [rsp + 0xcc], eax
mov eax, dword [rsp + 0xc8]
inc eax
mov dword [rsp + 0xc8], eax
cmp dword [rsp + 0xc8], 8
jae 0x14000902f
mov eax, dword [rsp + 0xc8]
mov rcx, qword [rsp + 0x110]
movzx eax, byte [rcx + rax]
mov dword [rsp + 0xe0], eax
mov eax, dword [rsp + 0xc8]
inc eax
mov dword [rsp + 0xc8], eax
jmp 0x14000903a
mov dword [rsp + 0xe0], 0
mov eax, dword [rsp + 0xe0]
mov dword [rsp + 0xd0], eax
cmp dword [rsp + 0xc8], 8
jae 0x14000907e
mov eax, dword [rsp + 0xc8]
mov rcx, qword [rsp + 0x110]
movzx eax, byte [rcx + rax]
mov dword [rsp + 0xe4], eax
mov eax, dword [rsp + 0xc8]
inc eax
mov dword [rsp + 0xc8], eax
jmp 0x140009089
mov dword [rsp + 0xe4], 0
mov eax, dword [rsp + 0xe4]
mov dword [rsp + 0xd4], eax
mov eax, dword [rsp + 0xcc]
shr eax, 2
mov eax, eax
mov ecx, dword [rsp + 0xc4]
mov rdx, qword [rsp + 0x118]
movzx eax, word [rsp + rax*2 + 0x30]
mov word [rdx + rcx*2], ax
mov eax, dword [rsp + 0xc4]
inc eax
mov dword [rsp + 0xc4], eax
mov eax, dword [rsp + 0xd0]
shr eax, 4
mov ecx, dword [rsp + 0xcc]
and ecx, 3
shl ecx, 4
or eax, ecx
mov eax, eax
mov ecx, dword [rsp + 0xc4]
mov rdx, qword [rsp + 0x118]
movzx eax, word [rsp + rax*2 + 0x30]
mov word [rdx + rcx*2], ax
mov eax, dword [rsp + 0xc4]
inc eax
mov dword [rsp + 0xc4], eax
mov eax, dword [rsp + 0xd4]
shr eax, 6
mov ecx, dword [rsp + 0xd0]
and ecx, 0xf
shl ecx, 2
or eax, ecx
mov eax, eax
mov ecx, dword [rsp + 0xc4]
mov rdx, qword [rsp + 0x118]
movzx eax, word [rsp + rax*2 + 0x30]
mov word [rdx + rcx*2], ax
mov eax, dword [rsp + 0xc4]
inc eax
mov dword [rsp + 0xc4], eax
mov eax, dword [rsp + 0xd4]
and eax, 0x3f
mov eax, eax
mov ecx, dword [rsp + 0xc4]
mov rdx, qword [rsp + 0x118]
movzx eax, word [rsp + rax*2 + 0x30]
mov word [rdx + rcx*2], ax
mov eax, dword [rsp + 0xc4]
inc eax
mov dword [rsp + 0xc4], eax
jmp 0x140008fc1
mov eax, dword [rsp + 0xc4]
dec eax
mov dword [rsp + 0xc4], eax
mov eax, dword [rsp + 0xc4]
mov ecx, 0x3d
mov rdx, qword [rsp + 0x118]
mov word [rdx + rax*2], cx
mov eax, dword [rsp + 0xc4]
inc eax
mov dword [rsp + 0xc4], eax
mov eax, dword [rsp + 0xc4]
xor ecx, ecx
mov rdx, qword [rsp + 0x118]
mov word [rdx + rax*2], cx
mov al, 1
mov rdi, rax
mov rcx, rsp
lea rdx, [0x1400372a0]
call fcn.140014604
mov rax, rdi
mov rcx, qword [rsp + 0xe8]
xor rcx, rsp
call fcn.140014710
add rsp, 0xf8
pop rdi
pop rsi
ret
Function at 0x14000a514
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0xac0
lea rdi, [rsp + 0x30]
mov ecx, 0x2a4
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0xad0]
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0xab8], rax
lea rax, [rsp + 0x40]
mov rdi, rax
xor eax, eax
mov ecx, 0x208
rep stosb byte [rdi], al
mov byte [rsp + 0xa74], 0
mov edx, 0x400
lea rcx, [rsp + 0x270]
call fcn.14000a128
mov dword [rsp + 0xa78], eax
cmp dword [rsp + 0xa78], 0
je 0x14000a5b9
lea r8, [0x1400351b8]
mov edx, 0x104
lea rcx, [rsp + 0x40]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
lea r8, [rsp + 0x270]
mov edx, 0x104
lea rcx, [rsp + 0x40]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
jmp 0x14000a5d0
lea r8, [0x1400351d0]
mov edx, 0x104
lea rcx, [rsp + 0x40]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
lea r8, [0x140035200]
mov edx, 0x104
lea rcx, [rsp + 0x40]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
lea rcx, [rsp + 0xa88]
call fcn.140013784
nop
mov dword [rsp + 0x28], 0x105
mov dword [rsp + 0x20], 0
mov r9, qword [rsp + 0xad0]
lea r8, [0x140035288]
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0xa88]
call fcn.140013e14
mov rcx, qword [rsp + 0xad0]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcslen]
test rax, rax
jne 0x14000a660
xor r9d, r9d
mov r8d, 0x1c
mov rdx, qword [rsp + 0xad0]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x14000a65e
mov byte [rsp + 0xa74], 1
jmp 0x14000a668
mov byte [rsp + 0xa74], 1
mov al, byte [rsp + 0xa74]
mov byte [rsp + 0xab0], al
lea rcx, [rsp + 0xa88]
call fcn.1400137b8
mov al, byte [rsp + 0xab0]
mov rdi, rax
mov rcx, rsp
lea rdx, [0x140037130]
call fcn.140014604
mov rax, rdi
mov rcx, qword [rsp + 0xab8]
xor rcx, rsp
call fcn.140014710
add rsp, 0xac0
pop rdi
ret
Function at 0x14000a950
Capabilities:
Create process on windows
Get common file path

Disassembly:
push rdi
sub rsp, 0x370
lea rdi, [rsp + 0x50]
mov ecx, 0xc8
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x360], rax
lea rax, [rsp + 0x60]
mov rdi, rax
xor eax, eax
mov ecx, 0x208
rep stosb byte [rdi], al
mov qword [rsp + 0x288], 0
lea r9, [rsp + 0x288]
xor r8d, r8d
xor edx, edx
lea rcx, [0x140052fb0]
call sub.SHELL32.dll_SHGetKnownFolderPath
test eax, eax
jne 0x14000aa89
mov r8, qword [rsp + 0x288]
mov edx, 0x104
lea rcx, [rsp + 0x60]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
test eax, eax
jne 0x14000aa7b
lea r8, str.control.exe__name_Microsoft.DefaultPrograms__page_pageDefaultProgram
mov edx, 0x104
lea rcx, [rsp + 0x60]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
test eax, eax
jne 0x14000aa7b
lea rax, [rsp + 0x2b0]
mov rdi, rax
xor eax, eax
mov ecx, 0x68
rep stosb byte [rdi], al
lea rax, [rsp + 0x338]
mov rdi, rax
xor eax, eax
mov ecx, 0x18
rep stosb byte [rdi], al
mov dword [rsp + 0x2b0], 0x68
lea rax, [rsp + 0x338]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x2b0]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x20
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0x60]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
mov rcx, qword [rsp + 0x288]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, rsp
lea rdx, [0x140036ed0]
call fcn.140014604
mov rcx, qword [rsp + 0x360]
xor rcx, rsp
call fcn.140014710
add rsp, 0x370
pop rdi
ret
Function at 0x14000c8c0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0xd0
lea rdi, [rsp + 0x30]
mov ecx, 0x28
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0xe0]
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rax, qword [rsp + 0xe0]
cmp qword [rax + 0x68], 0
je 0x14000c917
mov rax, qword [rsp + 0xe0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x14000c91e
mov al, 1
jmp 0x14000ca98
call fcn.14000d504
mov rcx, qword [rsp + 0xe0]
mov rcx, qword [rcx]
mov rcx, qword [rcx + 0x18]
mov qword [rsp + 0xa8], rcx
mov edx, eax
mov rcx, qword [rsp + 0xe0]
mov rax, qword [rsp + 0xa8]
call qword [0x1400187a0]
mov dword [rsp + 0xb0], eax
call fcn.14000d504
mov ecx, dword [rsp + 0xb0]
mov edx, ecx
mov ecx, eax
call fcn.14000d510
movzx eax, al
test eax, eax
je 0x14000c97c
xor al, al
jmp 0x14000ca98
mov qword [rsp + 0x30], 0x20
lea rax, [rsp + 0x68]
mov rcx, qword [rsp + 0xe0]
add rcx, 0x74
lea rdx, [rsp + 0x88]
mov qword [rsp + 0x20], rdx
mov r9, rax
lea r8, [rsp + 0x48]
mov rdx, rcx
mov rax, qword [rsp + 0xe0]
mov rcx, qword [rax + 0x68]
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]
mov dword [rsp + 0xb4], eax
cmp dword [rsp + 0xb4], 0
je 0x14000c9ee
cmp dword [rsp + 0xb4], 1
je 0x14000c9fa
cmp dword [rsp + 0xb4], 3
je 0x14000ca86
jmp 0x14000ca96
mov rax, qword [rsp + 0xe0]
mov byte [rax + 0x71], 0
lea rax, [rsp + 0x48]
mov rcx, qword [rsp + 0x88]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x98], rax
cmp qword [rsp + 0x98], 0
jbe 0x14000ca55
mov rax, qword [rsp + 0xe0]
mov r9, qword [rax + 0x80]
mov r8, qword [rsp + 0x98]
mov edx, 1
lea rcx, [rsp + 0x48]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp qword [rsp + 0x98], rax
je 0x14000ca55
xor al, al
jmp 0x14000ca98
mov rax, qword [rsp + 0xe0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x14000ca72
mov dword [rsp + 0xb8], 1
jmp 0x14000ca7d
mov dword [rsp + 0xb8], 0
mov al, byte [rsp + 0xb8]
jmp 0x14000ca98
mov rax, qword [rsp + 0xe0]
mov byte [rax + 0x71], 0
mov al, 1
jmp 0x14000ca98
xor al, al
mov rdi, rax
mov rcx, rsp
lea rdx, [0x140038340]
call fcn.140014604
mov rax, rdi
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.140014710
add rsp, 0xd0
pop rdi
ret