joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001d70
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
push rbx
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rcx, rax
lea rdx, [rsp + 0x30]
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov rbx, rax
call fcn.140002100
test eax, eax
jne 0x140001ebf
mov ecx, dword [rsp + 0x30]
xor r8d, r8d
mov rdx, rbx
call sym.run_w_py3.6_win_amd64.exe_PySys_SetArgvEx
mov rax, qword [0x14000c268]
test rax, rax
jne 0x140001e13
mov r10, qword [0x14000c228]
mov rbx, qword [0x14000c320]
test r10, r10
je 0x140001de2
nop dword [rax + rax]
cmp rbx, qword [r10]
je 0x140001ec5
mov r10, qword [r10 + 0x10]
test r10, r10
jne 0x140001dd0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rdx, [0x14000b858]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp rax, qword [sym.imp.KERNEL32.dll_GetModuleHandleExW]
lea rcx, [0x140004310]
cmove rax, rcx
mov qword [0x14000c268], rax
lea rcx, [0x14000b1fc]
call rax
mov rbx, rax
test rax, rax
je 0x140001e6a
xor r8d, r8d
lea rcx, str._MessageBox
xor edx, edx
call sym.run_w_py3.6_win_amd64.exe_PyCFunction_NewEx
mov rdx, qword [str._MessageBox]
mov r8, rax
mov rcx, rbx
call sym.run_w_py3.6_win_amd64.exe_PyObject_SetAttrString
xor r8d, r8d
lea rcx, str._SHGetSpecialFolderPath
xor edx, edx
call sym.run_w_py3.6_win_amd64.exe_PyCFunction_NewEx
mov rdx, qword [str._SHGetSpecialFolderPath]
mov r8, rax
mov rcx, rbx
call sym.run_w_py3.6_win_amd64.exe_PyObject_SetAttrString
call fcn.140002a90
lea rcx, [0x14000b3b8]
mov ebx, eax
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
je 0x140001eb8
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea rdx, [0x14000b3b0]
call sym.run_w_py3.6_win_amd64.exe_Py_FdIsInteractive
test eax, eax
je 0x140001eb8
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
xor r8d, r8d
lea rdx, [0x14000b3a8]
mov rcx, rax
call sym.run_w_py3.6_win_amd64.exe_PyRun_InteractiveLoopFlags
call sym.run_w_py3.6_win_amd64.exe_Py_Finalize
mov eax, ebx
add rsp, 0x40
pop rbx
ret
mov eax, dword [r10 + 0x20]
lea rcx, [0x14000b578]
mov r9, qword [r10 + 8]
mov r8, rbx
xor edx, edx
mov dword [rsp + 0x20], eax
call fcn.140004870
mov rcx, qword [r10]
lea rdx, [0x14000b858]
call fcn.1400031f0
jmp 0x140001e0c
Function at 0x140002b6c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140002bb6
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140002bb6
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140002bb6
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140002bb6
cmp dword [rcx + 0x84], 0xe
jbe 0x140002bb6
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140002bb8
xor al, al
add rsp, 0x28
ret
Function at 0x140004470
Capabilities:
Log keystrokes via polling

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
push rdi
sub rsp, 0x30
mov qword [rax - 0x18], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rbx, rdx
xor esi, esi
test rdx, rdx
je 0x140004596
cmp byte [0x1400615b0], sil
jne 0x140004596
cmp dword [rdx + 8], 0x100
jne 0x14000454d
cmp qword [rdx + 0x10], 0x54
jne 0x14000451a
lea ecx, [rsi + 0x11]
call qword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x14000451a
mov rcx, qword [0x1400617d0]
test rcx, rcx
je 0x14000451a
mov qword [rsp + 0x40], rsi
mov rax, qword [rcx]
lea r8, [rsp + 0x40]
xor edx, edx
mov rax, qword [rax + 0x28]
call qword [case.0x140031310.0]
mov rcx, qword [rsp + 0x40]
test rcx, rcx
jne 0x1400044fd
mov dil, sil
jmp 0x140004508
mov dil, byte [rcx + 8]
call qword [sym.imp.mso40uiWin32Client.dll_Ordinal_1807]
nop
test dil, dil
sete dl
lea rcx, [0x1400617d0]
call fcn.140002478
lea rcx, [0x140061590]
call fcn.1400047fc
test rax, rax
je 0x140004596
test byte [rax + 0xc2], 4
je 0x140004596
mov rcx, qword [0x1400617e8]
mov rax, qword [rcx]
mov rdx, rbx
mov rax, qword [rax + 0x40]
call qword [case.0x140031310.0]
jmp 0x140004598
cmp dword [rdx + 8], 0x104
jne 0x14000451a
mov ecx, SafeArrayGetLBound
call qword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x14000451a
mov rax, qword [rbx + 0x10]
sub rax, 0x24
je 0x140004588
sub rax, 1
je 0x140004581
sub rax, 2
jne 0x14000451a
lea edx, [rax + 2]
jmp 0x14000458d
mov edx, 1
jmp 0x14000458d
mov edx, 6
call fcn.14000435c
mov al, 1
jmp 0x140004598
xor al, al
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
mov ecx, dword [rdx + 8]
lea eax, [rcx - 0x100]
test eax, 0xfffffffa
jne 0x1400177cc
cmp ecx, 0x105
jne 0x140004470
xor al, al
ret
Function at 0x140006b70
Capabilities:
Delete registry key

Disassembly:
push rdi
sub rsp, 0x50
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x68], rsi
mov rsi, rdx
mov rbx, rcx
mov rdi, qword [rcx + 0x10]
test rdi, rdi
je 0x140006c11
mov rbx, qword [rcx]
cmp qword [rdi], 0
je 0x140006bea
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140006c0a
lea rdx, str.RegDeleteKeyTransactedW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140006c0a
and qword [rsp + 0x28], 0
mov rdx, qword [rdi]
mov qword [rsp + 0x20], rdx
xor r9d, r9d
xor r8d, r8d
mov rdx, rsi
mov rcx, rbx
call qword [case.0x140031310.0]
jmp 0x140006bfa
cmp dword [rdi + 8], 0
je 0x140006c0a
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
nop
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
mov eax, 1
jmp 0x140006bfa
cmp byte [0x14005bb98], 0
jne 0x140006c60
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140006c4c
nop dword [rax]
lea rdx, str.RegDeleteKeyExW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r10, rax
mov qword [0x14005bba0], rax
jmp 0x140006c53
mov r10, qword [0x14005bba0]
mov eax, 1
mov byte [0x14005bb98], al
jmp 0x140006c67
mov r10, qword [0x14005bba0]
mov rdx, rsi
mov rcx, qword [rbx]
test r10, r10
je 0x140006bf3
xor r9d, r9d
mov r8d, dword [rbx + 8]
mov rax, r10
call qword [case.0x140031310.0]
jmp 0x140006bfa
Function at 0x140007760
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbx
push rsi
push rdi
push r14
push r15
sub rsp, 0x490
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov rax, qword [0x140058010]
xor rax, rsp
mov qword [rsp + 0x480], rax
mov r15, r9
mov r14, r8
mov rbx, rdx
xor edi, edi
mov qword [rsp + 0x60], rdi
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x70], rdi
xor edx, edx
lea r8d, [rdi + 0x60]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rsi, rax
mov qword [rsp + 0x38], rax
test rax, rax
jne 0x1400077ed
xor edx, edx
lea r8d, [rdi + 2]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rsi, rax
mov qword [rsp + 0x38], rax
test rax, rax
jne 0x1400077ed
call fcn.140005c20
mov ebx, eax
jmp 0x1400078f8
mov r8, r15
mov rdx, r14
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
test rax, rax
jne 0x14000780e
call fcn.140005c20
jmp 0x1400078e7
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov r14, rax
mov qword [rsp + 0x40], rax
test rax, rax
je 0x140007804
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
mov dword [rsp + 0x30], eax
inc eax
cmp eax, ebx
jae 0x140007849
mov ebx, 0x8007000e
jmp 0x1400078e9
mov ecx, eax
test eax, eax
je 0x14000787b
xor edx, edx
or rax, 0xffffffffffffffff
div rcx
cmp rax, 2
jb 0x140007930
lea rdx, [rcx + rcx]
cmp rdx, 0x400
jbe 0x14000787b
lea rcx, [rsp + 0x70]
call fcn.140005bf4
jmp 0x140007885
lea rax, [rsp + 0x78]
mov qword [rsp + 0x70], rax
jmp 0x140007897
cmp qword [rsp + 0x70], rdi
je 0x14000783f
mov dword [rsp + 0x28], ebx
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r9d, ebx
mov r8, r14
xor edx, edx
lea ecx, [rdx + 3]
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x140007804
mov ecx, eax
mov rax, qword [rsp + 0x70]
mov word [rax + rcx*2], di
mov r8d, dword [rsp + 0x4e0]
mov rdx, qword [rsp + 0x70]
lea rcx, [rsp + 0x48]
call fcn.1400075a4
mov ebx, eax
test rsi, rsi
je 0x1400078f8
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop
lea rax, [rsp + 0x78]
cmp qword [rsp + 0x70], rax
je 0x14000790f
lea rcx, [rsp + 0x70]
call fcn.140005bd0
nop
mov eax, ebx
mov rcx, qword [rsp + 0x480]
xor rcx, rsp
call fcn.140037600
add rsp, 0x490
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
mov ecx, 0x80070216
call fcn.140006880
int3
Function at 0x1400080c0
Capabilities:
Accept command line arguments

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rcx, rax
lea rdx, [rsp + 0x58]
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov r8d, dword [rsp + 0x58]
mov rsi, rax
cmp r8d, 3
jge 0x140008112
mov dword [0x1400615ac], 5
xor eax, eax
jmp 0x14000824b
xor r14d, r14d
mov ecx, r14d
lea r15d, [r14 + 1]
test r8d, r8d
jle 0x140008139
mov rdx, rsi
mov rax, qword [rdx]
cmp word [rax], r14w
je 0x14000810b
add ecx, r15d
add rdx, 8
cmp ecx, r8d
jl 0x140008124
mov r8, qword [rsi + 8]
lea rbx, [rdi + 0x410]
or r12, 0xffffffffffffffff
mov r13d, 0x104
mov r9, r12
mov edx, r13d
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
mov rcx, rbx
call qword [sym.imp.Mso30Win32Client.dll_Ordinal_1492]
mov r8, qword [rsi + 0x10]
mov r9, r12
mov edx, r13d
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
lea rbp, [rdi + 0x208]
mov ebx, r14d
test rdi, rdi
je 0x14000822a
test rbp, rbp
je 0x14000822a
lea r13, str.Microsoft_Office
mov r8d, r15d
mov rdx, r13
mov rcx, rdi
call qword [sym.imp.Mso30Win32Client.dll_Ordinal_538]
mov rdx, rax
test rax, rax
je 0x1400081d2
cmp rdi, rax
jne 0x1400081d2
mov rcx, r12
inc rcx
cmp word [r13 + rcx*2], r14w
jne 0x1400081bb
movsxd rax, ecx
mov ebx, r15d
lea rcx, [rdx + rax*2]
jmp 0x14000820c
lea r13, [0x140040e58]
mov r8d, r15d
mov rdx, r13
mov rcx, rdi
call qword [sym.imp.Mso30Win32Client.dll_Ordinal_538]
mov rcx, rax
test rax, rax
je 0x14000820c
cmp rdi, rax
jne 0x14000820c
mov ebx, r15d
mov rax, r12
inc rax
cmp word [r13 + rax*2], r14w
jne 0x1400081fb
cdqe
lea rcx, [rcx + rax*2]
test ebx, ebx
mov r8, rdi
mov r13d, 0x104
mov r9, r12
cmovne r8, rcx
mov edx, r13d
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
cmp dword [rsp + 0x58], 4
jl 0x140008248
mov r8, qword [rsi + 0x18]
lea rcx, [rdi + 0x1660]
mov r9, r12
mov rdx, r13
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
mov eax, r15d
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x140008834
Capabilities:
Reference http user-agent string

Disassembly:
push rbp
push rdi
push r14
sub rsp, 0x880
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x878], rbx
mov qword [rbp + 0x880], rsi
mov rax, qword [0x140058010]
xor rax, rbp
mov qword [rbp + 0x840], rax
lea rbx, [rcx + 0x618]
xor esi, esi
cmp si, word [rbx]
jne 0x140008932
lea r8, [rbp]
mov dword [rbp], 0x824
lea rdx, [rbp + 0x10]
xor ecx, ecx
call qword [sym.imp.urlmon.dll_ObtainUserAgentString]
or r14, 0xffffffffffffffff
test eax, eax
js 0x14000891a
lea rcx, [rbp + 0x10]
mov rax, r14
inc rax
cmp byte [rcx + rax], sil
jne 0x1400088a0
lea edx, [rax + 1]
cmp edx, 0x3fffffff
jg 0x140008912
cdqe
lea rax, [rax*2 + 2]
lea rcx, [rax + 0xf]
cmp rcx, rax
ja 0x1400088d1
movabs rcx, 0xffffffffffffff0
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.140038f10
sub rsp, rcx
lea rdi, [rsp + 0x30]
test rdi, rdi
je 0x140008912
mov dword [rsp + 0x28], edx
lea r8, [rbp + 0x10]
xor edx, edx
mov word [rdi], si
mov r9d, r14d
mov qword [rsp + 0x20], rdi
lea ecx, [rdx + 3]
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
neg eax
sbb r8, r8
and r8, rdi
jmp 0x140008915
mov r8, rsi
test r8, r8
jne 0x140008921
lea r8, [0x140040de0]
mov r9, r14
mov edx, 0x824
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
mov rax, rbx
mov rcx, qword [rbp + 0x840]
xor rcx, rbp
call fcn.140037600
mov rbx, qword [rbp + 0x878]
mov rsi, qword [rbp + 0x880]
lea rsp, [rbp + 0x850]
pop r14
pop rdi
pop rbp
ret
Function at 0x14000a210
Capabilities:
Delete file

Disassembly:
push rbp
lea rbp, [rsp - 0xfc0]
mov eax, 0x10c0
call fcn.140038f10
sub rsp, rax
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x10d8], rbx
mov qword [rsp + 0x10e0], rdi
mov rax, qword [0x140058010]
xor rax, rsp
mov qword [rbp + 0xfb0], rax
mov rbx, rcx
xor edx, edx
mov r8d, 0x1048
lea rcx, [rsp + 0x60]
call sub.VCRUNTIME140.dll_memset
mov rcx, rbx
call fcn.14000aa60
xor r9d, r9d
lea r8, str.CLViewServer12
xor edx, edx
xor ecx, ecx
call qword [sym.imp.USER32.dll_FindWindowExW]
xor edi, edi
test rax, rax
jne 0x14000a30d
lea rdx, [rsp + 0x60]
call fcn.14000aeec
test al, al
je 0x14000a30d
mov rcx, qword [rsp + 0x60]
cmp di, cx
je 0x14000a30d
lea rdx, [rsp + 0x60]
or rax, 0xffffffffffffffff
inc rax
cmp word [rdx + rax*2], di
jne 0x14000a2ae
lea edx, [rax - 1]
mov eax, 0x5c
cmp ax, word [rsp + rdx*2 + 0x60]
jne 0x14000a2d0
mov word [rsp + rdx*2 + 0x60], di
mov rcx, qword [rsp + 0x60]
cmp di, cx
je 0x14000a30d
xor edx, edx
lea r8d, [rdx + 0x38]
lea rcx, [rsp + 0x28]
call sub.VCRUNTIME140.dll_memset
mov dword [rsp + 0x30], 3
mov eax, 0x414
mov word [rsp + 0x48], ax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x28]
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
nop
mov rcx, qword [rbx + 0x26c8]
test rcx, rcx
je 0x14000a327
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x140031310.0]
nop
mov rcx, qword [rbx + 0x26c0]
test rcx, rcx
je 0x14000a341
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x140031310.0]
nop
mov rcx, qword [rbx + 0x26b8]
test rcx, rcx
je 0x14000a35b
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x140031310.0]
nop
test rbx, rbx
je 0x14000a36a
mov rcx, rbx
call qword [sym.imp.Mso20Win32Client.dll_Ordinal_1110]
nop
mov rax, rbx
mov rcx, qword [rbp + 0xfb0]
xor rcx, rsp
call fcn.140037600
lea r11, [rsp + 0x10c0]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x14000ade4
Capabilities:
Create directory
Delete file

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
mov eax, 0x1090
call fcn.140038f10
sub rsp, rax
mov rax, qword [0x140058010]
xor rax, rsp
mov qword [rsp + 0x1080], rax
mov rbx, rcx
xor edx, edx
lea rcx, [rsp + 0x30]
mov r8d, 0x1048
call sub.VCRUNTIME140.dll_memset
add rbx, 0x622
xor edi, edi
cmp word [rbx], di
jne 0x14000aec8
mov rdx, rbx
call fcn.14000aeec
mov cl, al
test al, al
je 0x14000aebd
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x14000ae5a
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x14000aec1
lea r9, [rsp + 0x30]
mov dword [rsp + 0x20], 0x824
xor r8d, r8d
lea rdx, [0x140041ec8]
mov rcx, rbx
call qword [sym.imp.Mso20Win32Client.dll_Ordinal_687]
test eax, eax
setne cl
test eax, eax
je 0x14000aebd
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
xor edx, edx
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
setne cl
test eax, eax
je 0x14000aebd
mov r8d, 0x824
lea rcx, [rsp + 0x30]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetLongPathNameW]
test eax, eax
setne cl
test cl, cl
jne 0x14000aec8
mov word [rbx], di
xor eax, eax
jmp 0x14000aecb
mov rax, rbx
mov rcx, qword [rsp + 0x1080]
xor rcx, rsp
call fcn.140037600
mov rbx, qword [rsp + 0x10a8]
add rsp, 0x1090
pop rdi
ret

Function at 0x14000aeec
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
xor esi, esi
lea rdi, [0x14005bbe0]
mov word [rdx], si
mov rbx, rdx
cmp si, word [0x14005bbe0]
jne 0x14000af81
lea rcx, [0x140061590]
call fcn.14000350c
mov rcx, rax
lea r9d, [rsi + 1]
lea r8d, [rsi + 0x20]
mov rdx, rdi
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x14000afa8
or rax, 0xffffffffffffffff
inc rax
cmp word [rdi + rax*2], si
jne 0x14000af3b
test eax, eax
je 0x14000afa8
lea ecx, [rax - 1]
mov esi, 0x104
mov eax, 0x5c
cmp ax, word [rdi + rcx*2]
je 0x14000af6e
mov r8d, esi
lea rcx, [0x140041b4c]
mov rdx, rdi
call qword [sym.imp.Mso20Win32Client.dll_Ordinal_1043]
mov r8d, esi
lea rcx, str.MsOfficeHelp16_
mov rdx, rdi
call qword [sym.imp.Mso20Win32Client.dll_Ordinal_1043]
or r9, 0xffffffffffffffff
mov r8, rdi
mov edx, 0x824
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
mov al, 1
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
xor al, al
jmp 0x14000af98
Function at 0x14000afb0
Capabilities:
Delete file
Write file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 8], rcx
push rdi
sub rsp, 0x40
mov dword [rax - 0x10], 1
mov rdi, rdx
and qword [rax - 0x18], 0
mov rbx, r8
mov dword [rax - 0x20], 0x80
mov rcx, rdi
xor r9d, r9d
mov dword [rax - 0x28], 2
xor r8d, r8d
mov word [rax + 8], 0xfeff
mov edx, 0x40000000
call qword [sym.imp.Mso20Win32Client.dll_Ordinal_361]
mov qword [rbx], rax
cmp rax, 0xffffffffffffffff
jne 0x14000b007
xor al, al
jmp 0x14000b047
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x60]
mov r8d, 2
lea rdx, [rsp + 0x50]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x14000b040
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
or qword [rbx], 0xffffffffffffffff
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp qword [rbx], 0xffffffffffffffff
setne al
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret

Function at 0x14000bae4
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x30
or rax, 0xffffffffffffffff
xor ebx, ebx
inc rax
cmp word [rdx + rax*2], bx
jne 0x14000baf0
lea r8d, [rax + rax]
test r8d, r8d
jne 0x14000bb06
mov al, 1
jmp 0x14000bb1b
lea r9, [rsp + 0x48]
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
setne al
add rsp, 0x30
pop rbx
ret

Function at 0x14000bb7c
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x30
movzx eax, word [rdx]
xor r14d, r14d
mov rsi, rdx
mov rbp, rcx
mov r8d, r14d
cmp r14w, ax
je 0x14000bca0
mov rbx, r14
mov edi, r14d
cmp ax, 0x3e
ja 0x14000bc6b
movzx eax, ax
movabs rcx, 0x500000c400000000
bt rcx, rax
jae 0x14000bc6b
test r8d, r8d
je 0x14000bbee
lea r9, [rsp + 0x58]
mov qword [rsp + 0x20], r14
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14000bc9c
movzx ecx, word [rsi]
sub ecx, 0x22
je 0x14000bc38
sub ecx, 4
je 0x14000bc2a
sub ecx, 1
je 0x14000bc21
sub ecx, 0x15
je 0x14000bc13
cmp ecx, 2
jne 0x14000bc44
lea rbx, str.gt_
jmp 0x14000bc1a
lea rbx, str.lt_
mov edi, 8
jmp 0x14000bc44
lea rbx, str.apos_
jmp 0x14000bc3f
lea rbx, str.amp_
mov edi, 0xa
jmp 0x14000bc44
lea rbx, str.quot_
mov edi, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
lea r9, [rsp + 0x58]
mov qword [rsp + 0x20], r14
mov r8d, edi
mov rdx, rbx
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14000bc9c
mov r8d, 0xfffffffe
lea rdx, [rsi + 2]
add rsi, 2
add r8d, 2
movzx eax, word [rsi]
cmp r14w, ax
jne 0x14000bba7
test r8d, r8d
je 0x14000bca0
lea r9, [rsp + 0x58]
mov qword [rsp + 0x20], r14
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x14000bca0
xor al, al
jmp 0x14000bca2
mov al, 1
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x60]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret
Function at 0x14000d054
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
mov eax, 0x1a70
call fcn.140038f10
sub rsp, rax
mov rax, qword [0x140058010]
xor rax, rsp
mov qword [rsp + 0x1a60], rax
mov ebp, r9d
mov dword [rsp + 0x44], 0x104
mov rsi, r8
mov rcx, rdx
xor r14d, r14d
lea rdx, [rsp + 0x50]
mov word [r8], r14w
xor r9d, r9d
lea r8, [rsp + 0x44]
call qword [sym.imp.SHLWAPI.dll_PathCreateFromUrlW]
mov ebx, eax
test eax, eax
js 0x14000d0f0
mov dword [rsp + 0x38], 1
lea r8d, [r14 + 1]
mov qword [rsp + 0x30], r14
lea rcx, [rsp + 0x50]
mov dword [rsp + 0x28], 0x80
xor r9d, r9d
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
call qword [sym.imp.Mso20Win32Client.dll_Ordinal_361]
or rbx, 0xffffffffffffffff
mov rdi, rax
cmp rax, rbx
jne 0x14000d116
mov ebx, 0x80004005
shr ebx, 0x1f
xor bl, 1
mov al, bl
mov rcx, qword [rsp + 0x1a60]
xor rcx, rsp
call fcn.140037600
add rsp, 0x1a70
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
lea r9, [rsp + 0x40]
mov dword [rsp + 0x40], 0x1800
mov r8d, 0x1800
mov qword [rsp + 0x20], r14
lea rdx, [rsp + 0x260]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov rcx, rdi
test eax, eax
jne 0x14000d153
mov ebx, 0x80004005
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14000d0f0
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x40]
and rax, 0xfffffffffffffffe
add rax, 0xfffffffffffffffe
cmp rax, 0x1800
jae 0x14000d1ea
lea rdi, str._query_
mov word [rsp + rax + 0x260], r14w
mov rdx, rdi
lea rcx, [rsp + 0x260]
mov r8d, 1
call qword [sym.imp.Mso30Win32Client.dll_Ordinal_538]
mov rcx, rax
test rax, rax
je 0x14000d0eb
inc rbx
cmp word [rdi + rbx*2], r14w
jne 0x14000d1a0
movsxd rax, ebx
mov edx, 0x3c
lea rdi, [rcx + rax*2]
mov rcx, rdi
call qword [sym.imp.VCRUNTIME140.dll_wcschr]
test rax, rax
je 0x14000d0eb
mov r9d, ebp
mov word [rax], r14w
mov r8, rsi
mov rdx, rdi
mov ebx, r14d
call fcn.14000d35c
test al, al
jne 0x14000d0f0
jmp 0x14000d0eb
call fcn.140037b38
int3