joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14009cbd0
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
mov r8d, dword [rcx + 0x28]
mov rdi, rdx
mov rbx, rcx
cmp r8d, 0x40
jae 0x14009cd88
lea ecx, [r8*8]
mov qword [rsp + 0x30], rsi
add qword [rbx], rcx
mov byte [r8 + rbx + 0x2c], 0x80
mov eax, dword [rbx + 0x28]
inc eax
mov dword [rbx + 0x28], eax
cmp eax, 0x38
jbe 0x14009cc48
cmp eax, 0x40
jae 0x14009cc32
nop word [rax + rax]
mov byte [rax + rbx + 0x2c], 0
mov eax, dword [rbx + 0x28]
inc eax
mov dword [rbx + 0x28], eax
cmp eax, 0x40
jb 0x14009cc20
lea rsi, [rbx + 0x2c]
mov rcx, rbx
mov rdx, rsi
call fcn.14009ceb0
xor eax, eax
mov dword [rbx + 0x28], eax
jmp 0x14009cc50
lea rsi, [rbx + 0x2c]
jae 0x14009cc62
nop
mov byte [rax + rbx + 0x2c], 0
mov eax, dword [rbx + 0x28]
inc eax
mov dword [rbx + 0x28], eax
cmp eax, 0x38
jb 0x14009cc50
movzx eax, byte [rbx + 7]
mov rdx, rsi
mov byte [rbx + 0x64], al
mov rcx, rbx
movzx eax, byte [rbx + 6]
mov byte [rbx + 0x65], al
movzx eax, byte [rbx + 5]
mov byte [rbx + 0x66], al
movzx eax, byte [rbx + 4]
mov byte [rbx + 0x67], al
movzx eax, byte [rbx + 3]
mov byte [rbx + 0x68], al
movzx eax, byte [rbx + 2]
mov byte [rbx + 0x69], al
movzx eax, byte [rbx + 1]
mov byte [rbx + 0x6a], al
movzx eax, byte [rbx]
mov byte [rbx + 0x6b], al
call fcn.14009ceb0
movzx eax, byte [rbx + 0xb]
mov byte [rdi], al
movzx eax, byte [rbx + 0xa]
mov byte [rdi + 1], al
movzx eax, byte [rbx + 9]
mov byte [rdi + 2], al
movzx eax, byte [rbx + 8]
mov byte [rdi + 3], al
movzx eax, byte [rbx + 0xf]
mov byte [rdi + 4], al
movzx eax, byte [rbx + 0xe]
mov byte [rdi + 5], al
movzx eax, byte [rbx + 0xd]
mov byte [rdi + 6], al
movzx eax, byte [rbx + 0xc]
mov byte [rdi + 7], al
movzx eax, byte [rbx + 0x13]
mov byte [rdi + 8], al
movzx eax, byte [rbx + 0x12]
mov byte [rdi + 9], al
movzx eax, byte [rbx + 0x11]
mov byte [rdi + 0xa], al
movzx eax, byte [rbx + 0x10]
mov byte [rdi + 0xb], al
movzx eax, byte [rbx + 0x17]
mov byte [rdi + 0xc], al
movzx eax, byte [rbx + 0x16]
mov byte [rdi + 0xd], al
movzx eax, byte [rbx + 0x15]
mov byte [rdi + 0xe], al
movzx eax, byte [rbx + 0x14]
mov byte [rdi + 0xf], al
movzx eax, byte [rbx + 0x1b]
mov byte [rdi + 0x10], al
movzx eax, byte [rbx + 0x1a]
mov byte [rdi + 0x11], al
movzx eax, byte [rbx + 0x19]
mov byte [rdi + 0x12], al
movzx eax, byte [rbx + 0x18]
mov byte [rdi + 0x13], al
movzx eax, byte [rbx + 0x1f]
mov byte [rdi + 0x14], al
movzx eax, byte [rbx + 0x1e]
mov byte [rdi + 0x15], al
movzx eax, byte [rbx + 0x1d]
mov byte [rdi + 0x16], al
movzx eax, byte [rbx + 0x1c]
mov byte [rdi + 0x17], al
movzx eax, byte [rbx + 0x23]
mov byte [rdi + 0x18], al
movzx eax, byte [rbx + 0x22]
mov byte [rdi + 0x19], al
movzx eax, byte [rbx + 0x21]
mov byte [rdi + 0x1a], al
movzx eax, byte [rbx + 0x20]
mov byte [rdi + 0x1b], al
movzx eax, byte [rbx + 0x27]
mov byte [rdi + 0x1c], al
movzx eax, byte [rbx + 0x26]
mov byte [rdi + 0x1d], al
movzx eax, byte [rbx + 0x25]
mov byte [rdi + 0x1e], al
movzx eax, byte [rbx + 0x24]
mov rsi, qword [rsp + 0x30]
mov byte [rdi + 0x1f], al
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x14009cda0
Capabilities:
Hash data using sha256

Disassembly:
xor eax, eax
mov qword [rcx + 0x24], 0x5be0cd19
mov qword [rcx], rax
mov dword [rcx + 8], 0x6a09e667
mov dword [rcx + 0xc], 0xbb67ae85
mov dword [rcx + 0x10], 0x3c6ef372
mov dword [rcx + 0x14], 0xa54ff53a
mov dword [rcx + 0x18], 0x510e527f
mov dword [rcx + 0x1c], 0x9b05688c
mov dword [rcx + 0x20], 0x1f83d9ab
ret
Function at 0x1400b6dc0
Capabilities:
Check http status code

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x30
xor ebx, ebx
lea eax, [rdx - 0xc8]
mov rdi, rcx
mov rcx, qword [rcx]
mov esi, r8d
cmp eax, 0x64
jb 0x1400b6df5
lea rdx, [0x1400e1e40]
call fcn.140099100
lea eax, [rbx + 0x11]
add rsp, 0x30
pop rdi
pop rsi
pop rbx
ret
cmp edx, 0xc8
je 0x1400b6e0c
mov r8d, edx
lea rdx, [0x1400e1e60]
call fcn.140099280
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x60], r14
cmp esi, 0x13
jne 0x1400b6e28
mov rcx, rdi
call fcn.1400b6d00
jmp 0x1400b6f5f
cmp esi, 0x14
jne 0x1400b6f41
mov rsi, qword [rdi]
mov rbp, rbx
cmp dword [rsi + 0xba0], 2
jne 0x1400b6ea9
mov rax, qword [rsi + 0x1e0]
mov rdx, qword [rax]
test rdx, rdx
je 0x1400b6ea9
mov byte [rsp + 0x28], 1
lea r9, [rsp + 0x50]
xor r8d, r8d
mov qword [rsp + 0x20], rbx
mov rcx, rsi
mov qword [rsp + 0x50], rbx
call fcn.140083300
test eax, eax
jne 0x1400b6f5f
mov rcx, qword [rsp + 0x50]
lea edx, [rax + 0x2f]
call fcn.1400d317c
test rax, rax
je 0x1400b6e9e
mov rbp, qword [rsp + 0x50]
mov ecx, 1
sub rax, rbp
cmovne rcx, rax
mov byte [rcx + rbp], bl
jmp 0x1400b6ea9
mov rcx, qword [rsp + 0x50]
call qword [fcn.140109028]
mov rdx, qword [rsi + 0xc08]
test rdx, rdx
jne 0x1400b6ecd
cmp byte [rsi + 0xf0d], bl
lea rax, [0x1400e1ae0]
lea rdx, [0x1400e0c2c]
cmovne rdx, rax
lea r8, [0x1400e6d0a]
test rbp, rbp
mov r9, r8
lea rax, [0x1400f0564]
cmovne r9, rbp
lea rcx, [0x1400dc510]
cmovne r8, rax
call fcn.140087a80
mov rcx, rbp
mov r14, rax
call qword [fcn.140109028]
test r14, r14
jne 0x1400b6f0c
lea ebx, [r14 + 0x1b]
jmp 0x1400b6f61
lea rcx, [rdi + 0xa00]
mov r8, r14
lea rdx, [0x1400eb778]
call fcn.1400ccf20
mov rcx, r14
mov esi, eax
call qword [fcn.140109028]
test esi, esi
je 0x1400b6f35
mov ebx, esi
jmp 0x1400b6f61
mov dword [rdi + 0xab8], 0x1f
jmp 0x1400b6f61
cmp esi, 0x15
jne 0x1400b6f4c
lea r8d, [rsi - 8]
jmp 0x1400b6f55
cmp esi, 0x16
jne 0x1400b6f61
lea r8d, [rsi - 8]
mov dl, 1
mov rcx, rdi
call fcn.1400b6830
mov ebx, eax
mov r14, qword [rsp + 0x60]
mov eax, ebx
mov rbp, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
pop rsi
pop rbx
ret
Function at 0x1400d17a0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r14
sub rsp, 0x20
mov eax, dword [rcx + 0x18]
mov rbx, rcx
mov ebp, r8d
mov r14, rdx
lea ecx, [rax + rax]
mov eax, dword [rbx + 0x20]
add rax, 0x18
add rcx, rax
call qword [fcn.140109020]
mov rdi, rax
test rax, rax
jne 0x1400d17e2
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
lea rcx, [rax + 0x18]
mov qword [rax], rbx
mov qword [rax + 8], rcx
mov eax, dword [rbx + 0x18]
add rax, rcx
mov qword [rsp + 0x48], rsi
mov qword [rdi + 0x10], rax
cmp ebp, dword [rbx + 0x1c]
jbe 0x1400d1829
call qword [rbx]
mov rcx, qword [rdi + 8]
mov r8d, ebp
mov rdx, r14
call qword [rbx + 8]
mov r14d, dword [rbx + 0x18]
add r14, qword [rdi + 0x10]
mov rdx, qword [rdi + 8]
mov rcx, r14
call qword [rbx + 0x10]
mov rcx, qword [rdi + 8]
mov ebp, dword [rbx + 0x20]
call qword [rbx]
mov rcx, qword [rdi + 0x10]
call qword [rbx]
xor esi, esi
test rbp, rbp
je 0x1400d1882
mov rsi, rbp
nop dword [rax + rax]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x36
mov r8d, 1
mov byte [rsp + 0x40], al
mov rcx, qword [rdi + 8]
call qword [rbx + 8]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x5c
lea r14, [r14 + 1]
mov byte [rsp + 0x40], al
mov r8d, 1
mov rcx, qword [rdi + 0x10]
call qword [rbx + 8]
sub rbp, 1
jne 0x1400d1840
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x1400d18c3
nop word [rax + rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x1400e63e2]
mov r8d, 1
call qword [rbx + 8]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x1400e63e3]
mov r8d, 1
call qword [rbx + 8]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x1400d1890
mov rsi, qword [rsp + 0x48]
mov rax, rdi
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
Function at 0x140002bd0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.1400048f0
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.1400048f0
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x140002c40
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14000a0a4]
mov rbx, rcx
test esi, esi
jle 0x140002d70
mov rax, qword [0x14000a0a8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140002c8b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140002d15
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140002c70
mov rcx, rbx
call fcn.140003690
mov rdi, rax
test rax, rax
je 0x140002d92
mov rax, qword [0x14000a0a8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.1400037d0
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14000a0a8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140002d77
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140002d0e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140002d20
add dword [0x14000a0a4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x14000a0a8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140002d0e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140002bd0
nop dword [rax]
xor esi, esi
jmp 0x140002c98
mov rax, qword [0x14000a0a8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140002bd0
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140002bd0
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140003300
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14000a100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14000a0e0]
test rbx, rbx
je 0x14000335c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x140003353
test rsi, rsi
je 0x140003353
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140003338
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x140003690
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140006ad0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400036b0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400036b8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400036b0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14000370d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x140003704
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1400036b0
add rax, 0x28
cmp rax, r9
jne 0x1400036f0
xor eax, eax
ret

Function at 0x140003710
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140006ad0]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x14000372f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140003738
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x14000372f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x1400037d0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140006ad0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x1400037ef
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x1400037f8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x14003af00
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x140278ec8]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rbx, rcx
mov dword [rsp + 0x30], 0x2a3a2f5c
mov dword [rsp + 0x34], 0x3e3c223f
mov byte [rsp + 0x38], 0x7c
call fcn.140038750
xor esi, esi
lea rdi, [rsp + 0x30]
mov rdx, qword [rbx + 0x18]
mov rcx, rbx
cmp rdx, 8
jb 0x14003af52
mov rcx, qword [rbx]
mov rax, qword [rbx + 0x10]
lea r8, [rax + rax]
mov rax, rbx
lea r11, [r8 + rcx]
jb 0x14003af66
mov rax, qword [rbx]
add rax, r8
mov rcx, rbx
cmp rdx, 8
jb 0x14003af75
mov rcx, qword [rbx]
cmp rcx, rax
je 0x14003afdb
movsx r8d, byte [rdi]
nop
movzx edx, word [rcx]
cmp edx, r8d
je 0x14003af91
add rcx, 2
cmp rcx, rax
jne 0x14003af80
cmp rcx, rax
je 0x14003afdb
lea rdx, [rcx + 2]
mov r9, rax
sub r9, rdx
mov r8, rsi
inc r9
shr r9, 1
cmp rdx, rax
cmova r9, rsi
test r9, r9
je 0x14003afdb
movsx r10d, byte [rdi]
nop dword [rax]
movzx eax, word [rdx]
cmp eax, r10d
je 0x14003afcf
mov word [rcx], ax
add rcx, 2
add rdx, 2
inc r8
cmp r8, r9
jne 0x14003afc0
cmp qword [rbx + 0x18], 8
mov rax, rbx
jb 0x14003afe8
mov rax, qword [rbx]
mov rdx, rcx
sub rdx, rax
sar rdx, 1
cmp qword [rbx + 0x10], rdx
jb 0x14003b06e
lfence
mov r8, qword [rbx + 0x10]
sub r11, rcx
sar r11, 1
mov rax, r8
sub rax, rdx
cmp rax, r11
cmovb r11, rax
cmp qword [rbx + 0x18], 8
mov rax, rbx
jb 0x14003b01e
mov rax, qword [rbx]
sub r8, r11
lea rcx, [rax + rdx*2]
mov qword [rbx + 0x10], r8
sub r8, rdx
lea rdx, [rcx + r11*2]
lea r8, [r8*2 + 2]
call fcn.1401879e0
lea rax, [rsp + 0x39]
inc rdi
cmp rdi, rax
jne 0x14003af42
mov rax, rbx
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140157ae0
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret
call fcn.14003c340
int3
Function at 0x140051c40
Capabilities:
Enumerate files on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x2a0
mov rax, qword [0x140278ec8]
xor rax, rsp
mov qword [rsp + 0x290], rax
xor esi, esi
mov rax, rdx
mov qword [rcx], rsi
mov rbx, rcx
mov qword [rcx + 8], rsi
mov qword [rcx + 0x10], rsi
cmp qword [rdx + 0x18], 8
jb 0x140051c81
mov rax, qword [rdx]
lea rdx, [rsp + 0x40]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x140051d6c
nop dword [rax]
test byte [rsp + 0x40], 0x10
jne 0x140051d56
mov qword [rsp + 0x30], rsi
lea rax, [rsp + 0x6c]
mov qword [rsp + 0x38], 7
mov r8, 0xffffffffffffffff
mov word [rsp + 0x20], si
nop word [rax + rax]
inc r8
cmp word [rax + r8*2], si
jne 0x140051cd0
lea rdx, [rsp + 0x6c]
lea rcx, [rsp + 0x20]
call fcn.1400258a0
mov rdx, qword [rbx + 8]
cmp qword [rbx + 0x10], rdx
je 0x140051d0b
movups xmm0, xmmword [rsp + 0x20]
movups xmm1, xmmword [rsp + 0x30]
movups xmmword [rdx], xmm0
movups xmmword [rdx + 0x10], xmm1
add qword [rbx + 8], 0x20
jmp 0x140051d56
lea r8, [rsp + 0x20]
mov rcx, rbx
call fcn.14004fc50
mov rdx, qword [rsp + 0x38]
cmp rdx, 8
jb 0x140051d56
mov rcx, qword [rsp + 0x20]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140051d51
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140051d9d
call fcn.140157a40
lea rdx, [rsp + 0x40]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x140051ca0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rax, rbx
mov rcx, qword [rsp + 0x290]
xor rcx, rsp
call fcn.140157ae0
lea r11, [rsp + 0x2a0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
call fcn.140195efc
int3
Function at 0x140052b60
Capabilities:
Log keystrokes via polling

Disassembly:
sub rsp, 0x28
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, 1
add rsp, 0x28
ret
Function at 0x140053310
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0xe0]
sub rsp, 0x1e0
mov rax, qword [0x140278ec8]
xor rax, rsp
mov qword [rbp + 0xd0], rax
xor r14d, r14d
lea r9, [rsp + 0x20]
mov rdi, rdx
mov ebx, r14d
mov dword [rsp + 0x20], ebx
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x20], r14
call sub.SHELL32.dll_SHGetKnownFolderPath
mov esi, eax
test eax, eax
jns 0x1400533fc
lfence
xorps xmm0, xmm0
lea r8, str.Failed_to_get_known_folder_path._HR:_0x_08X
mov r9d, eax
lea rcx, [rbp + 0x50]
mov edx, 0x80
movups xmmword [rbp + 0x50], xmm0
movups xmmword [rbp + 0x60], xmm0
movups xmmword [rbp + 0x70], xmm0
movups xmmword [rbp + 0x80], xmm0
movups xmmword [rbp + 0x90], xmm0
movups xmmword [rbp + 0xa0], xmm0
movups xmmword [rbp + 0xb0], xmm0
movups xmmword [rbp + 0xc0], xmm0
call fcn.140053ec0
call sub.libcef.dll_cef_get_min_log_level
cmp eax, 2
jg 0x1400533ed
lea r9d, [r14 + 2]
mov r8d, 0x290
lea rdx, str.D:uworkspace03_27cefwinauto_srcutils_win.cc
lea rcx, [rsp + 0x28]
call fcn.1400c7000
lea rdx, [rbp + 0x50]
lea rcx, [rax + 8]
call fcn.1400025c0
mov ebx, 1
test bl, 1
je 0x1400533fc
lea rcx, [rsp + 0x28]
call fcn.1400c7360
mov rdx, qword [rsp + 0x20]
mov r8, 0xffffffffffffffff
mov qword [rbp + 0x38], r14
mov qword [rbp + 0x40], 7
mov word [rbp + 0x28], r14w
nop dword [rax]
inc r8
cmp word [rdx + r8*2], r14w
jne 0x140053420
lea rcx, [rbp + 0x28]
call fcn.1400258a0
mov rdx, qword [rbp + 0x38]
mov r8, qword [rdi + 8]
test rdx, rdx
jne 0x14005344f
test r8, r8
je 0x140053492
mov rcx, r8
call sub.libcef.dll_cef_string_utf16_clear
jmp 0x140053492
test r8, r8
jne 0x140053479
lea ecx, [r8 + 0x18]
call fcn.140157a04
mov qword [rdi + 8], rax
xorps xmm0, xmm0
xor ecx, ecx
movups xmmword [rax], xmm0
mov qword [rax + 0x10], rcx
mov r8, qword [rdi + 8]
mov rdx, qword [rbp + 0x38]
mov byte [rdi + 0x10], 1
cmp qword [rbp + 0x40], 8
lea rcx, [rbp + 0x28]
mov r9d, 1
cmovae rcx, qword [rbp + 0x28]
call sub.libcef.dll_cef_string_utf16_set
mov rdx, qword [rbp + 0x40]
cmp rdx, 8
jb 0x1400534ce
mov rcx, qword [rbp + 0x28]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400534c9
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140053505
call fcn.140157a40
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
test esi, esi
setns al
mov rcx, qword [rbp + 0xd0]
xor rcx, rsp
call fcn.140157ae0
lea r11, [rsp + 0x1e0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
call fcn.140195efc
int3
Function at 0x140053510
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
push rdi
sub rsp, 0x120
xor ebx, ebx
lea r9, [rax + 0x18]
mov rsi, rdx
mov dword [rsp + 0x140], ebx
xor r8d, r8d
mov qword [rax + 0x18], rbx
xor edx, edx
call sub.SHELL32.dll_SHGetKnownFolderPath
mov edi, eax
test eax, eax
jns 0x1400535af
call sub.libcef.dll_cef_get_min_log_level
cmp eax, 2
jg 0x14005358e
lfence
lea r9d, [rbx + 2]
mov r8d, 0x16a
lea rdx, str.D:uworkspace03_27cefwinauto_srcutils_win.cc
lea rcx, [rsp + 0x20]
call fcn.1400c7000
lea rdx, str.Failed_to_get_known_folder_path._HR:
lea rcx, [rax + 8]
call fcn.1400025c0
mov rcx, rax
mov edx, edi
call fcn.1400503b0
mov ebx, 1
test bl, 1
je 0x14005359d
lea rcx, [rsp + 0x20]
call fcn.1400c7360
mov rcx, qword [rsp + 0x140]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
xor al, al
jmp 0x1400535e3
lfence
mov rdx, qword [rsp + 0x140]
mov r8, 0xffffffffffffffff
inc r8
cmp word [rdx + r8*2], bx
jne 0x1400535c1
mov rcx, rsi
call fcn.1400258a0
mov rcx, qword [rsp + 0x140]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov al, 1
lea r11, [rsp + 0x120]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret

Function at 0x140053fc0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
mov qword [rsp + 0x10], rbx
push rsi
push rdi
push r15
sub rsp, 0x50
mov rbx, rdx
mov rsi, rcx
call fcn.140055410
test al, al
je 0x140054102
xor ecx, ecx
mov qword [0x14027c9c8], rbx
call fcn.140055f20
mov rdi, rax
test rax, rax
je 0x140054102
mov edx, 0x40
mov dword [rsp + 0x80], 0
lea r15, [section..crthunk]
mov r8d, edx
mov rcx, r15
lea r9, [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x140054102
mov rax, qword [rdi]
mov rcx, rdi
mov qword [rsp + 0x70], rbp
call qword [rax + 0x30]
mov rbx, qword [rdi]
lea rcx, [0x14020d818]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x40], 0
lea r9, str.NtMapViewOfSection
mov qword [rsp + 0x38], 0x40
mov rdx, rax
lea rax, [0x140055d00]
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x28], rax
mov r8, rsi
mov rcx, rdi
mov qword [rsp + 0x20], 0
call qword [rbx + reloc.OLEAUT32.dll_VariantClear]
mov edx, 8
mov qword [section..oldntma], r15
lea r9, [rsp + 0x80]
mov ebp, eax
lea rcx, [section..oldntma]
lea r8d, [rdx + 0x18]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov r9, qword [rdi]
mov esi, 1
mov edx, esi
mov rcx, rdi
mov ebx, eax
call qword [r9]
test ebx, ebx
je 0x1400540e3
lea r9, [rsp + 0x80]
mov rcx, r15
lea edx, [rsi + 0x3f]
lea r8d, [rsi + 0x1f]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1400540e5
xor esi, esi
test ebp, ebp
mov rbp, qword [rsp + 0x70]
js 0x140054102
test esi, esi
je 0x140054102
mov al, 1
mov rbx, qword [rsp + 0x78]
add rsp, 0x50
pop r15
pop rdi
pop rsi
ret
mov rbx, qword [rsp + 0x78]
xor al, al
add rsp, 0x50
pop r15
pop rdi
pop rsi
ret
Function at 0x140055f20
Capabilities:
Check os version

Disassembly:
push rdi
sub rsp, 0x150
mov rax, qword [0x140278ec8]
xor rax, rsp
mov qword [rsp + 0x140], rax
movzx edi, cl
mov dword [rsp + 0x20], 0x11c
lea rcx, [rsp + 0x24]
xor edx, edx
mov r8d, 0x118
call fcn.140187df0
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [rsp + 0x24]
cmp eax, 5
jne 0x140055fe6
mov eax, dword [rsp + 0x28]
test eax, eax
jle 0x140055ff3
cmp eax, 1
jne 0x140055f84
cmp word [rsp + 0x134], 2
jb 0x140055ff3
mov qword [rsp + 0x160], rbx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov ecx, 0x30
mov rbx, rax
call fcn.140157a04
test rax, rax
je 0x140055fc5
lea rcx, [0x14020d8e0]
mov qword [rax + 0x18], 0
mov qword [rax], rcx
mov qword [rax + 0x20], rbx
mov byte [rax + 0x28], dil
mov dword [rax + 0x2c], 0
mov rbx, qword [rsp + 0x160]
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.140157ae0
add rsp, 0x150
pop rdi
ret
cmp eax, 6
jne 0x140055ff1
mov ecx, dword [rsp + 0x28]
jmp 0x140055f84
jg 0x140055f84
xor eax, eax
jmp 0x140055fcd

Function at 0x140056410
Capabilities:
Parse pe header

Disassembly:
mov rdx, qword [rcx + 8]
mov eax, 0x5a4d
cmp word [rdx], ax
jne 0x140056446
movsxd rax, dword [rdx + 0x3c]
cmp dword [rax + rdx], 0x4550
jne 0x140056446
mov ecx, 0xf0
cmp word [rax + rdx + 0x14], cx
jne 0x140056446
mov ecx, 0x20b
cmp word [rax + rdx + 0x18], cx
jne 0x140056446
mov al, 1
ret
xor al, al
ret

Function at 0x140056c10
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
mov rdi, r9
lea rax, [rsp + 0x30]
mov rbx, r8
mov qword [rsp + 0x20], rax
mov r8, rdi
mov r9d, 8
mov rsi, rdx
mov rbp, rcx
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x140056ca1
lea rax, [rsp + 0x38]
mov r9, rdi
mov r8, rbx
mov qword [rsp + 0x20], rax
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x140056c78
cmp rdi, qword [rsp + 0x38]
jne 0x140056c78
mov bl, 1
jmp 0x140056c7a
xor bl, bl
mov r9d, dword [rsp + 0x30]
lea rax, [rsp + 0x30]
mov r8, rdi
mov qword [rsp + 0x20], rax
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x140056ca1
movzx eax, bl
jmp 0x140056ca3
xor al, al
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret

Function at 0x14005ce70
Capabilities:
Create process on windows

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [rdx + 8]
mov rbx, rdx
test rax, rax
je 0x14005ce87
mov r8, qword [rax]
jmp 0x14005ce8a
xor r8d, r8d
mov dword [rsp + 0x28], 1
lea rdx, str.explore
xor r9d, r9d
mov qword [rsp + 0x20], 0
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
mov rcx, qword [rbx + 8]
lea rax, [0x140209838]
mov qword [rbx], rax
test rcx, rcx
je 0x14005cee5
cmp byte [rbx + 0x10], 0
je 0x14005ced9
call sub.libcef.dll_cef_string_utf16_clear
mov rcx, qword [rbx + 8]
mov edx, SafeArrayPutElement
call fcn.140157a40
mov qword [rbx + 8], 0
mov byte [rbx + 0x10], 0
add rsp, 0x30
pop rbx
ret