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

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x68
mov rax, qword [0x1403acd78]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rax, qword [rcx + 8]
bswap rax
mov qword [rsp + 0x28], rcx
mov rcx, qword [rcx]
bswap rcx
cmp r9, 0x10
jb 0x14007be74
mov rdi, r9
mov rbx, r8
mov r14, qword [rdx]
mov r15, qword [rdx + 8]
mov r12, r14
xor r12, r15
lea rsi, [rsp + 0x30]
nop word cs:[rax + rax]
mov r13, qword [rbx]
mov rbp, qword [rbx + 8]
bswap rbp
xor rbp, rax
bswap r13
xor r13, rcx
lea rcx, [rsp + 0x58]
lea rdx, [rsp + 0x50]
mov r8, rbp
mov r9, r15
call fcn.140094940
lea rcx, [rsp + 0x48]
lea rdx, [rsp + 0x40]
mov r8, r13
mov r9, r14
call fcn.140094940
xor r13, rbp
lea rcx, [rsp + 0x38]
mov rdx, rsi
mov r8, r13
mov r9, r12
call fcn.140094940
mov rdx, qword [rsp + 0x58]
mov r8, qword [rsp + 0x48]
mov r9, qword [rsp + 0x50]
mov r10, qword [rsp + 0x40]
mov rax, rdx
shl rax, 0x3f
mov rcx, rdx
shl rcx, 0x3e
xor rcx, rax
mov rax, rdx
shl rax, 0x39
xor rax, rcx
xor rax, qword [rsp + 0x38]
mov r11, rdx
xor r11, r8
xor r11, r9
xor r11, rax
mov rax, r11
shr rax, 1
mov r13, r11
mov rbp, r11
shr rbp, 2
xor rbp, rax
mov rax, r11
mov rcx, r11
shr rcx, 7
xor rcx, r10
xor rcx, rbp
mov rbp, r11
shld rbp, rdx, 0x3f
shld r13, rdx, 0x3e
shld rax, rdx, 0x39
xor rcx, r11
xor rax, r13
xor rbp, qword [rsp + 0x30]
xor rax, rdx
xor rax, r8
xor rax, r9
xor rax, rbp
xor rax, r10
add rbx, 0x10
add rdi, 0xfffffffffffffff0
cmp rdi, 0xf
ja 0x14007bd80
bswap rcx
bswap rax
mov rdx, qword [rsp + 0x28]
mov qword [rdx], rcx
mov qword [rdx + 8], rax
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140279500
nop
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x14007beb0
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x28
mov r14, r8
mov rdi, rdx
mov rsi, rcx
mov qword [rcx + 0x180], 0
xorps xmm0, xmm0
movaps xmmword [rcx], xmm0
movaps xmmword [rcx + 0x30], xmm0
movaps xmmword [rcx + 0x40], xmm0
cmp r9, 0xc
jne 0x14007bf00
mov eax, dword [r14 + 8]
mov dword [rsi + 8], eax
mov rax, qword [r14]
mov qword [rsi], rax
mov byte [rsi + 0xf], 1
mov ebx, 2
jmp 0x14007c0a4
mov rbx, r9
cmp r9, 0x10
jb 0x14007bfc5
lea r15, [rsi + 0x60]
mov r12, rbx
nop word cs:[rax + rax]
movzx eax, byte [r14]
xor byte [rsi], al
movzx eax, byte [r14 + 1]
xor byte [rsi + 1], al
movzx eax, byte [r14 + 2]
xor byte [rsi + 2], al
movzx eax, byte [r14 + 3]
xor byte [rsi + 3], al
movzx eax, byte [r14 + 4]
xor byte [rsi + 4], al
movzx eax, byte [r14 + 5]
xor byte [rsi + 5], al
movzx eax, byte [r14 + 6]
xor byte [rsi + 6], al
movzx eax, byte [r14 + 7]
xor byte [rsi + 7], al
movzx eax, byte [r14 + 8]
xor byte [rsi + 8], al
movzx eax, byte [r14 + 9]
xor byte [rsi + 9], al
movzx eax, byte [r14 + 0xa]
xor byte [rsi + 0xa], al
movzx eax, byte [r14 + 0xb]
xor byte [rsi + 0xb], al
movzx eax, byte [r14 + 0xc]
xor byte [rsi + 0xc], al
movzx eax, byte [r14 + 0xd]
xor byte [rsi + 0xd], al
movzx eax, byte [r14 + 0xe]
xor byte [rsi + 0xe], al
movzx eax, byte [r14 + 0xf]
xor byte [rsi + 0xf], al
mov rcx, rsi
mov rdx, r15
call fcn.14007bbf0
add r14, 0x10
add r12, 0xfffffffffffffff0
cmp r12, 0xf
ja 0x14007bf20
test r12, r12
jne 0x14007bfd1
jmp 0x14007c086
mov r12, rbx
test r12, r12
je 0x14007c086
cmp r12, 8
jb 0x14007bfe9
lea rax, [r14 + r12]
cmp rax, rsi
jbe 0x14007c051
lea rax, [rsi + r12]
cmp r14, rax
jae 0x14007c051
xor eax, eax
mov rcx, rax
not rcx
add rcx, r12
mov rdx, r12
and rdx, 3
je 0x14007c011
nop dword [rax]
movzx r8d, byte [r14 + rax]
xor byte [rsi + rax], r8b
inc rax
dec rdx
jne 0x14007c000
cmp rcx, 3
jb 0x14007c07a
nop word [rax + rax]
movzx ecx, byte [r14 + rax]
xor byte [rsi + rax], cl
movzx ecx, byte [r14 + rax + 1]
xor byte [rsi + rax + 1], cl
movzx ecx, byte [r14 + rax + 2]
xor byte [rsi + rax + 2], cl
movzx ecx, byte [r14 + rax + 3]
xor byte [rsi + rax + 3], cl
add rax, 4
cmp r12, rax
jne 0x14007c020
jmp 0x14007c07a
mov eax, r12d
and eax, 8
xor ecx, ecx
nop dword [rax]
mov rdx, qword [r14 + rcx]
xor qword [rsi + rcx], rdx
add rcx, 8
cmp rax, rcx
jne 0x14007c060
cmp r12, rax
jne 0x14007bfeb
lea rdx, [rsi + 0x60]
mov rcx, rsi
call fcn.14007bbf0
shl rbx, 3
bswap rbx
xor qword [rsi + 8], rbx
lea rdx, [rsi + 0x60]
mov rcx, rsi
call fcn.14007bbf0
mov ebx, dword [rsi + 0xc]
bswap ebx
inc ebx
lea rdx, [rsi + 0x20]
mov rcx, rsi
mov r8, rdi
call qword [rsi + 0x170]
bswap ebx
mov dword [rsi + 0xc], ebx
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
Function at 0x14007dcc0
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x30
mov rax, qword [rsp + 0x90]
test rax, rax
je 0x14007dd0a
cmp rax, 0xa
ja 0x14007dd32
mov dword [rsp + 0x20], 0xcb
lea r9, str..._.._third_party_boringssl_src_crypto_fipsmodule_rsa_padding.c
xor esi, esi
mov ecx, 4
xor edx, edx
mov r8d, 0x7e
call fcn.140049240
jmp 0x14007de57
mov dword [rsp + 0x20], 0xc2
lea r9, str..._.._third_party_boringssl_src_crypto_fipsmodule_rsa_padding.c
xor esi, esi
mov ecx, 4
xor edx, edx
mov r8d, 0x78
call fcn.140049240
jmp 0x14007de57
mov rsi, rdx
movzx edx, byte [r9]
dec rdx
movzx r11d, byte [r9 + 1]
xor r11, 2
dec r11
mov rbx, rax
and rbx, 0xfffffffffffffffe
add rbx, 0xfffffffffffffffc
mov r15d, 2
mov rdi, 0xffffffffffffffff
xor r14d, r14d
xor r10d, r10d
nop word cs:[rax + rax]
mov r12, r15
xor r15, r10
cmp byte [r9 + r12], 0
mov r13d, 0
cmove r13, rdi
cmove rdi, r14
and r13, r15
xor r13, r10
lea r15, [r12 + 1]
xor r15, r13
cmp byte [r9 + r12 + 1], 0
mov r10d, 0
cmove r10, rdi
cmove rdi, r14
and r10, r15
xor r10, r13
lea r15, [r12 + 2]
add r12, 0xfffffffffffffffe
cmp r12, rbx
jne 0x14007dd70
test al, 1
je 0x14007dde5
mov rbx, r15
xor rbx, r10
xor r14d, r14d
cmp byte [r9 + r15], 0
mov r15d, 0
cmove r15, rdi
cmove rdi, r14
and r15, rbx
xor r10, r15
lea rbx, [r10 - 0xa]
mov r14, r10
not r14
test rbx, r14
js 0x14007de17
and r11, rdx
jns 0x14007de17
cmp rdi, 0xffffffffffffffff
je 0x14007de17
inc r10
mov rdi, rax
sub rdi, r10
cmp rdi, r8
jbe 0x14007de3c
mov dword [rsp + 0x20], 0xf8
jmp 0x14007de1f
mov dword [rsp + 0x20], 0xf0
lea r9, str..._.._third_party_boringssl_src_crypto_fipsmodule_rsa_padding.c
xor esi, esi
mov ecx, 4
xor edx, edx
mov r8d, 0x89
call fcn.140049240
jmp 0x14007de57
cmp r10, rax
je 0x14007de4f
add r9, r10
mov rdx, r9
mov r8, rdi
call fcn.14027bf80
mov qword [rsi], rdi
mov esi, 1
mov eax, esi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x140085500
Capabilities:
Hash data using sha1

Disassembly:
mov r8d, 1
jmp fcn.140085510
Function at 0x14009eb80
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x18
movdqa xmmword [rsp], xmm6
test r8, r8
je 0x14009eb9e
cmp r8, 8
jae 0x14009eba5
xor eax, eax
xor r9d, r9d
jmp 0x14009ed30
xor eax, eax
jmp 0x14009ed48
cmp r8, 0x20
jae 0x14009ebb5
xor r9d, r9d
xor eax, eax
jmp 0x14009eccb
lea rax, [r8 - 0x20]
mov r10, rax
shr r10, 5
inc r10
cmp rax, 0x20
jae 0x14009ebd6
pxor xmm0, xmm0
xor r9d, r9d
pxor xmm1, xmm1
jmp 0x14009ec50
mov rax, r10
and rax, 0xfffffffffffffffe
pxor xmm0, xmm0
xor r9d, r9d
pxor xmm1, xmm1
nop dword [rax + rax]
movdqu xmm2, xmmword [rcx + r9]
movdqu xmm3, xmmword [rcx + r9 + 0x10]
movdqu xmm4, xmmword [rcx + r9 + 0x20]
movdqu xmm5, xmmword [rcx + r9 + 0x30]
movdqu xmm6, xmmword [rdx + r9]
pxor xmm6, xmm2
por xmm6, xmm0
movdqu xmm2, xmmword [rdx + r9 + 0x10]
pxor xmm2, xmm3
por xmm2, xmm1
movdqu xmm0, xmmword [rdx + r9 + 0x20]
pxor xmm0, xmm4
por xmm0, xmm6
movdqu xmm1, xmmword [rdx + r9 + 0x30]
pxor xmm1, xmm5
por xmm1, xmm2
add r9, 0x40
add rax, 0xfffffffffffffffe
jne 0x14009ebf0
mov rax, r8
and rax, 0xffffffffffffffe0
test r10b, 1
je 0x14009ec87
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
por xmm0, xmm1
pshufd xmm1, xmm0, 0xee
por xmm1, xmm0
pshufd xmm0, xmm1, 0x55
por xmm0, xmm1
movdqa xmm1, xmm0
psrld xmm1, 0x10
por xmm1, xmm0
movdqa xmm0, xmm1
psrlw xmm0, 8
por xmm0, xmm1
movd r9d, xmm0
cmp rax, r8
je 0x14009ed44
test r8b, 0x18
je 0x14009ed30
mov r10, rax
mov rax, r8
and rax, 0xfffffffffffffff8
movzx r9d, r9b
movd xmm0, r9d
nop
mov r9, qword [rdx + r10]
xor r9, qword [rcx + r10]
movq xmm1, r9
por xmm0, xmm1
add r10, 8
cmp rax, r10
jne 0x14009ece0
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 0x14009ed44
nop word [rax + rax]
movzx r10d, byte [rdx + rax]
xor r10b, byte [rcx + rax]
or r9b, r10b
inc rax
cmp r8, rax
jne 0x14009ed30
movzx eax, r9b
movaps xmm6, xmmword [rsp]
add rsp, 0x18
ret

Function at 0x1400a6480
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test rdx, rdx
je 0x1400a64c2
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 0x1400a64cc
add rdi, rbx
sub rsi, rbx
jne 0x1400a64a0
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
call fcn.14028a3bc
int3
Function at 0x1400a64e0
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 0x1400a6539
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 0x1400a6500
mov dword [rcx], eax
mov dword [rcx + 4], r10d
pop rbx
pop rdi
pop rsi
ret

Function at 0x1400a7770
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov esi, ecx
mov rax, qword [0x1403acd78]
xor rax, rsp
mov qword [rsp + 0x28], rax
lea rax, [0x1400a7810]
mov qword [rsp + 0x20], rax
lea rcx, [0x1403af0b0]
lea rdx, [0x1400a7610]
lea r8, [rsp + 0x20]
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_InitOnceExecuteOnce]
test eax, eax
je 0x1400a7804
cmp dword [0x1403af0b8], 0
je 0x1400a77c1
xor esi, esi
jmp 0x1400a77ec
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov ecx, dword [0x1403af0bc]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, rax
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
test rdi, rdi
je 0x1400a77bd
movsxd rax, esi
mov rsi, qword [rdi + rax*8]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140279500
mov rax, rsi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
call fcn.14028a3bc
int3

Function at 0x1400a7840
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 [0x1403acd78]
xor rax, rsp
mov qword [rsp + 0x30], rax
lea rax, [0x1400a7810]
mov qword [rsp + 0x28], rax
lea rcx, [0x1403af0b0]
lea rdx, [0x1400a7610]
lea r8, [rsp + 0x28]
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_InitOnceExecuteOnce]
test eax, eax
je 0x1400a7955
cmp dword [0x1403af0b8], 0
je 0x1400a78a5
mov rcx, rsi
call rdi
xor esi, esi
jmp 0x1400a78f9
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov ecx, dword [0x1403af0bc]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r14, rax
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
test r14, r14
je 0x1400a7915
lea r15, [0x1403af0c0]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
movsxd rbx, ebx
lea rax, [0x1403af0d0]
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.140279500
mov eax, esi
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
mov ecx, 0x20
call fcn.14009ea60
test rax, rax
je 0x1400a789c
mov r14, rax
xorps xmm0, xmm0
movups xmmword [rax + 0x10], xmm0
movups xmmword [rax], xmm0
mov ecx, dword [0x1403af0bc]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x1400a78c9
mov rcx, r14
call fcn.14009ea90
jmp 0x1400a789c
call fcn.14028a3bc
int3
Function at 0x1400ef880
Capabilities:
Generate random numbers via winapi

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

Function at 0x1400f37d0
Capabilities:
Enumerate files on windows

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x280
mov rax, qword [0x1403acd78]
xor rax, rsp
mov qword [rsp + 0x278], rax
mov ebx, 4
cmp byte [rcx + 0x18], 0
jne 0x1400f3955
mov rdi, rdx
mov rsi, rcx
cmp qword [rcx + 0x10], 0
je 0x1400f3880
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 0x1400f3842
mov rax, qword [rsi]
test rax, rax
je 0x1400f3835
cmp qword [rax + 0x20], rcx
je 0x1400f3842
call fcn.140279520
mov qword [rsi + 0x20], 0
mov rax, qword [rsi]
test rax, rax
je 0x1400f3852
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 0x1400f3940
lea r8, [rsp + 0x28]
mov rcx, rdi
mov rdx, rsi
call fcn.1400f3980
mov ebx, eax
jmp 0x1400f3955
cmp qword [rsi], 0
lea rax, [0x140310060]
lea rbx, [0x140310064]
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, [0x1402b3322]
mov r9, rbx
call fcn.140016690
mov word [r14 + 0xfffe], 0
test eax, eax
js 0x1400f392a
movsxd r14, eax
sub r15, qword [rdi + 0x10]
cmp r15, r14
jl 0x1400f392a
mov edx, 0x8000
mov rcx, rbx
call fcn.14028c960
cmp rax, r14
jne 0x1400f392a
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 0x1400f3935
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 0x1400f3869
mov ecx, reloc.WS2_32.dll_WSAGetLastError
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov byte [rsi + 0x18], 1
mov ebx, 3
jmp 0x1400f3955
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.140279500
mov eax, ebx
add rsp, 0x280
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x1400f3980
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 [0x1403acd78]
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, [0x1402b3322]
mov r9, rbx
call fcn.140016690
mov word [r12 + 0xfffe], 0
test eax, eax
js 0x1400f3a7b
movsxd r12, eax
sub r15, qword [rdi + 0x10]
cmp r15, r12
jl 0x1400f3a7b
mov edx, 0x8000
mov rcx, rbx
call fcn.14028c960
cmp rax, r12
jne 0x1400f3a7b
add qword [rdi + 0x10], r12
mov r15d, dword [r14]
test r15d, 0x400
jne 0x1400f3aac
xor ebp, ebp
test r15b, 0x10
je 0x1400f3a8b
lea rdx, [0x14031006e]
mov rcx, rbx
call fcn.1402978fc
test eax, eax
je 0x1400f3a52
lea rdx, [0x140310072]
mov rcx, rbx
call fcn.1402978fc
mov ebp, 1
test eax, eax
jne 0x1400f3a8b
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140279500
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.1400f37d0
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.140279500
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 0x1400f3a8b
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 0x1400f3a8b
mov ebp, 0
test r15b, 0x10
je 0x1400f3a8b
mov r14, rax
lea rdx, [rsp + 0x40]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
je 0x1400f3baf
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r14d, dword [rsp + 0x5c]
mov ebp, dword [rsp + 0x6c]
mov r12d, dword [rsp + 0x70]
mov r15, qword [rsi + 0x20]
test r15, r15
je 0x1400f3b63
mov rax, r15
jmp 0x1400f3b49
mov rax, qword [rax + 0x10]
test rax, rax
je 0x1400f3b63
cmp dword [rax], r14d
jne 0x1400f3b40
cmp dword [rax + 4], r12d
jne 0x1400f3b40
cmp dword [rax + 8], ebp
jne 0x1400f3b40
mov ebp, 2
jmp 0x1400f3a8b
lea rdx, [0x14031006e]
mov rcx, rbx
call fcn.1402978fc
test eax, eax
je 0x1400f3bc7
lea rdx, [0x140310072]
mov rcx, rbx
call fcn.1402978fc
test eax, eax
je 0x1400f3bc7
mov ecx, 0x18
call fcn.140279780
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 0x1400f3a8b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, esi
jmp 0x1400f3a80
mov rcx, rsi
mov rdx, rdi
call fcn.1400f37d0
mov ebp, eax
jmp 0x1400f3a8b
Function at 0x1400f3c40
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.1400f9b00
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.1400233f0
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 0x1400f3d03
mov edi, 2
test al, 0x10
je 0x1400f3d17
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 0x1400f3d17
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, 1
jmp 0x1400f3d17
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.140281a88
mov eax, edi
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r14
ret

Function at 0x1400f3d30
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 0x1400f3de8
lea edi, [rax + 1]
movsxd rcx, eax
cmp eax, 0xffffffff
lea rax, [rcx + rcx + 2]
mov rcx, 0xffffffffffffffff
cmovge rcx, rax
call fcn.140279528
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.1400233f0
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.1402797bc
mov rax, rdi
movaps xmm6, xmmword [rsp + 0x40]
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x1400f3e00
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.1400f9b00
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.1400233f0
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 0x1400f3edf
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1400f3edf
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400f3ed9
test al, 0x10
je 0x1400f3edf
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 0x1400f3edf
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov bl, 1
jmp 0x1400f3ee4
call qword [sym.imp.KERNEL32.dll_GetLastError]
test edi, edi
setne bl
mov rcx, rsi
call fcn.140281a88
mov eax, ebx
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r14
ret

Function at 0x1400f3f00
Capabilities:
Get common file path

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov ecx, 0x8000
mov edx, 2
call fcn.140023390
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.1400fcb50
mov rdi, rax
mov rcx, rsi
call fcn.140281a88
mov rax, rdi
add rsp, 0x28
pop rdi
pop rsi
ret
Function at 0x1400f3f60
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 [0x1403acd78]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x48], 0
mov ecx, 0x8000
mov edx, 2
call fcn.140023390
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.1400233f0
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, [0x1402b3322]
mov edx, 0x7fff
mov rcx, rsi
mov r9, rdi
call fcn.140016690
mov word [rsi + 0xfffe], 0
cmp eax, 0x7fff
ja 0x1400f40c2
mov ebp, eax
movsxd r14, eax
mov edx, 0x8000
mov rcx, rdi
call fcn.14028c960
cmp rax, r14
jne 0x1400f40c2
mov qword [rsp + 0x48], r14
cmp ebp, 0x7ff7
ja 0x1400f40cd
mov dword [rsp + 0x3c], 0
lea rdx, [rsp + 0x3c]
mov ecx, 4
call fcn.1400ef880
test al, al
je 0x1400f40fc
mov r9d, dword [rsp + 0x3c]
lea r8, [0x14031006a]
lea rsi, [rsp + 0x57]
mov edx, 9
mov rcx, rsi
call fcn.140024c90
lea rcx, [rsp + 0x40]
mov rdx, rsi
call fcn.1400f3650
mov rsi, qword [rsp + 0x40]
test al, al
je 0x1400f40cd
mov rcx, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x1400f40fc
mov rcx, rsi
mov rdx, 0xffffffffffffffff
xor r8d, r8d
call fcn.1400fcb50
jmp 0x1400f4104
mov ecx, reloc.WS2_32.dll_WSAGetLastError
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor ebx, ebx
mov rcx, rdi
call fcn.140281a88
mov rcx, rsi
call fcn.140281a88
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140279500
mov rax, rbx
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
mov rcx, rbx
call fcn.1400f4110
mov rbx, rax
jmp 0x1400f40cf