joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18009d7c0
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.18007c960
sub rsp, rax
mov rax, qword [0x1801d0100]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.18009acdc
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x18009d80f
mov rax, rbp
jmp 0x18009d91b
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, [0x180000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x1d44e0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.18009e7c8
mov r13, rax
lea rax, [0x180000000]
mov rcx, qword [rax + rbx*8 + 0x1d44e0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x18009d917
mov dword [rsp + 0x30], edi
lea r9, [rsp + 0x30]
mov rcx, qword [rcx + r12*8 + 0x28]
lea rdx, [rsp + 0x40]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x18009d917
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.18009e7c8
test rax, rax
js 0x18009d917
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x18009d917
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x18009d909
lea r8, [0x180000000]
cmp rcx, rdx
jae 0x18009d909
cmp byte [rcx], 0xd
jne 0x18009d8ef
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x18009d8fe
cmp byte [rcx + 1], 0xa
jne 0x18009d8fe
inc rcx
jmp 0x18009d8fe
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x1d06e0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x18009d8d1
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x18009d91b
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.18007bb00
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 0x18009dab0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
xor edi, edi
mov rax, r15
lea rcx, [0x1801d44e0]
and eax, 0x3f
mov r12, r15
sar r12, 6
mov rsi, rdx
lea r9d, [rdi + 0xa]
mov r14, r15
lea rbp, [rax + rax*8]
mov rax, qword [rcx + r12*8]
mov r10, qword [rax + rbp*8 + 0x28]
test r8, r8
je 0x18009db06
cmp word [rdx], r9w
jne 0x18009db06
or byte [rax + rbp*8 + 0x38], 4
jmp 0x18009db0b
and byte [rax + rbp*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rax, rsi
mov rbx, rsi
cmp rsi, r8
jae 0x18009dc8a
mov r11d, Ordinal_15
lea r13d, [r11 - 0xb]
movzx edx, word [rax]
cmp dx, 0x1a
je 0x18009dc55
lea rcx, [rax + 2]
cmp dx, r11w
jne 0x18009db53
cmp rcx, r8
jae 0x18009db73
cmp word [rcx], r9w
jne 0x18009db53
add rax, 4
mov edx, r9d
jmp 0x18009db56
mov rax, rcx
mov word [rbx], dx
mov r9, r13
mov rcx, rbx
mov r9d, 0xa
lea rbx, [rbx + r13]
cmp rax, r8
jb 0x18009db28
jmp 0x18009dc8a
lea r9, [rsp + 0x80]
mov word [rsp + 0x70], di
mov r8d, r13d
mov dword [rsp + 0x80], edi
lea rdx, [rsp + 0x70]
mov qword [rsp + 0x20], rdi
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x18009dc4e
cmp dword [rsp + 0x80], edi
je 0x18009dc4e
lea r9, [0x1801d44e0]
mov rax, qword [r9 + r12*8]
test byte [rax + rbp*8 + 0x38], 0x48
mov ebp, 0xa
je 0x18009dc28
movzx eax, word [rsp + 0x70]
cmp ax, bp
jne 0x18009dbdb
mov word [rbx], bp
jmp 0x18009dc87
mov word [rsp + 0x78], ax
mov rdx, r14
mov rax, r14
sar rdx, 6
and eax, 0x3f
mov word [rbx], Ordinal_15
lea r8, [rax + rax*8]
mov rax, qword [r9 + rdx*8]
lea rcx, [rax + r8*8]
mov al, byte [rsp + rdi + 0x78]
mov byte [rcx + rdi + 0x3a], al
inc rdi
cmp rdi, r13
jl 0x18009dbf6
mov rax, r14
sar rax, 6
and r14d, 0x3f
mov rax, qword [r9 + rax*8]
lea rcx, [r14 + r14*8]
mov byte [rax + rcx*8 + 0x3c], bpl
jmp 0x18009dc87
cmp word [rsp + 0x70], bp
jne 0x18009dc34
cmp rbx, rsi
je 0x18009dbd3
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.18009e7d0
cmp word [rsp + 0x70], bp
je 0x18009dc8a
mov word [rbx], Ordinal_15
jmp 0x18009dc87
mov rcx, r15
lea r9, [0x1801d44e0]
and ecx, 0x3f
mov rax, r15
sar rax, 6
lea r8, [rcx + rcx*8]
mov rcx, qword [r9 + rax*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x18009dc84
or al, r13b
mov byte [rcx + r8*8 + 0x38], al
jmp 0x18009dc8a
mov word [rbx], dx
add rbx, r13
sub rbx, rsi
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x1800a2780
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 0x1800a27b0
xor eax, eax
jmp 0x1800a2873
mov rbp, rbx
cmp word [rax], si
je 0x1800a27d5
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1800a27bc
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1800a27b8
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.180099634
movsxd r14, eax
mov rcx, r14
test eax, eax
jne 0x1800a2816
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1800a27a9
call fcn.180096760
mov rdi, rax
test rax, rax
jne 0x1800a282c
xor ecx, ecx
call fcn.180096700
jmp 0x1800a280b
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.180099634
test eax, eax
jne 0x1800a285d
mov rcx, rdi
call fcn.180096700
jmp 0x1800a2867
xor ecx, ecx
call fcn.180096700
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 0x1800a569c
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
xor esi, esi
mov rdi, rdx
mov dword [rsp + 0x30], esi
mov rbx, rcx
test rcx, rcx
je 0x1800a570f
cmp word [rcx], si
je 0x1800a570f
lea rdx, [0x1800de180]
call fcn.1800a9a60
test eax, eax
je 0x1800a570f
lea rdx, [0x1800de198]
mov rcx, rbx
call fcn.1800a9a60
test eax, eax
jne 0x1800a5705
mov ecx, dword [rdi + 8]
lea r9d, [rsi + 2]
lea r8, [rsp + 0x30]
mov edx, 0x2000000b
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1800a572c
mov eax, dword [rsp + 0x30]
jmp 0x1800a573e
mov rcx, rbx
call fcn.18009401c
jmp 0x1800a573e
mov ecx, dword [rdi + 8]
lea r8, [rsp + 0x30]
mov r9d, 2
mov edx, 0x20001004
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x1800a5730
xor eax, eax
jmp 0x1800a573e
mov eax, dword [rsp + 0x30]
test eax, eax
jne 0x1800a573e
call qword [sym.imp.KERNEL32.dll_GetACP]
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1800a5750
Capabilities:
Get geographical location

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x20
xor ebx, ebx
mov ebp, edx
mov dword [rax + 8], ebx
mov edi, ecx
call fcn.180096c40
mov ecx, edi
lea r9d, [rbx + 2]
and ecx, 0x3ff
lea r8, [rsp + 0x30]
bts ecx, 0xa
mov edx, 0x20000001
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1800a57f3
cmp edi, dword [rsp + 0x30]
je 0x1800a57ec
test ebp, ebp
je 0x1800a57ec
mov r9, qword [rsi + 0x98]
mov r8d, ebx
movzx edx, word [r9]
lea rcx, [r9 + 2]
lea eax, [rdx - 0x41]
cmp ax, 0x19
jbe 0x1800a57c8
sub dx, 0x61
cmp dx, 0x19
ja 0x1800a57d4
movzx edx, word [rcx]
inc r8d
add rcx, 2
jmp 0x1800a57b5
or rax, 0xffffffffffffffff
inc rax
cmp word [r9 + rax*2], bx
jne 0x1800a57d8
cmp r8d, eax
setne bl
mov eax, ebx
jmp 0x1800a57f5
mov eax, 1
jmp 0x1800a57f5
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x1800a96d8
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.180089dcc
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x1800a9762
cmp byte [rbp - 0x21], r15b
je 0x1800a975d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x1800a9798
call fcn.18009738c
test eax, eax
jne 0x1800a9784
cmp byte [rbp - 0x21], r15b
je 0x1800a977c
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x1800a9798
cmp byte [rbp - 0x21], r15b
je 0x1800a9795
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.180089e68
test eax, eax
jne 0x1800a9838
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.180089dcc
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1800a97d7
cmp byte [rbp - 0x21], r15b
je 0x1800a980c
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1800a980c
call fcn.18009738c
test eax, eax
jne 0x1800a97f8
cmp byte [rbp - 0x21], r15b
je 0x1800a97f1
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x1800a980c
cmp byte [rbp - 0x21], r15b
je 0x1800a9809
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.180089e68
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x1800a9838
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x1800a983b
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x1800a9849
mov rcx, rdi
call fcn.180096700
cmp byte [rbp + 0x3f], r15b
je 0x1800a9858
mov rcx, qword [rbp + 0x27]
call fcn.180096700
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 0x1800aa464
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.18009e7d0
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.18009e7d0
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1800aa5b1
cmp rax, 0xffffffffffffffff
je 0x1800aa5b1
xor edi, edi
test rbp, rbp
jle 0x1800aa55f
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.180096680
mov rbx, rax
test rax, rax
jne 0x1800aa4ec
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1800aa555
mov edx, 0x8000
mov ecx, r14d
call fcn.1800a7978
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.18009ca78
cmp eax, 0xffffffff
je 0x1800aa535
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1800aa4fc
mov edx, r15d
mov ecx, r14d
call fcn.1800a7978
jmp 0x1800aa555
cmp byte [rsi + 0x38], dil
je 0x1800aa54c
cmp dword [rsi + 0x34], 5
jne 0x1800aa54c
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], Ordinal_15
cmp byte [rsi + 0x30], dil
je 0x1800aa555
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.180096700
jmp 0x1800aa5c3
jns 0x1800aa5c3
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.18009e7d0
cmp rax, 0xffffffffffffffff
jne 0x1800aa57d
cmp byte [rsi + 0x30], dil
je 0x1800aa5c3
jmp 0x1800aa5b9
mov ecx, r14d
call fcn.1800a7540
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1800aa5c3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, Ordinal_15
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], Ordinal_15
jmp 0x1800aa5c3
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1800aa5be
mov edi, dword [rsi + 0x2c]
jmp 0x1800aa5c3
mov edi, reloc.LIBPQ.dll_Ordinal_22
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.18009e7d0
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 0x1800aae50
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1800aae78
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1800aae78
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x4015b1
Capabilities:
Get system information on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x50
lea rax, [rbp - 0x30]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetSystemInfo]
call rax
mov eax, dword [rbp - 0x10]
cmp eax, 1
jne 0x4015d8
mov eax, 1
jmp 0x40160e
lea rcx, str.VBoxMouse
mov rax, qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call rax
test rax, rax
jne 0x401602
lea rcx, str.vmmouse
mov rax, qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call rax
test rax, rax
je 0x401609
mov eax, 1
jmp 0x40160e
mov eax, 0
add rsp, 0x50
pop rbp
ret

Function at 0x401638
Capabilities:
Query environment variable

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
lea rcx, str.USERPROFILE
call main
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
je 0x40167f
mov rdx, qword [rbp - 8]
mov rax, qword [rbp + 0x18]
mov r9, rdx
lea r8, [0x0040501e]
mov rdx, rax
mov rcx, qword [rbp + 0x10]
call fcn.00401550
jmp 0x401686
mov rax, qword [rbp + 0x10]
mov byte [rax], 0
nop
add rsp, 0x30
pop rbp
ret
Function at 0x402080
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x00408624]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x402208
mov rax, qword [0x00408628]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x4020cc
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x402155
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x4020b0
mov rcx, rbx
call fcn.00402d20
test rax, rax
mov r12, rax
je 0x40223d
mov rax, qword [0x00408628]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call fcn.00402e50
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x00408628]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x402220
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x40214e
sub eax, 0x40
and eax, 0xffffffbf
jne 0x4021b0
add dword [0x00408624], 1
cmp edi, 8
jae 0x402183
test dil, 4
jne 0x4021f4
test edi, edi
je 0x402178
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x40220f
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, edi
sub edi, 1
mov rdx, qword [rbp + rax - 8]
cmp edi, 8
mov qword [rbx + rax - 8], rdx
jb 0x402178
and edi, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, edi
mov qword [rbx + rdx], rcx
jb 0x40219c
jmp 0x402178
add rsi, qword [0x00408628]
mov r8d, 0x40
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x40214e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.00403270
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x402178
xor esi, esi
jmp 0x4020d7
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x402178
mov rax, qword [0x00408628]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call fcn.00403270
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call fcn.00403270
nop
nop dword [rax]

Function at 0x402990
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x00408900]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x004088e0]
test rbx, rbx
je 0x4029e4
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x4029db
test rsi, rsi
je 0x4029db
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x4029c0
lea rcx, [0x00408900]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x402d20
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x00405420]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x402d8d
mov rcx, r8
call fcn.00402c00
test eax, eax
je 0x402d8d
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x402d8d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x402d84
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x402d8f
add rax, 0x28
cmp rax, r9
jne 0x402d70
xor eax, eax
add rsp, 0x28
ret

Function at 0x403270
Capabilities:
Write file on windows

Disassembly:
lea rcx, [0x00401540]
jmp 0x401510
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
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.00403110
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.00403110
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop
nop
nop
nop
nop
nop
nop
jmp 0x401530
Function at 0x1811b30ec
Capabilities:
Encode data using xor

Disassembly:
jmp 0x1811b30f6
push rax
push rcx
push rdx
push rbx
push rbp
push rsi
push rdi
push r8
push r9
push r10
push r11
push r12
push r13
push r14
push r15
pushfq
sub rsp, 8
stmxcsr dword [rsp]
call 0x1811b311f
pop rbp
sub rbp, 0x33
sub rbp, 0x11b30ec
cmp edx, 1
je 0x1811b3162
ldmxcsr dword [rsp]
add rsp, 8
popfq
pop r15
pop r14
pop r13
pop r12
pop r11
pop r10
pop r9
pop r8
pop rdi
pop rsi
pop rbp
pop rbx
pop rdx
pop rcx
pop rax
xor rax, rax
ret
sub rsp, 0x20
jmp 0x1811b3172
mov rax, 0x11b30ec
add rax, rbp
add rax, 0xb8
mov rcx, 0x60b
mov rdx, 0xffffffff80bc06f9
xor byte [rax], dl
inc rax
dec rcx
jne 0x1811b3191
jmp 0x1811b31a8
mov cl, 0x70
adc byte [rdx + 0x70], dh
vpsubw xmm7, xmm0, xmm1
mov cl, 0x78
cmp cl, dh
clc
stc
stc
mov cl, 0xf8
adc byte [rcx - 0x603c6c2], dh
stc
stc
mov cl, 0x3e
cmp edx, ecx
stc
stc
stc
mov cl, 0xe
sbb esi, dword [rcx + 0x787238f8]
cmc
stc
stc
stc
mov cl, 0xf8
adc dword [rcx + 0x5141b1a9], ebp
mov dh, 0xca
stc
stc
stc
stc
stc
mov cl, 0x40
mov ebx, 0xf9f91e18
stc
stc
stc
mov cl, 0xf8
adc byte [rcx - 0x13658abd], dh
invalid
Function at 0x1400015b0
Capabilities:
Log keystrokes via polling

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
lea rbp, [rax - 0x5f]
sub rsp, 0xb0
mov rax, qword [0x1400b6010]
xor rax, rsp
mov qword [rbp + 0x47], rax
mov rdi, rcx
call fcn.14005a538
mov ebx, eax
cmp eax, 0xffffffff
je 0x1400017df
mov edx, eax
sar edx, 9
shl edx, 3
movsxd rdx, edx
mov rcx, qword [0x1400b71e8]
add rcx, 0x10
add rdx, rcx
xor esi, esi
mov qword [rbp - 0x29], rsi
mov qword [rsp + 0x20], rsi
lea r9d, [rsi + 8]
lea r8, [rbp - 0x29]
mov rcx, qword [0x1400b73e0]
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov rcx, qword [rbp - 0x29]
test rcx, rcx
je 0x1400017df
and ebx, 0x1ff
imul edx, ebx, 0x78
add rdx, rcx
mov qword [rbp - 0x21], rsi
mov qword [rsp + 0x20], rsi
lea r9d, [rsi + 8]
lea r8, [rbp - 0x21]
mov rcx, qword [0x1400b73e0]
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov rbx, qword [rbp - 0x21]
test rbx, rbx
je 0x1400017df
xor edx, edx
lea r8d, [rsi + 0x60]
lea rcx, [rbp - 0x19]
call sub.VCRUNTIME140.dll_memset
and dword [rbp + 0x13], esi
and dword [rbp + 0x17], esi
and dword [rbp + 0x1b], esi
and dword [rbp + 0x1f], esi
mov byte [rbp + 0x23], sil
mov qword [rbp + 0x2f], rsi
xorps xmm0, xmm0
movdqa xmmword [rbp + 0x37], xmm0
mov qword [rbp - 0x11], rbx
lea rcx, [rbp - 0x19]
call fcn.14005a250
lea rcx, [rbp - 0x19]
call fcn.14005a304
mov al, byte [rdi + 0x3c]
cmp byte [rbp + 0x23], al
je 0x1400017d6
cmp dword [rbp - 9], 1
jl 0x1400017d6
mov edx, 4
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
mov edi, 0x989680
mov eax, dword [rdx + rcx]
cmp dword [0x1400b73d4], eax
jle 0x14000173e
lea rcx, [0x1400b73d4]
call fcn.14005d818
cmp dword [0x1400b73d4], 0xffffffff
jne 0x14000173e
call qword [sym.imp.MSVCP140.dll__Query_perf_frequency]
mov rbx, rax
call qword [sym.imp.MSVCP140.dll__Query_perf_counter]
cmp rbx, rdi
jne 0x140001710
imul rax, rax, 0x64
jmp 0x14000172b
cqo
idiv rbx
imul r8, rax, 0x3b9aca00
imul rax, rdx, 0x3b9aca00
cqo
idiv rbx
add rax, r8
mov qword [0x1400b73e8], rax
lea rcx, [0x1400b73d4]
call fcn.14005d7b8
call qword [sym.imp.MSVCP140.dll__Query_perf_frequency]
mov rbx, rax
call qword [sym.imp.MSVCP140.dll__Query_perf_counter]
cmp rbx, rdi
jne 0x140001758
imul rbx, rax, 0x64
jmp 0x140001774
cqo
idiv rbx
imul rcx, rax, 0x3b9aca00
imul rax, rdx, 0x3b9aca00
cqo
idiv rbx
lea rbx, [rax + rcx]
movsxd rax, dword [0x1400b6044]
mov rdx, rbx
sub rdx, qword [0x1400b73e8]
imul r8, rax, 0xf4240
cmp rdx, r8
je 0x140001793
jl 0x1400017d6
mov ecx, 1
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
js 0x1400017cf
mov qword [rsp + 0x20], rsi
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.USER32.dll_mouse_event]
mov qword [rsp + 0x20], rsi
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea ecx, [rdx + 4]
call qword [sym.imp.USER32.dll_mouse_event]
mov qword [0x1400b73e8], rbx
lea rcx, [rbp + 0x2f]
call fcn.140001a9c
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.14005d6a0
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret