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

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
push rdi
push r12
sub rsp, 0x30
lea r12, [0x14000f020]
xor esi, esi
mov edi, ecx
mov rax, r12
mov ebx, esi
nop
cmp ecx, dword [rax]
je 0x140001efe
add ebx, 1
add rax, 0x10
cmp ebx, 0x17
jb 0x140001ee0
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret
cmp ebx, 0x17
jae 0x1400020e5
mov ecx, 3
call fcn.140006150
cmp eax, 1
je 0x14000209c
mov ecx, 3
call fcn.140006150
test eax, eax
jne 0x140001f35
cmp dword [section..data], 1
je 0x14000209c
cmp edi, 0xfc
je 0x1400020e5
mov qword [rsp + 0x50], rbp
lea rbp, [0x140010560]
lea r8, str.Runtime_Error__n_nProgram:
mov rcx, rbp
mov edx, 0x314
call fcn.1400060a0
test eax, eax
je 0x140001f79
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.140004b70
lea rdx, [0x140010579]
mov r8d, 0x104
xor ecx, ecx
mov byte [0x14001067d], sil
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x140001fc9
lea r8, str._program_name_unknown_
lea rcx, [0x140010579]
mov edx, 0x2fb
call fcn.1400060a0
test eax, eax
je 0x140001fc9
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.140004b70
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [0x140010579]
repne scasb al, byte [rdi]
not rcx
cmp rcx, 0x3c
jbe 0x140002018
lea rcx, [rcx + rbp - 0x23]
lea rdx, [0x140010874]
lea r9d, [rax + 3]
lea r8, [0x14000c954]
sub rdx, rcx
call fcn.140005f80
test eax, eax
je 0x140002018
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.140004b70
lea r8, [0x14000c950]
mov edx, 0x314
mov rcx, rbp
call fcn.140005ec0
test eax, eax
je 0x140002044
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.140004b70
movsxd r8, ebx
mov edx, 0x314
mov rcx, rbp
add r8, r8
mov r8, qword [r12 + r8*8 + 8]
call fcn.140005ec0
test eax, eax
je 0x140002074
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.140004b70
lea rdx, str.Microsoft_Visual_C_Runtime_Library
mov r8d, 0x12010
mov rcx, rbp
call fcn.140005c60
mov rbp, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
test rax, rax
mov r11, rax
je 0x1400020e5
cmp rax, 0xffffffffffffffff
je 0x1400020e5
xor eax, eax
movsxd rcx, ebx
lea r9, [rsp + 0x58]
add rcx, rcx
mov qword [rsp + 0x20], rsi
mov rdx, qword [r12 + rcx*8 + 8]
or rcx, 0xffffffffffffffff
mov rdi, rdx
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret
Function at 0x140002100
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x38
mov ecx, 3
call fcn.140006150
cmp eax, 1
je 0x140002132
mov ecx, 3
call fcn.140006150
test eax, eax
jne 0x1400021e6
cmp dword [section..data], 1
jne 0x1400021e6
mov qword [rsp + 0x48], rbx
lea rbx, [0x14000f020]
mov qword [rsp + 0x30], rdi
mov rax, rbx
xor edi, edi
cmp dword [rax], 0xfc
je 0x14000215e
add edi, 1
add rax, 0x10
cmp edi, 0x17
jb 0x140002148
jmp 0x1400021d2
cmp edi, 0x17
jae 0x1400021d2
mov ecx, 3
call fcn.140006150
cmp eax, 1
je 0x140002189
mov ecx, 3
call fcn.140006150
test eax, eax
jne 0x1400021d2
cmp dword [section..data], 1
jne 0x1400021d2
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
test rax, rax
mov r11, rax
je 0x1400021d2
cmp rax, 0xffffffffffffffff
je 0x1400021d2
movsxd rcx, edi
xor eax, eax
lea r9, [rsp + 0x40]
add rcx, rcx
mov qword [rsp + 0x20], rax
mov rdx, qword [rbx + rcx*8 + 8]
or rcx, 0xffffffffffffffff
mov rdi, rdx
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, 0xff
call fcn.140001ec0
mov rdi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x48]
add rsp, 0x38
ret
Function at 0x140002b00
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x40
mov eax, dword [0x140010988]
test eax, eax
jne 0x140002b53
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test rax, rax
mov rdi, rax
je 0x140002b33
mov dword [0x140010988], 1
jmp 0x140002b6e
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x140002b4d
mov dword [0x140010988], 2
jmp 0x140002c49
mov eax, dword [0x140010988]
cmp eax, 1
jne 0x140002c40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test rax, rax
mov rdi, rax
je 0x140002c93
cmp word [rdi], 0
mov qword [rsp + 0x50], rbp
mov rbx, rdi
mov qword [rsp + 0x58], r12
je 0x140002b95
add rbx, 2
cmp word [rbx], 0
jne 0x140002b81
add rbx, 2
cmp word [rbx], 0
jne 0x140002b81
xor r12d, r12d
sub rbx, rdi
mov r8, rdi
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
sar rbx, 1
lea r9d, [rbx + 1]
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
movsxd rbp, eax
je 0x140002c33
mov rcx, rbp
call fcn.140006dd0
test rax, rax
mov rsi, rax
je 0x140002c33
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
lea r9d, [rbx + 1]
mov r8, rdi
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x28], ebp
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x140002c0d
mov rcx, rsi
call fcn.140001740
mov rsi, r12
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbp, qword [rsp + 0x50]
mov r12, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x140002c19
cmp eax, 2
je 0x140002c49
test eax, eax
jne 0x140002c93
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
test rax, rax
mov rbx, rax
je 0x140002c93
cmp byte [rax], 0
je 0x140002c72
nop
add rax, 1
cmp byte [rax], 0
jne 0x140002c60
add rax, 1
cmp byte [rax], 0
jne 0x140002c60
sub eax, ebx
add eax, 1
movsxd rsi, eax
mov rcx, rsi
call fcn.140006dd0
test rax, rax
mov rdi, rax
jne 0x140002ca5
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140006f70
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
mov rax, rdi
add rsp, 0x40
pop rdi
ret
Function at 0x140004c10
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x5b0
mov rbp, rcx
mov rcx, qword [0x140010998]
mov ebx, r9d
mov rdi, r8
mov rsi, rdx
call fcn.140003250
test rax, rax
je 0x140004c64
mov r10, qword [rsp + 0x5e0]
mov r9d, ebx
mov r8, rdi
mov rdx, rsi
mov rcx, rbp
mov qword [rsp + 0x20], r10
call rax
jmp 0x140004cf9
mov ecx, 2
call fcn.140008a70
lea rcx, [rsp + 0xe0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
lea rcx, [rsp + 0x40]
xor edx, edx
mov r8d, 0x98
call fcn.140001650
mov rax, qword [rsp + 0x5b8]
mov dword [rsp + 0x40], 0xc000000d
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0xe0]
mov qword [rsp + 0x38], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
xor ecx, ecx
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
test eax, eax
jne 0x140004ce5
test ebx, ebx
jne 0x140004ce5
lea ecx, [rax + 2]
call fcn.140008a70
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc000000d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
lea r11, [rsp + 0x5b0]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x140005c60
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r13
push r14
sub rsp, 0x50
mov edi, r8d
mov r13, rdx
mov r14, rcx
call fcn.140003160
xor ebx, ebx
cmp qword [0x140010c48], rbx
mov rbp, rax
mov dword [rsp + 0x98], ebx
mov dword [rsp + 0x30], ebx
jne 0x140005d8c
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
mov rsi, rax
je 0x140005e9f
lea rdx, str.MessageBoxA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140005e9f
mov rcx, rax
call fcn.140003090
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x140010c48], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.140003090
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x140010c50], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.140003090
lea rcx, [rsp + 0x98]
mov qword [0x140010c58], rax
call fcn.140001b60
test eax, eax
je 0x140005d3f
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call fcn.140004b70
cmp dword [rsp + 0x98], 2
jne 0x140005d8c
lea rdx, str.GetUserObjectInformationA
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.140003090
test rax, rax
mov qword [0x140010c68], rax
je 0x140005d8c
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.140003090
mov qword [0x140010c60], rax
mov rcx, qword [0x140010c60]
mov qword [rsp + 0x80], r12
cmp rcx, rbp
je 0x140005e38
cmp qword [0x140010c68], rbp
je 0x140005e38
call fcn.140003250
mov rcx, qword [0x140010c68]
mov rsi, rax
call fcn.140003250
test rsi, rsi
mov r12, rax
je 0x140005e38
test rax, rax
je 0x140005e38
call rsi
test rax, rax
je 0x140005e03
lea rcx, [rsp + 0x34]
mov r9d, 0xc
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x140005e03
test byte [rsp + 0x40], 1
jne 0x140005e38
lea rcx, [rsp + 0x30]
call fcn.140001bb0
test eax, eax
je 0x140005e25
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call fcn.140004b70
cmp dword [rsp + 0x30], 4
jb 0x140005e32
bts edi, 0x15
jmp 0x140005e76
bts edi, 0x12
jmp 0x140005e76
mov rcx, qword [0x140010c50]
cmp rcx, rbp
je 0x140005e76
call fcn.140003250
test rax, rax
je 0x140005e76
call rax
test rax, rax
mov rbx, rax
je 0x140005e76
mov rcx, qword [0x140010c58]
cmp rcx, rbp
je 0x140005e76
call fcn.140003250
test rax, rax
je 0x140005e76
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x140010c48]
call fcn.140003250
mov r12, qword [rsp + 0x80]
test rax, rax
je 0x140005e9f
mov r9d, edi
mov r8, r13
mov rdx, r14
mov rcx, rbx
call rax
jmp 0x140005ea1
xor eax, eax
mov rbx, qword [rsp + 0x88]
add rsp, 0x50
pop r14
pop r13
pop rdi
pop rsi
pop rbp
ret
Function at 0x14000a897
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x140010140]
jne 0x140008a6a
rol rcx, 0x10
test cx, 0xffff
jne 0x140008a66
repz ret
ror rcx, 0x10
jmp 0x14000a7f0
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x140010d70]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x140010e68]
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 0x14000a875
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, [0x140010d70]
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 0x14000a897
mov rax, qword [rsp + 0x88]
mov qword [0x140010e68], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x140010e08], rax
mov rax, qword [0x140010e68]
mov qword [0x140010ce0], rax
mov rax, qword [rsp + 0x90]
mov qword [0x140010df0], rax
mov dword [0x140010cd0], 0xc0000409
mov dword [0x140010cd4], 1
mov rax, qword [0x140010140]
mov qword [rsp + 0x68], rax
mov rax, qword [0x140010148]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x140010d68], eax
mov ecx, 1
call fcn.140008a70
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x14000d548]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x140010d68], 0
jne 0x14000a91e
mov ecx, 1
call fcn.140008a70
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret

Function at 0x14000b180
Capabilities:
Get geographical location

Disassembly:
sub rsp, 0x38
mov rax, qword [0x140010140]
xor rax, rsp
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x20]
mov r9d, 6
mov edx, 0x1004
mov byte [rsp + 0x26], 0
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x14000b1c7
or eax, 0xffffffff
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140008a50
add rsp, 0x38
ret
lea rcx, [rsp + 0x20]
call fcn.14000b480
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140008a50
add rsp, 0x38
ret
Function at 0x140001764
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x140
mov rax, qword [0x140013010]
xor rax, rsp
mov qword [rsp + 0x130], rax
mov rdi, rdx
mov rbx, rcx
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x106
call sub.VCRUNTIME140.dll_memset
lea rdx, [rsp + 0x20]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x140001809
mov rcx, qword [0x140013ac8]
test rcx, rcx
jne 0x1400017f7
lea r8, str.ChromeReprompt.txt
mov edx, 0x104
lea rcx, [rsp + 0x20]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcat_s]
lea r8, [0x14000b9ac]
lea rdx, [rsp + 0x20]
lea rcx, [0x140013ac8]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen_s]
mov rcx, qword [0x140013ac8]
test rcx, rcx
je 0x140001809
mov r9, rdi
lea rdx, str._s_____s_n
mov r8, rbx
call fcn.140001038
mov eax, 1
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.140008c90
mov rbx, qword [rsp + 0x160]
add rsp, 0x140
pop rdi
ret
Function at 0x140001af0
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x1a8]
sub rsp, 0x290
mov rax, qword [0x140013010]
xor rax, rsp
mov qword [rbp + 0x180], rax
mov r14, rcx
xor edi, edi
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x60], 7
mov word [rsp + 0x48], di
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x70]
call sub.VCRUNTIME140.dll_memset
mov ebx, 0x104
mov edx, ebx
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x140001cf1
lea r8, [0x14000ba08]
mov edx, ebx
lea rcx, [rsp + 0x70]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
test eax, eax
jne 0x140001cf1
lea rcx, [rsp + 0x70]
call fcn.140001878
test eax, eax
je 0x140001cf1
mov r8d, eax
xor edx, edx
mov esi, 0x400
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov r15, rax
test rax, rax
je 0x140001cf1
mov qword [rsp + 0x38], rdi
lea r8, [rsp + 0x38]
lea edx, [rdi + 8]
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x140001ce7
mov dword [rsp + 0x30], edi
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [rdi + 1]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x140001cdc
mov ebx, dword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8d, ebx
lea edx, [rdi + 8]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
test rax, rax
je 0x140001cdc
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x30]
mov r8, rbx
lea edx, [rdi + 1]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x140001cc8
lea rdx, [rsp + 0x40]
mov rcx, qword [rbx]
call qword [sym.imp.ADVAPI32.dll_ConvertSidToStringSidW]
test eax, eax
je 0x140001cbd
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x48]
call fcn.14000521c
lea rdx, [0x14000b96c]
lea rcx, [rsp + 0x48]
call fcn.14000521c
mov rcx, qword [rsp + 0x40]
mov rdx, rcx
sub rdx, r14
lea rax, [rsi + 0x7ffffbfe]
test rax, rax
je 0x140001ca9
movzx eax, word [rdx + r14]
test ax, ax
je 0x140001ca9
mov word [r14], ax
add r14, 2
sub rsi, 1
jne 0x140001c85
lea rax, [r14 - 2]
test rsi, rsi
cmovne rax, r14
mov word [rax], di
setne dil
jmp 0x140001cc2
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_LocalFree]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
lea rcx, [rsp + 0x48]
call fcn.140005328
mov eax, edi
mov rcx, qword [rbp + 0x180]
xor rcx, rsp
call fcn.140008c90
lea r11, [rsp + 0x290]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x140002094
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0xd90]
sub rsp, 0xe90
mov rax, qword [0x140013010]
xor rax, rsp
mov qword [rbp + 0xd80], rax
mov rdi, rcx
mov r14d, 0x208
mov r8d, r14d
xor edx, edx
lea rcx, [rsp + 0x50]
call sub.VCRUNTIME140.dll_memset
xor ebx, ebx
lea rcx, [rbp + 0x580]
call fcn.140001af0
mov esi, 0x104
lea rcx, [rsp + 0x50]
mov edx, esi
test eax, eax
je 0x14000211b
lea r8, str.HKEY_USERS_
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
lea r8, [rbp + 0x580]
mov edx, esi
lea rcx, [rsp + 0x50]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
jmp 0x140002128
lea r8, [0x14000b970]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
lea r8, str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
mov rdx, rsi
lea rcx, [rsp + 0x50]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
lea rax, vtable.RegUtil.0
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], rbx
mov r9, rdi
lea r8, str.Local_AppData
lea rdx, [rsp + 0x50]
call fcn.140008124
mov rdx, rdi
lea rcx, str.GetUserLocalAppDataFolder_:_:_folderpath_via_registry_:
call fcn.140001764
or rax, 0xffffffffffffffff
inc rax
cmp word [rdi + rax*2], bx
jne 0x140002175
test rax, rax
jne 0x140002227
mov qword [rsp + 0x30], rbx
mov r8, r14
xor edx, edx
lea rcx, [rbp + 0x370]
call sub.VCRUNTIME140.dll_memset
mov r8, r14
xor edx, edx
lea rcx, [rbp + 0x160]
call sub.VCRUNTIME140.dll_memset
lea r8, [rbp + 0x160]
lea rdx, [rbp + 0x370]
lea rcx, [rsp + 0x30]
call fcn.140001e40
test eax, eax
je 0x140002202
mov qword [rsp + 0x38], rbx
lea r9, [rsp + 0x38]
mov r8, qword [rsp + 0x30]
xor edx, edx
lea rcx, [0x14000b730]
call qword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
mov r8, qword [rsp + 0x38]
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
lea rcx, str.Get_tUserLocalAppDataFolder_:_:_folderpath_new2_:
jmp 0x14000221f
xor r9d, r9d
lea r8d, [r9 + 0x1c]
mov rdx, rdi
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x140002229
lea rcx, str.GetUserLocalAppDataFolder_:_:_folderpath_old_:
mov rdx, rdi
call fcn.140001764
mov bl, 1
mov al, bl
mov rcx, qword [rbp + 0xd80]
xor rcx, rsp
call fcn.140008c90
lea r11, [rsp + 0xe90]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x140002c14
Capabilities:
Enumerate process modules
Get process image filename

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x168]
sub rsp, 0x250
mov rax, qword [0x140013010]
xor rax, rsp
mov qword [rbp + 0x140], rax
movups xmm0, xmmword [str._unknown_]
mov eax, dword [0x14000c4f8]
mov ebx, ecx
xor edx, edx
mov dword [rsp + 0x40], eax
mov r8d, 0x1f6
movaps xmmword [rsp + 0x30], xmm0
lea rcx, [rsp + 0x44]
xor edi, edi
call sub.VCRUNTIME140.dll_memset
lea ecx, [rdi + 0x16]
call fcn.1400091b0
lea r8, str.chrome.exe
mov rcx, rax
lea edx, [rdi + 0xb]
mov r14, rax
mov esi, edi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
mov r8d, ebx
xor edx, edx
mov ecx, 0x410
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
dec rax
cmp rax, 0xfffffffffffffffd
ja 0x140002d8c
lea r9, [rsp + 0x28]
mov rcx, rbx
lea r8d, [rdi + 8]
lea rdx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_K32EnumProcessModules]
lea r15d, [rdi + 1]
mov rcx, rbx
test eax, eax
je 0x140002ced
mov rdx, qword [rsp + 0x20]
lea r8, [rsp + 0x30]
mov r9d, 0x105
call qword [sym.imp.KERNEL32.dll_K32GetModuleBaseNameW]
jmp 0x140002d04
mov r8d, 0x105
lea rdx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_K32GetProcessImageFileNameW]
test eax, eax
cmovne esi, r15d
lea rdx, [rsp + 0x30]
lea rcx, str.chrome.exe
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
je 0x140002d6f
test esi, esi
je 0x140002d66
mov edx, 0x105
lea rcx, [rsp + 0x30]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcslwr_s]
mov edx, 0xb
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcslwr_s]
mov rdx, r14
lea rcx, [rsp + 0x30]
call qword [sym.imp.VCRUNTIME140.dll_wcsstr]
mov rcx, rax
test rax, rax
je 0x140002d66
or rax, 0xffffffffffffffff
inc rax
cmp word [r14 + rax*2], di
jne 0x140002d56
cmp word [rcx + rax*2], di
je 0x140002d6f
lea rcx, str._t_tChecking_:
jmp 0x140002d79
lea rcx, str._t_tFound_Match_:
mov edi, r15d
lea rdx, [rsp + 0x30]
call fcn.140001764
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, r14
call fcn.140008cb4
mov eax, edi
mov rcx, qword [rbp + 0x140]
xor rcx, rsp
call fcn.140008c90
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x1400044cc
Capabilities:
Write file on windows

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, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r14, rdx
mov rdi, rcx
je 0x1400044fd
call qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
jmp 0x140004570
mov rax, qword [rcx + 0x40]
mov rsi, rbx
mov r9, qword [rax]
test r9, r9
je 0x140004514
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140004516
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x14000456a
test ecx, ecx
jle 0x14000454a
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov edx, ebp
mov rcx, rdi
sub rbx, rbp
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pbump_int____ptr64]
add r14, rbp
test rbx, rbx
jle 0x14000456a
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x14000456a
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
sub rsi, rbx
mov rax, rsi
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret