joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1801e65d0
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
lea r9, [0x180a5e320]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x1801e6627
cmp word [rdx], r13w
jne 0x1801e6627
or byte [rax + rdi*8 + 0x38], cl
jmp 0x1801e662c
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x1801e6751
mov r11d, reloc.WS2_32.dll_listen
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x1801e6772
lea r9, [rdx + 2]
cmp cx, r11w
je 0x1801e6665
mov rdx, r9
mov word [rbx], cx
jmp 0x1801e668c
cmp r9, r8
jae 0x1801e669c
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x1801e6646
jmp 0x1801e6751
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1801e6746
cmp dword [rsp + 0x80], esi
je 0x1801e6746
lea r8, [0x180a5e320]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x1801e671e
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x1801e66ee
mov word [rbx], r13w
jmp 0x1801e674e
mov ecx, reloc.WS2_32.dll_listen
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x1801e66fb
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x1801e674e
cmp word [rsp + 0x70], r13w
jne 0x1801e672b
cmp rbx, r14
je 0x1801e66e8
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.1801e2130
cmp word [rsp + 0x70], r13w
je 0x1801e6751
mov ecx, reloc.WS2_32.dll_listen
mov word [rbx], cx
add rbx, r12
sub rbx, r14
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
lea r8, [0x180a5e320]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x1801e674b
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x1801e6751
Function at 0x1801ec04c
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1801ec062
mov al, 1
jmp 0x1801ec0c2
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1801ec073
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1801ec0c0
mov ecx, dword [rcx + 0x18]
nop
call fcn.1801f07a0
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1801ec0c0
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1801ec0c0
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1801ec0c0
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1801ec0c2
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x1801f08b0
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.1801e2130
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.1801e2130
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1801f0a00
cmp rax, 0xffffffffffffffff
je 0x1801f0a00
xor edi, edi
test rbp, rbp
jle 0x1801f09ab
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1801ec5c0
mov rbx, rax
test rax, rax
jne 0x1801f0938
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1801f09a1
mov edx, 0x8000
mov ecx, r14d
call fcn.1801f0210
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.1801e7988
cmp eax, 0xffffffff
je 0x1801f0981
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1801f0948
mov edx, r15d
mov ecx, r14d
call fcn.1801f0210
jmp 0x1801f09a1
cmp byte [rsi + 0x38], dil
je 0x1801f0998
cmp dword [rsi + 0x34], 5
jne 0x1801f0998
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], reloc.WS2_32.dll_listen
cmp byte [rsi + 0x30], dil
je 0x1801f09a1
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1801ea6b4
jmp 0x1801f0a14
jns 0x1801f0a14
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.1801e2130
cmp rax, 0xffffffffffffffff
jne 0x1801f09cc
cmp byte [rsi + 0x30], dil
je 0x1801f0a14
mov edi, dword [rsi + 0x2c]
jmp 0x1801f0a14
mov ecx, r14d
call fcn.1801f07a0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1801f0a14
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 0x1801f0a14
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1801f0a0d
mov eax, dword [rsi + 0x2c]
jmp 0x1801f0a12
mov eax, reloc.WLDAP32.dll_Ordinal_22
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.1801e2130
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 0x1801f2d1c
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 0x1801f2d4c
xor eax, eax
jmp 0x1801f2e0f
mov rbp, rbx
cmp word [rax], si
je 0x1801f2d71
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1801f2d58
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1801f2d54
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.1801ee248
movsxd r14, eax
test eax, eax
jne 0x1801f2daf
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1801f2d45
mov rcx, r14
call fcn.1801ea6f0
mov rdi, rax
test rax, rax
jne 0x1801f2dc8
xor ecx, ecx
call fcn.1801ea6b4
jmp 0x1801f2da4
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.1801ee248
test eax, eax
jne 0x1801f2df9
mov rcx, rdi
call fcn.1801ea6b4
jmp 0x1801f2e03
xor ecx, ecx
call fcn.1801ea6b4
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 0x1801f2e2c
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 0x1801f2eb3
mov rsi, rbx
cmp word [rax], bp
je 0x1801f2e72
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1801f2e5c
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1801f2e58
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1801ea6f0
mov rdi, rax
test rax, rax
je 0x1801f2ea0
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1801feaf0
mov rbp, rdi
xor ecx, ecx
call fcn.1801ea6b4
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 0x1801f396c
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1801f398c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1801d51a4
or eax, 0xffffffff
jmp 0x1801f398e
xor eax, eax
add rsp, 0x28
ret

Function at 0x1801f6364
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.1801e8ad4
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x1801f6405
cmp ebx, dword [rsp + 0x30]
je 0x1801f63fe
test esi, esi
je 0x1801f63fe
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x1801f63d9
sub r8w, 0x61
cmp r8w, 0x19
ja 0x1801f63e6
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x1801f63c3
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x1801f63ea
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x1801f6407
mov eax, 1
jmp 0x1801f6407
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x1801f8dac
Capabilities:
Get disk information

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x180279b80]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp ecx, 0x1a
jbe 0x1801f8df6
call fcn.1801d5210
mov dword [rax], reloc.WS2_32.dll_ntohs
call fcn.1801d5230
mov dword [rax], reloc.WS2_32.dll_listen
call fcn.1801ce52c
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1801be920
add rsp, 0x30
pop rbx
ret
xor ebx, ebx
test ecx, ecx
jne 0x1801f8e01
lea eax, [rbx + 1]
jmp 0x1801f8de3
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 0x1801f8de1
cmp eax, 1
setne bl
mov eax, ebx
jmp 0x1801f8de3
Function at 0x1801f90f0
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.1801d4f10
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x1801f917a
cmp byte [rbp - 0x21], r15b
je 0x1801f9175
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x1801f91b0
call fcn.1801ec958
test eax, eax
jne 0x1801f919c
cmp byte [rbp - 0x21], r15b
je 0x1801f9194
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x1801f91b0
cmp byte [rbp - 0x21], r15b
je 0x1801f91ad
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.1801d4c78
test eax, eax
jne 0x1801f9250
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.1801d4f10
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1801f91ef
cmp byte [rbp - 0x21], r15b
je 0x1801f9224
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1801f9224
call fcn.1801ec958
test eax, eax
jne 0x1801f9210
cmp byte [rbp - 0x21], r15b
je 0x1801f9209
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x1801f9224
cmp byte [rbp - 0x21], r15b
je 0x1801f9221
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.1801d4c78
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x1801f9250
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x1801f9253
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x1801f9261
mov rcx, rdi
call fcn.1801ea6b4
cmp byte [rbp + 0x3f], r15b
je 0x1801f9270
mov rcx, qword [rbp + 0x27]
call fcn.1801ea6b4
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 0x1801fa160
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1801fa188
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1801fa188
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x10000124c
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
call fcn.100001180
add rsp, 0x28
jmp 0x100001270
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], r12
push r13
sub rsp, 0xb0
xor ebx, ebx
mov dword [rsp + 0x20], ebx
lea rcx, [rax - 0x78]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoW]
nop
mov rax, qword gs:[0x30]
mov rdi, qword [rax + 8]
mov r12d, ebx
xor eax, eax
lock cmpxchg qword [section..data], rdi
jne 0x10000169f
mov eax, dword [0x100003014]
cmp eax, 1
je 0x1000016bf
mov eax, dword [0x100003014]
cmp eax, ebx
jne 0x1000016d6
mov dword [0x100003014], 1
lea r13, [0x100002168]
lea rdi, [0x100002150]
mov qword [rsp + 0x30], rdi
mov eax, ebx
mov dword [rsp + 0x24], ebx
cmp rdi, r13
jae 0x10000131c
cmp eax, ebx
jne 0x10000131c
mov rcx, qword [rdi]
cmp rcx, rbx
je 0x100001311
call rcx
mov dword [rsp + 0x24], eax
add rdi, 8
mov qword [rsp + 0x30], rdi
jmp 0x1000012fa
cmp eax, ebx
jne 0x1000016cc
mov eax, dword [0x100003014]
cmp eax, 1
jne 0x10000134c
lea rdx, [0x100002148]
lea rcx, [0x100002138]
call fcn.100180000
mov dword [0x100003014], 2
cmp r12d, ebx
jne 0x10000135b
mov rax, rbx
xchg qword [section..data], rax
cmp qword [0x1000035d8], rbx
jne 0x1000016e5
mov rcx, qword [sym.imp.msvcrt.dll__wcmdln]
cmp qword [rcx], rbx
je 0x10000170e
mov rcx, qword [rcx]
mov qword [rsp + 0x28], rcx
mov edx, dword [rsp + 0x20]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp word [rcx], 0x20
jbe 0x1000013ab
cmp word [rcx], 0x22
je 0x100001741
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x100001390
cmp word [rcx], bx
je 0x1000013b4
cmp edx, ebx
jne 0x100001396
cmp word [rcx], bx
je 0x1000013ca
cmp word [rcx], 0x20
ja 0x1000013ca
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x1000013b4
test byte [rsp + 0x7c], 1
movzx eax, word [rsp + 0x80]
mov r9d, 0xa
cmovne r9d, eax
mov r8, rcx
xor edx, edx
lea rcx, [0x100000000]
call fcn.100001400
nop
jmp 0x100001715
cmp rax, rdi
jne 0x1000016af
mov r12d, 1
jmp 0x1000012ba
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1000012a9
lea ecx, [rax + 0x1e]
call sub.msvcrt.dll__amsg_exit
jmp 0x100001324
mov eax, 0xff
jmp 0x100001780
mov dword [0x1000036e4], 1
jmp 0x100001324
lea rcx, [0x1000035d8]
call fcn.1000018fc
cmp eax, ebx
je 0x100001368
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
call qword [0x1000035d8]
nop
jmp 0x100001368
mov eax, 0xff
jmp 0x100001780
mov dword [0x1000036e0], eax
cmp dword [0x100003008], ebx
jne 0x10000172b
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x1000036e4], ebx
jne 0x10000173f
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x1000036e0]
jmp 0x100001780
mov eax, ebx
cmp edx, ebx
sete al
mov edx, eax
mov dword [rsp + 0x20], eax
jmp 0x1000013a0
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov r12, qword [r11 + 0x20]
mov rsp, r11
pop r13
ret
Function at 0x1415bc058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x1415bc1df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, pe_nt_image_headers64
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x1415bc089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1415bc06f
add dl, dl
jne 0x1415bc096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1415bc0f6
xor eax, eax
add dl, dl
jne 0x1415bc0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1415bc1ad
add dl, dl
jne 0x1415bc0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1415bc0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1415bc0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1415bc0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1415bc0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1415bc07e
mov eax, 1
add dl, dl
jne 0x1415bc106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1415bc113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1415bc0fb
sub eax, ebx
mov ebx, 1
jne 0x1415bc14c
mov ecx, 1
add dl, dl
jne 0x1415bc12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1415bc13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1415bc123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1415bc07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1415bc168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1415bc175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1415bc15d
cmp eax, 0x7d00
jae 0x1415bc19b
cmp eax, 0x500
jb 0x1415bc196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1415bc07e
cmp eax, 0x7f
ja 0x1415bc19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1415bc07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1415bc1d2
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 0x1415bc07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x14124e058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.14124e1df
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 0x14124e089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14124e06f
add dl, dl
jne 0x14124e096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14124e0f6
xor eax, eax
add dl, dl
jne 0x14124e0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14124e1ad
add dl, dl
jne 0x14124e0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14124e0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14124e0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14124e0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x14124e0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14124e07e
mov eax, 1
add dl, dl
jne 0x14124e106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14124e113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14124e0fb
sub eax, ebx
mov ebx, 1
jne 0x14124e14c
mov ecx, 1
add dl, dl
jne 0x14124e12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14124e13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14124e123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14124e07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x14124e168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14124e175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14124e15d
cmp eax, 0x7d00
jae 0x14124e19b
cmp eax, 0x500
jb 0x14124e196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14124e07e
cmp eax, 0x7f
ja 0x14124e19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14124e07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x14124e1d2
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 0x14124e07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x14000a290
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov rax, qword [0x14012d040]
xor rax, rsp
mov qword [rsp + 0x38], rax
movzx eax, byte [0x14014c9fa]
test eax, eax
jne 0x14000a2b8
jmp 0x14000a389
mov ecx, 0x20
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x14000a2cf
mov byte [rsp + 0x21], 1
jmp 0x14000a2d4
mov byte [rsp + 0x21], 0
movzx eax, byte [rsp + 0x21]
mov byte [rsp + 0x20], al
mov rcx, qword [rsp + 0x50]
call fcn.14000a250
mov byte [rsp + 0x22], al
lea rdx, [rsp + 0x30]
lea rcx, [0x14014cab0]
call fcn.1400355b0
movzx eax, byte [rsp + 0x20]
test eax, eax
je 0x14000a340
movzx eax, byte [rsp + 0x22]
test eax, eax
je 0x14000a340
mov dword [rsp + 0x24], 0xf
lea rdx, [rsp + 0x24]
lea rcx, [rsp + 0x28]
call fcn.14002afc0
mov rcx, rax
call fcn.14002afe0
mov edx, 0x10001
lea rcx, [0x14014cab0]
call fcn.140035570
jmp 0x14000a389
movzx eax, byte [rsp + 0x20]
test eax, eax
je 0x14000a365
movzx eax, byte [rsp + 0x22]
test eax, eax
jne 0x14000a365
mov edx, pe_nt_image_headers64
lea rcx, [0x14014cab0]
call fcn.140035570
jmp 0x14000a389
movzx eax, byte [rsp + 0x20]
test eax, eax
jne 0x14000a389
cmp dword [rsp + 0x30], 0x10001
jne 0x14000a389
mov edx, pe_nt_image_headers64
lea rcx, [0x14014cab0]
call fcn.140035570
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1400f4960
add rsp, 0x48
ret

Function at 0x14002d710
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov r9d, 0x6c078965
mov r8d, 0xffffffff
mov edx, dword [rsp + 0x38]
mov rcx, qword [rsp + 0x30]
call fcn.14002e190
mov rax, qword [rsp + 0x30]
add rsp, 0x28
ret

Function at 0x1400321d0
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov rax, qword [rsp + 0x40]
cmp dword [rax], 0x270
jne 0x1400321f2
mov rcx, qword [rsp + 0x40]
call fcn.1400322a0
jmp 0x140032209
mov rax, qword [rsp + 0x40]
cmp dword [rax], 0x4e0
jb 0x140032209
mov rcx, qword [rsp + 0x40]
call fcn.140032350
mov rax, qword [rsp + 0x40]
mov eax, dword [rax]
mov rcx, qword [rsp + 0x40]
mov eax, dword [rcx + rax*4 + 4]
mov dword [rsp + 0x24], eax
mov rax, qword [rsp + 0x40]
mov eax, dword [rax]
inc eax
mov rcx, qword [rsp + 0x40]
mov dword [rcx], eax
mov eax, dword [rsp + 0x24]
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
shr eax, 0xb
mov rcx, qword [rsp + 0x40]
and eax, dword [rcx + 0x1384]
mov ecx, dword [rsp + 0x20]
xor ecx, eax
mov eax, ecx
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
shl eax, 7
and eax, 0x9d2c5680
mov ecx, dword [rsp + 0x20]
xor ecx, eax
mov eax, ecx
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
shl eax, 0xf
and eax, 0xefc60000
mov ecx, dword [rsp + 0x20]
xor ecx, eax
mov eax, ecx
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
shr eax, 0x12
mov ecx, dword [rsp + 0x20]
xor ecx, eax
mov eax, ecx
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
add rsp, 0x38
ret
Function at 0x1400322a0
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x18
mov qword [rsp + 8], 0x270
jmp 0x1400322c1
mov rax, qword [rsp + 8]
inc rax
mov qword [rsp + 8], rax
cmp qword [rsp + 8], 0x4e0
jae 0x140032345
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 8]
mov eax, dword [rax + rcx*4 - 0x9bc]
and eax, 0x80000000
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 8]
mov ecx, dword [rcx + rdx*4 - 0x9b8]
btr ecx, 0x1f
or eax, ecx
mov dword [rsp], eax
mov eax, dword [rsp]
and eax, 1
test eax, eax
je 0x140032310
mov dword [rsp + 4], 0x9908b0df
jmp 0x140032318
mov dword [rsp + 4], 0
mov eax, dword [rsp]
shr eax, 1
xor eax, dword [rsp + 4]
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 8]
xor eax, dword [rcx + rdx*4 - 0x388]
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 8]
mov dword [rcx + rdx*4 + 4], eax
jmp 0x1400322b4
add rsp, 0x18
ret