joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400627b0
Capabilities:
Encode data using base64
Encrypt data using rc4 prga

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xd8
movdqa xmmword [rsp + 0xc0], xmm15
movdqa xmmword [rsp + 0xb0], xmm14
movdqa xmmword [rsp + 0xa0], xmm13
movdqa xmmword [rsp + 0x90], xmm12
movdqa xmmword [rsp + 0x80], xmm11
movdqa xmmword [rsp + 0x70], xmm10
movdqa xmmword [rsp + 0x60], xmm9
movdqa xmmword [rsp + 0x50], xmm8
movdqa xmmword [rsp + 0x40], xmm7
movdqa xmmword [rsp + 0x30], xmm6
mov rax, rdx
shr rax, 0x3e
jne 0x140062851
mov rbx, rdx
mov r14, rcx
lea rax, [rdx*4]
movabs r9, 0xaaaaaaaaaaaaaaab
mul r9
mov rcx, rdx
shr rcx, 1
add rcx, 3
mov rdi, rcx
and rdi, 0xfffffffffffffffc
cmp rdi, 5
jb 0x1400628b6
xor esi, esi
mov rsi, r8
mov rax, rbx
mul r9
shr rdx, 1
lea r8, [rdx + rdx*2]
mov r15, rsi
mov rdx, rdi
cmp r8, 3
jb 0x140062ebc
lea rax, [r8 - 3]
mul r9
shr rdx, 1
shr rcx, 2
cmp rdx, rcx
cmovb rcx, rdx
mov rax, r14
mov r9, r8
mov rdx, rdi
mov r10, rsi
cmp rcx, 8
jb 0x140062d74
inc rcx
mov eax, ecx
and eax, 7
mov edx, 8
cmovne rdx, rax
sub rcx, rdx
lea rdx, [rcx + rcx*2]
lea rax, [r14 + rdx]
mov r9, r8
sub r9, rdx
lea r10, [rcx*4]
mov rdx, rdi
sub rdx, r10
lea r10, [rsi + rcx*4]
xor r11d, r11d
mov r15, r14
movdqa xmm9, xmmword [0x1400b08b0]
movdqa xmm5, xmmword [0x1400b08d0]
movdqa xmm13, xmmword [0x1400b08f0]
movdqa xmm2, xmmword [0x1400b0910]
nop dword [rax]
Function at 0x140066f10
Capabilities:
Generate random numbers via rtlgenrandom
Generate random numbers via winapi

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rbx, rcx
xor edi, edi
xor ecx, ecx
mov rdx, rbx
mov r8d, 0x20
mov r9d, 2
call qword [sym.imp.bcrypt.dll_BCryptGenRandom]
cmp eax, 0xc0000000
jb 0x140066f9a
mov esi, eax
mov rcx, rbx
mov edx, 0x20
call qword [sym.imp.advapi32.dll_SystemFunction036]
test al, al
je 0x140066f52
xor edi, edi
jmp 0x140066f9a
xor esi, 0x80000000
je 0x140066f4e
movzx eax, byte [0x1400f92c0]
mov rcx, qword [0x1400f91f8]
test rcx, rcx
jne 0x140066f82
call qword [sym.imp.kernel32.dll_GetProcessHeap]
test rax, rax
je 0x140066fa5
mov rcx, rax
mov qword [0x1400f91f8], rax
mov r8d, 4
xor edx, edx
call qword [sym.imp.kernel32.dll_HeapAlloc]
test rax, rax
je 0x140066fa5
mov rdi, rax
mov dword [rax], esi
mov rax, rdi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
mov ecx, 4
mov edx, 4
call fcn.1400a9e00
ud2
Function at 0x140067510
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x38
mov rsi, rdx
mov rdi, rcx
mov r14, qword [rdx + 0x10]
movzx ebp, byte [rdx + 0x18]
movzx eax, byte [0x1400f92c0]
mov rcx, qword [0x1400f91f8]
test rcx, rcx
jne 0x14006755a
call qword [sym.imp.kernel32.dll_GetProcessHeap]
test rax, rax
je 0x14006779a
mov rcx, rax
mov qword [0x1400f91f8], rax
mov r8d, 0x5f0
xor edx, edx
call qword [sym.imp.kernel32.dll_HeapAlloc]
test rax, rax
je 0x14006779a
mov rbx, rax
mov byte [rsp + 0x27], bpl
mov qword [rsp + 0x30], r14
lea r15, [rsi + 0x20]
mov r8d, 0x5f0
mov rcx, rax
xor edx, edx
call sub.VCRUNTIME140.dll_memset
mov rax, qword [rsi + 0x60]
mov qword [rsp + 0x28], rax
movabs rcx, 0x7465646279746573
movabs rdx, 0x6c7967656e657261
movabs r8, 0xded7d4e2d7dedfc6
movabs r9, 0xa60c596fc19fead0
movabs r10, 0xe414a674f0de7325
movabs r11, 0x800000000000000
nop word [rax + rax]
mov ebp, 1
lock xadd qword [0x1400f9140], rbp
mov r14, rbp
xor r14, rcx
lea r12, [r14 + rdx]
mov rax, r14
rol rax, 0x10
xor rax, r12
lea r13, [rax + r8]
rol rax, 0x15
add r14, r9
mov r12, r14
xor r12, r10
rol r14, 0x20
xor rbp, r13
add rbp, r12
rol r12, 0xd
xor r13, r11
xor r12, rbp
rol rbp, 0x20
xor r13, rax
add r14, r13
rol r13, 0x10
xor r13, r14
add rbp, r13
rol r13, 0x15
add r14, r12
rol r12, 0x11
xor r13, rbp
xor r12, r14
rol r14, 0x20
xor rbp, r11
add rbp, r12
rol r12, 0xd
xor r12, rbp
rol rbp, 0x20
xor r14, 0xff
add r14, r13
rol r13, 0x10
xor r13, r14
add rbp, r13
rol r13, 0x15
add r14, r12
rol r12, 0x11
xor r12, r14
rol r14, 0x20
xor r13, rbp
add rbp, r12
rol r12, 0xd
xor r12, rbp
rol rbp, 0x20
add r14, r13
rol r13, 0x10
xor r13, r14
add rbp, r13
rol r13, 0x15
add r14, r12
rol r12, 0x11
xor r12, r14
rol r14, 0x20
xor r13, rbp
add rbp, r12
rol r12, 0xd
add r14, r13
rol r13, 0x10
xor r13, r14
rol r13, 0x15
xor r12, rbp
add r14, r12
rol r12, 0x11
mov rbp, r14
rol rbp, 0x20
xor rbp, r12
xor rbp, r13
xor rbp, r14
je 0x1400675e0
mov rax, qword [rsi + 0x40]
movups xmm0, xmmword [r15]
movups xmm1, xmmword [r15 + 0x10]
movups xmmword [rdi + 0x128], xmm1
movups xmmword [rdi + 0x118], xmm0
mov rcx, qword [rsp + 0x30]
mov qword [rdi + 0x138], rcx
movzx ecx, byte [rsp + 0x27]
mov byte [rdi + 0x140], cl
mov qword [rdi], 0
mov qword [rdi + 8], rbx
mov qword [rdi + 0x80], 0
mov qword [rdi + 0x88], rbx
mov rcx, qword [rsp + 0x28]
mov qword [rdi + 0x100], rcx
mov qword [rdi + 0x108], rbp
mov qword [rdi + 0x110], rax
mov r8, qword [rsi + 0x48]
test r8, r8
je 0x140067788
cmp qword [rsi + 0x50], 0
je 0x140067788
mov rcx, qword [0x1400f91f8]
xor edx, edx
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
jmp qword [sym.imp.kernel32.dll_HeapFree]
nop
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov ecx, 8
mov edx, 0x5f0
call fcn.1400a9e00
ud2
Function at 0x14006b810
Capabilities:
Encrypt data using openssl rsa

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0xe0
mov rsi, rcx
cmp byte [rdx + 0x28], 9
jne 0x14006b848
mov rdi, rdx
lea rcx, [rdx + 0x29]
lea rdx, [0x1400e3149]
mov r8d, 0x27
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x14006b8eb
mov byte [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov ecx, 5
movabs rbx, 0x101010df786
xor eax, eax
xor r8d, r8d
xor r10d, r10d
xor r11d, r11d
xor r9d, r9d
xor edx, edx
mov rdi, qword [rsp + 0x2d]
mov qword [rsi + 0x38], rdi
mov rdi, qword [rsp + 0x20]
mov qword [rsi + 0x2b], rdi
movzx edi, byte [rsp + 0x28]
mov byte [rsi + 0x33], dil
mov edi, dword [rsp + 0x29]
mov dword [rsi + 0x34], edi
movzx edi, word [rsp + 0x2d]
mov word [rsi + 0x38], di
movzx edi, byte [rsp + 0x2f]
mov byte [rsi + 0x3a], dil
mov dword [rsi + 8], ecx
mov byte [rsi + 0xc], 9
mov word [rsi + 0xd], 0x862a
mov byte [rsi + 0xf], 0x48
mov qword [rsi + 0x10], rbx
mov qword [rsi + 0x18], rdx
mov dword [rsi + 0x20], r9d
mov dword [rsi + 0x24], r11d
mov byte [rsi + 0x28], r10b
mov byte [rsi + 0x29], r8b
mov byte [rsi + 0x2a], al
mov qword [rsi], 2
add rsp, 0xe0
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
mov rdx, qword [rdi + 0x58]
mov r9d, dword [rdi + 0x60]
movzx eax, byte [rdi + 0x68]
cmp al, 0x17
jne 0x14006b919
mov rbx, qword [rdi + 0x50]
movzx eax, byte [rdi + 0x6a]
movzx r8d, byte [rdi + 0x69]
mov r11d, dword [rdi + 0x64]
mov ecx, 2
mov r10b, 0x17
jmp 0x14006b875
mov ecx, 4
cmp al, 4
jne 0x14006b947
test r9d, r9d
jne 0x14006b947
test rdx, rdx
jne 0x14006b875
cmp byte [rdi + 0x20], 0
je 0x14006b94c
mov dword [rsi + 8], 4
mov qword [rsi + 0x10], 0
jmp 0x14006b8d5
jmp 0x14006b875
mov rdx, qword [rdi]
mov r8, qword [rdi + 8]
lea rcx, [rsp + 0x20]
call fcn.140063b50
mov rax, qword [rsp + 0x20]
cmp rax, 8
jne 0x14006b9c5
mov rdx, qword [rsp + 0x28]
mov r8, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x48]
lea r14, [rsp + 0x80]
mov rcx, r14
call fcn.14006b510
lea r15, [rsp + 0xb0]
mov rcx, r15
mov rdx, rdi
mov r8, rbx
call fcn.14006b510
lea rcx, [rsp + 0x20]
mov rdx, r14
mov r8, r15
call fcn.14006ba50
cmp dword [rsp + 0x20], 2
jne 0x14006ba0c
mov dword [rsi + 8], 4
jmp 0x14006b8d5
mov rcx, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x40]
mov r8, qword [rsp + 0x58]
mov r9, rcx
shr r9, 0x20
cmp eax, 4
mov eax, 4
cmove eax, ecx
movups xmm0, xmmword [rsp + 0x30]
movups xmm1, xmmword [rsp + 0x48]
mov dword [rsi + 8], eax
mov dword [rsi + 0xc], r9d
movups xmmword [rsi + 0x10], xmm0
mov qword [rsi + 0x20], rdx
movups xmmword [rsi + 0x28], xmm1
mov qword [rsi + 0x38], r8
jmp 0x14006b8d5
movups xmm0, xmmword [rsp + 0x70]
movups xmmword [rsi + 0x50], xmm0
movups xmm0, xmmword [rsp + 0x60]
movups xmmword [rsi + 0x40], xmm0
movups xmm0, xmmword [rsp + 0x20]
movups xmm1, xmmword [rsp + 0x30]
movups xmm2, xmmword [rsp + 0x40]
movups xmm3, xmmword [rsp + 0x50]
movups xmmword [rsi + 0x30], xmm3
movups xmmword [rsi + 0x20], xmm2
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
jmp 0x14006b8dc
Function at 0x14006fb10
Capabilities:
Encode data using xor

Disassembly:
mov rax, rdx
sub rdx, rcx
cmp rdx, 0x20
jae fcn.140041aa0
cmp rax, rcx
je 0x14006fb35
cmp rdx, 4
jae 0x14006fb38
xor eax, eax
xor r8d, r8d
jmp 0x14006fbd0
xor eax, eax
ret
mov r8, rdx
and r8, 0xfffffffffffffffc
pxor xmm0, xmm0
xor eax, eax
movdqa xmm2, xmmword [0x1400b06f0]
movdqa xmm3, xmmword [0x1400b0700]
pxor xmm1, xmm1
nop dword [rax]
movzx r9d, word [rcx + rax]
movd xmm4, r9d
movzx r9d, word [rcx + rax + 2]
movd xmm5, r9d
pcmpgtb xmm4, xmm2
punpcklbw xmm4, xmm4
pshuflw xmm4, xmm4, 0xd4
pshufd xmm4, xmm4, 0xd4
pand xmm4, xmm3
paddq xmm0, xmm4
pcmpgtb xmm5, xmm2
punpcklbw xmm5, xmm5
pshuflw xmm4, xmm5, 0xd4
pshufd xmm4, xmm4, 0xd4
pand xmm4, xmm3
paddq xmm1, xmm4
add rax, 4
cmp r8, rax
jne 0x14006fb60
paddq xmm1, xmm0
pshufd xmm0, xmm1, 0xee
paddq xmm0, xmm1
movq rax, xmm0
cmp r8, rdx
je 0x14006fbe7
nop dword [rax]
xor r9d, r9d
cmp byte [rcx + r8], 0xc0
setge r9b
add rax, r9
inc r8
cmp rdx, r8
jne 0x14006fbd0
ret
Function at 0x14007b660
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
movups xmm0, xmmword [0x1400e9fd0]
adc byte [0x1400e9fd0], al

Function at 0x140086cf0
Capabilities:
Create process on windows
Encode data using base64
Get common file path
Query environment variable

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x688
lea rbp, [rsp + 0x80]
movdqa xmmword [rbp + 0x5f0], xmm6
mov qword [rbp + 0x5e8], 0xfffffffffffffffe
mov byte [rbp + 0x458], r9b
mov qword [rbp + 0x448], r8
mov qword [rbp + 0x4f8], rcx
movzx eax, byte [rdx + 0x68]
mov qword [rbp + 0x4d8], rdx
mov r15, qword [rdx + 0x60]
test al, al
jne 0x140086d5e
test r15, r15
jne 0x140086d5e
mov qword [rbp + 0x410], 0
xor r12d, r12d
jmp 0x140087a50
mov qword [rbp + 0x4e0], 0
mov qword [rbp + 0x4f0], 0
test al, al
jne 0x140086fa0
mov qword [rbp + 0x5b8], r15
call qword [sym.imp.kernel32.dll_GetEnvironmentStringsW]
test rax, rax
je 0x14008a422
lea rsi, [rbp + 0x460]
lea rdi, [rbp - 0x10]
lea r14, [rbp + 0x578]
mov qword [rbp + 0x570], rax
mov rbx, rax
nop
call qword [sym.imp.kernel32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov qword [rbp + 0x578], rax
lea rax, [rbp + 0x578]
mov qword [rbp + 0x460], rax
lea rax, [0x140080d00]
mov qword [rbp + 0x468], rax
lea rax, str.failure_getting_env_string_from_OS:
mov qword [rbp - 0x10], rax
mov qword [rbp - 8], 1
mov qword [rbp + 0x10], 0
lea rax, [rbp + 0x460]
mov qword [rbp], rax
mov qword [rbp + 8], 1
lea rdx, str.library_std_src_syswindowsos.rs
lea rcx, [rbp - 0x10]
call fcn.1400a9ee0
jmp 0x14008a54f

Function at 0x14008db70
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rsi
push rdi
sub rsp, 0x88
add byte [rax], al
movdqa xmmword [rsp + 0x70], xmm6
mov rsi, rcx
lea rcx, [rsp + 0x40]
call fcn.14007bfb0
and al, 0xe4
invalid
dec dword [rax - 0x75]
and al, 0x40
and al, 0x40

Function at 0x140090010
Capabilities:
Create thread

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x50
lea rbp, [rsp + 0x50]
mov qword [rbp - 8], 0xfffffffffffffffe
mov rdi, r8
mov r14, rdx
mov rsi, rcx
movzx eax, byte [0x1400f92c0]
mov rcx, qword [0x1400f91f8]
test rcx, rcx
jne 0x14009005c
call qword [sym.imp.kernel32.dll_GetProcessHeap]
test rax, rax
je 0x14009012a
mov rcx, rax
mov qword [0x1400f91f8], rax
mov r8d, 0x10
xor edx, edx
call qword [sym.imp.kernel32.dll_HeapAlloc]
test rax, rax
je 0x14009012a
mov rbx, rax
mov qword [rax], r14
mov qword [rax + 8], rdi
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x10000
lea r8, [0x1400901f0]
xor edi, edi
xor ecx, ecx
mov rdx, rsi
mov r9, rax
call qword [sym.imp.kernel32.dll_CreateThread]
mov rdx, rax
mov edx, eax
mov qword [rbp - 0x20], r14
Function at 0x140090c60
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push rbp
sub rsp, 0x80
lea rbp, [rsp + 0x80]
mov qword [rbp - 8], 0xfffffffffffffffe
xorps xmm0, xmm0
movaps xmmword [rbp - 0x20], xmm0
lea rcx, [rbp - 0x20]
mov edx, 0x10
call qword [sym.imp.advapi32.dll_SystemFunction036]
test al, al
je 0x140090ca3
mov rax, qword [rbp - 0x20]
mov rdx, qword [rbp - 0x18]
add rsp, 0x80
pop rbp
ret
call qword [sym.imp.kernel32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov qword [rbp - 0x10], rax
lea rax, [rbp - 0x10]
mov qword [rbp - 0x30], rax
lea rax, [0x140080d00]
mov qword [rbp - 0x28], rax
lea rax, str.fallback_RNG_broken:
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], 1
mov qword [rbp - 0x40], 0
lea rax, [rbp - 0x30]
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], 1
lea rdx, str.library_std_src_syswindows_rand.rs
lea rcx, [rbp - 0x60]
call fcn.1400a9ee0
ud2

Function at 0x140092c40
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x70
mov rdi, rdx
cmp qword [rdx], 0
jne 0x140092d95
mov rsi, rcx
mov rbx, qword [rdi + 0x18]
mov rax, qword [rbx + 8]
test rax, rax
jne 0x140092c78
mov rdx, qword [rbx + 0x10]
lea rax, [rdx + 0xf]
cmp rax, 0xf
jbe 0x140092d58
xor eax, eax
mov rdx, qword [rbx + 0x10]
cmp rax, rdx
je 0x140092d77
sub rax, rdx
add rdx, qword [rbx]
mov r8, qword [rdi + 0x10]
mov ecx, 0xffffffff
cmp rax, rcx
cmovae rax, rcx
mov dword [rsp + 0x2c], 0
mov rcx, qword [rdi + 0x20]
mov qword [rsp + 0x20], r8
lea r9, [rsp + 0x2c]
mov r8d, eax
call qword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
je 0x140092cd9
mov ecx, dword [rsp + 0x2c]
mov eax, 2
test rcx, rcx
je 0x140092d0b
mov qword [rdi], rax
mov qword [rdi + 8], rcx
mov byte [rsi + 1], 1
jmp 0x140092d0f
call qword [sym.imp.kernel32.dll_GetLastError]
mov rcx, rax
shl rcx, 0x20
or rcx, 2
mov qword [rsp + 0x40], rcx
cmp eax, 0x3e5
je 0x140092d13
cmp eax, 0x6d
jne 0x140092d3e
mov qword [rsp + 0x30], 1
lea rax, [rsp + 0x38]
jmp 0x140092d18
mov byte [rsi + 1], 0
xor eax, eax
jmp 0x140092d44
lea rax, [rsp + 0x30]
mov qword [rax], 0
lea rcx, [rsp + 0x40]
call fcn.14007a090
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
test rax, rax
je 0x140092d4e
cmp rax, 1
je 0x140092cc2
mov qword [rsi + 8], rcx
mov al, 1
mov byte [rsi], al
add rsp, 0x70
pop rbx
pop rdi
pop rsi
ret
mov eax, 1
jmp 0x140092ccc
mov r8d, 0x10
mov rcx, rbx
call fcn.1400ab0a0
mov rax, qword [rbx + 8]
mov rdx, qword [rbx + 0x10]
cmp rax, rdx
jne 0x140092c85
mov r8d, 1
mov rcx, rbx
mov rdx, rax
call fcn.1400ab0a0
mov rax, qword [rbx + 8]
mov rdx, qword [rbx + 0x10]
jmp 0x140092c85
mov qword [rsp + 0x40], 0
lea rdx, [rsp + 0x40]
mov rcx, rdi
call fcn.1400ae600
ud2
Function at 0x140096730
Capabilities:
Move file

Disassembly:
push rbp
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x68
lea rbp, [rsp + 0x60]
mov qword [rbp], 0xfffffffffffffffe
mov rdi, r9
mov rbx, r8
mov r8, rdx
mov rdx, rcx
lea rcx, [rbp - 0x18]
call fcn.14007bfb0
mov rax, qword [rbp - 0x18]
mov rsi, qword [rbp - 0x10]
test rax, rax
je 0x140096855
mov rcx, qword [rbp - 8]
mov qword [rbp - 0x18], rax
mov qword [rbp - 0x10], rsi
mov qword [rbp - 8], rcx
lea rcx, [rbp - 0x40]
lea rdx, [rbp - 0x18]
mov r8b, 1
call fcn.1400828e0
mov rax, qword [rbp - 0x40]
mov rsi, qword [rbp - 0x38]
test rax, rax
je 0x140096855
mov qword [rbp - 0x28], rsi
mov qword [rbp - 0x20], rax
lea rcx, [rbp - 0x18]
mov rdx, rbx
mov r8, rdi
call fcn.14007bfb0
mov rax, qword [rbp - 0x18]
mov rsi, qword [rbp - 0x10]
test rax, rax
je 0x140096836
mov rcx, qword [rbp - 8]
mov qword [rbp - 0x18], rax
mov qword [rbp - 0x10], rsi
mov qword [rbp - 8], rcx
lea rcx, [rbp - 0x40]
lea rdx, [rbp - 0x18]
mov r8b, 1
call fcn.1400828e0
mov rdi, qword [rbp - 0x40]
mov rsi, qword [rbp - 0x38]
test rdi, rdi
je 0x140096836
mov r14, qword [rbp - 0x20]
mov rcx, r14
mov rdx, rdi
mov r8d, 1
call qword [sym.imp.kernel32.dll_MoveFileExW]
test eax, eax
mov r15, qword [rbp - 0x28]
je 0x140096865
test rsi, rsi
je 0x140096826
mov rcx, qword [0x1400f91f8]
xor edx, edx
mov r8, rdi
call qword [sym.imp.kernel32.dll_HeapFree]
test r15, r15
je 0x140096896
mov rcx, qword [0x1400f91f8]
xor esi, esi
jmp 0x14009684a
mov r14, qword [rbp - 0x20]
mov r15, qword [rbp - 0x28]
test r15, r15
je 0x140096855
mov rcx, qword [0x1400f91f8]
xor edx, edx
mov r8, r14
call qword [sym.imp.kernel32.dll_HeapFree]
mov rax, rsi
add rsp, 0x68
pop rbx
pop rdi
pop rsi
pop r14
pop r15
pop rbp
ret
call qword [sym.imp.kernel32.dll_GetLastError]
mov ebx, eax
shl rbx, 0x20
or rbx, 2
test rsi, rsi
je 0x14009688c
mov rcx, qword [0x1400f91f8]
xor edx, edx
mov r8, rdi
call qword [sym.imp.kernel32.dll_HeapFree]
mov rsi, rbx
test r15, r15
jne 0x140096843
jmp 0x140096855
xor esi, esi
jmp 0x140096855

Function at 0x1400a63d4
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.kernel32.dll_GetModuleHandleW]
test rax, rax
je 0x1400a641e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400a641e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400a641e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400a641e
cmp dword [rcx + 0x84], 0xe
jbe 0x1400a641e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400a6420
xor al, al
add rsp, 0x28
ret
Function at 0x1400ac340
Capabilities:
Link many functions at runtime

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
lea rcx, str.api_ms_win_core_synch_l1_2_0.dll
call qword [sym.imp.kernel32.dll_GetModuleHandleA]
test rax, rax
je 0x1400ac3ac
mov rdi, rax
lea rdx, str.WaitOnAddress
mov rcx, rax
call qword [sym.imp.kernel32.dll_GetProcAddress]
test rax, rax
je 0x1400ac3ac
mov rsi, rax
lea rdx, str.WakeByAddressSingle
mov rcx, rdi
call qword [sym.imp.kernel32.dll_GetProcAddress]
test rax, rax
je 0x1400ac3ac
mov rbx, rax
xor edi, edi
movzx eax, byte [0x1400f92c0]
mov rcx, qword [0x1400f91f8]
test rcx, rcx
jne 0x1400ac460
jmp 0x1400ac44b
lea rcx, [0x1400e1d08]
call qword [sym.imp.kernel32.dll_GetModuleHandleA]
test rax, rax
je 0x1400ac4c3
mov rsi, rax
lea rdx, str.NtCreateKeyedEvent
mov rcx, rax
call qword [sym.imp.kernel32.dll_GetProcAddress]
test rax, rax
je 0x1400ac4c3
mov rbx, rax
lea rdx, str.NtReleaseKeyedEvent
mov rcx, rsi
call qword [sym.imp.kernel32.dll_GetProcAddress]
test rax, rax
je 0x1400ac4c3
mov rdi, rax
lea rdx, str.NtWaitForKeyedEvent
mov rcx, rsi
call qword [sym.imp.kernel32.dll_GetProcAddress]
test rax, rax
je 0x1400ac4c3
mov rsi, rax
lea rcx, [rsp + 0x20]
mov edx, 0xc0000000
xor r8d, r8d
xor r9d, r9d
call rbx
test eax, eax
jne 0x1400ac4c3
mov rbx, qword [rsp + 0x20]
movzx eax, byte [0x1400f92c0]
mov rcx, qword [0x1400f91f8]
test rcx, rcx
jne 0x1400ac460
call qword [sym.imp.kernel32.dll_GetProcessHeap]
test rax, rax
je 0x1400ac4ca
mov rcx, rax
mov qword [0x1400f91f8], rax
mov r8d, 0x18
xor edx, edx
call qword [sym.imp.kernel32.dll_HeapAlloc]
test rax, rax
je 0x1400ac4ca
mov r14, rax
mov qword [rax], rdi
mov qword [rax + 8], rsi
mov qword [rax + 0x10], rbx
xor eax, eax
lock cmpxchg qword [0x1400f9128], r14
je 0x1400ac4b6
mov rsi, rax
cmp qword [r14], 0
je 0x1400ac4a1
mov rcx, qword [r14 + 0x10]
call qword [sym.imp.kernel32.dll_CloseHandle]
mov rcx, qword [0x1400f91f8]
xor edx, edx
mov r8, r14
call qword [sym.imp.kernel32.dll_HeapFree]
mov r14, rsi
mov rax, r14
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
call fcn.1400ac4e0
ud2
mov ecx, 8
mov edx, 0x18
call fcn.1400a9e00
ud2
Function at 0x140001180
Capabilities:
Terminate process

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbx, qword [0x140015460]
mov rbp, qword [sym.imp.KERNEL32.dll_Sleep]
xor edi, edi
mov rax, qword gs:[0x30]
mov rsi, qword [rax + 8]
jmp 0x1400011c0
cmp rsi, rax
je 0x140001320
mov ecx, 0x3e8
call rbp
mov rax, rdi
lock cmpxchg qword [rbx], rsi
test rax, rax
jne 0x1400011b0
mov rsi, qword [0x140015470]
xor edi, edi
mov eax, dword [rsi]
cmp eax, 1
je 0x140001337
mov eax, dword [rsi]
test eax, eax
je 0x1400013a0
mov dword [0x140018008], 1
mov eax, dword [rsi]
cmp eax, 1
je 0x14000134c
test edi, edi
je 0x14000136d
mov rax, qword [0x1400153d0]
mov rax, qword [rax]
test rax, rax
je 0x140001223
xor r8d, r8d
mov edx, 2
xor ecx, ecx
call rax
call fcn.140001930
mov rcx, qword [0x1400154f0]
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rdx, qword [0x140015450]
lea rcx, section..text
mov qword [rdx], rax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__set_invalid_parameter_handler
call fcn.140001740
mov ebx, dword [0x140018028]
lea edi, [rbx + 1]
movsxd rdi, edi
shl rdi, 3
mov rcx, rdi
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
mov r12, qword [0x140018020]
mov rbp, rax
test ebx, ebx
jle 0x1400013c0
sub rdi, 8
xor ebx, ebx
mov rcx, qword [r12 + rbx]
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
lea rsi, [rax + 1]
mov rcx, rsi
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
mov r8, rsi
mov qword [rbp + rbx], rax
mov rdx, qword [r12 + rbx]
mov rcx, rax
add rbx, 8
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
cmp rdi, rbx
jne 0x140001280
add rdi, rbp
mov qword [rdi], 0
mov qword [0x140018020], rbp
call fcn.140001540
mov rax, qword [0x1400153e0]
mov r8, qword [0x140018018]
mov ecx, dword [0x140018028]
mov rax, qword [rax]
mov qword [rax], r8
mov rdx, qword [0x140018020]
call fcn.1400029c0
mov ecx, dword [0x14001800c]
mov dword [0x140018010], eax
test ecx, ecx
je 0x1400013c8
mov edx, dword [0x140018008]
test edx, edx
je 0x140001380
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rsi, qword [0x140015470]
mov edi, 1
mov eax, dword [rsi]
cmp eax, 1
jne 0x1400011e1
mov ecx, 0x1f
call fcn.1400026e0
mov eax, dword [rsi]
cmp eax, 1
jne 0x140001200
mov rdx, qword [0x140015490]
mov rcx, qword [0x140015480]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
mov dword [rsi], 2
test edi, edi
jne 0x140001208
xor eax, eax
xchg qword [rbx], rax
jmp 0x140001208
call sub.api_ms_win_crt_runtime_l1_1_0.dll__cexit
mov eax, dword [0x140018010]
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rdx, qword [0x1400154b0]
mov rcx, qword [0x1400154a0]
mov dword [rsi], 1
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
jmp 0x1400011f5
mov rdi, rax
jmp 0x1400012b5
mov ecx, eax
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
nop