joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140052864
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, [0x1400a61f0]
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 0x1400528bb
cmp word [rdx], r13w
jne 0x1400528bb
or byte [rax + rdi*8 + 0x38], cl
jmp 0x1400528c0
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x1400529e5
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x140052a06
lea r9, [rdx + 2]
cmp cx, r11w
je 0x1400528f9
mov rdx, r9
mov word [rbx], cx
jmp 0x140052920
cmp r9, r8
jae 0x140052930
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 0x1400528da
jmp 0x1400529e5
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 0x1400529da
cmp dword [rsp + 0x80], esi
je 0x1400529da
lea r8, [0x1400a61f0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x1400529b2
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x140052982
mov word [rbx], r13w
jmp 0x1400529e2
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 0x14005298f
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x1400529e2
cmp word [rsp + 0x70], r13w
jne 0x1400529bf
cmp rbx, r14
je 0x14005297c
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.1400534cc
cmp word [rsp + 0x70], r13w
je 0x1400529e5
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, [0x1400a61f0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x1400529df
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x1400529e5
Function at 0x140056b38
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 0x140056b68
xor eax, eax
jmp 0x140056c2b
mov rbp, rbx
cmp word [rax], si
je 0x140056b8d
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140056b74
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140056b70
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.140055750
movsxd r14, eax
test eax, eax
jne 0x140056bcb
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140056b61
mov rcx, r14
call fcn.14004e4f4
mov rdi, rax
test rax, rax
jne 0x140056be4
xor ecx, ecx
call fcn.14004cce4
jmp 0x140056bc0
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.140055750
test eax, eax
jne 0x140056c15
mov rcx, rdi
call fcn.14004cce4
jmp 0x140056c1f
xor ecx, ecx
call fcn.14004cce4
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 0x140056c48
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 0x140056ccf
mov rsi, rbx
cmp word [rax], bp
je 0x140056c8e
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140056c78
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140056c74
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14004e4f4
mov rdi, rax
test rax, rax
je 0x140056cbc
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1400602d0
mov rbp, rdi
xor ecx, ecx
call fcn.14004cce4
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 0x14005a298
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.14004e0a8
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 0x14005a339
cmp ebx, dword [rsp + 0x30]
je 0x14005a332
test esi, esi
je 0x14005a332
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x14005a30d
sub r8w, 0x61
cmp r8w, 0x19
ja 0x14005a31a
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x14005a2f7
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x14005a31e
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x14005a33b
mov eax, 1
jmp 0x14005a33b
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14005e148
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.14003d0e0
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14005e1d2
cmp byte [rbp - 0x21], r15b
je 0x14005e1cd
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14005e208
call fcn.14004d040
test eax, eax
jne 0x14005e1f4
cmp byte [rbp - 0x21], r15b
je 0x14005e1ec
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14005e208
cmp byte [rbp - 0x21], r15b
je 0x14005e205
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.1400495b4
test eax, eax
jne 0x14005e2a8
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14003d0e0
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14005e247
cmp byte [rbp - 0x21], r15b
je 0x14005e27c
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14005e27c
call fcn.14004d040
test eax, eax
jne 0x14005e268
cmp byte [rbp - 0x21], r15b
je 0x14005e261
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14005e27c
cmp byte [rbp - 0x21], r15b
je 0x14005e279
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.1400495b4
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14005e2a8
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14005e2ab
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14005e2b9
mov rcx, rdi
call fcn.14004cce4
cmp byte [rbp + 0x3f], r15b
je 0x14005e2c8
mov rcx, qword [rbp + 0x27]
call fcn.14004cce4
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 0x14005f4fc
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.1400534cc
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.1400534cc
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x14005f64c
cmp rax, 0xffffffffffffffff
je 0x14005f64c
xor edi, edi
test rbp, rbp
jle 0x14005f5f7
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14004cc6c
mov rbx, rax
test rax, rax
jne 0x14005f584
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x14005f5ed
mov edx, 0x8000
mov ecx, r14d
call fcn.14004b050
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.140050b94
cmp eax, 0xffffffff
je 0x14005f5cd
cdqe
sub rbp, rax
test rbp, rbp
jg 0x14005f594
mov edx, r15d
mov ecx, r14d
call fcn.14004b050
jmp 0x14005f5ed
cmp byte [rsi + 0x38], dil
je 0x14005f5e4
cmp dword [rsi + 0x34], 5
jne 0x14005f5e4
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x14005f5ed
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14004cce4
jmp 0x14005f660
jns 0x14005f660
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.1400534cc
cmp rax, 0xffffffffffffffff
jne 0x14005f618
cmp byte [rsi + 0x30], dil
je 0x14005f660
mov edi, dword [rsi + 0x2c]
jmp 0x14005f660
mov ecx, r14d
call fcn.140057d44
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x14005f660
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 0x14005f660
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x14005f659
mov eax, dword [rsi + 0x2c]
jmp 0x14005f65e
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.1400534cc
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 0x14005fe80
Capabilities:
Parse pe header

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

Disassembly:
call fcn.14084909f
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 0x140848f49
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140848f2f
add dl, dl
jne 0x140848f56
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140848fb6
xor eax, eax
add dl, dl
jne 0x140848f65
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14084906d
add dl, dl
jne 0x140848f76
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140848f83
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140848f90
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140848f9d
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140848faa
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140848f3e
mov eax, 1
add dl, dl
jne 0x140848fc6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140848fd3
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140848fbb
sub eax, ebx
mov ebx, 1
jne 0x14084900c
mov ecx, 1
add dl, dl
jne 0x140848fee
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140848ffb
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140848fe3
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140848f3e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140849028
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140849035
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14084901d
cmp eax, 0x7d00
jae 0x14084905b
cmp eax, 0x500
jb 0x140849056
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140848f3e
cmp eax, 0x7f
ja 0x14084905e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140848f3e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140849092
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 0x140848f3e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140015400
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
mov r11, rsp
push rdi
push r12
push r14
sub rsp, 0x120
xor r14d, r14d
mov eax, 0x5a4d
mov r12, rdx
mov rdi, rcx
cmp word [rcx], ax
jne 0x14001557b
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
cmp dword [rax], 0x4550
jne 0x14001557b
movups xmm0, xmmword [rax + 0x18]
lea rcx, [rsp + 0x20]
movups xmm1, xmmword [rax + 0x28]
movups xmmword [rcx], xmm0
movups xmm0, xmmword [rax + 0x38]
movups xmmword [rcx + 0x10], xmm1
movups xmm1, xmmword [rax + 0x48]
movups xmmword [rcx + 0x20], xmm0
movups xmm0, xmmword [rax + 0x58]
movups xmmword [rcx + 0x30], xmm1
movups xmm1, xmmword [rax + 0x68]
movups xmmword [rcx + 0x40], xmm0
movups xmm0, xmmword [rax + 0x78]
movups xmmword [rcx + 0x50], xmm1
movups xmmword [rcx + 0x60], xmm0
lea rcx, [rcx + 0x80]
movups xmm0, xmmword [rax + 0x88]
sub rax, 0xffffffffffffff68
movups xmmword [rcx - 0x10], xmm0
movups xmm1, xmmword [rax]
movups xmm0, xmmword [rax + 0x10]
movups xmmword [rcx], xmm1
movups xmm1, xmmword [rax + 0x20]
movups xmmword [rcx + 0x10], xmm0
movups xmm0, xmmword [rax + 0x30]
movups xmmword [rcx + 0x20], xmm1
movups xmm1, xmmword [rax + 0x40]
movups xmmword [rcx + 0x30], xmm0
movups xmm0, xmmword [rax + 0x50]
movups xmmword [rcx + 0x40], xmm1
movups xmm1, xmmword [rax + 0x60]
movups xmmword [rcx + 0x50], xmm0
movups xmmword [rcx + 0x60], xmm1
mov eax, dword [r11 - 0xa8]
test eax, eax
je 0x14001557b
mov qword [r11 + 0x10], rbx
mov ebx, r14d
mov qword [r11 + 0x20], rsi
lea rsi, [rdi + rax]
mov eax, dword [rdi + rax + 0x24]
mov qword [r11 - 0x20], r13
add rax, rdi
mov r13d, dword [rsi + 0x1c]
mov qword [r11 - 0x28], r15
add r13, rdi
mov r15d, dword [rsi + 0x20]
add r15, rdi
mov qword [rsp + 0x140], rax
cmp dword [rsi + 0x18], ebx
jbe 0x14001554b
mov qword [r11 + 0x18], rbp
nop
mov ebp, ebx
mov rdx, r12
mov ecx, dword [r15 + rbp*4]
add rcx, rdi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
je 0x14001552f
inc ebx
cmp ebx, dword [rsi + 0x18]
jb 0x140015510
jmp 0x140015543
mov rax, qword [rsp + 0x140]
movzx eax, word [rax + rbp*2]
mov r14d, dword [r13 + rax*4]
add r14, rdi
mov rbp, qword [rsp + 0x150]
mov r15, qword [rsp + 0x110]
mov rax, r14
mov r13, qword [rsp + 0x118]
mov rsi, qword [rsp + 0x158]
mov rbx, qword [rsp + 0x148]
add rsp, 0x120
pop r14
pop r12
pop rdi
ret
xor eax, eax
add rsp, 0x120
pop r14
pop r12
pop rdi
ret

Function at 0x14002451c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140024566
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140024566
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140024566
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140024566
cmp dword [rcx + 0x84], 0xe
jbe 0x140024566
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140024568
xor al, al
add rsp, 0x28
ret
Function at 0x1410f4058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1410f41df
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 0x1410f4089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1410f406f
add dl, dl
jne 0x1410f4096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1410f40f6
xor eax, eax
add dl, dl
jne 0x1410f40a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1410f41ad
add dl, dl
jne 0x1410f40b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1410f40c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1410f40d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1410f40dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1410f40ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1410f407e
mov eax, 1
add dl, dl
jne 0x1410f4106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1410f4113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1410f40fb
sub eax, ebx
mov ebx, 1
jne 0x1410f414c
mov ecx, 1
add dl, dl
jne 0x1410f412e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1410f413b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1410f4123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1410f407e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1410f4168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1410f4175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1410f415d
cmp eax, 0x7d00
jae 0x1410f419b
cmp eax, 0x500
jb 0x1410f4196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1410f407e
cmp eax, 0x7f
ja 0x1410f419e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1410f407e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1410f41d2
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 0x1410f407e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x1807a1058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1807a11df
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 0x1807a1089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1807a106f
add dl, dl
jne 0x1807a1096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1807a10f6
xor eax, eax
add dl, dl
jne 0x1807a10a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1807a11ad
add dl, dl
jne 0x1807a10b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1807a10c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1807a10d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1807a10dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1807a10ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1807a107e
mov eax, 1
add dl, dl
jne 0x1807a1106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1807a1113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1807a10fb
sub eax, ebx
mov ebx, 1
jne 0x1807a114c
mov ecx, 1
add dl, dl
jne 0x1807a112e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1807a113b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1807a1123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1807a107e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1807a1168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1807a1175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1807a115d
cmp eax, 0x7d00
jae 0x1807a119b
cmp eax, 0x500
jb 0x1807a1196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1807a107e
cmp eax, 0x7f
ja 0x1807a119e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1807a107e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1807a11d2
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 0x1807a107e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140006d70
Capabilities:
Parse pe header

Disassembly:
test rcx, rcx
je 0x140006da0
mov eax, 0
cmp word [rcx], 0x5a4d
jne 0x140006d9f
mov eax, dword [rcx + 0x3c]
cmp eax, 0x400
jg 0x140006da5
cdqe
add rax, rcx
cmp dword [rax], 0x4550
mov edx, 0
cmovne rax, rdx
ret
mov rax, rcx
jmp 0x140006d9f
mov eax, 0
jmp 0x140006d9f

Function at 0x140007420
Capabilities:
Execute syscall

Disassembly:
pop rax
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
mov rcx, r10
call fcn.1400073d0
add rsp, 0x28
mov rcx, qword [rsp + 8]
mov rdx, qword [rsp + 0x10]
mov r8, qword [rsp + 0x18]
mov r9, qword [rsp + 0x20]
mov r10, rcx
syscall
ret

Function at 0x140010a30
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.140019570
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.140019570
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]
Function at 0x140010aa0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1409c7e34]
test esi, esi
mov rdi, rcx
mov rbp, rdx
mov rbx, r8
jle 0x140010c30
mov rax, qword [0x1409c7e38]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rdi, rdx
jb 0x140010aec
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rdi, rdx
jb 0x140010b75
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x140010ad0
mov rcx, rdi
call fcn.140011600
test rax, rax
mov r12, rax
je 0x140010c82
mov rax, qword [0x1409c7e38]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call fcn.140011740
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x1409c7e38]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140010c65
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140010b6e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140010be0
add dword [0x1409c7e34], 1
cmp ebx, 8
jae 0x140010ba1
test bl, 4
jne 0x140010c40
test ebx, ebx
je 0x140010b96
movzx eax, byte [rbp]
test bl, 2
mov byte [rdi], al
jne 0x140010c54
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, ebx
sub ebx, 1
mov rdx, qword [rbp + rax - 8]
cmp ebx, 8
mov qword [rdi + rax - 8], rdx
jb 0x140010b96
and ebx, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, ebx
mov qword [rdi + rdx], rcx
jb 0x140010bba
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
cmp eax, 2
mov r8d, 4
mov eax, 0x40
mov rcx, qword [rsp + 0x20]
cmovne r8d, eax
mov rdx, qword [rsp + 0x38]
add rsi, qword [0x1409c7e38]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140010b6e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140010a30
xor esi, esi
jmp 0x140010af7
mov eax, dword [rbp]
mov ebx, ebx
mov dword [rdi], eax
mov eax, dword [rbp + rbx - 4]
mov dword [rdi + rbx - 4], eax
jmp 0x140010b96
mov ebx, ebx
movzx eax, word [rbp + rbx - 2]
mov word [rdi + rbx - 2], ax
jmp 0x140010b96
mov rax, qword [0x1409c7e38]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call fcn.140010a30
lea rcx, str.Address__p_has_no_image_section
mov rdx, rdi
call fcn.140010a30
nop
nop dword [rax]
nop word cs:[rax + rax]