joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14002d85c
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0x50
movaps xmmword [rax - 0x18], xmm6
mov rbp, r8
movaps xmmword [rax - 0x28], xmm7
xorps xmm7, xmm7
mov rsi, rdx
mov rbx, rcx
cmp rcx, 4
jb 0x14002d8f7
lea r9, [rcx - 1]
movabs rax, 0xaaaaaaaaaaaaaaab
mul r9
mov rdi, rdx
shr rdi, 1
imul rax, rdi, 0xfffffffffffffffd
add rbx, rax
mov rcx, rbp
call fcn.14002e5c8
movdqa xmm1, xmm7
mov rcx, rsi
pavgb xmm1, xmm0
xorps xmm0, xmm7
andps xmm0, xmmword [0x140117590]
movdqa xmm7, xmm1
psubb xmm7, xmm0
call fcn.14002e5c8
paddb xmm7, xmm0
lea rdx, [rsp + 0x20]
mov rcx, rsi
movdqa xmmword [rsp + 0x20], xmm7
call fcn.1400328e8
add rbp, 3
add rsi, 3
sub rdi, 1
jne 0x14002d8a8
test rbx, rbx
je 0x14002d939
mov rcx, rbp
call fcn.14002e5a0
movdqa xmm6, xmm7
mov rcx, rsi
pavgb xmm6, xmm0
xorps xmm0, xmm7
andps xmm0, xmmword [0x140117590]
psubb xmm6, xmm0
call fcn.14002e5a0
paddb xmm6, xmm0
lea rdx, [rsp + 0x20]
mov rcx, rsi
movdqa xmmword [rsp + 0x20], xmm6
call fcn.1400328e8
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
movaps xmm6, xmmword [rsp + 0x40]
movaps xmm7, xmmword [rsp + 0x30]
add rsp, 0x50
pop rdi
ret

Function at 0x14002d958
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
lea rbx, [rcx + 4]
movaps xmmword [rsp + 0x30], xmm6
mov rdi, r8
mov rsi, rdx
xorps xmm6, xmm6
cmp rbx, 4
jbe 0x14002d9d9
add rbx, 0xfffffffffffffffb
sub rdi, rdx
shr rbx, 2
inc rbx
lea rcx, [rdi + rsi]
call fcn.14002e5c8
movdqa xmm1, xmm6
mov rcx, rsi
pavgb xmm1, xmm0
xorps xmm0, xmm6
andps xmm0, xmmword [0x140117590]
movdqa xmm6, xmm1
psubb xmm6, xmm0
call fcn.14002e5c8
paddb xmm6, xmm0
lea rdx, [rsp + 0x20]
mov rcx, rsi
movdqa xmmword [rsp + 0x20], xmm6
call fcn.14003290c
add rsi, 4
sub rbx, 1
jne 0x14002d98d
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
movaps xmm6, xmmword [rsp + 0x30]
add rsp, 0x40
pop rdi
ret
Function at 0x14003a2c0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x68
mov rax, qword [0x1401538d8]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
add rax, 0x4ee0
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x80], 0
je 0x14003a340
mov rax, qword [rsp + 0x30]
cmp dword [rax + 0x14], 0xffffffff
je 0x14003a328
mov rax, qword [rsp + 0x30]
add rax, 0x18
mov rdx, rax
mov rcx, qword [rsp + 0x80]
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
jne 0x14003a328
mov dword [rsp + 0x38], 1
jmp 0x14003a330
mov dword [rsp + 0x38], 0
movzx eax, byte [rsp + 0x38]
test eax, eax
jne 0x14003a340
xor eax, eax
jmp 0x14003a4ee
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x28]
mov ecx, dword [rcx + 0x4f40]
cmp dword [rax + 0x4f50], ecx
jne 0x14003a35f
mov byte [rsp + 0x20], 1
jmp 0x14003a364
mov byte [rsp + 0x20], 0
movzx eax, byte [rsp + 0x20]
mov byte [rsp + 0x21], al
lea rax, [rsp + 0x48]
mov rcx, qword [rsp + 0x28]
mov rdi, rax
lea rsi, [rcx + 0x4f20]
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
movss xmm0, dword [rsp + 0x50]
subss xmm0, dword [rsp + 0x48]
movss dword [rsp + 0x44], xmm0
movss xmm0, dword [rsp + 0x54]
subss xmm0, dword [rsp + 0x4c]
movss xmm1, dword [rsp + 0x44]
mulss xmm1, xmm0
movaps xmm0, xmm1
movss dword [rsp + 0x3c], xmm0
mov rax, qword [rsp + 0x28]
movss xmm0, dword [rsp + 0x3c]
comiss xmm0, dword [rax + 0x4f48]
jbe 0x14003a3d4
xor eax, eax
jmp 0x14003a4ee
mov rax, qword [rsp + 0x28]
mov ecx, dword [rsp + 0x88]
mov dword [rax + 0x4f44], ecx
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x28]
mov ecx, dword [rcx + 0x4f40]
mov dword [rax + 0x4f4c], ecx
mov rax, qword [rsp + 0x28]
movss xmm0, dword [rsp + 0x3c]
movss dword [rax + 0x4f48], xmm0
mov rax, qword [rsp + 0x30]
movzx ecx, byte [rsp + 0x21]
mov byte [rax + 0x39], cl
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0x4ed4]
and eax, 0x800
mov ecx, dword [rsp + 0x88]
or ecx, eax
mov eax, ecx
mov dword [rsp + 0x88], eax
mov eax, dword [rsp + 0x88]
and eax, 0x800
test eax, eax
jne 0x14003a473
mov rax, qword [rsp + 0x30]
movzx eax, byte [rax + 0x39]
test eax, eax
je 0x14003a473
mov rax, qword [rsp + 0x28]
add rax, 0x4f30
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.14006e6a0
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x28]
mov ecx, dword [rcx + 0x40a0]
mov dword [rax + 0x4f54], ecx
movzx eax, byte [rsp + 0x21]
test eax, eax
je 0x14003a4b3
mov rax, qword [rsp + 0x28]
mov ecx, dword [rax + 0x4edc]
call fcn.1400625a0
movzx eax, al
test eax, eax
jne 0x14003a4b3
mov dword [rsp + 0x40], 1
jmp 0x14003a4bb
mov dword [rsp + 0x40], 0
mov rax, qword [rsp + 0x30]
movzx ecx, byte [rsp + 0x40]
mov byte [rax + 0x3a], cl
mov rax, qword [rsp + 0x30]
movzx eax, byte [rax + 0x3a]
test eax, eax
jne 0x14003a4e9
mov eax, dword [rsp + 0x88]
and eax, 0x400
test eax, eax
jne 0x14003a4e9
xor eax, eax
jmp 0x14003a4ee
mov rax, qword [rsp + 0x30]
add rsp, 0x68
pop rdi
pop rsi
ret
Function at 0x14005f000
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov r9, qword [rsp + 0x48]
mov r8, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x30]
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fread
add rsp, 0x28
ret

Function at 0x14005f040
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov r9, qword [rsp + 0x48]
mov r8, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x30]
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
add rsp, 0x28
ret

Function at 0x14005f720
Capabilities:
Hash data with crc32

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov eax, dword [rsp + 0x40]
not eax
mov dword [rsp], eax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 8], rax
lea rax, [0x1401178c0]
mov qword [rsp + 0x18], rax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x10], rax
mov rax, qword [rsp + 0x38]
dec rax
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x10], 0
je 0x14005f7ae
mov eax, dword [rsp]
shr eax, 8
mov ecx, dword [rsp]
and ecx, 0xff
mov rdx, qword [rsp + 8]
movzx edx, byte [rdx]
xor ecx, edx
mov ecx, ecx
mov rdx, qword [rsp + 0x18]
xor eax, dword [rdx + rcx*4]
mov dword [rsp + 4], eax
mov rax, qword [rsp + 8]
inc rax
mov qword [rsp + 8], rax
mov eax, dword [rsp + 4]
mov dword [rsp], eax
jmp 0x14005f752
mov eax, dword [rsp]
not eax
add rsp, 0x28
ret
Function at 0x14005f7c0
Capabilities:
Hash data with crc32

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov eax, dword [rsp + 0x40]
not eax
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0x40]
mov dword [rsp + 4], eax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 8], rax
lea rax, [0x1401178c0]
mov qword [rsp + 0x10], rax
cmp qword [rsp + 0x38], 0
je 0x14005f8c4
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x18], rax
mov rax, qword [rsp + 0x38]
dec rax
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x18], 0
je 0x14005f8bf
mov rax, qword [rsp + 8]
movzx eax, byte [rax]
mov byte [rsp + 2], al
mov rax, qword [rsp + 8]
inc rax
mov qword [rsp + 8], rax
movzx eax, byte [rsp + 2]
mov byte [rsp + 1], al
movzx eax, byte [rsp + 1]
cmp eax, 0x23
jne 0x14005f894
cmp qword [rsp + 0x38], 2
jb 0x14005f894
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 8]
movzx eax, byte [rcx + rax]
cmp eax, 0x23
jne 0x14005f894
mov eax, 1
imul rax, rax, 1
mov rcx, qword [rsp + 8]
movzx eax, byte [rcx + rax]
cmp eax, 0x23
jne 0x14005f894
mov eax, dword [rsp + 0x40]
mov dword [rsp + 4], eax
mov eax, dword [rsp + 4]
shr eax, 8
mov ecx, dword [rsp + 4]
and ecx, 0xff
movzx edx, byte [rsp + 1]
xor ecx, edx
mov ecx, ecx
mov rdx, qword [rsp + 0x10]
xor eax, dword [rdx + rcx*4]
mov dword [rsp + 4], eax
jmp 0x14005f807
jmp 0x14005f956
mov rax, qword [rsp + 8]
movzx eax, byte [rax]
mov byte [rsp + 3], al
mov rax, qword [rsp + 8]
inc rax
mov qword [rsp + 8], rax
movzx eax, byte [rsp + 3]
mov byte [rsp], al
movzx eax, byte [rsp]
test eax, eax
je 0x14005f956
movzx eax, byte [rsp]
cmp eax, 0x23
jne 0x14005f92c
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 8]
movzx eax, byte [rcx + rax]
cmp eax, 0x23
jne 0x14005f92c
mov eax, 1
imul rax, rax, 1
mov rcx, qword [rsp + 8]
movzx eax, byte [rcx + rax]
cmp eax, 0x23
jne 0x14005f92c
mov eax, dword [rsp + 0x40]
mov dword [rsp + 4], eax
mov eax, dword [rsp + 4]
shr eax, 8
mov ecx, dword [rsp + 4]
and ecx, 0xff
movzx edx, byte [rsp]
xor ecx, edx
mov ecx, ecx
mov rdx, qword [rsp + 0x10]
xor eax, dword [rdx + rcx*4]
mov dword [rsp + 4], eax
jmp 0x14005f8c4
mov eax, dword [rsp + 4]
not eax
add rsp, 0x28
ret
Function at 0x1400dd530
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov byte [rsp + 0x20], r9b
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x78
mov rax, qword [rsp + 0xa0]
movss xmm0, dword [rax + 4]
movss dword [rsp + 0x60], xmm0
mov rax, qword [rsp + 0xa0]
movss xmm0, dword [rax]
movss dword [rsp + 0x58], xmm0
mov rax, qword [rsp + 0x98]
movss xmm0, dword [rax + 4]
movss dword [rsp + 0x50], xmm0
mov rax, qword [rsp + 0x98]
movss xmm0, dword [rax]
movss dword [rsp + 0x48], xmm0
movss xmm0, dword [rsp + 0x48]
movss dword [rsp + 0x20], xmm0
movss xmm0, dword [rsp + 0x50]
movss dword [rsp + 0x24], xmm0
movss xmm0, dword [rsp + 0x58]
movss dword [rsp + 0x28], xmm0
movss xmm0, dword [rsp + 0x60]
movss dword [rsp + 0x2c], xmm0
movzx eax, byte [rsp + 0xa8]
test eax, eax
je 0x1400dd656
lea rax, [rsp + 0x38]
mov rcx, qword [rsp + 0x90]
mov rdi, rax
lea rsi, [rcx + 0x88]
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
movss xmm0, dword [rsp + 0x38]
comiss xmm0, dword [rsp + 0x20]
jbe 0x1400dd60b
movss xmm0, dword [rsp + 0x38]
movss dword [rsp + 0x20], xmm0
movss xmm0, dword [rsp + 0x3c]
comiss xmm0, dword [rsp + 0x24]
jbe 0x1400dd624
movss xmm0, dword [rsp + 0x3c]
movss dword [rsp + 0x24], xmm0
movss xmm0, dword [rsp + 0x28]
comiss xmm0, dword [rsp + 0x40]
jbe 0x1400dd63d
movss xmm0, dword [rsp + 0x40]
movss dword [rsp + 0x28], xmm0
movss xmm0, dword [rsp + 0x2c]
comiss xmm0, dword [rsp + 0x44]
jbe 0x1400dd656
movss xmm0, dword [rsp + 0x44]
movss dword [rsp + 0x2c], xmm0
movss xmm0, dword [rsp + 0x20]
comiss xmm0, dword [rsp + 0x28]
jb 0x1400dd671
movss xmm0, dword [rsp + 0x20]
movss dword [rsp + 0x30], xmm0
jmp 0x1400dd67d
movss xmm0, dword [rsp + 0x28]
movss dword [rsp + 0x30], xmm0
movss xmm0, dword [rsp + 0x30]
movss dword [rsp + 0x28], xmm0
movss xmm0, dword [rsp + 0x24]
comiss xmm0, dword [rsp + 0x2c]
jb 0x1400dd6a4
movss xmm0, dword [rsp + 0x24]
movss dword [rsp + 0x34], xmm0
jmp 0x1400dd6b0
movss xmm0, dword [rsp + 0x2c]
movss dword [rsp + 0x34], xmm0
movss xmm0, dword [rsp + 0x34]
movss dword [rsp + 0x2c], xmm0
mov rax, qword [rsp + 0x90]
add rax, 0x58
mov qword [rsp + 0x68], rax
lea rdx, [rsp + 0x20]
mov rcx, qword [rsp + 0x68]
call fcn.1400839c0
mov rax, qword [rsp + 0x90]
lea rcx, [rsp + 0x20]
lea rdi, [rax + 0x88]
mov rsi, rcx
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
mov rcx, qword [rsp + 0x90]
call fcn.1400e2a40
add rsp, 0x78
pop rdi
pop rsi
ret
Function at 0x1400f3ed0
Capabilities:
Register raw input devices

Disassembly:
mov rax, rsp
sub rsp, 0x38
and qword [rax - 0x10], 0
lea rcx, [rax - 0x18]
mov edx, 1
mov dword [rax - 0x18], 0x20001
mov dword [rax - 0x14], edx
lea r8d, [rdx + 0xf]
call qword [sym.imp.USER32.dll_RegisterRawInputDevices]
test eax, eax
jne 0x1400f3f0e
lea rdx, str.Win32:_Failed_to_remove_raw_input_device
mov ecx, 0x10008
call fcn.1400f7c70
add rsp, 0x38
ret

Function at 0x1400f3f60
Capabilities:
Register raw input devices

Disassembly:
sub rsp, 0x38
mov rax, qword [rcx + 0x358]
mov edx, 1
and dword [rsp + 0x24], 0
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x20001
mov qword [rsp + 0x28], rax
lea r8d, [rdx + 0xf]
call qword [sym.imp.USER32.dll_RegisterRawInputDevices]
test eax, eax
jne 0x1400f3fa6
lea rdx, str.Win32:_Failed_to_register_raw_input_device
mov ecx, 0x10008
call fcn.1400f7c70
add rsp, 0x38
ret

Function at 0x1400f4044
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov ecx, 0x10
call qword [sym.imp.USER32.dll_GetKeyState]
movzx ebx, ax
mov ecx, 0x11
shr ebx, 0xf
call qword [sym.imp.USER32.dll_GetKeyState]
mov edi, ebx
mov ecx, 0x12
or edi, 2
test ax, ax
cmovns edi, ebx
call qword [sym.imp.USER32.dll_GetKeyState]
mov esi, edi
mov ecx, 0x5c
or esi, 4
test ax, ax
cmovns esi, edi
call qword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x5b
movzx ebx, ax
call qword [sym.imp.USER32.dll_GetKeyState]
mov edi, esi
mov ecx, 0x14
or edi, 8
or bx, ax
cmovns edi, esi
call qword [sym.imp.USER32.dll_GetKeyState]
mov ebx, edi
mov ecx, 0x90
or ebx, 0x10
test al, 1
cmove ebx, edi
call qword [sym.imp.USER32.dll_GetKeyState]
mov rsi, qword [rsp + 0x38]
mov ecx, ebx
or ecx, 0x20
test al, 1
cmove ecx, ebx
mov rbx, qword [rsp + 0x30]
mov eax, ecx
add rsp, 0x20
pop rdi
ret

Function at 0x1400f7520
Capabilities:
Allocate thread local storage

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [rbx + 4], eax
cmp eax, 0xffffffff
jne 0x1400f754c
lea rdx, str.Win32:_Failed_to_allocate_TLS_index
mov ecx, 0x10008
call fcn.1400efc94
xor eax, eax
jmp 0x1400f7553
mov eax, 1
mov dword [rbx], eax
add rsp, 0x20
pop rbx
ret
Function at 0x1400f7f88
Capabilities:
Log keystrokes

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r12
push rbp
push r14
push r15
lea rbp, [rax - 0xc8]
sub rsp, 0x1b0
mov rax, qword [0x140151388]
xor rax, rsp
mov qword [rbp + 0xa0], rax
xor edx, edx
lea rcx, [rbp - 0x60]
mov r8d, 0x100
call sub.VCRUNTIME140.dll_memset
xor edx, edx
lea rcx, [0x140155d82]
mov r8d, 0x6d1
call sub.VCRUNTIME140.dll_memset
lea rdi, [rsp + 0x40]
mov ebx, 0x20
sub rdi, 0x480
lea r15, [0x140155b08]
lea r12, [0x140155e22]
movsx esi, word [r15]
cmp esi, 0xffffffff
je 0x1400f812b
cmp ebx, 0x140
jb 0x1400f80a1
cmp ebx, 0x14e
ja 0x1400f80a1
mov dword [rsp + 0x40], 0x60
mov dword [rsp + 0x44], 0x61
mov dword [rsp + 0x48], 0x62
mov dword [rsp + 0x4c], 0x63
mov dword [rsp + 0x50], 0x64
mov dword [rsp + 0x54], 0x65
mov dword [rsp + 0x58], 0x66
mov dword [rsp + 0x5c], 0x67
mov dword [rsp + 0x60], 0x68
mov dword [rsp + 0x64], 0x69
mov dword [rsp + 0x68], 0x6e
mov dword [rsp + 0x6c], 0x6f
mov dword [rsp + 0x70], 0x6a
mov dword [rsp + 0x74], 0x6d
mov dword [rsp + 0x78], 0x6b
mov r14d, dword [rdi]
jmp 0x1400f80b1
mov edx, 1
mov ecx, esi
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
mov r14d, eax
and dword [rsp + 0x28], 0
lea r9, [rbp - 0x80]
lea r8, [rbp - 0x60]
mov dword [rsp + 0x20], 0x10
mov edx, esi
mov ecx, r14d
call qword [sym.imp.USER32.dll_ToUnicode]
cmp eax, 0xffffffff
jne 0x1400f80f6
and dword [rsp + 0x28], 0
lea r9, [rbp - 0x80]
lea r8, [rbp - 0x60]
mov dword [rsp + 0x20], 0x10
mov edx, esi
mov ecx, r14d
call qword [sym.imp.USER32.dll_ToUnicode]
cmp eax, 1
jl 0x1400f812b
and qword [rsp + 0x38], 0
lea r8, [rbp - 0x80]
and qword [rsp + 0x30], 0
mov r9d, 1
mov dword [rsp + 0x28], 5
xor edx, edx
mov ecx, 0xfde9
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
inc ebx
add r12, 5
add rdi, 4
add r15, 2
cmp ebx, 0x15c
jle 0x1400f8003
mov rcx, qword [rbp + 0xa0]
xor rcx, rsp
call fcn.14010ef70
lea r11, [rsp + 0x1b0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r12, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x1400fb9b0
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [0x140151388]
xor rax, rsp
mov qword [rsp + 0x38], rax
and qword [rsp + 0x30], 0
lea rax, str.libOSMesa.dll
cmp qword [0x140155600], 0
lea rcx, str.OSMesa.dll
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], rcx
je 0x1400fb9f7
mov eax, 1
jmp 0x1400fbb3a
xor ebx, ebx
mov rcx, rax
call sub.KERNEL32.dll_LoadLibraryA
mov qword [0x140155600], rax
mov rcx, rax
test rax, rax
jne 0x1400fba1d
mov rax, qword [rsp + rbx*8 + 0x28]
inc rbx
test rax, rax
jne 0x1400fb9f9
test rcx, rcx
jne 0x1400fba38
lea rdx, str.OSMesa:_Library_not_found
mov ecx, 0x10006
call fcn.1400efc94
jmp 0x1400fbb38
lea rdx, str.OSMesaCreateContextExt
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x140155600]
lea rdx, str.OSMesaCreateContextAttribs
mov qword [0x140155608], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x140155600]
lea rdx, str.OSMesaDestroyContext
mov qword [0x140155610], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x140155600]
lea rdx, str.OSMesaMakeCurrent
mov qword [0x140155618], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x140155600]
lea rdx, str.OSMesaGetColorBuffer
mov qword [0x140155620], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x140155600]
lea rdx, str.OSMesaGetDepthBuffer
mov qword [0x140155628], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x140155600]
lea rdx, str.OSMesaGetProcAddress
mov qword [0x140155630], rax
call sub.KERNEL32.dll_GetProcAddress
cmp qword [0x140155608], 0
mov qword [0x140155638], rax
je 0x1400fbb22
cmp qword [0x140155618], 0
je 0x1400fbb22
cmp qword [0x140155620], 0
je 0x1400fbb22
cmp qword [0x140155628], 0
je 0x1400fbb22
cmp qword [0x140155630], 0
je 0x1400fbb22
test rax, rax
jne 0x1400fb9ed
lea rdx, str.OSMesa:_Failed_to_load_required_entry_points
mov ecx, 0x10008
call fcn.1400efc94
call fcn.1400fbb50
xor eax, eax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14010ef70
add rsp, 0x40
pop rbx
ret
Function at 0x14010b8ec
Capabilities:
Encrypt data using rc4 prga

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
xor r10d, r10d
movzx r14d, cx
mov edi, r14d
mov r15, r9
shr edi, 8
mov rbp, r8
mov r12, rdx
mov esi, r14d
mov ebx, r10d
mov r11d, r10d
test r8, r8
je 0x14010b973
movzx eax, word [r12 + r11*2]
mov edx, eax
movzx ecx, al
shr edx, 8
add edx, ebx
cmp edi, ecx
jb 0x14010b973
jne 0x14010b969
movsxd rcx, ebx
movsxd r9, edx
cmp rcx, r9
jge 0x14010b969
mov eax, 0xff
movzx r8d, r14w
and r8w, ax
movzx eax, byte [rcx + r15]
cmp ax, r8w
je 0x14010b99c
inc rcx
cmp rcx, r9
jl 0x14010b956
inc r11
mov ebx, edx
cmp r11, rbp
jb 0x14010b929
mov cl, 1
cmp qword [rsp + 0x48], r10
jbe 0x14010b9b3
mov r8, qword [rsp + 0x40]
movzx eax, byte [r10 + r8]
test al, al
jns 0x14010b9a0
inc r10
and eax, 0x7f
shl eax, 8
movzx edx, byte [r10 + r8]
or edx, eax
jmp 0x14010b9a2
xor al, al
jmp 0x14010b9b5
mov edx, eax
sub esi, edx
js 0x14010b9b3
xor cl, 1
inc r10
cmp r10, qword [rsp + 0x48]
jb 0x14010b981
mov al, cl
mov rbx, qword [rsp + 0x20]
mov rbp, qword [rsp + 0x28]
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
pop r15
pop r14
pop r12
ret

Function at 0x14010c47c
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
lea rbx, [0x14013ff20]
mov r9d, ecx
not r9d
cmp r8, 4
jb 0x14010c4ce
mov r10, r8
shr r10, 2
imul rax, r10, 0xfffffffffffffffc
add r8, rax
xor r11d, r11d
movzx ecx, byte [r11 + rdx]
mov eax, r9d
xor rcx, rax
shr r9d, 8
movzx eax, cl
inc r11
xor r9d, dword [rbx + rax*4]
cmp r11, 4
jl 0x14010c4a5
add rdx, 4
sub r10, 1
jne 0x14010c4a2
test r8, r8
je 0x14010c4f0
movzx ecx, byte [rdx]
mov eax, r9d
xor rcx, rax
shr r9d, 8
movzx eax, cl
inc rdx
xor r9d, dword [rbx + rax*4]
sub r8, 1
jne 0x14010c4d3
mov rbx, qword [rsp + 8]
not r9d
mov eax, r9d
ret

Function at 0x14010dff0
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, rdx
lea r8, [rsp + 0x60]
mov ebx, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov r8d, ebx
mov ecx, 0x1300
neg eax
sbb r9d, r9d
and qword [rsp + 0x30], 0
and r9d, dword [rsp + 0x60]
xor edx, edx
and dword [rsp + 0x28], 0
mov dword [rsp + 0x60], r9d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x14010e074
mov r8, qword [rdi]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x140140cf0]
cmp byte [rcx + rax], 0
je 0x14010e074
dec r8
sub rdx, 1
jne 0x14010e05a
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x14010fd78
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14010fdc2
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14010fdc2
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14010fdc2
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14010fdc2
cmp dword [rcx + 0x84], 0xe
jbe 0x14010fdc2
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14010fdc4
xor al, al
add rsp, 0x28
ret
Function at 0x140004270
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov edi, r8d
mov rsi, rdx
mov rbp, rcx
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_LoadResource]
test rax, rax
je 0x1400042e5
mov rcx, rax
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x1400042e5
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_SizeofResource]
mov ecx, eax
add rcx, rbx
and edi, 0xf
jbe 0x1400042d5
nop
cmp rbx, rcx
jae 0x1400042e5
movzx eax, word [rbx]
lea rbx, [rbx + rax*2]
add rbx, 2
add edi, 0xffffffff
jne 0x1400042c0
cmp rbx, rcx
jae 0x1400042e5
cmp word [rbx], 0
je 0x1400042e5
mov rax, rbx
jmp 0x1400042e7
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret