joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400589b0
Capabilities:
Enumerate gui resources

Disassembly:
push rbx
mov eax, 0x11cf0
call fcn.1400ddab0
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, [0x1400e0684]
mov qword [rsp + 0x18a0], rax
cmp edx, 6
mov rdx, qword [0x140112060]
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.1400c6a50
test eax, eax
je 0x140058a61
lea rdx, [rsp + 0x30]
lea rcx, [0x1400c5a60]
call qword [sym.imp.USER32.dll_EnumWindows]
movsxd rdx, dword [rsp + 0x188c]
mov r8b, reloc.OLEAUT32.dll_SafeArrayGetElement
mov rcx, rbx
call fcn.140001470
mov eax, 1
add rsp, 0x11cf0
pop rbx
ret

Function at 0x140059bd0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
mov eax, 0x10030
call fcn.1400ddab0
sub rsp, rax
mov rbx, qword [0x1401179f0]
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 0x140059cb2
lea r8d, [rsi - 1]
mov r9b, 1
xor edx, edx
call fcn.1400c3f40
test eax, eax
je 0x140059ccf
mov qword [rsp + 0x10040], rdi
xor r8d, r8d
mov edi, 1
mov rcx, rbx
mov edx, edi
call fcn.140001670
mov rdx, rax
mov r8d, esi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
jne 0x140059c70
xor r8d, r8d
mov edx, edi
mov rcx, rbx
call fcn.140001670
xor ecx, ecx
mov word [rax], cx
cmp byte [rbx + 0x23], 0
jne 0x140059c7a
mov rbx, qword [rbx + 0x10]
cmp byte [rbx + 0x23], 2
jne 0x140059ca2
cmp qword [0x140119888], 0
je 0x140059ca2
lea rcx, [0x140119870]
call fcn.1400066e0
mov edi, eax
mov rdi, qword [rsp + 0x10040]
jmp 0x140059ccf
and byte [rbx + 0x21], 0x86
mov eax, edi
mov rdi, qword [rsp + 0x10040]
jmp 0x140059ccf
test esi, esi
lea rax, [0x1400e0684]
lea rdx, [rsp + 0x30]
mov r8, rsi
cmove rdx, rax
xor r9d, r9d
call fcn.1400c3f40
lea r11, [rsp + 0x10030]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsp, r11
pop rsi
ret
Function at 0x14005cb40
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.1400ddab0
sub rsp, rax
mov r9, qword [0x1401197c0]
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, [0x1400e0684]
call fcn.1400bf0b0
movsxd rbx, eax
lea esi, [rbx + 1]
cmp esi, 0x800
jg 0x14005cbc5
lea rcx, [rsp + 0x262]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14005cbc5
mov r9, qword [0x1401197c0]
jmp 0x14005cc28
lea rcx, [rsp + 0x50]
call fcn.14005d360
test eax, eax
je 0x14005ccea
lea r9, [rsp + 0x50]
mov qword [rsp + 0x20], rdi
lea r8, str.__s_s
mov edx, 0x800
lea rcx, [rsp + 0x260]
call fcn.1400bf0b0
movsxd rbx, eax
lea esi, [rbx + 1]
cmp esi, 0x800
jg 0x14005ccea
lea rcx, [rsp + 0x262]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14005ccea
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 0x14005ccb0
lea rax, [0x1400fda28]
mov edx, 0x800
lea r8, str.__s_s
mov qword [rsp + 0x20], rax
lea rcx, [rsp + 0x1260]
call fcn.1400bf0b0
movsxd rsi, eax
lea ebp, [rsi + 1]
cmp ebp, 0x800
jg 0x14005ccb0
lea rcx, [rsp + 0x1262]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14005ccb0
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, [0x140118bf0]
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.14004f020
test eax, eax
setne al
jmp 0x14005ccec
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 0x14005d360
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 0x14005d4b9
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 0x14005d4b9
mov eax, dword [rsp + 0x260]
test eax, eax
je 0x14005d4b9
shr eax, 1
mov r8d, eax
dec eax
mov edx, eax
mov dword [rsp + 0x260], eax
cmp word [rsp + rax*2 + 0x30], bp
jne 0x14005d44e
test eax, eax
je 0x14005d4c0
dec edx
cmp word [rsp + rdx*2 + 0x30], bp
jne 0x14005d468
mov dword [rsp + 0x260], edx
mov eax, edx
test edx, edx
jne 0x14005d436
jmp 0x14005d468
mov dword [rsp + 0x260], r8d
cmp r8d, 0x104
jae 0x14005d4b9
mov word [rsp + r8*2 + 0x30], bp
mov eax, r8d
test eax, eax
je 0x14005d4c0
mov rdi, qword [rsp + 0x240]
mov rbp, qword [rsp + 0x248]
mov rbx, qword [rsp + 0x270]
test rsi, rsi
je 0x14005d4b0
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 0x14005d4a0
add rsp, 0x250
pop rsi
ret
mov word [rsp + 0x30], bp
mov eax, ebp
test edi, edi
jne 0x14005d46c
mov edi, 0x200
jmp 0x14005d380
Function at 0x140061c50
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 [0x1401179f0]
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.14001b0c0
movzx r14d, al
test al, al
jne 0x140061cef
xor r8d, r8d
lea rdx, [rsp + 0x270]
mov rcx, rbx
call fcn.140081850
xor r9d, r9d
test eax, eax
jne 0x140061cba
lea rdx, [0x1400e0684]
jmp 0x140061d5d
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.140081c40
lea rdx, [rsp + 0x30]
mov rcx, rbp
call fcn.1400c35d0
jmp 0x140061d71
mov qword [rsp + 0x278], rsi
mov ebx, 2
movzx esi, word [rdi]
xor edi, edi
test esi, 0xffffff80
je 0x140061d0d
mov eax, edi
jmp 0x140061d17
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 0x140061d36
cmp ecx, 0x54
cmovne ebx, edi
jmp 0x140061d3b
mov ebx, 1
mov edx, ebx
movzx ecx, r14b
call fcn.140081b90
test al, al
lea rcx, [0x1400fdf58]
lea rdx, [0x1400fdf5c]
cmovne rdx, rcx
xor r9d, r9d
mov r8, 0xffffffffffffffff
mov byte [rsp + 0x20], 1
mov rcx, rbp
call fcn.1400c3f40
mov rbx, qword [rsp + 0x280]
add rsp, 0x250
pop r14
pop rdi
pop rbp
ret

Function at 0x140061d90
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 [0x1401179f0]
lea r8, [r9 - 1]
call fcn.1400c3f40
test rbx, rbx
je 0x140061ea3
cmp word [rbx], 0
je 0x140061ea3
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 0x140061e03
lea rcx, [rax + rax]
cmp word [rsp + rcx + 0x3e], 0x5c
je 0x140061e2f
inc rax
cmp rax, 0x104
jae 0x140061ea3
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 0x140061ea3
mov rbx, qword [rsp + 0x268]
lea rdx, [0x1400e0714]
mov rcx, qword [0x1401156c0]
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.1400c3f40
mov rcx, qword [0x1401179f0]
mov r8b, reloc.OLEAUT32.dll_SafeArrayGetElement
mov rdx, rbx
call fcn.140001470
mov eax, 1
jmp 0x140061ee6
mov rax, qword [0x140112060]
lea rdx, [0x1400f5d6c]
test byte [rax + 0x140], 1
jne 0x140061ed4
mov rcx, qword [0x1401156c0]
xor r9d, r9d
mov byte [rsp + 0x20], 1
lea r8, [r9 - 1]
call fcn.1400c3f40
jmp 0x140061ee6
lea r9, [0x1400e0684]
xor r8d, r8d
mov rcx, rdi
call fcn.14004d4a0
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x1400640c0
Capabilities:
Set current directory

Disassembly:
push rbx
sub rsp, 0x30
movzx eax, word [rcx]
mov rbx, rcx
test ax, ax
je 0x1400640f8
cmp word [rcx + 2], 0x3a
jne 0x1400640f8
cmp word [rcx + 4], 0
jne 0x1400640f8
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 0x140064140
cmp byte [0x1401197d0], al
je 0x140064170
mov rax, qword [0x140112060]
lea rdx, [0x1400f5d6c]
test byte [rax + 0x140], 1
je 0x140064158
mov rcx, qword [0x1401192c0]
lea r9, [0x1400e0684]
xor r8d, r8d
call fcn.14004d4a0
add rsp, 0x30
pop rbx
ret
cmp byte [0x1401197d0], 0
je 0x140064170
mov rcx, rbx
call fcn.140064180
lea rdx, [0x1400e0714]
mov rcx, qword [0x1401156c0]
xor r9d, r9d
mov byte [rsp + 0x20], 1
lea r8, [r9 - 1]
call fcn.1400c3f40
add rsp, 0x30
pop rbx
ret

Function at 0x140064180
Capabilities:
Get common file path

Disassembly:
push rbx
mov eax, 0x10020
call fcn.1400ddab0
sub rsp, rax
mov rbx, rcx
lea rdx, [rsp + 0x20]
mov ecx, 0x8000
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x1400641ad
lea rbx, [rsp + 0x20]
jmp 0x1400641b2
test rbx, rbx
je 0x1400641c1
mov rdx, rbx
lea rcx, vtable.CKuStringT_wchar_t__class_CKuStringUtilW_.0
call fcn.140082410
add rsp, 0x10020
pop rbx
ret
Function at 0x140064a90
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push rbp
sub rsp, 0x20
lea rbp, [rsp + 0x20]
mov qword [rbp + 0x10], rbx
mov qword [rbp + 0x18], rsi
mov qword [rbp + 0x20], rdi
mov rdi, rcx
mov qword [rbp + 0x28], r14
mov r14, rdx
test rcx, rcx
je 0x140064b9d
cmp word [rcx], 0
je 0x140064b9d
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp eax, 0xffffffff
je 0x140064aea
mov ecx, 0xb7
call qword [sym.imp.KERNEL32.dll_SetLastError]
shr ebx, 4
and bl, 1
movzx eax, bl
jmp 0x140064baa
mov ebx, 0x5c
mov rcx, rdi
mov edx, ebx
call qword [sym.imp.VCRUNTIME140.dll_wcsrchr]
mov rsi, rax
cmp rax, rdi
jbe 0x140064b8b
cmp word [rax - 2], 0x3a
je 0x140064b8b
test r14, r14
je 0x140064b27
xor eax, eax
mov rdx, rdi
mov rcx, rdi
mov word [rsi], ax
call fcn.140064a90
mov word [rsi], bx
jmp 0x140064b80
mov r14, rsi
sub r14, rdi
sar r14, 1
lea rax, [r14*2 + 2]
lea rcx, [rax + 0xf]
cmp rcx, rax
ja 0x140064b4b
movabs rcx, 0xffffffffffffff0
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.1400ddab0
sub rsp, rcx
mov r8, r14
mov rdx, rdi
lea rbx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy]
xor eax, eax
mov rdx, rbx
mov rcx, rbx
mov word [rbx + r14*2], ax
call fcn.140064a90
cmp word [rsi + 2], 0
je 0x140064baa
test al, al
je 0x140064baa
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
setne al
jmp 0x140064baa
mov ecx, 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor al, al
mov rbx, qword [rbp + 0x10]
mov rsi, qword [rbp + 0x18]
mov rdi, qword [rbp + 0x20]
mov r14, qword [rbp + 0x28]
mov rsp, rbp
pop rbp
ret
Function at 0x140065c10
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x40
mov rdi, r8
mov r14, rdx
mov r15, rcx
test r8, r8
je 0x140065c79
xor r8d, r8d
mov rcx, rdi
lea edx, [r8 + 1]
call fcn.140001670
cmp byte [rdi + 0x23], 0
mov rsi, rax
jne 0x140065c4c
mov rbx, qword [rdi + 0x10]
jmp 0x140065c4f
mov rbx, rdi
cmp byte [rbx + 0x23], 1
jne 0x140065c6d
test byte [rbx + 0x21], 8
je 0x140065c63
mov rcx, rbx
call fcn.140001510
mov rbp, qword [rbx + 0x10]
add rbx, 0x10
jmp 0x140065cc3
lea rbx, [0x14011b1e8]
mov rbp, qword [rbx]
jmp 0x140065cc3
lea r8, [rsp + 0x88]
xor ecx, ecx
lea rdx, [rsp + 0x80]
call fcn.1400c36f0
test eax, eax
jne 0x140065cb3
mov rax, qword [0x140112060]
xor ebx, ebx
mov dword [rax + 0x40], ebx
xor eax, eax
mov rbx, qword [rsp + 0x70]
add rsp, 0x40
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
mov rsi, qword [rsp + 0x80]
mov rbp, 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, r14
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r14, rax
cmp rax, 0xffffffffffffffff
je 0x140065d44
mov dword [rsp + 0x80], ebx
mov ecx, ebx
test rsi, rsi
je 0x140065d24
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rbx
mov r8d, ebp
mov rdx, rsi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [rsp + 0x80]
cmp ecx, ebp
sete bl
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x140112060]
mov dword [rcx + 0x40], eax
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140065d54
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x140112060]
mov dword [rcx + 0x40], eax
test rdi, rdi
jne 0x140065d62
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
test ebx, ebx
je 0x140065d96
mov rcx, qword [0x1401156c0]
lea rdx, [0x1400e0714]
xor r9d, r9d
mov byte [rsp + 0x20], 1
lea r8, [r9 - 1]
call fcn.1400c3f40
mov rbx, qword [rsp + 0x70]
add rsp, 0x40
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
mov rax, qword [0x140112060]
lea rdx, [0x1400f5d6c]
test byte [rax + 0x140], 1
jne 0x140065dd6
mov rcx, qword [0x1401156c0]
xor r9d, r9d
mov byte [rsp + 0x20], 1
lea r8, [r9 - 1]
call fcn.1400c3f40
mov rbx, qword [rsp + 0x70]
add rsp, 0x40
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
lea r9, [0x1400e0684]
xor r8d, r8d
mov rcx, r15
mov rbx, qword [rsp + 0x70]
add rsp, 0x40
pop r15
pop r14
pop rdi
pop rsi
pop rbp
jmp fcn.14004d4a0
Function at 0x140065e10
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
movzx r8d, word [rdx]
mov rbx, rdx
mov rdi, rcx
mov r9, rdx
test r8w, r8w
je 0x140065f16
test rdx, rdx
je 0x140065e76
mov edx, 0x3f
nop dword [rax + rax]
lea rcx, [0x1400fe568]
movzx eax, dx
nop word [rax + rax]
cmp r8w, ax
je 0x140065f16
movzx eax, word [rcx + 2]
add rcx, 2
test ax, ax
jne 0x140065e50
movzx r8d, word [r9 + 2]
add r9, 2
test r8w, r8w
jne 0x140065e40
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x140112060]
mov dword [rcx + 0x40], eax
test ebx, ebx
je 0x140065ec7
mov rcx, qword [0x1401156c0]
lea rdx, [0x1400e0714]
xor r9d, r9d
mov byte [rsp + 0x20], 1
lea r8, [r9 - 1]
call fcn.1400c3f40
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
test byte [rcx + 0x140], 1
lea rdx, [0x1400f5d6c]
jne 0x140065efa
mov rcx, qword [0x1401156c0]
xor r9d, r9d
mov byte [rsp + 0x20], 1
lea r8, [r9 - 1]
call fcn.1400c3f40
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
lea r9, [0x1400e0684]
xor r8d, r8d
mov rcx, rdi
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
jmp fcn.14004d4a0
xor r9d, r9d
mov qword [rsp + 0x28], 0
lea rax, [0x140065e00]
mov rdx, rbx
mov rcx, rdi
mov qword [rsp + 0x20], rax
lea r8d, [r9 + 1]
call fcn.1400665e0
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x140066220
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x130
xor r9d, r9d
mov byte [rsp + 0x20], 1
mov rbx, rdx
mov rdi, rcx
mov rcx, qword [0x1401179f0]
xor edx, edx
lea r8, [r9 - 1]
call fcn.1400c3f40
test rbx, rbx
je 0x140066385
cmp word [rbx], 0
je 0x140066385
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp eax, 0xffffffff
jne 0x14006628c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x140112060]
test byte [rcx + 0x140], 1
mov dword [rcx + 0x40], eax
jmp 0x14006639a
mov rax, qword [0x140112060]
lea rdx, [0x1400e0714]
mov rcx, qword [0x1401156c0]
xor edi, edi
xor r9d, r9d
mov byte [rsp + 0x20], 1
mov dword [rax + 0x40], edi
lea r8, [rdi - 1]
call fcn.1400c3f40
mov ecx, ebx
and ecx, 1
je 0x1400662c8
mov eax, 0x52
mov word [rsp + 0x30], ax
test bl, 0x20
je 0x1400662d9
mov edx, 0x41
mov word [rsp + rcx*2 + 0x30], dx
inc ecx
test bl, 4
je 0x1400662ea
mov edx, 0x53
mov word [rsp + rcx*2 + 0x30], dx
inc ecx
test bl, 2
je 0x1400662fb
mov edx, 0x48
mov word [rsp + rcx*2 + 0x30], dx
inc ecx
test bl, bl
jns 0x14006630b
mov edx, 0x4e
mov word [rsp + rcx*2 + 0x30], dx
inc ecx
test bl, 0x10
je 0x14006631c
mov edx, 0x44
mov word [rsp + rcx*2 + 0x30], dx
inc ecx
bt ebx, 0xc
jae 0x14006632e
mov edx, 0x4f
mov word [rsp + rcx*2 + 0x30], dx
inc ecx
bt ebx, 0xb
jae 0x140066340
mov edx, 0x43
mov word [rsp + rcx*2 + 0x30], dx
inc ecx
bt ebx, 8
jae 0x140066352
mov edx, 0x54
mov word [rsp + rcx*2 + 0x30], dx
inc ecx
xor r9d, r9d
mov word [rsp + rcx*2 + 0x30], di
mov rcx, qword [0x1401179f0]
lea rdx, [rsp + 0x30]
mov byte [rsp + 0x20], 1
lea r8, [r9 - 1]
call fcn.1400c3f40
mov rbx, qword [rsp + 0x140]
add rsp, 0x130
pop rdi
ret
mov rax, qword [0x140112060]
test byte [rax + 0x140], 1
mov dword [rax + 0x40], 0x57
lea rdx, [0x1400f5d6c]
jne 0x1400663cc
mov rcx, qword [0x1401156c0]
xor r9d, r9d
mov byte [rsp + 0x20], 1
lea r8, [r9 - 1]
call fcn.1400c3f40
mov rbx, qword [rsp + 0x140]
add rsp, 0x130
pop rdi
ret
lea r9, [0x1400e0684]
xor r8d, r8d
mov rcx, rdi
call fcn.14004d4a0
mov rbx, qword [rsp + 0x140]
add rsp, 0x130
pop rdi
ret
Function at 0x1400663f0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x30
mov rdi, rdx
xor esi, esi
xor edx, edx
mov r10d, 0xffffffff
mov ebp, r9d
mov dword [rsp + 0x68], r10d
mov r14, r8
mov dword [rsp + 0x6c], edx
movzx eax, word [rdi]
mov r15, rcx
test ax, ax
je 0x14006650d
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x70], r12
lea r12, [0x140000000]
nop dword [rax + rax]
movzx ebx, ax
test ebx, 0xffffff80
je 0x14006644f
xor eax, eax
jmp 0x140066465
mov edx, 2
mov ecx, ebx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__isctype]
mov edx, dword [rsp + 0x6c]
mov r10d, dword [rsp + 0x68]
mov ecx, ebx
and ecx, 0xffffffdf
test eax, eax
cmove ecx, ebx
add ecx, 0xffffffd5
cmp ecx, 0x33
ja case.0x14006648e.51
movsxd rax, ecx
movzx eax, byte [r12 + rax + 0x6656c]
mov ecx, dword [r12 + rax*4 + 0x66548]
add rcx, r12
jmp rcx
movzx esi, word [rdi]
jmp case.0x14006648e.51
mov ecx, 1
jmp 0x1400664c4
mov ecx, SafeArrayAllocDescriptor
jmp 0x1400664c4
mov ecx, 4
jmp 0x1400664c4
mov ecx, 2
jmp 0x1400664c4
mov ecx, 0x80
jmp 0x1400664c4
mov ecx, 0x1000
jmp 0x1400664c4
mov ecx, 0x100
cmp esi, 0x2b
je 0x1400664e0
cmp esi, 0x2d
je 0x1400664d7
cmp esi, 0x5e
jne case.0x14006648e.51
xor edx, ecx
jmp 0x1400664ee
not ecx
and r10d, ecx
and edx, ecx
jmp 0x1400664e9
mov eax, ecx
not eax
and r10d, eax
or edx, ecx
mov dword [rsp + 0x68], r10d
mov dword [rsp + 0x6c], edx
movzx eax, word [rdi + 2]
add rdi, 2
test ax, ax
jne 0x140066440
mov r12, qword [rsp + 0x70]
mov rbx, qword [rsp + 0x60]
movzx r9d, byte [rsp + 0x80]
lea rax, [rsp + 0x68]
mov qword [rsp + 0x28], rax
mov r8d, ebp
lea rax, [0x1400665a0]
mov rdx, r14
mov rcx, r15
mov qword [rsp + 0x20], rax
call fcn.1400665e0
add rsp, 0x30
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x140066ff0
Capabilities:
Get file size

Disassembly:
push rbp
push rdi
push r14
sub rsp, 0x290
xor r9d, r9d
mov byte [rsp + 0x20], 1
mov r14, r8
mov rdi, rdx
mov rbp, rcx
xor edx, edx
mov rcx, qword [0x1401179f0]
lea r8, [r9 - 1]
call fcn.1400c3f40
test rdi, rdi
je 0x1400671f7
cmp word [rdi], 0
je 0x1400671f7
xor r9d, r9d
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x2b0], rbx
mov edx, 0x80
mov dword [rsp + 0x28], 0
mov rcx, rdi
mov qword [rsp + 0x2c0], rsi
lea r8d, [r9 + 7]
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x1400670a6
lea rdx, [rsp + 0x2b8]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov rcx, rsi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x1400670a6
mov rcx, qword [rsp + 0x2b8]
jmp 0x140067142
lea rdx, [rsp + 0x40]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp rax, 0xffffffffffffffff
jne 0x140067122
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x140112060]
lea rdx, [0x1400f5d6c]
test byte [rcx + 0x140], 1
mov dword [rcx + 0x40], eax
jne 0x14006710e
mov rcx, qword [0x1401156c0]
xor r9d, r9d
mov byte [rsp + 0x20], 1
lea r8, [r9 - 1]
call fcn.1400c3f40
mov rbx, qword [rsp + 0x2b0]
mov rsi, qword [rsp + 0x2c0]
add rsp, 0x290
pop r14
pop rdi
pop rbp
ret
lea r9, [0x1400e0684]
xor r8d, r8d
mov rcx, rbp
call fcn.14004d4a0
jmp 0x1400670f2
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [rsp + 0x5c]
mov eax, dword [rsp + 0x60]
shl rcx, 0x20
or rcx, rax
mov qword [rsp + 0x2b8], rcx
movzx ebx, word [r14]
test ebx, 0xffffff80
je 0x140067152
xor eax, eax
jmp 0x140067167
mov edx, 2
mov ecx, ebx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__isctype]
mov rcx, qword [rsp + 0x2b8]
mov edx, ebx
and edx, 0xffffffdf
test eax, eax
cmove edx, ebx
cmp edx, 0x4b
je 0x14006718f
cmp edx, 0x4d
jne 0x1400671a9
mov rax, rcx
cqo
and edx, 0xfffff
add rax, rdx
sar rax, 0x14
jmp 0x1400671a1
mov rax, rcx
cqo
and edx, 0x3ff
add rax, rdx
sar rax, 0xa
mov qword [rsp + 0x2b8], rax
mov rax, qword [0x140112060]
lea rdx, [0x1400e0714]
mov rcx, qword [0x1401156c0]
xor r9d, r9d
mov byte [rsp + 0x20], 1
mov dword [rax + 0x40], 0
lea r8, [r9 - 1]
call fcn.1400c3f40
mov rdx, qword [rsp + 0x2b8]
mov r8b, reloc.OLEAUT32.dll_SafeArrayGetElement
mov rcx, qword [0x1401179f0]
call fcn.140001470
mov eax, 1
jmp 0x1400670f2
mov rax, qword [0x140112060]
lea rdx, [0x1400f5d6c]
test byte [rax + 0x140], 1
mov dword [rax + 0x40], 0x57
jne 0x140067239
mov rcx, qword [0x1401156c0]
xor r9d, r9d
mov byte [rsp + 0x20], 1
lea r8, [r9 - 1]
call fcn.1400c3f40
add rsp, 0x290
pop r14
pop rdi
pop rbp
ret
lea r9, [0x1400e0684]
xor r8d, r8d
mov rcx, rbp
call fcn.14004d4a0
add rsp, 0x290
pop r14
pop rdi
pop rbp
ret