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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x30
xor r15d, r15d
lea r9, [rsp + 0x58]
mov edi, r15d
mov qword [rsp + 0x20], r15
mov esi, r15d
mov ebx, r8d
mov rbp, rdx
mov r14, rcx
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14007e97b
nop
cmp dword [rsp + 0x58], ebx
ja 0x14007e97b
jae 0x14007e99f
call qword [sym.imp.KERNEL32.dll_GetLastError]
add edi, dword [rsp + 0x58]
sub ebx, dword [rsp + 0x58]
cmp esi, 0xbb8
jg 0x14007e981
mov ecx, 0xa
inc esi
call qword [sym.imp.KERNEL32.dll_Sleep]
movsxd rdx, edi
lea r9, [rsp + 0x58]
add rdx, rbp
mov qword [rsp + 0x20], r15
mov r8d, ebx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x14007e930
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, 0xffffffff
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret
xor eax, eax
jmp 0x14007e986

Function at 0x14007f4c0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x30
lea rax, [rsp + 0x50]
mov qword [rsp + 0x50], 0
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.SOFTWAREAdobeAdobe_NGLCEF1.0RestrictedSecuritySettings
mov rcx, 0xffffffff80000002
mov bl, 1
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14007f54a
mov rcx, qword [rsp + 0x50]
lea rdx, str.CEFSecurityMK
mov dword [rsp + 0x40], eax
xor r9d, r9d
lea rax, [rsp + 0x48]
mov dword [rsp + 0x48], 4
mov qword [rsp + 0x28], rax
xor r8d, r8d
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x14007f53f
cmp dword [rsp + 0x40], eax
setne bl
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
movzx eax, bl
add rsp, 0x30
pop rbx
ret

Function at 0x14007f560
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x30
cmp qword [rcx + 0x10], 0
mov rdi, rcx
movzx ebx, dl
je 0x14007f603
lea rax, [rsp + 0x50]
mov qword [rsp + 0x50], 0
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.SOFTWAREAdobeAdobe_NGLCEF1.0RestrictedSecuritySettings
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14007f603
cmp qword [rdi + 0x18], 0x10
mov dword [rsp + 0x48], ebx
mov dword [rsp + 0x40], 4
jb 0x14007f5c5
mov rdi, qword [rdi]
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
xor r9d, r9d
lea rax, [rsp + 0x48]
xor r8d, r8d
mov rdx, rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x14007f5f8
cmp dword [rsp + 0x48], eax
setne bl
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
movzx eax, bl
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x140093980
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
mov qword [rsp + 8], rcx
push rdi
push r14
push r15
sub rsp, 0x70
mov r14, r9
mov rsi, r8
mov rbp, rcx
mov edx, 2
call fcn.1400f46bc
nop
lea rcx, [rbp + 0x50]
call fcn.1400f4190
nop
xorps xmm0, xmm0
movups xmmword [rbp + 0x98], xmm0
movups xmmword [rbp + 0xa8], xmm0
lea rdi, [rbp + 0xb8]
mov qword [rsp + 0x40], rdi
xor r15d, r15d
mov qword [rdi], r15
mov qword [rdi + 0x10], r15
mov qword [rdi + 0x18], 7
mov word [rdi], r15w
xor r8d, r8d
lea rdx, [0x14018cce0]
mov rcx, rdi
call fcn.140056b80
nop
mov qword [rdi + 0x28], r15
lea rcx, [rdi + 0x58]
lea edx, [r15 + 2]
call fcn.1400f46bc
nop
lea rcx, [rdi + 0xa8]
call fcn.1400f4190
nop
mov byte [rdi + 0xf0], r15b
mov byte [rdi + 0xf1], r15b
mov qword [rdi + 0xf8], r15
mov qword [rdi + 0x100], r15
lea rbx, [rdi + 0x108]
mov qword [rsp + 0x48], rbx
mov qword [rbx], r15
mov qword [rbx + 8], r15
mov qword [rbx + 0x10], r15
mov qword [rbx + 0x18], r15
mov qword [rbx + 0x20], r15
lea ecx, [r15 + 0x10]
call fcn.140113680
mov qword [rax + 8], r15
mov qword [rbx], rax
mov qword [rax], rbx
lea rcx, [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov qword [rdi + 0x158], r15
mov qword [rdi + 0x160], r15
lea rcx, [rdi + 0x30]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
nop
mov qword [rbp + 0x220], r15
mov qword [rbp + 0x228], r15
mov qword [rbp + 0x230], r15
lea rcx, [rbp + 0x238]
lea edx, [r15 + 2]
call fcn.1400f46bc
nop
mov byte [rbp + 0x288], 1
mov qword [rbp + 0x290], r15
mov qword [rbp + 0x298], r15
mov r8, rsi
mov rcx, rdi
call fcn.14007e4c0
test eax, eax
sete al
mov byte [r14], al
lea ecx, [r15 + 0x10]
call fcn.140113680
mov qword [rax], rbp
lea rcx, [0x140093cd0]
mov qword [rax + 8], rcx
mov qword [rsp + 0x48], rax
lea rcx, [rsp + 0x68]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], r15d
mov r9, rax
lea r8, [0x1400983c0]
xor edx, edx
xor ecx, ecx
call fcn.140118ef0
mov qword [rsp + 0x60], rax
test rax, rax
je 0x140093bc4
cmp dword [rbp + 0xa0], r15d
jne 0x140093bbe
movaps xmm0, xmmword [rsp + 0x60]
movups xmmword [rbp + 0x98], xmm0
lea ecx, [r15 + 0x10]
call fcn.140113680
mov qword [rax], rbp
lea rcx, [0x140094100]
mov qword [rax + 8], rcx
mov qword [rsp + 0x48], rax
lea rcx, [rsp + 0x58]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], r15d
mov r9, rax
lea r8, [0x1400983c0]
xor edx, edx
xor ecx, ecx
call fcn.140118ef0
mov qword [rsp + 0x50], rax
test rax, rax
je 0x140093bda
cmp dword [rbp + 0xb0], r15d
jne 0x140093bd4
movaps xmm0, xmmword [rsp + 0x50]
movups xmmword [rbp + 0xa8], xmm0
mov rax, rbp
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
call fcn.140057050
nop
mov dword [rsp + 0x68], r15d
mov ecx, 6
call fcn.1400f4f28
nop
call fcn.140057050
nop
mov dword [rsp + 0x58], r15d
mov ecx, 6
call fcn.1400f4f28
int3
Function at 0x1400a02c0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
mov qword [rsp + 8], rcx
push r14
sub rsp, 0x40
mov r14, r9
mov rax, r8
mov r10, rdx
xor sil, sil
mov byte [rsp + 0x50], sil
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
mov r9d, 0x20019
xor r8d, r8d
mov rdx, rax
mov rcx, r10
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400a03d6
xor ecx, ecx
mov dword [rsp + 0x30], ecx
mov dword [rsp + 0x34], ecx
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
xor r9d, r9d
xor r8d, r8d
mov rdx, r14
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400a03ca
mov ecx, dword [rsp + 0x30]
inc ecx
mov eax, 2
mul rcx
mov rbx, 0xffffffffffffffff
cmovo rax, rbx
mov rcx, rax
call fcn.140113ca8
mov rdi, rax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x34]
xor r8d, r8d
mov rdx, r14
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400a03c2
cmp dword [rsp + 0x34], 1
jne 0x1400a03c2
nop dword [rax + rax]
inc rbx
cmp word [rdi + rbx*2], 0
jne 0x1400a03a0
mov r8, rbx
mov rdx, rdi
mov rcx, qword [rsp + 0x70]
call fcn.140056b80
mov sil, 1
mov byte [rsp + 0x50], sil
mov rcx, rdi
call fcn.1401139dc
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
movzx eax, sil
jmp 0x1400a03e1
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x1400c3270
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 8
mov r10, rcx
mov r9d, 0x270
mov ecx, dword [rcx]
cmp ecx, r9d
jne 0x1400c32d1
lea r8, [r10 + 8]
nop dword [rax + rax]
mov edx, dword [r8 - 4]
xor edx, dword [r8]
lea r8, [r8 + 4]
btr edx, 0x1f
xor edx, dword [r8 - 8]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x62c]
xor ecx, edx
mov dword [r8 + 0x9b8], ecx
sub r9, 1
jne 0x1400c3290
mov ecx, dword [r10]
jmp 0x1400c33ba
cmp ecx, 0x4e0
jb 0x1400c33ba
lea r11, [r10 + 0x9c4]
mov qword [rsp], rbx
mov eax, dword [r11]
mov ebx, 0xe3
mov edx, dword [r11 + 4]
lea r8, [r11 + 4]
xor edx, eax
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
mov eax, dword [r8]
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r11 + 0x634]
xor ecx, edx
mov dword [r11 - 0x9c0], ecx
lea r11, [r8]
sub rbx, 1
jne 0x1400c32f0
lea r11, [r10 + 0xd50]
mov ebx, 0x18c
mov eax, dword [r11]
nop dword [rax + rax]
mov edx, eax
lea r8, [r11 + 4]
xor edx, dword [r8]
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
mov eax, dword [r8]
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r11 - 0xd4c]
xor ecx, edx
mov dword [r11 - 0x9c0], ecx
lea r11, [r8]
sub rbx, 1
jne 0x1400c3340
mov edx, dword [r10 + 0x1380]
xor edx, dword [r10 + 4]
mov rbx, qword [rsp]
btr edx, 0x1f
xor edx, dword [r10 + 0x1380]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r10 + 0x634]
xor ecx, edx
mov dword [r10 + 0x9c0], ecx
xor ecx, ecx
mov dword [r10], ecx
mov eax, ecx
mov edx, dword [r10 + rax*4 + 4]
lea eax, [rcx + 1]
mov dword [r10], eax
mov ecx, edx
mov eax, dword [r10 + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
add rsp, 8
ret
Function at 0x1400c3710
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x70
mov rax, qword [0x140200260]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rdi, rcx
mov dword [rsp + 0x20], 0xff
xor ebx, ebx
mov qword [rcx + 0x10], rbx
mov rax, rcx
cmp qword [rcx + 0x18], 0x10
jb 0x1400c3747
mov rax, qword [rcx]
mov byte [rax], bl
mov qword [rsp + 0x28], rbx
movups xmm0, xmmword [0x1401e0638]
movups xmmword [rsp + 0x50], xmm0
lea r9, [rsp + 0x28]
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x50]
call qword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
test eax, eax
js 0x1400c3822
mov rdx, qword [rsp + 0x28]
test rdx, rdx
je 0x1400c3822
mov qword [rsp + 0x30], rbx
movdqa xmm0, xmmword [0x1401e06e0]
movdqu xmmword [rsp + 0x40], xmm0
mov word [rsp + 0x30], bx
mov r8, 0xffffffffffffffff
inc r8
cmp word [rdx + r8*2], 0
jne 0x1400c37a4
lea rcx, [rsp + 0x30]
call fcn.140056b80
nop
mov rdx, rdi
lea rcx, [rsp + 0x30]
call fcn.14006e270
nop
lea rcx, [rsp + 0x30]
call fcn.140056af0
mov r8d, 1
lea rdx, [0x14018f1f0]
mov rcx, rdi
call fcn.14005b2d0
mov r8d, 5
lea rdx, str.Adobe
mov rcx, rdi
call fcn.14005b2d0
mov r8d, 1
lea rdx, [0x14018f1f0]
mov rcx, rdi
call fcn.14005b2d0
mov dword [rsp + 0x20], ebx
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
jmp 0x1400c382b
mov ebx, 1
mov dword [rsp + 0x20], ebx
mov eax, ebx
jmp 0x1400c3833
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140113660
mov rbx, qword [rsp + 0x88]
add rsp, 0x70
pop rdi
ret

Function at 0x1400c3b60
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x830
mov rax, qword [0x140200260]
xor rax, rsp
mov qword [rsp + 0x820], rax
mov rbx, rcx
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x800
call fcn.140115da0
lea rdx, [rsp + 0x20]
mov ecx, 0x400
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0x3fe
ja 0x1400c3bd1
lea rax, [rsp + 0x20]
mov r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], 0
jne 0x1400c3bb5
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.140056b80
xor eax, eax
jmp 0x1400c3bd6
mov eax, 1
mov rcx, qword [rsp + 0x820]
xor rcx, rsp
call fcn.140113660
add rsp, 0x830
pop rbx
ret
Function at 0x1400c3e20
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x30
mov r12, r8
mov rsi, rdx
mov r15, rcx
mov r14d, 1
cmp qword [rdx + 0x18], 8
jb 0x1400c3e52
mov rdx, qword [rdx]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov rcx, qword [rcx]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400c3ef4
mov ecx, dword [rsp + 0x58]
inc ecx
mov eax, 2
mul rcx
mov rbx, 0xffffffffffffffff
cmovo rax, rbx
mov rcx, rax
call fcn.140113ca8
mov rdi, rax
cmp qword [rsi + 0x18], 8
jb 0x1400c3ea6
mov rsi, qword [rsi]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
xor r9d, r9d
xor r8d, r8d
mov rdx, rsi
mov rcx, qword [r15]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400c3eeb
nop dword [rax + rax]
inc rbx
cmp word [rdi + rbx*2], 0
jne 0x1400c3ed0
mov r8, rbx
mov rdx, rdi
mov rcx, r12
call fcn.140056b80
xor r14d, r14d
mov rcx, rdi
call fcn.1401139dc
nop
mov eax, r14d
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop r12
ret
Function at 0x1401353fc
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov qword [rax + 8], rcx
push rbp
mov rbp, rsp
sub rsp, 0x20
test rcx, rcx
jne 0x1401350b8
call fcn.14012b774
mov dword [rax], SafeArrayUnaccessData
call fcn.140118894
or eax, 0xffffffff
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop rbp
ret
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x1401350a0
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
shr ecx, 0xc
test cl, 1
jne 0x1401350a0
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
mov rax, qword [rbp + 0x10]
shr ecx, 1
test cl, 1
je 0x1401350ea
lock or dword [rax + 0x14], 0x10
jmp 0x1401350a0
lock or dword [rax + 0x14], 1
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
test ecx, 0x4c0
jne 0x140135107
mov rcx, qword [rbp + 0x10]
call fcn.1401365a8
mov rax, qword [rbp + 0x10]
mov rcx, qword [rax + 8]
mov qword [rax], rcx
mov rbx, qword [rbp + 0x10]
mov rcx, rbx
call fcn.140132bfc
mov rdx, qword [rbp + 0x10]
mov ecx, eax
mov r8d, dword [rdx + 0x20]
mov rdx, qword [rdx + 8]
call fcn.140136b3c
mov dword [rbx + 0x10], eax
mov rax, qword [rbp + 0x10]
mov edx, dword [rax + 0x10]
lea ecx, [rdx + 1]
cmp ecx, 1
ja 0x14013515e
neg edx
sbb ecx, ecx
and ecx, 8
add ecx, 8
lock or dword [rax + 0x14], ecx
mov rax, qword [rbp + 0x10]
and dword [rax + 0x10], 0
jmp 0x1401350a0
mov ecx, dword [rax + 0x14]
test cl, 6
jne 0x1401351ca
mov rcx, qword [rbp + 0x10]
call fcn.140132bfc
cmp eax, 0xffffffff
je 0x1401351b1
mov rcx, qword [rbp + 0x10]
call fcn.140132bfc
cmp eax, 0xfffffffe
je 0x1401351b1
mov rbx, qword [rbp + 0x10]
mov rcx, rbx
call fcn.140132bfc
movsxd rdi, eax
lea rsi, [0x140235ab0]
mov rcx, rbx
sar rdi, 6
call fcn.140132bfc
and eax, 0x3f
shl rax, 6
add rax, qword [rsi + rdi*8]
jmp 0x1401351b8
lea rax, [0x1402004c0]
mov al, byte [rax + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x1401351ca
mov rax, qword [rbp + 0x10]
lock or dword [rax + 0x14], 0x20
mov rax, qword [rbp + 0x10]
cmp dword [rax + 0x20], 0x200
jne 0x140135200
mov ecx, dword [rax + 0x14]
shr ecx, 6
test cl, 1
je 0x1401351fc
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
shr ecx, 8
test cl, 1
jne 0x1401351fc
mov rax, qword [rbp + 0x10]
mov dword [rax + 0x20], 0x1000
mov rax, qword [rbp + 0x10]
dec dword [rax + 0x10]
mov rcx, qword [rax]
movzx edx, byte [rcx]
inc rcx
mov qword [rax], rcx
mov eax, edx
jmp 0x1401350a3
jmp 0x140135070
Function at 0x140135404
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov qword [rax + 8], rcx
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x20
test rcx, rcx
jne 0x14013526a
call fcn.14012b774
mov dword [rax], SafeArrayUnaccessData
call fcn.140118894
mov eax, 0xffff
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop rbp
ret
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x14013524c
mov rax, qword [rbp + 0x20]
mov ecx, dword [rax + 0x14]
shr ecx, 0xc
test cl, 1
jne 0x14013524c
mov rax, qword [rbp + 0x20]
mov ecx, dword [rax + 0x14]
mov rax, qword [rbp + 0x20]
shr ecx, 1
test cl, 1
je 0x14013529c
lock or dword [rax + 0x14], 0x10
jmp 0x14013524c
lock or dword [rax + 0x14], 1
mov rax, qword [rbp + 0x20]
mov ecx, dword [rax + 0x14]
test ecx, 0x4c0
jne 0x1401352b9
mov rcx, qword [rbp + 0x20]
call fcn.1401365a8
mov rax, qword [rbp + 0x20]
cmp dword [rax + 0x10], 1
jne 0x1401352ce
mov rcx, qword [rax]
mov sil, 1
mov r14b, byte [rcx]
jmp 0x1401352d4
xor sil, sil
xor r14b, r14b
mov rcx, qword [rax + 8]
mov qword [rax], rcx
mov rbx, qword [rbp + 0x20]
mov rcx, rbx
call fcn.140132bfc
mov rdx, qword [rbp + 0x20]
mov ecx, eax
mov r8d, dword [rdx + 0x20]
mov rdx, qword [rdx + 8]
call fcn.140136b3c
mov dword [rbx + 0x10], eax
mov rax, qword [rbp + 0x20]
mov edx, dword [rax + 0x10]
lea ecx, [rdx + 1]
cmp ecx, 2
ja 0x140135327
neg edx
sbb ecx, ecx
and ecx, 8
add ecx, 8
lock or dword [rax + 0x14], ecx
mov rax, qword [rbp + 0x20]
and dword [rax + 0x10], 0
jmp 0x14013524c
mov ecx, dword [rax + 0x14]
test cl, 6
jne 0x140135393
mov rcx, qword [rbp + 0x20]
call fcn.140132bfc
cmp eax, 0xffffffff
je 0x14013537a
mov rcx, qword [rbp + 0x20]
call fcn.140132bfc
cmp eax, 0xfffffffe
je 0x14013537a
mov rbx, qword [rbp + 0x20]
mov rcx, rbx
call fcn.140132bfc
movsxd rdi, eax
lea r15, [0x140235ab0]
mov rcx, rbx
sar rdi, 6
call fcn.140132bfc
and eax, 0x3f
shl rax, 6
add rax, qword [r15 + rdi*8]
jmp 0x140135381
lea rax, [0x1402004c0]
mov al, byte [rax + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x140135393
mov rax, qword [rbp + 0x20]
lock or dword [rax + 0x14], 0x20
mov rax, qword [rbp + 0x20]
cmp dword [rax + 0x20], 0x200
jne 0x1401353c9
mov ecx, dword [rax + 0x14]
shr ecx, 6
test cl, 1
je 0x1401353c5
mov rax, qword [rbp + 0x20]
mov ecx, dword [rax + 0x14]
shr ecx, 8
test cl, 1
jne 0x1401353c5
mov rax, qword [rbp + 0x20]
mov dword [rax + 0x20], 0x1000
mov rax, qword [rbp + 0x20]
mov rcx, qword [rax]
test sil, sil
je 0x1401353e7
movzx edx, byte [rcx]
dec dword [rax + 0x10]
shl dx, 8
movzx ecx, r14b
or dx, cx
inc qword [rax]
jmp 0x1401353f2
movzx edx, word [rcx]
add dword [rax + 0x10], 0xfffffffe
add qword [rax], 2
movzx eax, dx
jmp 0x140135251
jmp 0x140135218
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x14000e6d0]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x14000e6e0]
mov dword [rax], 1
mov rax, qword [0x14000e6f0]
mov dword [rax], 1
mov rax, qword [0x14000e6c0]
mov dword [rax], 1
mov rax, qword [0x14000e580]
cmp word [rax], 0x5a4d
jne 0x140001067
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010d0
mov rax, qword [0x14000e6b0]
mov dword [0x140011020], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010c0
mov ecx, 2
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x14000e670]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x14000e650]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x14000e530]
cmp dword [rax], 1
je 0x140001108
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x140001084
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001120
cmp dx, 0x20b
jne 0x140001067
cmp dword [rax + 0x84], 0xe
jbe 0x140001067
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x140001067
lea rcx, [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x140001067
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x140001067

Function at 0x140001540
Capabilities:
Create process on windows

Disassembly:
push rbp
sub rsp, 0x100
lea rbp, [rsp + 0x80]
call dbg.__main
movabs rax, 0x636e75614c455353
movabs rdx, 0x206578652e726568
mov qword [rbp + 0x60], rax
mov qword [rbp + 0x68], rdx
movabs rax, 0x372064697070612d
mov qword [rbp + 0x70], rax
mov dword [rbp + 0x78], 0x39363731
mov word [rbp + 0x7c], 0x30
lea rax, [rbp - 0x10]
mov r8d, 0x68
mov edx, 0
mov rcx, rax
call sym.memset
mov dword [rbp - 0x10], 0x68
mov dword [rbp + 0x2c], 1
mov word [rbp + 0x30], 0
lea rax, [rbp - 0x30]
mov r8d, 0x18
mov edx, 0
mov rcx, rax
call sym.memset
lea rax, [rbp + 0x60]
lea rdx, [rbp - 0x30]
mov qword [rsp + 0x48], rdx
lea rdx, [rbp - 0x10]
mov qword [rsp + 0x40], rdx
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9d, 0
mov r8d, 0
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateProcessA]
call rax
test eax, eax
je 0x140001663
mov rax, qword [rbp - 0x30]
mov edx, 0xffffffff
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call rax
mov rax, qword [rbp - 0x30]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp - 0x28]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov eax, 0
jmp 0x14000166c
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
add rsp, 0x100
pop rbp
ret
Function at 0x140001950
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 dbg.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sym.vfprintf
call sym.abort
nop
nop word [rax + rax]

Function at 0x1400019c0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x50
movsxd rbx, dword [0x1400110b4]
mov r12, rcx
test ebx, ebx
jle 0x140001af0
mov rax, qword [0x1400110b8]
xor ecx, ecx
add rax, 0x18
nop word [rax + rax]
mov rdx, qword [rax]
cmp rdx, r12
ja 0x140001a0c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x140001a93
add ecx, 1
add rax, 0x28
cmp ecx, ebx
jne 0x1400019f0
mov rcx, r12
call dbg.__mingw_GetSectionForAddress
mov rsi, rax
test rax, rax
je 0x140001b12
mov rax, qword [0x1400110b8]
lea rbx, [rbx + rbx*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rsi
mov dword [rax], 0
call dbg._GetPEImageBase
mov ecx, dword [rsi + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x1400110b8]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140001af7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140001a8c
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140001aa0
add dword [0x1400110b4], 1
add rsp, 0x50
pop rbx
pop rsi
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 rbx, qword [0x1400110b8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140001a8c
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
nop dword [rax]
xor ebx, ebx
jmp 0x140001a17
mov rax, qword [0x1400110b8]
mov edx, dword [rsi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call dbg.__report_error
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140001fd0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x140011120]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140011100]
test rbx, rbx
je 0x140002024
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x14000201b
test r12, r12
je 0x14000201b
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140002000
lea rcx, [0x140011120]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]