joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140073320
Capabilities:
Access peb ldr_data
Encode data using xor
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov r13, rcx
cmp byte [rcx], 0
je 0x14007334c
mov byte [rcx], 0
mov r8d, dword [rcx + 0x10]
mov rdx, qword [rcx + 8]
call fcn.1400738a0
mov rax, qword [r13 + 0x18]
mov qword [rsp + 0x68], rax
test rax, rax
je 0x140073573
xor edi, edi
mov r14d, 0x8285aca5
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x10]
nop word [rax + rax]
movups xmm0, xmmword [rax + 0x58]
movd ecx, xmm0
sub cx, 8
test edi, edi
je 0x1400733e3
psrldq xmm0, 8
movq r9, xmm0
movzx ecx, cx
shr rcx, 1
lea r11, [r9 + rcx*2]
mov r10d, 0x811c9dc5
cmp r9, r11
je 0x1400733da
nop
movsx ecx, byte [r9]
mov edx, ecx
sub cl, 0x41
mov r8d, edx
or r8d, 0x20
cmp cl, 0x19
cmova r8d, edx
xor r8d, r10d
imul r10d, r8d, 0x1000193
add r9, 2
cmp r9, r11
jne 0x1400733b0
cmp r10d, edi
jne 0x14007355a
mov rbx, qword [rax + 0x30]
test rbx, rbx
je 0x140073562
movsxd rcx, dword [rbx + 0x3c]
mov rdx, qword [rcx + rbx + 0x88]
mov r12, rdx
shr r12, 0x20
mov esi, edx
add rsi, rbx
cmp rsi, rbx
je 0x14007355a
mov r11d, dword [rsi + 0x18]
test r11d, r11d
je 0x14007355a
mov r15d, dword [rsi + 0x20]
dec r11d
lea rcx, [rbx + r11*4]
mov r8d, dword [rcx + r15]
add r8, rbx
mov r10d, 0x811c9dc5
movzx r9d, byte [r8]
inc r8
test r9b, r9b
je 0x14007346d
movsx ecx, r9b
sub r9b, 0x41
mov edx, ecx
or edx, 0x20
cmp r9b, 0x19
cmova edx, ecx
xor edx, r10d
imul r10d, edx, 0x1000193
movzx r9d, byte [r8]
lea r8, [r8 + 1]
test r9b, r9b
jne 0x140073442
cmp r10d, r14d
je 0x14007347f
test r11d, r11d
jne 0x140073422
mov rax, qword [rax]
jmp 0x140073380
mov ecx, dword [rsi + 0x24]
add rcx, rbx
movzx edx, word [rcx + r11*2]
mov ecx, dword [rsi + 0x1c]
add rcx, rbx
mov eax, dword [rcx + rdx*4]
add rax, rbx
cmp rax, rsi
jbe 0x140073564
lea rcx, [r12 + rsi]
cmp rax, rcx
jae 0x140073564
mov edi, 0x811c9dc5
mov dword [rsp + 0x60], edi
mov r9d, edi
mov dword [rsp + 0x64], edi
movzx r8d, byte [rax]
cmp r8b, 0x2e
je 0x1400734fd
nop word [rax + rax]
movsx ecx, r8b
sub r8b, 0x41
mov edx, ecx
or edx, 0x20
cmp r8b, 0x19
cmova edx, ecx
xor edx, edi
imul edi, edx, 0x1000193
inc rax
movzx r8d, byte [rax]
cmp r8b, 0x2e
jne 0x1400734d0
mov dword [rsp + 0x60], edi
inc rax
movzx r8d, byte [rax]
test r8b, r8b
je 0x140073540
nop dword [rax]
movsx ecx, r8b
sub r8b, 0x41
mov edx, ecx
or edx, 0x20
cmp r8b, 0x19
cmova edx, ecx
xor edx, r9d
imul r9d, edx, 0x1000193
lea rax, [rax + 1]
movzx r8d, byte [rax]
test r8b, r8b
jne 0x140073510
mov dword [rsp + 0x64], r9d
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x10]
mov r14, qword [rsp + 0x60]
shr r14, 0x20
mov rax, qword [rax]
jmp 0x140073380
xor eax, eax
mov rcx, qword [rsp + 0x68]
call rax
mov qword [r13 + 0x18], 0
mov rbx, qword [rsp + 0x70]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140080918
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x140080952
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x140080957
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x1400809a0
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x1400bb570]
cmp byte [rcx + rax], 0
je 0x1400809a0
dec r8
sub rdx, 1
jne 0x140080986
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x140082a10
Capabilities:
Parse pe header

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

Function at 0x14008eb9c
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, edx
mov rbp, rcx
test r8, r8
jne 0x14008ebd3
call fcn.14008fe44
mov dword [rax], 0x16
call fcn.140087d44
xor eax, eax
jmp 0x14008ec61
mov rdx, r9
mov rcx, r8
call fcn.14008eb38
mov rbx, rax
test rax, rax
je 0x14008ec5e
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x14008ea64]
mov eax, dword [rsp + 0x60]
mov r9, rbx
mov rcx, rbp
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x14008ec4b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14008fdb8
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x14008ec32
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x14008ec41
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.140095f7c
jmp 0x14008ec5e
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14008ec5b
mov eax, dword [rsp + 0x50]
mov dword [rcx], eax
mov rdi, rdx
mov rax, rdi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x140092cec
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x140092d5b
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140092d5b
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140092d5b
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140092d5b
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140092d5b
cmp dword [rcx + 0x84], 0xe
jbe 0x140092d5b
cmp dword [rcx + 0xf8], 0
je 0x140092d5b
mov ecx, ebx
call fcn.140092e0c
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.140092be8
nop
cmp dword [rbp + 0x20], 0
je 0x140092da9
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140092db4
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x140092cec

Function at 0x140092ef0
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140092cec

Function at 0x140099684
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14009969a
mov al, 1
jmp 0x1400996fa
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1400996ab
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1400996f8
mov ecx, dword [rcx + 0x18]
nop
call fcn.14009ed90
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400996f8
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1400996f8
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1400996f8
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1400996fa
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x14009ae38
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.140082820
sub rsp, rax
mov rax, qword [0x1400d50c0]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.140097fc4
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14009ae87
mov rax, rbp
jmp 0x14009af8f
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, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x1c2a70]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14009bd84
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x1c2a70]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14009af8b
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14009af8b
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14009bd84
test rax, rax
js 0x14009af8b
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14009af8b
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14009af7d
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14009af7d
cmp byte [rcx], 0xd
jne 0x14009af63
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14009af72
cmp byte [rcx + 1], 0xa
jne 0x14009af72
inc rcx
jmp 0x14009af72
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0xd5500]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14009af45
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14009af8f
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140082520
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 0x14009b124
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, [0x1401c2a70]
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 0x14009b17b
cmp word [rdx], r13w
jne 0x14009b17b
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14009b180
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x14009b2a5
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14009b2c6
lea r9, [rdx + 2]
cmp cx, r11w
je 0x14009b1b9
mov rdx, r9
mov word [rbx], cx
jmp 0x14009b1e0
cmp r9, r8
jae 0x14009b1f0
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 0x14009b19a
jmp 0x14009b2a5
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 0x14009b29a
cmp dword [rsp + 0x80], esi
je 0x14009b29a
lea r8, [0x1401c2a70]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14009b272
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14009b242
mov word [rbx], r13w
jmp 0x14009b2a2
mov ecx, 0xd
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 0x14009b24f
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14009b2a2
cmp word [rsp + 0x70], r13w
jne 0x14009b27f
cmp rbx, r14
je 0x14009b23c
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.14009bd8c
cmp word [rsp + 0x70], r13w
je 0x14009b2a5
mov ecx, 0xd
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, [0x1401c2a70]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14009b29f
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x14009b2a5
Function at 0x14009e4b8
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 0x14009e53f
mov rsi, rbx
cmp word [rax], bp
je 0x14009e4fe
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14009e4e8
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14009e4e4
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140096d68
mov rdi, rax
test rax, rax
je 0x14009e52c
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1400a62b0
mov rbp, rdi
xor ecx, ecx
call fcn.140095f7c
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 0x1400a12e4
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.140095ba4
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 0x1400a1385
cmp ebx, dword [rsp + 0x30]
je 0x1400a137e
test esi, esi
je 0x1400a137e
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x1400a1359
sub r8w, 0x61
cmp r8w, 0x19
ja 0x1400a1366
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x1400a1343
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x1400a136a
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x1400a1387
mov eax, 1
jmp 0x1400a1387
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400a5600
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.14009bd8c
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14009bd8c
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1400a5750
cmp rax, 0xffffffffffffffff
je 0x1400a5750
xor edi, edi
test rbp, rbp
jle 0x1400a56fb
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.140095f04
mov rbx, rax
test rax, rax
jne 0x1400a5688
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1400a56f1
mov edx, 0x8000
mov ecx, r14d
call fcn.140093c48
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.14009a2ac
cmp eax, 0xffffffff
je 0x1400a56d1
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1400a5698
mov edx, r15d
mov ecx, r14d
call fcn.140093c48
jmp 0x1400a56f1
cmp byte [rsi + 0x38], dil
je 0x1400a56e8
cmp dword [rsi + 0x34], 5
jne 0x1400a56e8
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x1400a56f1
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.140095f7c
jmp 0x1400a5764
jns 0x1400a5764
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14009bd8c
cmp rax, 0xffffffffffffffff
jne 0x1400a571c
cmp byte [rsi + 0x30], dil
je 0x1400a5764
mov edi, dword [rsi + 0x2c]
jmp 0x1400a5764
mov ecx, r14d
call fcn.14009ed90
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1400a5764
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x1400a5764
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1400a575d
mov eax, dword [rsi + 0x2c]
jmp 0x1400a5762
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14009bd8c
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 0x1400a5ee0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400a5f08
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1400a5f08
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x1400b0d60
Capabilities:
Access peb ldr_data
Encode data using xor
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
mov rax, rsp
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rbp
push rsi
push rdi
push r12
push r13
push r15
sub rsp, 0xf0
mov edi, dword [rsp + 0x168]
mov rsi, rdx
movaps xmmword [rax - 0x38], xmm6
mov edx, edi
movaps xmmword [rax - 0x48], xmm7
mov ebp, r9d
movaps xmmword [rax - 0x58], xmm8
mov rbx, rcx
movaps xmmword [rax - 0x68], xmm9
mov qword [rax + 0x10], r14
mov r14d, r8d
lea r8, [rax + 8]
call fcn.1400aece0
movss xmm8, dword [rsp + 0x160]
xor r13d, r13d
mov r12d, eax
movss xmm9, dword [rsp + 0x158]
mov edx, edi
movss xmm6, dword [rsp + 0x150]
mov rcx, rbx
movss xmm7, dword [rsp + 0x148]
cmp dword [rbx + 0x44], r13d
je 0x1400b0e3a
xorps xmm0, xmm0
mov qword [rsp + 0x78], 1
xorps xmm1, xmm1
mov qword [rsp + 0xa0], r13
lea r8, [rsp + 0x78]
mov dword [rsp + 0xa8], r13d
movups xmmword [rsp + 0x80], xmm0
movdqu xmmword [rsp + 0x90], xmm1
call fcn.1400ada80
test eax, eax
mov r10d, r13d
mov edi, r13d
cmovne r10d, dword [rsp + 0x90]
cmovne edi, dword [rsp + 0x9c]
jmp 0x1400b0e82
call fcn.1400ac850
test eax, eax
js 0x1400b0ebd
mov r8, qword [rbx]
mov r11d, 0x100
movsxd r9, eax
movsx eax, r11w
movsx ecx, r11w
movzx edx, byte [r9 + r8 + 2]
imul edx, eax
movzx eax, byte [r9 + r8 + 3]
add dx, ax
movzx eax, byte [r9 + r8 + 9]
movsx r10d, dx
movzx edx, byte [r9 + r8 + 8]
imul edx, ecx
add dx, ax
movsx edi, dx
xorps xmm0, xmm0
cvtsi2ss xmm0, r10d
mulss xmm0, xmm7
addss xmm0, xmm9
call fcn.14000e260
cvttss2si ebx, xmm0
xorps xmm0, xmm0
cvtsi2ss xmm0, edi
call fcn.1400306f0
mulss xmm0, xmm6
addss xmm0, xmm8
call fcn.14000e260
cvttss2si r15d, xmm0
jmp 0x1400b0ec3
mov ebx, r13d
mov r15d, r13d
mov eax, dword [rsp + 0x140]
test r14d, r14d
mov qword [rsp + 0x70], rsi
mov rsi, qword [rsp + 0x120]
mov dword [rsp + 0x60], r14d
mov r14, qword [rsp + 0x128]
mov dword [rsp + 0x68], eax
mov dword [rsp + 0x64], ebp
je 0x1400b0fa2
test ebp, ebp
je 0x1400b0fa2
mov ecx, 0x3eb33333
call fcn.140030720
movaps xmm1, xmm6
mov dword [rsp + 0x140], r13d
minss xmm1, xmm7
mov qword [rsp + 0x120], r13
lea rax, [rsp + 0x140]
mov edx, r12d
lea r9, [rsp + 0x120]
mov qword [rsp + 0x20], rax
mov rcx, rsi
divss xmm0, xmm1
movaps xmm2, xmm0
call fcn.1400b0a10
mov rdi, rax
test rax, rax
je 0x1400b0fa2
mov r9d, dword [rsp + 0x140]
lea rcx, [rsp + 0x60]
mov r8, qword [rsp + 0x120]
mov rdx, rax
mov dword [rsp + 0x48], r15d
mov dword [rsp + 0x40], ebx
movss dword [rsp + 0x38], xmm8
movss dword [rsp + 0x30], xmm9
movss dword [rsp + 0x28], xmm6
movss dword [rsp + 0x20], xmm7
call fcn.1400affd0
mov rcx, qword [rsp + 0x120]
call fcn.14000da60
mov rcx, rdi
call fcn.14000da60
mov rcx, rsi
lea r11, [rsp + 0xf0]
mov rbx, qword [r11 + 0x40]
mov rbp, qword [r11 + 0x48]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
movaps xmm8, xmmword [r11 - 0x30]
movaps xmm9, xmmword [r11 - 0x40]
mov rsp, r11
pop r15
pop r13
pop r12
pop rdi
pop rsi
jmp fcn.14000da60
Function at 0x142d18058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.142d181df
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 0x142d18089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x142d1806f
add dl, dl
jne 0x142d18096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x142d180f6
xor eax, eax
add dl, dl
jne 0x142d180a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x142d181ad
add dl, dl
jne 0x142d180b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x142d180c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x142d180d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x142d180dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x142d180ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x142d1807e
mov eax, 1
add dl, dl
jne 0x142d18106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x142d18113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x142d180fb
sub eax, ebx
mov ebx, 1
jne 0x142d1814c
mov ecx, 1
add dl, dl
jne 0x142d1812e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x142d1813b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x142d18123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x142d1807e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x142d18168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x142d18175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x142d1815d
cmp eax, 0x7d00
jae 0x142d1819b
cmp eax, 0x500
jb 0x142d18196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x142d1807e
cmp eax, 0x7f
ja 0x142d1819e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x142d1807e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x142d181d2
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 0x142d1807e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140001050
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x88
xor eax, eax
mov r14, r8
mov rbx, rdx
mov qword [rsp + 0x50], rax
mov rdi, rcx
mov qword [rsp + 0x58], rax
lea rdx, str.1.3.1
mov qword [rsp + 0x60], rax
lea r8d, [rax + 0x58]
mov dword [rsp + 0x28], eax
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x20], rax
mov rsi, r9
mov ebp, eax
call fcn.14000ab10
mov r15d, eax
test eax, eax
je 0x1400010d3
lea rdx, [rbx + 0x12]
mov r8d, eax
lea rcx, str.Failed_to_extract__s:_inflateInit___failed_with_return_code__d__n
call fcn.140002000
lea eax, [rbp - 1]
add rsp, 0x88
pop r15
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov ecx, 0x2000
mov qword [rsp + 0x80], r13
call fcn.14001575c
mov r13, rax
test rax, rax
jne 0x140001109
lea r8, [rbx + 0x12]
lea rdx, str.Failed_to_extract__s:_failed_to_allocate_temporary_input_buffer__n
lea rcx, str.malloc
call fcn.140001fc0
jmp 0x140001264
mov ecx, 0x2000
call fcn.14001575c
mov rbp, rax
test rax, rax
jne 0x140001137
lea r8, [rbx + 0x12]
lea rdx, str.Failed_to_extract__s:_failed_to_allocate_temporary_output_buffer__n
lea rcx, str.malloc
call fcn.140001fc0
jmp 0x140001264
mov qword [rsp + 0xd0], r12
mov r15d, 0xffffffff
mov r12d, dword [rbx + 8]
nop dword [rax]
mov eax, 0x2000
mov rbx, r12
cmp r12, rax
mov r9, rdi
mov edx, 1
mov rcx, r13
cmova rbx, rax
mov r8, rbx
call fcn.14000ff6c
cmp rax, rbx
jne 0x14000125c
mov rcx, rdi
call fcn.14000fce0
test eax, eax
jne 0x14000125c
sub r12, rbx
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], r13
nop word [rax + rax]
mov ebx, 0x2000
mov qword [rsp + 0x30], rbp
xor edx, edx
mov dword [rsp + 0x38], ebx
lea rcx, [rsp + 0x20]
call fcn.140008f50
mov edi, eax
mov r15d, 0xffffffff
lea ecx, [rax + 4]
cmp ecx, 2
jbe 0x140001241
cmp eax, 2
je 0x14000123c
mov ecx, dword [rsp + 0x38]
sub rbx, rcx
test r14, r14
je 0x140001203
mov r9, r14
lea edx, [r15 + 2]
mov r8, rbx
mov rcx, rbp
call fcn.1400106ac
cmp rax, rbx
jne 0x1400011fe
mov rcx, r14
call fcn.14000fce0
test eax, eax
je 0x140001219
mov edi, r15d
jmp 0x140001241
test rsi, rsi
je 0x140001219
mov r8, rbx
mov rdx, rbp
mov rcx, rsi
call fcn.14002aec0
add rsi, rbx
cmp dword [rsp + 0x38], 0
je 0x1400011a0
cmp edi, 1
je 0x140001237
test r12, r12
je 0x140001241
mov rdi, qword [rsp + 0xc0]
jmp 0x140001150
xor r15d, r15d
jmp 0x14000125c
mov edi, 0xfffffffd
mov rdx, qword [rsp + 0xc8]
lea rcx, str.Failed_to_extract__s:_decompression_resulted_in_return_code__d__n
add rdx, 0x12
mov r8d, edi
call fcn.140002000
mov r12, qword [rsp + 0xd0]
lea rcx, [rsp + 0x20]
call fcn.14000a7f0
mov rcx, r13
call fcn.140015748
mov rcx, rbp
call fcn.140015748
mov r13, qword [rsp + 0x80]
mov eax, r15d
add rsp, 0x88
pop r15
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret