joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1401e80b0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x68
mov rax, qword [0x1403b8c08]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rax, qword [rcx]
mov r13, r9
movsxd r10, edx
mov r12, r8
shl r10, 5
mov r15, rcx
mov r14d, 1
mov rdx, qword [rax + 0x20]
mov rsi, qword [r10 + rdx]
mov r9d, r14d
lea r8, str.sqlite_stat_d
lea rdx, [rsp + 0x38]
mov ecx, SafeArrayCopy
call fcn.140188c90
mov rbp, qword [r15]
lea rdi, [rsp + 0x38]
xor ebx, ebx
cmp dword [rbp + 0x28], ebx
jle 0x1401e81be
nop dword [rax]
mov r9d, ebx
xor r9d, 1
cmp ebx, 2
cmovge r9d, ebx
test rsi, rsi
je 0x1401e8189
mov rax, qword [rbp + 0x20]
lea r11, [0x14032fde0]
movzx edx, byte [rsi]
mov r8, rsi
movsxd rcx, r9d
shl rcx, 5
mov r10, qword [rcx + rax]
movzx eax, byte [rdx + r11]
movzx ecx, byte [r10]
movzx ecx, byte [rcx + r11]
sub eax, ecx
jne 0x1401e81b3
sub r10, rsi
test dl, dl
je 0x1401e8185
movzx eax, byte [r10 + r8 + 1]
inc r8
movzx ecx, byte [rax + r11]
movzx edx, byte [r8]
movzx eax, byte [rdx + r11]
sub eax, ecx
je 0x1401e8164
jmp 0x1401e81b3
test eax, eax
jne 0x1401e81b3
mov rax, qword [rbp + 0x20]
xor r8d, r8d
movsxd rcx, r9d
mov rdx, rdi
shl rcx, 5
mov rcx, qword [rcx + rax + 0x18]
add rcx, 8
call fcn.1401af1c0
cmp qword [rax + 0x10], 0
jne 0x1401e8260
inc ebx
cmp ebx, dword [rbp + 0x28]
jl 0x1401e8120
movzx edx, byte [rdi]
lea rbx, [0x14032fde0]
cmp byte [rdx + rbx], 0x73
jne 0x1401e8281
lea r8, str.sqlite_master
sub r8, rdi
nop dword [rax]
test dl, dl
je 0x1401e8201
movzx eax, byte [r8 + rdi + 1]
inc rdi
movzx ecx, byte [rax + rbx]
movzx edx, byte [rdi]
movzx eax, byte [rdx + rbx]
cmp eax, ecx
je 0x1401e81e0
jmp 0x1401e8281
mov rax, qword [rbp + 0x20]
mov r9, qword [rax + 0x20]
test rsi, rsi
jne 0x1401e8215
neg r9
sbb eax, eax
jmp 0x1401e8250
test r9, r9
je 0x1401e8281
movzx eax, byte [r9]
mov r8, rsi
movzx edx, byte [rsi]
movzx ecx, byte [rax + rbx]
movzx eax, byte [rdx + rbx]
sub eax, ecx
jne 0x1401e8250
sub r9, rsi
test dl, dl
je 0x1401e8250
movzx eax, byte [r9 + r8 + 1]
inc r8
movzx ecx, byte [rax + rbx]
movzx edx, byte [r8]
movzx eax, byte [rdx + rbx]
sub eax, ecx
je 0x1401e8233
test eax, eax
jne 0x1401e8281
lea rdi, str.sqlite_temp_master
jmp 0x1401e8112
mov qword [rsp + 0x28], r13
lea r9, [rsp + 0x38]
mov r8, rsi
mov qword [rsp + 0x20], r12
lea rdx, str.DELETE_FROM__Q._s_WHERE__s_Q
mov rcx, r15
call fcn.1402046d0
inc r14d
cmp r14d, 4
jle 0x1401e80f1
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140172190
add rsp, 0x68
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1401f4c00
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
xor r10d, r10d
mov rdi, r8
mov ebx, r10d
mov rbp, rdx
mov rsi, rcx
cmp dword [rcx + 0x28], ebx
jle 0x1401f4ce5
mov qword [rsp + 0x30], r14
lea r14, [0x14032fde0]
nop dword [rax + rax]
mov eax, ebx
xor eax, 1
cmp ebx, 2
cmovge eax, ebx
movsxd rcx, eax
mov rax, qword [rsi + 0x20]
shl rcx, 5
mov r11, qword [rcx + rax + 0x18]
test rdi, rdi
je 0x1401f4ca5
mov r9, qword [rcx + rax]
mov r8, rdi
movzx edx, byte [rdi]
movzx eax, byte [r9]
movzx ecx, byte [rax + r14]
movzx eax, byte [rdx + r14]
sub eax, ecx
jne 0x1401f4cbd
sub r9, rdi
nop
test dl, dl
je 0x1401f4ca1
movzx eax, byte [r9 + r8 + 1]
inc r8
movzx ecx, byte [rax + r14]
movzx edx, byte [r8]
movzx eax, byte [rdx + r14]
sub eax, ecx
je 0x1401f4c80
jmp 0x1401f4cbd
test eax, eax
jne 0x1401f4cbd
lea rcx, [r11 + 0x20]
xor r8d, r8d
mov rdx, rbp
call fcn.1401af1c0
mov r10, qword [rax + 0x10]
test r10, r10
jne 0x1401f4cc8
inc ebx
cmp ebx, dword [rsi + 0x28]
jl 0x1401f4c40
mov r14, qword [rsp + 0x30]
mov rax, r10
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
mov rax, r10
jmp 0x1401f4cd0
Function at 0x1401f4cf0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
mov rsi, r8
lea r14, [0x14032fde0]
mov rdi, rdx
mov rbp, rcx
xor ebx, ebx
cmp dword [rbp + 0x28], ebx
jle 0x1401f4db8
nop dword [rax]
mov r9d, ebx
xor r9d, 1
cmp ebx, 2
cmovge r9d, ebx
test rsi, rsi
je 0x1401f4d85
mov rax, qword [rbp + 0x20]
mov r8, rsi
movzx edx, byte [rsi]
movsxd rcx, r9d
shl rcx, 5
mov r10, qword [rcx + rax]
movzx eax, byte [rdx + r14]
movzx ecx, byte [r10]
movzx ecx, byte [rcx + r14]
sub eax, ecx
jne 0x1401f4dad
sub r10, rsi
nop dword [rax]
test dl, dl
je 0x1401f4d81
movzx eax, byte [r10 + r8 + 1]
inc r8
movzx ecx, byte [rax + r14]
movzx edx, byte [r8]
movzx eax, byte [rdx + r14]
sub eax, ecx
je 0x1401f4d60
jmp 0x1401f4dad
test eax, eax
jne 0x1401f4dad
mov rax, qword [rbp + 0x20]
xor r8d, r8d
movsxd rcx, r9d
mov rdx, rdi
shl rcx, 5
mov rcx, qword [rcx + rax + 0x18]
add rcx, 8
call fcn.1401af1c0
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x1401f4df0
inc ebx
cmp ebx, dword [rbp + 0x28]
jl 0x1401f4d20
movzx edx, byte [rdi]
cmp byte [rdx + r14], 0x73
jne 0x1401f4dee
lea r8, str.sqlite_master
sub r8, rdi
nop dword [rax]
test dl, dl
je 0x1401f4e03
movzx eax, byte [r8 + rdi + 1]
inc rdi
movzx ecx, byte [rax + r14]
movzx edx, byte [rdi]
movzx eax, byte [rdx + r14]
cmp eax, ecx
je 0x1401f4dd0
xor eax, eax
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret
mov rax, qword [rbp + 0x20]
mov r9, qword [rax + 0x20]
test rsi, rsi
jne 0x1401f4e17
neg r9
sbb eax, eax
jmp 0x1401f4e56
test r9, r9
je 0x1401f4dee
movzx eax, byte [r9]
mov r8, rsi
movzx edx, byte [rsi]
movzx ecx, byte [rax + r14]
movzx eax, byte [rdx + r14]
sub eax, ecx
jne 0x1401f4e56
sub r9, rsi
test dl, dl
je 0x1401f4e56
movzx eax, byte [r9 + r8 + 1]
inc r8
movzx ecx, byte [rax + r14]
movzx edx, byte [r8]
movzx eax, byte [rdx + r14]
sub eax, ecx
je 0x1401f4e37
test eax, eax
jne 0x1401f4dee
lea rdi, str.sqlite_temp_master
jmp 0x1401f4d12
Function at 0x140233c70
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rdi, rcx
mov qword [rcx], 0
mov ecx, 0x28
mov rsi, r8
mov rbp, rdx
call fcn.140203f00
mov rbx, rax
test rax, rax
jne 0x140233cae
lea eax, [rbx + 7]
jmp 0x140233d35
cmp dword [reloc.WS2_32.dll_accept], 0
je 0x140233d02
mov rax, qword [0x1403ba438]
test rax, rax
je 0x140233cce
mov ecx, 0xc8
call rax
test eax, eax
jne 0x140233d02
lea rax, [rbx + 8]
mov qword [rbx + 0x10], rbp
mov qword [rsp + 0x28], rax
lea r8, [0x140213d10]
mov r9, rbx
mov dword [rsp + 0x20], 0
xor edx, edx
mov qword [rbx + 0x18], rsi
xor ecx, ecx
call fcn.1402967ac
mov qword [rbx], rax
test rax, rax
jne 0x140233d17
xor eax, eax
mov qword [rbx], rax
mov qword [rbx + 8], rax
mov qword [rbx + 0x10], rax
mov qword [rbx + 0x18], rax
mov qword [rbx + 0x20], rax
cmp qword [rbx + 0x10], 0
jne 0x140233d30
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov rcx, rsi
mov dword [rbx + 8], eax
call rbp
mov qword [rbx + 0x20], rax
mov qword [rdi], rbx
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x140248264
Capabilities:
Set thread local storage value

Disassembly:
sub rsp, 0x48
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x140248277
add rsp, 0x48
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edx, ax
lea rcx, [rsp + 0x20]
or edx, 0x80070000
test eax, eax
cmovle edx, eax
call fcn.140248884
lea rdx, [0x1403b2de0]
lea rcx, [rsp + 0x20]
call fcn.140288938
int3

Function at 0x140252af8
Capabilities:
Set thread local storage value

Disassembly:
mov ecx, dword [0x1403dbc80]
xor edx, edx
jmp fcn.140248264

Function at 0x14025347c
Capabilities:
Set thread local storage value

Disassembly:
mov rdx, rcx
mov ecx, dword [0x1403dbc80]
jmp fcn.140248264

Function at 0x14025f024
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rcx + 0x98], rdx
mov r8, rcx
mov r9, qword [rdx + 0x1a8]
add rcx, 0x40
lea rdx, [0x14025f0e0]
mov r9, qword [r9 + 8]
jmp fcn.1402504b0

Function at 0x14025f0b8
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rcx + 0x98], rdx
mov r8, rcx
mov r9, qword [rdx + 0x1a8]
add rcx, 0x40
lea rdx, [0x14025f0f0]
mov r9, qword [r9 + 8]
jmp fcn.1402504b0
Function at 0x1402a470c
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.1401722d0
sub rsp, rax
mov rax, qword [0x1403b8c08]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r14, rdx
mov rbx, rcx
call fcn.1402ac410
xor esi, esi
movsxd r12, eax
cmp dword [rbx + 0x10], esi
jne 0x1402a4760
mov rax, r14
jmp 0x1402a487a
mov rax, qword [rbx]
mov rdi, r12
sub rax, qword [rbx + 8]
xor r8d, r8d
cqo
sar rdi, 6
sub rax, rdx
mov rbx, r12
sar rax, 1
and ebx, 0x3f
mov r15, rax
shl rbx, 6
lea rax, [0x140000000]
mov ecx, r12d
mov rdx, qword [rax + rdi*8 + 0x3dc500]
mov rbp, r12
mov rdx, qword [rbx + rdx + 0x30]
call fcn.1402a6e28
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rdi*8 + 0x3dc500]
cmp r13, qword [rbx + rcx + 0x30]
je 0x1402a47c7
or rax, 0xffffffffffffffff
jmp 0x1402a487a
mov rcx, rbp
mov qword [rsp + 0x20], rsi
sar rcx, 6
lea r9, [rsp + 0x30]
and ebp, 0x3f
lea rdx, [rsp + 0x40]
shl rbp, 6
mov r8d, 0x1000
mov rcx, qword [rax + rcx*8 + 0x3dc500]
mov rcx, qword [rcx + rbp + 0x28]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1402a47be
xor r8d, r8d
mov rdx, r14
mov ecx, r12d
call fcn.1402a6e28
test rax, rax
js 0x1402a47be
mov eax, dword [rsp + 0x30]
cmp r15, rax
jg 0x1402a47be
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test r15, r15
je 0x1402a486e
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x1402a486e
cmp byte [rcx], 0xd
jne 0x1402a4854
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x1402a4863
cmp byte [rcx + 1], 0xa
jne 0x1402a4863
inc rcx
jmp 0x1402a4863
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x3c0390]
add rcx, rax
inc rsi
inc rcx
cmp rsi, r15
jne 0x1402a4836
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140172190
lea r11, [rsp + 0x1050]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret

Function at 0x1402a5ce4
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1402a5cdc
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14028c72c
or eax, 0xffffffff
jmp 0x1402a5cde
xor eax, eax
add rsp, 0x28
ret
jmp 0x1402a5cbc
Function at 0x1402a978c
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1402a95b0

Function at 0x1402b2c40
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r10, [0x1403dc500]
mov r14, rdx
mov rax, r15
sar rax, 6
mov rdx, r15
and edx, 0x3f
mov rdi, r15
shl rdx, 6
mov r9, qword [r10 + rax*8]
mov r12, qword [r9 + rdx + 0x28]
test r8, r8
je 0x1402b2ca5
cmp byte [r14], 0xa
jne 0x1402b2ca5
mov rcx, r15
mov rax, r15
sar rax, 6
and ecx, 0x3f
shl rcx, 6
mov rax, qword [r10 + rax*8]
or byte [rax + rcx + 0x38], 4
jmp 0x1402b2cc6
mov dl, byte [r9 + rdx + 0x38]
mov rcx, rdi
and dl, 0xfb
mov rax, rdi
sar rax, 6
and ecx, 0x3f
shl rcx, 6
mov rax, qword [r10 + rax*8]
mov byte [rax + rcx + 0x38], dl
lea rbp, [r14 + r8]
mov rsi, r14
mov rbx, r14
cmp r14, rbp
jae 0x1402b2e20
mov r13d, 1
mov al, byte [rsi]
cmp al, 0x1a
je 0x1402b2de0
cmp al, 0xd
je 0x1402b2cfa
mov byte [rbx], al
add rbx, r13
add rsi, r13
jmp 0x1402b2dd5
lea rax, [rsi + 1]
cmp rax, rbp
jae 0x1402b2d20
cmp byte [rax], 0xa
jne 0x1402b2d12
mov byte [rbx], 0xa
mov eax, 2
jmp 0x1402b2d18
mov byte [rbx], reloc.WS2_32.dll_listen
mov rax, r13
add rsi, rax
jmp 0x1402b2dd2
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x78]
mov r8d, r13d
lea rdx, [rsp + 0x70]
mov rcx, r12
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1402b2dc8
cmp dword [rsp + 0x78], 0
je 0x1402b2dc8
mov rcx, rdi
lea r10, [0x1403dc500]
and ecx, 0x3f
mov rax, rdi
sar rax, 6
shl rcx, 6
mov rax, qword [r10 + rax*8]
test byte [rax + rcx + 0x38], 0x48
je 0x1402b2d98
mov dl, byte [rsp + 0x70]
cmp dl, 0xa
je 0x1402b2da4
mov rcx, rdi
mov byte [rbx], reloc.WS2_32.dll_listen
mov rax, rdi
and ecx, 0x3f
sar rax, 6
shl rcx, 6
mov rax, qword [r10 + rax*8]
mov byte [rax + rcx + 0x3a], dl
jmp 0x1402b2dd2
cmp byte [rsp + 0x70], 0xa
jne 0x1402b2da9
cmp rbx, r14
jne 0x1402b2da9
mov byte [rbx], 0xa
jmp 0x1402b2dd2
mov r8d, r13d
or rdx, 0xffffffffffffffff
mov ecx, r15d
call fcn.1402a6e30
cmp byte [rsp + 0x70], 0xa
lea r10, [0x1403dc500]
je 0x1402b2dd5
jmp 0x1402b2dcf
lea r10, [0x1403dc500]
mov byte [rbx], reloc.WS2_32.dll_listen
add rbx, r13
cmp rsi, rbp
jb 0x1402b2cdf
jmp 0x1402b2e20
mov rcx, rdi
mov rax, rdi
sar rax, 6
and ecx, 0x3f
shl rcx, 6
mov rax, qword [r10 + rax*8]
mov dl, byte [rax + rcx + 0x38]
test dl, 0x40
jne 0x1402b2e19
mov rax, rdi
or dl, 2
sar rax, 6
and edi, 0x3f
shl rdi, 6
mov rax, qword [r10 + rax*8]
mov byte [rax + rdi + 0x38], dl
jmp 0x1402b2e20
mov cl, byte [rsi]
mov byte [rbx], cl
add rbx, r13
sub rbx, r14
mov eax, ebx
mov rbx, qword [rsp + 0x80]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x1402b2e40
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r11, [0x1403dc500]
mov r9, r15
mov rax, r15
sar rax, 6
and r9d, 0x3f
shl r9, 6
mov r14, rdx
mov rdi, r15
mov r10d, 0xa
mov rdx, qword [r11 + rax*8]
mov r12, qword [rdx + r9 + 0x28]
test r8, r8
je 0x1402b2eac
cmp word [r14], r10w
jne 0x1402b2eac
mov rcx, r15
mov rax, r15
sar rax, 6
and ecx, 0x3f
shl rcx, 6
mov rax, qword [r11 + rax*8]
or byte [rax + rcx + 0x38], 4
jmp 0x1402b2ecd
mov dl, byte [rdx + r9 + 0x38]
mov rcx, rdi
and dl, 0xfb
mov rax, rdi
sar rax, 6
and ecx, 0x3f
shl rcx, 6
mov rax, qword [r11 + rax*8]
mov byte [rax + rcx + 0x38], dl
lea rbp, [r14 + r8*2]
mov rsi, r14
mov rbx, r14
cmp r14, rbp
jae 0x1402b30a6
mov ecx, reloc.WS2_32.dll_listen
lea r13d, [rcx - 0xb]
movzx eax, word [rsi]
cmp ax, 0x1a
je 0x1402b3064
cmp ax, cx
je 0x1402b2f09
mov word [rbx], ax
add rbx, r13
add rsi, r13
jmp 0x1402b2ffd
lea rax, [rsi + 2]
cmp rax, rbp
jae 0x1402b2f31
cmp word [rax], r10w
jne 0x1402b2f23
mov word [rbx], r10w
mov eax, 4
jmp 0x1402b2f29
mov word [rbx], cx
mov rax, r13
add rsi, rax
jmp 0x1402b3047
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x80]
mov r8d, r13d
lea rdx, [rsp + 0x70]
mov rcx, r12
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1402b304c
cmp dword [rsp + 0x80], 0
je 0x1402b304c
mov rcx, rdi
lea r11, [0x1403dc500]
and ecx, 0x3f
mov rax, rdi
sar rax, 6
mov r10d, 0xa
shl rcx, 6
mov rax, qword [r11 + rax*8]
test byte [rax + rcx + 0x38], 0x48
je 0x1402b300b
movzx eax, word [rsp + 0x70]
cmp ax, r10w
jne 0x1402b2fa3
mov word [rbx], r10w
jmp 0x1402b2ff5
mov r8, rdi
mov word [rsp + 0x78], ax
mov r9, rdi
and r8d, 0x3f
sar r9, 6
mov ecx, reloc.WS2_32.dll_listen
xor edx, edx
mov word [rbx], cx
shl r8, 6
mov rcx, qword [r11 + r9*8]
mov al, byte [rsp + rdx + 0x78]
add rcx, r8
mov byte [rcx + rdx + 0x3a], al
inc rdx
cmp rdx, r13
jl 0x1402b2fc4
mov rcx, rdi
mov rax, rdi
sar rax, 6
and ecx, 0x3f
shl rcx, 6
mov rax, qword [r11 + rax*8]
mov byte [rax + rcx + 0x3c], r10b
add rbx, r13
mov ecx, reloc.WS2_32.dll_listen
cmp rsi, rbp
jb 0x1402b2ee9
jmp 0x1402b30a6
cmp word [rsp + 0x70], r10w
jne 0x1402b3018
cmp rbx, r14
je 0x1402b2f9d
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.1402a6e30
mov r10d, 0xa
lea r11, [0x1403dc500]
cmp word [rsp + 0x70], r10w
je 0x1402b2ff8
lea ecx, [r10 + 3]
mov word [rbx], cx
add rbx, r13
jmp 0x1402b2ffd
mov ecx, reloc.WS2_32.dll_listen
lea r11, [0x1403dc500]
mov word [rbx], cx
add rbx, r13
lea r10d, [rcx - 3]
jmp 0x1402b2ffd
mov rcx, rdi
mov rax, rdi
sar rax, 6
and ecx, 0x3f
shl rcx, 6
mov rax, qword [r11 + rax*8]
mov dl, byte [rax + rcx + 0x38]
test dl, 0x40
jne 0x1402b309d
mov rax, rdi
or dl, r13b
sar rax, 6
and edi, 0x3f
shl rdi, 6
mov rax, qword [r11 + rax*8]
mov byte [rax + rdi + 0x38], dl
jmp 0x1402b30a6
movzx ecx, word [rsi]
mov word [rbx], cx
add rbx, r13
sub rbx, r14
sar rbx, 1
lea rax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x1402c3c60
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rbp
push rsi
sub rsp, 0x880
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov rax, qword [0x1403b8c08]
xor rax, rsp
mov qword [rsp + 0x870], rax
mov rax, r9
mov r10, r8
mov rbx, rdx
mov qword [rsp + 0x58], rdx
mov rsi, qword [rsp + 0x8c0]
xor ebp, ebp
mov dword [rsp + 0x48], ebp
mov qword [rsp + 0x40], rbp
mov qword [rdx + 0x10], rbp
mov qword [rdx + 0x18], 7
mov word [rdx], bp
mov dword [rsp + 0x48], 1
test r8, r8
je 0x1402c3d88
test rax, rax
je 0x1402c3d88
test rsi, rsi
je 0x1402c3d88
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x20], rcx
mov r9d, 0x20219
xor r8d, r8d
mov rdx, rax
mov rcx, r10
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1402c3d78
cmp qword [rsp + 0x40], rbp
je 0x1402c3d88
xor edx, edx
mov r8d, 0x802
lea rcx, [rsp + 0x60]
call fcn.140289490
mov dword [rsp + 0x4c], 0x800
lea rax, [rsp + 0x4c]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbp
mov r9d, 0xffff
mov r8, rsi
xor edx, edx
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jne 0x1402c3d78
lea rax, [rsp + 0x60]
mov r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], 0
jne 0x1402c3d60
lea rdx, [rsp + 0x60]
mov rcx, rbx
call fcn.1400810d0
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x1402c3d88
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rax, rbx
mov rcx, qword [rsp + 0x870]
xor rcx, rsp
call fcn.140172190
add rsp, 0x880
pop rsi
pop rbp
pop rbx
ret
Function at 0x1402ca950
Capabilities:
Check if file exists
Get file size
Read file on windows

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x50
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov rsi, rdx
mov rdi, rcx
test rcx, rcx
je 0x1402caa88
test rdx, rdx
je 0x1402caa88
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1402caa88
mov rcx, rdi
call qword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x1402caa88
xor ebx, ebx
mov dword [rsp + 0x80], ebx
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [rax + 5]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
mov qword [rsp + 0x40], rax
cmp rax, 0xffffffffffffffff
je 0x1402caa7e
xor eax, eax
mov qword [rsp + 0x88], rax
lea rdx, [rsp + 0x88]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1402caa75
cmp dword [rsp + 0x8c], ebx
jne 0x1402caa75
mov edx, dword [rsp + 0x88]
xor r8d, r8d
mov rcx, rsi
call fcn.1400ddd20
nop
mov dword [rsp + 0x70], ebx
xor edx, edx
mov rcx, rsi
call fcn.1400ddbb4
mov rdx, rax
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x70]
mov r8d, dword [rsp + 0x88]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [rsp + 0x70]
cmp dword [rsp + 0x88], eax
jne 0x1402caa75
mov ebx, 1
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
add rsp, 0x50
pop rdi
pop rsi
pop rbx
ret
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
add rsp, 0x50
pop rdi
pop rsi
pop rbx
ret
xor eax, eax
add rsp, 0x50
pop rdi
pop rsi
pop rbx
ret
Function at 0x1402d62f0
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x70
mov qword [r11 - 0x60], 0xfffffffffffffffe
mov qword [r11 + 8], rbx
mov rax, qword [0x1403b8c08]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov r14, r9
mov rbx, r8
mov rsi, rdx
mov qword [r11 - 0x58], rdx
mov qword [r11 - 0x50], r9
mov rbp, qword [rsp + 0xc0]
xor r15d, r15d
mov dword [r11 - 0x68], r15d
mov qword [r11 - 0x40], r15
xor eax, eax
mov qword [rdx], rax
call fcn.14000b190
mov rcx, rax
test rax, rax
je 0x1402d64c0
mov rax, qword [rax]
call qword [rax + SafeArrayCopy]
add rax, 0x18
mov qword [rsi], rax
mov dword [rsp + 0x30], 1
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
mov r9d, 0xf003f
xor r8d, r8d
mov rdx, qword [r14]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea rdi, [r15 - 1]
test eax, eax
jne 0x1402d6481
mov qword [rsp + 0x60], r15
lea rax, [rsp + 0x64]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x60]
xor r8d, r8d
mov rdx, rbp
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1402d6470
mov eax, dword [rsp + 0x64]
test eax, eax
je 0x1402d6481
add eax, 0x10
mov dword [rsp + 0x50], eax
mov ecx, eax
lea rdx, [0x1403d8608]
call fcn.140172708
mov rbx, rax
test rax, rax
je 0x1402d6481
mov r8d, dword [rsp + 0x50]
xor edx, edx
mov rcx, rax
call fcn.140289490
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
xor r9d, r9d
xor r8d, r8d
mov rdx, rbp
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x1402d6432
mov rcx, rbx
call fcn.140171af0
jmp 0x1402d6481
mov rax, rdi
inc rax
cmp word [rbx + rax*2], 0
jne 0x1402d6435
test rax, rax
je 0x1402d6468
mov rax, rdi
nop word [rax + rax]
inc rax
cmp word [rbx + rax*2], 0
jne 0x1402d6450
mov r8d, eax
mov rdx, rbx
mov rcx, rsi
call fcn.140010860
mov rcx, rbx
call fcn.140171af0
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x1402d6481
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rdx, qword [r14]
sub rdx, 0x18
lock xadd dword [rdx + 0x10], edi
sub edi, 1
jg 0x1402d649c
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
mov rax, rsi
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140172190
mov rbx, qword [rsp + 0xa0]
add rsp, 0x70
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
mov ecx, 0x80004005
call fcn.14000adf0
int3
Function at 0x1402d64d0
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x40
mov rax, qword [0x1403b8c08]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rdi, qword [rsp + 0x90]
mov rbx, 0xffffffffffffffff
mov rax, rbx
mov qword [rsp + 0x30], r8
mov r15, r9
mov r14, r8
mov r10, rdx
nop
cmp word [rdi + rax*2 + 2], 0
lea rax, [rax + 1]
jne 0x1402d6510
mov rdx, qword [r14]
lea ebp, [rax*2 + 2]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x30], 0
mov r9d, 0xf003f
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov rcx, r10
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
xor esi, esi
test eax, eax
sete sil
test eax, eax
jne 0x1402d658d
mov rcx, qword [rsp + 0x30]
lea r9d, [rax + 1]
mov dword [rsp + 0x28], ebp
xor r8d, r8d
mov rdx, r15
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x30]
xor esi, esi
test eax, eax
sete sil
test rcx, rcx
je 0x1402d658d
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, qword [r14]
sub rdx, 0x18
lock xadd dword [rdx + 0x10], ebx
sub ebx, 1
jg 0x1402d65a8
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
mov eax, esi
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140172190
mov rbx, qword [rsp + 0x70]
add rsp, 0x40
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret