joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400600d0
Capabilities:
Print debug messages

Disassembly:
test edx, edx
je 0x140060281
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
mov eax, 0x4030
call fcn.140100df0
sub rsp, rax
mov qword [rsp + 0x4050], rbx
mov rbx, qword [rsp + 0x4070]
mov rbp, r9
mov r12, r8
mov esi, edx
mov rdi, rcx
mov qword [rsp + 0x4058], r13
test rbx, rbx
jne 0x140060131
mov rbx, qword [rcx + 0x6c8]
test rbx, rbx
jne 0x140060131
mov ecx, dword [rcx + 0x280]
movzx eax, word [rdi + 0x284]
jmp 0x140060139
movzx ecx, word [rbx + 2]
movzx eax, word [rbx + 4]
mov r9, qword [0x140141280]
movsxd rcx, ecx
mov qword [rsp + 0x28], r8
mov r9, qword [r9 + rcx*8]
movzx eax, ax
mov r13d, 0x2000
lea rcx, [rsp + 0x30]
lea r8, str._s___d__:___Warning:__s_n
mov edx, r13d
mov dword [rsp + 0x20], eax
call fcn.1400e0640
cmp word [rbp], 0
movsxd rcx, eax
lea rcx, [rsp + rcx*2 + 0x30]
je 0x14006019f
lea rdx, [rsp + 0x30]
mov rax, rcx
lea r8, str._____Specifically:__s_n
sub rax, rdx
mov r9, rbp
sar rax, 1
sub r13d, eax
mov edx, r13d
call fcn.1400e0640
mov r13, qword [rsp + 0x4058]
cmp esi, 3
jne 0x1400601f4
mov eax, dword [0x140142048]
test eax, eax
je 0x1400601d4
lea r8, str.stdout
lea rdx, [rsp + 0x30]
lea rcx, [0x140141fd0]
call fcn.14000cd80
mov eax, dword [0x140142048]
cmp eax, 2
je 0x140060266
call qword [sym.imp.MSVCR100.dll___iob_func]
lea rcx, [rsp + 0x30]
lea rdx, [rax + 0x30]
call qword [sym.imp.MSVCR100.dll_fputws]
jmp 0x140060266
mov eax, dword [0x140142044]
test eax, eax
je 0x14006021c
lea r8, str.stderr
lea rdx, [rsp + 0x30]
lea rcx, [0x140141fd0]
call fcn.14000cd80
mov eax, dword [0x140142044]
cmp eax, 2
je 0x14006022c
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp esi, 2
jne 0x140060266
test rbx, rbx
jne 0x140060252
mov rbx, qword [rdi + 0x6c8]
test rbx, rbx
jne 0x140060252
mov r8, rbp
mov rdx, r12
mov rcx, rdi
call fcn.14005f7b0
jmp 0x140060266
mov r9, rbp
mov r8d, 1
mov rdx, r12
mov rcx, rbx
call fcn.14005f3f0
mov rbx, qword [rsp + 0x4050]
mov rbp, qword [rsp + 0x4060]
add rsp, 0x4030
pop r12
pop rdi
pop rsi
repz ret
Function at 0x14006eb80
Capabilities:
Enumerate gui resources

Disassembly:
push rbx
mov eax, 0x11cf0
call fcn.140100df0
sub rsp, rax
xor eax, eax
mov rbx, rcx
cmp edx, 6
mov rdx, qword [0x14013b0f8]
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x188c], eax
mov qword [rsp + 0x1890], rax
mov qword [rsp + 0x1898], rax
mov qword [rsp + 0x18a0], rax
mov dword [rsp + 0x18a8], eax
mov qword [rsp + 0x18b0], rax
mov qword [rsp + 0x18c8], rax
cmove rax, rbx
lea rcx, [0x1401035ac]
mov byte [rsp + 0x1889], 1
mov qword [rsp + 0x18c0], rax
mov rax, qword [rsp + 0x11d28]
mov qword [rsp + 0x1048], rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x11d20]
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x20], rax
call fcn.1400e9e60
test eax, eax
je 0x14006ec35
lea rdx, [rsp + 0x30]
lea rcx, [0x1400e88f0]
call qword [sym.imp.USER32.dll_EnumWindows]
movsxd rdx, dword [rsp + 0x188c]
mov r8b, reloc.OLEAUT32.dll_SafeArrayGetElement
mov rcx, rbx
call fcn.140001090
mov eax, 1
add rsp, 0x11cf0
pop rbx
ret
Function at 0x140075dd0
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 r12
push r13
mov eax, 0x2260
call fcn.140100df0
sub rsp, rax
mov r9, qword [0x140143d18]
mov rdi, rcx
mov qword [rsp + 0x20], rcx
movzx r13d, dl
lea rcx, [rsp + 0x260]
lea r8, str.__s_s
mov edx, 0x800
lea rbp, [rsp + 0x260]
lea r12, [0x1401035ac]
call fcn.1400e0640
movsxd rbx, eax
lea r8d, [rbx + 1]
cmp r8d, 0x800
jg 0x140075e58
lea rcx, [rsp + 0x262]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140075e58
mov rsi, qword [0x140143d18]
jmp 0x140075ebb
lea rcx, [rsp + 0x50]
call fcn.1400764b0
test eax, eax
je 0x140075f92
lea r9, [rsp + 0x50]
lea r8, str.__s_s
lea rcx, [rsp + 0x260]
mov edx, 0x800
mov qword [rsp + 0x20], rdi
call fcn.1400e0640
movsxd rbx, eax
lea ecx, [rbx + 1]
cmp ecx, 0x800
jg 0x140075f92
lea rcx, [rsp + 0x262]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140075f92
lea rsi, [rsp + 0x50]
mov rax, rbx
mov edi, SafeArrayAllocDescriptor
mov word [rsp + rbx*2 + 0x260], di
xor ebx, ebx
mov word [rsp + rax*2 + 0x262], bx
test r13b, r13b
je 0x140075f58
lea rax, str.AutoHotkey.exe
lea r8, str.__s_s
lea rcx, [rsp + 0x1260]
mov r9, rsi
mov edx, 0x800
mov qword [rsp + 0x20], rax
call fcn.1400e0640
movsxd r13, eax
lea ecx, [r13 + 1]
cmp ecx, 0x800
jg 0x140075f40
lea rcx, [rsp + 0x1262]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140075f40
mov word [rsp + r13*2 + 0x1260], di
lea rbp, [rsp + 0x1260]
mov word [rsp + r13*2 + 0x1262], bx
jmp 0x140075f50
cmp rsi, qword [0x140143d18]
jne 0x140075f58
mov rbp, qword [0x140143d10]
lea r12, [rsp + 0x260]
mov qword [rsp + 0x48], rbx
mov byte [rsp + 0x40], 0
mov byte [rsp + 0x38], 0
mov qword [rsp + 0x30], rbx
lea rcx, [0x140143150]
xor r9d, r9d
mov r8, r12
mov rdx, rbp
mov qword [rsp + 0x28], rbx
mov byte [rsp + 0x20], 0
call fcn.140060b90
test eax, eax
setne al
jmp 0x140075f94
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 r13
pop r12
pop rdi
ret
Function at 0x1400764b0
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x250
mov qword [rax - 0x10], rbp
mov qword [rax - 0x18], rsi
xor ebp, ebp
mov rdi, rcx
mov qword [rax + 0x18], rbx
mov esi, ebp
nop
mov r9d, esi
lea rax, [rsp + 0x268]
lea rdx, str.SOFTWAREAutoHotkey
xor r8d, r8d
mov rcx, 0xffffffff80000002
or r9d, 1
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400765fa
mov rcx, qword [rsp + 0x268]
lea rax, [rsp + 0x260]
lea rdx, str.InstallDir
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x30]
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x260], 0x208
mov qword [rsp + 0x20], rax
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 0x1400765fa
mov ecx, dword [rsp + 0x260]
test ecx, ecx
je 0x1400765fa
shr ecx, 1
dec ecx
mov dword [rsp + 0x260], ecx
cmp word [rsp + rcx*2 + 0x30], bp
jne 0x140076599
test ecx, ecx
je 0x1400765af
nop dword [rax]
lea edx, [rcx - 1]
cmp word [rsp + rdx*2 + 0x30], bp
jne 0x1400765af
mov ecx, edx
mov dword [rsp + 0x260], edx
test edx, edx
jne 0x140076580
jmp 0x1400765af
inc ecx
mov dword [rsp + 0x260], ecx
cmp ecx, 0x104
jae 0x1400765fa
mov word [rsp + rcx*2 + 0x30], bp
mov eax, ecx
test ecx, ecx
je 0x140076601
mov rsi, qword [rsp + 0x240]
mov rbp, qword [rsp + 0x248]
mov rbx, qword [rsp + 0x270]
test rdi, rdi
je 0x1400765f1
lea rcx, [rsp + 0x30]
lea rdx, [rsp + 0x30]
sub rdi, rcx
nop
movzx ecx, word [rdx]
add rdx, 2
mov word [rdi + rdx - 2], cx
test cx, cx
jne 0x1400765e0
add rsp, 0x250
pop rdi
ret
mov word [rsp + 0x30], bp
mov eax, ebp
test esi, esi
jne 0x1400765b5
mov esi, 0x200
jmp 0x1400764d0
Function at 0x140083bd0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
sub rsp, 0x230
mov rbx, rdx
mov rsi, rcx
test rdx, rdx
je 0x140083d33
cmp word [rdx], 0
je 0x140083d33
mov rcx, rdx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140083c34
mov rdx, qword [0x14013b0f8]
shr eax, 4
mov rcx, rsi
not al
mov dword [rdx + 0x40], 0xb7
and al, 1
movzx edx, al
mov rbx, qword [rsp + 0x250]
add rsp, 0x230
pop rsi
jmp fcn.14005e3f0
mov edx, 0x5c
mov rcx, rbx
mov qword [rsp + 0x240], rbp
mov qword [rsp + 0x248], rdi
call qword [sym.imp.MSVCR100.dll_wcsrchr]
mov rbp, rax
cmp rax, rbx
jbe 0x140083d09
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rbx
repne scasw ax, word [rdi]
not rcx
dec rcx
cmp rcx, 0x104
jb 0x140083cb2
mov rax, qword [0x14013b0f8]
mov dl, 1
mov dword [rax + 0x40], reloc.WSOCK32.dll_WSAGetLastError
mov rcx, rsi
call fcn.14005e3f0
mov rbp, qword [rsp + 0x240]
mov rdi, qword [rsp + 0x248]
mov rbx, qword [rsp + 0x250]
add rsp, 0x230
pop rsi
ret
mov rdi, rbp
lea rcx, [rsp + 0x20]
mov rdx, rbx
sub rdi, rbx
sar rdi, 1
mov r8, rdi
call qword [sym.imp.MSVCR100.dll_wcsncpy]
xor r11d, r11d
lea rdx, [rsp + 0x20]
mov rcx, rsi
mov word [rsp + rdi*2 + 0x20], r11w
call fcn.140083bd0
cmp word [rbp + 2], 0
je 0x140083d02
mov rcx, qword [0x140140268]
xor r8d, r8d
lea edx, [r8 + 1]
call fcn.140001830
cmp word [rax], 0x31
jne 0x140083d09
mov eax, 1
jmp 0x140083c91
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
sete dil
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x14013b0f8]
mov dword [rcx + 0x40], eax
movzx edx, dil
jmp 0x140083c89
mov rax, qword [0x14013b0f8]
mov dl, 1
mov dword [rax + 0x40], 0x57
mov rbx, qword [rsp + 0x250]
add rsp, 0x230
pop rsi
jmp fcn.14005e3f0
Function at 0x140084ea0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0x40
mov rdi, r8
mov r12, rdx
mov r13, rcx
test r8, r8
je 0x140084f09
xor r8d, r8d
mov rcx, rdi
lea edx, [r8 + 1]
call fcn.140001830
cmp byte [rdi + 0x23], 0
mov rsi, rax
jne 0x140084edc
mov rbx, qword [rdi + 0x10]
jmp 0x140084edf
mov rbx, rdi
cmp byte [rbx + 0x23], 1
jne 0x140084efd
test byte [rbx + 0x21], 8
je 0x140084ef3
mov rcx, rbx
call fcn.140001130
mov rbp, qword [rbx + 0x10]
add rbx, 0x10
jmp 0x140084f53
lea rbx, [0x140143ff8]
mov rbp, qword [rbx]
jmp 0x140084f53
lea r8, [rsp + 0x88]
lea rdx, [rsp + 0x80]
xor ecx, ecx
call fcn.1400e67c0
test eax, eax
jne 0x140084f43
mov rax, qword [0x14013b0f8]
xor ebx, ebx
mov dword [rax + 0x40], ebx
xor eax, eax
mov rbx, qword [rsp + 0x70]
add rsp, 0x40
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov rsi, qword [rsp + 0x80]
mov rbp, qword [rsp + 0x88]
xor ebx, ebx
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x30], rbx
mov edx, 0x40000000
mov rcx, r12
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r12, rax
cmp rax, 0xffffffffffffffff
je 0x140084fb9
mov ecx, ebx
mov dword [rsp + 0x80], ebx
test rsi, rsi
je 0x140084fb4
lea r9, [rsp + 0x80]
mov r8d, ebp
mov rdx, rsi
mov rcx, rax
mov qword [rsp + 0x20], rbx
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 [0x14013b0f8]
mov dword [rcx + 0x40], eax
cmp r12, 0xffffffffffffffff
je 0x140084fd8
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test rdi, rdi
jne 0x140084fe6
mov rcx, rsi
call qword [sym.imp.MSVCR100.dll_free]
test ebx, ebx
mov rcx, r13
sete dl
mov rbx, qword [rsp + 0x70]
add rsp, 0x40
pop r13
pop r12
pop rdi
pop rsi
pop rbp
jmp fcn.14005e3f0

Function at 0x140085020
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
mov rdi, rdx
mov rsi, rcx
mov r9, rdx
test rdx, rdx
je 0x140085082
movzx r8d, word [rdx]
test r8w, r8w
je 0x1400850c8
nop dword [rax + rax]
lea rcx, [0x1401235d8]
mov eax, 0x3f
nop dword [rax]
cmp r8w, ax
je 0x1400850c8
movzx eax, word [rcx + 2]
add rcx, 2
test ax, ax
jne 0x140085060
movzx r8d, word [r9 + 2]
add r9, 2
test r8w, r8w
jne 0x140085050
cmp word [rdx], 0
je 0x1400850c8
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
sete bl
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x14013b0f8]
mov dword [rcx + 0x40], eax
mov rcx, rsi
movzx edx, bl
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
jmp fcn.14005e3f0
xor ebx, ebx
lea rax, [0x140085010]
mov byte [rsp + 0x30], 0
lea r8d, [rbx + 1]
xor r9d, r9d
mov rcx, rsi
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rax
call fcn.140085920
mov rcx, qword [0x14013b0f8]
mov rsi, qword [rsp + 0x58]
cmp qword [rcx + 0x148], rbx
sete bl
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x140085120
Capabilities:
Copy file
Extract resource via kernel32 functions
Set current directory
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
sub rsp, 0x260
mov rbp, rcx
mov rcx, r9
mov rdi, r9
mov rsi, r8
mov r12, rdx
call fcn.140005040
mov rcx, rdi
test al, al
je 0x140085161
xor edx, edx
lea r8d, [rdx + 0x10]
call qword [sym.imp.MSVCR100.dll_wcstol]
jmp 0x140085167
call qword [sym.imp.MSVCR100.dll__wtoi]
cmp eax, 1
mov qword [rsp + 0x270], rbx
sete dil
cmp qword [0x14013f6b0], 0
je 0x1400852f4
test dil, dil
jne 0x14008519c
mov rcx, rsi
call fcn.1400a7960
test al, al
je 0x14008519c
mov dl, 1
jmp 0x140085347
xor ebx, ebx
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x30], rbx
mov edx, 0x40000000
mov rcx, rsi
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x140085195
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, r12
repne scasw ax, word [rdi]
mov eax, 0x103
mov rdx, r12
not rcx
dec rcx
cmp rcx, 0x104
cmovae rcx, rax
lea r8, [rcx + rcx + 2]
lea rcx, [rsp + 0x50]
call sub.MSVCR100.dll_memcpy
lea rcx, [rsp + 0x50]
call qword [sym.imp.MSVCR100.dll__wcsupr]
lea r8d, [rbx + 0xa]
lea rdx, [rsp + 0x50]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov r12, rax
test rax, rax
je 0x1400852e9
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x1400852e9
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdi, rax
test rax, rax
je 0x1400852e9
cmp dword [rax], 0x4034b50
jne 0x1400852c0
mov rdx, r12
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [rdi + 8]
cmp eax, ecx
jb 0x1400852c0
mov dword [rsp + 0x20], ecx
lea rdx, [rsp + 0x48]
xor r9d, r9d
mov r8d, eax
mov rcx, rdi
call fcn.1400e5430
test eax, eax
je 0x1400852c0
mov rdi, qword [rsp + 0x48]
lea r9, [rsp + 0x40]
mov r8d, eax
mov rcx, rsi
mov rdx, rdi
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rdi
test eax, eax
setne bl
call qword [sym.imp.MSVCR100.dll_free]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140085342
mov rdx, r12
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
lea r9, [rsp + 0x40]
mov rdx, rdi
mov rcx, rsi
mov r8d, eax
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
setne bl
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140085342
lea r8, [rsp + 0x50]
xor r9d, r9d
mov edx, 0x104
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFullPathNameW]
mov rcx, qword [0x140143d00]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
xor ebx, ebx
test dil, dil
sete bl
lea rdx, [rsp + 0x50]
mov rcx, r12
mov r8d, ebx
call qword [sym.imp.KERNEL32.dll_CopyFileW]
lea rcx, [0x140140270]
test eax, eax
setne bl
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test bl, bl
sete dl
mov rcx, rbp
call fcn.14005e3f0
mov rbx, qword [rsp + 0x270]
lea r11, [rsp + 0x260]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r12
ret
Function at 0x140085740
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0x40
xor esi, esi
mov rdi, rdx
or r10d, 0xffffffff
mov edx, esi
mov ebp, r9d
mov r12, r8
mov r13, rcx
mov dword [rax + 0x10], r10d
mov dword [rax + 0x14], edx
cmp word [rdi], dx
je 0x140085849
mov qword [rax + 8], rbx
mov qword [rax + 0x18], r14
lea r14, [0x140000000]
movzx ebx, word [rdi]
test ebx, 0xffffff80
jne 0x1400857a9
mov edx, 2
mov ecx, ebx
call qword [sym.imp.MSVCR100.dll__isctype]
mov edx, dword [rsp + 0x7c]
mov r10d, dword [rsp + 0x78]
test eax, eax
je 0x1400857a9
and ebx, 0xffffffdf
movzx eax, bx
add eax, 0xffffffd5
cmp eax, 0x33
ja case.0x1400857ca.51
cdqe
movzx eax, byte [r14 + rax + 0x858ac]
mov ecx, dword [r14 + rax*4 + 0x85888]
add rcx, r14
jmp rcx
movzx esi, word [rdi]
jmp case.0x1400857ca.51
mov ecx, 1
jmp 0x140085800
mov ecx, SafeArrayAllocDescriptor
jmp 0x140085800
mov ecx, 4
jmp 0x140085800
mov ecx, 2
jmp 0x140085800
mov ecx, 0x80
jmp 0x140085800
mov ecx, 0x1000
jmp 0x140085800
mov ecx, 0x100
cmp esi, 0x2b
je 0x14008581c
cmp esi, 0x2d
je 0x140085813
cmp esi, 0x5e
jne case.0x1400857ca.51
xor edx, ecx
jmp 0x14008582a
not ecx
and r10d, ecx
and edx, ecx
jmp 0x140085825
mov eax, ecx
not eax
and r10d, eax
or edx, ecx
mov dword [rsp + 0x78], r10d
mov dword [rsp + 0x7c], edx
add rdi, 2
cmp word [rdi], 0
jne 0x140085781
mov r14, qword [rsp + 0x80]
mov rbx, qword [rsp + 0x70]
movzx r9d, byte [rsp + 0x90]
lea rax, [rsp + 0x78]
mov byte [rsp + 0x30], 0
mov qword [rsp + 0x28], rax
lea rax, [0x1400858e0]
mov r8d, ebp
mov rdx, r12
mov rcx, r13
mov qword [rsp + 0x20], rax
call fcn.140085920
add rsp, 0x40
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140086490
Capabilities:
Get file size

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x290
mov rsi, rcx
mov rcx, qword [0x14013f500]
mov rbp, r8
mov rdi, rdx
call fcn.14002f9e0
test rdi, rdi
je 0x140086632
cmp word [rdi], 0
je 0x140086632
xor r9d, r9d
mov qword [rsp + 0x30], 0
mov edx, 0x80
lea r8d, [r9 + 7]
mov rcx, rdi
mov qword [rsp + 0x2b0], rbx
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x2c0], r12
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r12, rax
cmp rax, 0xffffffffffffffff
je 0x14008652a
lea rdx, [rsp + 0x2b8]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov rcx, r12
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
jne 0x140086594
lea rdx, [rsp + 0x40]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp rax, 0xffffffffffffffff
jne 0x140086573
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x14013b0f8]
mov dl, 1
mov dword [rcx + 0x40], eax
mov rcx, rsi
call fcn.14005e3f0
mov rbx, qword [rsp + 0x2b0]
mov r12, qword [rsp + 0x2c0]
add rsp, 0x290
pop rdi
pop rsi
pop rbp
ret
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindClose]
mov r11d, dword [rsp + 0x5c]
mov eax, dword [rsp + 0x60]
shl r11, 0x20
or r11, rax
mov qword [rsp + 0x2b8], r11
movzx ebx, word [rbp]
test ebx, 0xffffff80
jne 0x1400865b4
mov edx, 2
mov ecx, ebx
call qword [sym.imp.MSVCR100.dll__isctype]
test eax, eax
je 0x1400865b4
and ebx, 0xffffffdf
movzx eax, bx
cmp eax, 0x4b
je 0x1400865da
cmp eax, 0x4d
jne 0x1400865f9
mov rax, qword [rsp + 0x2b8]
cqo
and edx, 0xfffff
add rax, rdx
sar rax, 0x14
jmp 0x1400865f1
mov rax, qword [rsp + 0x2b8]
cqo
and edx, 0x3ff
add rax, rdx
sar rax, 0xa
mov qword [rsp + 0x2b8], rax
mov rax, qword [0x14013b0f8]
xor edx, edx
mov rcx, rsi
mov dword [rax + 0x40], 0
call fcn.14005e3f0
mov rdx, qword [rsp + 0x2b8]
mov rcx, qword [0x14013f500]
mov r8b, reloc.OLEAUT32.dll_SafeArrayGetElement
call fcn.140001090
mov eax, 1
jmp 0x140086558
mov rax, qword [0x14013b0f8]
mov dl, 1
mov rcx, rsi
mov dword [rax + 0x40], 0x57
call fcn.14005e3f0
add rsp, 0x290
pop rdi
pop rsi
pop rbp
ret
Function at 0x140088410
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x240
movzx ebp, word [rdx + 4]
mov rsi, rdx
mov rbx, rcx
mov edi, 2
test ebp, 0xffffff80
jne 0x14008844f
mov edx, edi
mov ecx, ebp
call qword [sym.imp.MSVCR100.dll__isctype]
test eax, eax
je 0x14008844f
and ebp, 0xffffffdf
movzx eax, bp
cmp eax, 0x41
je 0x1400884c8
cmp eax, 0x44
je 0x1400884be
cmp eax, 0x4e
jle 0x1400884b5
cmp eax, 0x50
jle 0x140088493
cmp eax, 0x53
jne 0x1400884b5
movzx ecx, word [rsi + 0xe]
call fcn.140016bd0
cmp ax, 0x4d
jne 0x140088489
cmp word [rsi + 0x16], 0
mov edi, reloc.WSOCK32.dll_inet_ntoa
lea eax, [rdi + 0xb]
jmp 0x1400884d7
mov edi, 7
lea eax, [rdi + 0x11]
jmp 0x1400884d2
movzx ecx, word [rsi + 0x12]
call fcn.140016bd0
cmp ax, 0x53
jne 0x1400884ae
cmp word [rsi + 0x14], 0
mov eax, reloc.WSOCK32.dll_socket
jmp 0x1400884d7
mov edi, 0x26
jmp 0x1400884da
mov edi, dword [rsp + 0x250]
jmp 0x1400884da
mov edi, reloc.WSOCK32.dll_recv
lea eax, [rdi + 9]
jmp 0x1400884d2
mov edi, DispGetParam
mov eax, reloc.OLEAUT32.dll_SafeArrayAllocDescriptor
cmp word [rsi + 0x12], 0
cmovne edi, eax
lea rax, [rsp + 0x30]
xor r9d, r9d
xor r8d, r8d
mov edx, edi
xor ecx, ecx
mov qword [rsp + 0x20], rax
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
je 0x1400884ff
xor eax, eax
mov word [rsp + 0x30], ax
test rbx, rbx
je 0x140088522
lea rax, [rsp + 0x30]
lea rcx, [rsp + 0x30]
sub rbx, rax
movzx eax, word [rcx]
add rcx, 2
mov word [rbx + rcx - 2], ax
test ax, ax
jne 0x140088511
lea r11, [rsp + 0x240]
xor eax, eax
or rcx, 0xffffffffffffffff
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
lea rdi, [rsp + 0x30]
repne scasw ax, word [rdi]
not rcx
lea rax, [rcx - 1]
mov rsp, r11
pop rdi
ret

Function at 0x140088550
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x240
xor r9d, r9d
lea rax, [rsp + 0x30]
mov rbx, rcx
lea edx, [r9 + 5]
xor r8d, r8d
xor ecx, ecx
mov qword [rsp + 0x20], rax
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
xor r8d, r8d
test eax, eax
je 0x140088589
mov word [rsp + 0x30], r8w
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x30]
repne scasw ax, word [rdi]
not rcx
dec rcx
je 0x1400885b6
cmp word [rsp + rcx*2 + 0x2e], 0x5c
jne 0x1400885b3
mov word [rsp + rcx*2 + 0x2e], r8w
lea r8, [rcx - 1]
jmp 0x1400885b6
mov r8, rcx
test rbx, rbx
je 0x1400885e1
lea rax, [rsp + 0x30]
lea rdx, [rsp + 0x30]
sub rbx, rax
nop dword [rax + rax]
movzx ecx, word [rdx]
add rdx, 2
mov word [rbx + rdx - 2], cx
test cx, cx
jne 0x1400885d0
mov rax, r8
mov rbx, qword [rsp + 0x250]
add rsp, 0x240
pop rdi
ret
Function at 0x14009f180
Capabilities:
Log keystrokes via polling

Disassembly:
push rbx
sub rsp, 0x20
movzx ebx, cl
test cl, cl
jne 0x14009f195
xor al, al
add rsp, 0x20
pop rbx
ret
dec edx
je 0x14009f1c0
dec edx
movzx ecx, bl
je 0x14009f1a8
call qword [sym.imp.USER32.dll_GetKeyState]
jmp 0x14009f1e6
call qword [sym.imp.USER32.dll_GetKeyState]
movzx r11d, ax
and r11d, 1
movzx eax, r11b
add rsp, 0x20
pop rbx
ret
lea eax, [rbx - 1]
cmp al, 5
ja 0x14009f1cc
cmp bl, 3
jne 0x14009f1d3
lea eax, [rbx + 0x66]
cmp al, 5
ja 0x14009f1fc
cmp qword [0x14013f850], 0
jne 0x14009f21e
movzx ecx, bl
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
movzx r11d, ax
shr r11d, 0xf
and r11b, 1
movzx eax, r11b
add rsp, 0x20
pop rbx
ret
cmp qword [0x14013f848], 0
je 0x14009f1dd
xor edx, edx
xor r8d, r8d
movzx ecx, bl
call fcn.1400233b0
test al, al
je 0x14009f21e
mov cl, 1
call fcn.1400231a0
lea rcx, [0x14013f740]
movzx eax, bl
movzx eax, byte [rax + rcx]
shr al, 7
add rsp, 0x20
pop rbx
ret