joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6d29c0
Capabilities:
Get keyboard layout

Disassembly:
push rbp
add rsp, 0xffffffffffffff80
mov rbp, rsp
mov qword [rbp + 0x30], 0
mov qword [rbp + 0x28], 0
mov qword [rbp + 0x68], 0
mov qword [rbp + 0x38], rbp
mov qword [rbp + 0x90], rcx
nop
mov byte [0x00767228], 0
mov word [rbp + 0x54], 0
lea rcx, [rbp + 0x54]
call sub.user32.dll_GetKeyboardLayoutNameW
mov rcx, qword [0x005a03f0]
mov dl, 1
call fcn.005a1b10
mov qword [rbp + 0x70], rax
nop
mov rcx, qword [rbp + 0x70]
mov rdx, 0xffffffff80000002
call fcn.005a1dc0
lea rcx, [rbp + 0x28]
lea rdx, [rbp + 0x54]
mov r8d, 0xa
call fcn.00410f90
lea rcx, [rbp + 0x30]
lea rdx, [0x006d2ba8]
mov r8, qword [rbp + 0x28]
call fcn.00411300
mov rcx, qword [rbp + 0x70]
mov rdx, qword [rbp + 0x30]
call fcn.005a21b0
test al, al
je 0x6d2afa
mov rcx, qword [rbp + 0x70]
lea rdx, [rbp + 0x68]
lea r8, [0x006d2c1c]
call fcn.005a2e20
mov rcx, qword [rbp + 0x68]
mov edx, 0x8000
call fcn.00443170
mov qword [rbp + 0x78], rax
cmp qword [rbp + 0x78], 0
je 0x6d2afa
nop
mov rcx, qword [rbp + 0x78]
lea rdx, [0x006d2c34]
call fcn.00420a40
mov qword [rbp + 0x40], rax
cmp qword [rbp + 0x40], 0
je 0x6d2af0
call qword [rbp + 0x40]
mov qword [rbp + 0x48], rax
cmp qword [rbp + 0x48], 0
je 0x6d2af0
mov rcx, qword [rbp + 0x90]
call fcn.006d2930
test eax, eax
je 0x6d2ad4
mov rax, qword [rbp + 0x48]
mov eax, dword [rax + 0x50]
mov dword [rbp + 0x50], eax
jmp 0x6d2ade
mov rax, qword [rbp + 0x48]
mov eax, dword [rax + 0x50]
mov dword [rbp + 0x50], eax
mov eax, dword [rbp + 0x50]
and eax, 1
cmp eax, 1
sete al
mov byte [0x00767228], al
nop
mov rcx, qword [rbp + 0x78]
call sub.kernel32.dll_FreeLibrary
nop
mov rcx, qword [rbp + 0x70]
call fcn.0040c9f0
nop
lea rcx, [rbp + 0x28]
mov edx, 2
call fcn.0040fd60
lea rcx, [rbp + 0x68]
call fcn.0040fc80
lea rsp, [rbp + 0x80]
pop rbp
ret

Function at 0x6d2cb0
Capabilities:
Log keystrokes via polling

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
mov rbp, rsp
mov rsi, rcx
lea rdi, [rbp + 0x20]
movsq qword [rdi], qword [rsi]
movsq qword [rdi], qword [rsi]
movsq qword [rdi], qword [rsi]
movsq qword [rdi], qword [rsi]
movzx bx, byte [rbp + 0x28]
test bx, bx
je 0x6d2d0c
mov ecx, 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x6d2ce8
add bx, 0x2000
mov ecx, 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x6d2cfc
add bx, 0x4000
mov eax, dword [rbp + 0x30]
test eax, 0x20000000
je 0x6d2d0c
add bx, 0x8000
mov eax, ebx
lea rsp, [rbp + 0x48]
pop rbx
pop rsi
pop rdi
pop rbp
ret

Function at 0x6e5ec0
Capabilities:
Log keystrokes via polling

Disassembly:
push rbx
sub rsp, 0x20
movzx rbx, word [0x006e5f28]
mov eax, ecx
test ax, 4
je 0x6e5eda
or bx, 1
mov eax, ecx
test ax, 8
je 0x6e5ee7
or bx, 4
mov eax, ecx
test ax, 1
je 0x6e5ef4
or bx, 8
mov eax, ecx
test ax, 2
je 0x6e5f01
or bx, 0x10
test cx, 0x10
je 0x6e5f0c
or bx, 0x20
mov ecx, 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x6e5f1f
or bx, 2
mov eax, ebx
add rsp, 0x20
pop rbx
ret
Function at 0x6e5f30
Capabilities:
Log keystrokes via polling

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov ebx, ecx
movzx rsi, word [0x006e5f7c]
mov ecx, 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x6e5f53
or si, 1
mov ecx, 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x6e5f66
or si, 4
test ebx, 0x20000000
je 0x6e5f72
or si, 2
mov eax, esi
add rsp, 0x28
pop rbx
pop rsi
ret
Function at 0x6f4c40
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push rbp
sub rsp, 0x510
mov rbp, rsp
mov qword [rbp + 0x40], 0
mov qword [rbp + 0x58], rbp
mov qword [rbp + 0x520], rcx
nop
mov rax, qword [rbp + 0x520]
cmp qword [rax + 0x80], 0
jne 0x6f4e4d
mov rcx, qword [0x00462728]
mov dl, 1
call fcn.0049d900
mov rcx, qword [rbp + 0x520]
mov qword [rcx + 0x80], rax
mov rax, qword [rbp + 0x520]
lea rcx, [rax + 0x88]
call fcn.0040fc80
mov ecx, 0x40
lea rdx, [rbp + 0x2f0]
call sub.user32.dll_GetKeyboardLayoutList
mov dword [rbp + 0x4fc], eax
xor eax, eax
mov ecx, dword [rbp + 0x4fc]
sub ecx, 1
mov dword [rbp + 0x3c], ecx
mov dword [rbp + 0x4f8], eax
mov ecx, dword [rbp + 0x3c]
cmp dword [rbp + 0x4f8], ecx
jg 0x6f4e30
mov ecx, dword [rbp + 0x3c]
sub ecx, eax
add ecx, 1
mov dword [rbp + 0x3c], ecx
lea rax, [rbp + 0x2f0]
mov qword [rbp + 0x60], rax
mov rax, qword [rbp + 0x60]
mov rcx, qword [rax]
call fcn.00601dd0
test al, al
je 0x6f4e17
mov rax, qword [rbp + 0x60]
movzx eax, word [rax]
mov dword [rbp + 0x48], eax
mov byte [rbp + 0x50], 0
lea rcx, [rbp + 0x70]
lea rdx, [0x006f4eb8]
lea r8, [rbp + 0x48]
xor r9, r9
call fcn.004369e0
mov rcx, 0xffffffff80000002
mov rdx, rax
xor r8, r8
mov r9d, 0x20019
lea rax, [rbp + 0x508]
mov qword [rsp + 0x20], rax
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x6f4e17
nop
mov dword [rbp + 0x4f4], 0x200
mov rcx, qword [rbp + 0x508]
lea rdx, [0x006f4f26]
xor r8, r8
xor r9, r9
lea rax, [rbp + 0xf0]
mov qword [rsp + 0x20], rax
lea rax, [rbp + 0x4f4]
mov qword [rsp + 0x28], rax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x6f4e0a
lea rcx, [rbp + 0x40]
lea rdx, [rbp + 0xf0]
mov r8d, pe_nt_image_headers64
call fcn.00410f90
mov rax, qword [rbp + 0x520]
mov rax, qword [rax + 0x80]
mov rcx, rax
mov rdx, qword [rbp + 0x40]
mov r8, qword [rbp + 0x60]
mov r8, qword [r8]
mov rax, qword [rax]
call qword [rax + 0x80]
mov rax, qword [rbp + 0x60]
mov rcx, qword [rbp + 0x520]
mov rax, qword [rax]
cmp rax, qword [rcx + 0x90]
jne 0x6f4e0a
mov rax, qword [rbp + 0x520]
lea rcx, [rax + 0x88]
lea rdx, [rbp + 0xf0]
mov r8d, pe_nt_image_headers64
call fcn.00410f90
nop
mov rcx, qword [rbp + 0x508]
call sub.advapi32.dll_RegCloseKey
add qword [rbp + 0x60], 8
mov eax, dword [rbp + 0x3c]
sub eax, 1
mov dword [rbp + 0x3c], eax
mov eax, dword [rbp + 0x3c]
test eax, eax
jne 0x6f4cf3
nop
mov rax, qword [rbp + 0x520]
mov rax, qword [rax + 0x80]
mov byte [rax + 0x49], 0
mov rcx, rax
mov dl, 1
call fcn.0049d780
mov rax, qword [rbp + 0x520]
mov rax, qword [rax + 0x80]
mov qword [rbp + 0x500], rax
nop
lea rcx, [rbp + 0x40]
call fcn.0040fc80
mov rax, qword [rbp + 0x500]
lea rsp, [rbp + 0x510]
pop rbp
ret
Function at 0x6f5f60
Capabilities:
Create thread

Disassembly:
sub rsp, 0x48
mov rax, qword [0x00779d10]
cmp byte [rax + 0x159], 0
jne 0x6f5ffe
cmp qword [0x00779d48], 0
jne 0x6f5fa5
call sub.kernel32.dll_GetCurrentThreadId
mov ecx, 3
mov rdx, qword [0x00769570]
xor r8, r8
mov r9d, eax
call sub.user32.dll_SetWindowsHookExW
mov qword [0x00779d48], rax
cmp qword [0x00779d40], 0
jne 0x6f5fc5
xor ecx, ecx
xor edx, edx
xor r8, r8
xor r9, r9
call sub.kernel32.dll_CreateEventW
mov qword [0x00779d40], rax
cmp qword [0x00779d50], 0
jne 0x6f5ffe
xor ecx, ecx
mov edx, 0x3e8
mov r8, qword [0x00769568]
xor r9, r9
mov dword [rsp + 0x20], 0
lea rax, [rsp + 0x3c]
mov qword [rsp + 0x28], rax
call sub.kernel32.dll_CreateThread
mov qword [0x00779d50], rax
add rsp, 0x48
ret

Function at 0x6f71e0
Capabilities:
Enumerate gui resources

Disassembly:
push rbp
push rsi
push rbx
sub rsp, 0x50
mov rbp, rsp
mov rbx, rcx
mov rax, qword [rbx + 0x2d0]
test rax, rax
je 0x6f72bf
cmp dword [rbx + 0x128], 0
jne 0x6f72b5
mov qword [rbp + 0x40], rax
mov byte [rbp + 0x48], dl
lea rcx, [0x006f70e0]
lea rdx, [rbp + 0x40]
call sub.user32.dll_EnumWindows
mov rax, qword [rbx + 0x120]
cmp dword [rax + 0x10], 0
je 0x6f72b5
mov rcx, qword [rbp + 0x40]
mov edx, 3
call sub.user32.dll_GetWindow
mov qword [rbp + 0x40], rax
mov rcx, qword [rbp + 0x40]
mov edx, 0xffffffec
call sub.user32.dll_GetWindowLongPtrW
test rax, 8
je 0x6f7263
mov qword [rbp + 0x40], 0xfffffffffffffffe
mov rax, qword [rbx + 0x120]
mov esi, dword [rax + 0x10]
sub esi, 1
test esi, esi
jl 0x6f72b4
mov rcx, qword [rbx + 0x120]
mov edx, esi
call fcn.00495940
mov rcx, rax
mov rdx, qword [rbp + 0x40]
xor r8, r8
xor r9, r9
mov dword [rsp + 0x20], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x30], 0x213
call sub.user32.dll_SetWindowPos
sub esi, 1
cmp esi, 0xffffffff
jne 0x6f7274
nop
lea rax, [rbx + 0x128]
add dword [rax], 1
lea rsp, [rbp + 0x50]
pop rbx
pop rsi
pop rbp
ret
Function at 0x6f7660
Capabilities:
Enumerate gui resources

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbx, rcx
mov esi, edx
mov rax, qword [0x00779d10]
cmp qword [rax + 0x2d0], 0
je 0x6f7824
test sil, sil
jne 0x6f774c
cmp dword [rbx + 0x138], 0
jne 0x6f773d
mov rcx, rbx
call fcn.006fbb50
lea rcx, [0x006f7520]
mov rdx, rax
call sub.user32.dll_EnumWindows
cmp qword [rbx + 0xa8], 0
je 0x6f76ff
mov rax, qword [0x00779d10]
cmp byte [rax + 0x193], 0
je 0x6f76ff
mov rax, qword [rbx + 0x1a0]
test rax, rax
je 0x6f76d9
mov rax, qword [rax - 8]
lea rdi, [rax - 1]
test edi, edi
jl 0x6f76fe
mov rax, qword [rbx + 0x1a0]
movsxd rcx, edi
mov rcx, qword [rax + rcx*8]
xor edx, edx
call sub.user32.dll_ShowWindow
sub edi, 1
cmp edi, 0xffffffff
jne 0x6f76e1
nop
mov rax, qword [rbx + 0x130]
mov edi, dword [rax + 0x10]
sub edi, 1
test edi, edi
jl 0x6f773c
mov rcx, qword [rbx + 0x130]
mov edx, edi
call fcn.00495940
mov rcx, rax
test sil, sil
setne al
movzx rax, al
neg eax
mov edx, eax
call sub.user32.dll_ShowOwnedPopups
sub edi, 1
cmp edi, 0xffffffff
jne 0x6f7710
nop
lea rax, [rbx + 0x138]
add dword [rax], 1
jmp 0x6f7824
cmp dword [rbx + 0x138], 0
jle 0x6f7824
lea rax, [rbx + 0x138]
sub dword [rax], 1
cmp dword [rbx + 0x138], 0
jne 0x6f7824
cmp qword [rbx + 0xa8], 0
je 0x6f77c3
mov rax, qword [0x00779d10]
cmp byte [rax + 0x193], 0
je 0x6f77c3
mov rax, qword [rbx + 0x1a0]
test rax, rax
je 0x6f779a
mov rax, qword [rax - 8]
lea rdi, [rax - 1]
test edi, edi
jl 0x6f77c2
mov rax, qword [rbx + 0x1a0]
movsxd rcx, edi
mov rcx, qword [rax + rcx*8]
mov edx, 5
call sub.user32.dll_ShowWindow
sub edi, 1
cmp edi, 0xffffffff
jne 0x6f77a2
nop
mov rax, qword [rbx + 0x130]
mov edi, dword [rax + 0x10]
sub edi, 1
test edi, edi
jl 0x6f7800
mov rcx, qword [rbx + 0x130]
mov edx, edi
call fcn.00495940
mov rcx, rax
test sil, sil
setne al
movzx rax, al
neg eax
mov edx, eax
call sub.user32.dll_ShowOwnedPopups
sub edi, 1
cmp edi, 0xffffffff
jne 0x6f77d4
nop
mov rax, qword [rbx + 0x130]
mov rcx, rax
mov rsi, qword [rax]
call qword [rsi + 0x10]
lea rcx, [rbx + 0x1a0]
mov rdx, qword [0x006e0ca0]
call fcn.00413e50
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

Function at 0x6f8ae0
Capabilities:
Get graphical window text

Disassembly:
push rbp
push rsi
push rbx
sub rsp, 0x220
mov rbp, rsp
mov rbx, rcx
mov rsi, rdx
cmp byte [rbx + 0x158], 0
je 0x6f8b4c
cmp byte [rbx + 0x193], 0
jne 0x6f8b4c
mov rcx, qword [rbx + 0x2d0]
lea rdx, [rbp + 0x20]
mov r8d, pe_nt_image_headers64
call sub.user32.dll_GetWindowTextW
mov rcx, rsi
lea rdx, [rbp + 0x20]
mov r8d, eax
call fcn.0040ff40
xor eax, eax
mov rcx, qword [rsi]
test rcx, rcx
je 0x6f8b37
mov eax, dword [rcx - 4]
test eax, eax
jne 0x6f8b5b
mov rcx, rsi
mov rdx, qword [rbx + 0x118]
call fcn.004102b0
jmp 0x6f8b5b
mov rcx, rsi
mov rdx, qword [rbx + 0x118]
call fcn.004102b0
mov rax, rsi
lea rsp, [rbp + 0x220]
pop rbx
pop rsi
pop rbp
ret
Function at 0x6fbf40
Capabilities:
Hide graphical window from taskbar

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbx, rcx
mov esi, edx
cmp sil, byte [rbx + 0x193]
je 0x6fc105
mov byte [rbx + 0x193], sil
mov rax, qword [rbx + 0xa8]
test rax, rax
je 0x6fc06d
mov rcx, rax
call fcn.005f8160
test al, al
je 0x6fc06d
mov rax, qword [rbx + 0xa8]
movzx rax, word [rax + 0x34]
test ax, 0x10
jne 0x6fc06d
mov rax, qword [rbx + 0xa8]
movzx rax, word [rax + 0x34]
test ax, 2
jne 0x6fc06d
test sil, sil
je 0x6fbfec
mov rcx, qword [rbx + 0x2d0]
xor edx, edx
xor r8, r8
call fcn.006e58b0
mov rcx, qword [rbx + 0xa8]
call fcn.005f7bb0
mov rcx, rax
mov dl, 1
mov rax, qword [rbx + 0xa8]
movzx r8, byte [rax + 0xa9]
call fcn.006e58b0
jmp 0x6fc056
call sub.user32.dll_GetForegroundWindow
mov rdi, rax
mov rcx, qword [rbx + 0xa8]
call fcn.005f7bb0
cmp rdi, rax
sete dil
mov rcx, qword [rbx + 0xa8]
call fcn.005f7bb0
mov rcx, rax
xor edx, edx
mov rax, qword [rbx + 0xa8]
movzx r8, byte [rax + 0xa9]
call fcn.006e58b0
mov rcx, qword [rbx + 0x2d0]
mov dl, 1
mov r8b, 1
call fcn.006e58b0
test dil, dil
je 0x6fc056
mov rcx, qword [rbx + 0xa8]
call fcn.005f7bb0
mov rcx, rax
call sub.user32.dll_SetForegroundWindow
mov rcx, qword [rbx + 0xa8]
mov edx, 0xb033
xor r8, r8
xor r9, r9
call fcn.005eb600
test sil, sil
je 0x6fc0b3
mov rcx, qword [rbx + 0x2d0]
mov rax, rcx
mov rsi, rcx
mov rcx, rax
mov edx, 0xffffffec
call sub.user32.dll_GetWindowLongPtrW
or rax, 0x80
mov rcx, rsi
mov edx, 0xffffffec
mov r8, rax
call sub.user32.dll_SetWindowLongPtrW
mov rcx, qword [rbx + 0x2d0]
xor edx, edx
call sub.user32.dll_SetWindowTextW
jmp 0x6fc105
mov rcx, qword [rbx + 0x2d0]
mov rax, rcx
mov rsi, rcx
mov rcx, rax
mov edx, 0xffffffec
call sub.user32.dll_GetWindowLongPtrW
and rax, 0xffffffffffffff7f
mov rcx, rsi
mov edx, 0xffffffec
mov r8, rax
call sub.user32.dll_SetWindowLongPtrW
mov rsi, qword [rbx + 0x2d0]
mov rax, qword [rbx + 0x118]
mov rcx, rax
call fcn.00410ed0
mov rcx, rsi
mov rdx, rax
call sub.user32.dll_SetWindowTextW
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
Function at 0x7071d0
Capabilities:
Hide graphical window

Disassembly:
push r13
push rdi
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
cmp qword [rbx + 0xc8], 0
jne 0x70728b
mov rcx, qword [rbx + 0x10]
call fcn.005f7bb0
mov rcx, qword [0x0060b770]
mov dl, 1
mov r8, rax
call fcn.005ee910
mov qword [rbx + 0xc8], rax
mov rsi, qword [rbx + 0xc8]
mov rcx, rsi
xor edx, edx
call fcn.00613780
lea rax, [rsi + 0x4d0]
mov qword [rax + 8], rbx
lea rcx, [0x00706850]
mov qword [rax], rcx
mov rcx, qword [rbx + 0xc8]
call fcn.005f7bb0
mov rdi, rax
mov rcx, rsi
mov edx, 3
mov rax, qword [rsi]
call qword [rax + 0x1b8]
mov rcx, rdi
xor edx, edx
xor r8, r8
xor r9, r9
mov dword [rsp + 0x20], 0
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x30], 8
call sub.user32.dll_SetWindowPos
mov rcx, qword [rbx + 0xc8]
call fcn.005f7bb0
mov rcx, rax
xor edx, edx
call sub.user32.dll_ShowWindow
cmp qword [rbx + 0xe8], 0
jne 0x70733a
mov rcx, qword [rbx + 0x10]
call fcn.005f7bb0
mov rcx, qword [0x0060b770]
mov dl, 1
mov r8, rax
call fcn.005ee910
mov qword [rbx + 0xe8], rax
mov rsi, qword [rbx + 0xe8]
mov rcx, rsi
mov dl, 1
call fcn.00613780
lea rax, [rsi + 0x4d0]
mov qword [rax + 8], rbx
lea rcx, [0x007068b0]
mov qword [rax], rcx
mov rcx, qword [rbx + 0xe8]
call fcn.005f7bb0
mov rdi, rax
mov rcx, rsi
mov edx, 2
mov rax, qword [rsi]
call qword [rax + 0x1b8]
mov rcx, rdi
xor edx, edx
xor r8, r8
xor r9, r9
mov dword [rsp + 0x20], eax
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x30], 8
call sub.user32.dll_SetWindowPos
mov rcx, qword [rbx + 0xe8]
call fcn.005f7bb0
mov rcx, rax
xor edx, edx
call sub.user32.dll_ShowWindow
cmp qword [rbx + 0xd8], 0
jne 0x7073e2
mov rcx, qword [rbx + 0x10]
call fcn.005f7bb0
mov rcx, qword [0x0060c7f8]
mov dl, 1
mov r8, rax
call fcn.005ee910
mov qword [rbx + 0xd8], rax
mov rsi, qword [rbx + 0xd8]
mov byte [rsi + 0x4a0], 1
mov rcx, qword [rbx + 0xd8]
call fcn.005f7bb0
mov rdi, rax
mov rcx, rsi
mov edx, 2
mov rax, qword [rsi]
call qword [rax + 0x1b8]
mov r13d, eax
mov rcx, rsi
mov edx, 3
mov rax, qword [rsi]
call qword [rax + 0x1b8]
mov rcx, rdi
xor edx, edx
xor r8, r8
xor r9, r9
mov dword [rsp + 0x20], r13d
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x30], 8
call sub.user32.dll_SetWindowPos
mov rcx, qword [rbx + 0xd8]
call fcn.005f7bb0
mov rcx, rax
xor edx, edx
call sub.user32.dll_ShowWindow
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop r13
ret

Function at 0x714360
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
push r13
push rdi
push rsi
push rbx
sub rsp, 0x28
mov rbx, rcx
mov esi, edx
mov edi, r8d
lea rcx, [rbx + 8]
xor edx, edx
xor r8, r8
mov r9d, esi
mov dword [rsp + 0x20], edi
call sub.advapi32.dll_CryptAcquireContextW
test eax, eax
setne r13b
test r13b, r13b
jne 0x7143bc
call sub.kernel32.dll_GetLastError
cmp eax, 0x80090016
jne 0x7143bc
lea rcx, [rbx + 8]
xor edx, edx
xor r8, r8
mov r9d, esi
or edi, 8
mov dword [rsp + 0x20], edi
call sub.advapi32.dll_CryptAcquireContextW
test eax, eax
setne r13b
mov eax, r13d
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r13
ret
Function at 0x714580
Capabilities:
Encrypt data using aes via winapi
Hash data using sha1
Hash data using sha1 via wincrypt
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push rbp
sub rsp, 0x50
mov rbp, rsp
mov qword [rbp + 0x38], rbp
mov qword [rbp + 0x60], rcx
mov qword [rbp + 0x68], rdx
mov byte [rbp + 0x47], 1
mov rax, qword [rbp + 0x60]
mov rcx, qword [rax + 8]
mov edx, 0x8004
xor r8, r8
xor r9, r9
lea rax, [rbp + 0x48]
mov qword [rsp + 0x20], rax
call sub.advapi32.dll_CryptCreateHash
test eax, eax
je 0x714633
nop
mov dword [rbp + 0x40], 0
mov rax, qword [rbp + 0x68]
test rax, rax
je 0x7145d4
mov ecx, dword [rax - 4]
mov dword [rbp + 0x40], ecx
mov rcx, qword [rbp + 0x48]
mov rdx, rax
mov r8d, dword [rbp + 0x40]
add r8d, r8d
xor r9, r9
call sub.advapi32.dll_CryptHashData
test eax, eax
je 0x714628
mov rax, qword [rbp + 0x60]
mov rcx, qword [rax + 8]
mov edx, 0x6610
mov r8, qword [rbp + 0x48]
xor r9, r9
mov rax, qword [rbp + 0x60]
lea rax, [rax + 0x10]
mov qword [rsp + 0x20], rax
call sub.advapi32.dll_CryptDeriveKey
test eax, eax
je 0x714628
mov byte [rbp + 0x47], 1
nop
mov rcx, qword [rbp + 0x48]
call sub.advapi32.dll_CryptDestroyHash
jmp 0x714633
xor ecx, ecx
mov rdx, qword [rbp + 0x38]
call fcn.00714640
movzx rax, byte [rbp + 0x47]
lea rsp, [rbp + 0x50]
pop rbp
ret
Function at 0x140001070
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rax, qword gs:[0x60]
mov rdi, qword [rax + 0x18]
add rdi, 0x20
mov rbx, qword [rdi]
cmp rbx, rdi
je 0x14000116d
nop dword [rax]
mov rcx, qword [rbx + 0x50]
lea rdx, str.kernel32.dll
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
je 0x1400010cf
mov rbx, qword [rbx]
cmp rbx, rdi
jne 0x1400010a0
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov r10, qword [rbx + 0x20]
test r10, r10
je 0x14000116d
movsxd rax, dword [r10 + 0x3c]
mov rcx, qword [rax + r10 + 0x88]
mov rax, rcx
shr rax, 0x20
test eax, eax
je 0x14000116d
mov eax, ecx
xor r8d, r8d
add rax, r10
mov r9d, dword [rax + 0x20]
mov ebx, dword [rax + 0x24]
add r9, r10
mov edi, dword [rax + 0x1c]
add rbx, r10
mov r11d, dword [rax + 0x18]
add rdi, r10
test r11d, r11d
je 0x14000116d
lea rsi, str.WinExec
nop
mov edx, dword [r9]
add rdx, r10
xor eax, eax
nop dword [rax + rax]
movzx ecx, byte [rdx + rax]
inc rax
cmp cl, byte [rsi + rax - 1]
jne 0x14000117f
cmp rax, 8
jne 0x140001130
movzx ecx, word [rbx + r8*2]
mov ebx, dword [rdi + rcx*4]
add rbx, r10
je 0x14000116d
mov rdx, rbx
lea rcx, str.___WinExec_located_at:_0x_p_n
call fcn.140001010
mov edx, 5
lea rcx, str.calc.exe
call rbx
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
inc r8d
add r9, 4
cmp r8d, r11d
jb 0x140001120
mov rbx, qword [rsp + 0x30]
xor eax, eax
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x140001a70
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140001aba
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140001aba
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140001aba
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140001aba
cmp dword [rcx + 0x84], 0xe
jbe 0x140001aba
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140001abc
xor al, al
add rsp, 0x28
ret
Function at 0x140001a70
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
cmp cx, cx
cmp eax, ecx
cmp cx, cx
call fcn.140001a95

Function at 0x140003b90
Capabilities:
Enumerate process modules
Link many functions at runtime
Parse credit card information

Disassembly:
mov eax, 0x20d8
call fcn.140048680
sub rsp, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov qword [rsp + 0x80], rax
call fcn.140003bb0

Function at 0x140006db0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xb8
mov rax, qword [rsp + 0xc0]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov rax, qword [rax + 8]
mov qword [rsp + 0x50], rax
inc rax
push rax
pop rax
mov rax, r8
inc eax
dec eax
inc rax
movabs rax, 0xe5bf7ee2ef19b79b
dec eax
xor eax, eax
cmp rax, 0xffffffffce9d60ec
cmp eax, ecx
mov rax, rcx
call fcn.140006e09
Function at 0x14000a5d0
Capabilities:
Accept command line arguments
Check if file exists
Create a process with modified i/o handles and window
Delete file
Parse pe header
Read file on windows
Set current directory

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
mov eax, 0x2b80
call fcn.140048680
sub rsp, rax
add eax, 0xd5d8f87f
cmp rax, 0x53ff2ea4
cmp rax, rcx
cmp rax, rcx
dec rax
inc rax
call fcn.14000a60e

Function at 0x140049240
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14004928a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14004928a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14004928a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14004928a
cmp dword [rcx + 0x84], 0xe
jbe 0x14004928a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14004928c
xor al, al
add rsp, 0x28
ret

Function at 0x14005daa8
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov ebx, ecx
test r8d, r8d
jne 0x14005d897
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14005d897
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14005d897
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14005d897
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14005d897
cmp dword [rcx + 0x84], 0xe
jbe 0x14005d897
cmp dword [rcx + 0xf8], 0
je 0x14005d897
mov ecx, ebx
call fcn.14005d9c8
lea rax, [rbp + 0x18]
mov byte [rbp + 0x28], 0
mov qword [rbp - 0x20], rax
lea r9, [rbp - 0x2c]
lea rax, [rbp + 0x20]
mov qword [rbp - 0x18], rax
lea r8, [rbp - 0x20]
lea rax, [rbp + 0x28]
mov qword [rbp - 0x10], rax
lea rdx, [rbp - 0x28]
mov eax, 2
lea rcx, [rbp - 0x30]
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
call fcn.14005d614
cmp dword [rbp + 0x20], 0
je 0x14005d8e4
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14005d8ec
int3
xor r8d, r8d
xor edx, edx
jmp 0x14005d830
Function at 0x140003640
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x160
mov rax, qword [0x140253f68]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov rdi, rdx
xor esi, esi
call fcn.1400025c0
call fcn.140001370
xor edx, edx
lea ecx, [rsi + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400036aa
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x130
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
jne 0x1400036ae
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x1400036ff
call fcn.1400025c0
call fcn.140001370
nop dword [rax + rax]
lea rdx, [rsp + 0x4c]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x1400036e6
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x1400036c0
jmp 0x1400036ea
mov esi, dword [rsp + 0x28]
call fcn.1400025c0
call fcn.140001370
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.14016b490
lea r11, [rsp + 0x160]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret