joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140104b10
Capabilities:
Check if file exists
Delete directory
Delete file
Set file attributes

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x568
mov byte [rsp + 0x2f], r8b
mov rsi, rdx
mov rdi, rcx
mov rax, qword [0x140430040]
xor rax, rsp
mov qword [rsp + 0x560], rax
lea r14, [rsp + 0x298]
mov r8d, 0x2c8
mov rcx, r14
mov dl, 0xaa
call fcn.1402b6a10
mov qword [rsp + 0x20], rsi
xor ebp, ebp
mov rcx, r14
mov rdx, rdi
xor r8d, r8d
mov r9d, 3
call fcn.140104ff0
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rdi, [rsp + 0x30]
mov qword [rdi + 0x10], rax
movaps xmm0, xmmword [0x1403d4b30]
movaps xmmword [rdi], xmm0
mov rcx, r14
mov rdx, rdi
call fcn.1401051c0
movsx rax, byte [rdi + 0x17]
test rax, rax
jns 0x140104baa
mov rax, qword [rsp + 0x38]
test rax, rax
je 0x140104c7e
lea r14, [rsp + 0x48]
lea r15, [rsp + 0x298]
mov r13, qword [sym.imp.KERNEL32.dll_GetLastError]
mov rbx, qword [sym.imp.KERNEL32.dll_DeleteFileW]
xor r12d, r12d
mov r8d, 0x250
mov rcx, r14
mov dl, 0xaa
call fcn.1402b6a10
mov rcx, r15
mov rdx, r14
call fcn.140105190
mov edx, dword [rsp + 0x48]
test dl, 1
jne 0x140104d0d
mov rcx, r14
call fcn.140104ee0
test al, al
jne 0x140104ccc
cmp byte [rsp + 0x47], 0
mov rcx, rdi
jns 0x140104c18
mov rcx, qword [rsp + 0x30]
call rbx
test eax, eax
jne 0x140104cc5
call r13
mov ebp, eax
and eax, 0xfffffffe
cmp eax, 2
mov eax, 0
cmove ebp, eax
test r12d, r12d
cmovne ebp, r12d
mov rcx, r14
call fcn.1400c2530
mov rcx, r15
mov rdx, r14
call fcn.1401051c0
mov rcx, rdi
mov rdx, r14
call fcn.14010ff50
mov rcx, r14
call fcn.14021c6c0
movsx rax, byte [rsp + 0x47]
test rax, rax
jns 0x140104c72
mov rax, qword [rsp + 0x38]
mov r12d, ebp
test rax, rax
jne 0x140104bd1
lea rcx, [rsp + 0x30]
call fcn.14021c6c0
lea rcx, [rsp + 0x298]
call fcn.140105120
mov rcx, qword [rsp + 0x560]
xor rcx, rsp
cmp rcx, qword [0x140430040]
je 0x140104caf
call fcn.140278ca0
int3
mov eax, ebp
add rsp, 0x568
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
xor ebp, ebp
jmp 0x140104c35
xor ebp, ebp
cmp byte [rsp + 0x2f], 0
je 0x140104c35
mov rcx, rdi
mov rdx, rsi
mov r8b, 1
call fcn.140104b10
test eax, eax
jne 0x140104d60
cmp byte [rsp + 0x47], 0
mov rcx, rdi
jns 0x140104cfa
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x140104c35
jmp 0x140104c22
cmp byte [rsp + 0x2f], 0
je 0x140104d35
cmp byte [rsp + 0x47], 0
js 0x140104d22
lea rcx, [rsp + 0x30]
jmp 0x140104d27
mov rcx, qword [rsp + 0x30]
and edx, 0xfffffffe
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
jmp 0x140104bf9
lea rcx, [rsp + 0x48]
call fcn.140104ee0
test al, al
jne 0x140104d49
mov edx, dword [rsp + 0x48]
jmp 0x140104d14
lea rcx, [rsp + 0x48]
call fcn.140104ee0
test al, al
je 0x140104c09
jmp 0x140104cc5
mov ebp, eax
jmp 0x140104c35
Function at 0x140107250
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0xe8
movaps xmmword [rsp + 0xd0], xmm6
mov rax, qword [0x140430040]
xor rax, rsp
mov qword [rsp + 0xc8], rax
test rcx, rcx
je 0x14010740e
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
xor edx, edx
xor r8d, r8d
call fcn.140298f70
movaps xmm6, xmmword [0x1403d4b30]
lea r14, [rsp + 0x80]
movaps xmmword [r14 + 0x30], xmm6
movaps xmmword [r14 + 0x20], xmm6
movaps xmmword [r14 + 0x10], xmm6
movaps xmmword [r14], xmm6
lea rdx, str.ReadStreamToSpanWithMaxSize
lea r8, str....._base_files_file_util.cc
lea r15, [rsp + 0x40]
mov rcx, r15
mov r9d, 0x51
call fcn.14021c360
mov rcx, r14
mov rdx, r15
xor r8d, r8d
call fcn.14020f7b0
xorps xmm0, xmm0
movaps xmmword [r15 + 0x20], xmm0
movaps xmmword [r15 + 0x10], xmm0
movaps xmmword [r15], xmm0
mov dword [r15 + 0x30], 0
mov rcx, rbx
call fcn.14028e4ec
mov ecx, eax
call fcn.14028f24c
lea rdx, [rsp + 0x40]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
je 0x140107412
mov eax, dword [rsp + 0x60]
mov ecx, dword [rsp + 0x64]
shl rax, 0x20
or rax, rcx
test rax, rax
mov r14d, 0xffff
cmovg r14, rax
cmp rdi, r14
cmovb r14, rdi
inc r14
lea rcx, [rsp + 0x30]
movaps xmmword [rcx], xmm6
mov rdx, qword [rsi]
mov rax, qword [rsi + 8]
mov r8, r14
call qword [str._a_]
xor r12d, r12d
mov rcx, qword [rsp + 0x30]
add rcx, r12
mov edx, 1
mov r8, r14
mov r9, rbx
call fcn.140298bf0
test rax, rax
je 0x1401073a7
mov r15, rax
mov rax, rdi
sub rax, r12
cmp rax, r15
jb 0x14010741d
add r15, r12
mov rcx, rbx
call fcn.1402980d0
test eax, eax
je 0x140107421
mov r12, r15
mov rcx, rbx
call fcn.1402980fc
test eax, eax
sete bl
mov rdi, r12
mov rdx, qword [rsi]
mov rax, qword [rsi + 8]
lea rcx, [rsp + 0x20]
mov r8, rdi
call qword [str._a_]
lea rcx, [rsp + 0x80]
call fcn.14020f840
mov rcx, qword [rsp + 0xc8]
xor rcx, rsp
cmp rcx, qword [0x140430040]
je 0x1401073f3
call fcn.140278ca0
int3
mov eax, ebx
movaps xmm6, xmmword [rsp + 0xd0]
add rsp, 0xe8
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
xor ebx, ebx
jmp 0x1401073d9
mov r14d, 0xffff
jmp 0x140107341
xor ebx, ebx
jmp 0x1401073b7
test r12, r12
mov eax, 0x10000
cmove r14, rax
lea r8, [r15 + r14]
mov rdx, qword [rsi]
mov rax, qword [rsi + 8]
lea r12, [rsp + 0x20]
mov rcx, r12
call qword [str._a_]
movups xmm0, xmmword [r12]
movaps xmmword [rsp + 0x30], xmm0
mov r12, r15
jmp 0x140107366
Function at 0x14010d990
Capabilities:
Delete file

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x58
mov rsi, rcx
mov rax, qword [0x140430040]
xor rax, rsp
mov qword [rsp + 0x50], rax
call fcn.14010db60
mov eax, dword [rsi]
mov dword [reloc.WS2_32.dll_accept], eax
mov bl, 1
test al, 1
jne 0x14010d9e1
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
cmp rcx, qword [0x140430040]
je 0x14010d9d5
call fcn.140278ca0
int3
mov eax, ebx
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop r14
ret
mov rcx, qword [0x140442e98]
test rcx, rcx
je 0x14010da0f
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [0x140442e98], 0
cmp qword [0x140442ea0], 0
jne 0x14010da0f
and byte [reloc.WS2_32.dll_accept], 0xfe
mov rax, qword [rsi + 0x28]
test rax, rax
je 0x14010da38
movsx rcx, byte [rsi + 0x1f]
test rcx, rcx
jns 0x14010da26
mov rcx, qword [rsi + 0x10]
test rcx, rcx
jne 0x14010dab1
mov qword [0x140442e98], rax
jmp 0x14010d9be
movsx rax, byte [rsi + 0x1f]
test rax, rax
jns 0x14010da46
mov rax, qword [rsi + 0x10]
test rax, rax
je 0x14010db00
lea rdi, [rsi + 8]
mov rcx, qword [0x140442ea0]
test rcx, rcx
jne 0x14010da81
mov ecx, Ordinal_27
call fcn.14027768c
mov rcx, rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov qword [rax + 0x10], 0
mov qword [0x140442ea0], rax
mov rdx, rdi
call fcn.140202070
cmp dword [rsi + 0x24], 0
jne 0x14010daa5
mov rcx, qword [0x140442ea0]
cmp byte [rcx + 0x17], 0
jns 0x14010da9f
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
call fcn.1402f5ad0
mov ebx, eax
jmp 0x14010d9be
lea rdx, str.BaseInitLoggingImpl_built_with_NDEBUG
lea r8, str....._baselogging.cc
lea rdi, [rsp + 0x28]
mov rcx, rdi
mov r9d, 0x232
call fcn.14021c360
lea rdx, str.settings.log_file_path.empty__
lea r14, [rsp + 0x48]
mov rcx, r14
mov r8d, reloc.WLDAP32.dll_Ordinal_127
mov r9, rdi
call fcn.1402f8af0
mov rcx, r14
call fcn.1402f8d00
mov rax, qword [rsi + 0x28]
jmp 0x14010da2f
lea rdx, str.BaseInitLoggingImpl_built_with_NDEBUG
lea r8, str....._baselogging.cc
lea rdi, [rsp + 0x28]
mov rcx, rdi
mov r9d, 0x238
call fcn.14021c360
lea rdx, str._settings.log_file_path.empty__
lea rbx, [rsp + 0x20]
mov rcx, rbx
mov r8d, reloc.WLDAP32.dll_Ordinal_127
mov r9, rdi
call fcn.1402f8af0
lea rdx, str.LOG_TO_FILE_set_but_no_log_file_path_
mov rcx, rbx
call fcn.1402f5aa0
mov rcx, rbx
call fcn.1402f8d00
jmp 0x14010da4f
Function at 0x140110010
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x50
mov rsi, rdx
mov rdi, rcx
mov rax, qword [0x140430040]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov r8, qword [rcx]
mov r9, qword [rcx + 8]
cmp r9, 2
jb 0x140110140
cmp word [r8 + 2], 0x3a
jne 0x140110140
movzx eax, word [r8]
and eax, 0xffffffdf
add eax, 0xffffffbf
cmp ax, 0x1a
jae 0x140110140
mov ebx, 2
xor eax, eax
mov rcx, qword [rsi]
mov rdx, qword [rsi + 8]
cmp rdx, 2
jb 0x140110149
cmp word [rcx + 2], 0x3a
jne 0x140110149
movzx r10d, word [rcx]
and r10d, 0xffffffdf
add r10d, 0xffffffa5
cmp r10w, 0xffe6
setae r10b
not al
test al, r10b
je 0x140110149
cmp r9, rbx
cmovae r9, rbx
lea rdx, [rsp + 0x38]
mov qword [rdx], rcx
mov qword [rdx + 8], 2
lea rcx, [rsp + 0x28]
mov qword [rcx], r8
mov qword [rcx + 8], r9
mov r8d, 1
call fcn.14020c800
test al, al
je 0x1401100f6
mov rcx, qword [rdi + 8]
sub rcx, rbx
jb 0x14011016d
mov rax, qword [rsi + 8]
cmp rax, 1
jbe 0x14011016d
add rax, 0xfffffffffffffffe
cmp rcx, rax
je 0x140110117
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
cmp rcx, qword [0x140430040]
je 0x14011010f
call fcn.140278ca0
int3
add rsp, 0x50
pop rbx
pop rdi
pop rsi
ret
mov al, 1
test rcx, rcx
je 0x1401100f8
add ebx, ebx
add rbx, qword [rdi]
mov rdx, qword [rsi]
xor r8d, r8d
movzx r9d, word [rbx + r8*2]
cmp r9w, word [rdx + r8*2 + 4]
jne 0x1401100f6
inc r8
cmp rcx, r8
jne 0x140110129
jmp 0x1401100f8
mov al, 1
xor ebx, ebx
jmp 0x140110064
cmp r9, rdx
jne 0x1401100f6
mov al, 1
test r9, r9
je 0x1401100f8
xor edx, edx
movzx r10d, word [r8 + rdx*2]
cmp r10w, word [rcx + rdx*2]
jne 0x1401100f6
inc rdx
cmp r9, rdx
jne 0x140110157
jmp 0x1401100f8
lea rcx, str.string_view::substr
call fcn.1402b9a70
int3

Function at 0x140111d40
Capabilities:
Check if file exists

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov ebx, r8d
mov rdi, rdx
mov rsi, rcx
xor eax, eax
mov qword [rcx], rax
mov r14, qword [rdx]
mov qword [rdx], rax
lea r15, [r14 + 1]
cmp r15, 2
jb 0x140111d6f
call fcn.14021c380
cmp qword [rsi], r14
je 0x140111d9e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x140111dda
cmp r15, 2
jb 0x140111d96
mov qword [rsi], r14
call fcn.14021c380
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rcx, [rsi + 8]
call fcn.14021c520
lea rcx, [rsi + 0x20]
call fcn.1402253a0
mov dword [rsi + 0x24], 0
mov byte [rsi + 0x28], 0
mov byte [rsi + 0x29], bl
mov rax, qword [rdi]
inc rax
cmp rax, 2
jae 0x140111df0
mov rax, rsi
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
call fcn.14021c380
mov rcx, qword [rsi]
call fcn.14020bb00
mov qword [rsi], 0
jmp 0x140111d88
call fcn.14021c380
mov rcx, qword [rdi]
call fcn.14020bb00
mov qword [rdi], 0
jmp 0x140111dca
Function at 0x140112560
Capabilities:
Accept command line arguments

Disassembly:
push rsi
push rdi
sub rsp, 0x58
movaps xmmword [rsp + 0x40], xmm6
mov rax, qword [0x140430040]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rdi, qword [0x140442fb0]
test rdi, rdi
jne 0x140112612
mov ecx, 0x50
call fcn.14027768c
mov rsi, rax
xorps xmm6, xmm6
movups xmmword [rax], xmm6
mov byte [rax + 0x10], 0
mov ecx, Ordinal_27
call fcn.14027768c
mov qword [rsi + 0x18], rax
lea rcx, [rax + 0x18]
mov qword [rsi + 0x28], rcx
test rax, rax
je 0x14011263b
movups xmmword [rax], xmm6
mov qword [rax + 0x10], 0
mov qword [rsi + 0x20], rcx
mov rax, rsi
add rax, 0x38
movups xmmword [rsi + 0x38], xmm6
mov qword [rsi + 0x30], rax
mov qword [rsi + 0x48], 1
mov qword [0x140442fb0], rsi
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov qword [rsp + 0x28], rax
test rax, rax
je 0x14011263b
mov rcx, rax
call fcn.14029c474
lea rdx, [rsp + 0x28]
mov qword [rdx + 8], rax
mov rcx, rsi
call fcn.140112640
test rdi, rdi
sete al
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
cmp rcx, qword [0x140430040]
je 0x14011262f
call fcn.140278ca0
int3
movaps xmm6, xmmword [rsp + 0x40]
add rsp, 0x58
pop rdi
pop rsi
ret
ud2
Function at 0x14011a000
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x58
mov rax, qword [0x140430040]
xor rax, rsp
mov qword [rsp + 0x50], rax
cmp r8, 0x30
ja 0x14011a15a
mov r14, r8
mov r15, rdx
mov rsi, rcx
movaps xmm0, xmmword [0x1403d4b30]
lea rdi, [rsp + 0x40]
movaps xmmword [rdi], xmm0
movaps xmmword [rdi - 0x10], xmm0
movaps xmmword [rdi - 0x20], xmm0
lea r12, [rsp + 0x30]
lea rbx, [rcx + 0x108]
mov eax, dword [rcx + 0x114]
bswap eax
inc eax
bswap eax
mov dword [rcx + 0x114], eax
mov rax, qword [rcx + 0xf8]
lea rdx, [rsp + 0x20]
mov rcx, rbx
mov r8, rsi
call qword [str._a_]
mov eax, dword [rsi + 0x114]
bswap eax
inc eax
bswap eax
mov dword [rsi + 0x114], eax
mov rax, qword [rsi + 0xf8]
mov rcx, rbx
mov rdx, r12
mov r8, rsi
call qword [str._a_]
mov eax, dword [rsi + 0x114]
bswap eax
inc eax
bswap eax
mov dword [rsi + 0x114], eax
mov rax, qword [rsi + 0xf8]
mov rcx, rbx
mov rdx, rdi
mov r8, rsi
call qword [str._a_]
test r14, r14
je 0x14011a0e3
xor eax, eax
mov cl, byte [r15 + rax]
xor byte [rsp + rax + 0x20], cl
inc rax
cmp r14, rax
jne 0x14011a0d3
mov ecx, 1
call fcn.14022c820
bt eax, 0x19
jae 0x14011a165
not eax
lea rcx, [rsp + 0x20]
mov edx, 0x100
mov r8, rsi
test eax, 0x12000000
jne 0x14011a15e
call fcn.140030140
lea rax, [0x14002ebe0]
lea rcx, [0x14002de80]
mov qword [rsi + 0xf8], rcx
mov qword [rsi + 0x100], rax
movups xmm0, xmmword [rdi]
movups xmmword [rbx], xmm0
mov eax, 1
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
cmp rcx, qword [0x140430040]
je 0x14011a14c
call fcn.140278ca0
int3
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
xor eax, eax
jmp 0x14011a135
call fcn.14002fe50
jmp 0x14011a10e
lea rcx, [rsp + 0x20]
mov edx, 0x100
mov r8, rsi
bt eax, 9
jae 0x14011a18d
call fcn.140030f50
lea rax, [0x140031420]
lea rcx, [0x140031120]
jmp 0x14011a11c
call fcn.1402f9b40
lea rax, [0x1402fa780]
lea rcx, [0x1402f9a10]
jmp 0x14011a11c

Function at 0x14011a1c0
Capabilities:
Encode data using xor
Hash data using sha1 via x86 extensions

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
mov ecx, 2
call fcn.14022c820
mov ebp, eax
bt eax, 0x1d
jb 0x14011a203
not ebp
test ebp, 0x128
jne 0x14011a229
mov rcx, rbx
mov rdx, rdi
mov r8, rsi
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
jmp fcn.14003d270
mov ecx, 1
call fcn.14022c820
bt eax, 9
jae 0x14011a1e3
mov rcx, rbx
mov rdx, rdi
mov r8, rsi
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
jmp fcn.14003b300
mov ecx, 1
call fcn.14022c820
mov ebp, eax
bt eax, 0x1c
jae 0x14011a248
xor ecx, ecx
call fcn.14022c820
bt eax, 0x1e
jb 0x14011a272
mov rcx, rbx
mov rdx, rdi
mov r8, rsi
bt ebp, 9
jb 0x14011a264
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
jmp fcn.14003a2c0
nop
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
jmp fcn.14003b5d0
mov rcx, rbx
mov rdx, rdi
mov r8, rsi
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
jmp fcn.14003c470
Function at 0x14011bb70
Capabilities:
Hash data with crc32

Disassembly:
sub rsp, 0x28
test rdx, rdx
jne 0x14011bb8a
test r8d, r8d
jne 0x14011bb83
call fcn.14022cc30
xor eax, eax
add rsp, 0x28
ret
mov r8d, r8d
add rsp, 0x28
jmp fcn.140222820

Function at 0x14011cd60
Capabilities:
Get session user name

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x258
mov rsi, rcx
mov rax, qword [0x140430040]
xor rax, rsp
mov qword [rsp + 0x250], rax
lea rdi, [rsp + 0x50]
mov r8d, 0x200
mov rcx, rdi
mov dl, 0xaa
call fcn.1402b6a10
lea rbx, [rsp + 0x4c]
mov dword [rbx], 0x100
mov rcx, rdi
mov rdx, rbx
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
setne cl
mov eax, dword [rbx]
test eax, eax
setne bl
and bl, cl
je 0x14011cf87
mov edx, eax
movabs r14, 0x7fffffffffffffff
movsx rcx, byte [rsi + 0x17]
test rcx, rcx
js 0x14011cf64
mov r8, rsi
cmp edx, 0xa
jbe 0x14011ce56
mov eax, ecx
mov r8, rcx
cmp rdx, r8
cmova r8, rdx
mov r9, r8
or r9, 3
cmp r9, 0xb
mov edx, recv
cmovne rdx, r9
cmp r8, 0xb
mov r8d, 0xa
cmovb rdx, r8
test cl, cl
js 0x14011cf9c
cmp rdx, r8
je 0x14011ce2d
mov rcx, rsi
call fcn.1400e4b00
mov al, byte [rsi + 0x17]
mov r8, rsi
test al, al
jns 0x14011ce56
mov rax, qword [rsi + 0x10]
mov rcx, rax
and rcx, r14
cmp rcx, 1
je 0x14011cfb2
shr rax, 0x38
mov r8, rsi
test al, al
jns 0x14011ce56
mov r8, qword [rsi]
mov word [r8], reloc.WLDAP32.dll_Ordinal_46
cmp byte [rsi + 0x17], 0
jns 0x14011cf91
mov qword [rsi + 8], 1
mov word [r8 + 2], 0
mov r12d, dword [rsp + 0x4c]
dec r12d
movsx rax, byte [rsi + 0x17]
test rax, rax
jns 0x14011cf0b
and r14, qword [rsi + 0x10]
dec r14
mov r15, qword [rsi + 8]
mov rcx, r14
sub rcx, r15
cmp rcx, r12
jb 0x14011cf29
test r12, r12
je 0x14011cef1
mov r14, rsi
test al, al
jns 0x14011ceb4
mov r14, qword [rsi]
lea rcx, [r14 + r15*2]
lea rax, [rcx + r12*2]
cmp rdi, rax
setb al
cmp rdi, rcx
jb 0x14011cecf
test al, al
jne 0x14011cf9a
lea r8, [r12 + r12]
lea rdx, [rsp + 0x50]
call fcn.1402b6370
add r15, r12
cmp byte [rsi + 0x17], 0
jns 0x14011cf5a
mov qword [rsi + 8], r15
mov word [r14 + r15*2], 0
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
cmp rcx, qword [0x140430040]
je 0x14011cf16
call fcn.140278ca0
int3
mov r14d, 0xa
mov r15, rax
jmp 0x14011ce96
mov eax, ebx
add rsp, 0x258
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov r8, r12
sub r8, r14
add r8, r15
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x20], r15
mov qword [rsp + 0x28], 0
mov rcx, rsi
mov rdx, r14
mov r9, r15
call fcn.14020a830
jmp 0x14011cef1
mov eax, r15d
and al, 0x7f
mov byte [rsi + 0x17], al
jmp 0x14011ceea
mov rax, qword [rsi + 0x10]
mov r8, rax
and r8, r14
dec r8
shr rax, 0x38
cmp r8, rdx
jae 0x14011ce2d
mov r8, qword [rsi + 8]
jmp 0x14011cdec
call fcn.1402f8e00
jmp 0x14011cef1
mov byte [rsi + 0x17], 1
jmp 0x14011ce6e
ud2
mov rax, qword [rsi + 0x10]
mov r8, rax
and r8, r14
dec r8
shr rax, 0x38
jmp 0x14011ce1d
mov r9, qword [rsi + 8]
mov r8d, 2
sub r8, rcx
xor r15d, r15d
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x28], r9
mov qword [rsp + 0x20], r15
mov rcx, rsi
xor edx, edx
call fcn.1401fbb50
mov qword [rsi + 8], r15
mov al, byte [rsi + 0x17]
jmp 0x14011ce4c
Function at 0x140128f30
Capabilities:
Check if file exists

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rdi, rdx
mov rsi, rcx
mov rax, qword [0x140430040]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov byte [rcx], 0
mov qword [rcx + 8], 0
movabs r14, 0xaaaaaaaaaaaaaaaa
lea rbx, [rsp + 0x40]
mov qword [rbx], r14
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, Ordinal_41
mov r8, rbx
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x140129031
mov r15, qword [rsp + 0x40]
cmp qword [rsi + 8], r15
je 0x140128fcb
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi + 8]
inc rax
cmp rax, 2
jae 0x14012907c
lea rax, [r15 + 1]
cmp rax, 2
jb 0x140128fc3
mov qword [rsi + 8], r15
call fcn.14021c380
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea r8, [rsp + 0x38]
mov qword [r8], r14
xor ecx, ecx
mov rdx, rdi
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x140129057
lea r8, [rsp + 0x48]
mov dword [r8], 1
mov rax, qword [rsp + 0x38]
mov qword [r8 + 4], rax
mov dword [r8 + 0xc], 2
lea rax, [rsp + 0x34]
mov dword [rax], 0xaaaaaaaa
lea rdx, [rsi + 0x10]
mov rcx, qword [rsi + 8]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdx
xor edx, edx
mov r9d, reloc.WS2_32.dll_recv
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
je 0x140129057
mov byte [rsi], 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
cmp rcx, qword [0x140430040]
je 0x140129048
call fcn.140278ca0
int3
mov rax, rsi
add rsp, 0x60
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
mov rax, qword [rsi + 8]
inc rax
cmp rax, 2
jb 0x140129031
call fcn.14021c380
mov rcx, qword [rsi + 8]
call fcn.14020bb00
mov qword [rsi + 8], 0
jmp 0x140129031
call fcn.14021c380
mov rcx, qword [rsi + 8]
call fcn.14020bb00
mov qword [rsi + 8], 0
jmp 0x140128fb0
Function at 0x140130570
Capabilities:
Check if file exists

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
cmp dword [rcx + 0x10], 0
jne 0x14013065e
cmp qword [rsi], 0
jne 0x14013065e
cmp dword [rsi + 0x14], 0
jne 0x14013065e
cmp qword [rsi + 8], 0
jne 0x14013065e
xor eax, eax
mov r14, qword [rdi]
cmp rax, r14
je 0x1401305e0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x140130630
lea rax, [r14 + 1]
cmp rax, 2
jb 0x1401305d8
mov qword [rsi], r14
call fcn.14021c380
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov r14, qword [rdi + 8]
cmp qword [rsi + 8], r14
je 0x14013061a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi + 8]
inc rax
cmp rax, 2
jae 0x140130646
lea rax, [r14 + 1]
cmp rax, 2
jb 0x140130612
mov qword [rsi + 8], r14
call fcn.14021c380
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [rdi + 0x10]
mov dword [rsi + 0x10], eax
mov eax, dword [rdi + 0x14]
mov dword [rsi + 0x14], eax
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
call fcn.14021c380
mov rcx, qword [rsi]
call fcn.14020bb00
mov qword [rsi], 0
jmp 0x1401305c6
call fcn.14021c380
mov rcx, qword [rsi + 8]
call fcn.14020bb00
mov qword [rsi + 8], 0
jmp 0x1401305ff
mov rcx, rsi
call fcn.1403163c0
mov rax, qword [rsi]
jmp 0x1401305aa

Function at 0x1401346f0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rdi, rdx
mov rsi, rcx
mov ecx, dword [0x140433190]
cmp ecx, 0xffffffff
je 0x1401347ca
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
je 0x1401347ca
mov eax, dword [0x140446c90]
mov ecx, dword [0x14043f8b8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1401347d4
mov rbx, qword [0x140446c88]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x140134824
mov rax, qword [0x140445478]
inc rax
xor ecx, ecx
lea rdx, [0x140445480]
lea r8d, [rax + rcx]
movzx r8d, r8b
lea r9, [r8 + r8*2]
cmp dword [rdx + r9*8], 0
jne 0x140134831
lea rax, [rdx + r9*8]
mov dword [rax], 1
mov qword [rax + 8], rdi
mov ecx, dword [0x140446c80]
inc ecx
mov dword [0x140446c80], ecx
mov dword [rax + 0x14], ecx
mov qword [0x140445478], r8
mov qword [rsi], r8
mov eax, dword [rax + 0x10]
mov dword [rsi + 8], eax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
cmp qword [rsi], 0x100
jae 0x140134821
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
call fcn.140134850
jmp 0x14013471a
lea rcx, [0x140446c90]
call fcn.14027770c
cmp dword [0x140446c90], 0xffffffff
jne 0x14013473f
mov ecx, 8
call fcn.14027768c
mov rbx, rax
mov qword [rax], 0
mov rcx, rax
call fcn.14020c380
mov qword [0x140446c88], rbx
lea rcx, [0x140446c90]
call fcn.1402777c0
jmp 0x14013473f
int3
mov rcx, rbx
call sub.KERNEL32.dll_AcquireSRWLockExclusive
jmp 0x140134757
inc rcx
cmp rcx, 0x100
jne 0x14013476a
jmp 0x1401347b0