joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800e4c60
Capabilities:
Get file size
Read file on windows
Read file via mapping

Disassembly:
push rbx
push rbp
sub rsp, 0x48
mov rbp, rdx
mov rbx, rcx
test rcx, rcx
jne 0x1800e4c7c
lea eax, [rcx + 0x28]
add rsp, 0x48
pop rbp
pop rbx
ret
mov qword [rsp + 0x68], rsi
xor r9d, r9d
mov qword [rsp + 0x40], r14
mov edx, 0x80000000
xor r14d, r14d
mov rcx, rbp
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
lea r8d, [r14 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x1800e4cd0
mov r14, qword [rsp + 0x40]
lea eax, [rsi + 2]
mov rsi, qword [rsp + 0x68]
add rsp, 0x48
pop rbp
pop rbx
ret
lea rdx, [rsp + 0x70]
mov qword [rsp + 0x78], rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1800e4df5
mov rax, qword [rsp + 0x70]
cmp rax, 0x7fffffff
jg 0x1800e4df5
test rax, rax
je 0x1800e4df5
xor r9d, r9d
mov qword [rsp + 0x28], r14
xor edx, edx
mov dword [rsp + 0x20], r14d
mov rcx, rsi
lea r8d, [r9 + 2]
call qword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov rdi, rax
test rax, rax
je 0x1800e4df5
mov ecx, dword [rsp + 0x70]
xor r9d, r9d
mov dword [rbx + 8], ecx
xor r8d, r8d
mov rcx, rax
mov dword [rbx + 0xc], r14d
mov qword [rsp + 0x20], r14
lea edx, [r9 + 4]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rcx, rdi
mov qword [rbx], rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rbx], r14
je 0x1800e4d6a
lea rax, [0x1800e4e50]
jmp 0x1800e4dc3
mov rcx, qword [rbx + 0x30]
xor edx, edx
movsxd r8, dword [rbx + 8]
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rbx], rax
test rax, rax
je 0x1800e4df5
mov edi, r14d
nop dword [rax + rax]
mov r8d, dword [rbx + 8]
lea r9, [rsp + 0x60]
mov edx, edi
sub r8d, edi
add rdx, qword [rbx]
mov rcx, rsi
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1800e4de3
add edi, dword [rsp + 0x60]
cmp edi, dword [rbx + 8]
jne 0x1800e4d90
lea rax, [0x1800e4e20]
mov rcx, rsi
mov qword [rbx + 0x28], rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rbx]
mov qword [rbx + 0x10], rax
xor eax, eax
mov qword [rbx + 0x18], rbp
mov qword [rbx + 0x20], r14
jmp 0x1800e4e0a
mov rcx, qword [rbx + 0x30]
xor edx, edx
mov r8, qword [rbx]
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x51
mov qword [rbx], r14
mov qword [rbx + 8], r14
mov rdi, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x68]
mov r14, qword [rsp + 0x40]
add rsp, 0x48
pop rbp
pop rbx
ret
Function at 0x1800e63e0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov r9, rdx
test rdx, rdx
jne 0x1800e63eb
xor eax, eax
ret
lea r11, [0x18010a1f0]
not ecx
cmp r8d, 8
jb 0x1800e64c1
mov r10d, r8d
shr r10, 3
nop word [rax + rax]
movzx edx, byte [r9]
mov eax, ecx
xor rdx, rax
shr ecx, 8
movzx eax, dl
add r8d, 0xfffffff8
movzx edx, byte [r9 + 1]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 2]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 3]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 4]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 5]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 6]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 7]
add r9, 8
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
xor ecx, dword [r11 + rax*4]
sub r10, 1
jne 0x1800e6410
test r8d, r8d
je 0x1800e64ed
nop word [rax + rax]
movzx edx, byte [r9]
lea r9, [r9 + 1]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
xor ecx, dword [r11 + rax*4]
add r8d, 0xffffffff
jne 0x1800e64d0
not ecx
mov eax, ecx
ret
Function at 0x1400033f4
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rcx
push r15
xor rax, rax
push rax
push rax
push rax
sub rsp, 0x28
push 0x400
pop rcx
call fcn.14000e1e0
mov qword [rsp + 0x28], rax
push qword [0x140018180]
sub rsp, 8
push qword [0x140018180]
pop rcx
sub rsp, 0x20
call fcn.14000e3b4
add rsp, 0x28
lea rcx, [rsp + 0x38]
pop rdx
call fcn.140012060
push qword [rsp + 0x28]
push 0
movabs rax, 0x14001601e
push rax
push qword [rsp + 0x48]
pop rcx
pop rdx
pop r8
pop r9
call sub.KERNEL32.dll_GetTempFileNameA
push qword [0x140018180]
sub rsp, 8
push qword [0x140018180]
push qword [rsp + 0x40]
pop rcx
pop rdx
sub rsp, 0x20
call fcn.14000e0b0
add rsp, 0x28
lea rcx, [0x140017bb8]
pop rdx
call fcn.140012060
push qword [rsp + 0x28]
pop rcx
call fcn.14000e200
push qword [0x140017bb8]
pop rcx
call fcn.14000e480
push qword [0x140017bb8]
pop rcx
call fcn.14000e488
push qword [0x140018180]
sub rsp, 8
push qword [0x140018180]
pop rcx
sub rsp, 0x20
call fcn.14000e29c
add rsp, 0x28
lea rcx, [0x140017af0]
pop rdx
call fcn.140012060
push qword [rsp + 0x50]
pop rcx
call fcn.14000e220
mov rax, rax
push rax
xor r15, r15
cmp r15, qword [rsp]
jne 0x14000352f
mov rcx, qword [0x140017bb8]
push qword [0x140018180]
sub rsp, 0x20
call fcn.140012180
add rsp, 0x20
lea rcx, [0x140017af0]
pop rdx
sub rsp, 0x28
call fcn.140012060
add rsp, 0x28
mov qword [rsp + 0x40], 2
jmp 0x140003545
mov r15, 1
cmp r15, qword [rsp]
jne 0x140003545
mov qword [rsp + 0x40], 1
pop rax
mov r15, qword [rsp + 0x50]
add r15, qword [rsp + 0x38]
mov rax, r15
push rax
pop rcx
call fcn.14000e220
mov qword [0x140017b50], rax
mov r15, qword [rsp + 0x50]
add r15, qword [rsp + 0x38]
inc r15
mov rax, r15
push rax
pop rcx
call fcn.14000e220
mov qword [0x140017a18], rax
mov rax, 1
jmp 0x14000358b
push rax
mov rcx, qword [rsp + 0x38]
sub rsp, 0x28
call fcn.140012260
add rsp, 0x28
pop rax
add rsp, 0x40
pop r15
ret
Function at 0x1400040d3
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
push r15
mov rax, 7
sub rsp, 8
mov qword [rsp], 0
dec rax
jne 0x1400040e6
sub rsp, 0x28
mov rdx, qword [rsp + 0x78]
lea rcx, [rsp + 0x28]
sub rsp, 0x10
call fcn.1400121f0
add rsp, 0x10
push 0xa
push qword [rsp + 0x30]
push qword [rsp + 0x80]
pop rcx
pop rdx
pop r8
call sub.KERNEL32.dll_FindResourceA
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x140004164
push qword [rsp + 0x30]
push qword [rsp + 0x78]
pop rcx
pop rdx
call sub.KERNEL32.dll_LoadResource
mov qword [0x140017a20], rax
push qword [rsp + 0x30]
push qword [rsp + 0x78]
pop rcx
pop rdx
call sub.KERNEL32.dll_SizeofResource
mov qword [0x140017a48], rax
push qword [0x140017a48]
pop rcx
call fcn.14000e1e0
mov qword [rsp + 0x38], rax
push qword [0x140017a48]
push qword [0x140017a20]
push qword [rsp + 0x48]
pop rcx
pop rdx
pop r8
call sub.msvcrt.dll_memcpy
push qword [rsp + 0x38]
pop rax
mov qword [0x140017a20], rax
push qword [rsp + 0x28]
movabs rcx, 0x14001606e
pop rdx
call fcn.140012120
or rax, rax
je 0x140004235
push qword [0x140017a48]
pop rcx
call fcn.14000e1e0
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], 0
mov r15, qword [0x140017a48]
dec r15
cmp r15, qword [rsp + 0x48]
jl 0x140004229
mov r15, qword [rsp + 0x38]
add r15, qword [rsp + 0x48]
mov rax, r15
push rax
pop rcx
call fcn.14000e220
mov qword [rsp + 0x50], rax
mov r15, qword [rsp + 0x50]
imul r15, r15, 0xffffffffffffffff
mov qword [rsp + 0x58], r15
push qword [rsp + 0x58]
mov r15, qword [rsp + 0x48]
add r15, qword [rsp + 0x50]
mov rax, r15
push rax
pop rcx
pop rdx
call fcn.14000e230
inc qword [rsp + 0x48]
jno 0x1400041d1
push qword [rsp + 0x40]
pop rax
mov qword [0x140017a20], rax
mov rax, qword [rsp + 0x30]
jmp 0x14000423f
push rax
mov rcx, qword [rsp + 0x30]
sub rsp, 0x28
call fcn.140012260
add rsp, 0x28
pop rax
add rsp, 0x60
pop r15
ret
Function at 0x14000466c
Capabilities:
Delete directory

Disassembly:
push rbp
push r15
xor rax, rax
push rax
push rax
sub rsp, 0x28
mov r15, qword [0x140017b50]
cmp r15, 1
jne 0x140004752
push qword [0x140017bf8]
pop rcx
call fcn.140009d10
mov r15, rax
and r15, r15
jle 0x1400046e8
mov rcx, qword [0x140017bf8]
call fcn.140009d18
mov rcx, qword [0x140017bf8]
call fcn.140009d2c
or rax, rax
je 0x1400046e8
mov rbp, qword [0x140017c00]
push qword [rbp + 0x10]
pop rcx
call fcn.1400104e0
mov r15, rax
movsxd rax, dword [rbp + 0x18]
cmp r15, rax
jne 0x1400046e6
mov rbp, qword [0x140017c00]
push qword [rbp + 0x10]
pop rcx
call fcn.14000e480
jmp 0x1400046a9
push qword [0x140017c08]
pop rcx
call fcn.140009d10
mov qword [rsp + 0x28], rax
mov r15, qword [rsp + 0x28]
and r15, r15
jle 0x140004752
push 5
push 0
push 1
push qword [0x140017c08]
pop rcx
pop rdx
pop r8
pop r9
call fcn.1400080d0
mov rcx, qword [0x140017c08]
call fcn.140009d18
mov rcx, qword [0x140017c08]
call fcn.140009d2c
or rax, rax
je 0x140004752
mov rbp, qword [0x140017c10]
push qword [rbp + 0x14]
pop rcx
call sub.KERNEL32.dll_RemoveDirectoryA
jmp 0x14000472f
mov rax, 1
jmp 0x14000475e
add rsp, 0x38
pop r15
pop rbp
ret

Function at 0x140008a90
Capabilities:
Enumerate gui resources

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
test ecx, ecx
je 0x140008b07
movsxd rdx, ecx
lea rcx, [0x1400089ec]
call qword [sym.imp.USER32.DLL_EnumWindows]
mov rbx, qword [0x140017c28]
test rbx, rbx
je 0x140008b7a
mov rdi, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rbx + 0x10], eax
jne 0x140008afd
cmp byte [rbx + 0x20], 0
je 0x140008afd
mov rcx, qword [rbx + 0x18]
xor r9d, r9d
mov dword [rsp + 0x30], 3
and dword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
lea rdx, [r9 - 2]
xor r8d, r8d
call qword [sym.imp.USER32.DLL_SetWindowPos]
mov rbx, rdi
test rdi, rdi
jne 0x140008ac3
jmp 0x140008b7a
mov rbx, qword [0x140017c28]
test rbx, rbx
je 0x140008b7a
mov rdi, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rbx + 0x10], eax
jne 0x140008b72
cmp byte [rbx + 0x21], 0
je 0x140008b36
mov rcx, qword [rbx + 0x18]
mov edx, 1
call qword [sym.imp.USER32.DLL_EnableWindow]
cmp byte [rbx + 0x20], 0
je 0x140008b62
mov rcx, qword [rbx + 0x18]
mov dword [rsp + 0x30], 3
and dword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
or rdx, 0xffffffffffffffff
call qword [sym.imp.USER32.DLL_SetWindowPos]
lea rdx, [rbx + 0x10]
lea rcx, [0x140017c28]
call fcn.140011a44
mov rbx, rdi
test rdi, rdi
jne 0x140008b13
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x140008c54
Capabilities:
Accept command line arguments

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rcx, qword [0x1400181c0]
call fcn.1400111ec
xor ebx, ebx
or esi, 0xffffffff
mov rbp, rax
call qword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dl, byte [rax]
test dl, dl
je 0x140008d1a
mov rcx, qword [rsp + 0x30]
mov r10b, 0x20
lea r9d, [rbx + 1]
cmp dl, r10b
jne 0x140008ca8
add rax, r9
cmp byte [rax], r10b
je 0x140008ca0
mov dl, byte [rax]
mov r8d, r9d
cmp dl, 0x22
jne 0x140008cde
add rax, r9
mov rbx, rax
mov cl, byte [rax]
test cl, cl
je 0x140008cd9
cmp cl, 0x22
je 0x140008ccc
add rax, r9
mov cl, byte [rax]
test cl, cl
jne 0x140008cbe
cmp byte [rax], 0
je 0x140008cd9
mov rcx, rax
add rax, r9
jmp 0x140008d00
mov rcx, rax
jmp 0x140008d00
test dl, dl
je 0x140008cfd
mov rbx, rax
cmp dl, r10b
je 0x140008cf3
add rax, r9
mov dl, byte [rax]
test dl, dl
jne 0x140008ce5
cmp byte [rax], 0
mov rcx, rax
je 0x140008d00
jmp 0x140008cd4
xor r8d, r8d
cmp dword [rbp], esi
jne 0x140008d0a
test rdi, rdi
jne 0x140008d24
test r8d, r8d
je 0x140008d12
add esi, r9d
mov dl, byte [rax]
xor ebx, ebx
test dl, dl
jne 0x140008c9b
test rdi, rdi
jne 0x140008d36
movsxd rax, esi
jmp 0x140008d39
test rbx, rbx
je 0x140008d36
sub ecx, ebx
mov rax, rbx
mov dword [rdi], ecx
add dword [rbp], r9d
jmp 0x140008d39
and dword [rdi], 0
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret

Function at 0x140008e14
Capabilities:
Accept command line arguments

Disassembly:
sub rsp, 0x28
mov rcx, qword [0x1400181c0]
call fcn.1400111ec
xor ecx, ecx
add rsp, 0x28
jmp fcn.140008c54

Function at 0x140008f08
Capabilities:
Set environment variable

Disassembly:
sub rsp, 0x28
mov rax, rdx
test rcx, rcx
je 0x140008f28
test rax, rax
lea rdx, [0x140015496]
cmovne rdx, rax
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
add rsp, 0x28
ret
Function at 0x14000ab84
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov ebx, edx
mov rdx, rcx
mov rcx, qword [0x140018300]
call fcn.140011104
mov rsi, rax
test rax, rax
je 0x14000abfd
mov rcx, qword [rax + 8]
mov rax, qword [rcx + 0x28]
test rax, rax
je 0x14000abc2
mov edx, ebx
mov rcx, rsi
call rax
jmp 0x14000abfd
mov rcx, qword [rsi]
call qword [sym.imp.USER32.DLL_GetWindowTextLengthA]
mov edx, ebx
mov ecx, eax
mov edi, eax
call fcn.140012290
lea r8d, [rdi + 1]
mov byte [rax], 0
mov rcx, qword [rsi]
mov rdx, rax
mov rbx, rax
call qword [sym.imp.USER32.DLL_GetWindowTextA]
mov rcx, rbx
call sub.msvcrt.dll_strlen
sub edi, eax
mov ecx, edi
call fcn.140012430
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x14000b0ec
Capabilities:
Check os version

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x160
lea rcx, [rsp + 0x20]
mov ebx, 0xc8
mov dword [rsp + 0x20], 0x94
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x14000b201
mov eax, dword [rsp + 0x30]
dec eax
je 0x14000b1de
dec eax
jne 0x14000b201
lea rcx, [rsp + 0xc0]
xor edi, edi
mov dword [rsp + 0xc0], 0x9c
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x14000b159
lea eax, [rdi + 1]
cmp byte [rsp + 0x15a], al
cmove edi, eax
mov eax, dword [rsp + 0x24]
sub eax, 3
je 0x14000b1d7
dec eax
je 0x14000b1d0
dec eax
je 0x14000b1a6
dec eax
jne 0x14000b201
mov eax, dword [rsp + 0x28]
test eax, eax
je 0x14000b19a
dec eax
je 0x14000b18e
dec eax
jne 0x14000b201
neg edi
sbb ebx, ebx
and ebx, 0xfffffffb
add ebx, 0x5f
jmp 0x14000b201
neg edi
sbb ebx, ebx
and ebx, 0xfffffffb
add ebx, 0x55
jmp 0x14000b201
neg edi
sbb ebx, ebx
and ebx, 0xfffffffb
add ebx, 0x4b
jmp 0x14000b201
mov eax, dword [rsp + 0x28]
test eax, eax
je 0x14000b1c9
dec eax
je 0x14000b1c2
dec eax
jne 0x14000b201
neg edi
sbb ebx, ebx
and ebx, 0xfffffffb
add ebx, 0x41
jmp 0x14000b201
mov ebx, 0x3c
jmp 0x14000b201
mov ebx, 0x32
jmp 0x14000b201
mov ebx, 0x14
jmp 0x14000b201
mov ebx, 5
jmp 0x14000b201
mov eax, dword [rsp + 0x28]
test eax, eax
je 0x14000b1fc
cmp eax, 0xa
je 0x14000b1f5
cmp eax, 0x5a
jne 0x14000b201
lea ebx, [rax - 0x32]
jmp 0x14000b201
mov ebx, 0x1e
jmp 0x14000b201
mov ebx, 0xa
movsxd rax, ebx
mov rbx, qword [rsp + 0x170]
add rsp, 0x160
pop rdi
ret
Function at 0x14000c540
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.USER32.DLL_GetFocus]
mov rdi, rax
test rax, rax
je 0x14000c5e9
mov ecx, 9
call qword [sym.imp.USER32.DLL_GetKeyState]
test al, al
jns 0x14000c5e9
mov ecx, 0x11
call qword [sym.imp.USER32.DLL_GetKeyState]
test al, al
js 0x14000c5e9
mov ecx, 0x10
call qword [sym.imp.USER32.DLL_GetKeyState]
test al, al
js 0x14000c5e9
mov ecx, 0x12
call qword [sym.imp.USER32.DLL_GetKeyState]
test al, al
js 0x14000c5e9
lea rdx, [rsp + 0x40]
mov r8d, 5
mov rcx, rdi
call qword [sym.imp.USER32.DLL_GetClassNameA]
lea rdx, str.Rich
lea rcx, [rsp + 0x40]
mov r8d, 4
call sub.msvcrt.dll_strncmp
test eax, eax
jne 0x14000c5e9
xor r9d, r9d
xor r8d, r8d
mov edx, 0x44e
mov rcx, rdi
call qword [sym.imp.USER32.DLL_SendMessageA]
bt rax, 0xb
jae 0x14000c693
test rbx, rbx
je 0x14000c628
mov ecx, 0x11
call qword [sym.imp.USER32.DLL_GetKeyState]
test al, al
js 0x14000c61b
mov ecx, 0x10
call qword [sym.imp.USER32.DLL_GetKeyState]
test al, al
js 0x14000c61b
mov ecx, 0x12
call qword [sym.imp.USER32.DLL_GetKeyState]
test al, al
jns 0x14000c628
mov edx, 1
mov rcx, rbx
call fcn.14000c4ec
test rdi, rdi
je 0x14000c642
lea rdx, str.PB_Hotkey
mov rcx, rdi
call qword [sym.imp.USER32.DLL_GetPropA]
test rax, rax
jne 0x14000c693
lea rdx, str.PB_WindowID
mov rcx, rbx
call qword [sym.imp.USER32.DLL_GetPropA]
mov rdi, rax
test rax, rax
je 0x14000c693
lea rdx, [rsp + 0x38]
mov rcx, rbx
call qword [sym.imp.USER32.DLL_GetWindowThreadProcessId]
test eax, eax
je 0x14000c693
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [rsp + 0x38], eax
jne 0x14000c693
mov rcx, qword [0x140018320]
lea rdx, [rdi - 1]
call fcn.140011104
test rax, rax
je 0x14000c693
mov rax, qword [rax + 0x10]
jmp 0x14000c695
xor eax, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x14000e284
Capabilities:
Allocate thread local storage

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x1400184a0], eax
add rsp, 0x28
ret

Function at 0x14000e29c
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov edx, ecx
mov esi, 0x104
mov ecx, esi
call fcn.140012290
mov ecx, esi
mov rdx, rax
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
movsxd rbx, eax
test eax, eax
je 0x14000e2db
cmp byte [rbx + rdi - 1], 0x5c
je 0x14000e2db
mov byte [rbx + rdi], 0x5c
inc ebx
sub esi, ebx
mov ecx, esi
call fcn.140012430
mov rsi, qword [rsp + 0x38]
movsxd r11, ebx
mov rbx, qword [rsp + 0x30]
mov byte [r11 + rdi], 0
add rsp, 0x20
pop rdi
ret

Function at 0x14000e2fc
Capabilities:
Set current directory

Disassembly:
sub rsp, 0x28
test rcx, rcx
je 0x14000e30f
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
cdqe
jmp 0x14000e311
xor eax, eax
add rsp, 0x28
ret
Function at 0x14000e3b4
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov edx, ecx
mov ebx, 0x104
mov ecx, ebx
call fcn.140012290
mov ecx, ebx
mov rdx, rax
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
lea rcx, str.Kernel32.DLL
mov edi, eax
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rbp, rax
test rax, rax
je 0x14000e426
lea rdx, [0x140015a78]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14000e41d
mov r8d, ebx
mov rdx, rsi
mov rcx, rsi
call rax
mov edi, eax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
sub ebx, edi
mov ecx, ebx
call fcn.140012430
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
movsxd r11, edi
mov byte [r11 + rsi], 0
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x14000e44c
Capabilities:
Delete file

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
je 0x14000e477
test dl, 2
je 0x14000e46a
mov edx, pe_nt_image_headers64
call qword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
cdqe
jmp 0x14000e479
xor eax, eax
add rsp, 0x20
pop rbx
ret
xor edx, edx
jmp 0x14000e44c

Function at 0x14000e480
Capabilities:
Delete file
Set file attributes

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
je 0x14000e477
test dl, 2
je 0x14000e46a
mov edx, pe_nt_image_headers64
call qword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
cdqe
jmp 0x14000e479
xor eax, eax
add rsp, 0x20
pop rbx
ret
xor edx, edx
jmp 0x14000e44c

Function at 0x14000e488
Capabilities:
Create directory

Disassembly:
sub rsp, 0x138
test rcx, rcx
je 0x14000e4fb
mov rdx, rcx
lea rcx, [rsp + 0x20]
mov r8d, 0x104
call sub.msvcrt.dll_strncpy
lea rcx, [rsp + 0x20]
mov byte [rsp + 0x124], 0
call sub.msvcrt.dll_strlen
lea rcx, [rsp + rax + 0x20]
lea rax, [rsp + 0x20]
cmp rcx, rax
jbe 0x14000e4e7
lea rdx, [rcx - 1]
mov al, byte [rdx]
cmp al, 0x20
je 0x14000e4da
cmp al, 0x5c
je 0x14000e4da
cmp al, 0x2f
jne 0x14000e4e7
lea rax, [rsp + 0x20]
mov rcx, rdx
cmp rdx, rax
ja 0x14000e4c8
mov byte [rcx], 0
lea rcx, [rsp + 0x20]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
cdqe
jmp 0x14000e4fd
xor eax, eax
add rsp, 0x138
ret

Function at 0x14000e610
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x30
xor eax, eax
mov rbx, rcx
mov dword [rsp + 0x40], eax
cmp dword [rcx + 0x1c], eax
jne 0x14000e656
mov r8d, dword [rcx + 0x10]
mov rdx, qword [rcx + 8]
lea r9, [rsp + 0x40]
sub r8d, dword [rcx + 0x14]
mov rcx, qword [rcx]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov r11d, dword [rbx + 0x10]
movsxd rax, dword [rsp + 0x40]
mov dword [rbx + 0x14], r11d
add rsp, 0x30
pop rbx
ret
cdqe
add rsp, 0x30
pop rbx
ret
Function at 0x14000ed60
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
xor ebx, ebx
mov rsi, rdx
mov dword [rsp + 0x48], ebx
test rdx, rdx
je 0x14000edf1
cmp byte [rdx], bl
je 0x14000edf1
mov rdx, rcx
mov rcx, qword [0x1400184b0]
call fcn.140011104
mov r11, rax
test rax, rax
je 0x14000eded
or rcx, 0xffffffffffffffff
mov rdi, rsi
mov rdx, rsi
cmp qword [rax + 8], rbx
je 0x14000edcf
xor eax, eax
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
mov rcx, r11
call fcn.14000ef90
mov ebx, eax
cdqe
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
xor eax, eax
lea r9, [rsp + 0x48]
mov qword [rsp + 0x20], rbx
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
mov rcx, qword [r11]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov ebx, dword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
movsxd rax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x14000ee10
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
xor ebx, ebx
mov edi, r8d
mov rsi, rdx
mov dword [rsp + 0x48], ebx
test rdx, rdx
je 0x14000ee88
test r8d, r8d
je 0x14000ee88
mov rdx, rcx
mov rcx, qword [0x1400184b0]
call fcn.140011104
test rax, rax
je 0x14000ee84
mov r8d, edi
mov rdx, rsi
cmp qword [rax + 8], rbx
je 0x14000ee71
mov rcx, rax
call fcn.14000ef90
mov ebx, eax
cdqe
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
mov rcx, qword [rax]
lea r9, [rsp + 0x48]
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov ebx, dword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
movsxd rax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x14000eea0
Capabilities:
Write file on windows

Disassembly:
push rbx
push rbp
push rsi
sub rsp, 0x30
mov rsi, rdx
mov rdx, rcx
mov rcx, qword [0x1400184b0]
xor ebp, ebp
mov dword [rsp + 0x60], ebp
mov dword [rsp + 0x68], ebp
call fcn.140011104
mov rbx, rax
test rax, rax
je 0x14000ef80
test rsi, rsi
je 0x14000ef2b
cmp byte [rsi], bpl
je 0x14000ef2b
or rcx, 0xffffffffffffffff
mov qword [rsp + 0x50], rdi
mov rdx, rsi
mov rdi, rsi
cmp qword [rax + 8], rbp
je 0x14000ef08
xor eax, eax
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
mov rcx, rbx
call fcn.14000ef90
mov dword [rsp + 0x60], eax
jmp 0x14000ef26
xor eax, eax
lea r9, [rsp + 0x60]
mov qword [rsp + 0x20], rbp
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rdi, qword [rsp + 0x50]
mov r8d, 2
lea rdx, [0x140015aa0]
cmp qword [rbx + 8], rbp
je 0x14000ef59
mov rcx, rbx
call fcn.14000ef90
mov rdx, rax
mov eax, dword [rsp + 0x60]
add eax, edx
cdqe
add rsp, 0x30
pop rsi
pop rbp
pop rbx
ret
mov rcx, qword [rbx]
lea r9, [rsp + 0x68]
mov qword [rsp + 0x20], rbp
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [rsp + 0x60]
mov edx, dword [rsp + 0x68]
add eax, edx
cdqe
add rsp, 0x30
pop rsi
pop rbp
pop rbx
ret
movsxd rax, dword [rsp + 0x60]
add rsp, 0x30
pop rsi
pop rbp
pop rbx
ret