joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140027388
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x1400273b8
xor eax, eax
jmp 0x14002747b
mov rbp, rbx
cmp word [rax], si
je 0x1400273dd
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1400273c4
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1400273c0
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.1400272d8
movsxd r14, eax
test eax, eax
jne 0x14002741b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1400273b1
mov rcx, r14
call fcn.1400222c0
mov rdi, rax
test rax, rax
jne 0x140027434
xor ecx, ecx
call fcn.14001f154
jmp 0x140027410
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.1400272d8
test eax, eax
jne 0x140027465
mov rcx, rdi
call fcn.14001f154
jmp 0x14002746f
xor ecx, ecx
call fcn.14001f154
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x140027498
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x14002751f
mov rsi, rbx
cmp word [rax], bp
je 0x1400274de
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1400274c8
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1400274c4
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1400222c0
mov rdi, rax
test rax, rax
je 0x14002750c
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140014780
mov rbp, rdi
xor ecx, ecx
call fcn.14001f154
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14002c854
Capabilities:
Clear file content

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.140021a18
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.140021a18
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x14002c9a4
cmp rax, 0xffffffffffffffff
je 0x14002c9a4
xor edi, edi
test rbp, rbp
jle 0x14002c94f
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14001f0dc
mov rbx, rax
test rax, rax
jne 0x14002c8dc
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x14002c945
mov edx, 0x8000
mov ecx, r14d
call fcn.14001e898
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.1400211ac
cmp eax, 0xffffffff
je 0x14002c925
cdqe
sub rbp, rax
test rbp, rbp
jg 0x14002c8ec
mov edx, r15d
mov ecx, r14d
call fcn.14001e898
jmp 0x14002c945
cmp byte [rsi + 0x38], dil
je 0x14002c93c
cmp dword [rsi + 0x34], 5
jne 0x14002c93c
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], InitCommonControls
cmp byte [rsi + 0x30], dil
je 0x14002c945
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14001f154
jmp 0x14002c9b8
jns 0x14002c9b8
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.140021a18
cmp rax, 0xffffffffffffffff
jne 0x14002c970
cmp byte [rsi + 0x30], dil
je 0x14002c9b8
mov edi, dword [rsi + 0x2c]
jmp 0x14002c9b8
mov ecx, r14d
call fcn.1400283ec
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x14002c9b8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, InitCommonControls
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], InitCommonControls
jmp 0x14002c9b8
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x14002c9b1
mov eax, dword [rsi + 0x2c]
jmp 0x14002c9b6
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.140021a18
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x14002e210
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14002e238
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14002e238
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x180001af0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
mov rdi, qword [0x1800cfe90]
mov ecx, Ordinal_41
mov rbx, qword [0x1800cfe40]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
xor ecx, ecx
mov r9, rax
test rax, rax
je 0x180001b56
mov qword [rax], rcx
mov qword [rax + 8], rcx
mov qword [rax + 0x10], rcx
mov qword [rax + 0x18], rcx
mov dword [rax + 0x20], 0x1388
mov dword [rax + 0x24], 0x2710
movzx eax, word [0x1800b3b4c]
mov word [rsp + 0x2c], ax
movzx eax, byte [0x1800b3b4e]
mov byte [rsp + 0x2e], al
mov rax, r9
jmp 0x180001b73
movzx eax, word [0x1800b3b4c]
mov r9, rcx
mov word [rsp + 0x2c], ax
movzx eax, byte [0x1800b3b4e]
mov byte [rsp + 0x2e], al
mov rax, rcx
movsd xmm0, qword [str.X_TAiUIVdXE_a_]
mov edx, dword [0x1800b3b48]
movsd qword [rsp + 0x20], xmm0
mov dword [rsp + 0x28], edx
mov qword [rbx + 0xa0], rax
cmp dword [reloc.WS2_32.dll_accept], 2
jl 0x180001ce9
movdqa xmm5, xmmword [0x1800c23d0]
mov ecx, ntohs
movdqa xmm2, xmmword [0x1800c1fc0]
movdqa xmm3, xmmword [0x1800c1ff0]
movdqa xmm1, xmm2
movdqa xmm4, xmmword [0x1800c2090]
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm5
pmuldq xmm1, xmm5
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x1800c2040]
psubd xmm2, xmm0
movd xmm0, dword [str.X_TAiUIVdXE_a_]
andps xmm2, xmm4
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmmword [0x1800c20f0]
xorps xmm2, xmm0
movd dword [rsp + 0x20], xmm2
movdqa xmm2, xmmword [0x1800c1fe0]
movdqa xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm5
pmuldq xmm1, xmm5
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
movdqa xmm1, xmm3
pmulld xmm0, xmmword [0x1800c2040]
psubd xmm2, xmm0
punpckldq xmm1, xmm3
movd xmm0, dword [rsp + 0x24]
andps xmm2, xmm4
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmmword [0x1800c20f0]
xorps xmm2, xmm0
pmuldq xmm1, xmm5
movdqa xmm0, xmm3
movd dword [rsp + 0x24], xmm2
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm5
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x1800c2040]
psubd xmm3, xmm0
movd xmm0, edx
andps xmm3, xmm4
packuswb xmm3, xmm3
packuswb xmm3, xmm3
paddb xmm3, xmmword [0x1800c20f0]
xorps xmm3, xmm0
movd dword [rsp + 0x28], xmm3
mov eax, ecx
lea r8, [rsp + 0x20]
add r8, rax
nop dword [rax]
nop word [rax + rax]
mov eax, 0x4bda12f7
lea r8, [r8 + 1]
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul edx, eax, 0x36
movzx eax, cl
inc ecx
sub al, dl
add al, 0x31
xor byte [r8 - 1], al
cmp ecx, 0xf
jl 0x180001d00
or dword [rbx + 0xc], 8
lea rax, [rsp + 0x20]
mov qword [rbx + 0x90], rax
mov rcx, rdi
mov qword [r9], rdi
mov rax, qword [rdi]
call qword [rax + reloc.WS2_32.dll_htonl]
mov rbx, qword [rsp + 0x48]
mov al, 1
add rsp, 0x30
pop rdi
ret
Function at 0x180005990
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov r11d, r8d
mov r10, rdx
not r11d
mov r9, rcx
mov eax, r11d
test rdx, rdx
je 0x1800059ed
lea rbx, [0x1800b3e90]
movzx r8d, byte [r9]
lea r9, [r9 + 1]
dec r10
cmp r8b, 0x23
jne 0x1800059d4
cmp r10, 2
jb 0x1800059d4
cmp byte [r9], r8b
jne 0x1800059d4
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
xor rdx, r8
shr eax, 8
xor eax, dword [rbx + rdx*4]
test r10, r10
jne 0x1800059b0
not eax
mov rbx, qword [rsp + 8]
ret
movzx r8d, byte [rcx]
inc r9
test r8b, r8b
je 0x180005a2f
lea rbx, [0x1800b3e90]
cmp r8b, 0x23
jne 0x180005a13
cmp byte [r9], r8b
jne 0x180005a13
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
movzx ecx, r8b
movzx r8d, byte [r9]
xor rdx, rcx
shr eax, 8
inc r9
xor eax, dword [rbx + rdx*4]
test r8b, r8b
jne 0x180005a00
mov rbx, qword [rsp + 8]
not eax
ret
Function at 0x180009790
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x38
movsd xmm0, qword [0x1800c1460]
xor r8d, r8d
cmp dword [reloc.WS2_32.dll_accept], 2
mov r10, rcx
movzx eax, byte [0x1800c146c]
mov edx, dword [0x1800c1468]
movsd qword [rsp + 0x20], xmm0
mov dword [rsp + 0x28], edx
mov byte [rsp + 0x2c], al
jl 0x180009915
movdqa xmm5, xmmword [0x1800c23d0]
mov r8d, ntohs
movdqa xmm2, xmmword [0x1800c1fc0]
movdqa xmm3, xmmword [0x1800c1ff0]
movdqa xmm1, xmm2
movdqa xmm4, xmmword [0x1800c2090]
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm5
pmuldq xmm1, xmm5
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x1800c2040]
psubd xmm2, xmm0
movd xmm0, dword [0x1800c1460]
andps xmm2, xmm4
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmmword [0x1800c20f0]
xorps xmm2, xmm0
movd dword [rsp + 0x20], xmm2
movdqa xmm2, xmmword [0x1800c1fe0]
movdqa xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm5
pmuldq xmm1, xmm5
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
movdqa xmm1, xmm3
pmulld xmm0, xmmword [0x1800c2040]
psubd xmm2, xmm0
punpckldq xmm1, xmm3
movd xmm0, dword [rsp + 0x24]
andps xmm2, xmm4
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmmword [0x1800c20f0]
xorps xmm2, xmm0
pmuldq xmm1, xmm5
movdqa xmm0, xmm3
movd dword [rsp + 0x24], xmm2
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm5
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x1800c2040]
psubd xmm3, xmm0
movd xmm0, edx
andps xmm3, xmm4
packuswb xmm3, xmm3
packuswb xmm3, xmm3
paddb xmm3, xmmword [0x1800c20f0]
xorps xmm3, xmm0
movd dword [rsp + 0x28], xmm3
mov eax, r8d
lea r9, [rsp + 0x20]
add r9, rax
mov eax, 0x4bda12f7
lea r9, [r9 + 1]
imul r8d
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x36
movzx eax, r8b
inc r8d
sub al, cl
add al, 0x31
xor byte [r9 - 1], al
cmp r8d, 0xd
jl 0x180009920
lea r8, [rsp + 0x20]
xor edx, edx
mov rcx, r10
call fcn.180009660
add rsp, 0x38
ret
Function at 0x180009970
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x38
movsd xmm0, qword [0x1800b3c10]
xor r8d, r8d
cmp dword [reloc.WS2_32.dll_accept], 2
mov r10, rcx
movzx eax, byte [0x1800b3c1c]
mov edx, dword [0x1800b3c18]
movsd qword [rsp + 0x20], xmm0
mov dword [rsp + 0x28], edx
mov byte [rsp + 0x2c], al
jl 0x180009af5
movdqa xmm5, xmmword [0x1800c23d0]
mov r8d, ntohs
movdqa xmm2, xmmword [0x1800c1fc0]
movdqa xmm3, xmmword [0x1800c1ff0]
movdqa xmm1, xmm2
movdqa xmm4, xmmword [0x1800c2090]
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm5
pmuldq xmm1, xmm5
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x1800c2040]
psubd xmm2, xmm0
movd xmm0, dword [0x1800b3c10]
andps xmm2, xmm4
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmmword [0x1800c20f0]
xorps xmm2, xmm0
movd dword [rsp + 0x20], xmm2
movdqa xmm2, xmmword [0x1800c1fe0]
movdqa xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm5
pmuldq xmm1, xmm5
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
movdqa xmm1, xmm3
pmulld xmm0, xmmword [0x1800c2040]
psubd xmm2, xmm0
punpckldq xmm1, xmm3
movd xmm0, dword [rsp + 0x24]
andps xmm2, xmm4
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmmword [0x1800c20f0]
xorps xmm2, xmm0
pmuldq xmm1, xmm5
movdqa xmm0, xmm3
movd dword [rsp + 0x24], xmm2
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm5
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x1800c2040]
psubd xmm3, xmm0
movd xmm0, edx
andps xmm3, xmm4
packuswb xmm3, xmm3
packuswb xmm3, xmm3
paddb xmm3, xmmword [0x1800c20f0]
xorps xmm3, xmm0
movd dword [rsp + 0x28], xmm3
mov eax, r8d
lea r9, [rsp + 0x20]
add r9, rax
mov eax, 0x4bda12f7
lea r9, [r9 + 1]
imul r8d
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x36
movzx eax, r8b
inc r8d
sub al, cl
add al, 0x31
xor byte [r9 - 1], al
cmp r8d, 0xd
jl 0x180009b00
lea r8, [rsp + 0x20]
mov edx, 1
mov rcx, r10
call fcn.180009660
add rsp, 0x38
ret
Function at 0x180012a70
Capabilities:
Hash data with crc32

Disassembly:
sub rsp, 0x18
movss xmm0, dword [rcx + 0x128]
lea r10, [0x1800b3e90]
mov rax, qword [rcx + 0x110]
movss xmm1, dword [rcx + 0x12c]
movss xmm2, dword [rdx]
movss xmm4, dword [rdx + 8]
subss xmm2, xmm0
movss xmm3, dword [rdx + 4]
subss xmm4, xmm0
movss xmm0, dword [rdx + 0xc]
subss xmm3, xmm1
movsxd rcx, dword [rcx + 0x108]
subss xmm0, xmm1
movd r8d, xmm2
movss dword [rsp], xmm2
mov r9d, dword [rax + rcx*4 - 4]
movzx eax, byte [rsp]
not r9d
movzx ecx, r9b
xor rcx, rax
shr r9d, 8
mov eax, r8d
movss dword [rsp + 4], xmm3
shr eax, 8
movzx edx, al
mov eax, r8d
xor r9d, dword [r10 + rcx*4]
movzx ecx, r9b
xor rdx, rcx
shr r9d, 8
shr eax, 0x10
movss dword [rsp + 8], xmm4
movss dword [rsp + 0xc], xmm0
xor r9d, dword [r10 + rdx*4]
movzx ecx, r9b
shr r9d, 8
movzx edx, al
movzx eax, byte [rsp + 4]
xor rdx, rcx
xor r9d, dword [r10 + rdx*4]
movzx ecx, r9b
shr r9d, 8
mov edx, r8d
shr rdx, 0x18
xor rdx, rcx
movd r8d, xmm3
xor r9d, dword [r10 + rdx*4]
movzx ecx, r9b
xor rcx, rax
shr r9d, 8
mov eax, r8d
shr eax, 8
movzx edx, al
mov eax, r8d
xor r9d, dword [r10 + rcx*4]
movzx ecx, r9b
xor rdx, rcx
shr r9d, 8
shr eax, 0x10
xor r9d, dword [r10 + rdx*4]
movzx ecx, r9b
shr r9d, 8
movzx edx, al
movzx eax, byte [rsp + 8]
xor rdx, rcx
xor r9d, dword [r10 + rdx*4]
movzx ecx, r9b
shr r9d, 8
mov edx, r8d
shr rdx, 0x18
xor rdx, rcx
movd r8d, xmm4
xor r9d, dword [r10 + rdx*4]
movzx ecx, r9b
xor rcx, rax
shr r9d, 8
mov eax, r8d
xor r9d, dword [r10 + rcx*4]
shr eax, 8
movzx edx, al
movzx ecx, r9b
xor rdx, rcx
shr r9d, 8
mov eax, r8d
shr eax, 0x10
xor r9d, dword [r10 + rdx*4]
movzx ecx, r9b
shr r9d, 8
movzx edx, al
movzx eax, byte [rsp + 0xc]
xor rdx, rcx
xor r9d, dword [r10 + rdx*4]
movzx ecx, r9b
shr r9d, 8
mov edx, r8d
shr rdx, 0x18
xor rdx, rcx
movd r8d, xmm0
xor r9d, dword [r10 + rdx*4]
movzx ecx, r9b
xor rcx, rax
shr r9d, 8
mov eax, r8d
shr eax, 8
movzx edx, al
mov eax, r8d
xor r9d, dword [r10 + rcx*4]
movzx ecx, r9b
xor rdx, rcx
shr r9d, 8
shr eax, 0x10
shr r8, 0x18
xor r9d, dword [r10 + rdx*4]
movzx ecx, r9b
shr r9d, 8
movzx edx, al
xor rdx, rcx
xor r9d, dword [r10 + rdx*4]
movzx edx, r9b
shr r9d, 8
xor r8, rdx
xor r9d, dword [r10 + r8*4]
not r9d
mov eax, r9d
add rsp, 0x18
ret

Function at 0x180019990
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
cmp qword [rcx + 0x6148], 0
mov rsi, r8
mov rbp, rdx
mov rbx, rcx
je 0x180019a13
xor edx, edx
add rcx, 0x6150
call fcn.18001b590
mov r8, rsi
lea rcx, [rbx + 0x6150]
mov rdx, rbp
call fcn.180005f70
mov eax, dword [rbx + 0x6150]
xor edx, edx
mov r9, qword [rbx + 0x6148]
test eax, eax
lea ecx, [rax - 1]
mov rax, qword [rbx + 0x6158]
cmove ecx, edx
test rax, rax
movsxd r8, ecx
mov edx, 1
lea rcx, [0x1800cfe38]
cmovne rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
jmp 0x180019a1f
add rcx, 0x6150
call fcn.180005f70
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x180019d40
Capabilities:
Hash data with crc32

Disassembly:
sub rsp, 8
movzx r9d, byte [rcx]
lea r8, [rcx + 1]
mov r10, qword [0x1800cfe40]
mov r11d, 0xffffffff
mov eax, r11d
test r9b, r9b
je 0x180019da3
mov qword [rsp], rbx
lea rbx, [0x1800b3e90]
nop dword [rax]
cmp r9b, 0x23
jne 0x180019d83
cmp byte [r8], r9b
jne 0x180019d83
cmp byte [r8 + 1], r9b
cmove eax, r11d
movzx edx, al
movzx ecx, r9b
movzx r9d, byte [r8]
xor rdx, rcx
shr eax, 8
inc r8
xor eax, dword [rbx + rdx*4]
test r9b, r9b
jne 0x180019d70
mov rbx, qword [rsp]
movsxd rcx, dword [r10 + 0x60b0]
not eax
mov r8, qword [r10 + 0x60b8]
lea rdx, [rcx + rcx*8]
lea rcx, [r8 + rdx*8]
cmp r8, rcx
je 0x180019dcf
cmp dword [r8 + 8], eax
je 0x180019dd6
add r8, 0x48
cmp r8, rcx
jne 0x180019dc0
xor eax, eax
add rsp, 8
ret
mov rax, r8
add rsp, 8
ret

Function at 0x18001a020
Capabilities:
Write file on windows

Disassembly:
push rsi
push r14
push r15
sub rsp, 0x20
mov rsi, qword [0x1800cfe40]
xor r15d, r15d
mov r14, rcx
mov dword [rsi + 0x609c], r15d
test rcx, rcx
je 0x18001a16b
mov qword [rsp + 0x40], rbx
xor edx, edx
mov qword [rsp + 0x48], rbp
mov qword [rsp + 0x50], rdi
lea rdi, [rsi + 0x60a0]
mov rcx, rdi
mov dword [rsi + 0x609c], r15d
call fcn.18001b590
mov ecx, dword [rdi + 4]
mov ebx, dword [rdi]
cmp ebx, ecx
jne 0x18001a0c7
inc ebx
test ecx, ecx
je 0x18001a088
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
jmp 0x18001a08d
mov eax, 8
cmp eax, ebx
cmovg ebx, eax
cmp ebx, ecx
jle 0x18001a0c7
movsxd rcx, ebx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdx, qword [rdi + 8]
mov rbp, rax
test rdx, rdx
je 0x18001a0c0
movsxd r8, dword [rdi]
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
mov rcx, qword [rdi + 8]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 8], rbp
mov dword [rdi + 4], ebx
movsxd rcx, dword [rdi]
mov rax, qword [rdi + 8]
mov byte [rcx + rax], r15b
inc dword [rdi]
mov rbx, qword [rsi + 0x60b8]
movsxd rax, dword [rsi + 0x60b0]
lea rcx, [rax + rax*8]
lea rbp, [rbx + rcx*8]
cmp rbx, rbp
je 0x18001a105
nop
mov r8, rdi
mov rdx, rbx
mov rcx, rsi
call qword [rbx + gethostname]
add rbx, 0x48
cmp rbx, rbp
jne 0x18001a0f0
mov eax, dword [rdi]
lea rdx, [0x1800b3b74]
test eax, eax
lea rdi, [0x1800cfe38]
lea ecx, [rax - 1]
mov rax, qword [rsi + 0x60a8]
cmove ecx, r15d
test rax, rax
movsxd rbp, ecx
mov rcx, r14
cmovne rdi, rax
call fcn.180005a40
mov rbx, rax
test rax, rax
je 0x18001a15c
mov r9, rax
mov r8, rbp
mov edx, 1
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rbp, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rsi
ret
Function at 0x180036ac0
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x80
mov rdi, rcx
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov r14, qword [rsp + 0x28]
cmp rdi, 0x40000000
jbe 0x180036afb
lea rax, [rdi - 0x40000000]
cmp r14, rax
cmovb r14, rax
mov rsi, qword [0x1800cff20]
lea r15, [rdi + 0x40000000]
cmp qword [rsp + 0x30], r15
cmovbe r15, qword [rsp + 0x30]
sub r15, 0xfff
test rsi, rsi
je 0x180036b3d
cmp rsi, r14
jb 0x180036b35
cmp rsi, r15
jae 0x180036b35
cmp qword [rsi + 8], 0
jne 0x180036d07
mov rsi, qword [rsi]
test rsi, rsi
jne 0x180036b20
mov qword [rsp + 0xa0], rbx
mov rbx, rdi
mov qword [rsp + 0xa8], rbp
mov qword [rsp + 0xb0], r12
mov r12d, 0x40
cmp rdi, r14
jb 0x180036bd2
nop dword [rax]
nop word [rax + rax]
mov ebp, dword [rsp + 0x48]
mov rax, rbx
xor edx, edx
div rbp
sub rbx, rdx
sub rbx, rbp
cmp rbx, r14
jb 0x180036bc9
nop word [rax + rax]
mov r8d, Ordinal_50
lea rdx, [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x180036bc9
cmp dword [rsp + 0x70], 0x10000
je 0x180036c4b
mov rbx, qword [rsp + 0x58]
cmp rbx, rbp
jb 0x180036bc9
sub rbx, rbp
cmp rbx, r14
jae 0x180036b90
test rsi, rsi
jne 0x180036cb0
cmp rdi, r15
ja 0x180036cef
nop dword [rax + rax]
mov ebp, dword [rsp + 0x48]
xor edx, edx
mov rax, rdi
mov ebx, ebp
div rbp
mov eax, ebp
sub rax, rdx
add rax, rdi
mov rdi, rax
cmp rax, r15
ja 0x180036cef
mov r8d, Ordinal_50
lea rdx, [rsp + 0x50]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x180036cef
cmp dword [rsp + 0x70], 0x10000
je 0x180036c81
xor edx, edx
lea edi, [rbp - 1]
add rdi, qword [rsp + 0x68]
add rdi, qword [rsp + 0x50]
mov rax, rdi
div rbx
sub rdi, rdx
cmp rdi, r15
jbe 0x180036c02
jmp 0x180036cef
test rbx, rbx
je 0x180036bc9
mov r9d, r12d
mov edx, 0x1000
mov r8d, 0x3000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
test rax, rax
jne 0x180036cb0
cmp rbx, r14
jae 0x180036b70
jmp 0x180036bd2
test rdi, rdi
je 0x180036cef
mov r9d, r12d
mov edx, 0x1000
mov r8d, 0x3000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
test rax, rax
jne 0x180036cb0
cmp rdi, r15
jbe 0x180036be0
jmp 0x180036cef
xor edx, edx
lea rcx, [rsi + 0x40]
mov dword [rsi + 0x10], edx
nop dword [rax]
mov qword [rcx], rdx
mov rax, rcx
mov qword [rsi + 8], rcx
add r12, 0x40
add rcx, 0x40
mov rdx, rax
cmp r12, 0xfc0
jbe 0x180036cc0
mov rax, qword [0x1800cff20]
mov qword [rsi], rax
mov qword [0x1800cff20], rsi
mov r12, qword [rsp + 0xb0]
mov rbp, qword [rsp + 0xa8]
mov rbx, qword [rsp + 0xa0]
mov rax, rsi
mov rsi, qword [rsp + 0xb8]
add rsp, 0x80
pop r15
pop r14
pop rdi
ret
Function at 0x1800376f0
Capabilities:
Enumerate threads
Suspend thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x40
xor r15d, r15d
mov r14d, edx
mov qword [rcx], r15
mov rbx, rcx
mov qword [rcx + 8], r15
xor edx, edx
mov ecx, 4
mov ebp, r8d
mov edi, r15d
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x1800378aa
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], Ordinal_33
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x180037839
mov edi, 1
nop dword [rax + rax]
cmp dword [rsp + 0x20], 0x10
jb 0x1800377f3
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [rsp + 0x2c], eax
jne 0x1800377f3
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rsp + 0x28], eax
je 0x1800377f3
mov rdx, qword [rbx]
test rdx, rdx
jne 0x1800377b2
mov rcx, qword [0x1800cfe58]
mov r8d, 0x200
mov dword [rbx + 8], 0x80
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rbx], rax
mov rdx, rax
test rax, rax
je 0x18003781c
jmp 0x1800377e3
mov eax, dword [rbx + 8]
cmp dword [rbx + 0xc], eax
jb 0x1800377e3
mov rcx, qword [0x1800cfe58]
add eax, eax
mov r9d, eax
mov r8, rdx
shl r9, 2
xor edx, edx
mov dword [rbx + 8], eax
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov rdx, rax
test rax, rax
je 0x18003781c
mov qword [rbx], rax
mov ecx, dword [rbx + 0xc]
mov eax, dword [rsp + 0x28]
mov dword [rdx + rcx*4], eax
lea eax, [rcx + 1]
mov dword [rbx + 0xc], eax
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], Ordinal_33
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x180037760
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x180037839
mov r8, qword [rbx]
mov edi, r15d
test r8, r8
je 0x180037839
mov rcx, qword [0x1800cfe58]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov qword [rbx], r15
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x1800378aa
cmp qword [rbx], r15
je 0x1800378a5
mov edi, r15d
cmp dword [rbx + 0xc], r15d
jbe 0x1800378a5
nop dword [rax]
nop dword [rax + rax]
mov r8, qword [rbx]
xor edx, edx
mov eax, edi
mov ecx, 0x5a
mov r8d, dword [r8 + rax*4]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x18003789e
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov r8d, ebp
mov edx, r14d
mov rcx, rsi
call fcn.180037560
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, dword [rbx + 0xc]
jb 0x180037860
mov eax, r15d
jmp 0x1800378af
mov eax, 9
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x40
pop r15
pop r14
pop rdi
ret