joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1403bb9d0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r14
mov r11, qword [rcx]
mov rsi, rdx
mov r10, qword [rcx + 8]
mov rbx, rcx
mov r9, qword [rcx + 0x10]
mov rdi, qword [rcx + 0x18]
mov rax, qword [rcx + 0x20]
shl r11, 0x38
cmp dword [rcx + 0x30], 0
je 0x1403bbc0f
test r8, r8
je 0x1403bbc0f
mov r14d, dword [rcx + 0x2c]
cmp r8, r14
jne 0x1403bbc0f
mov ecx, dword [rcx + 0x28]
dec ecx
cmp ecx, 6
ja case.default.0x1403bba3d
lea r8, [0x140000000]
mov edx, dword [r8 + rcx*4 + 0x3bbc28]
add rdx, r8
jmp rdx
movzx ecx, byte [rbx + 0x3e]
shl rcx, 0x30
or r11, rcx
movzx ecx, byte [rbx + 0x3d]
shl rcx, 0x28
or r11, rcx
movzx ecx, byte [rbx + 0x3c]
shl rcx, 0x20
or r11, rcx
movzx ecx, byte [rbx + 0x3b]
shl rcx, 0x18
or r11, rcx
movzx ecx, byte [rbx + 0x3a]
shl rcx, 0x10
or r11, rcx
movzx ecx, byte [rbx + 0x39]
shl rcx, 8
or r11, rcx
movzx ecx, byte [rbx + 0x38]
or r11, rcx
xor rax, r11
cmp dword [rbx + 0x30], 0
jbe 0x1403bbad6
mov ecx, dword [rbx + 0x30]
nop dword [rax]
nop dword [rax + rax]
add r10, r9
add rdi, rax
rol r9, 0xd
xor r9, r10
rol rax, 0x10
xor rax, rdi
rol r10, 0x20
add rdi, r9
add r10, rax
rol r9, 0x11
rol rax, 0x15
xor r9, rdi
xor rax, r10
rol rdi, 0x20
sub rcx, 1
jne 0x1403bbaa0
xor r10, r11
mov ecx, 0xff
cmp r14d, 0x10
mov r8d, 0xee
cmovne r8d, ecx
mov ecx, dword [rbx + 0x34]
xor r8, rdi
test ecx, ecx
je 0x1403bbb36
nop word [rax + rax]
add r10, r9
add r8, rax
rol r9, 0xd
xor r9, r10
rol rax, 0x10
xor rax, r8
rol r10, 0x20
add r8, r9
add r10, rax
rol r9, 0x11
rol rax, 0x15
xor r9, r8
xor rax, r10
rol r8, 0x20
sub rcx, 1
jne 0x1403bbb00
mov rdx, rax
xor rdx, r8
xor rdx, r9
xor rdx, r10
mov ecx, edx
mov byte [rsi], dl
shr ecx, 8
mov byte [rsi + 1], cl
mov ecx, edx
shr ecx, 0x10
mov byte [rsi + 2], cl
mov ecx, edx
shr ecx, 0x18
shr rdx, 0x20
mov byte [rsi + 3], cl
mov ecx, edx
shr ecx, 8
mov byte [rsi + 5], cl
mov ecx, edx
mov byte [rsi + 4], dl
shr ecx, 0x10
shr edx, 0x18
mov byte [rsi + 6], cl
mov byte [rsi + 7], dl
cmp dword [rbx + 0x2c], 8
je 0x1403bbc08
mov ecx, dword [rbx + 0x34]
xor r9, 0xdd
test ecx, ecx
je 0x1403bbbc7
add r10, r9
add r8, rax
rol r9, 0xd
xor r9, r10
rol rax, 0x10
xor rax, r8
rol r10, 0x20
add r8, r9
add r10, rax
rol r9, 0x11
rol rax, 0x15
xor r9, r8
xor rax, r10
rol r8, 0x20
sub rcx, 1
jne 0x1403bbb91
xor rax, r8
xor rax, r9
xor rax, r10
mov ecx, eax
mov byte [rsi + 8], al
shr ecx, 8
mov byte [rsi + 9], cl
mov ecx, eax
shr ecx, 0x10
mov byte [rsi + 0xa], cl
mov ecx, eax
shr ecx, 0x18
shr rax, 0x20
mov byte [rsi + 0xb], cl
mov ecx, eax
shr ecx, 8
mov byte [rsi + 0xd], cl
mov ecx, eax
shr ecx, 0x10
mov byte [rsi + 0xc], al
shr eax, 0x18
mov byte [rsi + 0xf], al
mov byte [rsi + 0xe], cl
mov eax, 1
jmp 0x1403bbc11
xor eax, eax
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
mov r14, qword [rsp + 0x20]
ret
Function at 0x1403c4350
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
push r15
mov eax, 0x68
call fcn.1403ffe50
sub rsp, rax
mov rax, qword [0x1405ec140]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov eax, dword [rcx + 0x3c]
mov rdi, r9
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test eax, eax
je 0x1403c4494
movups xmm0, xmmword [rcx + 0x10]
mov r15, qword [rcx + 0x20]
lea rbx, [rcx + 0x10]
dec eax
mov dword [rsp + 0x28], 1
mov dword [rcx + 0x3c], eax
xor r9d, r9d
movups xmmword [rsp + 0x48], xmm0
and byte [rsp + 0x54], 0x7f
xor r8d, r8d
psrldq xmm0, 8
xor edx, edx
movd eax, xmm0
mov rcx, r15
mov dword [rsp + 0x30], edi
and al, 0x7f
mov byte [rsp + 0x50], al
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
call fcn.140264480
test eax, eax
je 0x1403c4494
mov eax, dword [rsp + 0x30]
lea r8, [rsp + 0x30]
mov r9, r14
mov dword [rsp + 0x20], eax
mov rdx, rbp
mov rcx, r15
call fcn.140265150
test eax, eax
je 0x1403c4494
mov r9, rdi
lea rdx, [rsp + 0x38]
mov r8, rbp
mov rcx, rsi
call fcn.1403c49b0
test eax, eax
je 0x1403c4494
lea rax, [rbx + 0xf]
xor r8d, r8d
lea rcx, [rsp + 0x38]
cmp rcx, rax
ja 0x1403c4469
lea rax, [rsp + 0x47]
cmp rax, rbx
jb 0x1403c4469
lea rcx, [rsp + 0x38]
mov eax, r8d
sub rbx, rcx
nop dword [rax]
nop dword [rax + rax]
lea rdx, [rsp + 0x38]
add rdx, rax
inc rax
movzx ecx, byte [rbx + rdx]
xor byte [rdx], cl
cmp rax, 0x10
jl 0x1403c4450
jmp 0x1403c447d
movdqu xmm1, xmmword [rsp + 0x38]
movdqu xmm0, xmmword [rbx]
pxor xmm1, xmm0
movdqu xmmword [rsp + 0x38], xmm1
mov rax, qword [rsp + 0x38]
or rax, qword [rsp + 0x40]
je 0x1403c44b0
mov rdx, rdi
mov rcx, rbp
call fcn.14027e830
xor eax, eax
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1403ff380
add rsp, 0x68
pop r15
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov dword [rsi + 0x38], r8d
mov eax, edi
jmp 0x1403c4496
Function at 0x1403c63f0
Capabilities:
Log keystrokes
Manipulate console buffer

Disassembly:
push rsi
push rdi
sub rsp, 0x78
mov rax, qword [0x1405ec140]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rsi, rcx
xor edi, edi
lea rcx, [0x1405f8040]
call fcn.1403ce350
mov eax, 2
xchg dword [0x1405f7ff8], eax
cmp eax, 1
je 0x1403c643a
lea rcx, [0x1405f8040]
call fcn.1403ce320
xor eax, eax
jmp 0x1403c6524
xor r9d, r9d
mov qword [rsp + 0x98], rbx
mov qword [rsp + 0x30], rdi
lea rcx, str.conout_
mov qword [rsp + 0xa0], rbp
mov edx, 0xc0000000
mov dword [rsp + 0x28], 0x80
lea r8d, [r9 + 3]
mov qword [rsp + 0x70], r14
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1403c64a2
lea rdx, [0x1405f8000]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
test eax, eax
je 0x1403c64a2
lock or dword [0x1405f7ffc], 1
mov r14d, 1
mov dword [rsp + 0x50], 0xd0001
mov ebp, reloc.WS2_32.dll_listen
mov word [rsp + 0x48], r14w
mov ecx, ebp
mov dword [rsp + 0x4c], r14d
xor edx, edx
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
mov rcx, qword [rsi + 0x110]
lea r9, [rsp + 0x40]
mov r8d, r14d
mov word [rsp + 0x54], ax
lea rdx, [rsp + 0x48]
mov word [rsp + 0x56], bp
mov dword [rsp + 0x58], edi
call qword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
mov r14, qword [rsp + 0x70]
mov rbp, qword [rsp + 0xa0]
test eax, eax
jne 0x1403c650b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp rbx, 0xffffffffffffffff
je 0x1403c651a
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0x98]
mov eax, edi
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1403ff380
add rsp, 0x78
pop rdi
pop rsi
ret

Function at 0x1403c6eb0
Capabilities:
Manipulate console buffer

Disassembly:
push rbx
push rbp
push rdi
push r14
push r15
sub rsp, 0x60
mov rax, qword [0x1405ec140]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rdi, qword [rsp + 0xb8]
mov r15d, r9d
movzx r14d, r8b
mov ebp, edx
mov rbx, rcx
cmp dword [rdi], 0
je 0x1403c6eee
mov eax, 0xffffffff
jmp 0x1403c6f70
mov qword [rsp + 0x58], rsi
movzx esi, byte [rsp + 0xb0]
nop dword [rax + rax]
mov rcx, qword [rbx + 0x110]
lea rdx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
test eax, eax
jne 0x1403c6f1e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rdi], eax
mov byte [rsp + 0x28], sil
lea rdx, [rsp + 0x30]
movzx r9d, r14b
mov dword [rsp + 0x20], r15d
mov r8d, ebp
mov rcx, rbx
call fcn.1403c6e10
mov rcx, qword [rbx + 0x110]
mov edx, eax
call qword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
test eax, eax
jne 0x1403c6f69
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
je 0x1403c6f00
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rdi], eax
mov eax, 0xffffffff
jmp 0x1403c6f6b
xor eax, eax
mov rsi, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1403ff380
add rsp, 0x60
pop r15
pop r14
pop rdi
pop rbp
pop rbx
ret
Function at 0x1403c72b0
Capabilities:
Manipulate console buffer

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [0x1405ec140]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rbx, rcx
mov ecx, dword [rcx + 0x58]
btr ecx, 0xc
mov eax, ecx
sub dword [rbx + 0x7c], 1
mov dword [rbx + 0x58], ecx
jne 0x1403c72f8
test cl, 1
jne 0x1403c72f8
test cl, 4
je 0x1403c72f8
and eax, 0xfffffffb
mov dword [rbx + 0x58], eax
test al, 8
je 0x1403c72f8
mov rax, qword [rbx + 8]
dec dword [rax + 8]
mov eax, dword [rbx + 0x58]
bt eax, 0x10
jae 0x1403c736d
bt eax, 0x19
jae 0x1403c7354
mov rcx, qword [rbx + 0x110]
lea r9, [rsp + 0x20]
xor eax, eax
lea rdx, [rsp + 0x28]
mov dword [rsp + 0x38], eax
xorps xmm0, xmm0
mov eax, reloc.WS2_32.dll_recv
movups xmmword [rsp + 0x28], xmm0
mov word [rsp + 0x28], ax
lea r8d, [rax - 0xf]
call qword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
test eax, eax
jne 0x1403c736d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1403ff380
add rsp, 0x50
pop rbx
ret
bt eax, 0x15
jb 0x1403c736d
mov rcx, rbx
call fcn.1403c63f0
test eax, eax
jne 0x1403c736f
or dword [rbx + 0x58], 0x200000
xor eax, eax
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1403ff380
add rsp, 0x50
pop rbx
ret
Function at 0x1403c7390
Capabilities:
Manipulate console buffer

Disassembly:
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x60
mov rax, qword [0x1405ec140]
xor rax, rsp
mov qword [rsp + 0x50], rax
movzx ebp, word [reloc.WS2_32.dll_getsockopt]
xor r14d, r14d
mov rsi, rdx
mov rdi, rcx
mov dword [rsp + 0x30], r14d
cmp dword [rdx], r14d
jne 0x1403c73e2
mov rcx, qword [rcx + 0x110]
movzx edx, bp
call qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
test eax, eax
jne 0x1403c73ec
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsi], eax
mov eax, 0xffffffff
jmp 0x1403c749e
mov rcx, qword [rdi + 0x110]
mov qword [rsp + 0x90], rbx
mov ebx, dword [rsp + 0x30]
mov edx, ebx
call qword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
test eax, eax
je 0x1403c7489
nop
mov rcx, qword [rdi + 0x110]
lea rdx, [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
test eax, eax
je 0x1403c7489
movsx eax, word [rsp + 0x38]
mov edx, 0x20
movsx r8d, word [rsp + 0x3a]
mov r9d, ebx
mov rcx, qword [rdi + 0x110]
imul r8d, eax
lea rax, [rsp + 0x34]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_FillConsoleOutputCharacterW]
test eax, eax
je 0x1403c747e
mov r8d, dword [rsp + 0x34]
lea rax, [rsp + 0x34]
mov rcx, qword [rdi + 0x110]
mov r9d, ebx
movzx edx, bp
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_FillConsoleOutputAttribute]
test eax, eax
jne 0x1403c74bc
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
je 0x1403c7410
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsi], eax
mov eax, 0xffffffff
mov rbx, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1403ff380
mov rbp, qword [rsp + 0x98]
add rsp, 0x60
pop r14
pop rdi
pop rsi
ret
lea rcx, [rsp + 0x38]
mov dword [0x1405ebed0], r14d
call fcn.1403c7b90
mov rcx, qword [rdi + 0x110]
lea rdx, [0x1405f8050]
call qword [sym.imp.KERNEL32.dll_SetConsoleCursorInfo]
test eax, eax
je 0x1403c7489
xor eax, eax
jmp 0x1403c7496
Function at 0x1403c97f0
Capabilities:
Send data
Send data on socket

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
cmp dword [rcx + 0x100], 0
mov ebx, r8d
mov rdi, rdx
jbe 0x1403c7b59
mov eax, 0xfffff008
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
lea r9, [rsp + 0x30]
call fcn.1403c7ce0
test eax, eax
je 0x1403c7b7a
mov ecx, dword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp fcn.1403d9380
mov edx, ebx
mov rcx, rdi
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp fcn.1403c5050
mov eax, dword [rcx + 0x58]
test al, 1
je 0x1403c97fd
mov eax, 0xfffff00d
ret
bt eax, 0xf
jb 0x1403c9809
mov eax, 0xfffff031
ret
mov eax, dword [rcx + 0x10]
cmp eax, 7
je 0x1403c982b
cmp eax, 0xc
je 0x1403c9826
cmp eax, 0xe
je 0x1403c9821
mov eax, 0xfffff02a
ret
jmp 0x1403c7b30
jmp 0x1403d3020
mov eax, 0xfffff008
ret
sub rsp, 0x48
cmp dword [rcx + 0x100], 0
jbe 0x1403d3037
mov eax, 0xfffff008
add rsp, 0x48
ret
mov rcx, qword [rcx + 0x110]
lea r9, [rsp + 0x50]
xor eax, eax
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], eax
call qword [sym.imp.WS2_32.dll_WSASend]
cmp eax, 0xffffffff
jne 0x1403d3070
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
call fcn.1403d9380
add rsp, 0x48
ret
mov eax, dword [rsp + 0x50]
add rsp, 0x48
ret
Function at 0x1403cb520
Capabilities:
Read file via mapping

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov r14, rdx
mov rdi, rcx
mov eax, dword [rcx + 0x150]
mov dword [rsp + 0x90], eax
mov eax, dword [rdx]
and al, 3
cmp al, 1
jne 0x1403cb582
mov dword [rcx + 0x14c], 0x3ec
mov ecx, 0x3ec
call fcn.1403d9380
movsxd rdx, eax
mov qword [rdi + 0x88], rdx
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
cmp byte [rdx + 4], 0
je 0x1403cb5b6
mov dword [rcx + 0x14c], 1
mov ecx, 1
call fcn.1403d9380
movsxd rcx, eax
mov qword [rdi + 0x88], rcx
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
mov rcx, qword [rcx + 0x180]
cmp rcx, 0xffffffffffffffff
jne 0x1403cb5c7
mov rcx, qword [rdx + 0x18]
mov r12, qword [rdx + 0x10]
xor r13d, r13d
cmp rcx, r12
jge 0x1403cb765
mov r8d, r13d
mov eax, dword [rdi + 0x170]
test eax, eax
je 0x1403cb5ff
mov rdx, qword [rdi + 0x178]
mov r9d, eax
nop
mov eax, dword [rdx]
add r8, rax
lea rdx, [rdx + 0x10]
sub r9, 1
jne 0x1403cb5f0
sub r12, rcx
cmp r8, r12
cmovl r12, r8
test r12, r12
je 0x1403cb765
lea rbx, [r12 + rcx]
mov r8d, dword [0x1405f8088]
mov rax, rcx
cqo
idiv r8
mov rax, rdx
mov qword [rsp + 0x38], rdx
sub rcx, rdx
add rax, r12
mov r8, rcx
shr r8, 0x20
mov qword [rsp + 0x20], rax
mov r9d, ecx
mov edx, 4
mov rcx, qword [r14 + 8]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rdx, rax
mov qword [rsp + 0x98], rax
test rax, rax
jne 0x1403cb68e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rdi + 0x14c], eax
mov ecx, eax
call fcn.1403d9380
movsxd rcx, eax
mov qword [rdi + 0x88], rcx
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
mov rsi, r13
mov r15d, r13d
cmp r15d, dword [rdi + 0x170]
jae 0x1403cb71b
cmp rsi, r12
jae 0x1403cb71b
mov ecx, r15d
shl rcx, 4
add rcx, qword [rdi + 0x178]
mov r14d, dword [rcx]
mov rax, r12
sub rax, rsi
cmp r14, rax
cmovae r14, rax
mov dword [rsp + 0x30], r13d
add rdx, rsi
add rdx, qword [rsp + 0x38]
mov r8, r14
mov rcx, qword [rcx + 8]
call fcn.140431380
nop
add rsi, r14
inc r15d
mov rdx, qword [rsp + 0x98]
jmp 0x1403cb694
mov rcx, rdx
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
test eax, eax
je 0x1403cb661
cmp qword [rdi + 0x180], 0xffffffffffffffff
jne 0x1403cb74e
mov rdx, qword [rsp + 0x88]
mov qword [rdx + 0x18], rbx
mov ecx, dword [rsp + 0x90]
call fcn.1403cd500
mov qword [rdi + 0x88], r12
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
mov qword [rdi + 0x88], r13
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
Function at 0x1403cd820
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x58
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rsp + 0x48]
lea rcx, [0x1405f8060]
mov dword [0x1405f8088], eax
call fcn.1403ce270
test eax, eax
jne 0x1403cd87d
lea rax, [0x140880098]
mov edx, 0x100
lea rcx, [0x1405f8090]
xor r8d, r8d
nop
mov qword [rax], rcx
add rcx, 0x2880
mov qword [rax - 8], r8
lea rax, [rax + 0x10]
sub rdx, 1
jne 0x1403cd860
add rsp, 0x58
ret
lea rdx, str.uv_mutex_init
mov ecx, eax
call fcn.1403d92d0
int3
Function at 0x1403ce210
Capabilities:
Allocate thread local storage

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
xor ecx, ecx
mov edx, 0xfffff027
cmp eax, 0xffffffff
mov dword [rbx], eax
cmove ecx, edx
mov eax, ecx
add rsp, 0x20
pop rbx
ret

Function at 0x1403ce240
Capabilities:
Set thread local storage value

Disassembly:
sub rsp, 0x28
mov ecx, dword [rcx]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x1403ce255
add rsp, 0x28
ret
call fcn.140410058
int3

Function at 0x1403ce3b0
Capabilities:
Get system information on windows
Resume thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x60
test byte [rdx], 1
mov rbp, r9
mov r14, r8
mov rsi, rcx
je 0x1403ce410
mov rbx, qword [rdx + 8]
test rbx, rbx
je 0x1403ce412
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov eax, dword [rsp + 0x34]
dec rbx
add rbx, rax
dec rax
not rax
and rbx, rax
mov eax, ebx
cmp rax, rbx
je 0x1403ce412
mov eax, 0xfffff019
jmp 0x1403ce4a4
xor ebx, ebx
mov ecx, 0x18
call fcn.1403c52a0
mov rdi, rax
test rax, rax
jne 0x1403ce42b
mov eax, 0xfffff027
jmp 0x1403ce4a4
mov qword [rsp + 0x28], 0
lea r8, [0x1403ce150]
mov r9, rdi
mov dword [rsp + 0x20], 4
mov edx, ebx
mov qword [rax], r14
xor ecx, ecx
mov qword [rax + 8], rbp
call fcn.1404101e8
test rax, rax
jne 0x1403ce492
call fcn.14040d31c
mov rcx, rdi
mov ebx, dword [rax]
call fcn.1403c50e0
test ebx, ebx
je 0x1403ce4a2
cmp ebx, 0xb
je 0x1403ce48b
cmp ebx, 0xd
je 0x1403ce484
cmp ebx, 0x16
je 0x1403ce406
mov eax, 0xfffff01a
jmp 0x1403ce4a4
mov eax, 0xfffff004
jmp 0x1403ce4a4
mov eax, 0xfffff008
jmp 0x1403ce4a4
mov qword [rsi], rax
mov rcx, rax
mov qword [rdi + 0x10], rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
xor eax, eax
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret
Function at 0x1403cf800
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x20], rbp
push rsi
push r12
push r14
sub rsp, 0x20
mov r12, r8
mov r14, rdx
mov rsi, rcx
test rcx, rcx
jne 0x1403cf83a
xor ebp, ebp
test rdx, rdx
je 0x1403cf826
mov qword [rdx], rbp
mov qword [r8], rbp
xor eax, eax
mov rbp, qword [rsp + 0x58]
add rsp, 0x20
pop r14
pop r12
pop rsi
ret
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rdi
mov rdi, 0xffffffffffffffff
nop dword [rax + rax]
inc rdi
cmp word [rcx + rdi*2], 0
jne 0x1403cf850
mov rbx, rdi
nop dword [rax]
test rbx, rbx
je 0x1403cf879
movzx eax, word [rcx + rbx*2 - 2]
dec rbx
cmp ax, 0x5c
je 0x1403cf879
cmp ax, 0x2f
jne 0x1403cf860
mov qword [rsp + 0x50], r15
test rbx, rbx
jne 0x1403cf8df
test r14, r14
je 0x1403cf8d1
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov ebx, eax
test eax, eax
je 0x1403cf8ca
mov ecx, ebx
add rcx, rcx
call fcn.1403c52a0
mov qword [r14], rax
test rax, rax
je 0x1403cf967
mov rdx, rax
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
jne 0x1403cf8d1
mov rcx, qword [r14]
call fcn.1403c50e0
xor ebp, ebp
mov qword [r14], rbp
mov eax, 0xffffffff
jmp 0x1403cf949
mov rcx, rsi
call fcn.14041c1c4
mov qword [r12], rax
jmp 0x1403cf947
xor ebp, ebp
lea r15, [rbx + rbx]
test r14, r14
je 0x1403cf913
lea rcx, [r15 + 4]
call fcn.1403c52a0
mov qword [r14], rax
test rax, rax
je 0x1403cf967
lea r8, [rbx + 1]
mov rdx, rsi
mov rcx, rax
call fcn.14041c17c
mov rax, qword [r14]
mov word [rax + r15 + 2], bp
sub rdi, rbx
lea rbx, [rdi + rdi]
mov rcx, rbx
call fcn.1403c52a0
mov qword [r12], rax
test rax, rax
je 0x1403cf967
lea rdx, [rsi + 2]
mov rcx, rax
add rdx, r15
lea r8, [rdi - 1]
call fcn.14041c17c
mov rax, qword [r12]
mov word [rbx + rax - 2], bp
xor eax, eax
mov r15, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x58]
add rsp, 0x20
pop r14
pop r12
pop rsi
ret
lea rdx, str.uv__malloc
mov ecx, ntohs
call fcn.1403d92d0
int3
Function at 0x1403cff90
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r14
push r15
sub rsp, 0x20
mov r14, rdx
mov r15, rcx
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov esi, eax
test eax, eax
je 0x1403cfff5
mov ecx, esi
add rcx, rcx
call fcn.1403c52a0
mov rdi, rax
test rax, rax
je 0x1403d0045
mov rdx, rax
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov ebx, eax
test eax, eax
je 0x1403cffe7
cmp eax, esi
jb 0x1403d001d
mov rcx, rdi
call fcn.1403c50e0
mov esi, ebx
test ebx, ebx
jne 0x1403cffc0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1403d9380
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop r15
ret
lea ecx, [rax - 1]
cmp word [rdi + rcx*2], 0x5c
jne 0x1403d003b
cmp ebx, 3
jne 0x1403d0033
cmp word [rdi + 2], 0x3a
je 0x1403d003b
xor edx, edx
mov ebx, ecx
mov word [rdi + rcx*2], dx
mov qword [r15], rdi
xor eax, eax
mov dword [r14], ebx
jmp 0x1403d0002
mov eax, 0xfffff027
jmp 0x1403d0002
Function at 0x1403d0050
Capabilities:
Get common file path
Get session user name

Disassembly:
push rbx
sub rsp, 0x260
mov rax, qword [0x1405ec140]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rbx, rcx
test rcx, rcx
jne 0x1403d007d
mov eax, 0xfffff019
jmp 0x1403d0239
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x28]
mov edx, 0x20008
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x1403d00ac
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1403d9380
jmp 0x1403d0239
mov rcx, qword [rsp + 0x28]
lea r8, [rsp + 0x20]
mov qword [rsp + 0x250], r14
xor edx, edx
xor r14d, r14d
mov dword [rsp + 0x20], r14d
call qword [sym.imp.USERENV.dll_GetUserProfileDirectoryW]
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x1403d00f8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rsp + 0x28]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, ebx
call fcn.1403d9380
jmp 0x1403d0231
mov ecx, dword [rsp + 0x20]
add rcx, rcx
mov qword [rsp + 0x258], rdi
call fcn.1403c52a0
mov rcx, qword [rsp + 0x28]
mov rdi, rax
test rax, rax
jne 0x1403d0129
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0xfffff027
jmp 0x1403d0229
lea r8, [rsp + 0x20]
mov rdx, rdi
call qword [sym.imp.USERENV.dll_GetUserProfileDirectoryW]
test eax, eax
jne 0x1403d0162
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rsp + 0x28]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rdi
call fcn.1403c50e0
mov ecx, ebx
call fcn.1403d9380
jmp 0x1403d0229
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x101
lea rcx, [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
jne 0x1403d01a8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rdi
mov ebx, eax
call fcn.1403c50e0
cmp ebx, 0x7a
jne 0x1403d0156
mov eax, 0xfffff027
jmp 0x1403d0229
mov qword [rsp + 0x278], rbp
lea r8, [rbx + 0x18]
mov rdx, 0xffffffffffffffff
mov qword [rsp + 0x280], rsi
mov rcx, rdi
mov qword [rbx + 0x18], r14
call fcn.1403cfe80
mov rcx, rdi
mov ebp, eax
call fcn.1403c50e0
test ebp, ebp
je 0x1403d01e1
mov eax, ebp
jmp 0x1403d0219
mov r8, rbx
mov qword [rbx], r14
mov rdx, 0xffffffffffffffff
lea rcx, [rsp + 0x30]
call fcn.1403cfe80
mov edi, eax
test eax, eax
je 0x1403d020b
mov rcx, qword [rbx + 0x18]
call fcn.1403c50e0
mov eax, edi
jmp 0x1403d0219
mov qword [rbx + 0x10], r14
xor eax, eax
mov qword [rbx + 8], 0xffffffffffffffff
mov rsi, qword [rsp + 0x280]
mov rbp, qword [rsp + 0x278]
mov rdi, qword [rsp + 0x258]
mov r14, qword [rsp + 0x250]
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.1403ff380
add rsp, 0x260
pop rbx
ret
jmp 0x1403d0050

Function at 0x1403d0310
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
sub rsp, 0x28
test rdx, rdx
je 0x1403d032c
call sub.ADVAPI32.dll_SystemFunction036
test al, al
jne 0x1403d032c
mov eax, 0xfffff01a
add rsp, 0x28
ret
xor eax, eax
add rsp, 0x28
ret