joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140024ad0
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x48
mov rdx, rcx
mov qword [rsp + 0x58], rsi
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x40], rdi
call fcn.140023ff0
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov r9, qword [rsp + 0x28]
xor edi, edi
mov rcx, qword [rsp + 0x20]
mov rdx, r9
sub rdx, rcx
mov esi, eax
sar rdx, 2
test rdx, rdx
je 0x140024b6d
mov qword [rsp + 0x50], rbx
mov r8d, dword [rcx + rdi*4]
cmp r8d, esi
je 0x140024b56
xor edx, edx
lea ecx, [rdx + 1]
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rcx, rax
xor edx, edx
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov edx, 0x3e8
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r9, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x20]
mov rax, r9
inc rdi
sub rax, rcx
sar rax, 2
cmp rdi, rax
jb 0x140024b13
mov rbx, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x58]
test rcx, rcx
je 0x140024bae
mov rdx, qword [rsp + 0x30]
mov rax, rcx
sub rdx, rcx
and rdx, 0xfffffffffffffffc
cmp rdx, 0x1000
jb 0x140024ba9
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140024bb3
call fcn.1400d7558
add rsp, 0x48
ret
call fcn.1400de97c
int3
Function at 0x140025160
Capabilities:
Write file on windows

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x80
mov rax, qword [0x140317e98]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, 0xffff
movzx esi, dx
mov rbx, rcx
cmp di, dx
jne 0x140025191
xor eax, eax
jmp 0x1400252df
mov rax, qword [rcx + 0x40]
mov r8, qword [rax]
test r8, r8
je 0x1400251ce
mov r9, qword [rcx + 0x58]
movsxd r10, dword [r9]
lea rdx, [r8 + r10*2]
cmp r8, rdx
jae 0x1400251ce
lea ecx, [r10 - 1]
movzx eax, si
mov dword [r9], ecx
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 2]
mov qword [rdx], rcx
mov word [r8], si
jmp 0x1400252df
cmp qword [rcx + 0x80], 0
mov qword [rsp + 0xb0], rbp
je 0x1400252d4
mov r8, qword [rcx + 0x18]
lea rax, [rcx + 0x70]
cmp qword [r8], rax
jne 0x140025215
mov rdx, qword [rcx + 0x90]
mov rcx, qword [rcx + 0x88]
mov qword [r8], rcx
sub rdx, rcx
mov rax, qword [rbx + 0x38]
sar rdx, 1
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x14002523e
movzx ecx, si
mov rdx, qword [rbx + 0x80]
call fcn.1400eb3a8
cmp ax, di
je 0x1400252d4
movzx edi, si
jmp 0x1400252d4
lea r8, [rsp + 0x48]
mov word [rsp + 0x40], si
mov rax, qword [rcx]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x38], r8
lea r9, [rsp + 0x42]
lea r8, [rsp + 0x78]
mov qword [rsp + 0x30], r8
lea r8, [rsp + 0x58]
mov qword [rsp + 0x28], r8
lea r8, [rsp + 0x50]
mov qword [rsp + 0x20], r8
lea r8, [rsp + 0x40]
call qword [rax + 0x38]
test eax, eax
je 0x140025294
sub eax, 1
je 0x140025294
cmp eax, 2
jne 0x1400252d4
movzx ecx, word [rsp + 0x40]
jmp 0x140025221
mov rbp, qword [rsp + 0x48]
lea rax, [rsp + 0x58]
sub rbp, rax
je 0x1400252c1
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rbp
mov edx, 1
call fcn.1400ecc58
cmp rbp, rax
jne 0x1400252d4
lea rax, [rsp + 0x40]
mov byte [rbx + 0x72], 1
cmp qword [rsp + 0x50], rax
movzx eax, si
jne 0x1400252d7
movzx eax, di
mov rbp, qword [rsp + 0xb0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1400d7670
add rsp, 0x80
pop rdi
pop rsi
pop rbx
ret
Function at 0x140026510
Capabilities:
Create directory
Delete directory

Disassembly:
push rbx
mov eax, 0x4e50
call fcn.1400d76d0
sub rsp, rax
mov rax, qword [0x140317e98]
xor rax, rsp
mov qword [rsp + 0x4e40], rax
mov rdx, rcx
lea r8, str.try_create_directory
lea rcx, [rsp + 0x20]
call qword [sym.imp.SHLWAPI.dll_PathCombineW]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
xor edx, edx
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ebx, eax
test eax, eax
je 0x140026571
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x14002658b
lea r8, [0x140241920]
lea rdx, str.testDirectoryPrivileges:CreateDirectory
lea rcx, str.no_privileges
call fcn.14002c680
mov eax, ebx
mov rcx, qword [rsp + 0x4e40]
xor rcx, rsp
call fcn.1400d7670
add rsp, 0x4e50
pop rbx
ret

Function at 0x140026dd0
Capabilities:
Check if file exists
Copy file

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x250
mov rax, qword [0x140317e98]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rbx, rdx
mov rdi, rcx
lea rcx, [rsp + 0x20]
call fcn.140027950
nop
lea rcx, [rsp + 0x20]
cmp qword [rsp + 0x38], 8
cmovae rcx, qword [rsp + 0x20]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x140026e8f
lea rdx, [rsp + 0x20]
cmp qword [rsp + 0x38], 8
cmovae rdx, qword [rsp + 0x20]
xor ecx, ecx
call qword [0x140240858]
mov esi, eax
test eax, eax
je 0x140026e8f
xor edx, edx
mov r8d, 0x200
lea rcx, [rsp + 0x40]
call fcn.1400d9fc0
mov r9d, 0xa
mov r8d, 0x100
lea rdx, [rsp + 0x40]
mov ecx, esi
call fcn.1400ed194
lea rdx, [rsp + 0x20]
cmp qword [rsp + 0x38], 8
cmovae rdx, qword [rsp + 0x20]
lea r8, [rsp + 0x40]
lea rcx, str._patchProc__create_dir_fail
call fcn.14002c680
xor bl, bl
jmp 0x140026eb8
cmp qword [rbx + 0x18], 8
jb 0x140026e99
mov rbx, qword [rbx]
cmp qword [rdi + 0x18], 8
jb 0x140026ea3
mov rdi, qword [rdi]
xor r8d, r8d
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CopyFileW]
cmp eax, 1
sete bl
mov rdx, qword [rsp + 0x38]
cmp rdx, 8
jb 0x140026ef6
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140026ef1
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140026f1e
call fcn.1400d7558
movzx eax, bl
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.1400d7670
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
call fcn.1400de97c
int3
Function at 0x1400275b0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x260
mov rax, qword [0x140317e98]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rbx, rcx
mov qword [rsp + 0x30], rcx
mov dword [rsp + 0x20], 0
call fcn.140029190
mov dword [rsp + 0x20], 1
mov rax, qword [rbx]
cmp dword [rax - 0x10], 0
jne 0x1400276c0
xor edx, edx
mov r8d, 0x20a
lea rcx, [rsp + 0x40]
call fcn.1400d9fc0
lea rdx, [rsp + 0x40]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
call fcn.140004b20
mov rcx, rax
test rax, rax
je 0x1400276e4
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov rdi, 0xffffffffffffffff
cmp rax, 0x10000
jae 0x140027663
lea rax, [rsp + 0x40]
movzx edx, ax
lea rcx, [rsp + 0x28]
call fcn.1400054f0
jmp 0x14002768d
lea rcx, [rsp + 0x40]
mov rax, rdi
nop dword [rax + rax]
inc rax
cmp word [rcx + rax*2], 0
jne 0x140027670
mov r8d, eax
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x28]
call fcn.14000ac20
nop
mov dword [rsp + 0x20], 3
lea rdx, [rsp + 0x28]
mov rcx, rbx
call fcn.140014a70
nop
mov rdx, qword [rsp + 0x28]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], edi
sub edi, 1
jg 0x1400276c0
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [r8 + 8]
mov rax, rbx
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.1400d7670
mov rbx, qword [rsp + 0x278]
add rsp, 0x260
pop rdi
ret
mov ecx, 0x80004005
call fcn.1400049a0
int3
Function at 0x14002cf80
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x170]
sub rsp, 0x270
mov rax, qword [0x140317e98]
xor rax, rsp
mov qword [rbp + 0x160], rax
mov rbx, r8
mov rsi, rdx
mov rdi, rcx
xor r14b, r14b
cmp byte [0x140320224], r14b
je 0x14002cfe1
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x14002cfe8
lea r8, [0x140241920]
mov rdx, rdi
lea rcx, str._ApplyPatch__src_file_not_exist
call fcn.14002c680
xor al, al
jmp 0x14002d1b4
mov rcx, rsi
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x14002d012
lea r8, [0x140241920]
mov rdx, rsi
lea rcx, str._ApplyPatch__patch_file_not_exist
call fcn.14002c680
xor al, al
jmp 0x14002d1b4
xor r15d, r15d
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x50], r15
mov qword [rsp + 0x58], 7
mov word [rsp + 0x40], r15w
mov r8, 0xffffffffffffffff
inc r8
cmp word [rbx + r8*2], r15w
jne 0x14002d035
mov rdx, rbx
lea rcx, [rsp + 0x40]
call fcn.14000a220
nop
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x20]
call fcn.140027950
nop
mov rdx, qword [rsp + 0x58]
cmp rdx, 8
jb 0x14002d09f
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002d09a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002d1e0
call fcn.1400d7558
mov qword [rsp + 0x50], r15
mov qword [rsp + 0x58], 7
mov word [rsp + 0x40], r15w
lea rcx, [rsp + 0x20]
cmp qword [rsp + 0x38], 8
cmovae rcx, qword [rsp + 0x20]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x14002d140
lea rdx, [rsp + 0x20]
cmp qword [rsp + 0x38], 8
cmovae rdx, qword [rsp + 0x20]
xor ecx, ecx
call qword [0x140240858]
mov r15d, eax
test eax, eax
je 0x14002d140
xor edx, edx
mov r8d, 0x200
lea rcx, [rsp + 0x60]
call fcn.1400d9fc0
mov r9d, 0xa
mov r8d, 0x100
lea rdx, [rsp + 0x60]
mov ecx, r15d
call fcn.1400ed194
lea rdx, [rsp + 0x20]
cmp qword [rsp + 0x38], 8
cmovae rdx, qword [rsp + 0x20]
lea r8, [rsp + 0x60]
lea rcx, str._ApplyPatch__create_dir_fail
call fcn.14002c680
xor r14b, r14b
jmp 0x14002d172
mov rax, qword [0x140320228]
test rax, rax
je 0x14002d15f
mov r8, rbx
mov rdx, rsi
mov rcx, rdi
call rax
movzx r14d, al
test al, al
jne 0x14002d172
mov r8, rsi
mov rdx, rdi
lea rcx, str._ApplyPatch__apply_patch_func__fail
call fcn.14002c680
nop
mov rdx, qword [rsp + 0x38]
cmp rdx, 8
jb 0x14002d1b0
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002d1ab
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002d1da
call fcn.1400d7558
movzx eax, r14b
mov rcx, qword [rbp + 0x160]
xor rcx, rsp
call fcn.1400d7670
mov rbx, qword [rsp + 0x2b8]
add rsp, 0x270
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
call fcn.1400de97c
nop
call fcn.1400de97c
nop
int3
Function at 0x140032d70
Capabilities:
Log keystrokes via polling

Disassembly:
push rbx
sub rsp, 0x20
xor ebx, ebx
lea ecx, [rbx + 0x11]
call qword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 8
test ax, ax
cmovs ebx, ecx
mov ecx, 2
call qword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x140032d9f
or ebx, 2
mov ecx, 1
call qword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x140032db2
or ebx, 1
mov ecx, 0x10
call qword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x140032dc5
or ebx, 4
mov ecx, 0x12
call qword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x140032dd8
or ebx, 0x20
mov eax, ebx
add rsp, 0x20
pop rbx
ret
Function at 0x140036260
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x70
mov rdi, rcx
mov r15, r9
add rcx, 0x358
mov r14, r8
mov esi, edx
xor ebx, ebx
call fcn.14002e040
test eax, eax
jle 0x1400362e9
mov edx, ebx
mov byte [rsp + 0x90], 0
lea rcx, [rdi + 0x358]
call fcn.14002d670
lea rcx, [rsp + 0x90]
mov r9, r15
mov qword [rsp + 0x20], rcx
mov r8, r14
mov edx, esi
mov rcx, rax
mov r10, qword [rax]
call qword [r10]
cmp byte [rsp + 0x90], 0
jne 0x14003648a
lea rcx, [rdi + 0x358]
inc ebx
call fcn.14002e040
cmp ebx, eax
jl 0x140036295
sub esi, 0x100
je 0x1400363fc
sub esi, 4
je 0x140036379
cmp esi, 2
jne 0x1400363e0
cmp qword [rdi + 0x128], 0
je 0x1400363e0
mov ecx, r14d
mov dword [rsp + 0x90], 0
call fcn.1400edeb0
mov rcx, qword [rdi + 0x128]
lea r8, [rsp + 0x90]
mov word [rsp + 0x90], ax
lea rdx, [0x140038ab0]
mov r9d, 0x80000012
mov rax, qword [rcx]
call qword [rax + 0x340]
mov rbx, rax
test rax, rax
je 0x1400363e0
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x2e0]
mov rdx, qword [rbx]
mov rcx, rbx
call qword [rdx + 0xf8]
mov al, 1
jmp 0x1400363e2
mov rax, qword [rdi + 0x130]
test rax, rax
je 0x1400363e0
mov qword [rsp + 0x38], rax
xorps xmm0, xmm0
mov rax, qword [rdi + 0x160]
mov qword [rsp + 0x4c], rax
mov qword [rsp + 0x30], 6
mov qword [rsp + 0x40], 0
movdqu xmmword [rsp + 0x58], xmm0
mov word [rsp + 0x54], r14w
call fcn.140032d70
mov word [rsp + 0x56], ax
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov rcx, qword [rdi + 0x130]
lea rdx, [rsp + 0x30]
mov dword [rsp + 0x48], eax
mov rax, qword [rcx]
call qword [rax + 0x360]
xor al, al
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
cmp r14, 9
jne 0x140036491
mov rcx, qword [rdi + 0x130]
test rcx, rcx
je 0x14003646b
mov rax, qword [rcx]
call qword [rax + 0x290]
test al, al
je 0x14003646b
mov rcx, qword [rdi + 0x130]
mov rax, qword [rcx]
call qword [rax + 0x2a8]
test al, al
je 0x14003646b
mov rcx, qword [rdi + 0x130]
mov rax, qword [rcx]
call qword [rax + 0xd8]
mov rcx, rax
lea rdx, str.RichEdit
call fcn.1400d87f0
test rax, rax
je 0x14003646b
mov rcx, qword [rdi + 0x130]
call fcn.1400512a0
test al, al
jne 0x1400363e0
mov ecx, 0x10
call qword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
mov rcx, rdi
setns dl
xor r9d, r9d
xor r8d, r8d
call fcn.140037b10
mov al, 1
jmp 0x1400363e2
cmp r14, 0x75
jne 0x1400363e0
lea ecx, [r14 - 0x65]
call qword [sym.imp.USER32.dll_GetKeyState]
mov r9b, 1
mov rcx, rdi
test ax, ax
setns dl
xor r8d, r8d
call fcn.140037b10
mov al, 1
jmp 0x1400363e2
Function at 0x140037b10
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0xb0
cmp byte [rcx + 0x1ad], 0
movzx esi, r9b
movzx ebp, r8b
movzx ebx, dl
mov rdi, rcx
je 0x140037b60
test dl, dl
je 0x140037b60
mov byte [rcx + 0x1ae], 1
xor r8d, r8d
mov rcx, qword [rcx + 0x88]
xor edx, edx
call qword [sym.imp.USER32.dll_InvalidateRect]
jmp 0x140037d0c
xor eax, eax
xorps xmm0, xmm0
mov qword [rsp + 0x50], rax
mov r9d, 0x80000023
mov rax, qword [rcx + 0x130]
mov byte [rsp + 0x50], bl
mov byte [rsp + 0x52], sil
movups xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x40], rax
test bpl, bpl
je 0x140037b9a
test bl, bl
mov eax, 0x80000033
cmove r9d, eax
mov rcx, qword [rcx + 0x128]
lea r8, [rsp + 0x40]
lea rdx, [0x140038b30]
mov rax, qword [rcx]
call qword [rax + 0x340]
test rax, rax
jne 0x140037cf3
test bpl, bpl
jne 0x140037ca9
mov rcx, qword [rdi + 0x88]
call qword [sym.imp.USER32.dll_GetParent]
mov rbp, rax
test rax, rax
je 0x140037ca9
cmp qword [rdi + 0x130], 0
je 0x140037ca9
xor ebx, ebx
mov qword [rsp + 0x70], 0x14
xorps xmm0, xmm0
mov qword [rsp + 0x80], rbx
movdqu xmmword [rsp + 0x8c], xmm0
mov qword [rsp + 0x9c], rbx
mov dword [rsp + 0xa4], ebx
mov qword [rsp + 0x78], rbx
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov rcx, qword [rdi + 0x130]
lea rdx, [rsp + 0x70]
mov dword [rsp + 0x88], eax
mov rax, qword [rcx]
call qword [rax + 0x360]
mov rdx, qword [rdi + 0x130]
lea r8, str.killfocus
mov byte [rsp + 0x30], 1
xor r9d, r9d
mov byte [rsp + 0x28], bl
mov rcx, rdi
mov qword [rsp + 0x20], rbx
call fcn.140037330
lea ecx, [rbx + 0x10]
mov qword [rdi + 0x130], rbx
call qword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 1
mov edx, 0x8002
test ax, ax
cmovns ebx, ecx
mov rcx, rbp
mov r8d, ebx
or r8, 2
test sil, sil
cmove r8, rbx
xor r9d, r9d
call qword [sym.imp.USER32.dll_PostMessageW]
xor al, al
jmp 0x140037d0e
test bl, bl
je 0x140037ce9
mov rcx, qword [rdi + 0x128]
lea r8, [rsp + 0x58]
xor eax, eax
lea rdx, [0x140038b30]
mov qword [rsp + 0x68], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x58], xmm0
mov byte [rsp + 0x68], bl
mov r9d, 0x80000023
mov byte [rsp + 0x6a], sil
mov rax, qword [rcx]
call qword [rax + 0x340]
jmp 0x140037cee
mov rax, qword [rsp + 0x48]
test rax, rax
je 0x140037d05
movzx r9d, sil
mov r8b, 1
mov rdx, rax
mov rcx, rdi
call fcn.1400376d0
mov byte [rdi + 0x1ae], 0
mov al, 1
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x14003d6d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov rax, rdx
mov r15, r9
shr rax, 0x10
mov rbp, r8
mov rbx, rdx
mov rdi, rcx
test ax, ax
je 0x14003d738
cmp word [rdx], 0x3c
jne 0x14003d72e
call fcn.14003b9f0
test al, al
jne 0x14003d7c4
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
xor r8d, r8d
call fcn.14003bb20
jmp 0x14003d70b
call fcn.140032730
mov rcx, rax
mov r8, rbp
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rsi, rax
test rax, rax
je 0x14003d713
call fcn.140032730
mov rcx, rax
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov r14, rax
test rax, rax
jne 0x14003d778
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeResource]
jmp 0x14003d713
mov qword [rdi + 0x148], r15
call fcn.140032730
mov rcx, rax
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov rcx, r14
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_LockResource]
xor r9d, r9d
mov r8d, ebx
mov rdx, rax
mov rcx, rdi
call fcn.14003be90
test al, al
je 0x14003d713
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov qword [rdi + 0x150], rbp
mov r9, qword [rsp + 0x68]
mov rdx, r15
mov r8, qword [rsp + 0x60]
mov rcx, rdi
call fcn.14003cdd0
jmp 0x14003d715
Function at 0x140053890
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
cmp qword [rcx + 0x830], 0
mov rbp, r9
mov rdi, r8
mov esi, edx
mov rbx, rcx
je 0x140053964
cmp edx, 0x100
jne 0x1400538ed
cmp di, 0xd
jne 0x1400538ed
cmp byte [rcx + 0x839], 0
jne 0x140053916
cmp byte [rcx + 0x83b], 0
je 0x14005392f
mov ecx, 0x11
call qword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x14005392f
mov rax, qword [rbx + 0x830]
mov r9, rbp
mov r8, rdi
mov edx, esi
mov rcx, qword [rax + 0x18]
mov rax, qword [rcx]
mov r10, qword [rax + 0x18]
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x20], rax
call r10
jmp 0x140053969
mov ecx, 0x11
call qword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x1400538ed
cmp byte [rbx + 0x83b], 0
jne 0x1400538ed
mov rcx, qword [rbx + 0xe0]
test rcx, rcx
je 0x140053960
mov byte [rsp + 0x30], 1
lea r8, str.return
mov byte [rsp + 0x28], 0
xor r9d, r9d
mov rdx, rbx
mov qword [rsp + 0x20], 0
call fcn.140037330
xor eax, eax
jmp 0x140053969
mov eax, 1
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret

Function at 0x140054c60
Capabilities:
Create directory

Disassembly:
test rdx, rdx
je 0x140054d89
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x450
mov rax, qword [0x140317e98]
xor rax, rsp
mov qword [rsp + 0x440], rax
movzx eax, word [rdx]
mov rdi, rdx
mov rbx, rcx
test ax, ax
je 0x140054d69
mov qword [rsp + 0x470], rsi
mov rcx, rdx
mov rsi, rdx
cmp ax, 0x2f
je 0x140054cb4
cmp ax, 0x5c
jne 0x140054cb7
mov rsi, rcx
movzx eax, word [rcx + 2]
add rcx, 2
test ax, ax
jne 0x140054ca8
cmp rsi, rdi
je 0x140054d00
sub rsi, rdi
lea rcx, [rsp + 0x20]
sar rsi, 1
mov r8, rsi
call fcn.1400ed808
add rsi, rsi
cmp rsi, 0x208
jae 0x140054d8a
xor eax, eax
lea rdx, [rsp + 0x20]
mov rcx, rbx
mov word [rsp + rsi + 0x20], ax
call fcn.140054c60
lea rcx, [rsp + 0x230]
sub rcx, rbx
nop dword [rax + rax]
movzx eax, word [rbx]
mov word [rcx + rbx], ax
lea rbx, [rbx + 2]
test ax, ax
jne 0x140054d10
lea rcx, [rsp + 0x230]
sub rcx, 2
nop dword [rax]
cmp word [rcx + 2], 0
lea rcx, [rcx + 2]
jne 0x140054d30
xor edx, edx
nop dword [rax]
movzx eax, word [rdi + rdx*2]
mov word [rcx + rdx*2], ax
lea rdx, [rdx + 1]
test ax, ax
jne 0x140054d40
xor edx, edx
lea rcx, [rsp + 0x230]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov rsi, qword [rsp + 0x470]
mov rcx, qword [rsp + 0x440]
xor rcx, rsp
call fcn.1400d7670
mov rbx, qword [rsp + 0x478]
add rsp, 0x450
pop rdi
ret
call fcn.1400d7970
int3
Function at 0x140055440
Capabilities:
Get common file path

Disassembly:
push rbp
push rsi
push rdi
push r12
push r15
sub rsp, 0x40
mov r15, rcx
mov ebp, r8d
mov ecx, 0x348
mov r12d, edx
call fcn.1400d7034
xor esi, esi
mov qword [rsp + 0x88], rax
mov rdi, rax
test rax, rax
je 0x140055487
mov qword [rax], rsi
mov dword [rax + 8], 0xffffffff
mov dword [rax + 0x138], 0xffffffff
jmp 0x14005548a
mov rdi, rsi
cmp qword [rdi], 0
mov qword [rsp + 0x70], rbx
mov qword [rsp + 0x78], r14
jne 0x140055652
cmp dword [rdi + 8], 0xffffffff
jne 0x140055652
lea rbx, [rdi + 0x13c]
mov ecx, 0x104
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
sub rbx, 2
cmp word [rbx + 2], 0
lea rbx, [rbx + 2]
jne 0x1400554c1
mov eax, dword [0x140245a90]
mov dword [rbx], eax
cmp ebp, 1
jne 0x1400554f5
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, ebp
je 0x140055507
mov dword [0x140320644], 0x2000000
jmp 0x14005565c
lea eax, [rbp - 2]
cmp eax, 1
jbe 0x140055507
mov eax, 0x10000
jmp 0x140055634
xor r14b, r14b
mov qword [rsp + 0x88], rsi
cmp ebp, 1
je 0x140055562
cmp ebp, 2
jne 0x1400555be
mov qword [rsp + 0x30], rsi
lea r8d, [rbp - 1]
mov dword [rsp + 0x28], 0x80
xor r9d, r9d
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0x88], rax
cmp rax, 0xffffffffffffffff
jne 0x1400555ae
mov eax, 0x200
jmp 0x140055634
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [rsp + 0x30], 2
lea r9, [rsp + 0x88]
mov rcx, rax
mov dword [rsp + 0x28], esi
mov r8, rbx
mov dword [rsp + 0x20], esi
mov rdx, r15
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
jne 0x1400555a6
mov eax, 0x100
jmp 0x140055634
mov rax, qword [rsp + 0x88]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
sete r14b
mov ecx, 0x28
call fcn.1400d7034
lea ecx, [rbp - 1]
mov rbx, rax
cmp ecx, 1
jbe 0x1400555e8
mov word [rax], 0x100
mov qword [rax + 0x18], r15
mov dword [rax + 0x20], r12d
mov dword [rax + 0x24], esi
mov dword [rax + 0x14], esi
jmp 0x140055623
mov byte [rax], 1
mov byte [rax + 1], r14b
mov rax, qword [rsp + 0x88]
mov qword [rbx + 8], rax
mov byte [rbx + 0x10], 0
mov dword [rbx + 0x14], esi
test r14b, r14b
je 0x140055623
mov rcx, qword [rsp + 0x88]
mov r9d, 1
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [rbx + 0x14], eax
mov rcx, rbx
call fcn.140058900
mov qword [rdi], rax
mov eax, dword [0x140320648]
mov dword [0x140320644], eax
test eax, eax
jne 0x14005565c
lea ecx, [rax + 0x10]
call fcn.1400d7034
mov dword [rax], 1
mov qword [rax + 8], rdi
jmp 0x140055666
mov dword [0x140320644], 0x1000000
mov rcx, rdi
call fcn.140086ba0
xor eax, eax
mov r14, qword [rsp + 0x78]
mov rbx, qword [rsp + 0x70]
add rsp, 0x40
pop r15
pop r12
pop rdi
pop rsi
pop rbp
ret