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

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x78
mov rax, qword [0x14039fd98]
xor rax, rsp
mov qword [rsp + 0x70], rax
cmp dword [rcx + 0x2c8], 0
je 0x14009005b
mov dword [rsp + 0x20], 0x223
lea r9, str..._.._third_party_boringssl_src_crypto_hpke_hpke.c
xor esi, esi
mov ecx, 6
xor edx, edx
mov r8d, 0x42
call fcn.1400490c0
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140265fe0
mov eax, esi
add rsp, 0x78
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rsi, rcx
cmp qword [rcx + 0x2c0], 0xffffffffffffffff
je 0x140090118
mov rdi, r9
mov rbx, r8
mov r14, rdx
mov rcx, qword [rsi + 0x10]
call fcn.140064a50
mov rbp, rax
test rax, rax
je 0x140090095
lea rcx, [rsp + 0x50]
xor edx, edx
mov r8, rbp
call fcn.140268830
mov r15, qword [rsp + 0xe8]
lea rcx, [rsi + 0x10]
mov rdx, qword [rsi + 0x2c0]
mov r11, rdx
shr r11, 0x10
mov r12, rdx
shr r12, 0x18
mov r13, rdx
shr r13, 0x20
mov r8, rdx
shr r8, 0x28
mov r9, rdx
shr r9, 0x30
mov r10, rdx
shr r10, 0x38
mov rax, rbp
sub rax, 1
mov byte [rsp + rax + 0x50], dl
lea rax, [rsp + 0x50]
mov byte [rbp + rax - 2], dh
mov byte [rbp + rax - 3], r11b
mov byte [rbp + rax - 4], r12b
mov byte [rbp + rax - 5], r13b
mov byte [rbp + rax - 6], r8b
mov byte [rbp + rax - 7], r9b
mov byte [rbp + rax - 8], r10b
jb 0x1400901ce
cmp rbp, 8
jae 0x14009013b
xor r11d, r11d
jmp 0x1400901b8
mov dword [rsp + 0x20], 0x227
lea r9, str..._.._third_party_boringssl_src_crypto_hpke_hpke.c
xor esi, esi
mov ecx, 6
xor edx, edx
mov r8d, 0x45
jmp 0x140090036
cmp rbp, 0x20
jae 0x140090146
xor r11d, r11d
jmp 0x140090188
mov r11, rbp
and r11, 0xffffffffffffffe0
xor edx, edx
nop
movups xmm0, xmmword [rsi + rdx + 0x268]
movups xmm1, xmmword [rsi + rdx + 0x278]
xorps xmm0, xmmword [rsp + rdx + 0x50]
xorps xmm1, xmmword [rsp + rdx + 0x60]
movaps xmmword [rsp + rdx + 0x50], xmm0
movaps xmmword [rsp + rdx + 0x60], xmm1
add rdx, 0x20
cmp r11, rdx
jne 0x140090150
cmp rbp, r11
je 0x1400901ce
test bpl, 0x18
je 0x1400901b8
mov rdx, r11
mov r11, rbp
and r11, 0xfffffffffffffff8
nop word cs:[rax + rax]
mov r8, qword [rsi + rdx + 0x268]
xor qword [rsp + rdx + 0x50], r8
add rdx, 8
cmp r11, rdx
jne 0x1400901a0
jmp 0x1400901c9
movzx edx, byte [rsi + r11 + 0x268]
xor byte [rsp + r11 + 0x50], dl
inc r11
cmp rbp, r11
jne 0x1400901b8
mov rdx, qword [rsp + 0xf8]
mov qword [rsp + 0x48], rdx
mov rdx, qword [rsp + 0xf0]
mov qword [rsp + 0x40], rdx
mov qword [rsp + 0x38], r15
mov rdx, qword [rsp + 0xe0]
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rax
mov rdx, r14
mov r8, rbx
mov r9, rdi
call fcn.140064ec0
test eax, eax
je 0x140090227
inc qword [rsi + 0x2c0]
mov esi, 1
jmp 0x14009003b
xor esi, esi
jmp 0x14009003b
Function at 0x140090230
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x78
mov rax, qword [0x14039fd98]
xor rax, rsp
mov qword [rsp + 0x70], rax
cmp dword [rcx + 0x2c8], 0
je 0x140090319
mov rsi, rcx
cmp qword [rcx + 0x2c0], 0xffffffffffffffff
je 0x140090341
mov rdi, r9
mov rbx, r8
mov r14, rdx
mov rcx, qword [rsi + 0x10]
call fcn.140064a50
mov rbp, rax
test rax, rax
je 0x140090296
lea rcx, [rsp + 0x50]
xor edx, edx
mov r8, rbp
call fcn.140268830
mov r15, qword [rsp + 0xe8]
lea rcx, [rsi + 0x10]
mov rdx, qword [rsi + 0x2c0]
mov r11, rdx
shr r11, 0x10
mov r12, rdx
shr r12, 0x18
mov r13, rdx
shr r13, 0x20
mov r8, rdx
shr r8, 0x28
mov r9, rdx
shr r9, 0x30
mov r10, rdx
shr r10, 0x38
mov rax, rbp
sub rax, 1
mov byte [rsp + rax + 0x50], dl
lea rax, [rsp + 0x50]
mov byte [rbp + rax - 2], dh
mov byte [rbp + rax - 3], r11b
mov byte [rbp + rax - 4], r12b
mov byte [rbp + rax - 5], r13b
mov byte [rbp + rax - 6], r8b
mov byte [rbp + rax - 7], r9b
mov byte [rbp + rax - 8], r10b
jb 0x1400903fe
cmp rbp, 8
jae 0x140090369
xor r11d, r11d
jmp 0x1400903e8
mov dword [rsp + 0x20], 0x23b
lea r9, str..._.._third_party_boringssl_src_crypto_hpke_hpke.c
xor esi, esi
mov ecx, 6
xor edx, edx
mov r8d, 0x42
call fcn.1400490c0
jmp 0x140090456
mov dword [rsp + 0x20], 0x23f
lea r9, str..._.._third_party_boringssl_src_crypto_hpke_hpke.c
xor esi, esi
mov ecx, 6
xor edx, edx
mov r8d, 0x45
call fcn.1400490c0
jmp 0x140090456
cmp rbp, 0x20
jae 0x140090374
xor r11d, r11d
jmp 0x1400903b8
mov r11, rbp
and r11, 0xffffffffffffffe0
xor edx, edx
nop dword [rax]
movups xmm0, xmmword [rsi + rdx + 0x268]
movups xmm1, xmmword [rsi + rdx + 0x278]
xorps xmm0, xmmword [rsp + rdx + 0x50]
xorps xmm1, xmmword [rsp + rdx + 0x60]
movaps xmmword [rsp + rdx + 0x50], xmm0
movaps xmmword [rsp + rdx + 0x60], xmm1
add rdx, 0x20
cmp r11, rdx
jne 0x140090380
cmp rbp, r11
je 0x1400903fe
test bpl, 0x18
je 0x1400903e8
mov rdx, r11
mov r11, rbp
and r11, 0xfffffffffffffff8
nop word cs:[rax + rax]
mov r8, qword [rsi + rdx + 0x268]
xor qword [rsp + rdx + 0x50], r8
add rdx, 8
cmp r11, rdx
jne 0x1400903d0
jmp 0x1400903f9
movzx edx, byte [rsi + r11 + 0x268]
xor byte [rsp + r11 + 0x50], dl
inc r11
cmp rbp, r11
jne 0x1400903e8
mov rdx, qword [rsp + 0xf8]
mov qword [rsp + 0x48], rdx
mov rdx, qword [rsp + 0xf0]
mov qword [rsp + 0x40], rdx
mov qword [rsp + 0x38], r15
mov rdx, qword [rsp + 0xe0]
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rax
mov rdx, r14
mov r8, rbx
mov r9, rdi
call fcn.140064be0
test eax, eax
je 0x140090454
inc qword [rsi + 0x2c0]
mov esi, 1
jmp 0x140090456
xor esi, esi
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140265fe0
mov eax, esi
add rsp, 0x78
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x1400987a0
Capabilities:
Encode data using xor

Disassembly:
test r8, r8
je 0x1400987b5
cmp r8, 8
jae 0x1400987b8
xor eax, eax
xor r9d, r9d
jmp 0x1400988c0
xor eax, eax
ret
cmp r8, 0x20
jae 0x1400987c8
xor r9d, r9d
xor eax, eax
jmp 0x140098857
mov rax, r8
and rax, 0xffffffffffffffe0
pxor xmm0, xmm0
xor r9d, r9d
pxor xmm1, xmm1
nop word [rax + rax]
movdqu xmm2, xmmword [rcx + r9]
movdqu xmm3, xmmword [rcx + r9 + 0x10]
movdqu xmm4, xmmword [rdx + r9]
pxor xmm4, xmm2
por xmm0, xmm4
movdqu xmm2, xmmword [rdx + r9 + 0x10]
pxor xmm2, xmm3
por xmm1, xmm2
add r9, 0x20
cmp rax, r9
jne 0x1400987e0
por xmm1, xmm0
pshufd xmm0, xmm1, 0xee
por xmm0, xmm1
pshufd xmm1, xmm0, 0x55
por xmm1, xmm0
movdqa xmm0, xmm1
psrld xmm0, 0x10
por xmm0, xmm1
movdqa xmm1, xmm0
psrlw xmm1, 8
por xmm1, xmm0
movd r9d, xmm1
cmp rax, r8
je 0x1400988d4
test r8b, 0x18
je 0x1400988c0
mov r10, rax
mov rax, r8
and rax, 0xfffffffffffffff8
movzx r9d, r9b
movd xmm0, r9d
nop word [rax + rax]
mov r9, qword [rdx + r10]
xor r9, qword [rcx + r10]
movq xmm1, r9
por xmm0, xmm1
add r10, 8
cmp rax, r10
jne 0x140098870
pshufd xmm1, xmm0, 0x55
por xmm1, xmm0
movdqa xmm0, xmm1
psrld xmm0, 0x10
por xmm0, xmm1
movdqa xmm1, xmm0
psrlw xmm1, 8
por xmm1, xmm0
movd r9d, xmm1
cmp rax, r8
je 0x1400988d4
nop word [rax + rax]
movzx r10d, byte [rdx + rax]
xor r10b, byte [rcx + rax]
or r9b, r10b
inc rax
cmp r8, rax
jne 0x1400988c0
movzx eax, r9b
ret

Function at 0x1400a0140
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test rdx, rdx
je 0x1400a0182
mov rsi, rdx
mov rdi, rcx
mov r14d, 0xffffffff
nop word [rax + rax]
cmp rsi, r14
mov ebx, 0xffffffff
cmovb rbx, rsi
mov rcx, rdi
mov edx, ebx
call sub.ADVAPI32.dll_SystemFunction036
test al, al
je 0x1400a018c
add rdi, rbx
sub rsi, rbx
jne 0x1400a0160
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
call fcn.140276e3c
int3

Function at 0x1400a01a0
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push rsi
push rdi
push rbx
mov eax, dword [rcx]
mov r10d, dword [rcx + 4]
test rdx, rdx
je 0x1400a01f9
xor r11d, r11d
nop word cs:[rax + rax]
inc eax
movzx eax, al
mov esi, dword [rcx + rax*4 + 8]
add r10d, esi
movzx r10d, r10b
mov edi, dword [rcx + r10*4 + 8]
mov dword [rcx + rax*4 + 8], edi
mov dword [rcx + r10*4 + 8], esi
add edi, esi
movzx esi, dil
movzx ebx, byte [r8 + r11]
xor bl, byte [rcx + rsi*4 + 8]
mov byte [r9 + r11], bl
inc r11
cmp rdx, r11
jne 0x1400a01c0
mov dword [rcx], eax
mov dword [rcx + 4], r10d
pop rbx
pop rdi
pop rsi
ret
Function at 0x1400a1420
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov esi, ecx
mov rax, qword [0x14039fd98]
xor rax, rsp
mov qword [rsp + 0x28], rax
lea rax, [0x1400a14c0]
mov qword [rsp + 0x20], rax
lea rcx, [0x1403a20d0]
lea rdx, [0x1400a12c0]
lea r8, [rsp + 0x20]
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_InitOnceExecuteOnce]
test eax, eax
je 0x1400a14b4
cmp dword [0x1403a20d8], 0
je 0x1400a1471
xor esi, esi
jmp 0x1400a149c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov ecx, dword [0x1403a20dc]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, rax
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
test rdi, rdi
je 0x1400a146d
movsxd rax, esi
mov rsi, qword [rdi + rax*8]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140265fe0
mov rax, rsi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
call fcn.140276e3c
int3

Function at 0x1400a14f0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x38
mov rdi, r8
mov rsi, rdx
mov ebx, ecx
mov rax, qword [0x14039fd98]
xor rax, rsp
mov qword [rsp + 0x30], rax
lea rax, [0x1400a14c0]
mov qword [rsp + 0x28], rax
lea rcx, [0x1403a20d0]
lea rdx, [0x1400a12c0]
lea r8, [rsp + 0x28]
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_InitOnceExecuteOnce]
test eax, eax
je 0x1400a1605
cmp dword [0x1403a20d8], 0
je 0x1400a1555
mov rcx, rsi
call rdi
xor esi, esi
jmp 0x1400a15a9
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov ecx, dword [0x1403a20dc]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r14, rax
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
test r14, r14
je 0x1400a15c5
lea r15, [0x1403a20e0]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
movsxd rbx, ebx
lea rax, [0x1403a20f0]
mov qword [rax + rbx*8], rdi
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov qword [r14 + rbx*8], rsi
mov esi, 1
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140265fe0
mov eax, esi
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
mov ecx, 0x20
call fcn.140098680
test rax, rax
je 0x1400a154c
mov r14, rax
xorps xmm0, xmm0
movups xmmword [rax + 0x10], xmm0
movups xmmword [rax], xmm0
mov ecx, dword [0x1403a20dc]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x1400a1579
mov rcx, r14
call fcn.1400986b0
jmp 0x1400a154c
call fcn.140276e3c
int3
Function at 0x1400e8890
Capabilities:
Generate random numbers via winapi

Disassembly:
sub rsp, 0x28
test rcx, rcx
jle 0x1400e88b0
mov r8, rcx
xor ecx, ecx
mov r9d, 2
call sub.bcrypt.dll_BCryptGenRandom
test eax, eax
setns al
jmp 0x1400e88b2
mov al, 1
add rsp, 0x28
ret

Function at 0x1400ec7d0
Capabilities:
Enumerate files on windows

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x280
mov rax, qword [0x14039fd98]
xor rax, rsp
mov qword [rsp + 0x278], rax
mov ebx, 4
cmp byte [rcx + 0x18], 0
jne 0x1400ec955
mov rdi, rdx
mov rsi, rcx
cmp qword [rcx + 0x10], 0
je 0x1400ec880
movsxd rax, dword [rsi + 0x1c]
mov qword [rdi + 0x10], rax
mov rcx, qword [rdi + 8]
mov word [rcx + rax*2], 0
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x1400ec842
mov rax, qword [rsi]
test rax, rax
je 0x1400ec835
cmp qword [rax + 0x20], rcx
je 0x1400ec842
call fcn.140266000
mov qword [rsi + 0x20], 0
mov rax, qword [rsi]
test rax, rax
je 0x1400ec852
mov rax, qword [rax + 0x20]
mov qword [rsi + 0x20], rax
mov rcx, qword [rsi + 0x10]
lea rdx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x1400ec940
lea r8, [rsp + 0x28]
mov rcx, rdi
mov rdx, rsi
call fcn.1400ec980
mov ebx, eax
jmp 0x1400ec955
cmp qword [rsi], 0
lea rax, [0x1402fdf94]
lea rbx, [0x1402fdf98]
cmove rbx, rax
mov r14, qword [rdi + 8]
mov rax, qword [rdi + 0x10]
mov r15d, 0x7fff
mov edx, 0x7fff
sub rdx, rax
lea rcx, [r14 + rax*2]
lea r8, [0x1402a04e2]
mov r9, rbx
call fcn.140016800
mov word [r14 + 0xfffe], 0
test eax, eax
js 0x1400ec92a
movsxd r14, eax
sub r15, qword [rdi + 0x10]
cmp r15, r14
jl 0x1400ec92a
mov edx, 0x8000
mov rcx, rbx
call fcn.1402793e0
cmp rax, r14
jne 0x1400ec92a
add r14, qword [rdi + 0x10]
mov qword [rdi + 0x10], r14
dec r14d
mov dword [rsi + 0x1c], r14d
mov rcx, qword [rdi + 8]
lea rdx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp rax, 0xffffffffffffffff
je 0x1400ec935
mov qword [rsi + 0x10], rax
movsxd rax, dword [rsi + 0x1c]
mov qword [rdi + 0x10], rax
mov rcx, qword [rdi + 8]
mov word [rcx + rax*2], 0
jmp 0x1400ec869
mov ecx, reloc.WS2_32.dll_WSAGetLastError
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov byte [rsi + 0x18], 1
mov ebx, 3
jmp 0x1400ec955
mov byte [rsi + 0x18], 1
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor ebx, ebx
cmp eax, 0x12
sete bl
add ebx, 3
mov rcx, qword [rsp + 0x278]
xor rcx, rsp
call fcn.140265fe0
mov eax, ebx
add rsp, 0x280
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x1400ec980
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x80
mov r14, r8
mov rsi, rdx
mov rdi, rcx
mov rax, qword [0x14039fd98]
xor rax, rsp
mov qword [rsp + 0x78], rax
lea rbx, [r8 + 0x2c]
mov r12, qword [rcx + 8]
mov rax, qword [rcx + 0x10]
mov r15d, 0x7fff
mov edx, 0x7fff
sub rdx, rax
lea rcx, [r12 + rax*2]
lea r8, [0x1402a04e2]
mov r9, rbx
call fcn.140016800
mov word [r12 + 0xfffe], 0
test eax, eax
js 0x1400eca7b
movsxd r12, eax
sub r15, qword [rdi + 0x10]
cmp r15, r12
jl 0x1400eca7b
mov edx, 0x8000
mov rcx, rbx
call fcn.1402793e0
cmp rax, r12
jne 0x1400eca7b
add qword [rdi + 0x10], r12
mov r15d, dword [r14]
test r15d, 0x400
jne 0x1400ecaac
xor ebp, ebp
test r15b, 0x10
je 0x1400eca8b
lea rdx, [0x1402fdfa2]
mov rcx, rbx
call fcn.14028437c
test eax, eax
je 0x1400eca52
lea rdx, [0x1402fdfa6]
mov rcx, rbx
call fcn.14028437c
mov ebp, 1
test eax, eax
jne 0x1400eca8b
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140265fe0
mov rcx, rsi
mov rdx, rdi
add rsp, 0x80
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
jmp fcn.1400ec7d0
mov ecx, reloc.WS2_32.dll_WSAGetLastError
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov ebp, 3
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140265fe0
mov eax, ebp
add rsp, 0x80
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov ebp, 2
cmp byte [rdi + 0x2a], 0
je 0x1400eca8b
mov rcx, qword [rdi + 8]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x2000000
mov dword [rsp + 0x20], 3
xor edx, edx
mov r8d, 7
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
je 0x1400eca8b
mov ebp, 0
test r15b, 0x10
je 0x1400eca8b
mov r14, rax
lea rdx, [rsp + 0x44]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
je 0x1400ecbaf
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r14d, dword [rsp + 0x60]
mov ebp, dword [rsp + 0x70]
mov r12d, dword [rsp + 0x74]
mov r15, qword [rsi + 0x20]
test r15, r15
je 0x1400ecb63
mov rax, r15
jmp 0x1400ecb49
mov rax, qword [rax + 0x10]
test rax, rax
je 0x1400ecb63
cmp dword [rax], r14d
jne 0x1400ecb40
cmp dword [rax + 4], r12d
jne 0x1400ecb40
cmp dword [rax + 8], ebp
jne 0x1400ecb40
mov ebp, 2
jmp 0x1400eca8b
lea rdx, [0x1402fdfa2]
mov rcx, rbx
call fcn.14028437c
test eax, eax
je 0x1400ecbc7
lea rdx, [0x1402fdfa6]
mov rcx, rbx
call fcn.14028437c
test eax, eax
je 0x1400ecbc7
mov ecx, 0x18
call fcn.140266260
mov dword [rax], r14d
mov dword [rax + 4], r12d
mov dword [rax + 8], ebp
mov qword [rax + 0x10], r15
mov qword [rsi + 0x20], rax
mov ebp, 1
jmp 0x1400eca8b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, esi
jmp 0x1400eca80
mov rcx, rsi
mov rdx, rdi
call fcn.1400ec7d0
mov ebp, eax
jmp 0x1400eca8b
Function at 0x1400ecc40
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x38
mov rcx, rdx
call fcn.1400f2bb0
mov rdi, rax
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov rbx, qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, 0xfde9
xor edx, edx
mov r8, rax
mov r9d, 0xffffffff
call rbx
movsxd r14, eax
lea rcx, [r14 + r14]
call fcn.140023440
mov rsi, rax
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0x20], rax
mov ecx, 0xfde9
xor edx, edx
mov r8, rdi
mov r9d, 0xffffffff
call rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400ecd03
mov edi, 2
test al, 0x10
je 0x1400ecd17
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x2000000
mov dword [rsp + 0x20], 3
mov rcx, rsi
xor edx, edx
mov r8d, 7
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
je 0x1400ecd17
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, 1
jmp 0x1400ecd17
call qword [sym.imp.KERNEL32.dll_GetLastError]
and eax, 0xfffffffe
xor edi, edi
cmp eax, 2
sete dil
add edi, edi
mov rcx, rsi
call fcn.14026e508
mov eax, edi
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r14
ret

Function at 0x1400ecd30
Capabilities:
Get common file path

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x58
movaps xmmword [rsp + 0x40], xmm6
xor edi, edi
xor ecx, ecx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x1400ecde4
lea edi, [rax + 1]
lea rdx, [rdi + rdi]
cmp eax, 0xffffffff
mov rcx, 0xffffffffffffffff
cmovge rcx, rdx
call fcn.140266008
mov rsi, rax
mov ecx, edi
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
xorps xmm6, xmm6
movups xmmword [rsp + 0x30], xmm6
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r14, qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ecx, 0xfde9
xor edx, edx
mov r8, rsi
mov r9d, 0xffffffff
call r14
movsxd rbx, eax
mov rcx, rbx
call fcn.140023440
mov rdi, rax
movups xmmword [rsp + 0x30], xmm6
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rax
mov ecx, 0xfde9
xor edx, edx
mov r8, rsi
mov r9d, 0xffffffff
call r14
mov rcx, rsi
call fcn.14026629c
mov rax, rdi
movaps xmm6, xmmword [rsp + 0x40]
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x1400ece00
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x38
mov rcx, rdx
call fcn.1400f2bb0
mov rdi, rax
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov rbx, qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, 0xfde9
xor edx, edx
mov r8, rax
mov r9d, 0xffffffff
call rbx
movsxd r14, eax
lea rcx, [r14 + r14]
call fcn.140023440
mov rsi, rax
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0x20], rax
mov ecx, 0xfde9
xor edx, edx
mov r8, rdi
mov r9d, 0xffffffff
call rbx
mov rcx, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov edi, eax
test eax, eax
jne 0x1400ecedf
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1400ecedf
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400eced9
test al, 0x10
je 0x1400ecedf
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x2000000
mov dword [rsp + 0x20], 3
mov rcx, rsi
xor edx, edx
mov r8d, 7
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
je 0x1400ecedf
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov bl, 1
jmp 0x1400ecee4
call qword [sym.imp.KERNEL32.dll_GetLastError]
test edi, edi
setne bl
mov rcx, rsi
call fcn.14026e508
mov eax, ebx
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r14
ret

Function at 0x1400ecf00
Capabilities:
Get common file path

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov ecx, 0x8000
mov edx, 2
call fcn.1400233e0
mov rsi, rax
mov ecx, 0x7fff
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
mov word [rsi + rax*2], 0
mov rcx, rsi
mov rdx, 0xffffffffffffffff
xor r8d, r8d
call fcn.1400f5c00
mov rdi, rax
mov rcx, rsi
call fcn.14026e508
mov rax, rdi
add rsp, 0x28
pop rdi
pop rsi
ret
Function at 0x1400ecf60
Capabilities:
Create directory

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x68
mov rbx, rdx
mov rax, qword [0x14039fd98]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x48], 0
mov ecx, 0x8000
mov edx, 2
call fcn.1400233e0
mov rsi, rax
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r14, qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, 0xfde9
xor edx, edx
mov r8, rbx
mov r9d, 0xffffffff
call r14
movsxd r15, eax
lea rcx, [r15 + r15]
call fcn.140023440
mov rdi, rax
mov dword [rsp + 0x28], r15d
mov qword [rsp + 0x20], rax
mov ecx, 0xfde9
xor edx, edx
mov r8, rbx
mov r9d, 0xffffffff
call r14
lea r8, [0x1402a04e2]
mov edx, 0x7fff
mov rcx, rsi
mov r9, rdi
call fcn.140016800
mov word [rsi + 0xfffe], 0
cmp eax, 0x7fff
ja 0x1400ed0c2
mov ebp, eax
movsxd r14, eax
mov edx, 0x8000
mov rcx, rdi
call fcn.1402793e0
cmp rax, r14
jne 0x1400ed0c2
mov qword [rsp + 0x48], r14
cmp ebp, 0x7ff7
ja 0x1400ed0cd
mov dword [rsp + 0x3c], 0
lea rdx, [rsp + 0x3c]
mov ecx, 4
call fcn.1400e8890
test al, al
je 0x1400ed0fc
mov r9d, dword [rsp + 0x3c]
lea r8, [0x1402fdf9e]
lea rsi, [rsp + 0x57]
mov edx, 9
mov rcx, rsi
call fcn.140024da0
lea rcx, [rsp + 0x40]
mov rdx, rsi
call fcn.1400ec650
mov rsi, qword [rsp + 0x40]
test al, al
je 0x1400ed0cd
mov rcx, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x1400ed0fc
mov rcx, rsi
mov rdx, 0xffffffffffffffff
xor r8d, r8d
call fcn.1400f5c00
jmp 0x1400ed104
mov ecx, reloc.WS2_32.dll_WSAGetLastError
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor ebx, ebx
mov rcx, rdi
call fcn.14026e508
mov rcx, rsi
call fcn.14026e508
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140265fe0
mov rax, rbx
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
mov rcx, rbx
call fcn.1400ed110
mov rbx, rax
jmp 0x1400ed0cf
Function at 0x1400ed110
Capabilities:
Create directory

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x50
mov rbx, rcx
mov rax, qword [0x14039fd98]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov ecx, 0x8000
mov edx, 2
call fcn.1400233e0
mov rsi, rax
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r14, qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, 0xfde9
xor edx, edx
mov r8, rbx
mov r9d, 0xffffffff
call r14
movsxd r15, eax
lea rcx, [r15 + r15]
call fcn.140023440
mov rdi, rax
mov dword [rsp + 0x28], r15d
mov qword [rsp + 0x20], rax
mov ecx, 0xfde9
xor edx, edx
mov r8, rbx
mov r9d, 0xffffffff
call r14
lea r8, [0x1402a04e2]
mov edx, 0x7fff
mov rcx, rsi
mov r9, rdi
call fcn.140016800
mov word [rsi + 0xfffe], 0
cmp eax, 0x7fff
ja 0x1400ed298
mov ebx, eax
movsxd r15, eax
mov edx, 0x8000
mov rcx, rdi
call fcn.1402793e0
cmp rax, r15
jne 0x1400ed298
cmp ebx, 0x7fdb
ja 0x1400ed2a3
lea rcx, [rsp + 0x38]
call qword [sym.imp.RPCRT4.dll_UuidCreateSequential]
cmp eax, 0x720
je 0x1400ed202
test eax, eax
jne 0x1400ed2a3
lea rcx, [rsp + 0x38]
lea rdx, [rsp + 0x30]
call qword [sym.imp.RPCRT4.dll_UuidToStringW]
test eax, eax
jne 0x1400ed2a3
mov rbx, qword [rsp + 0x30]
mov r14d, 0x7fff
sub r14, r15
lea rcx, [rsi + r15*2]
lea r8, [0x1402a04e2]
mov rdx, r14
mov r9, rbx
call fcn.140016800
mov word [rsi + 0xfffe], 0
test eax, eax
js 0x1400ed298
movsxd r15, eax
cmp r14, r15
jl 0x1400ed298
mov edx, 0x8000
mov rcx, rbx
call fcn.1402793e0
cmp rax, r15
jne 0x1400ed298
lea rcx, [rsp + 0x30]
call qword [sym.imp.RPCRT4.dll_RpcStringFreeW]
xor ebx, ebx
mov rcx, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x1400ed2a5
mov rcx, rsi
mov rdx, 0xffffffffffffffff
xor r8d, r8d
call fcn.1400f5c00
mov rbx, rax
jmp 0x1400ed2a5
mov ecx, reloc.WS2_32.dll_WSAGetLastError
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor ebx, ebx
mov rcx, rdi
call fcn.14026e508
mov rcx, rsi
call fcn.14026e508
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140265fe0
mov rax, rbx
add rsp, 0x50
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret