joyce8/EMBER2024-capa huggingface dataset:
Function at 0x141a560c0
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x50
mov rax, qword [0x141b3ab80]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rdi, rcx
mov ebx, 0x10
nop dword [rax]
nop word [rax + rax]
mov edx, 0x10
lea rcx, [rsp + 0x28]
call qword [sym.imp.ADVAPI32.dll_SystemFunction036]
nop
test al, al
jne 0x141a56135
sub ebx, 1
jne 0x141a560f0
lea rbx, [rsp + 0x38]
nop
lea rcx, [rsp + 0x20]
call fcn.141af794c
mov eax, dword [rsp + 0x20]
mov dword [rbx], eax
add rbx, 4
lea rax, [rsp + 0x48]
cmp rbx, rax
jne 0x141a56110
movups xmm0, xmmword [rsp + 0x38]
jmp 0x141a5613a
movups xmm0, xmmword [rsp + 0x28]
mov rax, rdi
movups xmmword [rdi], xmm0
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.141ae2a00
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret

Function at 0x141a56160
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push rbx
sub rsp, 0x9f0
mov rax, qword [0x141b3ab80]
xor rax, rsp
mov qword [rsp + 0x9e0], rax
mov dword [rcx + 0x1388], 0xffffffff
mov edx, 1
mov dword [rcx], edx
mov r8d, 0x1571
mov dword [rcx + 8], r8d
mov rbx, rcx
add rcx, 0xc
nop dword [rax]
mov eax, r8d
lea rcx, [rcx + 4]
shr eax, 0x1e
xor eax, r8d
imul r8d, eax, 0x6c078965
add r8d, edx
inc rdx
mov dword [rcx - 4], r8d
cmp rdx, 0x270
jb 0x141a561a0
lea r8, [rsp + 0x9e0]
mov dword [rbx + 4], 0x270
lea rdx, [rsp + 0x20]
lea rcx, [0x141b3ddcc]
call fcn.141a55f70
xor r8d, r8d
mov edx, r8d
nop dword [rax]
mov ecx, dword [rsp + rdx*4 + 0x20]
mov eax, ecx
or eax, r8d
mov dword [rbx + rdx*4 + 8], ecx
shr ecx, 0x1f
test rdx, rdx
cmovne ecx, eax
inc rdx
mov r8d, ecx
cmp rdx, 0x270
jb 0x141a561f0
test ecx, ecx
jne 0x141a56220
mov dword [rbx + 8], 0x80000000
mov dword [rbx + 4], 0x270
mov rcx, qword [rsp + 0x9e0]
xor rcx, rsp
call fcn.141ae2a00
add rsp, 0x9f0
pop rbx
ret
Function at 0x141a5a110
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x90
mov rax, qword [0x141b3ab80]
xor rax, rsp
mov qword [rsp + 0x88], rax
mov rbx, rdx
mov qword [rsp + 0x78], rdx
xor edi, edi
mov dword [rsp + 0x30], edi
mov ecx, 0x10
call qword [sym.imp.KERNEL32.dll_GetUserGeoID]
mov word [rsp + 0x20], di
mov r9d, 3
lea r8, [rsp + 0x80]
mov edx, 4
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_GetGeoInfoW]
cmp eax, 3
jne 0x141a5a1a2
mov qword [rsp + 0x40], 3
lea rax, [rsp + 0x80]
mov qword [rsp + 0x48], rax
movaps xmm0, xmmword [rsp + 0x40]
movdqa xmmword [rsp + 0x40], xmm0
lea rcx, [rsp + 0x40]
call fcn.1419c8c00
movzx esi, ax
jmp 0x141a5a1a4
mov esi, edi
lea rcx, [rsp + 0x60]
call fcn.141a5a470
nop
mov qword [rbx], rdi
mov qword [rbx + 8], rdi
mov qword [rbx + 0x10], rdi
mov dword [rsp + 0x30], 1
mov edi, 0xffffffff
test si, si
je 0x141a5a238
movzx r8d, si
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x40]
call fcn.141a54f00
mov rdx, rax
mov rcx, qword [rbx]
mov rax, qword [rax]
mov qword [rbx], rax
mov qword [rdx], rcx
mov rcx, qword [rbx + 8]
mov rax, qword [rdx + 8]
mov qword [rbx + 8], rax
mov qword [rdx + 8], rcx
mov rcx, qword [rbx + 0x10]
mov rax, qword [rdx + 0x10]
mov qword [rbx + 0x10], rax
mov qword [rdx + 0x10], rcx
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x141a5a238
mov eax, edi
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x141a5a238
mov edx, 1
mov r8d, 8
mov rcx, qword [rsp + 0x40]
call fcn.1419a7030
cmp qword [rbx + 0x10], 0
jne 0x141a5a2a8
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x40]
call fcn.141a54d90
mov rdx, rax
mov rcx, qword [rbx]
mov rax, qword [rax]
mov qword [rbx], rax
mov qword [rdx], rcx
mov rcx, qword [rbx + 8]
mov rax, qword [rdx + 8]
mov qword [rbx + 8], rax
mov qword [rdx + 8], rcx
mov rcx, qword [rbx + 0x10]
mov rax, qword [rdx + 0x10]
mov qword [rbx + 0x10], rax
mov qword [rdx + 0x10], rcx
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x141a5a2a8
mov eax, edi
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x141a5a2a8
mov edx, 1
mov r8d, 8
mov rcx, qword [rsp + 0x40]
call fcn.1419a7030
nop
mov rax, qword [rsp + 0x60]
test rax, rax
je 0x141a5a2d0
lock xadd dword [rax], edi
cmp edi, 1
jne 0x141a5a2d0
mov edx, 1
mov r8d, 8
mov rcx, qword [rsp + 0x60]
call fcn.1419a7030
mov rax, rbx
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.141ae2a00
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x141a6f1a0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r13
push r14
push r15
sub rsp, 0x30
mov r14, rdx
mov r13, rcx
mov rdi, qword [rdx]
mov rax, qword [rdx + 8]
movzx ebp, byte [rdi + rax]
mov byte [rdi + rax], 0xff
mov esi, ebp
shl rsi, 5
mov rax, qword [rdi + 0x80]
mov rcx, qword [rsi + rax + 0x18]
test rcx, rcx
je 0x141a6f206
nop word [rax + rax]
mov rbx, qword [rcx + 8]
mov edx, 0x10
call fcn.141ae2a20
mov rcx, rbx
test rbx, rbx
jne 0x141a6f1f0
mov rcx, qword [rdi + 0x80]
movzx eax, byte [rdi + 0x89]
mov byte [rsi + rcx], al
mov byte [rdi + 0x89], bpl
dec qword [r13 + 8]
movups xmm0, xmmword [r14]
movups xmmword [rsp + 0x20], xmm0
movabs rbp, 0xe38e38e38e38e39
mov rsi, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x20]
nop
inc rsi
mov qword [rsp + 0x28], rsi
cmp rsi, 0x80
jne 0x141a6f28f
xor esi, esi
mov qword [rsp + 0x28], rsi
add rbx, 0x90
mov rcx, rbx
sub rcx, qword [r13 + 0x20]
mov rax, rbp
imul rcx
sar rdx, 3
mov rax, rdx
shr rax, 0x3f
add rdx, rax
mov rax, qword [r13 + 0x10]
shr rax, 7
cmp rdx, rax
cmove rbx, qword [r13 + 0x20]
mov qword [rsp + 0x20], rbx
movzx edx, byte [rsi + rbx]
cmp rdx, 0xff
je 0x141a6f3e8
shl rdx, 5
add rdx, qword [rbx + 0x80]
mov r10, qword [r13 + 0x10]
movsxd rcx, dword [rdx]
shl rcx, 4
movsxd rax, dword [rdx + 4]
add rcx, rax
add rcx, qword [rdx + 8]
xor rcx, qword [r13 + 0x18]
lea rax, [r10 - 1]
and rcx, rax
mov r9, qword [r13 + 0x20]
mov rax, rcx
shr rax, 7
lea r8, [rax + rax*8]
shl r8, 4
add r8, r9
and ecx, 0x7f
cmp r8, rbx
jne 0x141a6f2f3
cmp rcx, rsi
je 0x141a6f240
cmp r8, qword [r14]
jne 0x141a6f2fe
cmp rcx, qword [r14 + 8]
je 0x141a6f33e
inc rcx
cmp rcx, 0x80
jne 0x141a6f2e5
xor ecx, ecx
add r8, 0x90
mov rdx, r8
sub rdx, r9
mov rax, rbp
imul rdx
sar rdx, 3
mov rax, rdx
shr rax, 0x3f
add rdx, rax
mov rax, r10
shr rax, 7
cmp rdx, rax
jne 0x141a6f2e5
mov r8, r9
jmp 0x141a6f2e5
mov rdi, qword [r14]
cmp rbx, rdi
jne 0x141a6f363
mov rcx, qword [r14 + 8]
movzx eax, byte [rdi + rsi]
mov byte [rdi + rcx], al
mov byte [rdi + rsi], 0xff
movups xmm0, xmmword [rsp + 0x20]
movups xmmword [r14], xmm0
jmp 0x141a6f240
mov r15, qword [r14 + 8]
movzx eax, byte [rdi + 0x88]
cmp byte [rdi + 0x89], al
jne 0x141a6f37e
mov rcx, rdi
call fcn.141a0ddd0
movzx eax, byte [rdi + 0x89]
mov byte [r15 + rdi], al
movzx r8d, byte [rdi + 0x89]
shl r8, 5
add r8, qword [rdi + 0x80]
movzx eax, byte [r8]
mov byte [rdi + 0x89], al
movzx edx, byte [rsi + rbx]
mov byte [rsi + rbx], 0xff
mov ecx, edx
shl rcx, 5
add rcx, qword [rbx + 0x80]
movups xmm0, xmmword [rcx]
movups xmmword [r8], xmm0
movups xmm1, xmmword [rcx + 0x10]
movups xmmword [r8 + 0x10], xmm1
movzx eax, byte [rbx + 0x89]
mov byte [rcx], al
mov byte [rbx + 0x89], dl
movups xmm0, xmmword [rsp + 0x20]
movups xmmword [r14], xmm0
jmp 0x141a6f240
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop r13
ret
Function at 0x141a6f710
Capabilities:
Encrypt data using rc4 prga

Disassembly:
test r8, r8
je 0x141a6f9ad
mov r11, rsp
mov byte [r11 + 0x20], r9b
mov qword [r11 + 0x18], r8
mov qword [r11 + 0x10], rdx
push rbp
sub rsp, 0x80
mov qword [r11 + 8], rbx
mov rax, rdx
mov qword [r11 - 0x10], rsi
mov rbp, rcx
mov qword [r11 - 0x18], rdi
mov qword [r11 - 0x20], r12
mov qword [r11 - 0x28], r13
xor r13d, r13d
mov qword [r11 - 0x30], r14
mov qword [r11 - 0x38], r15
nop word [rax + rax]
mov r12, qword [rax + 0x20]
add r12, r13
mov qword [rsp + 0x20], r12
xor r14d, r14d
nop
movzx eax, byte [r12 + r14]
cmp al, 0xff
je 0x141a6f951
mov edi, eax
shl rdi, 5
add rdi, qword [r12 + 0x80]
test r9b, r9b
je 0x141a6f89a
movsxd r15, dword [rdi]
mov rsi, qword [rdi + 8]
mov rcx, r15
movsxd rbx, dword [rdi + 4]
mov r9, qword [rbp + 0x10]
mov r11, qword [rbp + 0x20]
dec r9
shl rcx, 4
add rcx, rsi
add rcx, rbx
xor rcx, qword [rbp + 0x18]
and r9, rcx
mov rax, r9
and r9d, 0x7f
shr rax, 7
mov qword [rsp + 0x30], r9
lea r8, [rax + rax*8]
shl r8, 4
add r8, r11
mov qword [rsp + 0x28], r8
movzx eax, byte [r9 + r8]
cmp rax, 0xff
je 0x141a6f893
movabs r12, 0xe38e38e38e38e39
nop dword [rax]
shl rax, 5
add rax, qword [r8 + 0x80]
cmp r15d, dword [rax]
jne 0x141a6f825
cmp rsi, qword [rax + 8]
jne 0x141a6f825
cmp ebx, dword [rax + 4]
jne 0x141a6f825
mov rcx, qword [rax + 0x10]
cmp qword [rdi + 0x10], rcx
je 0x141a6f88e
inc r9
mov qword [rsp + 0x30], r9
cmp r9, 0x80
jne 0x141a6f87d
add r8, 0x90
xor r9d, r9d
mov rcx, r8
mov qword [rsp + 0x30], r9
sub rcx, r11
mov qword [rsp + 0x28], r8
mov rax, r12
imul rcx
sar rdx, 3
mov rax, rdx
shr rax, 0x3f
add rdx, rax
mov rax, qword [rbp + 0x10]
shr rax, 7
cmp rdx, rax
jne 0x141a6f87d
mov r8, r11
mov qword [rsp + 0x28], r11
mov r11, qword [rbp + 0x20]
movzx eax, byte [r8 + r9]
cmp rax, 0xff
jne 0x141a6f800
mov r12, qword [rsp + 0x20]
lea rax, [rsp + 0x28]
jmp 0x141a6f8b0
mov rcx, qword [rbp + 0x20]
lea rax, [rsp + 0x38]
add rcx, r13
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x38], rcx
mov rbx, qword [rax]
mov rsi, qword [rax + 8]
movzx eax, byte [rbx + 0x88]
cmp byte [rbx + 0x89], al
jne 0x141a6f8ce
mov rcx, rbx
call fcn.141a0ddd0
movzx edx, byte [rbx + 0x89]
mov rax, qword [rbx + 0x80]
mov r8d, edx
shl r8, 5
movzx ecx, byte [r8 + rax]
mov byte [rbx + 0x89], cl
mov byte [rsi + rbx], dl
mov rax, qword [rbx + 0x80]
movups xmm0, xmmword [rdi]
movups xmmword [r8 + rax], xmm0
movsd xmm1, qword [rdi + 0x10]
movsd qword [r8 + rax + 0x10], xmm1
mov rbx, qword [rdi + 0x18]
lea rdi, [rax + 0x18]
add rdi, r8
test rbx, rbx
je 0x141a6f948
nop dword [rax]
mov ecx, 0x10
call fcn.141ae2a28
mov rcx, qword [rbx]
mov qword [rax], rcx
mov qword [rax + 8], 0
mov qword [rdi], rax
lea rdi, [rax + 8]
mov rbx, qword [rbx + 8]
test rbx, rbx
jne 0x141a6f920
movzx r9d, byte [rsp + 0xa8]
inc r14
cmp r14, 0x80
jb 0x141a6f770
mov rax, qword [rsp + 0x98]
add r13, 0x90
sub qword [rsp + 0xa0], 1
jne 0x141a6f760
mov r15, qword [rsp + 0x50]
mov r14, qword [rsp + 0x58]
mov r13, qword [rsp + 0x60]
mov r12, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
mov rbx, qword [rsp + 0x90]
add rsp, 0x80
pop rbp
ret
Function at 0x141a75bd0
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x50
mov rbx, rcx
lea rax, [0x1400bff98]
mov qword [rcx], rax
xor r15d, r15d
cmp byte [rcx + 0x100], r15b
je 0x141a75d3e
cmp qword [rcx + 0xf8], r15
je 0x141a75d3e
mov rdi, qword [rcx + 0xf0]
mov rcx, rdi
call fcn.141a77750
test rax, rax
je 0x141a75d3e
cmp byte [rdi + 0x28], r15b
jne 0x141a75d3e
mov rcx, rdi
call fcn.141a77750
test rax, rax
je 0x141a75d3e
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x38], xmm0
mov qword [rsp + 0x48], r15
lea rcx, [rsp + 0x38]
call fcn.141993d90
mov rsi, rax
cmp qword [rbx + 0xf8], r15
je 0x141a75c8d
mov rdi, qword [rbx + 0xf0]
mov rcx, rdi
call fcn.141a77750
test rax, rax
je 0x141a75c8d
cmp byte [rdi + 0x28], r15b
jne 0x141a75c8d
mov rcx, rdi
call fcn.141a77750
jmp 0x141a75c90
mov rax, r15
mov rdx, rsi
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov esi, eax
mov edi, 0xffffffff
test eax, eax
je 0x141a75d16
mov rax, qword [rbx + 0xf0]
mov rdx, qword [rax + 0x10]
mov qword [rsp + 0x20], rdx
mov rcx, qword [rax + 0x18]
mov qword [rsp + 0x28], rcx
mov rax, qword [rax + 0x20]
mov qword [rsp + 0x30], rax
test rdx, rdx
je 0x141a75cd1
lock inc dword [rdx]
lea rcx, [rsp + 0x20]
call fcn.141993d90
mov r8, rax
lea rdx, [0x1400c00c0]
mov ecx, esi
call fcn.141996450
mov rcx, qword [rsp + 0x20]
test rcx, rcx
je 0x141a75d16
mov eax, edi
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x141a75d16
mov edx, 2
mov r8d, 8
mov rcx, qword [rsp + 0x20]
call fcn.1419a7030
mov rax, qword [rsp + 0x38]
test rax, rax
je 0x141a75d3e
lock xadd dword [rax], edi
cmp edi, 1
jne 0x141a75d3e
mov edx, 2
mov r8d, 8
mov rcx, qword [rsp + 0x38]
call fcn.1419a7030
mov esi, r15d
cmp qword [rbx + 0xf8], rsi
jle 0x141a75da5
mov r14, r15
nop dword [rax]
mov rax, qword [rbx + 0xe8]
test rax, rax
je 0x141a75d63
mov eax, dword [rax]
cmp eax, 1
jle 0x141a75d77
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rbx + 0xe8]
call fcn.141a78ae0
mov rbp, qword [rbx + 0xf0]
mov rcx, qword [rbp + r14 + 8]
test rcx, rcx
je 0x141a75d8e
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rbp + r14 + 8], r15
inc esi
add r14, 0x30
movsxd rax, esi
cmp rax, qword [rbx + 0xf8]
jl 0x141a75d50
lea rcx, [rbx + 0xe8]
call fcn.141a75b00
mov rcx, rbx
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
add rsp, 0x50
pop r15
pop r14
pop rdi
jmp fcn.141a24eb0
Function at 0x141a77240
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x60
mov r12d, edx
mov r14, rcx
mov r8d, 2
mov rdx, rcx
lea rcx, [rsp + 0x48]
call fcn.141a76400
nop
xor r13d, r13d
mov edi, r13d
cmp qword [rsp + 0x58], rdi
jle 0x141a773c1
mov r15d, r12d
or r15d, 0x2001f
mov esi, r13d
mov ebp, 0xffffffff
nop dword [rax]
mov rcx, qword [rsp + 0x50]
mov rdx, qword [rcx + rsi]
mov qword [rsp + 0x30], rdx
mov rax, qword [rcx + rsi + 8]
mov qword [rsp + 0x38], rax
mov rax, qword [rcx + rsi + 0x10]
mov qword [rsp + 0x40], rax
test rdx, rdx
je 0x141a772ca
lock inc dword [rdx]
mov qword [rsp + 0xa0], r13
lea rcx, [rsp + 0x30]
call fcn.141993d90
mov rdx, rax
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x20], rax
mov r9d, r15d
xor r8d, r8d
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x141a7733c
mov rbx, qword [rsp + 0xa0]
test rbx, rbx
je 0x141a7733c
mov edx, r12d
mov rcx, rbx
call fcn.141a77240
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rcx, [rsp + 0x30]
call fcn.141993d90
mov rdx, rax
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov ebx, eax
test eax, eax
jne 0x141a7737c
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x141a77366
mov eax, ebp
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x141a77366
mov r8d, 8
mov edx, 2
mov rcx, qword [rsp + 0x30]
call fcn.1419a7030
inc edi
add rsi, 0x18
movsxd rax, edi
cmp rax, qword [rsp + 0x58]
jl 0x141a772a0
jmp 0x141a773c1
lea rcx, [rsp + 0x30]
call fcn.141993d90
mov r8, rax
lea rdx, [0x1400bff60]
mov ecx, ebx
call fcn.141996450
nop
mov rax, qword [rsp + 0x30]
test rax, rax
je 0x141a773c1
lock xadd dword [rax], ebp
cmp ebp, 1
jne 0x141a773c1
mov edx, 2
mov r8d, 8
mov rcx, qword [rsp + 0x30]
call fcn.1419a7030
nop
lea rcx, [rsp + 0x48]
call fcn.14197a690
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x141a7c140
Capabilities:
Read file on windows
Read pipe

Disassembly:
push rbx
push rsi
push rdi
push r14
push r15
sub rsp, 0x30
xor r14d, r14d
lea rax, [rsp + 0x60]
cmp dword [rcx + 0x9c], 1
mov rbx, rcx
mov rcx, qword [rcx + 0x10]
mov edi, r14d
mov r15d, 0x1000
mov qword [rsp + 0x28], r14
cmove edi, r15d
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_PeekNamedPipe]
test eax, eax
je 0x141a7c191
mov eax, dword [rsp + 0x60]
jmp 0x141a7c1a0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbx + 0x98], eax
mov eax, r14d
cmp eax, edi
cmovb eax, edi
mov edi, eax
test eax, eax
je 0x141a7c2fc
cmp dword [rbx + 0x98], r14d
jne 0x141a7c2fc
mov qword [rsp + 0x70], rbp
mov rax, qword [rbx + 0x50]
test rax, rax
je 0x141a7c1df
sub rax, qword [rbx + 0x70]
cmp rdi, rax
jle 0x141a7c1df
mov rdi, rax
test rax, rax
jle 0x141a7c2f7
mov rdx, rdi
lea rcx, [rbx + 0x58]
call fcn.141a36780
lea rcx, [rbx + 0x30]
mov r8d, edi
mov qword [rsp + 0x20], rcx
lea r9, [rsp + 0x60]
mov rcx, qword [rbx + 0x10]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x141a7c22d
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x141a7c2df
test eax, eax
je 0x141a7c22d
cmp eax, 0xea
jne 0x141a7c2c8
mov eax, dword [rsp + 0x60]
lea rcx, [rbx + 0x58]
add qword [rbx + 0x88], rax
mov byte [rbx + 0xa2], 1
mov rdx, qword [rbx + 0x70]
sub rdx, qword [rbx + 0x80]
sub rdx, qword [rbx + 0x88]
call fcn.141a35930
cmp dword [rbx + 0x9c], 2
je 0x141a7c2f7
mov rcx, qword [rbx + 0x10]
lea rax, [rsp + 0x68]
mov qword [rsp + 0x28], r14
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_PeekNamedPipe]
test eax, eax
je 0x141a7c292
mov eax, dword [rsp + 0x68]
jmp 0x141a7c2a1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbx + 0x98], eax
mov eax, r14d
cmp eax, r15d
cmovb eax, r15d
mov edi, eax
cmp dword [rbx + 0x98], r14d
je 0x141a7c1c1
mov rbp, qword [rsp + 0x70]
add rsp, 0x30
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
mov rbp, qword [rsp + 0x70]
mov dword [rbx + 0x98], eax
add rsp, 0x30
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
mov rdx, qword [rbx + 0x18]
xor r8d, r8d
mov rcx, qword [rbx + 0x28]
mov byte [rbx + 0xa0], 1
call qword [sym.imp.KERNEL32.dll_SetThreadpoolWait]
mov rbp, qword [rsp + 0x70]
add rsp, 0x30
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
Function at 0x141a7cd50
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x40
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x141a7ce49
mov qword [rsp + 0x60], rbp
lea rbp, [rcx + 0x30]
mov qword [rsp + 0x68], rsi
mov qword [rsp + 0x30], r14
lea r14, [0x1400479ac]
mov qword [rsp + 0x38], rdi
mov rax, qword [rbx + 0x58]
lea r9, [rsp + 0x50]
mov rcx, r14
mov qword [rsp + 0x20], rbp
mov r8, qword [rax + 0x20]
sub r8, qword [rax + 0x18]
mov rdx, qword [rax + 0x18]
mov rax, qword [rax + 8]
test rax, rax
cmovne rcx, rax
add rdx, rcx
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x141a7cdd1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp eax, 0x3e5
je 0x141a7ce1d
mov ecx, eax
test eax, eax
jne 0x141a7cdf2
mov edx, dword [rsp + 0x50]
lea rcx, [rbx + 0x50]
add qword [rbx + 0x78], rdx
mov byte [rbx + 0x92], 1
call fcn.141a35f10
cmp qword [rbx + 0x68], 0
je 0x141a7ce35
jmp 0x141a7cd83
sub ecx, 0xe8
je 0x141a7ce15
sub ecx, 1
je 0x141a7ce15
cmp ecx, 0x2fa
je 0x141a7ce15
lea rdx, [0x1400c0780]
mov ecx, edi
call fcn.141996450
mov dword [rbx + 0x88], edi
jmp 0x141a7ce35
mov rdx, qword [rbx + 0x18]
xor r8d, r8d
mov rcx, qword [rbx + 0x28]
mov byte [rbx + 0x91], 1
call qword [sym.imp.KERNEL32.dll_SetThreadpoolWait]
mov rdi, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x60]
mov r14, qword [rsp + 0x30]
add rsp, 0x40
pop rbx
ret
Function at 0x141a7dad0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
mov rbp, rsp
sub rsp, 0x70
mov rax, rdx
mov rbx, rcx
xor esi, esi
mov dword [rbp - 0x50], esi
mov qword [rcx], rsi
mov qword [rcx + 8], rsi
mov qword [rcx + 0x10], rsi
mov dword [rbp - 0x50], 1
lea r9, [rbp + 0x30]
xor r8d, r8d
mov edx, 0x4000
mov rcx, rax
call sub.SHELL32.dll_SHGetKnownFolderPath
test eax, eax
js 0x141a7dc18
mov rdi, 0xffffffffffffffff
mov r8, rdi
mov rdx, qword [rbp + 0x30]
lea rcx, [rbp - 0x18]
call fcn.14198daf0
nop
mov rcx, qword [rax]
mov qword [rbp - 0x30], rcx
mov rcx, qword [rax + 8]
mov qword [rbp - 0x28], rcx
mov rcx, qword [rax + 0x10]
mov qword [rbp - 0x20], rcx
mov qword [rax], rsi
mov qword [rax + 8], rsi
mov qword [rax + 0x10], rsi
mov dword [rbp - 0x50], 0x11
mov rcx, qword [rbp - 0x18]
test rcx, rcx
je 0x141a7db87
mov eax, edi
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x141a7db87
mov edx, 2
mov r8d, 8
mov rcx, qword [rbp - 0x18]
call fcn.1419a7030
nop
lea rdx, [rbp - 0x30]
lea rcx, [rbp - 0x48]
call fcn.1419a0780
nop
mov rcx, qword [rbp - 0x30]
test rcx, rcx
je 0x141a7dbbd
mov eax, edi
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x141a7dbbd
mov edx, 2
mov r8d, 8
mov rcx, qword [rbp - 0x30]
call fcn.1419a7030
mov r9, qword [rbx]
mov rax, qword [rbp - 0x48]
mov qword [rbx], rax
mov qword [rbp - 0x48], r9
mov rcx, qword [rbx + 8]
mov rax, qword [rbp - 0x40]
mov qword [rbx + 8], rax
mov qword [rbp - 0x40], rcx
mov rcx, qword [rbx + 0x10]
mov rax, qword [rbp - 0x38]
mov qword [rbx + 0x10], rax
mov qword [rbp - 0x38], rcx
test r9, r9
je 0x141a7dc0e
lock xadd dword [r9], edi
cmp edi, 1
jne 0x141a7dc0e
mov edx, 2
mov r8d, 8
mov rcx, qword [rbp - 0x48]
call fcn.1419a7030
mov rcx, qword [rbp + 0x30]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rax, rbx
mov rbx, qword [rsp + 0x98]
add rsp, 0x70
pop rdi
pop rsi
pop rbp
ret
Function at 0x141aa4330
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x20], r9
mov word [rsp + 0x18], r8w
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x98
mov rdi, qword [rsp + 0x100]
mov rsi, r9
mov r13, qword [rsp + 0x108]
xor r9d, r9d
mov rbx, rdx
mov qword [rsp + 0x30], r9
xor edx, edx
mov qword [rsp + 0x40], r9
mov r8, qword [rdi + 0x38]
lea rax, [rsi - 0x50]
mov r11d, dword [r13 + 0xd0]
mov ebp, r9d
mov r12, qword [rdi + 0x30]
mov r14d, r11d
mov qword [rsp + 0x78], rax
mov r15d, r9d
mov rax, r8
shr r14d, 0x13
div rsi
mov dword [r12 + 0x30], r9d
and r14d, 1
mov dword [r12 + 0x6c], r9d
mov dword [r12 + 0x68], 0xffffffff
mov qword [r12 + 0x50], rcx
mov qword [r12 + 0x58], rcx
shr r11d, 0x11
and r11d, 1
mov qword [r12 + 0x60], r9
sub r8, rdx
mov qword [r12 + 0x78], r9
mov qword [rsp + 0x58], r8
mov dword [rsp + 0x108], r9d
mov dword [rsp + 0x38], r14d
lea rax, [r8 + r12]
mov dword [rsp + 0xe0], r11d
mov qword [rsp + 0x60], rax
mov r8d, r9d
mov qword [r12 + 0x70], 0xffffffffffffffff
mov dword [rsp + 0xe8], r9d
mov dword [rsp + 0x50], 0xdc00
nop dword [rax]
nop word [rax + rax]

Function at 0x141ad5000
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push r14
sub rsp, 0x50
mov r14, rdx
test rcx, rcx
je 0x141ad5185
lea rax, [rdx - 1]
cmp rax, 0xffffffffffffdffe
ja 0x141ad5185
cmp rcx, rdx
mov rbp, rdx
mov rdx, r8
cmovbe rbp, rcx
mov ecx, 0x20
add rbp, 0x1fff
and rbp, 0xffffffffffffe000
call fcn.141a97df0
mov rbx, rax
test rax, rax
je 0x141ad5185
add r14, 0x1fff
mov qword [rsp + 0x60], rsi
and r14, 0xffffffffffffe000
mov qword [rsp + 0x68], rdi
cmp rbp, r14
ja 0x141ad5165
cmp rbp, 1
jb 0x141ad5165
mov rdx, qword [rax + 0x10]
lea rsi, [rax + 0x10]
mov rax, qword [rax]
mov ecx, 0x20
call qword [case.0x1419d3aba.0]
mov rdi, rax
test rax, rax
je 0x141ad5100
mov rax, qword [0x141b3f588]
test rax, rax
jne 0x141ad50cb
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rsp + 0x24]
dec rax
mov qword [0x141b3f588], rax
add r14, rax
mov r9d, 4
not rax
mov r8d, 0x2000
and r14, rax
xor ecx, ecx
mov rdx, r14
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rcx, rdi
test rax, rax
jne 0x141ad510a
mov rdx, qword [rsi]
mov rax, qword [rbx + 8]
call qword [case.0x1419d3aba.0]
mov qword [rbx + 0x18], 0
jmp 0x141ad5171
lea rdx, [rax + r14]
mov qword [rdi + 0x18], rax
mov qword [rdi + 8], rdx
mov qword [rdi + 0x10], rdx
sub rdx, rbp
call fcn.141ada3c0
test rax, rax
jne 0x141ad513c
mov rdx, rbx
mov rcx, rdi
call fcn.141ad9bd0
mov qword [rbx + 0x18], 0
jmp 0x141ad5171
mov rax, qword [rdi + 8]
mov qword [rdi], rax
mov rax, rbx
mov qword [rbx + 0x18], rdi
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
add rsp, 0x50
pop r14
ret
lea rsi, [rax + 0x10]
mov qword [rax + 0x18], 0
mov rdx, qword [rsi]
mov rcx, rbx
mov rax, qword [rbx + 8]
call qword [case.0x1419d3aba.0]
xor eax, eax
jmp 0x141ad514a
mov rbx, qword [rsp + 0x70]
xor eax, eax
mov rbp, qword [rsp + 0x78]
add rsp, 0x50
pop r14
ret