joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14011b640
Capabilities:
Generate random numbers via winapi
Get memory capacity

Disassembly:
push rbx
mov eax, Ordinal_211
call fcn.1400b17d0
sub rsp, rax
mov rax, qword [0x14021d0b8]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov r9d, 1
mov dword [rsp + 0x20], 0xf0000040
xor r8d, r8d
lea rcx, [rsp + 0x30]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
mov ebx, 0x40
test eax, eax
je 0x14011b6d2
mov rcx, qword [rsp + 0x30]
lea r8, [rsp + 0x80]
mov edx, ebx
call qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
je 0x14011b6c5
xorps xmm2, xmm2
cvtsi2sd xmm2, rbx
test rbx, rbx
jns 0x14011b6b6
addsd xmm2, qword [0x1401db360]
mov edx, ebx
lea rcx, [rsp + 0x80]
call fcn.1400becc0
mov rcx, qword [rsp + 0x30]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov r9d, reloc.WLDAP32.dll_Ordinal_22
mov dword [rsp + 0x20], 0xf0000040
lea r8, str.Intel_Hardware_Cryptographic_Service_Provider
xor edx, edx
lea rcx, [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x14011b742
mov rcx, qword [rsp + 0x30]
lea r8, [rsp + 0x80]
mov edx, ebx
call qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
je 0x14011b735
xorps xmm2, xmm2
cvtsi2sd xmm2, rbx
test rbx, rbx
jns 0x14011b726
addsd xmm2, qword [0x1401db360]
mov edx, ebx
lea rcx, [rsp + 0x80]
call fcn.1400becc0
mov rcx, qword [rsp + 0x30]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
cmp dword [reloc.WS2_32.dll_accept], 0
je 0x14011b77d
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
jne 0x14011b762
mov dword [reloc.WS2_32.dll_accept], eax
jmp 0x14011b77d
xorps xmm2, xmm2
lea rcx, [rsp + 0x40]
mov edx, 8
call fcn.1400becc0
cmp dword [reloc.WS2_32.dll_accept], 0
jne 0x14011b799
call qword [sym.imp.KERNEL32.dll_GetTickCount]
xorps xmm2, xmm2
lea rcx, [rsp + 0x38]
mov edx, 4
mov dword [rsp + 0x38], eax
call fcn.1400becc0
lea rcx, [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
movsd xmm2, qword [0x1401a9860]
lea rcx, [rsp + 0x48]
mov edx, Ordinal_60
call fcn.1400becc0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
movsd xmm2, qword [0x1401a9860]
lea rcx, [rsp + 0x3c]
mov edx, 4
mov dword [rsp + 0x3c], eax
call fcn.1400becc0
mov eax, 1
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.1400b1210
add rsp, 0xd0
pop rbx
ret
Function at 0x14012c520
Capabilities:
Encrypt data using curve25519

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
lea rbp, [rsp - 0x50]
mov eax, 0x150
call fcn.1400b17d0
sub rsp, rax
mov rax, qword [0x14021d0b8]
xor rax, rsp
mov qword [rbp + 0x40], rax
movups xmm2, xmmword [rdx]
mov rbx, rcx
lea rcx, [rsp + 0x50]
movups xmm0, xmmword [rdx + 0x10]
lea rdx, [rbp - 0x10]
movd eax, xmm2
movups xmmword [rbp], xmm0
and al, 0xf8
psrldq xmm0, 8
movups xmmword [rbp - 0x10], xmm2
mov byte [rbp - 0x10], al
movq rax, xmm0
shr rax, 0x38
and al, 0x3f
or al, 0x40
mov byte [rbp + 0xf], al
call fcn.14012ecc0
mov ecx, dword [rsp + 0x78]
mov edx, dword [rbp - 0x60]
mov r8d, dword [rbp - 0x3c]
lea eax, [rcx + rdx]
sub edx, ecx
mov ecx, dword [rsp + 0x7c]
mov dword [rbp + 0x18], edx
mov edx, dword [rbp - 0x5c]
mov dword [rbp - 0x10], eax
lea eax, [rcx + rdx]
sub edx, ecx
mov ecx, dword [rbp - 0x80]
mov dword [rbp + 0x1c], edx
mov edx, dword [rbp - 0x58]
mov dword [rbp - 0xc], eax
lea eax, [rcx + rdx]
sub edx, ecx
mov ecx, dword [rbp - 0x7c]
mov dword [rbp + 0x20], edx
mov edx, dword [rbp - 0x54]
mov dword [rbp - 8], eax
lea eax, [rcx + rdx]
sub edx, ecx
mov ecx, dword [rbp - 0x78]
mov dword [rbp + 0x24], edx
mov edx, dword [rbp - 0x50]
mov dword [rbp - 4], eax
lea eax, [rcx + rdx]
sub edx, ecx
mov ecx, dword [rbp - 0x74]
mov dword [rbp + 0x28], edx
mov edx, dword [rbp - 0x4c]
mov dword [rbp], eax
lea eax, [rcx + rdx]
sub edx, ecx
mov ecx, dword [rbp - 0x70]
mov dword [rbp + 0x2c], edx
mov edx, dword [rbp - 0x48]
mov dword [rbp + 4], eax
lea eax, [rcx + rdx]
sub edx, ecx
mov ecx, dword [rbp - 0x6c]
mov dword [rbp + 0x30], edx
mov edx, dword [rbp - 0x44]
mov dword [rbp + 8], eax
lea eax, [rcx + rdx]
sub edx, ecx
mov ecx, dword [rbp - 0x68]
mov dword [rbp + 0x34], edx
mov edx, dword [rbp - 0x40]
mov dword [rbp + 0xc], eax
lea eax, [rcx + rdx]
sub edx, ecx
mov dword [rbp + 0x38], edx
lea rcx, [rsp + 0x20]
mov edx, dword [rbp - 0x64]
mov dword [rbp + 0x10], eax
lea eax, [rdx + r8]
sub r8d, edx
lea rdx, [rbp + 0x18]
mov dword [rbp + 0x3c], r8d
mov dword [rbp + 0x14], eax
call fcn.14012cb00
lea r8, [rsp + 0x20]
lea rdx, [rbp - 0x10]
lea rcx, [rbp - 0x10]
call fcn.14012cd80
lea rdx, [rbp - 0x10]
mov rcx, rbx
call fcn.14012e3b0
mov rcx, qword [rbp + 0x40]
xor rcx, rsp
call fcn.1400b1210
mov rbx, qword [rsp + 0x170]
add rsp, 0x150
pop rbp
ret
Function at 0x1401359d0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r14
mov eax, 0xb8
call fcn.1400b17d0
sub rsp, rax
mov rax, qword [0x14021d0b8]
xor rax, rsp
mov qword [rsp + 0xa0], rax
mov r12, qword [rsp + 0x110]
xor edi, edi
movsxd rsi, r8d
mov rbp, r9
mov r14, rdx
mov rbx, rcx
mov eax, edi
test r9, r9
je 0x140135a36
cmp r9, qword [rcx]
je 0x140135a2c
test rdx, rdx
je 0x140135c19
test r8d, r8d
js 0x140135c19
mov eax, 1
mov qword [rcx], r9
jmp 0x140135a42
mov rbp, qword [rcx]
test rbp, rbp
je 0x140135c19
test r14, r14
je 0x140135b14
mov rcx, rbp
mov qword [rsp + 0xb0], r15
call fcn.1400e45e0
mov r15d, eax
cmp eax, 0x80
jle 0x140135a7e
mov r8d, Ordinal_41
lea rdx, str.cryptohmachmac.c
lea rcx, str.assertion_failed:_j____int_sizeof_ctx__key_
call fcn.1400c7d80
cmp r15d, esi
mov r15, qword [rsp + 0xb0]
jge 0x140135ad0
mov rcx, qword [rbx + 8]
mov r8, r12
mov rdx, rbp
call fcn.1400dd100
test eax, eax
je 0x140135ac9
mov rcx, qword [rbx + 8]
mov r8, rsi
mov rdx, r14
call fcn.1400dd370
test eax, eax
je 0x140135ac9
mov rcx, qword [rbx + 8]
lea r14, [rbx + 0x20]
mov r8, r14
lea rdx, [rbx + 0x24]
call fcn.1400dd020
test eax, eax
jne 0x140135aee
xor eax, eax
jmp 0x140135c19
cmp esi, 0x80
ja 0x140135ac9
mov r8, rsi
lea rcx, [rbx + 0x24]
mov rdx, r14
call sub.VCRUNTIME140.dll_memcpy
lea r14, [rbx + 0x20]
mov dword [r14], esi
mov ecx, dword [r14]
cmp ecx, 0x80
je 0x140135b1c
mov eax, ecx
mov r8d, 0x80
sub r8d, ecx
xor edx, edx
lea rcx, [rbx + 0x24]
add rcx, rax
call fcn.1400b1fcc
jmp 0x140135b1c
test eax, eax
je 0x140135bff
lea rcx, [rsp + 0x20]
mov rax, rbx
sub rax, rcx
mov rdx, rdi
lea rsi, [rax + 0x24]
lea r14, [rax + 0x25]
nop dword [rax]
nop word [rax + rax]
lea rcx, [rsp + 0x20]
add rcx, rdx
add rdx, 2
movzx eax, byte [rsi + rcx]
xor al, 0x36
mov byte [rcx], al
movzx eax, byte [r14 + rcx]
xor al, 0x36
mov byte [rcx + 1], al
cmp rdx, 0x80
jl 0x140135b40
mov rcx, qword [rbx + 0x10]
mov r8, r12
mov rdx, rbp
call fcn.1400dd100
test eax, eax
je 0x140135ac9
mov rcx, rbp
call fcn.1400e45e0
mov rcx, qword [rbx + 0x10]
lea rdx, [rsp + 0x20]
movsxd r8, eax
call fcn.1400dd370
test eax, eax
je 0x140135ac9
nop
lea rcx, [rsp + 0x20]
add rcx, rdi
add rdi, 2
movzx eax, byte [rsi + rcx]
xor al, 0x5c
mov byte [rcx], al
movzx eax, byte [r14 + rcx]
xor al, 0x5c
mov byte [rcx + 1], al
cmp rdi, 0x80
jl 0x140135ba0
mov rcx, qword [rbx + 0x18]
mov r8, r12
mov rdx, rbp
call fcn.1400dd100
test eax, eax
je 0x140135ac9
mov rcx, rbp
call fcn.1400e45e0
mov rcx, qword [rbx + 0x18]
lea rdx, [rsp + 0x20]
movsxd r8, eax
call fcn.1400dd370
test eax, eax
je 0x140135ac9
mov rdx, qword [rbx + 0x10]
mov rcx, qword [rbx + 8]
call fcn.1400dd3d0
test eax, eax
je 0x140135ac9
mov eax, 1
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.1400b1210
add rsp, 0xb8
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14015bfe0
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rsi
push rdi
push r14
push r15
mov eax, 0x50
call fcn.1400b17d0
sub rsp, rax
mov rax, qword [rcx + 0x180]
mov rsi, rcx
mov rdi, qword [rcx + 0x160]
mov r14, r9
mov qword [rsp + 0x30], rax
mov rbp, r8
mov rax, qword [rcx + 0x168]
mov r15, rdx
mov rcx, qword [rcx + 0x38]
mov qword [rsp + 0x38], rax
add rcx, r9
movabs rax, 0xfffffffe0
cmp rcx, rax
ja 0x14015c21e
cmp rcx, r9
jb 0x14015c21e
cmp dword [rsi + 0x174], 0
mov qword [rsp + 0x88], rbx
mov qword [rsp + 0x48], r12
mov qword [rsi + 0x38], rcx
je 0x14015c071
lea rdx, [rsi + 0x60]
lea rcx, [rsi + 0x40]
call rdi
mov dword [rsi + 0x174], 0
mov ebx, dword [rsi + 0x170]
mov r12d, dword [rsi + 0xc]
mov dword [rsp + 0x80], ebx
bswap r12d
test ebx, ebx
je 0x14015c0d4
nop dword [rax]
test r14, r14
je 0x14015c0c2
movzx edx, byte [r15]
dec r14
mov ecx, ebx
inc r15
movzx eax, byte [rcx + rsi + 0x10]
xor al, dl
mov byte [rbp], al
inc rbp
xor byte [rcx + rsi + 0x40], dl
inc ebx
and ebx, 0xf
mov dword [rsp + 0x80], ebx
jne 0x14015c090
jmp 0x14015c0ca
test ebx, ebx
jne 0x14015c1fd
lea rdx, [rsi + 0x60]
lea rcx, [rsi + 0x40]
call rdi
mov qword [rsp + 0x40], r13
mov r13, qword [rsp + 0xa0]
cmp r14, 0xc00
jb 0x14015c168
movabs rax, 0xaaaaaaaaaaaaaaab
mul r14
mov rdi, rdx
shr rdi, 0xb
imul rax, rdi, 0xfffffffffffff400
add r14, rax
nop dword [rax + rax]
mov r9d, 0xc00
lea rdx, [rsi + 0x60]
mov r8, r15
lea rcx, [rsi + 0x40]
call qword [rsp + gethostname]
mov r9, qword [rsp + 0x30]
mov r8d, 0xc0
mov rdx, rbp
mov qword [rsp + 0x20], rsi
mov rcx, r15
call r13
add r12d, 0xc0
add rbp, 0xc00
mov eax, r12d
add r15, 0xc00
bswap eax
mov dword [rsi + 0xc], eax
sub rdi, 1
jne 0x14015c110
mov ebx, dword [rsp + 0x80]
mov r13, r14
and r13, 0xfffffffffffffff0
je 0x14015c1b8
mov rdi, r13
lea rdx, [rsi + 0x60]
lea rcx, [rsi + 0x40]
shr rdi, 4
mov r9, r13
mov r8, r15
call qword [rsp + gethostname]
mov r9, qword [rsp + 0x30]
mov r8, rdi
mov rdx, rbp
mov qword [rsp + 0x20], rsi
mov rcx, r15
call qword [rsp + 0xa0]
add r12d, edi
add rbp, r13
mov eax, r12d
add r15, r13
bswap eax
mov dword [rsi + 0xc], eax
sub r14, r13
mov r13, qword [rsp + 0x40]
test r14, r14
je 0x14015c1fd
mov r8, qword [rsp + 0x30]
lea rdx, [rsi + 0x10]
mov rcx, rsi
call qword [rsi + 0x178]
inc r12d
bswap r12d
mov dword [rsi + 0xc], r12d
nop
mov edx, ebx
inc ebx
movzx ecx, byte [rdx + r15]
movzx eax, byte [rsi + rdx + 0x10]
xor byte [rdx + rsi + 0x40], cl
xor al, cl
mov byte [rdx + rbp], al
sub r14, 1
jne 0x14015c1e0
mov r12, qword [rsp + 0x48]
xor eax, eax
mov dword [rsi + 0x170], ebx
mov rbx, qword [rsp + 0x88]
add rsp, 0x50
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
or eax, 0xffffffff
add rsp, 0x50
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x14015c500
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rsi
push rdi
push r14
push r15
mov eax, 0x50
call fcn.1400b17d0
sub rsp, rax
mov rax, qword [rcx + 0x180]
mov rsi, rcx
mov rdi, qword [rcx + 0x160]
mov r14, r9
mov qword [rsp + 0x30], rax
mov r15, r8
mov rax, qword [rcx + 0x168]
mov rbp, rdx
mov rcx, qword [rcx + 0x38]
mov qword [rsp + 0x38], rax
add rcx, r9
movabs rax, 0xfffffffe0
cmp rcx, rax
ja 0x14015c75e
cmp rcx, r9
jb 0x14015c75e
cmp dword [rsi + 0x174], 0
mov qword [rsp + 0x88], rbx
mov qword [rsp + 0x48], r12
mov qword [rsi + 0x38], rcx
je 0x14015c591
lea rdx, [rsi + 0x60]
lea rcx, [rsi + 0x40]
call rdi
mov dword [rsi + 0x174], 0
mov ebx, dword [rsi + 0x170]
mov r12d, dword [rsi + 0xc]
mov dword [rsp + 0x80], ebx
bswap r12d
test ebx, ebx
je 0x14015c5f1
nop dword [rax]
test r14, r14
je 0x14015c5df
mov ecx, ebx
dec r14
movzx eax, byte [rcx + rsi + 0x10]
xor al, byte [rbp]
inc rbp
mov byte [r15], al
inc r15
xor byte [rcx + rsi + 0x40], al
inc ebx
and ebx, 0xf
mov dword [rsp + 0x80], ebx
jne 0x14015c5b0
jmp 0x14015c5e7
test ebx, ebx
jne 0x14015c73d
lea rdx, [rsi + 0x60]
lea rcx, [rsi + 0x40]
call rdi
mov r10, qword [rsp + 0xa0]
mov qword [rsp + 0x40], r13
cmp r14, 0xc00
jb 0x14015c6a6
movabs rax, 0xaaaaaaaaaaaaaaab
mul r14
mov rdi, rdx
shr rdi, 0xb
imul rax, rdi, 0xfffffffffffff400
add r14, rax
mov qword [rsp + 0x98], r14
mov r14, qword [rsp + 0x30]
nop word [rax + rax]
mov r9, r14
mov qword [rsp + 0x20], rsi
mov r8d, 0xc0
mov rdx, r15
mov rcx, rbp
call r10
add r12d, 0xc0
lea rdx, [rsi + 0x60]
mov eax, r12d
lea rcx, [rsi + 0x40]
bswap eax
mov r9d, 0xc00
mov dword [rsi + 0xc], eax
mov r8, r15
call qword [rsp + gethostname]
mov r10, qword [rsp + 0xa0]
add r15, 0xc00
add rbp, 0xc00
sub rdi, 1
jne 0x14015c640
mov ebx, dword [rsp + 0x80]
mov r14, qword [rsp + 0x98]
mov r13, r14
and r13, 0xfffffffffffffff0
je 0x14015c6f2
mov r9, qword [rsp + 0x30]
mov rdi, r13
shr rdi, 4
mov rdx, r15
mov r8, rdi
mov qword [rsp + 0x20], rsi
mov rcx, rbp
call r10
add r12d, edi
lea rdx, [rsi + 0x60]
mov eax, r12d
lea rcx, [rsi + 0x40]
bswap eax
mov r9, r13
mov dword [rsi + 0xc], eax
mov r8, r15
add rbp, r13
sub r14, r13
call qword [rsp + gethostname]
add r15, r13
mov r13, qword [rsp + 0x40]
test r14, r14
je 0x14015c73d
mov r8, qword [rsp + 0x30]
lea rdx, [rsi + 0x10]
mov rcx, rsi
call qword [rsi + 0x178]
inc r12d
bswap r12d
mov dword [rsi + 0xc], r12d
nop dword [rax + rax]
mov ecx, ebx
inc ebx
movzx edx, byte [rcx + rbp]
movzx eax, byte [rsi + rcx + 0x10]
xor edx, eax
mov byte [rcx + r15], dl
xor byte [rcx + rsi + 0x40], dl
sub r14, 1
jne 0x14015c720
mov r12, qword [rsp + 0x48]
xor eax, eax
mov dword [rsi + 0x170], ebx
mov rbx, qword [rsp + 0x88]
add rsp, 0x50
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
or eax, 0xffffffff
add rsp, 0x50
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x14015c960
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rsi
push rdi
push r13
push r14
mov eax, reloc.WLDAP32.dll_Ordinal_32
call fcn.1400b17d0
sub rsp, rax
mov r13, qword [rcx + 0x160]
xor r14d, r14d
mov qword [rcx], r14
mov rsi, r8
mov qword [rcx + 8], r14
mov rdi, rdx
mov qword [rcx + 0x40], r14
mov rbx, rcx
mov qword [rcx + 0x48], r14
mov qword [rcx + 0x30], r14
mov qword [rcx + 0x38], r14
mov qword [rcx + 0x170], r14
cmp r8, 0xc
jne 0x14015c9c7
movsd xmm0, qword [rdx]
lea edi, [r8 - 0xb]
movsd qword [rcx], xmm0
mov eax, dword [rdx + 8]
mov dword [rcx + 8], eax
mov byte [rcx + 0xf], 1
jmp 0x14015cb39
mov qword [rsp + 0x58], rbp
mov rbp, rsi
mov qword [rsp + 0x50], rsi
cmp rsi, 0x10
jb 0x14015ca73
mov qword [rsp + 0x60], r12
mov r12, rbx
shr rbp, 4
neg r12
imul rax, rbp, 0xfffffffffffffff0
mov qword [rsp + 0x68], r15
lea r15, [rcx + 0xf]
add rsi, rax
nop dword [rax]
lea r8, [r12 + rdi]
lea rax, [r8 + r15]
cmp rbx, rax
ja 0x14015ca40
cmp r15, rdi
jb 0x14015ca40
mov rax, rbx
mov edx, reloc.WS2_32.dll_recv
nop word [rax + rax]
movzx ecx, byte [r8 + rax]
xor byte [rax], cl
lea rax, [rax + 1]
sub rdx, 1
jne 0x14015ca20
jmp 0x14015ca50
movdqu xmm1, xmmword [rbx]
movdqu xmm0, xmmword [rdi]
pxor xmm1, xmm0
movdqu xmmword [rbx], xmm1
lea rdx, [rbx + 0x60]
mov rcx, rbx
call r13
add rdi, 0x10
sub rbp, 1
jne 0x14015ca00
mov rbp, qword [rsp + 0x50]
mov r15, qword [rsp + 0x68]
mov r12, qword [rsp + 0x60]
test rsi, rsi
je 0x14015cb1a
cmp rsi, 0x20
jb 0x14015cae3
lea rcx, [rbx - 1]
lea rax, [rdi - 1]
add rcx, rsi
add rax, rsi
cmp rbx, rax
ja 0x14015ca9a
cmp rcx, rdi
jae 0x14015cae3
mov rdx, rsi
mov rcx, rdi
and rdx, 0xffffffffffffffe0
mov rax, rbx
sub rcx, rbx
nop word [rax + rax]
movdqu xmm0, xmmword [rax]
add r14, 0x20
movdqu xmm1, xmmword [rax + rcx]
lea rax, [rax + 0x20]
pxor xmm1, xmm0
movdqu xmmword [rax - 0x20], xmm1
movdqu xmm1, xmmword [rcx + rax - 0x10]
movdqu xmm0, xmmword [rax - 0x10]
pxor xmm1, xmm0
movdqu xmmword [rax - 0x10], xmm1
cmp r14, rdx
jb 0x14015cab0
cmp r14, rsi
jae 0x14015cb10
sub rdi, rbx
lea rcx, [r14 + rbx]
sub rsi, r14
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [rcx + rdi]
xor byte [rcx], al
lea rcx, [rcx + 1]
sub rsi, 1
jne 0x14015cb00
lea rdx, [rbx + 0x60]
mov rcx, rbx
call r13
shl rbp, 3
lea rdx, [rbx + 0x60]
bswap rbp
xor qword [rbx + 8], rbp
mov rcx, rbx
call r13
mov edi, dword [rbx + 0xc]
mov rbp, qword [rsp + 0x58]
bswap edi
mov r8, qword [rbx + 0x180]
lea rdx, [rbx + 0x20]
mov rcx, rbx
call qword [rbx + 0x178]
inc edi
bswap edi
mov dword [rbx + 0xc], edi
add rsp, 0x20
pop r14
pop r13
pop rdi
pop rsi
pop rbx
ret

Function at 0x140161bf0
Capabilities:
Encode data using xor

Disassembly:
mov eax, Ordinal_60
call fcn.1400b17d0
sub rsp, rax
cmp dword [rsp + 0x68], 0
je 0x140161c19
lea rax, [0x1401601c0]
mov qword [rsp + 0x68], rax
add rsp, 0x38
jmp fcn.14015b370
lea rax, [0x14015f320]
mov qword [rsp + 0x68], rax
add rsp, 0x38
jmp fcn.14015b0a0
Function at 0x1401983f0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
mov eax, reloc.WLDAP32.dll_Ordinal_32
call fcn.1400b17d0
sub rsp, rax
mov rax, qword [rcx + 8]
lea rsi, [r9 + 1]
mov rbx, rdx
mov r10, rcx
mov r9, qword [rax + 0xc0]
test byte [r9 + 0x60], 1
je 0x14019844e
mov rdx, qword [rdx + 8]
lea rax, [rsi + r8]
cmp rax, rdx
jbe 0x140198439
xor eax, eax
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rsi
ret
add qword [rbx + 0x20], r8
sub rdx, r8
add qword [rbx + 0x28], r8
sub qword [rbx + 0x10], r8
mov qword [rbx + 8], rdx
jmp 0x140198454
cmp rsi, qword [rdx + 8]
ja 0x14019842c
mov rcx, qword [rbx + 0x20]
mov rax, qword [rbx + 8]
mov qword [rsp + 0x38], rdi
movzx edi, byte [rcx + rax - 1]
mov rcx, qword [r10 + 0x2a0]
call fcn.1400e4020
mov rcx, rax
call fcn.1400be320
bt eax, 0x15
jae 0x1401984a0
or rax, 0xffffffffffffffff
sub rax, rdi
mov rdi, qword [rsp + 0x38]
add qword [rbx + 8], rax
mov eax, 1
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rsi
ret
lea rcx, [rdi + rsi]
mov qword [rsp + 0x30], rbp
mov rsi, qword [rbx + 8]
mov ebp, 0x100
mov r8, rsi
mov rax, rsi
sub r8, rcx
xor rax, rcx
xor r8, rcx
or r8, rax
xor r8, rsi
shr r8, 0x3f
dec r8
cmp rsi, rbp
cmovb rbp, rsi
xor r9d, r9d
test rbp, rbp
je 0x14019852d
mov r10, rdi
lea r11, [rsi - 1]
shr r10, 0x3f
add r11, qword [rbx + 0x20]
nop dword [rax]
mov rax, r9
lea r11, [r11 - 1]
shr rax, 0x3f
mov rcx, rdi
sub rcx, r9
inc r9
shr rcx, 0x3f
xor cl, al
xor al, r10b
or cl, al
xor cl, r10b
dec cl
movzx edx, cl
movzx ecx, byte [r11 + 1]
xor rcx, rdi
and rdx, rcx
not rdx
and r8, rdx
cmp r9, rbp
jb 0x1401984f0
mov rbp, qword [rsp + 0x30]
not r8
movzx eax, r8b
lea rcx, [rax - 1]
not rax
shr rax, 0x3f
shr rcx, 0x3f
and rcx, rax
lea rax, [rdi + 1]
mov rdi, qword [rsp + 0x38]
neg rcx
and rax, rcx
sub rsi, rax
mov eax, ecx
and eax, 1
mov qword [rbx + 8], rsi
mov rbx, qword [rsp + 0x40]
not ecx
or eax, ecx
add rsp, 0x20
pop rsi
ret
Function at 0x140003b04
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x150]
sub rsp, 0x250
mov rax, qword [0x1400e1300]
xor rax, rsp
mov qword [rbp + 0x140], rax
and qword [r8], 0
mov r14, r8
mov r8, rcx
mov edx, 0x104
lea rcx, [rsp + 0x30]
call fcn.14000202c
lea r8, [0x1400ac1f0]
lea rcx, [rsp + 0x30]
call fcn.1400020a4
mov ebx, 0x1f0003
lea r8, [rsp + 0x30]
mov ecx, ebx
xor edx, edx
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_OpenSemaphoreW]
mov rdi, rax
test rax, rax
jne 0x140003ba6
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
cmp eax, 2
je 0x140003c73
mov edx, 0xc8
mov rcx, qword [rbp + 0x168]
lea r8, [0x1400ac178]
call fcn.140003764
mov esi, eax
jmp 0x140003c75
and dword [rsp + 0x24], 0
lea rdx, [rsp + 0x24]
and dword [rsp + 0x20], 0
mov rcx, rdi
call fcn.1400039b8
mov esi, eax
test eax, eax
jns 0x140003be3
mov rcx, qword [rbp + 0x168]
lea r8, [0x1400ac178]
mov r9d, eax
mov edx, 0xce
call fcn.140003734
jmp 0x140003c75
lea r8, [0x1400ac1f8]
lea rcx, [rsp + 0x30]
call fcn.1400020a4
lea r8, [rsp + 0x30]
xor edx, edx
mov ecx, ebx
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_OpenSemaphoreW]
mov rbx, rax
test rax, rax
jne 0x140003c15
mov edx, 0xd4
jmp 0x140003b8c
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.1400039b8
mov esi, eax
test eax, eax
jns 0x140003c52
mov rcx, qword [rbp + 0x168]
lea r8, [0x1400ac178]
mov r9d, eax
mov edx, 0xd6
call fcn.140003734
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
test eax, eax
jne 0x140003c75
jmp 0x140003cb0
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
test eax, eax
je 0x140003cc9
movsxd rcx, dword [rsp + 0x20]
movsxd rax, dword [rsp + 0x24]
shl rcx, 0x1f
or rax, rcx
mov qword [r14], rax
xor esi, esi
test rdi, rdi
je 0x140003c87
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
test eax, eax
je 0x140003ce2
mov eax, esi
mov rcx, qword [rbp + 0x140]
xor rcx, rsp
call fcn.140098120
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
mov rcx, qword [rbp + 0x168]
lea r8, [0x1400ac1d0]
mov edx, 0x878
call fcn.14000377c
int3
mov rcx, qword [rbp + 0x168]
lea r8, [0x1400ac1d0]
mov edx, 0x878
call fcn.14000377c
int3
mov rcx, qword [rbp + 0x168]
lea r8, [0x1400ac1d0]
mov edx, 0x878
call fcn.14000377c
int3
Function at 0x14000595c
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
xor edx, edx
mov rsi, rcx
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_CreateDirectoryW]
xor edi, edi
test eax, eax
jne 0x140005b7d
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
cmp eax, 3
jne 0x140005b57
lea rdx, [rsp + 0x48]
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_path_l1_1_0.dll_PathCchSkipRoot]
test eax, eax
js 0x140005b30
mov rax, qword [rsp + 0x48]
cmp word [rax], di
je 0x140005b30
or rbp, 0xffffffffffffffff
mov rbx, rbp
inc rbx
cmp word [rsi + rbx*2], di
jne 0x1400059bf
test rbx, rbx
je 0x1400059d9
cmp word [rsi + rbx*2 - 2], 0x5c
lea rax, [rbx - 1]
je 0x1400059dc
mov rax, rbx
mov dword [rsp + 0x28], 1
lea r9, [0x1400abfb0]
mov r8d, eax
mov dword [rsp + 0x20], 1
mov rdx, rsi
mov ecx, 0x800000
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_FindStringOrdinal]
cmp eax, ebp
jne 0x140005a0e
lea rbp, [rsi + rbx*2]
jmp 0x140005a18
movsxd rbp, eax
inc rbp
lea rbp, [rsi + rbp*2]
sub rbp, rsi
sar rbp, 1
je 0x140005b30
lea rcx, [rbp + 1]
mov eax, 2
mul rcx
mov qword [rsp + 0x48], rcx
lea rdx, [0x1400ac652]
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.1400986f8
xor r9d, r9d
mov rbx, rax
test rax, rax
jne 0x140005a7b
mov rcx, qword [rsp + 0x38]
lea r8, str.internal_sdkincwil_filesystem.h
mov edi, 0x8007000e
lea edx, [rax + 0x7d]
mov r9d, edi
call fcn.1400036b8
jmp 0x140005b14
mov rdx, qword [rsp + 0x48]
mov r8d, 0x7ffffffe
mov ecx, 0x80070057
lea rax, [rdx - 1]
cmp rax, r8
cmova edi, ecx
test edi, edi
js 0x140005aee
cmp rbp, r8
jbe 0x140005aa6
mov edi, ecx
mov word [rbx], r9w
jmp 0x140005afb
mov rcx, rbx
mov edi, r9d
test rdx, rdx
je 0x140005adf
sub rbp, rdx
mov r8, rsi
sub r8, rbx
lea rax, [rdx + rbp]
test rax, rax
je 0x140005ada
movzx eax, word [r8 + rcx]
test ax, ax
je 0x140005ada
mov word [rcx], ax
add rcx, 2
sub rdx, 1
jne 0x140005aba
test rdx, rdx
jne 0x140005ae8
sub rcx, 2
mov edi, 0x8007007a
mov word [rcx], r9w
jmp 0x140005af7
test rdx, rdx
je 0x140005af7
mov word [rbx], r9w
test edi, edi
jns 0x140005b20
mov rcx, qword [rsp + 0x38]
lea r8, str.internal_sdkincwil_filesystem.h
mov r9d, edi
mov edx, 0x7e
call fcn.140003734
mov rcx, rbx
call fcn.1400990f8
mov eax, edi
jmp 0x140005b7f
mov rcx, rbx
call fcn.14000595c
mov rcx, rbx
call fcn.1400990f8
xor edx, edx
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_CreateDirectoryW]
test eax, eax
jne 0x140005b7d
mov rcx, qword [rsp + 0x38]
lea r8, str.internal_sdkincwil_filesystem.h
mov edx, 0x81
call fcn.140003764
jmp 0x140005b7f
cmp eax, 0xb7
je 0x140005b7d
test eax, eax
je 0x140005b7d
mov rcx, qword [rsp + 0x38]
lea r8, str.internal_sdkincwil_filesystem.h
mov r9d, eax
mov edx, 0x85
call fcn.140008c78
jmp 0x140005b7f
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret