joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140088f50
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x14018c080]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140089023
cmp byte [rcx + 0x71], 0
je 0x140089023
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + Ordinal_26]
cmp eax, 0xffffffff
je 0x14008901f
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_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140088fe4
sub eax, 1
je 0x140088fe8
cmp eax, 2
jne 0x14008901f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1401468a0
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140089016
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 0x14008901f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x140088fcc
xor al, al
jmp 0x140088fcc
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1401468a0
add rsp, 0x60
pop rbx
ret

Function at 0x1400897d0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x14018c080]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rbx, rdx
mov rdi, rcx
mov ecx, 8
call fcn.140146c7c
mov qword [rax], rbx
mov qword [rsp + 0x30], rax
lea rbx, [rdi + 8]
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], 0
mov r9, rax
lea r8, [0x14008abf0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rdi], rax
test rax, rax
je 0x140089849
mov rax, rdi
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1401468a0
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
mov dword [rbx], 0
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
Function at 0x14008a880
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 8
mov r9, rcx
mov r10d, 0x270
mov ecx, dword [rcx]
cmp ecx, r10d
jne 0x14008a8e1
lea r8, [r9 + 8]
nop dword [rax + rax]
mov edx, dword [r8 - 4]
xor edx, dword [r8]
lea r8, [r8 + 4]
btr edx, 0x1f
xor edx, dword [r8 - 8]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x62c]
xor ecx, edx
mov dword [r8 + 0x9b8], ecx
sub r10, 1
jne 0x14008a8a0
mov ecx, dword [r9]
jmp 0x14008a9cb
cmp ecx, 0x4e0
jb 0x14008a9cb
lea r10, [r9 + 0x9c4]
mov qword [rsp], rbx
mov r11d, dword [r10]
mov ebx, 0xe3
mov eax, r11d
mov r8, r10
mov r11d, dword [r10 + 4]
add r10, 4
mov edx, r11d
xor edx, eax
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x634]
xor ecx, edx
mov dword [r8 - 0x9c0], ecx
sub rbx, 1
jne 0x14008a900
lea r10, [r9 + 0xd50]
mov ebx, 0x18c
mov r11d, dword [r10]
nop
mov eax, r11d
mov r8, r10
mov r11d, dword [r10 + 4]
mov edx, eax
xor edx, r11d
add r10, 4
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 - 0xd4c]
xor ecx, edx
mov dword [r8 - 0x9c0], ecx
sub rbx, 1
jne 0x14008a950
mov eax, dword [r9 + 0x1380]
mov edx, eax
xor edx, dword [r9 + 4]
mov rbx, qword [rsp]
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r9 + 0x634]
xor ecx, edx
mov dword [r9 + 0x9c0], ecx
xor ecx, ecx
mov dword [r9], ecx
mov eax, ecx
mov edx, dword [r9 + rax*4 + 4]
lea eax, [rcx + 1]
mov dword [r9], eax
mov ecx, edx
mov eax, dword [r9 + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
add rsp, 8
ret
Function at 0x14008aa10
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 8
mov r10, rcx
mov r9d, 0x138
mov ecx, dword [rcx]
cmp ecx, r9d
jne 0x14008aa77
lea r8, [r10 + 0x10]
movabs r11, 0xb5026f5aa96619e9
mov rdx, qword [r8]
xor rdx, qword [r8 - 8]
lea r8, [r8 + 8]
and rdx, 0xffffffff80000000
xor rdx, qword [r8 - 8]
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 0x14008aa32
mov ecx, dword [r10]
jmp 0x14008ab98
cmp ecx, 0x270
jb 0x14008ab98
mov qword [rsp + 0x10], rbx
movabs r11, 0xb5026f5aa96619e9
lea rbx, [r10 + 0x9c8]
mov qword [rsp], rdi
mov rax, qword [rbx]
mov edi, 0x9c
nop word [rax + rax]
mov r9, qword [rbx + 8]
mov r8, rbx
add rbx, 8
mov rdx, r9
xor rdx, rax
and rdx, 0xffffffff80000000
xor rdx, r9
movzx eax, dl
and al, 1
neg al
mov rax, r9
sbb rcx, rcx
shr rdx, 1
and rcx, r11
xor rcx, qword [r8 + 0x4e0]
xor rcx, rdx
mov qword [r8 - 0x9c0], rcx
sub rdi, 1
jne 0x14008aab0
lea rbx, [r10 + 0xea8]
mov edi, 0x9b
mov r9, qword [rbx]
nop dword [rax]
nop dword [rax + rax]
mov r8, qword [rbx + 8]
mov rdx, rbx
xor r9, r8
add rbx, 8
and r9, 0xffffffff80000000
xor r9, r8
movzx eax, r9b
and al, 1
neg al
sbb rcx, rcx
shr r9, 1
and rcx, r11
xor rcx, qword [rdx - 0xea0]
xor rcx, r9
mov r9, r8
mov qword [rdx - 0x9c0], rcx
sub rdi, 1
jne 0x14008ab10
mov rdx, qword [r10 + 8]
xor rdx, qword [r10 + 0x1380]
mov rdi, qword [rsp]
and rdx, 0xffffffff80000000
xor rdx, qword [r10 + 8]
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
mov qword [r10 + 0x9c0], rcx
xor ecx, ecx
mov dword [r10], ecx
mov eax, ecx
mov rdx, qword [r10 + rax*8 + 8]
lea eax, [rcx + 1]
mov dword [r10], eax
mov rcx, rdx
mov rax, qword [r10 + 0x1388]
shr rcx, 0x1d
and rax, rcx
movabs rcx, 0x38eb3ffff6d3
xor rdx, rax
mov rax, rdx
and rax, rcx
shl rax, 0x11
xor rdx, rax
mov rax, rdx
and rax, 0xffffffffffffbf77
shl rax, 0x25
xor rdx, rax
mov rax, rdx
shr rax, 0x2b
xor rax, rdx
add rsp, 8
ret
Function at 0x14008e460
Capabilities:
Encode data using xor

Disassembly:
push rbx
sub rsp, 0x70
mov rax, qword [0x14018c080]
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 0x14008e696
movups xmm0, xmmword [str.oSIHH_S]
movzx eax, word [0x140170210]
xor ecx, ecx
cmp dword [reloc.WS2_32.dll_accept], 2
movups xmmword [rsp + 0x20], xmm0
mov word [rsp + 0x38], ax
movsd xmm0, qword [0x140170208]
movzx eax, byte [0x140170212]
movsd qword [rsp + 0x30], xmm0
mov byte [rsp + 0x3a], al
jl 0x14008e631
movdqa xmm0, xmmword [0x1401760b0]
lea rdx, [rsp + 0x24]
movdqa xmm5, xmmword [0x140175f00]
movdqa xmm4, xmmword [0x140176230]
movdqa xmmword [rsp + 0x40], xmm0
mov r8d, dword [rsp + 0x40]
movaps xmmword [rsp + 0x60], xmm6
movdqa xmm6, xmmword [0x140175f70]
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
paddd xmm1, xmm2
psrad xmm1, 5
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 [0x140176040]
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
paddd xmm1, xmm3
psrad xmm1, 5
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 [0x140176040]
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rdx - 8]
xorps xmm2, xmm0
movd dword [rdx - 8], xmm2
cmp ecx, 0x18
jl 0x14008e520
movaps xmm6, xmmword [rsp + 0x60]
cmp ecx, 0x1b
jge 0x14008e671
movsxd rax, ecx
lea r8, [rsp + 0x20]
add r8, rax
nop dword [rax]
mov eax, 0x8fb823ef
lea r8, [r8 + 1]
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, 1
sub al, dl
movsx eax, al
imul edx, eax, 0x39
add dl, cl
inc ecx
xor byte [r8 - 1], dl
cmp ecx, 0x1b
jl 0x14008e640
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x14008e696
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1401468a0
add rsp, 0x70
pop rbx
ret
test rbx, rbx
je 0x14008e6a4
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1401468a0
add rsp, 0x70
pop rbx
ret
Function at 0x14008ea60
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x68
movups xmm0, xmmword [str.j_UX_QG__]
movzx eax, byte [0x1401700c8]
xor ecx, ecx
cmp dword [reloc.WS2_32.dll_accept], 2
movups xmmword [rsp + 0x30], xmm0
mov byte [rsp + 0x48], al
movsd xmm0, qword [0x1401700c0]
movsd qword [rsp + 0x40], xmm0
jl 0x14008ebe1
movdqa xmm0, xmmword [0x1401760b0]
lea rdx, [rsp + 0x34]
movdqa xmm5, xmmword [0x140175f00]
movdqa xmm4, xmmword [0x140176230]
movdqa xmmword [rsp + 0x20], xmm0
mov r8d, dword [rsp + 0x20]
movaps xmmword [rsp + 0x50], xmm6
movdqa xmm6, xmmword [0x140175f70]
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
paddd xmm1, xmm2
psrad xmm1, 5
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 [0x140176040]
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
paddd xmm1, xmm3
psrad xmm1, 5
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 [0x140176040]
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rdx - 8]
xorps xmm2, xmm0
movd dword [rdx - 8], xmm2
cmp ecx, 0x18
jl 0x14008ead0
movaps xmm6, xmmword [rsp + 0x50]
cmp ecx, 0x19
jge 0x14008ec21
movsxd rax, ecx
lea r8, [rsp + 0x30]
add r8, rax
nop dword [rax]
mov eax, 0x8fb823ef
lea r8, [r8 + 1]
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, 1
sub al, dl
movsx eax, al
imul edx, eax, 0x39
add dl, cl
inc ecx
xor byte [r8 - 1], dl
cmp ecx, 0x19
jl 0x14008ebf0
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 0x1400a99c0
Capabilities:
Get routing table

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x3d0
mov rax, qword [0x14018c080]
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 0x1400a9a20
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
cmp dword [rdi], ebx
jbe 0x1400a9a71
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 0x1400a9a5a
lea rcx, [rsp + 0x60]
movd dword [rsp + 0x260], xmm3
call qword [sym.imp.IPHLPAPI.DLL_GetIfEntry]
test eax, eax
je 0x1400a9a62
inc ebx
cmp ebx, dword [rdi]
jb 0x1400a9a30
jmp 0x1400a9a71
cmp dword [rsp + 0x264], 6
sete byte [0x141610488]
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.1401468a0
mov rbx, qword [rsp + 0x3e0]
add rsp, 0x3d0
pop rdi
ret
Function at 0x1400b6880
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push rsi
sub rsp, 0x2f0
mov rax, qword [0x14018c080]
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, [0x140171be4]
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.1400d92f0
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 0x1400b6a5b
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 0x1400b6a52
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 0x1400b69a0
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 0x1400b69ce
inc edi
add rbx, 0x10
cmp edi, 3
jl 0x1400b6990
jmp 0x1400b6a42
cmp edi, 3
jge 0x1400b6a42
lea rcx, [rsp + 0x70]
call fcn.1400e8400
cmp qword [rax + 0x18], 0xf
jbe 0x1400b69e7
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.14003d700
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x1400b6a42
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.1401468a0
add rsp, 0x2f0
pop rsi
ret

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

Disassembly:
sub rsp, 0x28
mov cl, 0x41
call fcn.1400b6880
mov cl, 0x42
call fcn.1400b6880
mov cl, 0x43
call fcn.1400b6880
mov cl, 0x44
call fcn.1400b6880
mov cl, 0x45
call fcn.1400b6880
mov cl, 0x46
call fcn.1400b6880
mov cl, 0x47
call fcn.1400b6880
mov cl, 0x48
call fcn.1400b6880
mov cl, 0x49
call fcn.1400b6880
mov cl, 0x4a
call fcn.1400b6880
mov cl, 0x4b
call fcn.1400b6880
mov cl, 0x4c
call fcn.1400b6880
mov cl, 0x4d
call fcn.1400b6880
mov cl, Ordinal_79
call fcn.1400b6880
mov cl, reloc.WLDAP32.dll_Ordinal_79
call fcn.1400b6880
mov cl, 0x50
call fcn.1400b6880
mov cl, 0x51
call fcn.1400b6880
mov cl, 0x52
call fcn.1400b6880
mov cl, 0x53
call fcn.1400b6880
mov cl, 0x54
call fcn.1400b6880
mov cl, 0x55
call fcn.1400b6880
mov cl, 0x56
call fcn.1400b6880
mov cl, 0x58
call fcn.1400b6880
mov cl, 0x57
call fcn.1400b6880
mov cl, 0x5a
add rsp, 0x28
jmp fcn.1400b6880
Function at 0x1400b6b40
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.140147310
sub rsp, rax
mov rax, qword [0x14018c080]
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 [0x14016f0d8]
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 0x1400b6bc0
mov dword [rsp + 0x50], 0x270
mov ebx, 5
nop dword [rax]
lea rcx, [rsp + 0x50]
call fcn.14008a880
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 0x1400b6c38
lea rax, [rcx + 1]
mov qword [rdi + 0x10], rax
mov rax, rdi
cmp rdx, 0xf
jbe 0x1400b6c2d
mov rax, qword [rdi]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x1400b6c40
mov rcx, rdi
call fcn.140060700
sub rbx, 1
jne 0x1400b6bf0
mov rax, rdi
mov rcx, qword [rsp + 0x13e0]
xor rcx, rsp
call fcn.1401468a0
mov rbx, qword [rsp + 0x1408]
add rsp, 0x13f0
pop rdi
ret
Function at 0x1400d8c60
Capabilities:
Write file on windows

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x80
mov rax, qword [0x14018c080]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov esi, 0xffff
movzx edi, dx
mov rbx, rcx
cmp si, dx
jne 0x1400d8c91
xor eax, eax
jmp 0x1400d8ddb
mov rax, qword [rcx + 0x40]
mov r8, qword [rax]
test r8, r8
je 0x1400d8cce
mov r9, qword [rcx + 0x58]
movsxd r10, dword [r9]
lea rdx, [r8 + r10*2]
cmp r8, rdx
jae 0x1400d8cce
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 0x1400d8ddb
cmp qword [rcx + 0x80], 0
mov qword [rsp + 0xb0], rbp
je 0x1400d8dd0
mov r8, qword [rcx + 0x18]
lea rax, [rcx + 0x70]
cmp qword [r8], rax
jne 0x1400d8d15
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 0x1400d8d23
movzx ecx, di
jmp 0x1400d8d77
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 0x1400d8d90
sub eax, 1
je 0x1400d8d90
cmp eax, 2
jne 0x1400d8dd0
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 0x1400d8dd3
mov rbp, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rbp, rax
je 0x1400d8dbe
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 0x1400d8dd0
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.1401468a0
add rsp, 0x80
pop rdi
pop rsi
pop rbx
ret
Function at 0x1400d8f60
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x14018c080]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x1400d9035
cmp byte [rcx + 0x72], 0
je 0x1400d9035
mov rax, qword [rcx]
mov qword [rsp + 0x78], rdi
mov edi, 0xffff
mov edx, edi
call qword [rax + Ordinal_26]
cmp di, ax
je 0x1400d9031
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 0x1400d8ff6
sub eax, 1
je 0x1400d8ffa
cmp eax, 2
jne 0x1400d9031
mov byte [rbx + 0x72], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1401468a0
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x72], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x1400d9028
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 0x1400d9031
cmp byte [rbx + 0x72], 0
sete al
jmp 0x1400d8fde
xor al, al
jmp 0x1400d8fde
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1401468a0
add rsp, 0x60
pop rbx
ret
Function at 0x1400e7aa0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x280
mov rax, qword [0x14018c080]
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.1401481c4
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 0x1400e7ba8
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 0x1400e7b9d
mov eax, dword [rsp + 0x68]
dec eax
cmp eax, 1
ja 0x1400e7b9d
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.140089cb0
nop
lea rdx, [rsp + 0x38]
mov rcx, rbx
call fcn.1400e7c00
nop
lea rcx, [rsp + 0x38]
call fcn.140089520
jmp 0x1400e7bd0
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, [0x14016fdf8]
mov rcx, rbx
call fcn.140089cb0
mov rax, rbx
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.1401468a0
mov rbx, qword [rsp + 0x298]
add rsp, 0x280
pop rdi
ret

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

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1400e801a
test al, 0x10
jne 0x1400e801a
mov al, 1
add rsp, 0x28
ret
xor al, al
add rsp, 0x28
ret