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

Disassembly:
push rbx
sub rsp, 0x70
mov rax, qword [0x14018e080]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov edx, 0x1000
mov dword [rsp + 0x50], 0x1000
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
lea r8, [rsp + 0x50]
mov ecx, 0x250000
mov rdx, rax
mov rbx, rax
call qword [sym.imp.MPR.dll_WNetGetProviderNameA]
test eax, eax
jne 0x14008f3e2
movups xmm0, xmmword [str.g_A__W_zVBeoU_M__b]
movzx eax, word [0x140172198]
xor ecx, ecx
cmp dword [reloc.WS2_32.dll_accept], 2
movups xmmword [rsp + 0x20], xmm0
mov word [rsp + 0x38], ax
movsd xmm0, qword [0x140172190]
movzx eax, byte [0x14017219a]
movsd qword [rsp + 0x30], xmm0
mov byte [rsp + 0x3a], al
jl 0x14008f379
movdqa xmm0, xmmword [0x140178550]
lea rdx, [rsp + 0x24]
movdqa xmm5, xmmword [0x140178380]
movdqa xmm4, xmmword [0x140178720]
movdqa xmmword [rsp + 0x40], xmm0
mov r8d, dword [rsp + 0x40]
movaps xmmword [rsp + 0x60], xmm6
movdqa xmm6, xmmword [0x1401783e0]
movd xmm2, ecx
lea eax, [rcx + 4]
pshufd xmm2, xmm2, 0
lea rdx, [rdx + 8]
paddd xmm2, xmm5
movd xmm3, eax
movdqa xmm1, xmm2
pshufd xmm3, xmm3, 0
punpckldq xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
paddd xmm3, xmm5
pmuldq xmm0, xmm4
add ecx, 8
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
movdqa xmm1, xmm3
andps xmm2, xmmword [0x140178520]
packuswb xmm2, xmm2
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movd xmm0, r8d
paddb xmm2, xmm0
movd xmm0, dword [rdx - 0xc]
xorps xmm2, xmm0
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
movd dword [rdx - 0xc], xmm2
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
movd xmm0, r8d
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x140178520]
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rdx - 8]
xorps xmm2, xmm0
movd dword [rdx - 8], xmm2
cmp ecx, 0x18
jl 0x14008f270
movaps xmm6, xmmword [rsp + 0x60]
cmp ecx, 0x1b
jge 0x14008f3bd
movsxd rax, ecx
lea r8, [rsp + 0x20]
add r8, rax
nop dword [rax]
nop dword [rax + rax]
mov eax, 0x4d4873ed
lea r8, [r8 + 1]
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul edx, eax, 0x35
movzx eax, cl
inc ecx
sub al, dl
add al, 0x31
xor byte [r8 - 1], al
cmp ecx, 0x1b
jl 0x14008f390
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x14008f3e2
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1401487e0
add rsp, 0x70
pop rbx
ret
test rbx, rbx
je 0x14008f3f0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1401487e0
add rsp, 0x70
pop rbx
ret
Function at 0x14008f7a0
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x68
movups xmm0, xmmword [str.bS_PWYOQyTRILP_]
movzx eax, byte [0x140172268]
xor ecx, ecx
cmp dword [reloc.WS2_32.dll_accept], 2
movups xmmword [rsp + 0x30], xmm0
mov byte [rsp + 0x48], al
movsd xmm0, qword [0x140172260]
movsd qword [rsp + 0x40], xmm0
jl 0x14008f919
movdqa xmm0, xmmword [0x140178550]
lea rdx, [rsp + 0x34]
movdqa xmm5, xmmword [0x140178380]
movdqa xmm4, xmmword [0x140178720]
movdqa xmmword [rsp + 0x20], xmm0
mov r8d, dword [rsp + 0x20]
movaps xmmword [rsp + 0x50], xmm6
movdqa xmm6, xmmword [0x1401783e0]
nop dword [rax]
movd xmm2, ecx
lea eax, [rcx + 4]
pshufd xmm2, xmm2, 0
lea rdx, [rdx + 8]
paddd xmm2, xmm5
movd xmm3, eax
movdqa xmm1, xmm2
pshufd xmm3, xmm3, 0
punpckldq xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
paddd xmm3, xmm5
pmuldq xmm0, xmm4
add ecx, 8
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
movdqa xmm1, xmm3
andps xmm2, xmmword [0x140178520]
packuswb xmm2, xmm2
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movd xmm0, r8d
paddb xmm2, xmm0
movd xmm0, dword [rdx - 0xc]
xorps xmm2, xmm0
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
movd dword [rdx - 0xc], xmm2
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
movd xmm0, r8d
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x140178520]
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rdx - 8]
xorps xmm2, xmm0
movd dword [rdx - 8], xmm2
cmp ecx, 0x18
jl 0x14008f810
movaps xmm6, xmmword [rsp + 0x50]
cmp ecx, 0x19
jge 0x14008f95d
movsxd rax, ecx
lea r8, [rsp + 0x30]
add r8, rax
nop dword [rax]
nop dword [rax + rax]
mov eax, 0x4d4873ed
lea r8, [r8 + 1]
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul edx, eax, 0x35
movzx eax, cl
inc ecx
sub al, dl
add al, 0x31
xor byte [r8 - 1], al
cmp ecx, 0x19
jl 0x14008f930
xor r9d, r9d
lea r8, [rsp + 0x30]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.USER32.dll_FindWindowExA]
test rax, rax
sete al
add rsp, 0x68
ret
Function at 0x140091cf0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x60
mov rax, qword [0x14018e080]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov eax, dword [0x140172228]
xor r10d, r10d
cmp dword [reloc.WS2_32.dll_accept], 2
mov rdi, rcx
movsd xmm0, qword [0x140172220]
mov r8d, r10d
mov dword [rsp + 0x28], eax
movzx eax, byte [0x14017222c]
mov byte [rsp + 0x2c], al
movsd qword [rsp + 0x20], xmm0
jl 0x140091e46
movdqa xmm2, xmmword [0x140178380]
mov r8d, 8
movdqa xmm4, xmmword [0x140178720]
movdqa xmm1, xmm2
movdqa xmm3, xmmword [0x1401783a0]
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x1401783e0]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
movd xmm0, dword [0x140172220]
pshufd xmm2, xmm1, 0xd8
movdqa xmm1, xmm3
andps xmm2, xmmword [0x140178520]
packuswb xmm2, xmm2
paddb xmm2, xmmword [0x140178550]
xorps xmm2, xmm0
punpckldq xmm1, xmm3
movd dword [rsp + 0x20], xmm2
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x1401783e0]
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
movd xmm0, dword [rsp + 0x24]
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x140178520]
packuswb xmm2, xmm2
paddb xmm2, xmmword [0x140178550]
xorps xmm2, xmm0
movd dword [rsp + 0x24], xmm2
movsxd rax, r8d
lea r9, [rsp + 0x20]
add r9, rax
mov eax, 0x4d4873ed
lea r9, [r9 + 1]
imul r8d
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x35
movzx eax, r8b
inc r8d
sub al, cl
add al, 0x31
xor byte [r9 - 1], al
cmp r8d, 0xd
jl 0x140091e51
xorps xmm0, xmm0
mov qword [rsp + 0x40], r10
mov rbx, 0xffffffffffffffff
mov qword [rsp + 0x48], r10
movups xmmword [rsp + 0x30], xmm0
mov r8, rbx
lea rax, [rsp + 0x20]
inc r8
cmp byte [rax + r8], r10b
jne 0x140091ea3
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x30]
call fcn.140059080
cmp qword [rsp + 0x48], 0xf
lea r14, [rsp + 0x30]
mov rbp, qword [rdi + 0x10]
cmova r14, qword [rsp + 0x30]
cmp qword [rdi + 0x18], 0xf
jbe 0x140091eda
mov rdi, qword [rdi]
mov rsi, qword [rsp + 0x40]
mov qword [rsp + 0x80], r15
test rsi, rsi
jne 0x140091ef5
cmp rbp, rbx
cmovb rbx, rbp
jmp 0x140091f34
cmp rsi, rbp
ja 0x140091f47
movzx r15d, byte [r14]
mov rax, rbp
sub rax, rsi
cmp rax, rbx
cmovb rbx, rax
add rbx, rdi
nop
cmp byte [rbx], r15b
jne 0x140091f27
mov r8, rsi
mov rdx, r14
mov rcx, rbx
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x140091f31
cmp rbx, rdi
je 0x140091f47
dec rbx
jmp 0x140091f10
sub rbx, rdi
cmp rbx, 0xffffffffffffffff
je 0x140091f47
lea rax, [rbx + rsi]
cmp rax, rbp
jne 0x140091f47
mov bl, 1
jmp 0x140091f49
xor bl, bl
lea rcx, [rsp + 0x30]
call fcn.14003d640
mov r15, qword [rsp + 0x80]
movzx eax, bl
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1401487e0
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x1400aa850
Capabilities:
Get routing table

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x3d0
mov rax, qword [0x14018e080]
xor rax, rsp
mov qword [rsp + 0x3c0], rax
xor ebx, ebx
lea rdx, [rsp + 0x58]
xor r8d, r8d
mov dword [rsp + 0x58], ebx
xor ecx, ecx
call qword [sym.imp.IPHLPAPI.DLL_GetIpForwardTable]
mov ecx, dword [rsp + 0x58]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
xor r8d, r8d
lea rdx, [rsp + 0x58]
mov rcx, rax
mov rdi, rax
call qword [sym.imp.IPHLPAPI.DLL_GetIpForwardTable]
test eax, eax
je 0x1400aa8b0
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
cmp dword [rdi], ebx
jbe 0x1400aa901
nop dword [rax]
nop dword [rax + rax]
mov eax, ebx
imul rcx, rax, 0x38
cmp dword [rcx + rdi + 4], 0
movups xmm3, xmmword [rcx + rdi + 0x14]
jne 0x1400aa8ea
lea rcx, [rsp + 0x60]
movd dword [rsp + 0x260], xmm3
call qword [sym.imp.IPHLPAPI.DLL_GetIfEntry]
test eax, eax
je 0x1400aa8f2
inc ebx
cmp ebx, dword [rdi]
jb 0x1400aa8c0
jmp 0x1400aa901
cmp dword [rsp + 0x264], 6
sete byte [0x141688330]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [rsp + 0x3c0]
xor rcx, rsp
call fcn.1401487e0
mov rbx, qword [rsp + 0x3e0]
add rsp, 0x3d0
pop rdi
ret
Function at 0x1400b7940
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push rsi
sub rsp, 0x2f0
mov rax, qword [0x14018e080]
xor rax, rsp
mov qword [rsp + 0x2e0], rax
lea rax, str.FAT32
movsx r8d, cl
mov qword [rsp + 0x40], rax
lea rdx, str.._c:
lea rax, [0x140173ccc]
mov dword [rsp + 0x48], 0x52
mov qword [rsp + 0x50], rax
lea rcx, [rsp + 0xa0]
lea rax, str.NTFS
mov dword [rsp + 0x4c], 0x43
mov qword [rsp + 0x60], rax
mov dword [rsp + 0x58], Ordinal_60
mov dword [rsp + 0x5c], Ordinal_46
mov dword [rsp + 0x68], 3
mov dword [rsp + 0x6c], Ordinal_79
call fcn.1400db340
xor r9d, r9d
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
lea rcx, [rsp + 0xa0]
mov edx, 0xc0000000
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x1400b7b1b
lea r9, [rsp + 0x90]
mov qword [rsp + 0x20], 0
mov r8d, 0x200
lea rdx, [rsp + 0xe0]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400b7b12
mov qword [rsp + 0x308], rbx
lea rbx, [rsp + 0x48]
mov qword [rsp + 0x310], rdi
xor edi, edi
nop
mov rcx, qword [rbx - 8]
mov r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp byte [rcx + r8], 0
jne 0x1400b7a60
mov eax, dword [rbx]
lea rdx, [rsp + 0xe0]
add rdx, rax
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
test eax, eax
je 0x1400b7a8e
inc edi
add rbx, 0x10
cmp edi, 3
jl 0x1400b7a50
jmp 0x1400b7b02
cmp edi, 3
jge 0x1400b7b02
lea rcx, [rsp + 0x70]
call fcn.1400ea040
cmp qword [rax + 0x18], 0xf
jbe 0x1400b7aa7
mov rax, qword [rax]
mov eax, dword [rax]
movsxd rcx, edi
add rcx, rcx
mov ecx, dword [rsp + rcx*8 + 0x4c]
xor dword [rsp + rcx + 0xe0], eax
lea rcx, [rsp + 0x70]
call fcn.14003d640
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x1400b7b02
lea r9, [rsp + 0x94]
mov qword [rsp + 0x20], 0
mov r8d, 0x200
lea rdx, [rsp + 0xe0]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rbx, qword [rsp + 0x308]
mov rdi, qword [rsp + 0x310]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x2e0]
xor rcx, rsp
call fcn.1401487e0
add rsp, 0x2f0
pop rsi
ret

Function at 0x1400b7b40
Capabilities:
Parse pe header
Read file on windows
Write file on windows

Disassembly:
sub rsp, 0x28
mov cl, 0x41
call fcn.1400b7940
mov cl, 0x42
call fcn.1400b7940
mov cl, 0x43
call fcn.1400b7940
mov cl, 0x44
call fcn.1400b7940
mov cl, 0x45
call fcn.1400b7940
mov cl, 0x46
call fcn.1400b7940
mov cl, 0x47
call fcn.1400b7940
mov cl, 0x48
call fcn.1400b7940
mov cl, 0x49
call fcn.1400b7940
mov cl, 0x4a
call fcn.1400b7940
mov cl, 0x4b
call fcn.1400b7940
mov cl, 0x4c
call fcn.1400b7940
mov cl, 0x4d
call fcn.1400b7940
mov cl, Ordinal_79
call fcn.1400b7940
mov cl, reloc.WLDAP32.dll_Ordinal_79
call fcn.1400b7940
mov cl, 0x50
call fcn.1400b7940
mov cl, 0x51
call fcn.1400b7940
mov cl, 0x52
call fcn.1400b7940
mov cl, 0x53
call fcn.1400b7940
mov cl, 0x54
call fcn.1400b7940
mov cl, 0x55
call fcn.1400b7940
mov cl, 0x56
call fcn.1400b7940
mov cl, 0x58
call fcn.1400b7940
mov cl, 0x57
call fcn.1400b7940
mov cl, 0x5a
add rsp, 0x28
jmp fcn.1400b7940
Function at 0x1400b7c00
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
mov eax, 0x13f0
call fcn.140149250
sub rsp, rax
mov rax, qword [0x14018e080]
xor rax, rsp
mov qword [rsp + 0x13e0], rax
mov rdi, rcx
mov qword [rsp + 0x40], rcx
xor ecx, ecx
mov dword [rsp + 0x20], ecx
movups xmm0, xmmword [str.0123456789ABCDEF]
movups xmmword [rsp + 0x28], xmm0
movzx eax, byte [0x1401710a0]
mov byte [rsp + 0x38], al
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], rcx
mov qword [rdi + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rdi], cl
mov ebx, 1
mov dword [rsp + 0x20], ebx
call qword [sym.imp.MSVCP140.dll_unsigned_int___cdecl_std::_Random_device_void_]
mov ecx, eax
mov dword [rsp + 0x13d4], 0xffffffff
mov dword [rsp + 0x54], eax
nop
mov eax, ecx
shr eax, 0x1e
xor eax, ecx
imul ecx, eax, 0x6c078965
add ecx, ebx
mov dword [rsp + rbx*4 + 0x54], ecx
inc rbx
cmp rbx, 0x270
jb 0x1400b7c80
mov dword [rsp + 0x50], 0x270
mov ebx, 5
nop dword [rax]
lea rcx, [rsp + 0x50]
call fcn.14008b5f0
mov eax, eax
shl rax, 4
shr rax, 0x20
cdqe
movzx r9d, byte [rsp + rax + 0x28]
mov rcx, qword [rdi + 0x10]
mov rdx, qword [rdi + 0x18]
cmp rcx, rdx
jae 0x1400b7cf8
lea rax, [rcx + 1]
mov qword [rdi + 0x10], rax
mov rax, rdi
cmp rdx, 0xf
jbe 0x1400b7ced
mov rax, qword [rdi]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x1400b7d00
mov rcx, rdi
call fcn.14005fbb0
sub rbx, 1
jne 0x1400b7cb0
mov rax, rdi
mov rcx, qword [rsp + 0x13e0]
xor rcx, rsp
call fcn.1401487e0
mov rbx, qword [rsp + 0x1408]
add rsp, 0x13f0
pop rdi
ret
Function at 0x1400dacb0
Capabilities:
Write file on windows

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x80
mov rax, qword [0x14018e080]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov esi, 0xffff
movzx edi, dx
mov rbx, rcx
cmp si, dx
jne 0x1400dace1
xor eax, eax
jmp 0x1400dae2b
mov rax, qword [rcx + 0x40]
mov r8, qword [rax]
test r8, r8
je 0x1400dad1e
mov r9, qword [rcx + 0x58]
movsxd r10, dword [r9]
lea rdx, [r8 + r10*2]
cmp r8, rdx
jae 0x1400dad1e
lea ecx, [r10 - 1]
movzx eax, di
mov dword [r9], ecx
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 2]
mov qword [rdx], rcx
mov word [r8], di
jmp 0x1400dae2b
cmp qword [rcx + 0x80], 0
mov qword [rsp + 0xb0], rbp
je 0x1400dae20
mov r8, qword [rcx + 0x18]
lea rax, [rcx + 0x70]
cmp qword [r8], rax
jne 0x1400dad65
mov rdx, qword [rcx + 0x90]
mov rcx, qword [rcx + 0x88]
mov qword [r8], rcx
sub rdx, rcx
mov rax, qword [rbx + 0x38]
sar rdx, 1
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x1400dad73
movzx ecx, di
jmp 0x1400dadc7
lea rax, [rsp + 0x40]
mov word [rsp + 0x50], di
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x52]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x50]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_wchar_t__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__wchar_t_const____ptr64__wchar_t_const____ptr64__wchar_t_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x1400dade0
sub eax, 1
je 0x1400dade0
cmp eax, 2
jne 0x1400dae20
movzx ecx, word [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputwc]
cmp ax, si
cmove di, si
movzx eax, di
jmp 0x1400dae23
mov rbp, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rbp, rax
je 0x1400dae0e
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rbp
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rbp, rax
jne 0x1400dae20
lea rax, [rsp + 0x50]
mov byte [rbx + 0x72], 1
cmp qword [rsp + 0x48], rax
cmovne si, di
movzx eax, si
mov rbp, qword [rsp + 0xb0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1401487e0
add rsp, 0x80
pop rdi
pop rsi
pop rbx
ret
Function at 0x1400dafb0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x14018e080]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x1400db085
cmp byte [rcx + 0x72], 0
je 0x1400db085
mov rax, qword [rcx]
mov qword [rsp + 0x78], rdi
mov edi, 0xffff
mov edx, edi
call qword [rax + Ordinal_26]
cmp di, ax
je 0x1400db081
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_wchar_t__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x1400db046
sub eax, 1
je 0x1400db04a
cmp eax, 2
jne 0x1400db081
mov byte [rbx + 0x72], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1401487e0
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x72], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x1400db078
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x1400db081
cmp byte [rbx + 0x72], 0
sete al
jmp 0x1400db02e
xor al, al
jmp 0x1400db02e
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1401487e0
add rsp, 0x60
pop rbx
ret
Function at 0x1400e96d0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x280
mov rax, qword [0x14018e080]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov rdi, r8
mov rbx, rcx
mov qword [rsp + 0x60], rcx
xor edx, edx
mov r8d, 0x200
lea rcx, [rsp + 0x70]
call fcn.14014a104
mov dword [rsp + 0x58], 0x200
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, str.SYSTEMCurrentControlSetPolicies
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400e97d8
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x68]
xor r8d, r8d
mov rdx, rdi
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400e97cd
mov eax, dword [rsp + 0x68]
dec eax
cmp eax, 1
ja 0x1400e97cd
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r8d, dword [rsp + 0x58]
shr r8, 1
dec r8
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x48], xmm1
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x38]
call fcn.14008aa20
nop
lea rdx, [rsp + 0x38]
mov rcx, rbx
call fcn.1400e9830
nop
lea rcx, [rsp + 0x38]
call fcn.14008a290
jmp 0x1400e9800
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], 0
mov qword [rbx + 0x18], 0
xor r8d, r8d
lea rdx, [0x140171ed4]
mov rcx, rbx
call fcn.14008aa20
mov rax, rbx
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.1401487e0
mov rbx, qword [rsp + 0x298]
add rsp, 0x280
pop rdi
ret

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

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1400e9c4a
test al, 0x10
jne 0x1400e9c4a
mov al, 1
add rsp, 0x28
ret
xor al, al
add rsp, 0x28
ret
Function at 0x1400ea040
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
mov eax, 0x1400
call fcn.140149250
sub rsp, rax
mov rax, qword [0x14018e080]
xor rax, rsp
mov qword [rsp + 0x13f0], rax
mov rbx, rcx
mov qword [rsp + 0x50], rcx
xor ecx, ecx
mov dword [rsp + 0x20], ecx
movups xmm0, xmmword [str.0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ]
movups xmmword [rsp + 0x28], xmm0
movups xmm1, xmmword [0x140176ad8]
movups xmmword [rsp + 0x38], xmm1
mov eax, dword [0x140176ae8]
mov dword [rsp + 0x48], eax
movzx eax, byte [0x140176aec]
mov byte [rsp + 0x4c], al
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rcx
mov qword [rbx + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rbx], cl
mov edi, 1
mov dword [rsp + 0x20], edi
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
mov rcx, rax
mov dword [rsp + 0x13e4], 0xffffffff
mov dword [rsp + 0x64], eax
nop word [rax + rax]
mov eax, ecx
shr eax, 0x1e
xor eax, ecx
imul ecx, eax, 0x6c078965
add ecx, edi
mov dword [rsp + rdi*4 + 0x64], ecx
inc rdi
cmp rdi, 0x270
jb 0x1400ea0e0
mov dword [rsp + 0x60], 0x270
mov edi, 8
nop dword [rax]
lea rcx, [rsp + 0x60]
call fcn.14008b5f0
mov ecx, eax
imul rax, rcx, 0x25
cmp eax, 6
ja 0x1400ea13a
lea rcx, [rsp + 0x60]
call fcn.14008b5f0
mov ecx, eax
imul rax, rcx, 0x25
cmp eax, 7
jb 0x1400ea125
shr rax, 0x20
movsxd rcx, eax
movzx r9d, byte [rsp + rcx + 0x28]
mov rcx, qword [rbx + 0x10]
mov rdx, qword [rbx + 0x18]
cmp rcx, rdx
jae 0x1400ea173
lea rax, [rcx + 1]
mov qword [rbx + 0x10], rax
mov rax, rbx
cmp rdx, 0xf
jbe 0x1400ea168
mov rax, qword [rbx]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x1400ea17b
mov rcx, rbx
call fcn.14005fbb0
sub rdi, 1
jne 0x1400ea110
mov rax, rbx
mov rcx, qword [rsp + 0x13f0]
xor rcx, rsp
call fcn.1401487e0
mov rbx, qword [rsp + 0x1418]
add rsp, 0x1400
pop rdi
ret