joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400816b0
Capabilities:
Get common file path
Initialize winsock library

Disassembly:
sub rsp, 0x1e8
mov rax, qword [0x140308708]
xor rax, rsp
mov qword [rsp + 0x1d0], rax
test cl, 2
je 0x140081716
mov ecx, 0x202
lea rdx, [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x1400816f9
movzx eax, word [rsp + 0x30]
cmp al, 2
jne 0x1400816f3
shr ax, 8
cmp al, 2
je 0x140081716
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 2
mov rcx, qword [rsp + 0x1d0]
xor rcx, rsp
call fcn.14024f940
add rsp, 0x1e8
ret
call fcn.14005abe0
test eax, eax
jne 0x140081915
mov qword [rsp + 0x200], rsi
lea rcx, [0x1402c36c8]
mov qword [rsp + 0x208], rdi
xor esi, esi
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rdi, rax
test rax, rax
jne 0x140081756
mov qword [0x1403316e8], rsi
jmp 0x1400818d2
mov qword [rsp + 0x1f0], rbx
lea rdx, [0x1402c9fa8]
mov rcx, rdi
mov qword [rsp + 0x1f8], rbp
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rbx, str.iphlpapi.dll
mov rbp, rax
mov rcx, rbx
lea rdx, [0x1402ba888]
call fcn.140057420
test rax, rax
je 0x1400817ba
mov rcx, rbx
test rbp, rbp
je 0x1400817ac
xor edx, edx
lea r8d, [rdx + 8]
call rbp
mov rsi, rax
jmp 0x14008189a
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
jmp 0x14008189a
test rbp, rbp
je 0x1400817e9
lea rdx, str.AddDllDirectory
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1400817e9
xor edx, edx
mov r8d, 0x800
mov rcx, rbx
call rbp
mov rsi, rax
jmp 0x14008189a
xor edx, edx
mov qword [rsp + 0x1e0], r14
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov r14d, eax
test eax, eax
je 0x140081892
lea ecx, [rax + 1]
add rcx, 0xc
call qword [fcn.14007bf9c]
mov rdi, rax
test rax, rax
je 0x140081889
mov edx, r14d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x140081889
mov rcx, 0xffffffffffffffff
mov rax, rcx
cmp byte [rdi + rax + 1], sil
lea rax, [rax + 1]
jne 0x140081835
mov word [rax + rdi], 0x5c
inc rcx
cmp byte [rdi + rcx], sil
jne 0x140081846
mov rdx, rdi
sub rdx, rbx
add rdx, rcx
nop dword [rax + rax]
movzx eax, byte [rbx]
mov byte [rdx + rbx], al
lea rbx, [rbx + 1]
test al, al
jne 0x140081860
mov rcx, rdi
test rbp, rbp
je 0x140081880
xor edx, edx
lea r8d, [rdx + 8]
call rbp
jmp 0x140081886
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
mov rcx, rdi
call qword [fcn.140034090]
mov r14, qword [rsp + 0x1e0]
mov rbp, qword [rsp + 0x1f8]
mov rbx, qword [rsp + 0x1f0]
mov qword [0x1403316e8], rsi
test rsi, rsi
je 0x1400818d2
lea rdx, str.if_nametoindex
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1400818d2
mov qword [0x1403316e0], rax
xor edx, edx
mov dword [rsp + 0x20], 3
mov r9d, 2
xor r8d, r8d
lea ecx, [rdx + 6]
call fcn.1400963b0
test al, al
lea rcx, [0x140330618]
setne byte [0x140330d10]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
mov rdi, qword [rsp + 0x208]
xor eax, eax
mov rsi, qword [rsp + 0x200]
mov rcx, qword [rsp + 0x1d0]
xor rcx, rsp
call fcn.14024f940
add rsp, 0x1e8
ret
Function at 0x140085680
Capabilities:
Encrypt data using salsa20 or chacha

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x20
mov rdi, rdx
mov ebx, ecx
call fcn.1400d7800
test eax, eax
jne 0x14008581d
mov qword [rsp + 0x30], rbp
xor ebp, ebp
cmp byte [reloc.WS2_32.dll_accept], bpl
mov qword [rsp + 0x38], rsi
jne 0x1400856b5
mov esi, ebp
jmp 0x1400856d1
mov ecx, 5
call qword [0x140309580]
mov rsi, rax
test rax, rax
je 0x1400856d1
mov rcx, rax
call qword [0x140309590]
test ebx, ebx
jle 0x1400857ff
test rdi, rdi
je 0x1400857ff
cmp dword [0x140332c30], ebp
jne 0x140085788
xor ecx, ecx
call fcn.1400806b0
movups xmm0, xmmword [str.expand_32_byte_k]
movaps xmmword [0x140332c30], xmm0
test rax, rax
jne 0x140085728
xorps xmm0, xmm0
mov qword [0x140332c60], rax
movups xmmword [0x140332c40], xmm0
mov dword [0x140332c68], eax
movups xmmword [0x140332c50], xmm0
jmp 0x14008576c
mov ecx, dword [0x1403096c0]
test ecx, ecx
je 0x14008575a
xorps xmm0, xmm0
xor eax, eax
movups xmmword [0x140332c40], xmm0
mov dword [0x140332c40], ecx
movups xmmword [0x140332c50], xmm0
mov qword [0x140332c60], rax
mov dword [0x140332c68], eax
jmp 0x14008576c
lea r8, [0x140332c40]
mov edx, 0x2c
mov rcx, rax
call qword [rax + 0x68]
mov eax, dword [0x140332c60]
xor cl, cl
mov byte [0x140332cb0], cl
mov dword [0x140332c6c], eax
mov dword [0x140332c60], ebp
jmp 0x14008578f
movzx ecx, byte [0x140332cb0]
movzx eax, cl
lea rbp, [0x140332c70]
cmp ebx, eax
jle 0x1400857e1
nop dword [rax]
test cl, cl
je 0x1400857bf
movzx r8d, cl
mov rdx, rbp
mov rcx, rdi
call fcn.140290ef0
movzx ecx, byte [0x140332cb0]
sub ebx, ecx
add rdi, rcx
inc dword [0x140332c60]
lea rdx, [0x140332c30]
mov rcx, rbp
call fcn.14010fec0
mov cl, 0x40
mov byte [0x140332cb0], cl
cmp ebx, 0x40
jg 0x1400857a0
movzx eax, cl
mov rcx, rdi
sub eax, ebx
movsxd r8, ebx
movsxd rdx, eax
add rdx, rbp
call fcn.140290ef0
sub byte [0x140332cb0], bl
jmp 0x140085805
mov dword [0x140332c30], ebp
test rsi, rsi
je 0x140085813
mov rcx, rsi
call qword [0x1403095a0]
mov rsi, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140096aec
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140096b36
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140096b36
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140096b36
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140096b36
cmp dword [rcx + 0x84], 0xe
jbe 0x140096b36
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140096b38
xor al, al
add rsp, 0x28
ret
Function at 0x1400a1b80
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x40
mov r14, rdx
mov ebp, ecx
xor edi, edi
cmp qword [rdx + 0x18], 0x10
jb 0x1400a1bb4
mov rbx, qword [rdx + 0x10]
mov rax, rbx
mov rcx, qword [rdx]
jmp 0x1400a1bbe
mov rax, qword [rdx + 0x10]
mov rbx, rax
mov rcx, r14
mov rdx, rdi
add rcx, rdx
sub rbx, rax
mov r8, rbx
sub r8, rdx
inc r8
lea rdx, [rcx + rax]
call fcn.140290ef0
mov qword [r14 + 0x10], rbx
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x20], xmm0
mov qword [rsp + 0x30], rdi
cmp ebp, 0xa
ja case.default.0x1400a1c05
lea rdx, [0x140000000]
mov ecx, dword [rdx + rbp*4 + 0xa1df0]
add rcx, rdx
jmp rcx
lea r8, [0x14032edf8]
mov r9d, 0x18
jmp 0x1400a1c92
lea r8, [0x14032ee90]
jmp 0x1400a1c8c
lea r8, [0x14032eeb0]
mov r9d, 0x18
jmp 0x1400a1c92
lea r8, [0x14032ef28]
jmp 0x1400a1c8c
lea r8, [0x14032ef08]
jmp 0x1400a1c8c
lea r8, [0x14032ee28]
jmp 0x1400a1c8c
lea r8, [0x14032eec8]
mov r9d, 0x28
jmp 0x1400a1c92
lea r8, [0x14032ee10]
mov r9d, 0x18
jmp 0x1400a1c92
lea r8, [0x14032eef0]
mov r9d, 0x18
jmp 0x1400a1c92
lea r8, [0x14032ee48]
mov r9d, 0x28
jmp 0x1400a1c92
lea r8, [0x14032ee70]
mov r9d, 0x20
xor edx, edx
lea rcx, [rsp + 0x20]
call fcn.1400ed440
mov r9, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x20]
sub r9, rbx
lea rcx, [r9 - 1]
test rcx, rcx
je 0x1400a1cce
nop dword [rax]
nop dword [rax + rax]
movzx eax, byte [rbx + rcx - 1]
sub byte [rbx + rcx], al
sub rcx, 1
jne 0x1400a1cc0
test r9, r9
je 0x1400a1d5d
cmp r9, 0x40
jb 0x1400a1d40
mov rcx, r9
and rcx, 0xffffffffffffffc0
movdqa xmm2, xmmword [str.7777777777777777]
lea rax, [rbx + 0x20]
movdqu xmm0, xmmword [rax - 0x20]
movdqa xmm1, xmm2
xorps xmm1, xmm0
movdqu xmmword [rax - 0x20], xmm1
movdqu xmm0, xmmword [rax - 0x10]
movdqa xmm1, xmm2
xorps xmm1, xmm0
movdqu xmmword [rax - 0x10], xmm1
movdqu xmm0, xmmword [rax]
movdqa xmm1, xmm2
xorps xmm1, xmm0
movdqu xmmword [rax], xmm1
movdqu xmm0, xmmword [rax + 0x10]
xorps xmm0, xmm2
movdqu xmmword [rax + 0x10], xmm0
add rdi, 0x40
lea rax, [rax + 0x40]
cmp rdi, rcx
jb 0x1400a1cf0
cmp rdi, r9
jae 0x1400a1d5d
lea rax, [rbx + rdi]
mov rcx, r9
sub rcx, rdi
nop word [rax + rax]
xor byte [rax], 0x37
lea rax, [rax + 1]
sub rcx, 1
jne 0x1400a1d50
lea rdx, [rbx + 8]
mov r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp byte [rdx + r8], 0
jne 0x1400a1d70
lea rax, [r9 - 8]
cmp r8, rax
jb 0x1400a1d87
lea r8, [r9 - 9]
mov rcx, r14
call fcn.140103aa0
mov rdi, qword [rsp + 0x30]
jmp 0x1400a1d99
mov rbx, rdi
test rbx, rbx
je 0x1400a1dcd
sub rdi, rbx
cmp rdi, 0x1000
jb 0x1400a1dc2
add rdi, 0x27
mov rcx, qword [rbx - 8]
sub rbx, rcx
lea rax, [rbx - 8]
cmp rax, 0x1f
ja 0x1400a1de8
mov rbx, rcx
mov rdx, rdi
mov rcx, rbx
call fcn.140086a30
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
call fcn.140037b28
int3
Function at 0x1400a55bc
Capabilities:
Query environment variable

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
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x1400a55ec
xor eax, eax
jmp 0x1400a56af
mov rbp, rbx
cmp word [rax], si
je 0x1400a5611
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1400a55f8
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1400a55f4
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.140056804
movsxd r14, eax
test eax, eax
jne 0x1400a564f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1400a55e5
mov rcx, r14
call fcn.1400235bc
mov rdi, rax
test rax, rax
jne 0x1400a5668
xor ecx, ecx
call fcn.1400422b8
jmp 0x1400a5644
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.140056804
test eax, eax
jne 0x1400a5699
mov rcx, rdi
call fcn.1400422b8
jmp 0x1400a56a3
xor ecx, ecx
call fcn.1400422b8
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
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 0x1400ab184
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.14001e338
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x1400ab20e
cmp byte [rbp - 0x21], r15b
je 0x1400ab209
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x1400ab244
call fcn.140073b88
test eax, eax
jne 0x1400ab230
cmp byte [rbp - 0x21], r15b
je 0x1400ab228
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x1400ab244
cmp byte [rbp - 0x21], r15b
je 0x1400ab241
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.140019bcc
test eax, eax
jne 0x1400ab2e4
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14001e338
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1400ab283
cmp byte [rbp - 0x21], r15b
je 0x1400ab2b8
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1400ab2b8
call fcn.140073b88
test eax, eax
jne 0x1400ab2a4
cmp byte [rbp - 0x21], r15b
je 0x1400ab29d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x1400ab2b8
cmp byte [rbp - 0x21], r15b
je 0x1400ab2b5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.140019bcc
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x1400ab2e4
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x1400ab2e7
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x1400ab2f5
mov rcx, rdi
call fcn.1400422b8
cmp byte [rbp + 0x3f], r15b
je 0x1400ab304
mov rcx, qword [rbp + 0x27]
call fcn.1400422b8
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x1400b94e0
Capabilities:
Create new key via cryptacquirecontext
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x140308708]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rbp, r8
mov dword [rsp + 0x20], 0xf0000040
mov rsi, rdx
mov rdi, rcx
xor r8d, r8d
lea rcx, [rsp + 0x38]
xor edx, edx
mov r9d, 0x18
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x1400b952c
mov eax, 0x1b
jmp 0x1400b95fe
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x40]
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov edx, 0x800c
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x1400b9570
mov rcx, qword [rsp + 0x38]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, 2
mov qword [rsp + 0x38], 0
jmp 0x1400b95fe
mov rcx, rbp
call fcn.140019770
mov rcx, qword [rsp + 0x40]
xor r9d, r9d
mov r8d, eax
mov rdx, rsi
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
mov rcx, qword [rsp + 0x40]
lea r9, [rsp + 0x30]
xor r8d, r8d
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x20], 0
lea edx, [r8 + 2]
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
cmp dword [rsp + 0x30], 0x20
jne 0x1400b95da
mov rcx, qword [rsp + 0x40]
lea r9, [rsp + 0x30]
mov r8, rdi
mov dword [rsp + 0x20], 0
mov edx, 2
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x1400b95ea
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x1400b95fc
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14024f940
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400c2cfc
Capabilities:
Parse pe header

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

Function at 0x1400c79b4
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x1400c7a3b
mov rsi, rbx
cmp word [rax], bp
je 0x1400c79fa
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1400c79e4
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1400c79e0
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1400235bc
mov rdi, rax
test rax, rax
je 0x1400c7a28
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140290ef0
mov rbp, rdi
xor ecx, ecx
call fcn.1400422b8
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400d8070
Capabilities:
Generate random numbers via winapi

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
mov rbx, rdx
mov edx, 0x2b
mov rsi, r8
mov rbp, rcx
test r8, r8
je 0x1400d814b
xor r14d, r14d
nop dword [rax]
mov edi, 4
lea rdx, [rsp + 0x50]
cmp rsi, rdi
mov r8d, 4
mov rcx, rbp
cmovb rdi, rsi
call fcn.14002e0d0
cmp eax, 4
je 0x1400d80c8
mov edx, eax
jmp 0x1400d80f5
cmp byte [0x1403315f4], r14b
jne 0x1400d80ff
mov r9d, 2
mov dword [rsp + 0x50], r14d
lea rdx, [rsp + 0x50]
xor ecx, ecx
lea r8d, [r9 + 2]
call sub.bcrypt.dll_BCryptGenRandom
neg eax
sbb edx, edx
and edx, 2
mov eax, edx
test eax, eax
jne 0x1400d814d
mov eax, dword [rsp + 0x50]
jmp 0x1400d811e
imul eax, dword [0x1403315f0], 0x41c64e6d
mov edx, r14d
add eax, 0x3039
mov dword [0x1403315f0], eax
ror eax, 0x10
mov dword [rsp + 0x50], eax
test rdi, rdi
je 0x1400d8142
sub rsi, rdi
nop word [rax + rax]
mov byte [rbx], al
inc rbx
shr eax, 8
sub rdi, 1
jne 0x1400d8130
mov dword [rsp + 0x50], eax
test rsi, rsi
jne 0x1400d80a0
mov eax, edx
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret
Function at 0x140103160
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140103188
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140103188
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x14012b980
Capabilities:
Resolve function by parsing pe exports

Disassembly:
cmp byte [rcx + 0x11], 0
mov r9, rcx
jne 0x14012b9d7
movzx eax, byte [rcx + 0x10]
test al, al
je 0x14012b9d7
cmp al, 1
jne 0x14012b999
test edx, edx
jne 0x14012b9d7
mov r10, qword [rcx + 8]
test r8, r8
je 0x14012b9b2
mov rax, qword [r10 + 0x18]
mov rcx, qword [rax + 0x50]
mov eax, dword [rcx + 0x28]
bswap eax
mov dword [r8], eax
test edx, edx
je 0x14012b9d4
mov rax, qword [r9]
mov rcx, qword [r10]
mov edx, dword [rax + 0x2d0]
cmp edx, dword [rcx + 0x80]
jle 0x14012b9d4
cmp byte [rcx + 0xa], 0
jne fcn.140123570
xor eax, eax
ret
jmp fcn.14012b710
Function at 0x14013f6e0
Capabilities:
Encode data using xor

Disassembly:
mov rax, qword [rcx + 8]
test rax, rax
je 0x14013f70f
lea r8d, [rdx + 1]
nop dword [rax]
mov ecx, dword [rax + 0xc8]
mov edx, r8d
xor edx, ecx
and edx, 3
xor edx, ecx
mov dword [rax + 0xc8], edx
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x14013f6f0
ret
Function at 0x140158a30
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rdi
push r15
sub rsp, 0x68
mov r15, rdx
mov rdi, rcx
movzx edx, byte [rdx]
movzx eax, dl
cmp dl, 0xb0
jne 0x140158a4e
movzx eax, byte [r15 + 2]
cmp al, 0xb1
jne 0x140158a58
mov rcx, qword [r15 + 0x20]
jmp 0x140158a68
cmp al, 0x8a
jne 0x140158be7
mov rax, qword [r15 + 0x20]
mov rcx, qword [rax + 0x20]
movsxd rcx, dword [rcx]
cmp ecx, 1
je 0x140158be7
mov dword [r8], 0
cmp dl, 0x8a
jne 0x140158a92
mov rdx, r15
mov rcx, rdi
add rsp, 0x68
pop r15
pop rdi
jmp fcn.140156920
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 0x140158bd2
mov qword [rsp + 0x80], rbx
lea rcx, [0x1401547c0]
mov qword [rsp + 0x90], rbp
mov ebp, r13d
mov qword [rsp + 0x50], r14
lea r13, [fcn.1401549b0]
xor r14d, r14d
mov qword [rsp + 0x98], rsi
lea edx, [r14 + 2]
cmp byte [rdi + 0x23], 0
mov rax, qword [r15 + 0x20]
mov rbx, qword [r14 + rax + 8]
je 0x140158b40
mov word [rsp + 0x44], dx
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x30], rcx
mov dword [rsp + 0x48], 0
test rbx, rbx
je 0x140158b30
mov rdx, rbx
lea rcx, [rsp + 0x20]
call fcn.14014c9b0
cmp word [rsp + 0x44], 0
je 0x140158b40
mov r8d, ebp
mov rdx, rbx
mov rcx, rdi
call fcn.14015aa80
jmp 0x140158b80
mov rsi, qword [rdi]
test rbx, rbx
je 0x140158b5c
xor r9d, r9d
xor r8d, r8d
mov rdx, rbx
mov rcx, rsi
call fcn.1401531a0
mov rbx, rax
cmp byte [rsi + 0x67], 0
jne 0x140158b70
mov r8d, ebp
mov rdx, rbx
mov rcx, rdi
call fcn.14015ad90
test rbx, rbx
je 0x140158b80
mov rdx, rbx
mov rcx, rsi
call fcn.140152e40
inc ebp
lea rcx, [0x1401547c0]
add r14, 0x20
mov edx, 2
sub r12, 1
jne 0x140158af0
mov r14, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x98]
mov rbp, qword [rsp + 0x90]
mov rbx, qword [rsp + 0x80]
mov eax, dword [rsp + 0x88]
mov r12, qword [rsp + 0x60]
mov r13, qword [rsp + 0x58]
add rsp, 0x68
pop r15
pop rdi
ret
mov r12, qword [rsp + 0x60]
mov eax, r13d
mov r13, qword [rsp + 0x58]
add rsp, 0x68
pop r15
pop rdi
ret
mov rdx, r15
mov rcx, rdi
add rsp, 0x68
pop r15
pop rdi
jmp fcn.14015ac60
Function at 0x14015d750
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.140166f30
test ebx, ebx
jne 0x14015d7b9
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.140166f30
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 0x140167a60
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 0x140167b69
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x60], r12
lea r12, str.main
mov qword [rsp + 0x20], r15
lea r15, [0x1402dc8f0]
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 0x140167ae1
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 0x140167b1c
test ecx, ecx
jne 0x140167b2a
lea rcx, [rbp + 0x20]
xor r8d, r8d
mov rdx, r14
call fcn.140113930
mov r11, qword [rax + 0x10]
test r11, r11
jne 0x140167b00
inc ebx
cmp ebx, dword [rsi + 0x28]
jl 0x140167aa0
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 0x140167b2f
inc r8
jmp 0x140167ad0
test r10d, r10d
jne 0x140167af9
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 0x140167b55
test edx, edx
je 0x140167ae1
inc rax
jmp 0x140167b40
movzx r8d, byte [rcx + r15]
movzx edx, byte [rdx + r15]
cmp edx, r8d
jne 0x140167af9
inc rax
jmp 0x140167b40
mov rax, r11
add rsp, 0x28
pop r14
pop rdi
pop rsi
pop rbx
ret
Function at 0x1402571b0
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
je 0x140257292
call fcn.140069340
test al, al
jne 0x140257292
mov qword [rsp + 0x30], rsi
xor esi, esi
mov qword [rsp + 0x38], rdi
mov rdi, 0xffffffffffffffff
inc rdi
cmp byte [rbx + rdi], sil
jne 0x1402571e2
mov r8, rdi
mov edx, 0x2e
mov rcx, rbx
call fcn.1400ad2c0
test rax, rax
je 0x140257227
sub rax, rbx
mov edx, 0x2e
mov r8, rax
mov rcx, rbx
call fcn.1400ad2c0
mov rsi, rax
test rax, rax
je 0x140257227
inc rsi
mov rcx, rbx
sub rcx, rsi
add rdi, rcx
test rsi, rsi
cmovne rbx, rsi
lea rsi, [rbx + rdi]
mov edi, 0x1505
cmp rbx, rsi
jae 0x14025725b
nop dword [rax]
movzx ecx, byte [rbx]
call fcn.140085a70
imul rdi, rdi, 0x21
movsx rcx, al
inc rbx
xor rdi, rcx
cmp rbx, rsi
jb 0x140257240
mov rsi, qword [rsp + 0x30]
mov rcx, rdi
movabs rax, 0x410410410410411
mul rdi
sub rcx, rdx
shr rcx, 1
add rcx, rdx
shr rcx, 5
imul rcx, rcx, 0x3f
sub rdi, rcx
mov rax, rdi
mov rdi, qword [rsp + 0x38]
add rsp, 0x20
pop rbx
ret
xor eax, eax
add rsp, 0x20
pop rbx
ret