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

Disassembly:
sub rsp, 0x28
mov rdx, rcx
test rcx, rcx
jne 0x180075065
call fcn.180072220
mov dword [rax], 0x16
call fcn.1800668c4
or eax, 0xffffffff
jmp 0x180075082
sub dword [rcx + 0x10], 1
jns 0x180075074
add rsp, 0x28
jmp 0x180076020
mov rax, qword [rcx]
movzx ecx, byte [rax]
inc rax
mov qword [rdx], rax
mov eax, ecx
add rsp, 0x28
ret
jmp 0x180075044
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov qword [rax + 8], rcx
push rbp
mov rbp, rsp
sub rsp, 0x20
test rcx, rcx
jne 0x180075ec0
call fcn.180072220
mov dword [rax], 0x16
call fcn.1800668c4
or eax, 0xffffffff
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop rbp
ret
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x180075ea8
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
shr ecx, 0xc
test cl, 1
jne 0x180075ea8
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
mov rax, qword [rbp + 0x10]
shr ecx, 1
test cl, 1
je 0x180075ef2
lock or dword [rax + 0x14], 0x10
jmp 0x180075ea8
lock or dword [rax + 0x14], 1
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
test ecx, 0x4c0
jne 0x180075f0f
mov rcx, qword [rbp + 0x10]
call fcn.18007b690
mov rax, qword [rbp + 0x10]
mov rcx, qword [rax + 8]
mov qword [rax], rcx
mov rbx, qword [rbp + 0x10]
mov rcx, rbx
call fcn.180074400
mov rdx, qword [rbp + 0x10]
mov ecx, eax
mov r8d, dword [rdx + 0x20]
mov rdx, qword [rdx + 8]
call fcn.1800758f8
mov dword [rbx + 0x10], eax
mov rax, qword [rbp + 0x10]
mov edx, dword [rax + 0x10]
lea ecx, [rdx + 1]
cmp ecx, 1
ja 0x180075f66
neg edx
sbb ecx, ecx
and ecx, 8
add ecx, 8
lock or dword [rax + 0x14], ecx
mov rax, qword [rbp + 0x10]
and dword [rax + 0x10], 0
jmp 0x180075ea8
mov ecx, dword [rax + 0x14]
test cl, 6
jne 0x180075fd2
mov rcx, qword [rbp + 0x10]
call fcn.180074400
cmp eax, 0xffffffff
je 0x180075fb9
mov rcx, qword [rbp + 0x10]
call fcn.180074400
cmp eax, 0xfffffffe
je 0x180075fb9
mov rbx, qword [rbp + 0x10]
mov rcx, rbx
call fcn.180074400
movsxd rdi, eax
lea rsi, [0x180095c70]
mov rcx, rbx
sar rdi, 6
call fcn.180074400
and eax, 0x3f
shl rax, 6
add rax, qword [rsi + rdi*8]
jmp 0x180075fc0
lea rax, [0x180094700]
mov al, byte [rax + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x180075fd2
mov rax, qword [rbp + 0x10]
lock or dword [rax + 0x14], 0x20
mov rax, qword [rbp + 0x10]
cmp dword [rax + 0x20], 0x200
jne 0x180076008
mov ecx, dword [rax + 0x14]
shr ecx, 6
test cl, 1
je 0x180076004
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
shr ecx, 8
test cl, 1
jne 0x180076004
mov rax, qword [rbp + 0x10]
mov dword [rax + 0x20], 0x1000
mov rax, qword [rbp + 0x10]
dec dword [rax + 0x10]
mov rcx, qword [rax]
movzx edx, byte [rcx]
inc rcx
mov qword [rax], rcx
mov eax, edx
jmp 0x180075eab
jmp 0x180075e78
Function at 0x69d41c60
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x70
lea rax, [0x69e10360]
xor r8d, r8d
mov qword [rcx], rax
lea r12, [rsp + 0x30]
mov rbx, rcx
lea rdx, [rsp + 0x28]
mov rcx, r12
lea rsi, [rsp + 0x60]
lea rdi, [rsp + 0x40]
movabs rax, 0x3233697061766461
mov qword [rsp + 0x50], rsi
lea r13, [rsp + 0x50]
mov qword [rsp + 0x60], rax
mov dword [rsp + 0x68], 0x6c6c642e
mov qword [rsp + 0x58], 0xc
mov byte [rsp + 0x6c], 0
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x28], 0x13
call fcn.69deb030
mov rdx, qword [rsp + 0x28]
movabs rcx, 0x746e6f4365736165
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x40], rdx
movabs rdx, 0x6c65527470797243
mov qword [rax], rdx
mov edx, 0x7865
mov qword [rax + 8], rcx
mov rcx, r12
mov word [rax + 0x10], dx
mov byte [rax + 0x12], 0x74
mov rax, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x30]
mov qword [rsp + 0x38], rax
mov byte [rdx + rax], 0
mov rdx, r13
call fcn.69d459b0
mov rcx, qword [rbx + 0x40]
xor edx, edx
call rax
mov rcx, qword [rsp + 0x30]
cmp rcx, rdi
je 0x69d41d40
call fcn.69dfe2a0
mov rcx, qword [rsp + 0x50]
cmp rcx, rsi
je 0x69d41d4f
call fcn.69dfe2a0
movabs rax, 0x3233697061766461
mov rdx, r13
mov rcx, r12
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x60], rax
movabs rax, 0x7365447470797243
mov qword [rsp + 0x40], rax
mov eax, 0x654b
mov dword [rsp + 0x68], 0x6c6c642e
mov qword [rsp + 0x58], 0xc
mov byte [rsp + 0x6c], 0
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x48], 0x796f7274
mov word [rsp + 0x4c], ax
mov byte [rsp + 0x4e], 0x79
mov qword [rsp + 0x38], 0xf
mov byte [rsp + 0x4f], 0
call fcn.69d459b0
mov rcx, qword [rbx + 0x38]
call rax
mov rcx, qword [rsp + 0x30]
cmp rcx, rdi
je 0x69d41dd2
call fcn.69dfe2a0
mov rcx, qword [rsp + 0x50]
cmp rcx, rsi
je 0x69d41de1
call fcn.69dfe2a0
mov rcx, qword [rbx + 8]
call fcn.69dfe2a0
nop
add rsp, 0x70
pop rbx
pop rsi
pop rdi
pop r12
pop r13
ret
Function at 0x69d581e0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push rbx
sub rsp, 0x30
cmp qword [rcx], 0
mov rbx, rcx
jne 0x69d58210
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x69d58207
mov rax, qword [rsp + 0x20]
mov qword [rbx], rax
jmp 0x69d58210
mov qword [rbx], 0xffffffffffffffff
jmp 0x69d58242
cmp qword [rbx], 0
jle 0x69d58242
lea rcx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x69d58242
mov rax, qword [rbx]
mov r8d, 0x3e8
cqo
idiv r8
mov rcx, rax
mov rax, qword [rsp + 0x28]
cqo
idiv rcx
jmp 0x69d5824a
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov eax, eax
add rsp, 0x30
pop rbx
ret

Function at 0x69d588ef
Capabilities:
Allocate thread local storage

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x69e01048], eax
inc eax
jne 0x69d58909
call sub.msvcrt.dll_abort
nop
add rsp, 0x28
ret

Function at 0x69d58d21
Capabilities:
Print debug messages

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x90
mov rbx, rcx
test rcx, rcx
je 0x69d58dc1
call fcn.69d5880a
dec eax
jne 0x69d58dba
xor eax, eax
lea rdi, [rsp + 0x25]
mov ecx, 0xa
lea rsi, str.Error_cleaning_up_spin_keys_for_thread
lea rbx, [rsp + 0x25]
rep movsd dword [rdi], dword [rsi]
lea rdi, [rsp + 0x4d]
mov ecx, 0x43
rep stosb byte [rdi], al
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea rdx, [rbx + 0x27]
mov r8d, 0xa
mov ecx, eax
call qword [sym.imp.msvcrt.dll__ultoa]
mov edx, 0x27
cmp byte [rbx + rdx], 0
mov eax, edx
je 0x69d58d96
inc rdx
cmp rdx, 0x6b
jne 0x69d58d83
jmp 0x69d58dac
cmp edx, 0x6a
je 0x69d58dac
inc eax
movsxd rdx, edx
cdqe
mov byte [rsp + rdx + 0x25], 0xa
mov byte [rsp + rax + 0x25], 0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call sub.msvcrt.dll_abort
mov qword [rbx], 0xffffffffffffffff
add rsp, 0x90
pop rbx
pop rsi
pop rdi
ret
Function at 0x69d58e82
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
cmp dword [0x69e33470], 1
je 0x69d58e97
call fcn.69d58df5
mov ecx, dword [0x69e01048]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, rax
test rax, rax
jne 0x69d58fa3
call fcn.69d58c77
cmp qword [0x69e38040], 0
mov rbx, rax
je 0x69d58fa3
test rax, rax
je 0x69d58fa3
mov dword [rax + 0x44], 1
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor r9d, r9d
xor r8d, r8d
mov edx, 1
xor ecx, ecx
mov dword [rbx + 0x70], eax
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [rbx + 0x38], 0xffffffffffffffff
lea rcx, [rbx + 0x68]
mov qword [rbx + 0x30], rax
call fcn.69d58d21
mov rsi, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [rbx + 0xb8], 0
mov qword [rbx + 0x28], 0
call rsi
mov qword [rsp + 0x48], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rdi, rax
call rsi
lea r9, [rbx + 0x28]
mov r8, qword [rsp + 0x48]
mov rdx, rdi
mov dword [rsp + 0x30], 2
mov rcx, rax
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
jne 0x69d58f67
call sub.msvcrt.dll_abort
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov rdx, rbx
mov ecx, dword [0x69e01048]
mov dword [rbx + 0xbc], 0
mov dword [rbx + 0xc0], eax
mov al, byte [rbx + 0x40]
and eax, 0xffffffcf
or eax, 0x10
mov byte [rbx + 0x40], al
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x69d58f62
mov rsi, rbx
mov rax, rsi
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret

Function at 0x69d599e8
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rsi, rcx
call fcn.69d58e82
mov qword [rax + 8], rsi
mov rcx, qword [rax + 0x1d8]
mov rbx, rax
call fcn.69d594ac
test byte [rbx + 0x40], 0x30
jne 0x69d59a21
lea rcx, [rbx + 0xd0]
mov edx, 1
call qword [sym.imp.msvcrt.dll_longjmp]
mov ecx, dword [0x69e01048]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x69d59ab2
cmp qword [rax + 0x28], 0
mov rcx, qword [rax + 0x30]
jne 0x69d59a5e
mov dword [rax], 0xdeadbeef
test rcx, rcx
je 0x69d59a51
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x30], 0
mov esi, dword [rbx + 8]
jmp 0x69d59a9c
mov dword [rax + 0xbc], 1
mov esi, dword [rax + 8]
test rcx, rcx
je 0x69d59a76
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x30], 0
test byte [rbx + 0x44], 4
je 0x69d59ab2
mov dword [rbx], 0xdeadbeef
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x28], 0
mov rcx, rbx
call fcn.69d58a91
xor edx, edx
mov ecx, dword [0x69e01048]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, esi
call qword [sym.imp.msvcrt.dll__endthreadex]
nop
Function at 0x69d5b764
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
mov rax, qword [0x69e33a48]
xor ebx, ebx
add rax, 0x18
mov rbp, rcx
mov ecx, dword [0x69e33a44]
mov rsi, rdx
mov rdi, r8
cmp ebx, ecx
jge 0x69d5b7b2
mov rdx, qword [rax]
cmp rbp, rdx
jb 0x69d5b7aa
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbp, rdx
jb 0x69d5b892
inc ebx
add rax, 0x28
jmp 0x69d5b78a
mov rcx, rbp
call fcn.69d5c154
mov r12, rax
test rax, rax
jne 0x69d5b7d1
mov rdx, rbp
lea rcx, str.Address__p_has_no_image_section
call fcn.69d5b700
movsxd rbx, ebx
mov rax, qword [0x69e33a48]
imul rbx, rbx, 0x28
add rax, rbx
mov qword [rax + 0x20], r12
mov dword [rax], 0
call fcn.69d5c20b
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x69e33a48]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x69d5b838
mov rax, qword [0x69e33a48]
mov edx, dword [r12 + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.69d5b700
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x69d5b88c
sub eax, 4
and eax, 0xfffffffb
je 0x69d5b88c
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
add rbx, qword [0x69e33a48]
mov r9, rbx
mov qword [rbx + 8], rcx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x69d5b88c
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.69d5b700
inc dword [0x69e33a44]
mov ecx, edi
mov rdi, rbp
rep movsb byte [rdi], byte [rsi]
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret

Function at 0x69d5be70
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x69e33d20]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x69e33d00]
test rbx, rbx
je 0x69d5beb8
mov ecx, dword [rbx]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x69d5beb2
test rsi, rsi
je 0x69d5beb2
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
jmp 0x69d5be8a
lea rcx, [0x69e33d20]
add rsp, 0x28
pop rbx
pop rsi
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x69d5c070
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x69d5c093
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
jne 0x69d5c093
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x69d5c094
Capabilities:
Enumerate pe sections

Disassembly:
xor r8d, r8d
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r9d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
cmp r9d, r8d
jbe 0x69d5c0ce
mov r10d, dword [rax + 0xc]
mov rcx, r10
cmp r10, rdx
ja 0x69d5c0c5
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x69d5c0d0
inc r8d
add rax, 0x28
jmp 0x69d5c0ac
xor eax, eax
ret
Function at 0x69d5c154
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, rcx
mov rcx, qword [0x69e0a2f0]
call fcn.69d5c070
test eax, eax
je 0x69d5c181
mov rcx, qword [0x69e0a2f0]
mov rdx, r8
sub rdx, rcx
add rsp, 0x28
jmp fcn.69d5c094
xor eax, eax
add rsp, 0x28
ret

Function at 0x69d69490
Capabilities:
Decode data using base64 via dword translation table

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x18
mov r12, rcx
test r9, r9
je 0x69d6961b
lea rbp, [r8 + r9]
mov rax, r8
mov rsi, rdx
xor ecx, ecx
xor r11d, r11d
lea rdi, [0x69e14380]
nop
movzx r10d, byte [rax]
cmp r10b, 0x3d
je 0x69d694fb
movzx r10d, byte [rdi + r10]
cmp r10b, 0xff
je 0x69d694fb
movsxd rbx, r11d
add r11d, 1
add rax, 1
mov byte [rsp + rbx + 0xc], r10b
cmp r11d, 4
je 0x69d69538
cmp rax, rbp
jne 0x69d694c0
test cl, cl
je 0x69d695a0
mov rax, rbp
sub rax, r8
mov r9, rax
mov rax, rsi
sub rax, rdx
test r11d, r11d
jne 0x69d695a0
movq xmm0, rax
movq xmm1, r9
mov rax, r12
punpcklqdq xmm0, xmm1
movups xmmword [r12], xmm0
add rsp, 0x18
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
movzx ecx, byte [rsp + 0xd]
movzx r10d, byte [rsp + 0xe]
mov ebx, ecx
mov r11d, r10d
sar r10d, 2
sar ebx, 4
shl ecx, 4
and r10d, 0xf
mov r13d, ebx
movzx ebx, byte [rsp + 0xc]
add r10d, ecx
shl r11d, 6
and r13d, 3
add r11b, byte [rsp + 0xf]
lea rcx, [rsi + 3]
mov byte [rsi + 1], r10b
lea ebx, [r13 + rbx*4]
mov byte [rsi + 2], r11b
mov byte [rsi], bl
mov rsi, rcx
cmp rax, rbp
je 0x69d69613
mov ecx, 1
xor r11d, r11d
jmp 0x69d694c0
movzx r8d, byte [rsp + 0xd]
movzx ecx, byte [rsp + 0xc]
mov eax, r8d
shl r8d, 4
sar eax, 4
and eax, 3
lea r10d, [rax + rcx*4]
movzx eax, byte [rsp + 0xe]
mov ecx, eax
shl eax, 6
add al, byte [rsp + 0xf]
sar ecx, 2
and ecx, 0xf
add ecx, r8d
mov r8d, r11d
sub r8d, 1
je 0x69d69608
mov byte [rsi], r10b
cmp r8d, 1
je 0x69d695f1
mov byte [rsi + 1], cl
cmp r8d, 2
je 0x69d695f1
mov byte [rsi + 2], al
lea eax, [r11 - 2]
lea rax, [rsi + rax + 1]
sub rax, rdx
jmp 0x69d69510
mov rax, rsi
sub rax, rdx
jmp 0x69d69510
xor r11d, r11d
jmp 0x69d694f8
xor eax, eax
jmp 0x69d69510
Function at 0x69dc5fc0
Capabilities:
Read file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbp, qword [sym.imp.msvcrt.dll__errno]
mov rdi, rcx
mov rsi, rdx
mov ebx, r8d
jmp 0x69dc5fe7
call rbp
cmp dword [rax], 4
jne 0x69dc6004
mov rcx, rdi
call fcn.69dc5dc0
mov r8d, ebx
mov rdx, rsi
mov ecx, eax
call sub.msvcrt.dll__read
movsxd r12, eax
cmp eax, 0xffffffff
je 0x69dc5fe0
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
Function at 0x140001130
Capabilities:
Log keystrokes via application hook

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x50], rax
xor r9d, r9d
lea rdx, [0x140001070]
xor r8d, r8d
lea ecx, [r9 + 0xd]
call qword [sym.imp.USER32.dll_SetWindowsHookExW]
xor r9d, r9d
lea rcx, [rsp + 0x20]
xor r8d, r8d
xor edx, edx
mov rbx, rax
call qword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
jne 0x1400011ad
nop word [rax + rax]
lea rcx, [rsp + 0x20]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rsp + 0x20]
call qword [sym.imp.USER32.dll_DispatchMessageW]
xor r9d, r9d
lea rcx, [rsp + 0x20]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
je 0x140001180
mov rcx, rbx
call qword [sym.imp.USER32.dll_UnhookWindowsHookEx]
xor eax, eax
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1400011e0
add rsp, 0x60
pop rbx
ret

Function at 0x140001bc0
Capabilities:
Parse pe header

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

Function at 0x140008bd8
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1400089d4
Function at 0x14000df54
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 0x14000df84
xor eax, eax
jmp 0x14000e047
mov rbp, rbx
cmp word [rax], si
je 0x14000dfa9
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14000df90
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14000df8c
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.14000de74
movsxd r14, eax
test eax, eax
jne 0x14000dfe7
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14000df7d
mov rcx, r14
call fcn.14000a6cc
mov rdi, rax
test rax, rax
jne 0x14000e000
xor ecx, ecx
call fcn.140009a54
jmp 0x14000dfdc
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.14000de74
test eax, eax
jne 0x14000e031
mov rcx, rdi
call fcn.140009a54
jmp 0x14000e03b
xor ecx, ecx
call fcn.140009a54
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 0x140012468
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14001247e
mov al, 1
jmp 0x1400124de
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14001248f
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1400124dc
mov ecx, dword [rcx + 0x18]
nop
call fcn.14000e874
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400124dc
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1400124dc
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1400124dc
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1400124de
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x1400135e0
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.14000cf44
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14001366a
cmp byte [rbp - 0x21], r15b
je 0x140013665
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x1400136a0
call fcn.140009ca4
test eax, eax
jne 0x14001368c
cmp byte [rbp - 0x21], r15b
je 0x140013684
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x1400136a0
cmp byte [rbp - 0x21], r15b
je 0x14001369d
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.14000c524
test eax, eax
jne 0x140013740
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14000cf44
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1400136df
cmp byte [rbp - 0x21], r15b
je 0x140013714
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140013714
call fcn.140009ca4
test eax, eax
jne 0x140013700
cmp byte [rbp - 0x21], r15b
je 0x1400136f9
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140013714
cmp byte [rbp - 0x21], r15b
je 0x140013711
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.14000c524
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140013740
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x140013743
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140013751
mov rcx, rdi
call fcn.140009a54
cmp byte [rbp + 0x3f], r15b
je 0x140013760
mov rcx, qword [rbp + 0x27]
call fcn.140009a54
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 0x140015cd0
Capabilities:
Parse pe header

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

Disassembly:
call fcn.140b721df
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 0x140b72089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140b7206f
add dl, dl
jne 0x140b72096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140b720f6
xor eax, eax
add dl, dl
jne 0x140b720a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140b721ad
add dl, dl
jne 0x140b720b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140b720c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140b720d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140b720dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140b720ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140b7207e
mov eax, 1
add dl, dl
jne 0x140b72106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140b72113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140b720fb
sub eax, ebx
mov ebx, 1
jne 0x140b7214c
mov ecx, 1
add dl, dl
jne 0x140b7212e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140b7213b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140b72123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140b7207e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140b72168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140b72175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140b7215d
cmp eax, 0x7d00
jae 0x140b7219b
cmp eax, 0x500
jb 0x140b72196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140b7207e
cmp eax, 0x7f
ja 0x140b7219e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140b7207e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140b721d2
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 0x140b7207e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20