joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1401f3e24
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.1401f96cc
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.1401f96cc
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1401f3f74
cmp rax, 0xffffffffffffffff
je 0x1401f3f74
xor edi, edi
test rbp, rbp
jle 0x1401f3f1f
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1401fb57c
mov rbx, rax
test rax, rax
jne 0x1401f3eac
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1401f3f15
mov edx, 0x8000
mov ecx, r14d
call fcn.1401f6c90
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.1401f2428
cmp eax, 0xffffffff
je 0x1401f3ef5
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1401f3ebc
mov edx, r15d
mov ecx, r14d
call fcn.1401f6c90
jmp 0x1401f3f15
cmp byte [rsi + 0x38], dil
je 0x1401f3f0c
cmp dword [rsi + 0x34], 5
jne 0x1401f3f0c
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], reloc.WS2_32.dll_listen
cmp byte [rsi + 0x30], dil
je 0x1401f3f15
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1401fa0bc
jmp 0x1401f3f88
jns 0x1401f3f88
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.1401f96cc
cmp rax, 0xffffffffffffffff
jne 0x1401f3f40
cmp byte [rsi + 0x30], dil
je 0x1401f3f88
mov edi, dword [rsi + 0x2c]
jmp 0x1401f3f88
mov ecx, r14d
call fcn.1401f4674
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1401f3f88
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, reloc.WS2_32.dll_listen
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], reloc.WS2_32.dll_listen
jmp 0x1401f3f88
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1401f3f81
mov eax, dword [rsi + 0x2c]
jmp 0x1401f3f86
mov eax, reloc.WS2_32.dll_shutdown
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.1401f96cc
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 0x1401f7b0c
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x250
mov rax, qword [0x14030cf00]
xor rax, rsp
mov qword [rsp + 0x240], rax
lea rdx, [0x140266d80]
mov rbp, rcx
call fcn.1401ffb08
xor edi, edi
test rax, rax
je 0x1401f7bf2
mov ebx, edi
call fcn.1401e8db4
mov r14d, dword [rax]
call fcn.1401e8db4
mov r8d, 0x104
lea rcx, [rsp + 0x30]
mov rdx, rbp
mov dword [rax], edi
call fcn.1401ffa54
mov rsi, rax
test rax, rax
je 0x1401f7b83
call fcn.1401e8db4
mov dword [rax], r14d
jmp 0x1401f7bad
call fcn.1401e8db4
cmp dword [rax], 0x22
jne 0x1401f7bea
call fcn.1401e8db4
xor r8d, r8d
mov rdx, rbp
xor ecx, ecx
mov dword [rax], r14d
call fcn.1401ffa54
mov rbx, rax
mov rsi, rax
test rax, rax
je 0x1401f7bea
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], di
jne 0x1401f7bb1
cmp rax, 3
je 0x1401f7bcc
mov rcx, rsi
call fcn.1401f7a68
test al, al
je 0x1401f7bdd
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x1401f7bdd
mov dil, 1
mov rcx, rbx
call fcn.1401e8ee0
mov al, dil
jmp 0x1401f7bf4
mov rcx, rbx
call fcn.1401e8ee0
xor al, al
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.1401d9e80
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x1401fc8e4
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1401fc8fa
mov al, 1
jmp 0x1401fc95a
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1401fc90b
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1401fc958
mov ecx, dword [rcx + 0x18]
nop
call fcn.1401f4674
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1401fc958
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1401fc958
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1401fc958
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1401fc95a
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x1401fd43c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov rbx, rcx
mov ebp, 0x7ff
movzx ecx, word [rcx + 6]
mov esi, edx
shr cx, 4
and cx, bp
cmp cx, bp
jne 0x1401fd49d
test byte [rbx + 6], 0xf
jne 0x1401fd490
xor edi, edi
cmp word [rbx + 4], di
jne 0x1401fd490
cmp word [rbx + 2], di
jne 0x1401fd490
cmp word [rbx], di
jne 0x1401fd490
lea esi, [rdi + 1]
jmp 0x1401fd495
mov esi, 2
movzx eax, si
jmp 0x1401fd695
xor edi, edi
test cx, cx
jne 0x1401fd4b8
mov rcx, rbx
call fcn.140205170
movzx ecx, ax
cmp di, ax
jl 0x1401fd692
movsx edx, cx
test esi, esi
jle 0x1401fd4e8
sub ebp, edx
cmp ebp, esi
jg 0x1401fd4e8
movsd xmm0, qword [0x1402685a8]
cmp word [rbx + 6], di
jge 0x1401fd4da
xorps xmm0, xmmword [0x1402eb830]
movsd qword [rbx], xmm0
mov eax, 1
jmp 0x1401fd695
movzx r11d, word [rbx + 6]
mov eax, edx
neg eax
cmp eax, esi
jge 0x1401fd515
add si, cx
mov eax, 0x800f
shl si, 4
and r11w, ax
or si, r11w
mov word [rbx + 6], si
or eax, 0xffffffff
jmp 0x1401fd695
movzx r15d, r11w
lea ebp, [rsi - 1]
and r11w, 0xf
mov r13d, 0x8000
mov r12d, reloc.WS2_32.dll_recv
and r15w, r13w
or r11w, r12w
add ebp, edx
cmp ebp, 0xffffffcb
jl 0x1401fd687
test ebp, ebp
jns 0x1401fd687
lea esi, [r12 - 0xf]
movzx r14d, di
cmp bp, 0xfff0
jg 0x1401fd5aa
movzx edx, word [rbx + 4]
mov eax, 0xfff0
movzx r8d, word [rbx + 2]
sub ax, bp
shr ax, 4
add ax, si
movzx ecx, ax
movzx eax, cx
shl ax, 4
add bp, ax
test r14w, r14w
mov eax, edi
setne al
movzx r14d, ax
or r14w, word [rbx]
mov word [rbx], r8w
movzx r8d, dx
movzx edx, r11w
mov r11d, edi
sub rcx, rsi
jne 0x1401fd57c
mov word [rbx + 4], dx
mov word [rbx + 2], r8w
neg bp
je 0x1401fd629
movzx r8d, word [rbx]
mov eax, edi
movzx r9d, word [rbx + 2]
movzx edx, r8w
movsx r10d, bp
sub r12d, r10d
mov ecx, r12d
shl dx, cl
test r14w, r14w
movzx r14d, dx
movzx edx, word [rbx + 4]
setne al
or r14w, ax
movzx eax, r9w
shl ax, cl
movzx ecx, bp
shr r8w, cl
mov ecx, r12d
or ax, r8w
mov word [rbx], ax
movzx eax, dx
shl ax, cl
movzx ecx, bp
shr r9w, cl
mov ecx, r12d
or ax, r9w
mov word [rbx + 2], ax
movzx eax, r11w
shl ax, cl
movzx ecx, bp
shr dx, cl
mov ecx, r10d
or ax, dx
mov word [rbx + 4], ax
shr r11w, cl
or r11w, r15w
mov word [rbx + 6], r11w
cmp r13w, r14w
jb 0x1401fd63f
jne 0x1401fd65e
test byte [rbx], sil
je 0x1401fd65e
add word [rbx], si
jne 0x1401fd65e
add word [rbx + 2], si
jne 0x1401fd65e
add word [rbx + 4], si
jne 0x1401fd65e
add r11w, si
mov word [rbx + 6], r11w
jmp 0x1401fd50d
cmp r11w, r15w
jne 0x1401fd50d
cmp word [rbx + 4], di
jne 0x1401fd50d
cmp word [rbx + 2], di
jne 0x1401fd50d
movzx eax, word [rbx]
neg ax
sbb ax, ax
jmp 0x1401fd695
mov word [rbx + 6], r15w
mov dword [rbx + 2], edi
mov word [rbx], di
movzx eax, di
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x1401ff24c
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.1401e7e94
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x1401ff2d6
cmp byte [rbp - 0x21], r15b
je 0x1401ff2d1
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x1401ff30c
call fcn.1401fb808
test eax, eax
jne 0x1401ff2f8
cmp byte [rbp - 0x21], r15b
je 0x1401ff2f0
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x1401ff30c
cmp byte [rbp - 0x21], r15b
je 0x1401ff309
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.1401f12a4
test eax, eax
jne 0x1401ff3ac
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.1401e7e94
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1401ff34b
cmp byte [rbp - 0x21], r15b
je 0x1401ff380
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1401ff380
call fcn.1401fb808
test eax, eax
jne 0x1401ff36c
cmp byte [rbp - 0x21], r15b
je 0x1401ff365
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x1401ff380
cmp byte [rbp - 0x21], r15b
je 0x1401ff37d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.1401f12a4
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x1401ff3ac
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x1401ff3af
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x1401ff3bd
mov rcx, rdi
call fcn.1401fa0bc
cmp byte [rbp + 0x3f], r15b
je 0x1401ff3cc
mov rcx, qword [rbp + 0x27]
call fcn.1401fa0bc
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x140200ffc
Capabilities:
Query environment variable

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 r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x14020102c
xor eax, eax
jmp 0x1402010ef
mov rbp, rbx
cmp word [rax], si
je 0x140201051
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140201038
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140201034
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.1401fce14
movsxd r14, eax
test eax, eax
jne 0x14020108f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140201025
mov rcx, r14
call fcn.1401fa0f8
mov rdi, rax
test rax, rax
jne 0x1402010a8
xor ecx, ecx
call fcn.1401fa0bc
jmp 0x140201084
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.1401fce14
test eax, eax
jne 0x1402010d9
mov rcx, rdi
call fcn.1401fa0bc
jmp 0x1402010e3
xor ecx, ecx
call fcn.1401fa0bc
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x14020110c
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 0x140201193
mov rsi, rbx
cmp word [rax], bp
je 0x140201152
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14020113c
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140201138
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1401fa0f8
mov rdi, rax
test rax, rax
je 0x140201180
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14020df90
mov rbp, rdi
xor ecx, ecx
call fcn.1401fa0bc
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 0x140205a44
Capabilities:
Get disk information

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x14030cf00]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp ecx, 0x1a
jbe 0x140205a8e
call fcn.1401e8d94
mov dword [rax], reloc.WS2_32.dll_ntohs
call fcn.1401e8db4
mov dword [rax], reloc.WS2_32.dll_listen
call fcn.1401e7e2c
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1401d9e80
add rsp, 0x30
pop rbx
ret
xor ebx, ebx
test ecx, ecx
jne 0x140205a99
lea eax, [rbx + 1]
jmp 0x140205a7b
add cx, 0x40
mov dword [rsp + 0x22], 0x5c003a
mov word [rsp + 0x20], cx
lea rcx, [rsp + 0x20]
mov word [rsp + 0x26], bx
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
test eax, eax
je 0x140205a79
cmp eax, 1
setne bl
mov eax, ebx
jmp 0x140205a7b

Function at 0x140208990
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1402089b8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1402089b8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x1431a2058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1431a21df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x1431a2089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1431a206f
add dl, dl
jne 0x1431a2096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1431a20f6
xor eax, eax
add dl, dl
jne 0x1431a20a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1431a21ad
add dl, dl
jne 0x1431a20b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1431a20c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1431a20d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1431a20dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1431a20ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1431a207e
mov eax, 1
add dl, dl
jne 0x1431a2106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1431a2113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1431a20fb
sub eax, ebx
mov ebx, 1
jne 0x1431a214c
mov ecx, 1
add dl, dl
jne 0x1431a212e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1431a213b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1431a2123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1431a207e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1431a2168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1431a2175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1431a215d
cmp eax, 0x7d00
jae 0x1431a219b
cmp eax, 0x500
jb 0x1431a2196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1431a207e
cmp eax, 0x7f
ja 0x1431a219e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1431a207e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1431a21d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x1431a207e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140001180
Capabilities:
Terminate process

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbx, qword [0x140026d70]
mov rbp, qword [sym.imp.KERNEL32.dll_Sleep]
xor edi, edi
mov rax, qword gs:[0x30]
mov rsi, qword [rax + 8]
jmp 0x1400011c0
cmp rsi, rax
je 0x140001320
mov ecx, 0x3e8
call rbp
mov rax, rdi
lock cmpxchg qword [rbx], rsi
test rax, rax
jne 0x1400011b0
mov rsi, qword [0x140026d80]
xor edi, edi
mov eax, dword [rsi]
cmp eax, 1
je 0x140001337
mov eax, dword [rsi]
test eax, eax
je 0x1400013a0
mov dword [0x14002f008], 1
mov eax, dword [rsi]
cmp eax, 1
je 0x14000134c
test edi, edi
je 0x14000136d
mov rax, qword [0x140026ce0]
mov rax, qword [rax]
test rax, rax
je 0x140001223
xor r8d, r8d
mov edx, 2
xor ecx, ecx
call rax
call fcn.14000dff0
mov rcx, qword [0x140026e10]
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rdx, qword [0x140026d60]
lea rcx, section..text
mov qword [rdx], rax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__set_invalid_parameter_handler
call fcn.14000de00
mov ebx, dword [0x14002f028]
lea edi, [rbx + 1]
movsxd rdi, edi
shl rdi, 3
mov rcx, rdi
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
mov r12, qword [0x14002f020]
mov rbp, rax
test ebx, ebx
jle 0x1400013c0
sub rdi, 8
xor ebx, ebx
mov rcx, qword [r12 + rbx]
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
lea rsi, [rax + 1]
mov rcx, rsi
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
mov r8, rsi
mov qword [rbp + rbx], rax
mov rdx, qword [r12 + rbx]
mov rcx, rax
add rbx, 8
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
cmp rdi, rbx
jne 0x140001280
add rdi, rbp
mov qword [rdi], 0
mov qword [0x14002f020], rbp
call fcn.14000dc00
mov rax, qword [0x140026cf0]
mov r8, qword [0x14002f018]
mov ecx, dword [0x14002f028]
mov rax, qword [rax]
mov qword [rax], r8
mov rdx, qword [0x14002f020]
call fcn.140022970
mov ecx, dword [0x14002f00c]
mov dword [0x14002f010], eax
test ecx, ecx
je 0x1400013c8
mov edx, dword [0x14002f008]
test edx, edx
je 0x140001380
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rsi, qword [0x140026d80]
mov edi, 1
mov eax, dword [rsi]
cmp eax, 1
jne 0x1400011e1
mov ecx, 0x1f
call fcn.14000f790
mov eax, dword [rsi]
cmp eax, 1
jne 0x140001200
mov rdx, qword [0x140026db0]
mov rcx, qword [0x140026da0]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
mov dword [rsi], 2
test edi, edi
jne 0x140001208
xor eax, eax
xchg qword [rbx], rax
jmp 0x140001208
call sub.api_ms_win_crt_runtime_l1_1_0.dll__cexit
mov eax, dword [0x14002f010]
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rdx, qword [0x140026dd0]
mov rcx, qword [0x140026dc0]
mov dword [rsi], 1
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
jmp 0x1400011f5
mov rdi, rax
jmp 0x1400012b5
mov ecx, eax
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
nop
Function at 0x1400015e0
Capabilities:
Log keystrokes via polling

Disassembly:
push rsi
push rbx
sub rsp, 0x38
movups xmmword [rsp + 0x20], xmm6
mov byte [0x14002f230], 0
mov rcx, qword [0x14002f228]
lea rdx, section..rdata
mov dword [0x14002f234], 0
call qword [sym.imp.USER32.dll_SetWindowTextA]
cmp byte [0x14002f220], 0
je 0x140001670
mov rsi, qword [sym.imp.KERNEL32.dll_Sleep]
lea rbx, [0x14002f210]
pxor xmm6, xmm6
nop dword [rax + rax]
xor ecx, ecx
mov rdx, rbx
movups xmmword [rbx], xmm6
call sub.XINPUT1_3.dll_XInputGetState
test eax, eax
je 0x140001650
movups xmm6, xmmword [rsp + 0x20]
add rsp, 0x38
pop rbx
pop rsi
ret
movzx eax, word [0x14002f214]
and eax, dword [0x14002300c]
je 0x140001641
mov ecx, 1
call rsi
jmp 0x140001630
mov rbx, qword [sym.imp.USER32.dll_GetAsyncKeyState]
mov rsi, qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140001687
mov ecx, 1
call rsi
mov ecx, dword [0x14002300c]
call rbx
test ax, ax
js 0x140001680
movups xmm6, xmmword [rsp + 0x20]
add rsp, 0x38
pop rbx
pop rsi
ret
Function at 0x14000de10
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 sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call fcn.14000f5c0
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop
nop dword [rax]

Function at 0x14000de80
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14002f2a4]
mov rbx, rcx
test esi, esi
jle 0x14000dfb0
mov rax, qword [0x14002f2a8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14000decb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x14000df55
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x14000deb0
mov rcx, rbx
call fcn.14000e8f0
mov rdi, rax
test rax, rax
je 0x14000dfd2
mov rax, qword [0x14002f2a8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.14000ea30
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14002f2a8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14000dfb7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x14000df4e
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x14000df60
add dword [0x14002f2a4], 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 [0x14002f2a8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000df4e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.14000de10
nop dword [rax]
xor esi, esi
jmp 0x14000ded8
mov rax, qword [0x14002f2a8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.14000de10
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.14000de10
nop
nop word cs:[rax + rax]
nop dword [rax]