joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400fbc48
Capabilities:
Check if file exists
Delete file

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x440]
sub rsp, 0x540
mov rax, qword [0x1403ceac0]
xor rax, rsp
mov qword [rbp + 0x430], rax
mov rdi, rcx
xor ebx, ebx
cmp dword [rcx + 0x20], ebx
jne 0x1400fbc81
xor eax, eax
jmp 0x1400fbea6
lea rax, [rsp + 0x68]
mov qword [rsp + 0x60], rax
mov r8d, 3
lea rcx, [rsp + 0x60]
call fcn.1400fba64
nop
mov esi, 0x104
mov r8d, esi
xor edx, edx
lea rcx, [rbp + 0x320]
call fcn.1402b60e0
mov r8d, esi
xor edx, edx
lea rcx, [rbp + 0x210]
call fcn.1402b60e0
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.SHLWAPI.dll_PathFindFileNameA]
mov r8, rax
mov edx, esi
lea rcx, [rbp + 0x320]
lea rax, [rbp + 0x320]
sub r8, rax
lea rax, [rdx + 0x7ffffefa]
test rax, rax
je 0x1400fbd03
mov al, byte [r8 + rcx]
test al, al
je 0x1400fbd03
mov byte [rcx], al
inc rcx
sub rdx, 1
jne 0x1400fbce4
lea rax, [rcx - 1]
test rdx, rdx
cmovne rax, rcx
mov byte [rax], bl
mov r8, rsi
lea rcx, [rbp + 0x210]
lea rax, [rbp + 0x210]
mov r9, qword [rsp + 0x60]
sub r9, rax
lea rax, [r8 + 0x7ffffefa]
test rax, rax
je 0x1400fbd48
mov al, byte [r9 + rcx]
test al, al
je 0x1400fbd48
mov byte [rcx], al
inc rcx
sub r8, 1
jne 0x1400fbd29
lea rax, [rcx - 1]
test r8, r8
cmovne rax, rcx
mov byte [rax], bl
lea rcx, [rbp + 0x210]
call qword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
lea r8, [0x14030db04]
mov rdx, rsi
lea rcx, [rbp + 0x210]
call fcn.1400fbb9c
mov rax, qword [rdi + 8]
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x40], rcx
or dword [rsp + 0x38], 0xffffffff
lea rcx, [0x1400fbf10]
mov qword [rsp + 0x30], rcx
lea rcx, [0x1400fbec8]
mov qword [rsp + 0x28], rcx
lea rcx, [0x1400fbf18]
mov qword [rsp + 0x20], rcx
lea r9, [0x1400fbf08]
lea r8, [fcn.1400fbed0]
lea rdx, [0x1400fbf30]
lea rcx, [0x1400fbf20]
call rax
mov rsi, rax
test rax, rax
je 0x1400fbe90
xor edx, edx
mov r8d, 0x108
lea rcx, [rbp + 0x100]
call fcn.1402b60e0
mov rax, qword [rdi + 0x10]
lea rcx, [rbp + 0x100]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rbx
lea rcx, [0x1400fbf38]
mov qword [rsp + 0x20], rcx
xor r9d, r9d
lea r8, [rbp + 0x210]
lea rdx, [rbp + 0x320]
mov rcx, rsi
call rax
mov rax, qword [rdi + 0x18]
mov rcx, rsi
call rax
lea rcx, [rbp + 0x104]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x1400fbe90
cmp dword [rbp + 0x100], ebx
je 0x1400fbe82
lea rax, [rbp - 8]
mov qword [rbp - 0x10], rax
mov r8d, 3
lea rdx, [rbp + 0x104]
lea rcx, [rbp - 0x10]
call fcn.1400916b0
nop
mov rcx, qword [rbp - 0x10]
call fcn.1400f6c7c
mov ebx, eax
lea rax, [rbp - 8]
mov rcx, qword [rbp - 0x10]
cmp rcx, rax
je 0x1400fbe82
call fcn.1402ba464
lea rcx, [rbp + 0x104]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
nop
lea rax, [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
cmp rcx, rax
je 0x1400fbea4
call fcn.1402ba464
mov eax, ebx
mov rcx, qword [rbp + 0x430]
xor rcx, rsp
call fcn.140296f70
mov rbx, qword [rsp + 0x570]
add rsp, 0x540
pop rdi
pop rsi
pop rbp
ret
Function at 0x1401233d0
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov rax, qword [0x1403e0460]
mov ebx, r9d
mov rdi, r8
mov esi, edx
test rax, rax
je 0x1401233fb
call qword [case.0x1400dc821.0]
jmp 0x140123410
call fcn.14012339c
mov ecx, eax
mov r9d, ebx
mov r8, rdi
mov edx, esi
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x1401245d0
Capabilities:
Get hostname

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
mov rbx, rcx
xor esi, esi
mov dword [rsp + 0x20], esi
mov qword [rcx], rsi
mov qword [rcx + 0x10], rsi
mov qword [rcx + 0x18], 7
mov word [rcx], si
mov edx, 0x108
call fcn.14002bf30
mov rdx, rax
mov qword [rbx + 0x10], 0x104
mov qword [rbx + 0x18], 0x107
movzx eax, si
mov rdi, rdx
mov ecx, 0x104
rep stosw word [rdi], ax
mov word [rdx + 0x208], si
mov qword [rbx], rdx
mov dword [rsp + 0x20], 1
mov eax, dword [rbx + 0x10]
mov dword [rsp + 0x48], eax
mov rcx, rbx
cmp qword [rbx + 0x18], 8
jb 0x140124650
mov rcx, rdx
lea rdx, [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_GetComputerNameW]
mov r8, qword [rbx + 0x10]
mov rdi, rbx
mov r9, qword [rbx + 0x18]
cmp r9, 8
jb 0x14012466f
mov rdi, qword [rbx]
test r8, r8
je 0x1401246a4
mov rcx, r8
mov rax, rdi
mov rdx, rsi
cmp word [rdi], dx
je 0x140124694
cmp rcx, 1
je 0x140124697
dec rcx
add rax, 2
cmp word [rax], dx
jne 0x140124682
mov rdx, rax
test rdx, rdx
je 0x1401246a4
sub rdx, rdi
sar rdx, 1
jmp 0x1401246ab
mov rdx, 0xffffffffffffffff
cmp r8, rdx
jb 0x1401246d7
mov rax, rbx
cmp r9, 8
jb 0x1401246bc
mov rax, qword [rbx]
mov qword [rbx + 0x10], rdx
mov word [rax + rdx*2], si
mov rax, rbx
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
call fcn.140041a10
int3
Function at 0x1401246e0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 8], rcx
push rsi
push rdi
push r14
sub rsp, 0x30
mov esi, r8d
mov ebp, edx
mov rbx, rcx
xor r14d, r14d
mov dword [rsp + 0x20], r14d
mov qword [rcx], r14
mov qword [rcx + 0x10], r14
mov qword [rcx + 0x18], 7
mov word [rcx], r14w
mov edx, 0x108
call fcn.14002bf30
mov rdx, rax
mov qword [rbx + 0x10], 0x104
mov qword [rbx + 0x18], 0x107
movzx eax, r14w
mov rdi, rdx
mov ecx, 0x104
rep stosw word [rdi], ax
mov word [rdx + 0x208], r14w
mov qword [rbx], rdx
mov dword [rsp + 0x20], 1
mov rax, rbx
cmp qword [rbx + 0x18], 8
jb 0x140124766
mov rax, rdx
mov r9d, esi
mov r8d, ebp
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov r8, qword [rbx + 0x10]
mov rdi, rbx
mov r9, qword [rbx + 0x18]
cmp r9, 8
jb 0x14012478b
mov rdi, qword [rbx]
test r8, r8
je 0x1401247c2
mov rcx, r8
mov rax, rdi
mov rdx, r14
cmp word [rdi], dx
je 0x1401247b2
nop
cmp rcx, 1
je 0x1401247b5
dec rcx
add rax, 2
cmp word [rax], dx
jne 0x1401247a0
mov rdx, rax
test rdx, rdx
je 0x1401247c2
sub rdx, rdi
sar rdx, 1
jmp 0x1401247c9
mov rdx, 0xffffffffffffffff
cmp r8, rdx
jb 0x1401247f9
mov rax, rbx
cmp r9, 8
jb 0x1401247da
mov rax, qword [rbx]
mov qword [rbx + 0x10], rdx
mov word [rax + rdx*2], r14w
mov rax, rbx
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret
call fcn.140041a10
int3

Function at 0x140124950
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
mov rsi, r8
mov rbx, rdx
xor edi, edi
cmp qword [rcx + 0x18], 8
jb 0x140124971
mov rcx, qword [rcx]
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
mov rdx, rcx
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1401249a6
mov rdi, qword [rsp + 0x38]
test eax, eax
jne 0x1401249fd
mov dword [rsp + 0x50], eax
cmp qword [rbx + 0x18], 8
jb 0x1401249b8
mov rbx, qword [rbx]
mov dword [rsp + 0x68], 4
lea rax, [rsp + 0x68]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x30]
xor r8d, r8d
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1401249fd
cmp dword [rsp + 0x30], 4
jne 0x1401249fd
mov eax, dword [rsp + 0x50]
mov dword [rsi], eax
mov bl, 1
jmp 0x1401249ff
xor bl, bl
test rdi, rdi
je 0x140124a0d
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
movzx eax, bl
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x14012ba30
Capabilities:
Encode data using base64 via winapi

Disassembly:
push rbx
push rsi
push r14
push r15
sub rsp, 0x68
mov rax, qword [0x1403ceac0]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x30], rcx
xor esi, esi
mov r15, qword [rdx]
mov rbx, rcx
mov r14, qword [rdx + 8]
cmp r15, r14
jne 0x14012ba77
mov qword [rcx], rsi
mov qword [rcx + 0x10], rsi
mov qword [rcx + 0x18], 7
mov word [rcx], si
jmp 0x14012bb79
lea rax, [rsp + 0x30]
mov qword [rsp + 0xa0], rbp
sub r14d, r15d
mov qword [rsp + 0x60], rdi
mov edx, r14d
mov dword [rsp + 0x30], esi
xor r9d, r9d
mov qword [rsp + 0x20], rax
mov r8d, 0x40000001
mov rcx, r15
call qword [sym.imp.CRYPT32.dll_CryptBinaryToStringW]
mov eax, dword [rsp + 0x30]
dec eax
mov qword [rsp + 0x38], rsi
mov ebp, eax
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x50], 7
cmp rbp, 7
ja 0x14012baed
mov qword [rsp + 0x48], rbp
test eax, eax
je 0x14012bae1
movzx eax, si
lea rdi, [rsp + 0x38]
mov ecx, ebp
rep stosw word [rdi], ax
mov word [rsp + rbp*2 + 0x38], si
mov rdx, qword [rsp + 0x38]
jmp 0x14012bb30
mov eax, 0xa
lea rcx, [rsp + 0x38]
mov rdi, rbp
or rdi, 7
cmp rdi, rax
cmovb rdi, rax
lea rdx, [rdi + 1]
call fcn.14002bf30
mov rdx, rax
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x48], rbp
mov rdi, rdx
movzx eax, si
mov rcx, rbp
rep stosw word [rdi], ax
mov word [rdx + rbp*2], si
mov qword [rsp + 0x38], rdx
cmp qword [rsp + 0x50], 8
lea rax, [rsp + 0x30]
lea r9, [rsp + 0x38]
mov qword [rsp + 0x20], rax
cmovae r9, rdx
mov r8d, 0x40000001
mov edx, r14d
mov rcx, r15
call qword [sym.imp.CRYPT32.dll_CryptBinaryToStringW]
movups xmm0, xmmword [rsp + 0x38]
mov rdi, qword [rsp + 0x60]
movups xmm1, xmmword [rsp + 0x48]
mov rbp, qword [rsp + 0xa0]
movups xmmword [rbx], xmm0
movups xmmword [rbx + 0x10], xmm1
mov rax, rbx
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140296f70
add rsp, 0x68
pop r15
pop r14
pop rsi
pop rbx
ret

Function at 0x1401314d0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
xor bl, bl
mov qword [rsp + 0x20], rcx
cmp qword [rcx + 0x18], 8
mov rdi, rcx
jb 0x1401314ee
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140131503
mov ebx, eax
shr ebx, 4
not bl
and bl, 1
mov rcx, rdi
call fcn.14002ce60
movzx eax, bl
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x140135130
Capabilities:
Get file version info

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x50
mov r14, r9
mov r15, r8
mov r12, rdx
mov rsi, rcx
mov dword [rsp + 0x20], 1
cmp qword [rcx + 0x10], 0
je 0x1401352af
cmp qword [rcx + 0x18], 8
jb 0x14013516f
mov rcx, qword [rcx]
lea rdx, [rsp + 0x20]
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov ebp, eax
test eax, eax
je 0x1401352af
inc ebp
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x40], xmm0
mov dword [rsp + 0x80], 0
mov qword [rsp + 0x28], 0
mov ecx, ebp
call fcn.1402974ec
mov rbx, rax
mov qword [rsp + 0x30], rax
mov ecx, 0x18
call fcn.140296fc8
mov rdi, rax
mov qword [rsp + 0x38], rax
test rax, rax
je 0x1401351ec
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov dword [rax + 8], 1
mov dword [rax + 0xc], 1
lea rax, vtable.std::_Ref_count_void_.0
mov qword [rdi], rax
mov qword [rdi + 0x10], rbx
jmp 0x1401351ee
xor edi, edi
xor edx, edx
xor ecx, ecx
call fcn.140296f94
cmp qword [rsi + 0x18], 8
jb 0x140135201
mov rsi, qword [rsi]
mov r9, rbx
mov r8d, ebp
xor edx, edx
mov rcx, rsi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x140135275
lea r9, [rsp + 0x80]
lea r8, [rsp + 0x28]
lea rdx, [0x1403484fc]
mov rcx, rbx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x140135275
cmp dword [rsp + 0x80], 0
je 0x140135275
mov rcx, qword [rsp + 0x28]
cmp dword [rcx], 0xfeef04bd
jne 0x140135275
movzx eax, word [rcx + 0x12]
mov dword [r12], eax
movzx eax, word [rcx + 0x10]
mov dword [r15], eax
movzx eax, word [rcx + 0x16]
mov dword [r14], eax
movzx ecx, word [rcx + 0x14]
mov rax, qword [rsp + 0xa0]
mov dword [rax], ecx
mov sil, 1
jmp 0x140135278
xor sil, sil
test rdi, rdi
je 0x1401352a9
mov ebx, 0xffffffff
mov eax, ebx
lock xadd dword [rdi + 8], eax
cmp eax, 1
jne 0x1401352a9
mov rdx, qword [rdi]
mov rcx, rdi
call qword [rdx]
lock xadd dword [rdi + 0xc], ebx
cmp ebx, 1
jne 0x1401352a9
mov rdx, qword [rdi]
mov rcx, rdi
call qword [rdx + reloc.OLEAUT32.dll_VariantClear]
movzx eax, sil
jmp 0x1401352b1
xor al, al
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x140147e00
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rbp, r9
mov rbx, r8
mov rsi, rdx
mov rdi, rcx
test rcx, rcx
je 0x140147f70
test rbx, rbx
je 0x140147f70
mov rcx, rdx
call fcn.140147f90
cmp rbp, rax
jb 0x140147f70
xor edx, edx
lea r10, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
mov r9d, edx
cmp rsi, 2
jbe 0x140147ed9
lea r8, [rdi + 2]
nop dword [rax]
movzx eax, byte [r8 - 2]
add rdx, 4
shr rax, 2
add r9, 3
movzx eax, byte [rax + r10]
mov byte [rbx], al
movzx ecx, byte [r8 - 2]
movzx eax, byte [r8 - 1]
and ecx, 3
shr rax, 4
shl rcx, 4
or rcx, rax
movzx eax, byte [rcx + r10]
mov byte [rbx + 1], al
movzx ecx, byte [r8 - 1]
movzx eax, byte [r8]
and ecx, 0xf
shr rax, 6
shl rcx, 2
or rcx, rax
movzx eax, byte [rcx + r10]
mov byte [rbx + 2], al
movzx eax, byte [r8]
add r8, 3
and eax, 0x3f
movzx eax, byte [rax + r10]
mov byte [rbx + 3], al
mov rax, r8
sub rax, rdi
add rbx, 4
cmp rax, rsi
jb 0x140147e60
add rdi, r9
sub rsi, r9
test sil, 2
je 0x140147f34
movzx eax, byte [rdi]
shr rax, 2
movzx eax, byte [rax + r10]
mov byte [rbx], al
movzx ecx, byte [rdi]
movzx eax, byte [rdi + 1]
and ecx, 3
shr rax, 4
shl rcx, 4
or rcx, rax
movzx eax, byte [rcx + r10]
mov byte [rbx + 1], al
movzx eax, byte [rdi + 1]
and eax, 0xf
movzx eax, byte [r10 + rax*4]
mov byte [rbx + 2], al
mov byte [rbx + 3], 0x3d
add rbx, 4
add rdx, 4
mov byte [rbx], 0
lea rax, [rdx + 1]
jmp 0x140147f72
test sil, 1
je 0x140147f67
movzx eax, byte [rdi]
shr rax, 2
movzx eax, byte [rax + r10]
mov byte [rbx], al
movzx eax, byte [rdi]
and eax, 3
add rax, rax
movzx eax, byte [r10 + rax*8]
mov byte [rbx + 1], al
mov word [rbx + 2], 0x3d3d
add rbx, 4
add rdx, 4
mov byte [rbx], 0
lea rax, [rdx + 1]
jmp 0x140147f72
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140165680
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rbx
push rsi
push rdi
push r12
sub rsp, 0x38
mov rsi, qword [rcx + 0x98]
mov rbx, rcx
mov rdi, qword [rcx + 0x10]
mov r12, qword [rcx]
test rsi, rsi
je 0x14016587d
mov qword [rsp + 0x60], rbp
mov qword [rsp + 0x68], r13
xor r13d, r13d
mov qword [rsp + 0x70], r14
mov qword [rsp + 0x30], r15
nop dword [rax + rax]
movsxd rbp, dword [rsi + 0x10]
movzx eax, byte [rbx + 0x1f]
mov r14d, dword [rsi + 0x14]
shl rbp, 5
add rbp, qword [r12 + 0x20]
test al, al
jne 0x1401656e2
inc dword [rbx + 0x38]
mov r15d, dword [rbx + 0x38]
jmp 0x1401656f2
dec al
movzx eax, al
mov byte [rbx + 0x1f], al
mov r15d, dword [rbx + rax*4 + 0xd0]
movsxd rcx, dword [rdi + 0x90]
lea r8d, [r14 + 2]
lea edx, [rcx + 7]
cmp dword [rdi + 0x94], ecx
jg 0x14016571f
mov r9d, edx
mov dword [rsp + 0x20], r14d
mov edx, reloc.WS2_32.dll_getservbyname
mov rcx, rdi
call fcn.14017e5d0
jmp 0x14016574d
lea eax, [rcx + 1]
mov dword [rdi + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rdi + 0x88]
mov dword [rax + rcx*8], reloc.WS2_32.dll_getservbyname
mov dword [rax + rcx*8 + 4], r8d
mov dword [rax + rcx*8 + 8], edx
mov dword [rax + rcx*8 + 0xc], r14d
mov qword [rax + rcx*8 + 0x10], r13
mov r9, qword [rbp + 0x18]
xor edx, edx
mov r8d, dword [rsi + 0x10]
mov rcx, rbx
mov dword [rsp + 0x20], 0x63
mov r9, qword [r9 + 0x68]
call fcn.1401b9b90
mov eax, dword [rdi + 0x90]
add eax, 5
cmp eax, dword [rdi + 0x94]
jle 0x140165791
mov edx, 5
mov rcx, rdi
call fcn.14017e640
test eax, eax
jne 0x140165869
movsxd rax, dword [rdi + 0x90]
lea rcx, [rax + rax*2]
mov rax, qword [rdi + 0x88]
mov dword [rax + rcx*8 + 8], 2
mov byte [rax + rcx*8], getprotobynumber
mov dword [rax + rcx*8 + 4], r13d
lea rdx, [rax + rcx*8]
mov eax, dword [rdi + 0x90]
mov dword [rdx + 0xc], r13d
lea ecx, [r14 + 1]
mov byte [rdx + 1], r13b
add eax, 2
mov dword [rdx + 8], eax
lea eax, [r14 - 1]
mov qword [rdx + 0x10], r13
mov word [rdx + 2], r13w
mov qword [rdx + 0x18], 0x7b
mov qword [rdx + 0x20], r13
mov qword [rdx + 0x28], r13
mov qword [rdx + 0x30], 0x5d
mov qword [rdx + 0x38], 2
mov qword [rdx + 0x40], r13
mov qword [rdx + 0x48], 0x7c
mov qword [rdx + 0x50], r13
mov qword [rdx + 0x58], r13
mov qword [rdx + 0x60], 0x76
mov qword [rdx + 0x68], r13
mov qword [rdx + 0x70], r13
add dword [rdi + 0x90], 5
mov dword [rdx + 0x34], eax
mov eax, 8
mov word [rdx + 0x4a], ax
mov dword [rdx + 4], ecx
mov dword [rdx + 0x20], ecx
mov dword [rdx + 0x3c], r15d
mov dword [rdx + 0x50], r15d
mov dword [rdx + 0x54], ecx
test r15d, r15d
je 0x14016585d
movzx eax, byte [rbx + 0x1f]
cmp al, 8
jae 0x14016585d
mov dword [rbx + rax*4 + 0xd0], r15d
inc byte [rbx + 0x1f]
mov rsi, qword [rsi]
test rsi, rsi
jne 0x1401656c0
mov r15, qword [rsp + 0x30]
mov r13, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x60]
mov r14, qword [rsp + 0x70]
add rsp, 0x38
pop r12
pop rdi
pop rsi
pop rbx
ret
Function at 0x140175b20
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rdi
push r14
sub rsp, 0x68
movzx eax, byte [rdx]
mov r14, rdx
mov rdi, rcx
cmp al, 0xaf
jne 0x140175b39
movzx eax, byte [rdx + 2]
cmp al, 0xb0
jne 0x140175b43
mov rax, qword [rdx + 0x20]
jmp 0x140175b53
cmp al, 0x89
jne 0x140175cd7
mov rax, qword [rdx + 0x20]
mov rax, qword [rax + 0x20]
movsxd rcx, dword [rax]
cmp ecx, 1
je 0x140175cd7
mov dword [r8], 0
cmp byte [rdx], 0x89
jne 0x140175b7a
mov rcx, rdi
add rsp, 0x68
pop r14
pop rdi
jmp fcn.14019f530
mov eax, dword [rdi + 0x38]
mov qword [rsp + 0x60], r12
mov r12, rcx
mov qword [rsp + 0x58], r13
lea r13d, [rax + 1]
add eax, ecx
mov dword [rsp + 0x88], r13d
mov dword [rdi + 0x38], eax
test ecx, ecx
jle 0x140175cc2
mov qword [rsp + 0x80], rbx
lea rcx, [0x1401c9e00]
mov qword [rsp + 0x90], rbp
mov ebp, r13d
mov qword [rsp + 0x50], r15
lea r13, [fcn.140176b30]
xor r15d, r15d
mov qword [rsp + 0x98], rsi
lea edx, [r15 + 2]
nop dword [rax + rax]
cmp byte [rdi + 0x23], 0
mov rax, qword [r14 + 0x20]
mov rbx, qword [rax + r15 + 8]
je 0x140175c30
mov word [rsp + 0x44], dx
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x30], rcx
mov dword [rsp + 0x48], 0
test rbx, rbx
je 0x140175c20
mov rdx, rbx
lea rcx, [rsp + 0x20]
call fcn.1401f73e0
cmp word [rsp + 0x44], 0
je 0x140175c30
mov r8d, ebp
mov rdx, rbx
mov rcx, rdi
call fcn.1401a8770
jmp 0x140175c70
mov rsi, qword [rdi]
test rbx, rbx
je 0x140175c4c
xor r9d, r9d
xor r8d, r8d
mov rdx, rbx
mov rcx, rsi
call fcn.140175fb0
mov rbx, rax
cmp byte [rsi + 0x63], 0
jne 0x140175c60
mov r8d, ebp
mov rdx, rbx
mov rcx, rdi
call fcn.1401a6cd0
test rbx, rbx
je 0x140175c70
mov rdx, rbx
mov rcx, rsi
call fcn.1401aa420
inc ebp
lea rcx, [0x1401c9e00]
add r15, 0x20
mov edx, 2
sub r12, 1
jne 0x140175be0
mov eax, dword [rsp + 0x88]
mov r15, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x98]
mov rbp, qword [rsp + 0x90]
mov rbx, qword [rsp + 0x80]
mov r12, qword [rsp + 0x60]
mov r13, qword [rsp + 0x58]
add rsp, 0x68
pop r14
pop rdi
ret
mov r12, qword [rsp + 0x60]
mov eax, r13d
mov r13, qword [rsp + 0x58]
add rsp, 0x68
pop r14
pop rdi
ret
mov rcx, rdi
add rsp, 0x68
pop r14
pop rdi
jmp fcn.1401a9d30
Function at 0x14018ea10
Capabilities:
Reference sql statements

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
mov r14d, dword [rsp + 0x70]
mov ebx, r8d
mov dword [rax - 0x18], r14d
mov rbp, r9
mov qword [rax - 0x20], r9
mov rdi, rdx
mov r9, rdx
mov byte [rcx + 0x1c], 1
mov r8, rdx
mov dword [rax - 0x28], ebx
lea rdx, str.SELECT_1_FROM___w_.sqlite_master_WHERE_name_NOT_LIKE_sqliteX____ESCAPE_X_AND_sql_NOT_LIKE_create_virtual___AND_sqlite_rename_test__Q__sql__type__name___d___Q___d_NULL
mov rsi, rcx
call fcn.1401b9830
test ebx, ebx
jne 0x14018ea79
mov r9, rbp
mov dword [rsp + 0x20], r14d
mov r8, rdi
lea rdx, str.SELECT_1_FROM_temp.sqlite_master_WHERE_name_NOT_LIKE_sqliteX____ESCAPE_X_AND_sql_NOT_LIKE_create_virtual___AND_sqlite_rename_test__Q__sql__type__name__1___Q___d_NULL
mov rcx, rsi
call fcn.1401b9830
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x1401acc80
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbx
push rsi
push rdi
push r14
sub rsp, 0x28
xor r11d, r11d
mov rdi, r8
mov ebx, r11d
mov r14, rdx
mov rsi, rcx
cmp dword [rcx + 0x28], ebx
jle 0x1401acd89
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x60], r12
lea r12, str.main
mov qword [rsp + 0x20], r15
lea r15, [0x1403186e0]
nop
mov rax, qword [rsi + 0x20]
mov r10d, ebx
xor r10d, 1
cmp ebx, 2
cmovge r10d, ebx
movsxd rcx, r10d
shl rcx, 5
mov rbp, qword [rcx + rax + 0x18]
test rdi, rdi
je 0x1401acd01
mov r8, qword [rcx + rax]
mov r9, rdi
sub r9, r8
nop dword [rax]
movzx ecx, byte [r8]
movzx eax, byte [r9 + r8]
cmp ecx, eax
jne 0x1401acd3c
test ecx, ecx
jne 0x1401acd4a
lea rcx, [rbp + 0x20]
xor r8d, r8d
mov rdx, r14
call fcn.140177ba0
mov r11, qword [rax + 0x10]
test r11, r11
jne 0x1401acd20
inc ebx
cmp ebx, dword [rsi + 0x28]
jl 0x1401accc0
mov r12, qword [rsp + 0x60]
mov rax, r11
mov rbp, qword [rsp + 0x58]
mov r15, qword [rsp + 0x20]
add rsp, 0x28
pop r14
pop rdi
pop rsi
pop rbx
ret
movzx edx, byte [rax + r15]
movzx ecx, byte [rcx + r15]
cmp ecx, edx
jne 0x1401acd4f
inc r8
jmp 0x1401accf0
test r10d, r10d
jne 0x1401acd19
mov r9, rdi
mov rax, r12
sub r9, r12
nop dword [rax]
movzx edx, byte [rax]
movzx ecx, byte [r9 + rax]
cmp edx, ecx
jne 0x1401acd75
test edx, edx
je 0x1401acd01
inc rax
jmp 0x1401acd60
movzx r8d, byte [rcx + r15]
movzx edx, byte [rdx + r15]
cmp edx, r8d
jne 0x1401acd19
inc rax
jmp 0x1401acd60
mov rax, r11
add rsp, 0x28
pop r14
pop rdi
pop rsi
pop rbx
ret
Function at 0x1401f2f60
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.1401b8f80
mov rbx, rax
test rax, rax
jne 0x1401f2f9e
lea eax, [rbx + 7]
jmp 0x1401f3020
cmp byte [reloc.WS2_32.dll_accept], 0
je 0x1401f2ff2
mov rax, qword [0x1403cb660]
test rax, rax
je 0x1401f2fbe
mov ecx, 0xc8
call rax
test eax, eax
jne 0x1401f2ff2
lea rax, [rbx + 8]
mov qword [rbx + 0x10], rbp
mov qword [rsp + 0x28], rax
lea r8, [0x1401cbe30]
mov r9, rbx
mov dword [rsp + 0x20], 0
xor edx, edx
mov qword [rbx + 0x18], rsi
xor ecx, ecx
call fcn.1402c7870
mov qword [rbx], rax
test rax, rax
jne 0x1401f3002
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbx], xmm0
movups xmmword [rbx + 0x10], xmm0
mov qword [rbx + 0x20], rax
cmp qword [rbx + 0x10], 0
jne 0x1401f301b
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 0x14020cdb0
Capabilities:
Initialize winsock library

Disassembly:
push rbx
lea r9, [rcx + 0x140]
mov r11, r8
cmp qword [r9 + 0x18], 8
mov rbx, rdx
mov rax, qword [r9 + 0x10]
mov r10, rcx
jb 0x14020cdd0
mov r9, qword [r9]
cmp rax, 1
jne 0x14020ce16
movzx ecx, word [r9]
mov r8d, getprotobynumber
mov rdx, rax
lea rax, case.0x1400bf494.19
cmp cx, r8w
jb 0x14020ce16
sub r9, rax
cmp cx, r8w
ja 0x14020ce16
cmp rdx, 1
je 0x14020ce25
movzx ecx, word [r9 + rax + 2]
add rax, 2
dec rdx
movzx r8d, word [rax]
cmp cx, r8w
jae 0x14020cdf7
mov r8, r11
mov rdx, rbx
mov rcx, r10
pop rbx
jmp fcn.14020aad0
lea r9, [r10 + 0x160]
cmp qword [r9 + 0x18], 8
mov rax, qword [r9 + 0x10]
jb 0x14020ce3a
mov r9, qword [r9]
cmp rax, 2
jne 0x14020ce16
movzx ecx, word [r9]
mov r8d, 0x56
mov rdx, rax
lea rax, [0x1403256bc]
cmp cx, r8w
jb 0x14020ce16
sub r9, rax
cmp cx, r8w
ja 0x14020ce16
cmp rdx, 1
je 0x14020ce8f
movzx ecx, word [r9 + rax + 2]
add rax, 2
dec rdx
movzx r8d, word [rax]
cmp cx, r8w
jae 0x14020ce61
mov r8, r11
mov rdx, rbx
mov rcx, r10
pop rbx
jmp fcn.14020aad0
mov r8, r11
mov rdx, rbx
mov rcx, r10
pop rbx
jmp fcn.14020bab0