joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40746c
Capabilities:
Clear file content

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x20
lea r9, [rsp + 0x50]
xor r8d, r8d
mov rdi, rdx
mov rsi, rcx
call fcn.00407258
xor ebx, ebx
cmp al, bl
je 0x407494
cmp qword [rsp + 0x50], rdi
je 0x407498
xor al, al
jmp 0x4074a6
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
cmp eax, ebx
setne al
add rsp, 0x20
pop rdi
pop rsi
pop rbx
ret

Function at 0x4088a8
Capabilities:
Get common file path

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x230
mov rax, qword [rcx]
xor esi, esi
mov rdi, rcx
mov dword [rcx + 8], esi
lea rdx, [rsp + 0x20]
mov ecx, 0x105
mov word [rax], si
mov word [rsp + 0x20], si
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea rdx, [rsp + 0x20]
mov rcx, rdi
mov ebx, eax
call fcn.004024d0
lea r11d, [rbx - 1]
cmp r11d, 0x103
setbe al
add rsp, 0x230
pop rdi
pop rsi
pop rbx
ret

Function at 0x40a484
Capabilities:
Set registry value

Disassembly:
mov dword [rsp + 0x18], r8d
sub rsp, 0x38
mov rcx, qword [rcx]
lea rax, [rsp + 0x50]
mov r9d, 4
mov dword [rsp + 0x28], r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
add rsp, 0x38
ret

Function at 0x40a4b4
Capabilities:
Set registry value

Disassembly:
mov al, r8b
xor r8d, r8d
cmp al, r8b
setne r8b
jmp fcn.0040a484

Function at 0x40a4c8
Capabilities:
Set registry value

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x30
mov rsi, rcx
mov rcx, r8
mov rbx, r8
mov rdi, rdx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rcx, qword [rsi]
lea eax, [rax + rax + 2]
mov r9d, 1
xor r8d, r8d
mov dword [rsp + 0x28], eax
mov rdx, rdi
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
add rsp, 0x30
pop rdi
pop rsi
pop rbx
ret

Function at 0x40a50c
Capabilities:
Set registry value

Disassembly:
sub rsp, 0x38
mov rcx, qword [rcx]
mov dword [rsp + 0x28], r9d
mov qword [rsp + 0x20], r8
mov r9d, 3
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
add rsp, 0x38
ret

Function at 0x40a534
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
sub rsp, 0x48
mov rcx, qword [rcx]
lea rax, [r11 + 0x20]
lea r9, [r11 - 0x18]
mov qword [r11 - 0x20], rax
mov qword [r11 - 0x28], r8
xor r8d, r8d
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x68], 4
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
add rsp, 0x48
ret
Function at 0x40a5e4
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rsi
push rdi
mov r11, rsp
sub rsp, 0x40
mov rax, qword [r8]
mov dword [r8 + 8], 0
mov rsi, rcx
mov word [rax], 0
mov rcx, qword [rcx]
lea rax, [r11 + 0x30]
mov rbx, r8
mov qword [r11 - 0x18], rax
lea r9, [r11 - 0x10]
xor r8d, r8d
mov qword [r11 - 0x20], 0
mov rdi, rdx
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x70], 0
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x40a643
cmp eax, 0xea
jne 0x40a6b9
mov edx, dword [rsp + 0x70]
cmp edx, dword [rbx + 0xc]
mov dword [rsp + 0x78], edx
jbe 0x40a658
mov rcx, rbx
call fcn.00402020
mov rax, qword [rbx]
lea rcx, [rsp + 0x78]
lea r9, [rsp + 0x34]
mov qword [rsp + 0x28], rcx
mov rcx, qword [rsi]
xor r8d, r8d
mov rdx, rdi
mov dword [rsp + 0x34], 0
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [rsp + 0x70]
mov rdx, qword [rbx]
cmp ecx, dword [rsp + 0x78]
cmova ecx, dword [rsp + 0x78]
mov dword [rsp + 0x70], ecx
shr rcx, 1
mov word [rdx + rcx*2], 0
xor ecx, ecx
cmp word [rdx], cx
je 0x40a6b6
add rdx, 2
inc ecx
cmp word [rdx], 0
jne 0x40a6aa
mov dword [rbx + 8], ecx
add rsp, 0x40
pop rdi
pop rsi
pop rbx
ret

Function at 0x40a7b8
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push rbx
push rsi
push rdi
mov rax, rsp
sub rsp, 0x260
mov rdi, rdx
mov r8, rdx
mov rdx, qword [rcx]
mov rsi, rcx
lea rcx, [rax + 0x38]
mov r9d, 0x2001f
mov qword [rax + 0x38], 0
call fcn.0040a764
test eax, eax
mov ebx, eax
jne 0x40a86c
mov ebx, 0x105
jmp 0x40a804
lea rdx, [rsp + 0x50]
call fcn.0040a7b8
test eax, eax
jne 0x40a86a
mov rcx, qword [rsp + 0x298]
lea rax, [rsp + 0x40]
lea r9, [rsp + 0x290]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
lea r8, [rsp + 0x50]
xor edx, edx
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x290], ebx
mov qword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea rcx, [rsp + 0x298]
test eax, eax
je 0x40a7f6
call fcn.0040a45c
mov rcx, qword [rsi]
mov rdx, rdi
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov ebx, eax
lea rcx, [rsp + 0x298]
call fcn.0040a45c
mov eax, ebx
add rsp, 0x260
pop rdi
pop rsi
pop rbx
ret
Function at 0x40a888
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
mov rax, rsp
sub rsp, 0x40
mov dword [r9], 0
mov qword [rax - 0x18], r9
mov r12, rcx
mov rcx, qword [rcx]
mov rsi, r9
mov rbx, r8
lea r9, [rax + 0x48]
xor r8d, r8d
mov rbp, rdx
mov dword [rax + 0x48], 0
mov qword [rax - 0x20], 0
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x40a8d7
cmp eax, 0xea
jne 0x40a939
mov edi, dword [rsi]
cmp rdi, qword [rbx + 8]
je 0x40a90f
mov rcx, qword [rbx]
test rcx, rcx
je 0x40a8f3
call sub.msvcrt.dll_free
mov qword [rbx], 0
test rdi, rdi
mov qword [rbx + 8], 0
je 0x40a90f
mov rcx, rdi
call fcn.00402db8
mov qword [rbx + 8], rdi
mov qword [rbx], rax
mov rax, qword [rbx]
mov rcx, qword [r12]
lea r9, [rsp + 0x30]
xor r8d, r8d
mov rdx, rbp
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x30], 0
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
add rsp, 0x40
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x40a944
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rcx
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x38
xor esi, esi
mov r12, r8
mov r15, rdx
cmp dword [r8 + 8], esi
mov rbp, rsi
jbe 0x40a985
mov r9, qword [r8]
mov r8d, dword [r8 + 8]
mov rax, qword [r9]
add r9, 8
mov eax, dword [rax + 8]
inc eax
add rbp, rax
dec r8
jne 0x40a971
cmp rbp, rsi
mov rbx, rsi
je 0x40a99a
lea rcx, [rbp + rbp]
call fcn.00402db8
mov rbx, rax
cmp dword [r12 + 8], esi
mov r14d, esi
jbe 0x40a9d8
mov r13, rsi
mov rax, qword [r12]
lea rcx, [rbx + rsi*2]
mov rdx, qword [r13 + rax]
mov eax, dword [rdx + 8]
mov rdx, qword [rdx]
inc eax
mov edi, eax
lea r8, [rax + rax]
call fcn.004859ac
inc r14d
add rsi, rdi
add r13, 8
cmp r14d, dword [r12 + 8]
jb 0x40a9a7
mov rcx, qword [rsp + 0x80]
lea eax, [rbp + rbp]
mov r9d, 3
mov rcx, qword [rcx]
mov dword [rsp + 0x28], eax
xor r8d, r8d
mov rdx, r15
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, rbx
mov edi, eax
call sub.msvcrt.dll_free
mov eax, edi
add rsp, 0x38
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x40b2e4
Capabilities:
Get memory capacity

Disassembly:
push rbx
sub rsp, 0x60
movabs rax, 0x100000000
mov rbx, rcx
mov dword [rsp + 0x20], 0x40
mov qword [rcx], rax
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
test eax, eax
je 0x40b326
mov rax, qword [rsp + 0x28]
cmp qword [rsp + 0x48], rax
cmovb rax, qword [rsp + 0x48]
mov qword [rbx], rax
mov al, 1
add rsp, 0x60
pop rbx
ret
Function at 0x40b3dc
Capabilities:
Get graphical window text

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x28
mov rax, qword [rdx]
xor ebx, ebx
mov rbp, rcx
mov dword [rdx + 8], ebx
mov word [rax], bx
mov rcx, qword [rcx]
mov rdi, rdx
call qword [sym.imp.USER32.dll_GetWindowTextLengthW]
cmp eax, ebx
mov esi, eax
je 0x40b447
cmp eax, dword [rdi + 0xc]
jbe 0x40b414
mov edx, eax
mov rcx, rdi
call fcn.00402020
mov rdx, qword [rdi]
mov rcx, qword [rbp]
lea r8d, [rsi + 1]
call qword [sym.imp.USER32.dll_GetWindowTextW]
mov rcx, qword [rdi]
cmp esi, eax
cmovg esi, eax
mov eax, ebx
mov word [rcx + rsi*2], bx
jmp 0x40b43b
inc eax
add rcx, 2
cmp word [rcx], bx
jne 0x40b435
cmp esi, ebx
mov dword [rdi + 8], eax
jne 0x40b454
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
sete al
jmp 0x40b456
mov al, 1
add rsp, 0x28
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x4195cc
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x98
mov edx, dword [rcx + 0x20]
mov rax, qword [rcx + 0x18]
mov rbp, rcx
mov rsi, qword [rax + rdx*8 - 8]
lea rdx, str.CreateDecoder
mov rcx, qword [rsi + 0x10]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rsi + 0x10]
lea rdx, str.CreateEncoder
mov qword [rsi + 0x38], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rsi + 0x10]
lea rdx, str.GetMethodProperty
mov qword [rsi + 0x40], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
xor ebx, ebx
cmp rax, rbx
mov qword [rsi + 0x30], rax
je 0x419702
mov rcx, qword [rsi + 0x10]
lea rdx, str.GetNumberOfMethods
mov dword [rsp + 0xc0], 1
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp rax, rbx
je 0x419664
lea rcx, [rsp + 0xc0]
call rax
cmp eax, ebx
jne 0x419763
cmp dword [rsp + 0xc0], ebx
mov edi, ebx
jbe 0x419702
mov eax, dword [rbp + 0x20]
mov rcx, qword [rsi + 0x30]
lea r9, [rsp + 0x3c]
dec eax
mov r8d, 3
mov edx, edi
mov dword [rsp + 0x30], eax
lea rax, [rsp + 0x38]
mov dword [rsp + 0x34], edi
mov qword [rsp + 0x20], rax
call fcn.00418f08
cmp eax, ebx
jne 0x419763
mov rcx, qword [rsi + 0x30]
lea rax, [rsp + 0x39]
lea r9, [rsp + 0x4c]
mov r8d, 2
mov edx, edi
mov qword [rsp + 0x20], rax
call fcn.00418f08
cmp eax, ebx
jne 0x419763
lea rcx, [rsp + 0x60]
lea rdx, [rsp + 0x30]
mov r8d, 0x2c
call fcn.004859ac
lea rcx, [rbp + 0x60]
lea rdx, [rsp + 0x60]
call fcn.00419278
inc edi
cmp edi, dword [rsp + 0xc0]
jb 0x419673
mov rcx, qword [rsi + 0x10]
lea rdx, str.GetHashers
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp rax, rbx
je 0x419761
lea rcx, [rsi + 0x50]
call rax
cmp eax, ebx
jne 0x419763
mov rcx, qword [rsi + 0x50]
cmp rcx, rbx
je 0x419761
mov rax, qword [rcx]
call qword [rax + 0x18]
cmp eax, ebx
mov edi, eax
jbe 0x419761
mov ecx, dword [rbp + 0x20]
mov dword [rsp + 0xc4], ebx
dec ecx
mov dword [rsp + 0xc0], ecx
mov rdx, qword [rsp + 0xc0]
lea rcx, [rbp + 0x70]
int3
xor eax, eax
add rsp, 0x98
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x43dcac
Capabilities:
Delete registry key

Disassembly:
sub rsp, 0x28
test edx, edx
jne 0x43dcc6
mov rdx, rcx
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
jmp 0x43dceb
mov rax, qword [0x004bb6a8]
test rax, rax
jne 0x43dcd9
mov eax, 0x80004001
jmp 0x43dceb
mov r8d, edx
mov rdx, rcx
xor r9d, r9d
mov rcx, 0xffffffff80000000
call rax
add rsp, 0x28
ret

Function at 0x44e278
Capabilities:
Copy file

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [rcx + 0x38]
xor ebx, ebx
mov r10, r8
cmp rax, rbx
mov r11, rdx
mov dword [rsp + 0x40], ebx
je 0x44e2b9
lea rdx, [rsp + 0x40]
mov r9, rcx
mov dword [rsp + 0x28], 1
mov qword [rsp + 0x20], rdx
lea r8, [0x0044e1b0]
mov rcx, r11
mov rdx, r10
call rax
jmp 0x44e2cb
mov r8d, 1
mov rdx, r10
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_CopyFileW]
cmp eax, ebx
setne al
add rsp, 0x30
pop rbx
ret

Function at 0x44fce4
Capabilities:
Identify system language via api

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
sub rsp, 0x60
mov qword [rsp + 0x20], 0xfffffffffffffffe
call qword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
movzx ebx, ax
call qword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
movzx edi, ax
cmp bx, ax
jne 0x44fe70
movzx ecx, ax
and cx, 0x3ff
shr di, 0xa
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x34], 0
movzx ecx, cx
lea rdx, [rsp + 0x28]
call fcn.0044fb78
lea rcx, [rsp + 0x48]
call fcn.0044f7fc
nop
xor esi, esi
movzx r12d, di
movsxd rbx, dword [rsp + 0x30]
mov rdi, qword [rsp + 0x28]
xor eax, eax
test esi, esi
cmove eax, r12d
cmp eax, ebx
jae 0x44fdcb
mov rbp, qword [rdi + rax*8]
cmp dword [rbp + 8], 0
je 0x44fdcb
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x38]
call fcn.00402448
nop
mov rdx, qword [rbp]
lea rcx, [rsp + 0x38]
call fcn.004027a4
lea rdx, str..txt
lea rcx, [rsp + 0x38]
call fcn.004027a4
lea r8, [0x0048ccf8]
mov rdx, qword [rsp + 0x38]
lea rcx, [0x004bbc98]
call fcn.00401694
test al, al
jne 0x44fdd4
mov rcx, qword [rsp + 0x38]
call sub.msvcrt.dll_free
inc esi
cmp esi, 2
jb 0x44fd60
jmp 0x44fe31
mov rdx, qword [rbp]
lea rcx, [0x004bbc88]
call fcn.0040264c
nop
mov rcx, qword [rsp + 0x38]
call sub.msvcrt.dll_free
nop
mov rcx, qword [rsp + 0x48]
call sub.msvcrt.dll_free
nop
test ebx, ebx
je 0x44fe27
lea rsi, [rdi + rbx*8]
add ebx, 0xffffffff
sub rsi, 8
mov rbp, qword [rsi]
test rbp, rbp
je 0x44fe23
mov rcx, qword [rbp]
call sub.msvcrt.dll_free
mov rcx, rbp
call sub.msvcrt.dll_free
test ebx, ebx
jne 0x44fe03
mov rcx, rdi
call sub.msvcrt.dll_free
jmp 0x44fe70
mov rcx, qword [rsp + 0x48]
call sub.msvcrt.dll_free
nop
test ebx, ebx
je 0x44fe68
lea rsi, [rdi + rbx*8]
add ebx, 0xffffffff
sub rsi, 8
mov rbp, qword [rsi]
test rbp, rbp
je 0x44fe64
mov rcx, qword [rbp]
call sub.msvcrt.dll_free
mov rcx, rbp
call sub.msvcrt.dll_free
test ebx, ebx
jne 0x44fe44
mov rcx, rdi
call sub.msvcrt.dll_free
add rsp, 0x60
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x454050
Capabilities:
Log keystrokes via polling

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0x38
mov eax, edx
mov rbp, r9
mov rdi, r8
sub eax, 0x100
mov r12d, edx
mov rsi, rcx
je 0x45413b
sub eax, 2
je 0x45410d
cmp eax, 2
jne 0x454121
cmp r8, 0x70
jb 0x454121
cmp r8, 0x71
ja 0x454121
bt r9, 0x1d
jae 0x454121
lea ecx, [rax + 0x10]
call qword [sym.imp.USER32.dll_GetKeyState]
mov ecx, reloc.COMCTL32.dll_InitCommonControls
mov bx, ax
shr ebx, 0xf
and bl, 1
call qword [sym.imp.USER32.dll_GetKeyState]
mov ecx, InitCommonControls
mov r13w, ax
shr r13d, 0xf
and r13b, 1
call qword [sym.imp.USER32.dll_GetKeyState]
xor edx, edx
mov r11w, ax
shr r11d, 0xf
and r11b, 1
cmp bl, dl
je 0x454121
cmp r13b, dl
jne 0x454121
cmp r11b, dl
jne 0x454121
mov rax, qword [rsi + 0x10]
cmp rdi, 0x70
mov rcx, qword [rax + 0x58]
setne dl
mov rax, qword [rcx]
call qword [rax + VariantCopy]
jmp 0x4541b7
cmp r8, 9
je 0x4541b7
cmp r8, 0x1b
je 0x4541b7
mov rdx, qword [rsi]
mov rcx, qword [rsi + 8]
mov r9, rdi
mov r8d, r12d
mov qword [rsp + 0x20], rbp
call qword [sym.imp.USER32.dll_CallWindowProcW]
jmp 0x4541b9
cmp r8, 9
je 0x4541a6
cmp r8, 0x78
jne 0x454121
lea ecx, [r8 - 0x66]
call qword [sym.imp.USER32.dll_GetKeyState]
mov ecx, reloc.COMCTL32.dll_InitCommonControls
mov bx, ax
shr ebx, 0xf
and bl, 1
call qword [sym.imp.USER32.dll_GetKeyState]
mov ecx, InitCommonControls
mov r13w, ax
shr r13d, 0xf
and r13b, 1
call qword [sym.imp.USER32.dll_GetKeyState]
xor edx, edx
mov r11w, ax
shr r11d, 0xf
and r11b, 1
cmp bl, dl
jne 0x454121
cmp r13b, dl
jne 0x454121
cmp r11b, dl
jne 0x454121
lea rcx, [0x004bb750]
call fcn.0043e8a4
jmp 0x4541b7
mov rcx, qword [rcx + 0x10]
mov rcx, qword [rcx + 0xa8]
call qword [sym.imp.USER32.dll_SetFocus]
xor eax, eax
add rsp, 0x38
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x469358
Capabilities:
Log keystrokes via polling

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x20
mov rsi, rcx
mov ecx, 0x12
call qword [sym.imp.USER32.dll_GetKeyState]
mov ecx, reloc.COMCTL32.dll_InitCommonControls
mov di, ax
shr edi, 0xf
and dil, 1
call qword [sym.imp.USER32.dll_GetKeyState]
mov ecx, InitCommonControls
mov bx, ax
shr ebx, 0xf
and bl, 1
call qword [sym.imp.USER32.dll_GetKeyState]
mov r11w, ax
shr r11d, 0xf
and r11b, 1
jne 0x4693ba
xor edx, edx
cmp dil, dl
je 0x4693c5
cmp bl, dl
jne 0x4693c5
mov rcx, rsi
call fcn.0046b4e0
jmp 0x4693cf
xor dl, dl
cmp dil, dl
jne 0x4693c5
cmp bl, dl
je 0x4693c7
mov dl, 1
mov rcx, rsi
call fcn.004666fc
add rsp, 0x20
pop rdi
pop rsi
pop rbx
ret

Function at 0x475ca8
Capabilities:
Get common file path
Get file system object information

Disassembly:
mov rax, rsp
sub rsp, 0x2f8
mov edx, ecx
lea r8, [rax + 0x10]
xor ecx, ecx
mov qword [rax + 0x10], 0
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
mov rcx, qword [rsp + 0x308]
test rcx, rcx
je 0x475d30
lea r8, [rsp + 0x30]
mov r9d, 0x2b8
mov edx, 0x80
mov dword [rsp + 0x20], 0x4008
call qword [sym.imp.SHELL32.dll_SHGetFileInfoW]
lea rcx, [rsp + 0x310]
call qword [sym.imp.SHELL32.dll_SHGetMalloc]
mov rcx, qword [rsp + 0x310]
test rcx, rcx
je 0x475d2a
mov rax, qword [rcx]
mov rdx, qword [rsp + 0x308]
call qword [rax + 0x28]
mov rcx, qword [rsp + 0x310]
mov rax, qword [rcx]
call qword [rax + InitCommonControls]
mov eax, dword [rsp + 0x38]
jmp 0x475d32
xor eax, eax
add rsp, 0x2f8
ret

Function at 0x475d3c
Capabilities:
Get file system object information

Disassembly:
push rbx
sub rsp, 0x2f0
mov rbx, r8
lea r8, [rsp + 0x30]
bts edx, 7
mov r9d, 0x2b8
mov dword [rsp + 0x20], 0x4010
call qword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov ecx, dword [rsp + 0x38]
mov dword [rbx], ecx
add rsp, 0x2f0
pop rbx
ret

Function at 0x479480
Capabilities:
Log keystrokes via polling

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov ecx, 0x12
call qword [sym.imp.USER32.dll_GetKeyState]
mov r11w, ax
shr r11d, 0xf
test r11b, 1
jne 0x4794b3
cmp dword [rbx + 0x54], 1
ja 0x4794b3
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x40]
jmp 0x4794bb
mov rcx, rbx
call fcn.00479238
add rsp, 0x20
pop rbx
ret
Function at 0x47e6e8
Capabilities:
Log keystrokes via polling

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x60
mov rsi, rcx
mov ecx, reloc.COMCTL32.dll_InitCommonControls
mov rbx, rdx
call qword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x12
mov di, ax
shr edi, 0xf
and dil, 1
call qword [sym.imp.USER32.dll_GetKeyState]
mov r11w, ax
shr r11d, 0xf
test r11b, 1
jne 0x47e7a2
movzx ecx, word [rbx + 0x18]
xor edx, edx
cmp dil, dl
je 0x47e772
cmp cx, 0x41
je 0x47e778
movzx eax, cx
cmp eax, 0x20
je 0x47e75a
cmp eax, 0x6a
jle 0x47e7a2
cmp eax, 0x6d
jle 0x47e75a
cmp eax, 0x6f
je 0x47e75a
cmp eax, 0xbb
je 0x47e75a
cmp eax, 0xbd
jne 0x47e7a2
cmp dil, dl
jne 0x47e7a2
cmp cx, 0x20
mov rcx, rsi
setne dl
call fcn.0047e620
mov al, 1
jmp 0x47e7a4
cmp cx, 0x6a
jne 0x47e735
mov ecx, 2
lea r9, [rsp + 0x20]
mov edx, 0x102b
mov dword [rsp + 0x30], ecx
mov dword [rsp + 0x2c], ecx
mov rcx, qword [rsi + 0x50]
mov r8, 0xffffffffffffffff
call qword [sym.imp.USER32.dll_SendMessageW]
jmp 0x47e76e
xor al, al
add rsp, 0x60
pop rdi
pop rsi
pop rbx
ret

Function at 0x485bfd
Capabilities:
Contain obfuscated stackstrings
Parse pe header

Disassembly:
mov rax, qword [rsp + 8]
and rdx, 0
Function at 0x14002924c
Capabilities:
Clear file content

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
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.14001c844
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14001c844
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x14002939c
cmp rax, 0xffffffffffffffff
je 0x14002939c
xor edi, edi
test rbp, rbp
jle 0x140029347
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14001f158
mov rbx, rax
test rax, rax
jne 0x1400292d4
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x14002933d
mov edx, 0x8000
mov ecx, r14d
call fcn.14001a178
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.14001d520
cmp eax, 0xffffffff
je 0x14002931d
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1400292e4
mov edx, r15d
mov ecx, r14d
call fcn.14001a178
jmp 0x14002933d
cmp byte [rsi + 0x38], dil
je 0x140029334
cmp dword [rsi + 0x34], 5
jne 0x140029334
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x14002933d
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14001af0c
jmp 0x1400293b0
jns 0x1400293b0
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14001c844
cmp rax, 0xffffffffffffffff
jne 0x140029368
cmp byte [rsi + 0x30], dil
je 0x1400293b0
mov edi, dword [rsi + 0x2c]
jmp 0x1400293b0
mov ecx, r14d
call fcn.140018630
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1400293b0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x1400293b0
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1400293a9
mov eax, dword [rsi + 0x2c]
jmp 0x1400293ae
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14001c844
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x140001b18
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140001b62
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140001b62
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140001b62
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140001b62
cmp dword [rcx + 0x84], 0xe
jbe 0x140001b62
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140001b64
xor al, al
add rsp, 0x28
ret
Function at 0x140001990
Capabilities:
Allocate or change rwx memory

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x60
mov rax, qword [0x14000e0a8]
xor rax, rsp
mov qword [rbp - 8], rax
mov rcx, qword [rdx]
call fcn.140001050
cmp eax, 0x1c
ja 0x140001b1b
xor eax, eax
or rcx, 0xffffffffffffffff
mov qword [rsp + 0x70], rbx
mov qword [rsp + 0x80], rsi
mov qword [rsp + 0x88], rdi
lea rdi, [rbp - 0x28]
mov dword [rbp - 0x28], 0x2e646c6c
mov dword [rbp - 0x24], 0x68747470
mov dword [rbp - 0x20], 0x57696e
repne scasb al, byte [rdi]
not rcx
dec rcx
mov eax, ecx
movsxd rdi, ecx
cdq
sub eax, edx
sar eax, 1
test eax, eax
jle 0x140001a26
lea rdx, [rbp - 0x28]
lea rdi, [rbp + rdi - 0x29]
mov r8d, eax
nop
movzx eax, byte [rdi]
movzx ecx, byte [rdx]
dec rdi
mov byte [rdx], al
mov byte [rdi + 1], cl
inc rdx
dec r8
jne 0x140001a10
lea rcx, [rbp - 0x28]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea rcx, [rbp - 0x38]
mov rdx, rax
call fcn.140001200
mov rbx, qword [rax]
mov rsi, qword [rax + 8]
test rbx, rbx
je 0x140001b06
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rbp - 0x18]
mov dword [rbp - 0x18], 0x2e646c6c
mov dword [rbp - 0x14], 0x68656c70
mov dword [rbp - 0x10], 0x646267
repne scasb al, byte [rdi]
not rcx
dec rcx
mov eax, ecx
movsxd rdi, ecx
cdq
sub eax, edx
sar eax, 1
test eax, eax
jle 0x140001aa6
lea rdx, [rbp - 0x18]
lea rdi, [rbp + rdi - 0x19]
mov r8d, eax
nop dword [rax]
movzx eax, byte [rdi]
movzx ecx, byte [rdx]
dec rdi
mov byte [rdx], al
mov byte [rdi + 1], cl
inc rdx
dec r8
jne 0x140001a90
lea rcx, [rbp - 0x18]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea r9, [rbp - 0x40]
mov rdx, rsi
test rax, rax
je 0x140001aed
lea rdi, [rax + 0x1000]
mov r8d, 0x40
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov r8, rsi
mov rdx, rbx
mov rcx, rdi
call fcn.140002700
mov rcx, rbx
call fcn.140002500
mov rcx, rdi
jmp 0x140001b01
mov r8d, 0x20
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ecx, 0x1000
call fcn.140002d44
mov rdi, qword [rsp + 0x88]
mov rsi, qword [rsp + 0x80]
mov rbx, qword [rsp + 0x70]
xor eax, eax
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.1400024e0
add rsp, 0x60
pop rbp
ret