joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140038c90
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r12
push r13
push r14
mov eax, 0x1030
call fcn.1400baa60
sub rsp, rax
mov rax, qword [0x1400e0920]
xor rax, rsp
mov qword [rsp + 0x1020], rax
mov r12d, edx
lea rdx, [0x1400c378c]
xor r8d, r8d
call fcn.140031a0c
mov rbp, rax
xor eax, eax
cmp rbp, rax
jne 0x140038ce7
mov eax, 0x32
jmp 0x140038e3c
mov r13d, 0x1000
cmp r12d, 0x8000
jbe 0x140038df4
mov edx, r12d
xor r8d, r8d
mov rcx, rbp
shr edx, 3
add edx, r13d
call fcn.1400aa484
mov r14d, 1
lea rcx, [rsp + 0x20]
mov rdx, r14
mov r9, rbp
mov r8, r13
call fcn.1400aa184
lea rcx, [rsp + 0x20]
mov rdx, rax
call fcn.1400388ac
mov edx, r12d
xor r8d, r8d
shr edx, 2
mov rcx, rbp
mov esi, eax
add edx, r13d
call fcn.1400aa484
lea rcx, [rsp + 0x20]
mov r9, rbp
mov r8, r13
mov rdx, r14
call fcn.1400aa184
lea rcx, [rsp + 0x20]
mov rdx, rax
call fcn.1400388ac
lea edx, [r12 + r12]
xor r8d, r8d
shr edx, 2
mov rcx, rbp
mov edi, eax
add edx, r13d
call fcn.1400aa484
lea rcx, [rsp + 0x20]
mov r9, rbp
mov r8, r13
mov rdx, r14
call fcn.1400aa184
lea rcx, [rsp + 0x20]
mov rdx, rax
call fcn.1400388ac
lea edx, [r12 + r12*2]
xor r8d, r8d
shr edx, 2
mov rcx, rbp
mov ebx, eax
add edx, r13d
call fcn.1400aa484
lea rcx, [rsp + 0x20]
mov r9, rbp
mov r8, r13
mov rdx, r14
call fcn.1400aa184
lea rcx, [rsp + 0x20]
mov rdx, rax
call fcn.1400388ac
mov rcx, rbp
add eax, ebx
add eax, edi
add eax, esi
cdq
and edx, 3
lea ebx, [rdx + rax]
sar ebx, 2
call fcn.1400aa5c0
mov eax, ebx
jmp 0x140038e3c
cmp r12d, r13d
jbe 0x140038e02
mov rax, r12
sub rax, r13
shr rax, 1
xor r8d, r8d
mov edx, eax
mov rcx, rbp
call fcn.1400aa484
lea rcx, [rsp + 0x20]
mov r9, rbp
mov r8, r13
mov edx, 1
call fcn.1400aa184
mov rcx, rbp
mov rbx, rax
call fcn.1400aa5c0
lea rcx, [rsp + 0x20]
mov rdx, rbx
call fcn.1400388ac
mov rcx, qword [rsp + 0x1020]
xor rcx, rsp
call fcn.1400a86e0
lea r11, [rsp + 0x1030]
mov rbx, qword [r11 + 0x40]
mov rbp, qword [r11 + 0x48]
mov rsp, r11
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x14003c750
Capabilities:
Enumerate pe sections
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
movzx r8d, byte [rcx]
mov rbx, rcx
lea rdi, [0x1400c64b0]
lea rcx, str.Setup.rar
mov rdx, rdi
call fcn.14005c428
movzx r8d, byte [rbx + 1]
lea rcx, str.Setup.zip
mov rdx, rdi
call fcn.14005c428
movzx r8d, byte [rbx + 2]
lea rcx, str.Setup.cab
mov rdx, rdi
call fcn.14005c428
movzx r8d, byte [rbx + 3]
lea rcx, str.Setup.arj
mov rdx, rdi
call fcn.14005c428
movzx r8d, byte [rbx + 4]
lea rcx, str.Setup.lzh
mov rdx, rdi
call fcn.14005c428
movzx r8d, byte [rbx + 5]
lea rcx, str.Setup.ace
mov rdx, rdi
call fcn.14005c428
movzx r8d, byte [rbx + 6]
lea rcx, str.Setup.7z
mov rdx, rdi
call fcn.14005c428
movzx r8d, byte [rbx + 7]
lea rcx, str.Setup.tar
mov rdx, rdi
call fcn.14005c428
movzx r8d, byte [rbx + 8]
lea rcx, str.Setup.gz
mov rdx, rdi
call fcn.14005c428
movzx r8d, byte [rbx + 9]
lea rcx, str.Setup.uue
mov rdx, rdi
call fcn.14005c428
movzx r8d, byte [rbx + 0xa]
lea rcx, str.Setup.bz2
mov rdx, rdi
call fcn.14005c428
movzx r8d, byte [rbx + 0xb]
lea rcx, str.Setup.jar
mov rdx, rdi
call fcn.14005c428
movzx r8d, byte [rbx + 0xc]
lea rcx, str.Setup.iso
mov rdx, rdi
call fcn.14005c428
movzx r8d, byte [rbx + 0xd]
lea rcx, str.Setup.z
mov rdx, rdi
call fcn.14005c428
movzx r8d, byte [rbx + 0x14]
lea rdi, str.SetupLinks
lea rdx, [0x1400c6338]
mov rcx, rdi
call fcn.14005c428
movzx r8d, byte [rbx + 0x15]
lea rdx, str.StartMenu
mov rcx, rdi
call fcn.14005c428
movzx r8d, byte [rbx + 0x16]
lea rdx, str.Programs
mov rcx, rdi
call fcn.14005c428
movzx r8d, byte [rbx + 0x17]
lea rdi, str.Setup
lea rdx, str.ShellExt
mov rcx, rdi
call fcn.14005c428
movzx r8d, byte [rbx + 0x18]
lea rdx, str.CascadedMenu
mov rcx, rdi
call fcn.14005c428
movzx r8d, byte [rbx + 0x19]
lea rdx, str.MenuIcons
mov rcx, rdi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.14005c428

Function at 0x14003cff4
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
lea rcx, [rsp + 0x40]
call qword [sym.imp.SHELL32.dll_SHGetMalloc]
lea r8, [rsp + 0x38]
mov edx, 0x10
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
mov rcx, qword [rsp + 0x38]
mov rdx, rbx
call qword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
mov rcx, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x38]
mov rax, qword [rcx]
call qword [rax + 0x28]
add rsp, 0x20
pop rbx
ret
Function at 0x14003d040
Capabilities:
Check if file exists
Delete file
Get file attributes

Disassembly:
push rdi
mov eax, 0x1080
call fcn.1400baa60
sub rsp, rax
mov rax, qword [0x1400e0920]
xor rax, rsp
mov qword [rsp + 0x1070], rax
mov edi, 0x400
lea r8, [rsp + 0x60]
mov r9, rdi
call fcn.1400529c4
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x14003d087
xor al, al
jmp 0x14003d0f7
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x860]
mov r8, rdi
call fcn.14006b658
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x860]
lea r8d, [rax + 0x38]
xor edx, edx
repne scasw ax, word [rdi]
xor edi, edi
not rcx
mov word [rsp + rcx*2 + 0x860], di
lea rcx, [rsp + 0x20]
call fcn.1400a9314
lea eax, [rdi + 0x14]
lea rcx, [rsp + 0x20]
mov word [rsp + 0x40], ax
lea rax, [rsp + 0x860]
mov dword [rsp + 0x28], 3
mov qword [rsp + 0x30], rax
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
cmp eax, edi
sete al
mov rcx, qword [rsp + 0x1070]
xor rcx, rsp
call fcn.1400a86e0
add rsp, 0x1080
pop rdi
ret
Function at 0x14003f354
Capabilities:
Get file system object information

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
mov eax, 0x1ce0
call fcn.1400baa60
sub rsp, rax
mov rax, qword [0x1400e0920]
xor rax, rsp
mov qword [rsp + 0x1cd0], rax
movsxd rax, dword [rcx + 0xa30]
xor r12d, r12d
mov rdi, rcx
cmp eax, r12d
je 0x14003f5fc
mov rsi, qword [rcx + rax*8 + 0x928]
mov qword [rsp + 0x40], r12
cmp rsi, r12
je 0x14003f5fc
mov rdx, qword [rcx]
mov rax, qword [rsi]
lea r9, [rsp + 0x40]
lea r8d, [r12 + 0x20]
mov rcx, rsi
call qword [rax + 0x20]
cmp eax, r12d
jne 0x14003f5fc
cmp qword [rsp + 0x40], r12
je 0x14003f5fc
lea rcx, [rsp + 0x50]
call qword [sym.imp.SHELL32.dll_SHGetDesktopFolder]
movsxd rdx, dword [rdi + 0xa30]
mov rcx, qword [rsp + 0x50]
mov rdx, qword [rdi + rdx*8 + 0x828]
lea r9, [rsp + 0x13d0]
lea r8d, [r12 + 1]
mov qword [rsp + 0x20], 0x480
call fcn.140026758
cmp al, r12b
je 0x14003f423
lea rcx, [rsp + 0x13d0]
call fcn.140099b2c
mov qword [rsp + 0x30], r12
mov ebp, r12d
jmp 0x14003f5ce
mov rax, qword [rsi]
lea r9, [rsp + 0x38]
lea r8, [rsp + 0x30]
mov edx, 1
mov rcx, rsi
mov dword [rsp + 0x38], 0x10000000
call qword [rax + 0x48]
bt dword [rsp + 0x38], 0x1c
jae 0x14003f5bc
mov rdx, qword [rsp + 0x30]
lea r9, [rsp + 0xbd0]
xor r8d, r8d
mov rcx, rsi
mov qword [rsp + 0x20], 0x400
call fcn.140026758
cmp al, r12b
je 0x14003f5bc
movsxd rcx, dword [rdi + 0xa30]
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rdi + rcx*8 + 0x828]
call fcn.140026620
lea r8, [rsp + 0xd0]
mov r9d, 0x2b8
xor edx, edx
mov rcx, rax
mov dword [rsp + 0x20], 0x4409
mov rbx, rax
call qword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov rcx, qword [0x140126b70]
mov r8, qword [rcx]
mov rdx, rbx
call qword [r8 + 0x28]
mov eax, dword [rsp + 0xd8]
lea rcx, [rsp + 0x390]
mov dword [rsp + 0x7c], eax
lea rax, [rsp + 0xbd0]
xor edx, edx
mov r8d, 0x838
mov dword [rsp + 0x58], 7
mov dword [rsp + 0x5c], ebp
mov qword [rsp + 0x70], rax
mov dword [rsp + 0x60], r12d
call fcn.1400a9314
mov r11, qword [rsp + 0x30]
mov dword [rsp + 0xbac], 0x20
mov rcx, r12
mov qword [rsp + 0xbb8], r11
movzx eax, word [rsp + rcx + 0xbd0]
add rcx, 2
mov word [rsp + rcx + 0x38e], ax
cmp ax, r12w
jne 0x14003f52d
lea rdx, [rsp + 0x390]
lea rcx, [0x140116200]
mov dword [rsp + 0xba0], 0x10
call fcn.14003eecc
mov rcx, qword [rdi]
lea r9, [rsp + 0x58]
xor r8d, r8d
mov edx, 0x104d
mov qword [rsp + 0x80], rax
call qword [sym.imp.USER32.dll_SendMessageW]
lea rcx, [rsp + 0x2e8]
lea r9, [rsp + 0x90]
mov qword [rsp + 0xa8], rcx
mov rcx, qword [rdi]
mov edx, 0x1074
movsxd r8, eax
mov dword [rsp + 0x98], 2
call qword [sym.imp.USER32.dll_SendMessageW]
inc ebp
jmp 0x14003f5ce
mov rcx, qword [0x140126b70]
mov rdx, qword [rsp + 0x30]
mov rax, qword [rcx]
call qword [rax + 0x28]
mov rcx, qword [rsp + 0x40]
lea r9, [rsp + 0x48]
lea r8, [rsp + 0x30]
mov rax, qword [rcx]
mov edx, 1
call qword [rax + 0x18]
cmp eax, r12d
je 0x14003f430
mov rcx, qword [rsp + 0x40]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rsp + 0x1cd0]
xor rcx, rsp
call fcn.1400a86e0
lea r11, [rsp + 0x1ce0]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r12
pop rdi
pop rsi
ret
Function at 0x14003fcc4
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
mov rbx, rcx
lea rcx, [rsp + 0x20]
call qword [sym.imp.USER32.dll_GetCursorPos]
mov rcx, qword [rbx]
lea rdx, [rsp + 0x20]
call qword [sym.imp.USER32.dll_ScreenToClient]
mov rcx, qword [rbx]
lea r9, [rsp + 0x20]
xor r8d, r8d
mov edx, 0x1012
call qword [sym.imp.USER32.dll_SendMessageW]
mov ecx, 0x10
call qword [sym.imp.USER32.dll_GetKeyState]
mov ebx, 1
mov si, ax
lea ecx, [rbx + 0x11]
shr esi, 0xf
and esi, ebx
call qword [sym.imp.USER32.dll_GetKeyState]
lea ecx, [rbx + 0x10]
mov di, ax
shr edi, 0xf
and edi, ebx
call qword [sym.imp.USER32.dll_GetKeyState]
mov r11w, ax
shr r11d, 0xf
and r11d, ebx
test byte [rsp + 0x28], bl
jne 0x14003fd55
test esi, esi
jne 0x14003fd55
test edi, edi
jne 0x14003fd55
test r11d, r11d
je 0x14003fd57
xor ebx, ebx
mov rsi, qword [rsp + 0x58]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret

Function at 0x14003fd6c
Capabilities:
Get file system object information

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0xb40
mov rax, qword [0x1400e0920]
xor rax, rsp
mov qword [rsp + 0xb30], rax
mov rdi, rcx
mov rcx, qword [rcx]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x1004
call qword [sym.imp.USER32.dll_SendMessageW]
lea rcx, [rsp + 0x330]
mov edx, 0x400
mov rbx, rax
call fcn.1400861fc
lea r8, [rsp + 0x70]
lea rcx, [rsp + 0x330]
mov r9d, 0x2b8
xor edx, edx
mov dword [rsp + 0x20], 0x4001
call qword [sym.imp.SHELL32.dll_SHGetFileInfoW]
xor edx, edx
lea r8d, [rdx + 0x38]
lea rcx, [rsp + 0x30]
call fcn.1400a9314
mov eax, dword [rsp + 0x78]
and dword [rsp + 0x38], 0
mov ecx, 0x3d4
mov dword [rsp + 0x54], eax
mov dword [rsp + 0x30], 3
mov dword [rsp + 0x34], ebx
call fcn.140061d94
mov rcx, qword [rdi]
lea r9, [rsp + 0x30]
xor r8d, r8d
mov edx, 0x104d
mov qword [rsp + 0x48], rax
call qword [sym.imp.USER32.dll_SendMessageW]
mov rcx, qword [rdi]
call qword [sym.imp.USER32.dll_SetFocus]
mov rcx, qword [rdi]
movsxd r8, ebx
xor r9d, r9d
mov edx, 0x1076
mov byte [rdi + 0x28], 1
call qword [sym.imp.USER32.dll_SendMessageW]
mov rcx, qword [rsp + 0xb30]
xor rcx, rsp
call fcn.1400a86e0
mov rbx, qword [rsp + 0xb58]
add rsp, 0xb40
pop rdi
ret
Function at 0x1400448d4
Capabilities:
Copy file

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
mov eax, 0x1830
call fcn.1400baa60
sub rsp, rax
mov rax, qword [0x1400e0920]
xor rax, rsp
mov qword [rsp + 0x1820], rax
mov rbx, rcx
lea rdx, [rsp + 0x1020]
lea rcx, [0x140105fe0]
mov r8d, 0x400
call fcn.140012a08
lea rcx, [rsp + 0x1020]
call fcn.140052af8
lea rdx, str.rarkey
mov r8d, 6
mov rcx, rax
call fcn.140073fe4
xor esi, esi
cmp eax, esi
jne 0x140044aca
lea rdi, str.rarreg.key
mov rcx, rbx
mov rdx, rdi
call fcn.140042de4
cmp al, sil
jne 0x140044976
lea rdx, str.rarreg.txt
mov rcx, rbx
call fcn.140042de4
cmp al, sil
je 0x140044aca
lea rcx, [rsp + 0x820]
call fcn.14008bcf8
cmp al, sil
je 0x140044aca
lea rdx, [rsp + 0x20]
mov r8d, 0x400
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea rcx, [rsp + 0x20]
call fcn.140052af8
movzx ecx, word [rdi]
add rdi, 2
mov word [rax], cx
add rax, 2
cmp cx, si
jne 0x1400449a9
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x820]
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_CopyFileW]
cmp eax, esi
jne 0x140044a38
lea rcx, [rsp + 0x20]
call fcn.140053344
lea rcx, [rsp + 0x20]
call fcn.140052588
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x20]
lea rdx, [rsp + 0x20]
xor r8d, r8d
repne scasw ax, word [rdi]
mov rax, qword [str.rarreg.key]
lea rcx, [rsp + 0x820]
mov qword [rdi - 2], rax
mov rax, qword [0x1400c7830]
mov qword [rdi + 6], rax
mov eax, dword [0x1400c7838]
mov dword [rdi + 0xe], eax
movzx eax, word [0x1400c783c]
mov word [rdi + 0x12], ax
call qword [sym.imp.KERNEL32.dll_CopyFileW]
lea rcx, [rsp + 0x820]
call fcn.140031400
mov rcx, qword [0x1400ffd80]
call qword [sym.imp.USER32.dll_SetForegroundWindow]
lea rdx, [rsp + 0x20]
mov r8b, 1
xor ecx, ecx
call fcn.14001b938
lea rcx, [0x1401055a0]
mov byte [0x1400ec040], al
call fcn.1400447d4
cmp byte [0x1400ec040], sil
je 0x140044aae
mov ecx, 0x368
call fcn.140061d94
mov ecx, 0x367
mov rdi, rax
call fcn.140061d94
mov rcx, qword [0x1400ffd80]
mov r9d, 0x30
mov r8, rdi
mov rdx, rax
call qword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x140044aca
lea rcx, [rsp + 0x20]
call fcn.140031400
mov ecx, 0x366
call fcn.140061d94
mov rcx, rax
call fcn.140096028
mov rcx, qword [rsp + 0x1820]
xor rcx, rsp
call fcn.1400a86e0
lea r11, [rsp + 0x1830]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x140044af0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r12
push r13
push r14
mov eax, 0x1840
call fcn.1400baa60
sub rsp, rax
mov rax, qword [0x1400e0920]
xor rax, rsp
mov qword [rsp + 0x1830], rax
mov rbp, rcx
lea rdi, [0x1400c39c0]
mov rsi, rdx
mov ecx, 3
mov r13, rdx
repe cmpsw word [rsi], word [rdi]
sete r12b
xor ebx, ebx
lea r14d, [rbx + 1]
cmp byte [rbp + 0x82a], bl
je 0x140044b82
cmp r12b, bl
lea rdi, [0x1400c3258]
lea ecx, [rbx + 2]
mov edx, ebx
mov rsi, r13
cmovne edx, r14d
repe cmpsw word [rsi], word [rdi]
jne 0x140044b6c
mov edx, dword [rbp + 0xa30]
cmp edx, ebx
je 0x140044b82
xor r8d, r8d
mov rcx, rbp
call fcn.140040060
xor edx, edx
jmp 0x140044d65
mov byte [rbp + 0x82a], bl
cmp byte [0x1400fec05], bl
je 0x140044c7d
lea rdx, str.FlatView
lea rcx, str.FileList
xor r8d, r8d
call fcn.14005c490
cmp eax, ebx
je 0x140044bb7
cmp r12b, bl
je 0x140044d6d
lea r14, [0x140105fe0]
lea rdx, [rsp + 0x1030]
mov r8d, 0x400
mov rcx, r14
call fcn.1400129e8
lea rdi, [0x1400c3258]
mov rsi, r13
mov ecx, 2
repe cmpsw word [rsi], word [rdi]
je 0x140044c15
mov rdx, r13
mov rcx, r14
call fcn.1400128c8
cmp al, bl
je 0x140044c15
neg r12b
lea rax, [rsp + 0x1030]
mov rcx, rbp
sbb rdx, rdx
and rdx, rax
call fcn.140043d74
jmp 0x140044d6d
lea rdx, [rsp + 0x830]
mov r8d, 0x400
mov rcx, r14
call fcn.140012a08
mov rdx, rbx
movzx eax, word [rsp + rdx + 0x830]
add rdx, 2
mov word [rsp + rdx + 0x2e], ax
cmp ax, bx
jne 0x140044c2e
lea rcx, [rsp + 0x30]
call fcn.1400530d0
lea rcx, [rsp + 0x30]
call fcn.14008633c
mov rcx, rbp
call fcn.140042cc8
cmp al, bl
je 0x140044d6d
lea rcx, [rsp + 0x830]
call fcn.140052af8
mov rdx, rax
jmp 0x140044d65
lea rcx, [rsp + 0x1030]
mov edx, 0x400
call fcn.140087598
cmp r12b, bl
je 0x140044d45
mov rcx, rbx
movzx eax, word [rsp + rcx + 0x1030]
add rcx, 2
mov word [rsp + rcx + 0x2e], ax
cmp ax, bx
jne 0x140044c9b
lea rdx, [rsp + 0x830]
lea rcx, [rsp + 0x30]
call fcn.140053e34
lea rcx, [rsp + 0x30]
call fcn.140052588
lea rcx, [rsp + 0x830]
call fcn.140052588
lea rdx, [rsp + 0x830]
lea rcx, [rsp + 0x30]
call fcn.140073f2c
cmp eax, ebx
jne 0x140044d45
cmp dword [rbp + 0xa30], ebx
jle 0x140044d04
mov byte [rbp + 0x82a], r14b
jmp 0x140044b7b
mov rcx, qword [rbp]
lea r8, [rsp + 0x20]
mov edx, 0x11
mov qword [rsp + 0x20], rbx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
mov rdx, qword [rsp + 0x20]
lea rcx, [0x1401055a0]
call fcn.140040f64
mov rcx, qword [0x140126b70]
mov rdx, qword [rsp + 0x20]
mov rax, qword [rcx]
call qword [rax + 0x28]
jmp 0x140044b7b
mov rcx, r13
call fcn.14008633c
cmp r12b, bl
je 0x140044d62
lea rcx, [rsp + 0x1030]
call fcn.140052af8
mov rbx, rax
mov rdx, rbx
mov rcx, rbp
call fcn.1400433a8
mov rcx, qword [rsp + 0x1830]
xor rcx, rsp
call fcn.1400a86e0
lea r11, [rsp + 0x1840]
mov rbx, qword [r11 + 0x40]
mov rbp, qword [r11 + 0x48]
mov rsp, r11
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x140046b98
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
sub rsp, 0x180
mov rax, qword [0x1400e0920]
xor rax, rsp
mov qword [rsp + 0x170], rax
xor ebp, ebp
movsxd rdi, r8d
mov rbx, rdx
mov rsi, rcx
cmp qword [0x1400df300], rbp
jne 0x140046c0d
lea r9d, [rbp + 0x64]
lea r8, [rsp + 0xa0]
lea edx, [rbp + 0xf]
mov ecx, 0x400
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
movzx r11d, word [rsp + 0xa0]
lea rax, [0x140116ba4]
mov word [0x140116ba4], r11w
mov word [0x140116ba6], bp
mov qword [0x1400df300], rax
lea rdx, [rsp + 0x30]
mov rcx, rsi
call fcn.14006b6b8
lea r9, [0x1400df2e8]
lea r8, [rsp + 0x30]
xor edx, edx
mov ecx, 0x400
mov dword [rsp + 0x28], edi
mov word [rbx], bp
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_GetNumberFormatW]
mov word [rbx + rdi*2 - 2], bp
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.1400a86e0
mov rbx, qword [rsp + 0x1b8]
add rsp, 0x180
pop rdi
pop rsi
pop rbp
ret

Function at 0x140046d28
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
sub rsp, 0x20
xor r13d, r13d
mov rbx, rcx
cmp rcx, r13
je 0x140046e84
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rbx
repne scasw ax, word [rdi]
not rcx
sub rcx, 1
mov r12, rcx
je 0x140046e84
xor ecx, ecx
call qword [sym.imp.USER32.dll_OpenClipboard]
cmp eax, r13d
jne 0x140046d7f
xor eax, eax
jmp 0x140046e89
call qword [sym.imp.USER32.dll_EmptyClipboard]
lea rsi, [r12 + r12 + 2]
mov ecx, 0x2002
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rdi, rax
cmp rax, r13
je 0x140046dd5
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
cmp rax, r13
je 0x140046dd5
lea r8, [r12 + 1]
mov rdx, rax
mov rcx, rbx
call fcn.140073c10
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rdx, rdi
mov ecx, 1
call qword [sym.imp.USER32.dll_SetClipboardData]
mov rdx, rsi
mov ecx, 0x2002
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rdi, rax
cmp rax, r13
je 0x140046e2f
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov rbp, rax
cmp rax, r13
je 0x140046e2f
lea r8, [r12 + 1]
mov rdx, rax
mov rcx, rbx
call fcn.140073c10
mov rdx, rbp
mov rcx, rbp
call qword [sym.imp.USER32.dll_CharToOemA]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rdx, rdi
mov ecx, 7
call qword [sym.imp.USER32.dll_SetClipboardData]
mov rdx, rsi
mov ecx, 0x2002
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rdi, rax
cmp rax, r13
je 0x140046e7e
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
cmp rax, r13
je 0x140046e7e
sub rax, rbx
movzx ecx, word [rbx]
mov word [rax + rbx], cx
add rbx, 2
cmp cx, r13w
jne 0x140046e56
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rdx, rdi
mov ecx, 0xd
call qword [sym.imp.USER32.dll_SetClipboardData]
call qword [sym.imp.USER32.dll_CloseClipboard]
mov eax, 1
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r13
pop r12
pop rdi
ret
Function at 0x140047eac
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
sub rsp, 0xa0
mov rax, qword [0x1400e0920]
xor rax, rsp
mov qword [rsp + 0x90], rax
and dword [rsp + 8], 0
and dword [rsp + 4], 0
and dword [rsp], 0
lea ebp, [r8 - 0x78]
xor r9d, r9d
lea rbx, [rdx + 2]
lea r8, [rsp]
cmp r9d, ebp
jge 0x140047f7b
mov r10d, dword [r8]
mov ecx, ebp
mov eax, 0x88888889
sub ecx, r9d
lea r12, [rsp + 0x10]
mov rdi, rbx
dec ecx
mul ecx
shr edx, 0xa
lea esi, [rdx + 1]
xor edx, edx
mov r11, rdi
mov cl, byte [r11 - 1]
mov al, byte [r11 - 2]
add rdx, 3
sub al, cl
mov byte [rsp + rdx + 0xe], cl
mov byte [rsp + rdx + 0xd], al
mov al, byte [r11]
add r11, 3
sub al, cl
cmp rdx, 0x78
mov byte [rsp + rdx + 0xf], al
jl 0x140047f20
mov ecx, 3
mov al, byte [rsp + rcx + 0x10]
inc rcx
sub al, byte [r12 + rcx - 4]
movsx eax, al
cdq
xor eax, edx
sub eax, edx
add r10d, eax
cmp rcx, 0x78
jl 0x140047f4e
add rdi, 0x780
sub rsi, 1
jne 0x140047f1b
mov dword [r8], r10d
inc r9d
add r8, 4
inc rbx
cmp r9d, 2
jle 0x140047ef7
mov eax, dword [rsp]
mov ecx, dword [rsp + 4]
cmp eax, ecx
ja 0x140047fa4
cmp eax, dword [rsp + 8]
ja 0x140047fa4
xor eax, eax
jmp 0x140047fae
cmp dword [rsp + 8], ecx
sbb eax, eax
neg eax
inc eax
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.1400a86e0
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r12
ret

Function at 0x140048518
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
lea rax, [rsp + 0x50]
mov r9, rdx
mov r8, rcx
mov qword [rsp + 0x28], rax
and dword [rsp + 0x20], 0
mov edx, 0x10000
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rbx, rax
test rax, rax
jne 0x140048576
lea rdx, str.CreateThread_failed
lea rcx, [0x1400ec668]
call fcn.140028bc4
lea rcx, [0x1400ec668]
call fcn.1400286f0
lea edx, [rbx + 2]
lea rcx, [0x1400ec668]
call fcn.140028ea4
mov rax, rbx
add rsp, 0x30
pop rbx
ret
Function at 0x14004ea48
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 0x18], rbx
mov dword [rax + 0x20], r9d
mov qword [rax + 0x10], rdx
mov qword [rax + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov r12d, dword [rsp + 0x60]
xor r11d, r11d
mov eax, r9d
lea ebx, [r11 + 1]
mov r14d, r8d
mov r10d, 0x400
cmp r12d, ebx
mov esi, r11d
mov rbp, rbx
jl 0x14004eb59
lea eax, [r12 + r12]
lea ecx, [rbx + 7]
sub r14d, eax
mov r8d, r11d
mov edi, r14d
mov r9, rdx
mov r15d, 4
cmp edi, ecx
mov eax, edi
mov r11, r9
cmovg eax, ecx
movsxd r13, eax
add r13, r9
cmp r9, r13
jae 0x14004eaf6
lea r12, [r9 + rbp]
mov dl, byte [r12]
mov al, byte [r12 + rbp]
sub al, dl
sub dl, byte [r11]
movsx ecx, al
movsx eax, dl
sub eax, ecx
mov ecx, 0x20
cdq
xor eax, edx
sub eax, edx
cmp eax, ecx
cmovl ecx, eax
inc r11
inc r12
add r8d, ecx
cmp r11, r13
jb 0x14004eabf
mov ecx, 8
add r9, 0x40
sub edi, 0x40
sub r15, 1
jne 0x14004eaa6
mov r12d, dword [rsp + 0x60]
xor r11d, r11d
cmp r8d, r10d
jge 0x14004eb3d
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 0x2f0]
cmp eax, r11d
je 0x14004eb32
cmp esi, eax
jne 0x14004eb32
mov eax, r10d
lea ecx, [r8 + r8*4]
shl eax, 2
cmp ecx, eax
jge 0x14004eb3d
cmp r8d, 0x10
mov esi, ebx
mov r10d, r8d
jl 0x14004eb55
mov rdx, qword [rsp + 0x48]
inc ebx
inc rbp
cmp ebx, r12d
mov ecx, 8
jle 0x14004ea97
mov eax, dword [rsp + 0x58]
mov rbx, qword [rsp + 0x50]
imul r10d, eax
cmp r10d, 0xc000
cmovl r11d, esi
mov eax, r11d
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret

Function at 0x1400501a8
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov bl, dl
mov rsi, rcx
call fcn.14003ed2c
cmp eax, 0x600
jb 0x1400501de
mov rcx, qword [rsi]
movzx edx, bl
mov rax, qword [rcx]
call qword [rax + 0x20]
jmp 0x14005026c
mov rax, qword [rsi + 0x10]
mov byte [rax + 0x160], bl
mov rcx, qword [rsi + 0x18]
test rcx, rcx
je 0x14005026c
call qword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov rbp, 0xffffffffffffffff
lea ebx, [rax + 1]
mov eax, 2
movsxd rcx, ebx
mul rcx
cmovo rax, rbp
mov rcx, rax
call fcn.1400a9554
mov rcx, qword [rsi + 0x18]
mov r8d, ebx
mov rdx, rax
mov rdi, rax
call qword [sym.imp.USER32.dll_GetWindowTextW]
mov rcx, qword [rsi + 0x18]
mov r9, rbp
xor r8d, r8d
mov edx, 0xb1
call qword [sym.imp.USER32.dll_SendMessageW]
mov rcx, qword [rsi + 0x18]
lea r9d, [rbp + 2]
lea r8d, [rbp + 9]
mov edx, 0x102
call qword [sym.imp.USER32.dll_SendMessageW]
mov rcx, qword [rsi + 0x18]
mov rdx, rdi
call qword [sym.imp.USER32.dll_SetWindowTextW]
mov rcx, rdi
call fcn.1400a93c8
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret