joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1404db414
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
cwde
movsx eax, r11w
mov qword [rsp + 0x18], rbp
nop
movzx ax, r10b
push rsi
movzx rax, r11w
push rdi
push r12
cwde
movzx eax, r14w
movsxd rax, eax
push r14
cmovne eax, eax
movsxd rax, ebx
push r15
mov eax, 0x1470
call fcn.140447851
sub rsp, rax
mov rax, qword [0x1400b7288]
or rbx, rbx
rol bh, 0xa9
sal r12w, cl
xor rax, rsp
xor r15b, dl
mov qword [rsp + 0x1460], rax
btr ax, bx
cdqe
movsxd r10, edx
cdqe
or di, 0x7b5
mov rbx, rcx
btr edx, r10d
bts r15d, edx
mov rax, r10
movzx r15w, bpl
rcl r12w, cl
sar r15b, 0x7d
mov r14d, r9d
dec edi
sar rax, 6
test r15w, sp
rol dil, cl
movsx edx, ax
lea rcx, [0x1400ba940]
and r10d, 0x3f
btc di, r15w
lea r14, [r14 + r8]
mov r15, r8
bt di, 8
rcr r12w, cl
mov rdi, r8
mov rax, qword [rcx + rax*8]
shl dl, 0x36
rol r12b, cl
test r12b, 0xdb
lea rdx, [r10 + r10*8]
mov r12, qword [rax + rdx*8 + 0x28]
xor eax, eax
test r11w, 0x58cd
cmp r9b, 0x39
mov qword [rbx], rax
cmc
clc
cmp r8, r14
mov dword [rbx + 8], eax
jmp 0x1404db504
jae 0x1404db6b8
lea rax, [rsp + 0x50]
cmp rdi, r14
jmp 0x1404db517
jae 0x1404db57e
movzx ecx, word [rdi]
add rdi, 2
test r9b, 0x8d
cmc
cmp cx, 0xa
jmp 0x1404db532
jne 0x1404db54d
mov edx, 0xd
jmp 0x1404db545
mov word [rax], dx
add rax, 2
cmc
mov word [rax], cx
or ch, 0xd
test sp, 0x66c0
jmp 0x1404db55d
add rax, 2
btc cx, 0xe4
lea rcx, [rsp + 0x6f8]
cmp al, 0x93
cmp rax, rcx
jmp 0x1404db578
jb 0x1404db50f
and qword [rsp + 0x38], 0
and cl, r10b
lea rcx, [rsp + 0x50]
btc r8w, r14w
and qword [rsp + 0x30], 0
ror r9, cl
lea r8, [rsp + 0x50]
sub rax, rcx
bt cx, r9w
mov dword [rsp + 0x28], 0xd55
sar r9w, 0xea
cmp r14, r15
btr r9w, 0xf2
lea rcx, [rsp + 0x700]
inc r9b
bts r9d, r10d
sar rax, 1
mov qword [rsp + 0x20], rcx
movzx r9w, r8b
cmc
mov r9d, eax
not rcx
inc cx
mov ecx, 0xfde9
test r11w, ax
cmp bpl, 0xcb
sub edx, edx
jmp 0x1404db5f7
call fcn.1404c8312
mov ebp, eax
cmp edi, 0x25947f41
test eax, eax
jmp 0x1404db60b
je 0x1404db6a4
sub esi, esi
test r11b, 0xbb
stc
test eax, eax
jmp 0x1404db61f
je 0x1404db683
and qword [rsp + 0x20], 0
bt rdx, r13
lea rdx, [rsp + 0x700]
mov ecx, esi
rcr r9w, 0x86
btr r9, 0xf8
add r9b, 0xd1
lea r9, [rsp + 0x40]
mov r8d, ebp
lea rdx, [rdx + rcx]
movsx ecx, r12w
mov rcx, r12
cmc
jmp 0x1404db660
sub r8d, esi
jmp 0x1404db668
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1404db6a4
add esi, dword [rsp + 0x40]
stc
cmp esi, ebp
jb 0x1404db625
mov eax, edi
sub eax, r15d
cmp rsp, rdi
mov dword [rbx + 4], eax
cmp si, r10w
jmp 0x1404db697
cmp rdi, r14
jmp 0x1404db69f
jmp 0x1404db504
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbx], eax
rcr ch, 0xde
btr ax, r13w
bsf rax, r15
mov rax, rbx
ror cl, cl
shr ch, 0xf4
mov rcx, qword [rsp + 0x1460]
cmp rdx, rsi
xor rcx, rsp
call fcn.14049e949
lea r11, [rsp + 0x1470]
movzx r14, sp
jmp 0x1404db6e4
mov rbx, qword [r11 + 0x30]
not bpl
cmova r15w, dx
movzx r12d, r9w
mov rbp, qword [r11 + 0x40]
jmp 0x1404db700
mov rsp, r11
not r14w
movsxd rdi, r8d
pop r15
movsxd r14, r13d
pop r14
mov r12b, bpl
setne sil
bswap rsi
pop r12
not di
mov sil, 0xc1
movzx edi, r10w
pop rdi
movzx si, bl
pop rsi
jmp 0x1404db732
ret
Function at 0x1404de730
Capabilities:
Execute anti-debugging instructions

Disassembly:
mov rax, rsp
push rbp
btr bp, 0xd6
bswap rbp
push rbx
xchg bpl, bl
movzx rbp, bp
mov bl, r11b
push rsi
test eax, r15d
rcl rsi, cl
push rdi
add dil, 0x13
adc rbp, r11
push r14
mov r14, r12
mov r14w, 0x3e9f
sub ebx, ecx
lea rbp, [rax - 0x37]
adc r14b, r12b
sal r14w, cl
bt r14w, r8w
sub rsp, 0xf0
shrd rbx, rax, 0xb1
movaps xmmword [rax - 0x38], xmm6
mov rax, qword [0x1400b7288]
bts si, r11w
movzx edi, r13w
ror r14w, cl
xor rax, rsp
movzx r14w, al
mov qword [rbp - 0x11], rax
movzx r14d, di
mov bx, 0x7ed3
mov si, r9w
mov esi, edx
mov dl, r8b
mov r14, rcx
mov edx, 0xffc0
movzx cx, ch
movsx edi, ax
mov ecx, 0x1f80
not dil
movsx edi, r9w
mov edi, r9d
movsx bx, ch
jmp 0x1404de7db
mov rbx, r8
jmp 0x1404de7e3
call fcn.1404d9a8b
mov ecx, dword [rbp + 0x5f]
mov dl, bpl
jmp 0x1404de7f6
mov qword [rsp + 0x48], rax
cqo
mov dword [rsp + 0x50], ebx
movzx dx, spl
cwd
movsx edx, bp
movss xmm0, dword [rsp + 0x50]
movsxd rdx, ebx
setnp dh
jmp 0x1404de81c
mov rdx, qword [rsp + 0x48]
jmp 0x1404de826
movss dword [rsp + 0x40], xmm0
jmp 0x1404de831
call fcn.1404de5b7
movss xmm6, dword [rbp + 0x77]
cmp r12, 0x24e79f9
jmp 0x1404de847
test eax, eax
jmp 0x1404de84e
jne 0x1404de8de
cmp dword [rbp + 0x7f], 2
jmp 0x1404de85d
jne 0x1404de889
mov eax, dword [rbp - 0x41]
cdq
and eax, 0xffffffe1
sar ecx, 0x5c
cdq
xor r9b, 0xe2
movss dword [rbp - 0x51], xmm6
bt edx, 0xcd
or eax, 1
movsx dx, ch
movsx r9d, cx
mov dword [rbp - 0x41], eax
mov r8d, dword [rbp + 0x5f]
cqo
not ecx
movsxd r9, r15d
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
rdtsc
not dh
mov r9b, 0xcc
lea rdx, [rsp + 0x48]
movzx eax, r11w
lea rax, [rbp + 0x6f]
movzx ecx, r12w
mov r9d, esi
not cl
movzx cx, r8b
movsx cx, r14b
lea rcx, [rsp + 0x60]
jmp 0x1404de8cf
mov qword [rsp + 0x20], rax
jmp 0x1404de8d9
call fcn.1404dc0a7
call fcn.14024a9d6
test al, al
jmp 0x1404de8ea
je 0x1404de95c
test edi, edi
jmp 0x1404de8f7
je 0x1404de95c
movss xmm0, dword [rsp + 0x40]
movsx ax, r12b
cdq
setne r8b
mov r8, r14
rdtsc
movss xmm3, dword [rbp + 0x6f]
not dl
mov ecx, edi
mov rax, qword [rsp + 0x48]
cqo
mov edx, dword [rbp + 0x67]
jmp 0x1404de92a
mov qword [rsp + 0x30], rax
jmp 0x1404de934
cvtps2pd xmm0, xmm0
cvtps2pd xmm1, xmm6
movsd qword [rsp + 0x28], xmm0
jmp 0x1404de945
cvtps2pd xmm3, xmm3
movsd qword [rsp + 0x20], xmm1
call fcn.1404de4fa
cvtsd2ss xmm0, xmm0
jmp 0x1404de987
mov ecx, edi
jmp 0x1404de963
call fcn.1404dbbc4
mov rcx, qword [rsp + 0x48]
cmovb dx, cx
cqo
movsx rdx, bp
mov edx, 0xffc0
call fcn.1404d9a8b
movss xmm0, dword [rsp + 0x40]
mov rcx, qword [rbp - 0x11]
test bh, 0xb6
test r11b, cl
stc
xor rcx, rsp
call fcn.14049e949
movaps xmm6, xmmword [rsp + 0xe0]
add rsp, 0xf0
mov bl, al
movsxd rsi, r14d
not r14b
pop r14
mov bpl, r9b
pop rdi
cmovne bp, bx
xchg rsi, rsi
pop rsi
movzx bx, r15b
movzx rbx, cx
xchg bl, bh
pop rbx
pop rbp
jmp 0x1404de9d1
ret
Function at 0x1404dec61
Capabilities:
Allocate thread local storage

Disassembly:
push rbx
sub rsp, 0x20
btr dx, 0x28
mov rbx, rcx
and r9w, cx
movsx rdx, r8w
cmp r12, 0x1560771c
lea r9, [0x1400c8e90]
bts r8, r15
xchg r8, rdx
ror r8, cl
xor ecx, ecx
bswap edx
lea r8, [0x1400c8e88]
lea rdx, [0x1400cfb70]
jmp 0x1404deca6
call fcn.1404def6c
test rax, rax
je 0x1404deccc
mov rcx, rbx
or bh, bl
add rsp, 0x20
mov bl, 0x9b
pop rbx
jmp 0x1404decc5
jmp qword [0x1400b8d90]
add rsp, 0x20
pop rbx
jmp 0x1404decd6
jmp qword [sym.imp.KERNEL32.dll_TlsAlloc]

Function at 0x1404ded64
Capabilities:
Get thread local storage value

Disassembly:
push rbx
cmc
setp r8b
sub rsp, 0x20
cwd
mov r9w, sp
movsx r9, r15w
mov ebx, ecx
cdq
movsx edx, r14w
movzx r9w, sil
lea r9, [0x1400c8ea0]
movsxd r8, eax
mov dl, 0x53
cmovno edx, esp
mov ecx, 2
lea r8, [0x1400c8e98]
jmp 0x1404dedaa
lea rdx, [0x1400cf758]
jmp 0x1404dedb6
call fcn.1404def6c
mov ecx, ebx
cmc
test rax, rax
jmp 0x1404dedc6
je 0x1404dede5
add rsp, 0x20
setbe bh
cmovnp bx, r11w
pop rbx
jmp 0x1404dedde
jmp qword [0x1400b8d90]
add rsp, 0x20
movzx rbx, r9w
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1404dedf5
Capabilities:
Set thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
sub r8, r14
push rdi
rcr di, cl
btr r9d, 0xbf
test bx, dx
sub rsp, 0x20
xchg rdi, r9
movzx ebx, di
mov rbx, rdx
movsx edi, r8w
movzx edx, r12w
movsx r8, sp
lea r9, [0x1400c8ea8]
cqo
mov edi, ecx
lea rdx, [0x1400cf748]
jmp 0x1404dee39
mov ecx, 3
movzx r8d, cx
lea r8, [0x1400c8ea0]
jmp 0x1404dee4e
call fcn.1404def6c
mov rdx, rbx
adc cl, r10b
and cl, 0xae
mov ecx, edi
cmc
cmp r14w, r13w
jmp 0x1404dee68
test rax, rax
jmp 0x1404dee70
je 0x1404dee81
call qword [0x1400b8d90]
jmp 0x1404dee87
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
mov di, 0x4525
bswap di
pop rdi
jmp 0x1404dee9d
ret
Function at 0x1404df673
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
stc
test r14b, 4
clc
mov qword [rsp + 0x10], rbp
test bpl, 0x66
stc
mov qword [rsp + 0x18], rsi
cmp r10, 0x30cd3b4e
push rdi
stc
test sp, 0x4dea
test r12b, cl
push r14
push r15
movzx r14w, r11b
sub rsp, 0x20
mov r14, rcx
clc
jmp 0x1404df6b4
test rcx, rcx
jmp 0x1404df6bc
je 0x1404df7dd
sub ebx, ebx
jmp 0x1404df6d1
lea r15, [0x140000000]
cmp edi, 0x5eff5934
mov edi, 0xe3
lea eax, [rdi + rbx]
mov r8d, 0x55
setl dl
xchg cx, si
cdq
shld bp, r8w, 0x44
rcl ebp, 0x16
bts cx, r8w
mov rcx, r14
sub eax, edx
stc
movsx bp, r11b
sar eax, 1
shrd si, r8w, 0x9e
and sil, r9b
movsxd rbp, eax
sar sil, cl
or sil, dil
mov rdx, rbp
mov rsi, rbp
test bh, 0x4b
cmp rsp, r12
clc
add rdx, rdx
jmp 0x1404df735
mov rdx, qword [r15 + rdx*8 + 0xc9cf0]
call fcn.14012b9d5
test eax, eax
jmp 0x1404df749
je 0x1404df780
jns 0x1404df762
lea edi, [rbp - 1]
jmp 0x1404df75d
jmp 0x1404df766
lea ebx, [rbp + 1]
stc
cmp ebx, edi
jmp 0x1404df76d
jle 0x1404df6e3
or eax, 0xffffffff
jmp 0x1404df77b
jmp 0x1404df79b
lea rsi, [rsi + rsi]
sbb rax, r8
bts ax, si
neg ah
mov eax, dword [r15 + rsi*8 + 0xc9cf8]
jmp 0x1404df79b
test eax, eax
jmp 0x1404df7a2
js 0x1404df7dd
cmp eax, 0xe4
jmp 0x1404df7b2
jae 0x1404df7dd
cdqe
cmc
jmp 0x1404df7c3
add rax, rax
jmp 0x1404df7cb
mov eax, dword [r15 + rax*8 + 0xc8eb0]
jmp 0x1404df7d8
jmp 0x1404df7e3
xor eax, eax
add r15w, r10w
mov rbx, qword [rsp + 0x40]
sal r15w, 0x3d
shr rsi, 0x49
xor esi, edi
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
bt r15w, 0x3b
rcl r15w, 0x5e
setl r14b
add rsp, 0x20
movsx r15, dx
movzx r14d, r11w
pop r15
pop r14
movzx edi, cx
movzx rdi, si
cmovl edi, edi
pop rdi
ret
Function at 0x1404e0526
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
shrd r8w, r9w, 0x8a
sub r9d, r9d
rol r8b, 0xc7
mov r8, rcx
test edx, edx
jmp 0x1404e0542
jne 0x1404e05b6
mov rdx, rcx
and r8d, 0xf
clc
and rdx, 0xfffffffffffffff0
or r10d, 0xffffffff
jmp 0x1404e055d
xorps xmm0, xmm0
mov ecx, r8d
test r15b, cl
shl r10d, cl
jmp 0x1404e056e
pcmpeqb xmm0, xmmword [rdx]
pmovmskb eax, xmm0
and eax, r10d
jmp 0x1404e057e
jne 0x1404e05a5
add rdx, 0x10
jmp 0x1404e058d
xorps xmm0, xmm0
pcmpeqb xmm0, xmmword [rdx]
pmovmskb eax, xmm0
test eax, eax
jmp 0x1404e059f
je 0x1404e0584
bsf eax, eax
cmc
add rax, rdx
jmp 0x1404e05b1
jmp 0x1404e0706
cmp dword [reloc.d2d1.dll_Ordinal_1], 2
jmp 0x1404e05c2
jge 0x1404e0732
movzx eax, dl
xadd r11b, r11b
sbb r11w, 0x643d
or r10d, 0xffffffff
mov ecx, eax
test r14b, 0x98
mov r11, r8
test bl, 0xd5
stc
shl ecx, 8
test r13b, 0xd4
cmc
and r11, 0xfffffffffffffff0
test r13b, r13b
clc
or ecx, eax
bts ax, r10w
and r8d, 0xf
movsxd rax, r14d
cwde
setb al
mov eax, r10d
jmp 0x1404e0610
movd xmm0, ecx
mov ecx, r8d
jmp 0x1404e061c
pshuflw xmm1, xmm0, 0
xorps xmm0, xmm0
pcmpeqb xmm0, xmmword [r11]
pmovmskb ebx, xmm0
shl r10d, cl
jmp 0x1404e0635
pshufd xmm2, xmm1, 0
movdqa xmm0, xmm2
shl eax, cl
jmp 0x1404e0645
pcmpeqb xmm0, xmmword [r11]
pmovmskb edx, xmm0
and edx, r10d
stc
cmc
and ebx, eax
jne 0x1404e0697
bsr ecx, edx
jmp 0x1404e0663
xorps xmm1, xmm1
movdqa xmm0, xmm2
add rcx, r11
test edx, edx
cmovne r9, rcx
clc
add r11, 0x10
pcmpeqb xmm1, xmmword [r11]
pcmpeqb xmm0, xmmword [r11]
pmovmskb ebx, xmm1
pmovmskb edx, xmm0
test ebx, ebx
jmp 0x1404e0691
je 0x1404e065b
mov eax, ebx
add ch, 0x80
sbb cx, r15w
shr cx, 0x16
neg eax
shrd rcx, r10, 0xf2
and eax, ebx
setg ch
jmp 0x1404e06b8
dec eax
xor cl, r10b
movzx rcx, sp
and edx, eax
mov ecx, 0x335a6139
sbb al, 0xf2
test ecx, 0x4a575615
bsr ecx, edx
movsx eax, r9w
shld ebx, r15d, 0x51
lea rcx, [rcx + r11]
bts rbx, r13
btr bx, bx
clc
test edx, edx
not eax
cdqe
cmovne r9, rcx
movzx ebx, r8w
movsxd rbx, esi
cwde
mov rax, r9
movsx ebx, ax
movzx bx, bpl
mov rbx, qword [rsp + 8]
jmp 0x1404e0710
ret
movsx eax, byte [r8]
cmp eax, edx
cmove r9, r8
clc
test ah, 0x87
cmp byte [r8], 0
jmp 0x1404e0728
je 0x1404e06fb
inc r8
cmc
test r8b, 0xf
jne 0x1404e0711
movzx eax, dl
jmp 0x1404e0744
movd xmm0, eax
pcmpistri xmm0, xmmword [r8], 0x40
jae 0x1404e0768
movsxd r9, ecx
stc
add r9, r8
jmp 0x1404e0761
pcmpistri xmm0, xmmword [r8], 0x40
je 0x1404e06fb
add r8, 0x10
jmp 0x1404e0748
Function at 0x1400111ef
Capabilities:
Terminate process

Disassembly:
jmp 0x140013050
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret
Function at 0x140011276
Capabilities:
Parse pe header

Disassembly:
jmp 0x140014390
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x1400143b0
xor al, al
jmp 0x140014431
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x1400143c3
xor al, al
jmp 0x140014431
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x1400143ed
xor al, al
jmp 0x140014431
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140014401
xor al, al
jmp 0x140014431
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140014413
xor al, al
jmp 0x140014431
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14001442f
xor al, al
jmp 0x140014431
mov al, 1
add rsp, 0x38
ret
Function at 0x140001a20
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rdx, r12
mov rcx, rax
mov r8, rbx
call fcn.140002830
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop
nop word [rax + rax]
Function at 0x140001a90
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rdi, dword [0x1400070a4]
mov r12, rcx
mov rsi, rdx
mov rbx, r8
test edi, edi
jle 0x140001c40
mov rax, qword [0x1400070a8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp r12, rdx
jb 0x140001adc
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x140001b67
add ecx, 1
add rax, 0x28
cmp ecx, edi
jne 0x140001ac0
mov rcx, r12
call fcn.140002540
mov rbp, rax
test rax, rax
je 0x140001c9d
mov rax, qword [0x1400070a8]
lea rdi, [rdi + rdi*4]
shl rdi, 3
add rax, rdi
mov qword [rax + 0x20], rbp
mov dword [rax], 0
call fcn.140002670
mov ecx, dword [rbp + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x1400070a8]
mov qword [rax + rdi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140001c82
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140001b60
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140001bf0
add dword [0x1400070a4], 1
cmp ebx, 8
jae 0x140001b98
test bl, 4
jne 0x140001c50
test ebx, ebx
je 0x140001b89
movzx eax, byte [rsi]
mov byte [r12], al
test bl, 2
jne 0x140001c70
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rax, qword [rsi]
lea rcx, [r12 + 8]
and rcx, 0xfffffffffffffff8
mov qword [r12], rax
mov eax, ebx
mov rdx, qword [rsi + rax - 8]
mov qword [r12 + rax - 8], rdx
sub r12, rcx
add ebx, r12d
sub rsi, r12
and ebx, 0xfffffff8
cmp ebx, 8
jb 0x140001b89
and ebx, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov r8, qword [rsi + rdx]
mov qword [rcx + rdx], r8
cmp eax, ebx
jb 0x140001bca
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 4
mov eax, 0x40
cmovne r8d, eax
add rdi, qword [0x1400070a8]
mov qword [rdi + 8], rcx
mov r9, rdi
mov qword [rdi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140001b60
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140001a20
xor edi, edi
jmp 0x140001ae7
mov eax, dword [rsi]
mov ebx, ebx
mov dword [r12], eax
mov eax, dword [rsi + rbx - 4]
mov dword [r12 + rbx - 4], eax
jmp 0x140001b89
mov ebx, ebx
movzx eax, word [rsi + rbx - 2]
mov word [r12 + rbx - 2], ax
jmp 0x140001b89
mov rax, qword [0x1400070a8]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rdi + 0x18]
call fcn.140001a20
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.140001a20
nop
nop dword [rax]
Function at 0x140001520
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rbx
push rdi
lea rbp, [rsp - 0xc0]
sub rsp, 0x1c0
movsxd rdi, edx
mov rbx, rcx
test rcx, rcx
je 0x140001726
xor edx, edx
lea rcx, [rsp + 0x30]
mov r8d, 0x190
call fcn.140005010
mov r8, rdi
xor edx, edx
mov rcx, rbx
call fcn.140005010
lea rax, [rbp + 0xf8]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [0x14005e440]
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x140001614
mov rcx, qword [rbp + 0xf8]
lea rax, [rbp + 0xe0]
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0xf0]
lea rax, [rsp + 0x30]
mov dword [rbp + 0xe0], 0x190
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.Install_Path
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x140001607
cmp dword [rbp + 0xf0], 1
jne 0x140001607
mov rcx, qword [rbp + 0xf8]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r8, rdi
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.14000f3d0
mov al, 1
add rsp, 0x1c0
pop rdi
pop rbx
pop rbp
ret
mov rcx, qword [rbp + 0xf8]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rax, [rbp + 0xf8]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [0x14005e440]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x14000169d
mov rcx, qword [rbp + 0xf8]
lea rax, [rbp + 0xe0]
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0xf0]
lea rax, [rsp + 0x30]
mov dword [rbp + 0xe0], 0x190
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.Install_Path
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x140001690
cmp dword [rbp + 0xf0], 1
je 0x1400015dd
mov rcx, qword [rbp + 0xf8]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rax, [rbp + 0xf8]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SOFTWAREAct_3DQuest3D4.20.000
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x140001726
mov rcx, qword [rbp + 0xf8]
lea rax, [rbp + 0xe0]
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0xf0]
lea rax, [rsp + 0x30]
mov dword [rbp + 0xe0], 0x190
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.Install_Path
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x140001719
cmp dword [rbp + 0xf0], 1
je 0x1400015dd
mov rcx, qword [rbp + 0xf8]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
add rsp, 0x1c0
pop rdi
pop rbx
pop rbp
ret
Function at 0x140007a78
Capabilities:
Allocate thread local storage

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
lea r9, str.FlsAlloc
xor ecx, ecx
lea r8, [0x14004c4b8]
lea rdx, str.FlsAlloc
call fcn.1400075f4
mov rbx, rax
test rax, rax
je 0x140007ab8
mov rcx, rax
call fcn.1400040a0
mov rcx, rdi
call rbx
jmp 0x140007abe
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x140007b20
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov ebx, ecx
lea r9, str.FlsGetValue
mov ecx, 2
lea r8, [0x14004c4e0]
lea rdx, str.FlsGetValue
call fcn.1400075f4
mov rdi, rax
test rax, rax
je 0x140007b61
mov rcx, rax
call fcn.1400040a0
mov ecx, ebx
call rdi
jmp 0x140007b69
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x140007b74
Capabilities:
Set thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, rdx
lea r9, str.FlsSetValue
mov edi, ecx
lea rdx, str.FlsSetValue
mov ecx, 3
lea r8, [0x14004c4f8]
call fcn.1400075f4
mov rsi, rax
test rax, rax
je 0x140007bc0
mov rcx, rax
call fcn.1400040a0
mov rdx, rbx
mov ecx, edi
call rsi
jmp 0x140007bcb
mov rdx, rbx
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x140011ca4
Capabilities:
Parse pe header

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

Function at 0x140031fbc
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, r8d
mov rbp, rdx
mov rbx, rcx
call fcn.140035244
cmp eax, 2
sete dil
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x140032009
test rbx, rbx
je 0x140031ffd
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
test dil, dil
je 0x140032040
mov eax, 4
jmp 0x14003204f
test dil, dil
je 0x140032040
call fcn.1400314a0
test al, al
je 0x140032040
call fcn.140031790
test al, al
jne 0x140032036
bts esi, 0x15
xor ecx, ecx
mov rdx, rbx
mov r8, rbp
mov r9d, esi
call fcn.140031324
jmp 0x14003204f
call fcn.1400316cc
mov rcx, rax
jmp 0x140032026
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
neg eax
sbb eax, eax
neg eax
add eax, 3
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140c8d058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x140c8d1df
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 0x140c8d089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140c8d06f
add dl, dl
jne 0x140c8d096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140c8d0f6
xor eax, eax
add dl, dl
jne 0x140c8d0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140c8d1ad
add dl, dl
jne 0x140c8d0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140c8d0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140c8d0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140c8d0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140c8d0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140c8d07e
mov eax, 1
add dl, dl
jne 0x140c8d106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140c8d113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140c8d0fb
sub eax, ebx
mov ebx, 1
jne 0x140c8d14c
mov ecx, 1
add dl, dl
jne 0x140c8d12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140c8d13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140c8d123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140c8d07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140c8d168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140c8d175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140c8d15d
cmp eax, 0x7d00
jae 0x140c8d19b
cmp eax, 0x500
jb 0x140c8d196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140c8d07e
cmp eax, 0x7f
ja 0x140c8d19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140c8d07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140c8d1d2
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 0x140c8d07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20