joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14004d520
Capabilities:
Get keyboard layout

Disassembly:
mov qword [rsp + 0x20], rbx
push r12
push r14
push r15
sub rsp, 0x140
movsxd rax, dword [rcx]
movzx r12d, r9b
mov ebx, r8d
mov r15, rdx
mov r14, rcx
cmp eax, 6
ja case.0x14004d55d.1
lea rcx, [0x140000000]
mov r10d, dword [rcx + rax*4 + 0x4d74c]
add r10, rcx
jmp r10
lea rax, str.Timeout
jmp 0x14004d591
lea rax, str.Match
jmp 0x14004d591
mov qword [rsp + 0x168], rsi
mov rsi, r15
test r15, r15
jne 0x14004d5a7
lea rax, str.EndKey
mov rsi, qword [rsp + 0x168]
mov rbx, qword [rsp + 0x178]
add rsp, 0x140
pop r15
pop r14
pop r12
ret
test r12b, r12b
je 0x14004d5bd
movups xmm0, xmmword [str.EndKey:]
lea rsi, [rdx + 0xe]
sub ebx, 7
movups xmmword [rdx], xmm0
movzx eax, word [r14 + 0x6a]
mov qword [rsp + 0x160], rbp
test ax, ax
je 0x14004d5dd
xor ebp, ebp
mov word [rsi], ax
mov word [rsi + 2], bp
jmp 0x14004d6fe
cmp byte [r14 + 0x6d], 0
je 0x14004d674
xor edx, edx
mov qword [rsp + 0x170], rdi
mov r8d, 0x100
lea rcx, [rsp + 0x40]
call sub.VCRUNTIME140.dll_memset
mov byte [rsp + 0x50], 0x80
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov rdx, rax
call fcn.140018640
mov ecx, eax
call qword [sym.imp.USER32.dll_GetKeyboardLayout]
movzx ecx, byte [r14 + 0x66]
xor ebp, ebp
mov ebx, ebp
mov rdi, rax
cmp dword [0x140101c00], ebx
setne bl
xor edx, edx
call fcn.140019a60
movzx ecx, byte [r14 + 0x66]
lea r8, [rsp + 0x40]
mov qword [rsp + 0x30], rdi
mov r9, rsi
movzx edx, ax
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], 2
call qword [sym.imp.USER32.dll_ToUnicodeEx]
mov rdi, qword [rsp + 0x170]
movsxd rcx, eax
mov word [rsi + rcx*2], bp
jmp 0x14004d6fe
xor ebp, ebp
movzx ecx, bp
mov word [rsi], bp
cmp byte [r14 + 0x6c], cl
je 0x14004d698
movzx ecx, word [r14 + 0x68]
xor r9d, r9d
mov r8d, ebx
mov rdx, rsi
call fcn.140018950
movzx ecx, word [rsi]
test cx, cx
jne 0x14004d6e3
test r12b, r12b
je 0x14004d6aa
mov ecx, ebp
cmp byte [r14 + 0x6c], cl
jne 0x14004d6c5
cmp byte [r14 + 0x6c], bpl
mov r8d, ebx
movzx ecx, byte [r14 + 0x66]
mov rdx, rsi
sete r9b
call fcn.140018a00
movzx ecx, word [rsi]
test cx, cx
jne 0x14004d6e3
movzx r9d, word [r14 + 0x68]
lea r8, str.sc_03X
mov edx, ebx
mov rcx, rsi
call fcn.1400ab290
movzx ecx, word [rsi]
lea eax, [rcx - 0x61]
cmp ax, 0x19
ja 0x14004d6fe
cmp word [rsi + 2], bp
jne 0x14004d6fe
test r12b, r12b
je 0x14004d6fe
sub cx, 0x20
mov word [rsi], cx
mov rbp, qword [rsp + 0x160]
lea rax, str.EndKey
test r12b, r12b
cmovne rax, r15
jmp 0x14004d589
lea rax, [0x1400e55e0]
jmp 0x14004d591
lea rax, str.NewInput
jmp 0x14004d591
lea rax, str.Stopped
jmp 0x14004d591
lea rax, [0x1400cb664]
jmp 0x14004d591
Function at 0x14004f2a0
Capabilities:
Log keystrokes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rax, qword [rsp + 0x68]
mov r10, r9
mov r9, qword [rsp + 0x60]
mov r11, r8
mov rbx, rdx
mov qword [rsp + 0x20], rax
mov r8, r10
mov rdx, r11
mov rbp, rcx
call fcn.14005f510
mov rdi, rax
test rax, rax
je 0x14004f3ca
mov rdx, rbx
mov rcx, rax
call fcn.1400b1cb0
mov rsi, rax
test rax, rax
je 0x14004f3ca
xor edx, edx
mov rcx, rdi
xor bpl, bpl
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov ebx, eax
test eax, eax
je 0x14004f33f
cmp eax, dword [0x140105110]
je 0x14004f33f
mov rcx, rdi
call fcn.1400b22b0
test al, al
jne 0x14004f33f
mov ecx, dword [0x140105110]
mov r8d, 1
mov edx, ebx
call qword [sym.imp.USER32.dll_AttachThreadInput]
test eax, eax
setne bpl
mov rcx, rsi
call qword [sym.imp.USER32.dll_SetFocus]
test rax, rax
je 0x14004f3ad
mov rcx, qword [0x140101c20]
lea rdx, [0x1400cb6f4]
xor r9d, r9d
mov byte [rsp + 0x20], 1
lea r8, [r9 - 1]
call fcn.1400afca0
mov rax, qword [0x1400fe060]
cmp dword [rax + 0x78], 0xffffffff
jle 0x14004f3ad
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x140105110], eax
je 0x14004f399
mov rax, qword [0x1400fe060]
mov ecx, dword [rax + 0x78]
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14004f3ad
mov rcx, qword [0x1400fe060]
mov edx, 1
mov ecx, dword [rcx + 0x78]
call fcn.1400019b0
test bpl, bpl
je 0x14004f3c3
mov ecx, dword [0x140105110]
xor r8d, r8d
mov edx, ebx
call qword [sym.imp.USER32.dll_AttachThreadInput]
mov eax, 1
jmp 0x14004f40d
mov rax, qword [0x1400fe060]
lea rdx, [0x1400e0c2c]
test byte [rax + 0x140], 1
jne 0x14004f3fb
mov rcx, qword [0x140101c20]
xor r9d, r9d
mov byte [rsp + 0x20], 1
lea r8, [r9 - 1]
call fcn.1400afca0
jmp 0x14004f40d
lea r9, [0x1400cb664]
xor r8d, r8d
mov rcx, rbp
call fcn.1400465b0
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x14004ff50
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rax, qword [rsp + 0x68]
mov r10, r9
mov r9, qword [rsp + 0x60]
mov r11, r8
mov rbx, rdx
mov qword [rsp + 0x20], rax
mov r8, r10
mov rdx, r11
call fcn.14005f510
test rax, rax
je 0x14004ff96
lea rdx, str.msctls_statusbar321
mov rcx, rax
call fcn.1400b1cb0
mov rdi, rax
jmp 0x14004ff98
xor edi, edi
mov rcx, rbx
call fcn.140012eb0
mov rcx, rbx
test al, al
je 0x14004ffb5
xor edx, edx
lea r8d, [rdx + 0x10]
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_wcstol]
jmp 0x14004ffbb
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__wtoi]
mov rcx, qword [0x140103f30]
lea r9, [0x1400cb664]
mov dword [rsp + 0x68], gethostbyname
mov r8d, eax
mov rdx, rdi
mov dword [rsp + 0x60], 0xffffffff
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
jmp fcn.1400b18f0
Function at 0x140051250
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov rax, qword [rsp + 0x60]
mov rbx, qword [0x140103f30]
mov qword [rsp + 0x20], rax
call fcn.14005f510
mov rsi, rax
mov ebp, 1
test rax, rax
je 0x140051295
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea edi, [rax + 1]
jmp 0x140051297
mov edi, ebp
lea eax, [rdi - 1]
mov byte [rsp + 0x20], bpl
movsxd r8, eax
xor r9d, r9d
xor edx, edx
mov rcx, rbx
call fcn.1400afca0
cmp eax, ebp
je 0x1400512ba
xor eax, eax
jmp 0x1400513cd
xor r8d, r8d
mov edx, ebp
mov rcx, rbx
call fcn.1400016b0
test rsi, rsi
je 0x140051367
mov r8d, edi
mov qword [rsp + 0x40], r14
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.USER32.dll_GetWindowTextW]
cmp byte [rbx + 0x23], 0
movsxd r14, eax
jne 0x1400512f3
mov rsi, qword [rbx + 0x10]
jmp 0x1400512f6
mov rsi, rbx
lea rdi, [0x140107728]
cmp byte [rsi + 0x23], bpl
jne 0x140051317
test byte [rsi + 0x21], 8
je 0x140051311
mov rcx, rsi
call fcn.140001560
add rsi, 0x10
jmp 0x14005131a
mov rsi, rdi
lea rax, [r14 + r14]
mov r14, qword [rsp + 0x40]
mov qword [rsi], rax
cmp byte [rbx + 0x23], 0
jne 0x140051332
mov rsi, qword [rbx + 0x10]
jmp 0x140051335
mov rsi, rbx
cmp byte [rsi + 0x23], bpl
jne 0x14005134d
test byte [rsi + 0x21], 8
je 0x140051349
mov rcx, rsi
call fcn.140001560
lea rdi, [rsi + 0x10]
cmp qword [rdi], 2
jae 0x14005139d
xor r8d, r8d
mov edx, ebp
mov rcx, rbx
call fcn.1400016b0
xor esi, esi
mov word [rax], si
jmp 0x14005139d
mov word [rax], si
cmp byte [rbx + 0x23], sil
jne 0x140051376
mov rdi, qword [rbx + 0x10]
jmp 0x140051379
mov rdi, rbx
cmp byte [rdi + 0x23], bpl
jne 0x140051393
test byte [rdi + 0x21], 8
je 0x14005138d
mov rcx, rdi
call fcn.140001560
add rdi, 0x10
jmp 0x14005139a
lea rdi, [0x140107728]
mov qword [rdi], rsi
cmp byte [rbx + 0x23], 0
jne 0x1400513a7
mov rbx, qword [rbx + 0x10]
cmp byte [rbx + 0x23], 2
jne 0x1400513c7
cmp qword [0x140105dd8], 0
je 0x1400513c7
lea rcx, [0x140105dc0]
call fcn.140005fa0
mov ebp, eax
jmp 0x1400513cb
and byte [rbx + 0x21], 0x86
mov eax, ebp
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x140051460
Capabilities:
Enumerate gui resources

Disassembly:
push rbx
mov eax, 0x11cf0
call fcn.1400c8fe0
sub rsp, rax
xor eax, eax
mov byte [rsp + 0x1889], 1
mov rbx, rcx
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x188c], eax
lea rcx, [0x1400cb664]
mov qword [rsp + 0x18a0], rax
cmp edx, 6
mov rdx, qword [0x1400fe060]
xorps xmm0, xmm0
mov dword [rsp + 0x18a8], eax
mov qword [rsp + 0x18b0], rax
mov qword [rsp + 0x18c8], rax
cmove rax, rbx
mov qword [rsp + 0x18c0], rax
mov rax, qword [rsp + 0x11d28]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x11d20]
mov qword [rsp + 0x1048], rcx
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x20], rax
movdqa xmmword [rsp + 0x1890], xmm0
call fcn.1400b2580
test eax, eax
je 0x140051511
lea rdx, [rsp + 0x30]
lea rcx, [0x1400b1690]
call qword [sym.imp.USER32.dll_EnumWindows]
movsxd rdx, dword [rsp + 0x188c]
mov r8b, reloc.OLEAUT32.dll_SafeArrayGetElement
mov rcx, rbx
call fcn.1400014c0
mov eax, 1
add rsp, 0x11cf0
pop rbx
ret

Function at 0x140052620
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
mov eax, 0x10030
call fcn.1400c8fe0
sub rsp, rax
mov rbx, qword [0x140103f30]
mov rbp, rdx
mov rcx, rbp
lea rdx, [rsp + 0x30]
mov r8d, 0x7fff
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov byte [rsp + 0x20], 1
mov rcx, rbx
mov esi, eax
cmp eax, 0x7fff
jb 0x140052702
lea r8d, [rsi - 1]
mov r9b, 1
xor edx, edx
call fcn.1400afca0
test eax, eax
je 0x14005271f
mov qword [rsp + 0x10040], rdi
xor r8d, r8d
mov edi, 1
mov rcx, rbx
mov edx, edi
call fcn.1400016b0
mov rdx, rax
mov r8d, esi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
jne 0x1400526c0
xor r8d, r8d
mov edx, edi
mov rcx, rbx
call fcn.1400016b0
xor ecx, ecx
mov word [rax], cx
cmp byte [rbx + 0x23], 0
jne 0x1400526ca
mov rbx, qword [rbx + 0x10]
cmp byte [rbx + 0x23], 2
jne 0x1400526f2
cmp qword [0x140105dd8], 0
je 0x1400526f2
lea rcx, [0x140105dc0]
call fcn.140005fa0
mov edi, eax
mov rdi, qword [rsp + 0x10040]
jmp 0x14005271f
and byte [rbx + 0x21], 0x86
mov eax, edi
mov rdi, qword [rsp + 0x10040]
jmp 0x14005271f
test esi, esi
lea rax, [0x1400cb664]
lea rdx, [rsp + 0x30]
mov r8, rsi
cmove rdx, rax
xor r9d, r9d
call fcn.1400afca0
lea r11, [rsp + 0x10030]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsp, r11
pop rsi
ret
Function at 0x140055920
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
mov eax, 0x2260
call fcn.1400c8fe0
sub rsp, rax
mov r9, qword [0x140105d10]
lea r8, str.__s_s
movzx ebp, dl
mov qword [rsp + 0x20], rcx
mov rdi, rcx
lea r14, [rsp + 0x260]
mov edx, 0x800
lea rcx, [rsp + 0x260]
lea r15, [0x1400cb664]
call fcn.1400ab290
movsxd rbx, eax
lea esi, [rbx + 1]
cmp esi, 0x800
jg 0x1400559a5
lea rcx, [rsp + 0x262]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400559a5
mov r9, qword [0x140105d10]
jmp 0x140055a08
lea rcx, [rsp + 0x50]
call fcn.140056010
test eax, eax
je 0x140055aca
lea r9, [rsp + 0x50]
mov qword [rsp + 0x20], rdi
lea r8, str.__s_s
mov edx, 0x800
lea rcx, [rsp + 0x260]
call fcn.1400ab290
movsxd rbx, eax
lea esi, [rbx + 1]
cmp esi, 0x800
jg 0x140055aca
lea rcx, [rsp + 0x262]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140055aca
lea r9, [rsp + 0x50]
mov edi, SafeArrayAllocDescriptor
movsxd rax, esi
mov word [rsp + rbx*2 + 0x260], di
xor ebx, ebx
mov word [rsp + rax*2 + 0x260], bx
test bpl, bpl
je 0x140055a90
lea rax, [0x1400e87e0]
mov edx, 0x800
lea r8, str.__s_s
mov qword [rsp + 0x20], rax
lea rcx, [rsp + 0x1260]
call fcn.1400ab290
movsxd rsi, eax
lea ebp, [rsi + 1]
cmp ebp, 0x800
jg 0x140055a90
lea rcx, [rsp + 0x1262]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140055a90
movsxd rax, ebp
lea r14, [rsp + 0x1260]
mov word [rsp + rsi*2 + 0x1260], di
lea r15, [rsp + 0x260]
mov word [rsp + rax*2 + 0x1260], bx
mov qword [rsp + 0x48], rbx
lea rcx, [0x140105140]
mov byte [rsp + 0x40], 0
xor r9d, r9d
mov byte [rsp + 0x38], 0
mov r8, r15
mov qword [rsp + 0x30], rbx
mov rdx, r14
mov qword [rsp + 0x28], rbx
mov byte [rsp + 0x20], 0
call fcn.140047f90
test eax, eax
setne al
jmp 0x140055acc
xor al, al
lea r11, [rsp + 0x2260]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
Function at 0x140056010
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rsi
sub rsp, 0x250
mov qword [rax - 0x10], rbp
mov rsi, rcx
mov qword [rax - 0x18], rdi
xor ebp, ebp
mov edi, ebp
mov qword [rax + 0x18], rbx
nop
mov r9d, edi
lea rax, [rsp + 0x268]
or r9d, 1
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.SOFTWAREAutoHotkey
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140056169
mov rcx, qword [rsp + 0x268]
lea rax, [rsp + 0x260]
mov qword [rsp + 0x28], rax
lea rdx, str.InstallDir
lea rax, [rsp + 0x30]
mov dword [rsp + 0x260], 0x208
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x268]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x140056169
mov eax, dword [rsp + 0x260]
test eax, eax
je 0x140056169
shr eax, 1
mov r8d, eax
dec eax
mov edx, eax
mov dword [rsp + 0x260], eax
cmp word [rsp + rax*2 + 0x30], bp
jne 0x1400560fe
test eax, eax
je 0x140056170
dec edx
cmp word [rsp + rdx*2 + 0x30], bp
jne 0x140056118
mov dword [rsp + 0x260], edx
mov eax, edx
test edx, edx
jne 0x1400560e6
jmp 0x140056118
mov dword [rsp + 0x260], r8d
cmp r8d, 0x104
jae 0x140056169
mov word [rsp + r8*2 + 0x30], bp
mov eax, r8d
test eax, eax
je 0x140056170
mov rdi, qword [rsp + 0x240]
mov rbp, qword [rsp + 0x248]
mov rbx, qword [rsp + 0x270]
test rsi, rsi
je 0x140056160
lea rcx, [rsp + 0x30]
sub rsi, rcx
lea rdx, [rsp + 0x30]
nop word [rax + rax]
movzx ecx, word [rdx]
mov word [rsi + rdx], cx
lea rdx, [rdx + 2]
test cx, cx
jne 0x140056150
add rsp, 0x250
pop rsi
ret
mov word [rsp + 0x30], bp
mov eax, ebp
test edi, edi
jne 0x14005611c
mov edi, 0x200
jmp 0x140056030
Function at 0x14005a360
Capabilities:
Get keyboard layout

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 8], rcx
push rbp
push rdi
push r14
sub rsp, 0x250
mov rbp, qword [0x140103f30]
xor ecx, ecx
mov rdi, r8
mov rbx, rdx
call qword [sym.imp.USER32.dll_GetKeyboardLayout]
xor r8d, r8d
xor edx, edx
mov rcx, rbx
mov qword [rsp + 0x20], rax
call fcn.140018d40
movzx r14d, al
test al, al
jne 0x14005a3ff
xor r8d, r8d
lea rdx, [rsp + 0x270]
mov rcx, rbx
call fcn.140074a20
xor r9d, r9d
test eax, eax
jne 0x14005a3ca
lea rdx, [0x1400cb664]
jmp 0x14005a46d
mov edx, dword [rsp + 0x270]
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x30], rcx
lea r8, [rsp + 0x30]
xor edi, edi
mov ecx, eax
mov dword [rsp + 0x40], edi
call fcn.140074e20
lea rdx, [rsp + 0x30]
mov rcx, rbp
call fcn.1400af510
jmp 0x14005a481
mov qword [rsp + 0x278], rsi
mov ebx, 2
movzx esi, word [rdi]
xor edi, edi
test esi, 0xffffff80
je 0x14005a41d
mov eax, edi
jmp 0x14005a427
mov edx, ebx
mov ecx, esi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__isctype]
mov ecx, esi
and ecx, 0xffffffdf
test eax, eax
cmove ecx, esi
mov rsi, qword [rsp + 0x278]
cmp ecx, 0x50
je 0x14005a446
cmp ecx, 0x54
cmovne ebx, edi
jmp 0x14005a44b
mov ebx, 1
mov edx, ebx
movzx ecx, r14b
call fcn.140074d70
test al, al
lea rcx, [0x1400e8d18]
lea rdx, [0x1400e8d1c]
cmovne rdx, rcx
xor r9d, r9d
mov r8, 0xffffffffffffffff
mov byte [rsp + 0x20], 1
mov rcx, rbp
call fcn.1400afca0
mov rbx, qword [rsp + 0x280]
add rsp, 0x250
pop r14
pop rdi
pop rbp
ret

Function at 0x14005a4a0
Capabilities:
Get disk size

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x250
xor r9d, r9d
mov byte [rsp + 0x20], 1
movzx esi, r8b
mov rbx, rdx
mov rdi, rcx
xor edx, edx
mov rcx, qword [0x140103f30]
lea r8, [r9 - 1]
call fcn.1400afca0
test rbx, rbx
je 0x14005a5b3
cmp word [rbx], 0
je 0x14005a5b3
mov r8d, 0x103
lea rcx, [rsp + 0x40]
mov rdx, rbx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy]
xor edx, edx
lea rcx, [rsp + 0x40]
mov word [rsp + 0x246], dx
mov rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], dx
jne 0x14005a513
lea rcx, [rax + rax]
cmp word [rsp + rcx + 0x3e], 0x5c
je 0x14005a53f
inc rax
cmp rax, 0x104
jae 0x14005a5b3
mov dword [rsp + rcx + 0x40], 0x5c
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x268]
lea rdx, [rsp + 0x278]
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x14005a5b3
mov rbx, qword [rsp + 0x268]
lea rdx, [0x1400cb6f4]
mov rcx, qword [0x140101c20]
test sil, sil
mov byte [rsp + 0x20], 1
cmovne rbx, qword [rsp + 0x278]
xor r9d, r9d
shr rbx, 0x14
lea r8, [r9 - 1]
call fcn.1400afca0
mov rcx, qword [0x140103f30]
mov r8b, reloc.OLEAUT32.dll_SafeArrayGetElement
mov rdx, rbx
call fcn.1400014c0
mov eax, 1
jmp 0x14005a5f6
mov rax, qword [0x1400fe060]
lea rdx, [0x1400e0c2c]
test byte [rax + 0x140], 1
jne 0x14005a5e4
mov rcx, qword [0x140101c20]
xor r9d, r9d
mov byte [rsp + 0x20], 1
lea r8, [r9 - 1]
call fcn.1400afca0
jmp 0x14005a5f6
lea r9, [0x1400cb664]
xor r8d, r8d
mov rcx, rdi
call fcn.1400465b0
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x14005c860
Capabilities:
Set current directory

Disassembly:
push rbx
sub rsp, 0x30
movzx eax, word [rcx]
mov rbx, rcx
test ax, ax
je 0x14005c898
cmp word [rcx + 2], 0x3a
jne 0x14005c898
cmp word [rcx + 4], 0
jne 0x14005c898
mov word [rsp + 0x40], ax
lea rbx, [rsp + 0x40]
xor eax, eax
mov dword [rsp + 0x42], 0x5c003a
mov word [rsp + 0x46], ax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
jne 0x14005c8e0
cmp byte [0x140105d20], al
je 0x14005c910
mov rax, qword [0x1400fe060]
lea rdx, [0x1400e0c2c]
test byte [rax + 0x140], 1
je 0x14005c8f8
mov rcx, qword [0x140105810]
lea r9, [0x1400cb664]
xor r8d, r8d
call fcn.1400465b0
add rsp, 0x30
pop rbx
ret
cmp byte [0x140105d20], 0
je 0x14005c910
mov rcx, rbx
call fcn.14005c920
lea rdx, [0x1400cb6f4]
mov rcx, qword [0x140101c20]
xor r9d, r9d
mov byte [rsp + 0x20], 1
lea r8, [r9 - 1]
call fcn.1400afca0
add rsp, 0x30
pop rbx
ret

Function at 0x14005c920
Capabilities:
Get common file path

Disassembly:
push rbx
mov eax, 0x10020
call fcn.1400c8fe0
sub rsp, rax
mov rbx, rcx
lea rdx, [rsp + 0x20]
mov ecx, 0x8000
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x14005c94d
lea rbx, [rsp + 0x20]
jmp 0x14005c952
test rbx, rbx
je 0x14005c961
mov rdx, rbx
lea rcx, vtable.CKuStringT_wchar_t__class_CKuStringUtilW_.0
call fcn.1400754c0
add rsp, 0x10020
pop rbx
ret
Function at 0x14005d230
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push rbp
push r14
push r15
sub rsp, 0x20
lea rbp, [rsp + 0x20]
mov qword [rbp + 0x20], rbx
mov r15, rdx
mov qword [rbp + 0x28], rsi
mov rbx, rcx
mov qword [rbp + 0x30], rdi
mov qword [rbp + 0x38], r12
test rcx, rcx
je 0x14005d343
cmp word [rcx], 0
je 0x14005d343
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
cmp eax, 0xffffffff
je 0x14005d290
mov ecx, 0xb7
call qword [sym.imp.KERNEL32.dll_SetLastError]
shr edi, 4
and dil, 1
movzx eax, dil
jmp 0x14005d350
mov r12d, 0x5c
mov rcx, rbx
mov edx, r12d
call qword [sym.imp.VCRUNTIME140.dll_wcsrchr]
mov rdi, rax
cmp rax, rbx
jbe 0x14005d331
cmp word [rax - 2], 0x3a
je 0x14005d331
test r15, r15
je 0x14005d2c4
xor eax, eax
mov r14, rbx
mov word [rdi], ax
jmp 0x14005d312
mov rsi, rdi
sub rsi, rbx
sar rsi, 1
lea rax, [rsi*2 + 2]
lea rcx, [rax + 0xf]
cmp rcx, rax
ja 0x14005d2e8
movabs rcx, 0xffffffffffffff0
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.1400c8fe0
sub rsp, rcx
mov r8, rsi
mov rdx, rbx
lea r14, [rsp + 0x20]
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy]
xor eax, eax
mov word [r14 + rsi*2], ax
mov rdx, r14
mov rcx, r14
call fcn.14005d230
test r15, r15
je 0x14005d326
mov word [rdi], r12w
cmp word [rdi + 2], 0
je 0x14005d350
test al, al
je 0x14005d350
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
setne al
jmp 0x14005d350
mov ecx, 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor al, al
mov rbx, qword [rbp + 0x20]
mov rsi, qword [rbp + 0x28]
mov rdi, qword [rbp + 0x30]
mov r12, qword [rbp + 0x38]
mov rsp, rbp
pop r15
pop r14
pop rbp
ret
Function at 0x14005e1e0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x40
mov rdi, r8
mov r15, rdx
mov r12, rcx
mov ebp, 1
test r8, r8
je 0x14005e252
xor r8d, r8d
mov edx, ebp
mov rcx, rdi
call fcn.1400016b0
cmp byte [rdi + 0x23], 0
mov rsi, rax
jne 0x14005e225
mov rbx, qword [rdi + 0x10]
jmp 0x14005e228
mov rbx, rdi
cmp byte [rbx + 0x23], bpl
jne 0x14005e246
test byte [rbx + 0x21], 8
je 0x14005e23c
mov rcx, rbx
call fcn.140001560
lea r14, [rbx + 0x10]
mov r14, qword [rbx + 0x10]
jmp 0x14005e290
lea r14, [0x140107728]
mov r14, qword [r14]
jmp 0x14005e290
lea r8, [rsp + 0x88]
xor ecx, ecx
lea rdx, [rsp + 0x80]
call fcn.1400af630
test eax, eax
jne 0x14005e280
mov rax, qword [0x1400fe060]
xor ebx, ebx
mov dword [rax + 0x40], ebx
xor eax, eax
jmp 0x14005e333
mov rsi, qword [rsp + 0x80]
mov r14, qword [rsp + 0x88]
xor ebx, ebx
xor r9d, r9d
mov qword [rsp + 0x30], rbx
xor r8d, r8d
mov dword [rsp + 0x28], ebx
mov edx, 0x40000000
mov rcx, r15
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r15, rax
cmp rax, 0xffffffffffffffff
je 0x14005e2fa
mov dword [rsp + 0x80], ebx
mov ecx, ebx
test rsi, rsi
je 0x14005e2f1
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rbx
mov r8d, r14d
mov rdx, rsi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [rsp + 0x80]
cmp ecx, r14d
mov ebp, ebx
setne bpl
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x1400fe060]
mov dword [rcx + 0x40], eax
cmp r15, 0xffffffffffffffff
je 0x14005e319
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test rdi, rdi
jne 0x14005e327
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
movzx edx, bpl
mov rcx, r12
call fcn.140046680
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret

Function at 0x14005e360
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rbx, rdx
mov rdi, rcx
mov r9, rdx
test rdx, rdx
je 0x14005e3c2
movzx r8d, word [rdx]
test r8w, r8w
je 0x14005e403
mov edx, 0x3f
nop dword [rax + rax]
lea rcx, [0x1400e9328]
movzx eax, dx
nop word [rax + rax]
cmp r8w, ax
je 0x14005e403
movzx eax, word [rcx + 2]
add rcx, 2
test ax, ax
jne 0x14005e3a0
movzx r8d, word [r9 + 2]
add r9, 2
test r8w, r8w
jne 0x14005e390
cmp word [rbx], 0
je 0x14005e403
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
sete bl
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x1400fe060]
movzx edx, bl
mov dword [rcx + 0x40], eax
mov rcx, rdi
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
jmp fcn.140046680
xor r9d, r9d
mov qword [rsp + 0x28], 0
lea rax, [0x14005e350]
mov rdx, rbx
mov rcx, rdi
mov qword [rsp + 0x20], rax
lea r8d, [r9 + 1]
call fcn.14005e980
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret