joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1401a3dd0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbp
push rsi
push rdi
push r14
sub rsp, 0x478
mov rax, qword [0x1406836b8]
xor rax, rsp
mov qword [rsp + 0x460], rax
xor r14d, r14d
mov edi, r9d
mov rbp, r8
mov rsi, rdx
test rcx, rcx
je 0x1401a3f73
test rdx, rdx
je 0x1401a3f73
test r8, r8
je 0x1401a3f73
cmp r9d, 0x104
jb 0x1401a3f73
mov r8, rcx
mov qword [rsp + 0x470], rbx
lea rcx, [rsp + 0x40]
mov edx, 0x104
lea r9, [r14 - 1]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
lea rdx, [rsp + 0x40]
cmp r14w, word [rsp + 0x40]
je 0x1401a3ead
mov ecx, r14d
inc ecx
cmp ecx, 0x104
je 0x1401a3ead
cmp r14w, word [rdx]
lea rax, [rdx + 2]
cmove rax, rdx
mov rdx, rax
cmp r14w, word [rax]
jne 0x1401a3e52
add rax, 0xfffffffffffffffe
lea r9, [rsp + 0x40]
cmp rdx, r9
lea r8, [rsp + 0x40]
mov r9d, 0x5c
cmova r8, rax
movzx edx, word [r8]
cmp r9w, dx
je 0x1401a3ead
lea eax, [rcx + 2]
cmp eax, 0x104
ja 0x1401a3ead
cmp r14w, dx
je 0x1401a3eaa
add r8, 2
mov dword [r8], r9d
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rsi
lea r9, [0x140450dc0]
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rcx, [rsp + 0x250]
mov edx, edi
call sym.ErrorReportClient.exe_SfCchPrintF
mov ebx, r14d
nop dword [rax + rax]
lea rcx, [rsp + 0x250]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1401a3f5a
and eax, 0x10
test al, al
je 0x1401a3f5a
lea rax, [rsp + 0x40]
inc ebx
mov dword [rsp + 0x30], ebx
lea r9, str._s_s_lu
mov qword [rsp + 0x28], rsi
lea rcx, [rsp + 0x250]
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov edx, edi
call sym.ErrorReportClient.exe_SfCchPrintF
cmp ebx, 0x10000
jb 0x1401a3ee0
mov eax, 0x80004005
mov rbx, qword [rsp + 0x470]
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.14039bbb0
add rsp, 0x478
pop r14
pop rdi
pop rsi
pop rbp
ret
mov r8d, edi
lea rdx, [rsp + 0x250]
mov rcx, rbp
call qword [sym.imp.SHLWAPI.dll_StrCpyNW]
mov eax, r14d
jmp 0x1401a3f35
mov eax, 0x80070057
jmp 0x1401a3f3d
Function at 0x1401a4170
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
push rbx
push rdi
push r14
sub rsp, 0x490
mov rax, qword [0x1406836b8]
xor rax, rsp
mov qword [rsp + 0x470], rax
movsxd rbx, edx
mov rdi, r8
mov r14, rcx
test rcx, rcx
je 0x1401a4305
test edx, edx
je 0x1401a4305
test r8, r8
je 0x1401a4305
mov qword [r11 - 0x20], rbp
lea rax, str.Shared_Information
mov qword [rsp + 0x28], rax
lea r9, str._s_s
lea rax, str.SoftwareMAGIX
mov qword [r11 - 0x28], rsi
xor ebp, ebp
mov qword [rsp + 0x20], rax
mov word [rcx], bp
xor r8d, r8d
lea rcx, [r11 - 0x248]
mov dword [rsp + 0x30], 0x208
mov edx, 0x104
mov esi, 0x80004005
call sym.ErrorReportClient.exe_SfCchPrintF
lea rax, [rsp + 0x38]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x260]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1401a42d7
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x40]
lea rax, [rsp + 0x50]
xor r8d, r8d
mov rdx, rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1401a42cc
lea rax, [rsp + 0x50]
mov rdx, 0xffffffffffffffff
nop word [rax + rax]
inc rdx
cmp word [rax + rdx*2], bp
jne 0x1401a4270
test edx, edx
je 0x1401a42cc
lea eax, [rdx - 1]
mov r8d, 0x5c
cmp r8w, word [rsp + rax*2 + 0x50]
je 0x1401a42aa
mov eax, edx
inc edx
mov word [rsp + rax*2 + 0x50], r8w
mov eax, edx
add rax, rax
cmp rax, 0x20a
jae 0x1401a430c
mov word [rsp + rax + 0x50], bp
cmp edx, ebx
jae 0x1401a42cc
test ebx, ebx
jle 0x1401a42ca
mov rdx, rbx
lea r8, [rsp + 0x50]
mov r9, 0xffffffffffffffff
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
mov esi, ebp
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbp, qword [rsp + 0x488]
mov eax, esi
mov rsi, qword [rsp + 0x480]
mov rcx, qword [rsp + 0x470]
xor rcx, rsp
call fcn.14039bbb0
add rsp, 0x490
pop r14
pop rdi
pop rbx
ret
mov eax, 0x80070057
jmp 0x1401a42e9
call fcn.14039c530
int3
Function at 0x1401a7700
Capabilities:
Read .ini file

Disassembly:
push rbx
push r14
sub rsp, 0x358
mov rax, qword [0x1406836b8]
xor rax, rsp
mov qword [rsp + 0x340], rax
mov rbx, rdx
mov r14, rcx
xor edx, edx
call sym.ErrorReportClient.exe_SfDoesFileExist
test eax, eax
jne 0x1401a7738
mov eax, 0x8004e007
jmp 0x1401a780a
mov qword [rsp + 0x380], rbp
mov qword [rsp + 0x350], rdi
test rbx, rbx
je 0x1401a7757
xor eax, eax
mov r8, rbx
cmp ax, word [rbx]
jne 0x1401a775e
lea r8, str.colors
mov r9, 0xffffffffffffffff
lea rcx, [rsp + 0x130]
mov edx, 0x104
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
lea rbx, [0x140450f98]
mov qword [rsp + 0x388], rsi
mov ebp, 0x1e
nop dword [rax]
mov edi, dword [rbx - 8]
cmp edi, 0x1e
ja 0x1401a77e6
mov ecx, edi
call qword [sym.imp.USER32.dll_GetSysColor]
mov rdx, qword [rbx]
lea r9, [rsp + 0x30]
xor r8d, r8d
mov qword [rsp + 0x28], r14
lea rcx, [rsp + 0x130]
mov dword [rsp + 0x20], 0x80
mov esi, eax
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x1401a77dd
xor r8d, r8d
lea rcx, [rsp + 0x30]
mov edx, esi
call sym.ErrorReportClient.exe_SfTextToColorrefTokenEx
mov esi, eax
mov edx, esi
mov ecx, edi
call sym.ErrorReportClient.exe_SfSetUIColor
add rbx, 0x10
sub rbp, 1
jne 0x1401a7790
mov rdi, qword [rsp + 0x350]
xor eax, eax
mov rsi, qword [rsp + 0x388]
mov rbp, qword [rsp + 0x380]
mov rcx, qword [rsp + 0x340]
xor rcx, rsp
call fcn.14039bbb0
add rsp, 0x358
pop r14
pop rbx
ret

Function at 0x1401a7940
Capabilities:
Read .ini file

Disassembly:
push rbx
sub rsp, 0x140
mov rax, qword [0x1406836b8]
xor rax, rsp
mov qword [rsp + 0x130], rax
mov qword [rsp + 0x28], r9
mov ebx, r8d
lea r9, [rsp + 0x30]
mov dword [rsp + 0x20], 0x80
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x1401a798e
xor r8d, r8d
lea rcx, [rsp + 0x30]
mov edx, ebx
call sym.ErrorReportClient.exe_SfTextToColorrefTokenEx
jmp 0x1401a7990
mov eax, ebx
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.14039bbb0
add rsp, 0x140
pop rbx
ret

Function at 0x1401ae170
Capabilities:
Enumerate gui resources

Disassembly:
sub rsp, 0x148
mov rax, qword [0x1406836b8]
xor rax, rsp
mov qword [rsp + 0x130], rax
mov qword [rsp + 0x28], rcx
lea rdx, [rsp + 0x20]
lea rcx, [0x1401b01f0]
mov dword [rsp + 0x20], 0
call qword [sym.imp.USER32.dll_EnumWindows]
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.14039bbb0
add rsp, 0x148
ret
Function at 0x1401afa30
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rdi, r8
xor ebx, ebx
mov rsi, rcx
lea r8d, [rbx + 5]
call sym.ErrorReportClient.exe_SfFindResource
mov rbp, rax
test rax, rax
je 0x1401afa86
mov rdx, rax
mov rcx, rsi
call sym.ErrorReportClient.exe_SfLoadResource
test rax, rax
je 0x1401afa86
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdx, rbp
mov rcx, rsi
mov rbx, rax
call sym.ErrorReportClient.exe_SfSizeofResource
jmp 0x1401afa88
mov eax, ebx
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov qword [rdi], rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x1401b0740
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r14
push r15
sub rsp, 0x70
mov edi, r9d
mov rsi, r8
mov r14, rdx
mov r15d, ecx
xor ebx, ebx
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x60], rbx
cmp dword [0x14068c074], ebx
jne 0x1401b081e
mov eax, dword [0x14068c070]
test eax, eax
jne 0x1401b081e
mov r9d, dword [0x14068c07c]
test r9d, r9d
je 0x1401b07b2
lea rcx, str.IsolationAware_function_called_after_IsolationAwareCleanup_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x14068c070]
mov r9d, dword [0x14068c07c]
test eax, eax
jne 0x1401b081e
test r9d, r9d
jne 0x1401b07c4
call fcn.14018bc50
test eax, eax
je 0x1401b07da
lea rdx, [rsp + 0x60]
mov rcx, qword [section..data]
call qword [sym.imp.KERNEL32.dll_ActivateActCtx]
test eax, eax
jne 0x1401b081e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [rax - 0x7e]
cmp ecx, 1
jbe 0x1401b0814
cmp eax, 0x78
je 0x1401b0814
cmp eax, 1
je 0x1401b0814
cmp eax, 0x32
je 0x1401b0814
xor eax, eax
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop r15
ret
mov dword [0x14068c070], 1
mov rax, qword [rsp + 0xd8]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0xd0]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0xc8]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0xc0]
mov qword [rsp + 0x40], rax
mov eax, dword [rsp + 0xb8]
mov dword [rsp + 0x38], eax
mov eax, dword [rsp + 0xb0]
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0xa8]
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0xa0]
mov dword [rsp + 0x20], eax
mov r9d, edi
mov r8, rsi
mov rdx, r14
mov ecx, r15d
call qword [sym.imp.USER32.dll_CreateWindowExW]
mov rsi, rax
mov qword [rsp + 0x68], rax
cmp dword [0x14068c074], 0
je 0x1401b08aa
cmp dword [0x14068c070], 0
jne 0x1401b08d8
mov edi, ebx
test rsi, rsi
sete dil
test edi, edi
je 0x1401b08bf
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_DeactivateActCtx]
test edi, edi
je 0x1401b08d8
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rsi
jmp 0x1401b07f9
Function at 0x1401b08e0
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rdi, rcx
xor ebx, ebx
mov word [rsp + 0x20], bx
mov qword [rsp + 0x48], rbx
cmp dword [0x14068c074], ebx
jne 0x1401b099c
mov eax, dword [0x14068c070]
test eax, eax
jne 0x1401b099c
mov edx, dword [0x14068c07c]
test edx, edx
je 0x1401b093b
lea rcx, str.IsolationAware_function_called_after_IsolationAwareCleanup_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x14068c070]
mov edx, dword [0x14068c07c]
test eax, eax
jne 0x1401b099c
test edx, edx
jne 0x1401b094c
call fcn.14018bc50
test eax, eax
je 0x1401b0962
lea rdx, [rsp + 0x48]
mov rcx, qword [section..data]
call qword [sym.imp.KERNEL32.dll_ActivateActCtx]
test eax, eax
jne 0x1401b099c
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [rax - 0x7e]
cmp ecx, 1
jbe 0x1401b0992
cmp eax, 0x78
je 0x1401b0992
cmp eax, 1
je 0x1401b0992
cmp eax, 0x32
je 0x1401b0992
movzx eax, bx
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
mov dword [0x14068c070], 1
mov rcx, rdi
call qword [sym.imp.USER32.dll_RegisterClassW]
movzx esi, ax
mov word [rsp + 0x20], ax
cmp dword [0x14068c074], 0
je 0x1401b09bf
cmp dword [0x14068c070], 0
jne 0x1401b09ed
mov edi, ebx
test si, si
sete dil
test edi, edi
je 0x1401b09d4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rdx, qword [rsp + 0x48]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_DeactivateActCtx]
test edi, edi
je 0x1401b09ed
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
movzx eax, si
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x1401b31b0
Capabilities:
Get file attributes

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x250
mov rax, qword [0x1406836b8]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rbx, rdx
mov qword [rcx + 0x20], r8
mov rdi, rcx
lea rdx, [rsp + 0x30]
mov rcx, rbx
mov r8d, 0x104
mov esi, r9d
call sym.ErrorReportClient.exe_SfGetPathNameFromFilePath
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
lea r8, [rsp + 0x30]
mov rdx, rbx
mov rcx, rdi
test al, 0x10
je 0x1401b3213
xor r9d, r9d
mov dword [rsp + 0x20], esi
call fcn.1401b42d0
jmp 0x1401b321b
mov r9d, esi
call fcn.1401b3970
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.14039bbb0
add rsp, 0x250
pop rdi
pop rsi
pop rbx
ret
Function at 0x1401b42d0
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push rbx
push rbp
push r12
push r13
push r14
sub rsp, 0x6d0
mov rax, qword [0x1406836b8]
xor rax, rsp
mov qword [rsp + 0x6a0], rax
mov r13d, r9d
mov r14, r8
mov r12, rdx
mov rbp, rcx
call fcn.1401b3ff0
mov ebx, eax
test eax, eax
js 0x1401b4499
mov qword [rsp + 0x6c0], rdi
lea rcx, [rsp + 0x490]
mov r9, 0xffffffffffffffff
mov qword [rsp + 0x6b8], r15
mov r8, r12
mov edx, 0x104
mov edi, 1
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
mov edx, 0x104
lea rcx, [rsp + 0x490]
call sym.ErrorReportClient.exe_SfAddSlashToPathName
mov r9, 0xffffffffffffffff
lea r8, [0x140450db0]
mov edx, 0x104
lea rcx, [rsp + 0x490]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncat_s]
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x490]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov r15, rax
cmp rax, 0xffffffffffffffff
je 0x1401b447e
mov qword [rsp + 0x6c8], rsi
mov esi, dword [rsp + 0x720]
test edi, edi
je 0x1401b4476
test ebx, ebx
js 0x1401b4476
lea rdx, [0x140450b08]
lea rcx, [rsp + 0x5c]
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x1401b4461
lea rdx, [0x140450db8]
lea rcx, [rsp + 0x5c]
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x1401b4461
mov r9, 0xffffffffffffffff
lea rcx, [rsp + 0x280]
mov r8, r12
mov edx, 0x104
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
mov edx, 0x104
lea rcx, [rsp + 0x280]
call sym.ErrorReportClient.exe_SfAddSlashToPathName
mov r9, 0xffffffffffffffff
lea r8, [rsp + 0x5c]
mov edx, 0x104
lea rcx, [rsp + 0x280]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncat_s]
test byte [rsp + 0x30], 0x10
lea rdx, [rsp + 0x280]
mov r8, r14
mov rcx, rbp
je 0x1401b4457
lea r9d, [r13 + 1]
mov dword [rsp + 0x20], esi
call fcn.1401b42d0
jmp 0x1401b445f
mov r9d, esi
call fcn.1401b3970
mov ebx, eax
lea rdx, [rsp + 0x30]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
mov edi, eax
jmp 0x1401b43a1
mov rsi, qword [rsp + 0x6c8]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_FindClose]
mov r15, qword [rsp + 0x6b8]
mov eax, ebx
mov rdi, qword [rsp + 0x6c0]
mov rcx, qword [rsp + 0x6a0]
xor rcx, rsp
call fcn.14039bbb0
add rsp, 0x6d0
pop r14
pop r13
pop r12
pop rbp
pop rbx
ret
Function at 0x1401b44c0
Capabilities:
Enumerate files on windows
Enumerate files recursively
Get file size

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x6d0
mov rax, qword [0x1406836b8]
xor rax, rsp
mov qword [rsp + 0x6c0], rax
xor r12d, r12d
mov r14d, r8d
mov r15, rdx
mov rbp, rcx
mov r8, rdx
lea rcx, [rsp + 0x4b0]
mov edx, 0x104
mov ebx, 1
lea r9, [r12 - 1]
mov edi, r12d
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
mov edx, 0x104
lea rcx, [rsp + 0x4b0]
call sym.ErrorReportClient.exe_SfAddSlashToPathName
lea r9, [r12 - 1]
mov edx, 0x104
lea r8, [0x140450db0]
lea rcx, [rsp + 0x4b0]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncat_s]
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x4b0]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x1401b468d
test ebx, ebx
je 0x1401b468d
lea rdx, [0x140450b08]
lea rcx, [rsp + 0x7c]
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x1401b4678
lea rdx, [0x140450db8]
lea rcx, [rsp + 0x7c]
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x1401b4678
mov r9, 0xffffffffffffffff
lea rcx, [rsp + 0x2a0]
mov r8, r15
mov edx, 0x104
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
mov edx, 0x104
lea rcx, [rsp + 0x2a0]
call sym.ErrorReportClient.exe_SfAddSlashToPathName
mov r9, 0xffffffffffffffff
lea r8, [rsp + 0x7c]
mov edx, 0x104
lea rcx, [rsp + 0x2a0]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncat_s]
test byte [rsp + 0x50], 0x10
je 0x1401b4621
lea r8d, [r14 + 1]
mov rcx, rbp
lea rdx, [rsp + 0x2a0]
call fcn.1401b44c0
add rdi, rax
lea rdx, [rsp + 0x50]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
mov ebx, eax
jmp 0x1401b4564
mov qword [rsp + 0x30], r12
lea rcx, [rsp + 0x2a0]
mov dword [rsp + 0x28], 0x80
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], 3
mov edx, 0x80000000
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1401b4678
lea rdx, [rsp + 0x44]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [rsp + 0x40], eax
mov rcx, rbx
add rdi, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rsp + 0x50]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
mov ebx, eax
jmp 0x1401b4564
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rax, rdi
mov rcx, qword [rsp + 0x6c0]
xor rcx, rsp
call fcn.14039bbb0
add rsp, 0x6d0
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1401b4f00
Capabilities:
Get common file path
Set current directory

Disassembly:
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x6a0
mov rax, qword [0x1406836b8]
xor rax, rsp
mov qword [rsp + 0x690], rax
mov r15, r9
mov r14, r8
mov rsi, rdx
mov rbx, rcx
mov qword [rsp + 0x40], rdx
mov qword [rsp + 0x48], r8
mov qword [rsp + 0x50], r9
mov r12, qword [rsp + 0x700]
mov qword [rsp + 0x58], r12
xor r13d, r13d
mov qword [rsp + 0x38], r13
lea r9, [r13 - 1]
mov r8, rcx
mov edx, 0x104
lea rcx, [rsp + 0x270]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
lea rdx, [rsp + 0x480]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov r8d, 0x104
lea rdx, [rsp + 0x60]
mov rcx, rbx
call sym.ErrorReportClient.exe_SfGetPathNameFromFilePath
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
nop
mov ecx, 0x8001
call qword [sym.imp.KERNEL32.dll_SetErrorMode]
or eax, 0x8001
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetErrorMode]
mov ebx, 0x80004005
mov dword [rsp + 0x30], ebx
lea edx, [r13 + 1]
lea rcx, [rsp + 0x270]
call qword [sym.imp.ole32.dll_CoLoadLibrary]
mov rdi, rax
mov qword [rsp + 0x38], rax
test rax, rax
cmovne ebx, r13d
mov dword [rsp + 0x30], ebx
jmp 0x1401b500b
lea rcx, [rsp + 0x480]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test ebx, ebx
js 0x1401b5042
mov qword [rsp + 0x20], r12
mov r9, r15
mov r8, r14
mov rdx, rsi
mov rcx, rdi
call sym.ErrorReportClient.exe_SfDllCreateInstance
mov ebx, eax
test eax, eax
jns 0x1401b5042
mov rcx, rdi
call qword [sym.imp.ole32.dll_CoFreeLibrary]
mov eax, ebx
mov rcx, qword [rsp + 0x690]
xor rcx, rsp
call fcn.14039bbb0
add rsp, 0x6a0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
Function at 0x1401bc8d0
Capabilities:
Extract resource via kernel32 functions
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x40
mov ebp, r9d
mov r14d, r8d
lea r9, [rsp + 0x30]
mov r8d, 2
call sym.ErrorReportClient.exe_SfLoadResourceCustom
mov rdi, rax
test rax, rax
je 0x1401bcabe
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x1401bcabe
cmp dword [rax], 0x28
jne 0x1401bcabe
mov eax, dword [rsp + 0x30]
xor esi, esi
test eax, eax
je 0x1401bc960
mov edx, eax
lea ecx, [rsi + 2]
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov rsi, rax
test rax, rax
je 0x1401bc960
mov r8d, dword [rsp + 0x30]
mov rdx, rbx
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeResource]
test rsi, rsi
je 0x1401bcabe
movsxd rdi, dword [rsi]
mov eax, r14d
shr eax, 0x10
add rdi, rsi
movzx ecx, al
movzx edx, r14w
and edx, 0xffffff00
movzx eax, r14b
shl eax, 0x10
or edx, ecx
or edx, eax
mov eax, ebp
shr eax, 0x10
movzx ecx, al
mov dword [rdi], edx
movzx edx, bp
and edx, 0xffffff00
movzx eax, bpl
shl eax, 0x10
or edx, ecx
or edx, eax
mov dword [rdi + 0x1c], edx
mov edx, dword [rsp + 0x70]
mov eax, edx
shr eax, 0x10
movzx ecx, al
movzx r8d, dx
and r8d, 0xffffff00
movzx eax, dl
mov edx, dword [rsp + 0x78]
or r8d, ecx
shl eax, 0x10
or r8d, eax
mov eax, edx
mov dword [rdi + 0x20], r8d
shr eax, 0x10
movzx ecx, al
movzx r8d, dx
and r8d, 0xffffff00
movzx eax, dl
mov edx, dword [rsp + 0x80]
or r8d, ecx
shl eax, 0x10
or r8d, eax
mov eax, edx
mov dword [rdi + 0x3c], r8d
shr eax, 0x10
movzx ecx, al
movzx r8d, dx
and r8d, 0xffffff00
movzx eax, dl
mov edx, dword [rsp + 0x88]
or r8d, ecx
shl eax, 0x10
or r8d, eax
mov eax, edx
mov dword [rdi + 0x2c], r8d
shr eax, 0x10
movzx ecx, al
movzx r8d, dx
and r8d, 0xffffff00
movzx eax, dl
or r8d, ecx
shl eax, 0x10
or r8d, eax
xor ecx, ecx
mov dword [rdi + 0x28], r8d
call qword [sym.imp.USER32.dll_GetDC]
lea r9, [rdi + 0x40]
mov dword [rsp + 0x28], 0
mov rcx, rax
mov qword [rsp + 0x20], rsi
mov r8d, 4
mov rdx, rsi
mov rbx, rax
call qword [sym.imp.GDI32.dll_CreateDIBitmap]
mov rdx, rbx
xor ecx, ecx
mov rdi, rax
call qword [sym.imp.USER32.dll_ReleaseDC]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GlobalHandle]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GlobalHandle]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov rax, rdi
jmp 0x1401bcac0
xor eax, eax
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 0x1401bd240
Capabilities:
Clear file content
Extract resource via kernel32 functions
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x50
mov r14, r9
mov rbx, rcx
call sym.ErrorReportClient.exe_SfFindResource
mov rdi, rax
test rax, rax
jne 0x1401bd279
mov eax, 0x8004e00a
mov rbx, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x50
pop r14
ret
mov qword [rsp + 0x60], rbp
mov rdx, rdi
mov rcx, rbx
mov qword [rsp + 0x68], rsi
call sym.ErrorReportClient.exe_SfLoadResource
test rax, rax
je 0x1401bd345
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdx, rdi
mov rcx, rbx
mov rbp, rax
call sym.ErrorReportClient.exe_SfSizeofResource
mov esi, eax
test rbp, rbp
je 0x1401bd345
test eax, eax
je 0x1401bd345
xor ebx, ebx
xor r9d, r9d
mov qword [rsp + 0x30], rbx
mov edx, 0xc0000000
mov dword [rsp + 0x28], 0x80
mov rcx, r14
mov dword [rsp + 0x20], 4
lea r8d, [rbx + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
lea rcx, [rax - 1]
cmp rcx, 0xfffffffffffffffd
ja 0x1401bd33e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], rbx
mov r8d, esi
mov rdx, rbp
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1401bd323
cmp dword [rsp + 0x40], esi
je 0x1401bd328
mov ebx, 0x8004e009
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
jmp 0x1401bd34a
mov eax, 0x8004e007
jmp 0x1401bd34a
mov eax, 0x8000ffff
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
mov rbx, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x50
pop r14
ret

Function at 0x1401be770
Capabilities:
Extract resource via kernel32 functions
Identify system language via api

Disassembly:
mov r8, rcx
cmp rcx, 0x10000
jb 0x1401be780
mov rax, rcx
ret
lea r9, [0x14067b600]
xor eax, eax
mov rdx, r9
nop dword [rax]
mov ecx, dword [rdx]
cmp r8, rcx
je 0x1401be7b5
inc eax
add rdx, 0x10
cmp eax, 0x39
jb 0x1401be790
mov rdx, qword [0x14067b608]
mov rcx, qword [0x14068c270]
jmp sym.ErrorReportClient.exe_wchar_t_const____ptr64___cdecl_SfGetString_struct_HSFLANG______ptr64__wchar_t_const__const___ptr64_const____ptr64_
mov rcx, qword [0x14068c270]
mov edx, eax
add rdx, rdx
mov rdx, qword [r9 + rdx*8 + 8]
jmp sym.ErrorReportClient.exe_wchar_t_const____ptr64___cdecl_SfGetString_struct_HSFLANG______ptr64__wchar_t_const__const___ptr64_const____ptr64_