joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400bd000
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x14024d660]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400bd020
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400bd028
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400bd020
movzx eax, word [r8 + 0x14]
sub rcx, rdx
movzx edx, word [r8 + 6]
lea rax, [r8 + rax + 0x18]
test edx, edx
je 0x1400bd075
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x1400bd06c
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1400bd020
add rax, 0x28
cmp rax, r9
jne 0x1400bd058
xor eax, eax
ret

Function at 0x1400bd080
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14024d660]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x1400bd0a0
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400bd0a8
mov eax, r8d
ret
cmp word [rax + 0x18], 0x20b
jne 0x1400bd0a0
movzx r8d, word [rax + 6]
mov eax, r8d
ret

Function at 0x1400bd130
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14024d660]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x1400bd150
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
cmp dword [rdx], 0x4550
je 0x1400bd158
mov rax, r8
ret
cmp word [rdx + 0x18], 0x20b
cmove r8, rax
mov rax, r8
ret

Function at 0x1400beae0
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rsi, qword [0x14024d6e0]
mov rax, qword [rsi]
test rax, rax
je 0x1400beb70
cmp qword [rax + 0x30], 0
jne 0x1400beb90
lea rbx, [0x1400dff48]
mov qword [rax + 0x30], rbx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [rbx], eax
mov rax, qword [rsi]
test rax, rax
je 0x1400beb40
cmp qword [rax + 0x30], 0
jne 0x1400beb60
lea rdx, [0x1400dff48]
mov qword [rax + 0x30], rdx
mov rax, rdx
cmp dword [rax], 0xffffffff
je 0x1400c7950
add rsp, 0x28
pop rbx
pop rsi
ret
call fcn.1400c39e0
mov r8, rax
mov rax, qword [rsi]
cmp qword [r8 + 0x30], 0
je 0x1400beb22
test rax, rax
jne 0x1400beb60
call fcn.1400c39e0
nop dword [rax]
mov rax, qword [rax + 0x30]
jmp 0x1400beb30
call fcn.1400c39e0
cmp qword [rax + 0x30], 0
mov rax, qword [rsi]
je 0x1400beb00
test rax, rax
jne 0x1400beb90
call fcn.1400c39e0
nop dword [rax]
mov rbx, qword [rax + 0x30]
jmp 0x1400beb0b
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
mov rax, qword [pe_dos_header]
ud2
Function at 0x1400beba0
Capabilities:
Print debug messages

Disassembly:
sub rsp, 0x98
movabs rax, 0x6c6320726f727245
movabs rdx, 0x7520676e696e6165
mov qword [rsp + 0x20], rax
movabs rax, 0x6b5f6e6970732070
mov qword [rsp + 0x28], rdx
movabs rdx, 0x20726f6620737965
mov qword [rsp + 0x30], rax
movabs rax, 0x20646165726874
mov qword [rsp + 0x38], rdx
xor edx, edx
mov qword [rsp + 0x40], rax
xor eax, eax
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x68], 0
mov qword [rsp + 0x70], 0
mov qword [rsp + 0x78], 0
mov qword [rsp + 0x80], 0
mov word [rsp + 0x88], ax
mov byte [rsp + 0x8a], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea rdx, [rsp + 0x47]
mov r8d, 0xa
mov ecx, eax
call qword [sym.imp.msvcrt.dll__ultoa]
cmp byte [rsp + 0x47], 0
je 0x1400becb2
mov eax, 0x28
lea rcx, [rsp + 0x20]
jmp 0x1400bec8a
add rax, 1
cmp rax, 0x6b
je 0x1400beca7
cmp byte [rcx + rax], 0
movsxd rdx, eax
jne 0x1400bec80
cmp edx, 0x6a
je 0x1400beca7
lea eax, [rdx + 1]
cdqe
mov byte [rsp + rdx + 0x20], 0xa
mov byte [rsp + rax + 0x20], 0
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call sub.msvcrt.dll_abort
mov eax, 0x28
mov edx, 0x27
lea rcx, [rsp + 0x20]
jmp 0x1400bec9b
Function at 0x1400bf6c0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x40
mov rsi, qword [0x14024d6e0]
mov rax, qword [rsi]
test rax, rax
je 0x1400bf8b0
cmp qword [rax + 0x28], 0
jne 0x1400bf898
lea rcx, [0x1402ad318]
cmp dword [rcx], 1
mov qword [rax + 0x28], rcx
je 0x1400bf8a5
call fcn.1400becd0
mov rax, qword [rsi]
test rax, rax
je 0x1400bf740
cmp qword [rax + 0x30], 0
jne 0x1400bf760
lea rdx, [0x1400dff48]
mov qword [rax + 0x30], rdx
mov rax, rdx
mov ecx, dword [rax]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r12, rax
test rax, rax
je 0x1400bf774
mov rax, r12
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call fcn.1400c39e0
cmp qword [rax + 0x30], 0
mov rax, qword [rsi]
je 0x1400bf710
test rax, rax
jne 0x1400bf760
call fcn.1400c39e0
nop dword [rax]
mov rax, qword [rax + 0x30]
mov ecx, dword [rax]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r12, rax
test rax, rax
jne 0x1400bf72e
call fcn.1400be810
cmp qword [0x1402b1050], 0
mov rbx, rax
je 0x1400bf72e
test rax, rax
je 0x1400bf72e
mov dword [rax + 0x44], 1
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor ecx, ecx
xor r9d, r9d
xor r8d, r8d
mov dword [rbx + 0x70], eax
mov edx, 1
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [rbx + 0x38], 0xffffffffffffffff
lea rcx, [rbx + 0x68]
mov qword [rbx + 0x30], rax
call fcn.1400c5880
cmp eax, 1
je 0x1400bf91d
mov rbp, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov qword [rbx + 0x68], 0xffffffffffffffff
mov dword [rbx + 0xb8], 0
mov qword [rbx + 0x28], 0
call rbp
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov r12, rax
call rbp
mov dword [rsp + 0x30], 2
mov r8, rdi
mov rdx, r12
mov dword [rsp + 0x28], 0
mov rcx, rax
lea r9, [rbx + 0x28]
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x1400c7956
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov dword [rbx + 0xbc], 0
mov dword [rbx + 0xc0], eax
movzx eax, byte [rbx + 0x40]
and eax, 0xffffffcf
or eax, 0x10
mov byte [rbx + 0x40], al
mov rax, qword [rsi]
test rax, rax
je 0x1400bf8f8
cmp qword [rax + 0x30], 0
je 0x1400bf8e0
mov rax, qword [rax + 0x30]
mov ecx, dword [rax]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x1400c7956
mov r12, rbx
mov rax, r12
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rcx, qword [rax + 0x28]
cmp dword [rcx], 1
jne 0x1400bf6fc
mov rax, qword [rsi]
jmp 0x1400bf709
call fcn.1400c39e0
cmp qword [rax + 0x28], 0
mov rax, qword [rsi]
je 0x1400bf6e8
test rax, rax
jne 0x1400bf898
call fcn.1400c39e0
mov rcx, qword [rax + 0x28]
cmp dword [rcx], 1
jne 0x1400bf6fc
jmp 0x1400bf701
lea rdx, [0x1400dff48]
mov qword [rax + 0x30], rdx
mov rax, rdx
jmp 0x1400bf86e
call fcn.1400c39e0
mov r8, rax
mov rax, qword [rsi]
cmp qword [r8 + 0x30], 0
je 0x1400bf8e0
test rax, rax
jne 0x1400bf86a
call fcn.1400c39e0
jmp 0x1400bf86a
call fcn.1400beba0
nop word cs:[rax + rax]
nop dword [rax]
mov rax, qword [0x14024d6e0]
mov rdx, qword [rax]
lea rax, [0x1402ad328]
mov qword [rdx + 0x10], rax
ret
Function at 0x1400c3860
Capabilities:
Print debug messages

Disassembly:
push r12
push rbx
sub rsp, 0x58
mov r12, rcx
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1400c3880
add rsp, 0x58
pop rbx
pop r12
ret
lea rdx, [rsp + 0x48]
mov r9d, 0x400
mov r8d, eax
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x20], rdx
mov ecx, 0x1100
xor edx, edx
mov dword [rsp + 0x28], 0
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
test eax, eax
jne 0x1400c38c8
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x1400c3874
int3
mov rcx, qword [rsp + 0x48]
mov rbx, qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call rbx
mov rcx, r12
call rbx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x1400c38b5
Function at 0x1400c39e0
Capabilities:
Check mutex on windows

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x30
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea rdx, [0x1402ad400]
mov dword [rsp + 0x2c], eax
lea rcx, [rsp + 0x2c]
lea r9, [rsp + 0x30]
movzx eax, byte [rcx]
add rcx, 1
add rdx, 2
mov r8d, eax
and eax, 0xf
shr r8b, 4
add eax, 0x61
add r8d, 0x41
mov byte [rdx - 1], al
mov byte [rdx - 2], r8b
cmp rcx, r9
jne 0x1400c3a03
lea rax, [0x1402ad408]
mov ecx, 0x5f
lea rdx, str.__shmem3_winpthreads_tdm_
lea r8, [rax + 0x1a]
jmp 0x1400c3a4b
movzx ecx, byte [rdx]
add rax, 1
add rdx, 1
mov byte [rax - 1], cl
cmp rax, r8
jne 0x1400c3a48
lea rax, [0x1402ad440]
mov ecx, 0x5f
lea rdx, str.__shmem3_winpthreads_tdm_
lea r8, [rax + 0x19]
jmp 0x1400c3a7b
movzx ecx, byte [rdx]
add rax, 1
add rdx, 1
mov byte [rax - 1], cl
cmp rax, r8
jne 0x1400c3a78
xor ecx, ecx
mov byte [0x1402ad459], 0x2d
movabs rax, 0x6161616161616161
movabs rdx, 0x6161616161616161
mov qword [0x1402ad462], rdx
lea r8, [0x1402ad400]
lea rbx, [0x1402ad45a]
mov qword [0x1402ad472], rdx
mov qword [0x1402ad482], rdx
mov qword [0x1402ad492], rdx
xor edx, edx
mov qword [0x1402ad45a], rax
mov qword [0x1402ad46a], rax
mov qword [0x1402ad47a], rax
mov qword [0x1402ad48a], rax
mov byte [0x1402ad49a], 0
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
mov edx, 0xffffffff
mov r12, rax
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x1400c3c56
lea rcx, [0x1402ad440]
call qword [sym.imp.KERNEL32.dll_FindAtomA]
test ax, ax
jne 0x1400c3ba1
lea rsi, [0x1402ad340]
lea r8, [0x1402ad49a]
mov rax, rbx
lea ecx, [rbx + 0x40]
nop dword [rax]
mov edx, ecx
sub edx, eax
bt rsi, rdx
jae 0x1400c3b4d
mov byte [rax], 0x41
add rax, 1
cmp r8, rax
jne 0x1400c3b40
lea rcx, [0x1402ad440]
call qword [sym.imp.KERNEL32.dll_AddAtomA]
test ax, ax
je 0x1400c3c43
lea rcx, [0x1400c38f0]
mov qword [0x1402ad340], rsi
call sub.msvcrt.dll__onexit
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [0x1402ad340]
add rsp, 0x30
pop rbx
pop rsi
pop r12
ret
mov r8d, 0x5b
lea rdx, [0x1402ad440]
movzx ecx, ax
call qword [sym.imp.KERNEL32.dll_GetAtomNameA]
lea r8, [0x1402ad49a]
xor edx, edx
lea r10d, [rbx + 0x40]
mov r11d, eax
mov r9d, 1
mov rax, rbx
test r11d, r11d
je 0x1400c3c76
nop dword [rax]
cmp byte [rax], 0x41
jne 0x1400c3bf3
mov ecx, r10d
mov rbx, r9
sub ecx, eax
shl rbx, cl
or rdx, rbx
add rax, 1
cmp r8, rax
jne 0x1400c3be0
mov rax, rdx
mov qword [0x1402ad340], rax
lea rsi, [0x1402ad340]
jmp 0x1400c3c19
cmp rdx, rsi
je 0x1400c3b7f
mov rdx, rax
mov rax, qword [rax + 8]
test rax, rax
jne 0x1400c3c10
cmp rdx, rsi
je 0x1400c3b7f
mov qword [rdx + 8], rsi
lea rcx, [0x1400c38f0]
call sub.msvcrt.dll__onexit
jmp 0x1400c3b7f
lea rcx, str.failed_to_add_string_to_atom_table_n
call fcn.1400c3860
xor eax, eax
jmp 0x1400c3b98
lea rcx, str.failed_to_to_lock_creation_mutex_n
call fcn.1400c3860
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
add rsp, 0x30
pop rbx
pop rsi
pop r12
ret
lea rcx, str.failed_to_get_string_from_atom_n
call fcn.1400c3860
xor eax, eax
jmp 0x1400c3bff
Function at 0x1800146d0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x18], r8
push rbx
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x38
mov rax, qword [rcx + 8]
mov r15, rcx
mov r14d, edx
mov r11, qword [rax + 8]
mov rax, qword [rcx + 0x28]
mov r12d, r9d
mov r8d, dword [r11 + 0x30]
mov r10, qword [rax + 8]
mov r13, qword [r11]
movsxd rax, dword [r10 + 0x30]
mov ecx, r8d
mov dword [rsp + 0x78], r8d
cmp eax, r8d
mov qword [rsp + 0x28], rax
cmovl ecx, eax
xor ebx, ebx
mov dword [rsp + 0x70], ecx
mov rcx, rax
imul r14, rax
cmp eax, r8d
je 0x180014738
cmp byte [r13 + 0x11], bl
mov eax, 8
cmovne ebx, eax
mov rdi, r14
sub rdi, rcx
test ebx, ebx
jne 0x180014848
mov qword [rsp + 0x88], rbp
mov qword [rsp + 0x30], rsi
cmp rdi, r14
jge 0x18001482a
mov rax, rdi
movsxd rbp, r8d
mov qword [rsp + 0x20], 0
cqo
idiv rbp
mov rsi, rdx
xor edx, edx
lea r10d, [rax + 1]
mov rax, qword [r15 + 8]
mov rcx, qword [rax + 8]
mov eax, dword [0x1800bce68]
div dword [rcx + 0x30]
inc eax
cmp r10d, eax
je 0x18001481f
lea r8, [rsp + 0x20]
xor r9d, r9d
mov edx, r10d
mov rcx, r13
call fcn.180058cb0
mov ebx, eax
test eax, eax
jne 0x18001480b
mov rcx, qword [rsp + 0x20]
call fcn.18005a340
mov ebx, eax
test eax, eax
jne 0x18001480b
mov rax, qword [rsp + 0x20]
movsxd r8, dword [rsp + 0x70]
add rsi, qword [rax + 8]
mov rax, rdi
cqo
mov rcx, rsi
idiv qword [rsp + 0x28]
add rdx, qword [rsp + 0x80]
call fcn.180091e20
mov rax, qword [rsp + 0x20]
mov rcx, qword [rax + 0x10]
mov byte [rcx], bl
test rdi, rdi
jne 0x18001480b
test r12d, r12d
jne 0x18001480b
mov rax, qword [r15 + 0x28]
mov rcx, qword [rax + 8]
mov eax, dword [rcx + 0x3c]
bswap eax
mov dword [rsi + 0x1c], eax
mov rcx, qword [rsp + 0x20]
test rcx, rcx
je 0x18001481a
call fcn.18005a290
mov r8d, dword [rsp + 0x78]
add rdi, rbp
test ebx, ebx
je 0x180014753
mov rbp, qword [rsp + 0x88]
mov rsi, qword [rsp + 0x30]
mov eax, ebx
add rsp, 0x38
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rbx
ret
mov eax, ebx
add rsp, 0x38
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rbx
ret
Function at 0x1800194c0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x20], r9
mov dword [rsp + 0x18], r8d
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x58
mov esi, edx
cmp edx, dword [rcx + 0x3c]
jbe 0x180019511
lea rax, [0x1800a9d94]
mov edi, 0xb
lea r8, str.database_corruption
lea rdx, str._s_at_line__d_of___.10s_
mov r9d, 0x10414
mov ecx, edi
mov qword [rsp + 0x20], rax
call sym.sqlite3.dll_sqlite3_log
mov eax, edi
add rsp, 0x58
pop rdi
pop rsi
ret
mov rcx, qword [rcx]
lea r8, [rsp + 0x38]
xor r9d, r9d
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x48], rbp
call fcn.180058cb0
xor ebp, ebp
mov edi, eax
test eax, eax
jne 0x18001958d
mov rcx, qword [rsp + 0x38]
mov rbx, qword [rcx + 0x10]
cmp byte [rbx], bpl
jne 0x18001959a
cmp esi, dword [rbx + 0x88]
je 0x180019574
mov rax, qword [rcx + 8]
mov qword [rbx + 0x70], rcx
cmp esi, 1
mov qword [rbx + 0x50], rax
mov rax, qword [rsp + 0x70]
mov ecx, 0x64
mov qword [rbx + 0x48], rax
mov eax, ebp
mov dword [rbx + 0x88], esi
cmove eax, ecx
mov byte [rbx + 5], al
mov rcx, rbx
call fcn.1800173f0
mov edi, eax
test eax, eax
je 0x18001959a
mov rcx, qword [rbx + 0x70]
call fcn.18005a290
jmp 0x180019592
mov rbx, qword [rsp + 0x70]
test edi, edi
jne 0x180019705
cmp byte [rbx + 8], bpl
je 0x1800195d1
lea rax, [0x1800a9d94]
mov edi, 0xb
lea r8, str.database_corruption
lea rdx, str._s_at_line__d_of___.10s_
mov r9d, 0x10419
mov ecx, edi
mov qword [rsp + 0x20], rax
call sym.sqlite3.dll_sqlite3_log
jmp 0x1800196f8
movzx esi, byte [rbx + 5]
mov byte [rbx + 8], 1
mov dword [rsp + 0x30], esi
cmp bp, word [rbx + 0x12]
jae 0x18001966c
mov rcx, rbp
mov qword [rsp + 0x38], rcx
nop
mov rax, qword [rbx + 0x60]
movzx ecx, word [rcx + rax]
movzx eax, word [rbx + 0x14]
ror cx, 8
movzx esi, cx
and rsi, rax
add rsi, qword [rbx + 0x50]
cmp byte [rbx + 4], 0
jne 0x180019636
mov edx, dword [rsi]
mov r9, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x70]
bswap edx
mov r8d, 1
call fcn.1800194c0
mov edi, eax
test eax, eax
jne 0x1800196f8
lea r8, [rsp + 0x78]
mov rdx, rsi
mov rcx, rbx
call fcn.1800192d0
mov edi, eax
test eax, eax
jne 0x1800196f8
mov rcx, qword [rsp + 0x38]
movzx eax, word [rbx + 0x12]
inc ebp
add rcx, 2
mov qword [rsp + 0x38], rcx
cmp ebp, eax
jl 0x1800195f0
mov esi, dword [rsp + 0x30]
cmp byte [rbx + 4], 0
jne 0x18001969f
mov rax, qword [rbx + 0x50]
mov r9, qword [rsp + 0x88]
movsxd rcx, esi
mov edx, dword [rax + rcx + 8]
mov rcx, qword [rsp + 0x70]
mov r8d, 1
bswap edx
call fcn.1800194c0
mov edi, eax
test eax, eax
jne 0x1800196f8
jmp 0x1800196b2
mov rcx, qword [rsp + 0x88]
test rcx, rcx
je 0x1800196b2
movzx eax, word [rbx + 0x12]
add dword [rcx], eax
cmp dword [rsp + 0x80], 0
je 0x1800196d3
mov r8d, dword [rbx + 0x88]
mov rcx, qword [rbx + 0x48]
mov rdx, rbx
call fcn.180026730
mov edi, eax
jmp 0x1800196f8
mov rcx, qword [rbx + 0x70]
call fcn.18005a340
mov edi, eax
test eax, eax
jne 0x1800196f8
mov rax, qword [rbx + 0x50]
movsxd rcx, esi
movzx edx, byte [rax + rcx]
mov rcx, rbx
or edx, 8
call fcn.1800917f0
mov rcx, qword [rbx + 0x70]
mov byte [rbx + 8], 0
call fcn.18005a290
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x48]
mov eax, edi
add rsp, 0x58
pop rdi
pop rsi
ret
Function at 0x180023430
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov rbx, qword [rcx + 0x10]
xor r9d, r9d
mov rdi, rdx
mov r11, rcx
lea rsi, [0x1800a0de0]
test rbx, rbx
je 0x18002349d
movzx eax, byte [rdx]
mov r10, rdx
test al, al
je 0x180023482
movzx eax, al
lea r10, [r10 + 1]
movzx ecx, byte [rax + rsi]
lea eax, [r9*8]
xor ecx, eax
movzx eax, byte [r10]
xor r9d, ecx
test al, al
jne 0x180023462
mov eax, r9d
xor edx, edx
div dword [r11]
mov eax, edx
mov r9d, edx
add rax, rax
mov r10, qword [rbx + rax*8 + 8]
mov r11d, dword [rbx + rax*8]
jmp 0x1800234a5
mov r10, qword [rcx + 8]
mov r11d, dword [rcx + 4]
mov dword [r8], r9d
test r11d, r11d
je 0x18002350c
movzx eax, byte [rdi]
movzx ebx, byte [rax + rsi]
nop dword [rax]
nop dword [rax + rax]
mov r8, qword [r10 + 0x18]
dec r11d
movzx eax, byte [r8]
movzx ecx, byte [rax + rsi]
sub ecx, ebx
jne 0x180023504
mov r9, rdi
sub r9, r8
nop dword [rax]
test al, al
je 0x180023500
movzx ecx, byte [r9 + r8 + 1]
movzx eax, byte [r8 + 1]
inc r8
movzx edx, byte [rcx + rsi]
movzx ecx, byte [rax + rsi]
sub ecx, edx
je 0x1800234e0
jmp 0x180023504
test ecx, ecx
je 0x18002351e
mov r10, qword [r10]
test r11d, r11d
jne 0x1800234c0
xor eax, eax
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
ret
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
mov rax, r10
ret
Function at 0x180035150
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
mov eax, edx
mov edi, edx
shl rax, 4
mov ecx, 0x40
cmp rax, 0x400
cmova edi, ecx
cmp edi, dword [rbx]
jne 0x180035184
xor eax, eax
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rax, qword [0x1800bf4a8]
test rax, rax
je 0x180035192
call rax
mov ecx, edi
shl rcx, 4
call fcn.180057350
mov rcx, qword [0x1800bf4b0]
mov rdi, rax
test rcx, rcx
je 0x1800351ae
call rcx
test rdi, rdi
je 0x180035177
mov rcx, qword [rbx + 0x10]
mov qword [rsp + 0x30], rsi
call sym.sqlite3.dll_sqlite3_free
mov rcx, rdi
mov qword [rbx + 0x10], rdi
call qword [0x1800bceb0]
xor edx, edx
mov rcx, rdi
movsxd rsi, eax
shr rsi, 4
mov r8d, esi
mov dword [rbx], esi
shl r8, 4
call fcn.180092be0
mov rcx, qword [rbx + 8]
xor r10d, r10d
mov qword [rbx + 8], r10
test rcx, rcx
je 0x1800352c1
lea r11, [0x1800a0de0]
nop dword [rax]
nop word [rax + rax]
mov r9, qword [rcx + 0x18]
mov eax, r10d
movzx edx, byte [r9]
test dl, dl
je 0x180035241
nop
movzx edx, dl
lea r9, [r9 + 1]
movzx r8d, byte [rdx + r11]
lea edx, [rax*8]
xor r8d, edx
movzx edx, byte [r9]
xor eax, r8d
test dl, dl
jne 0x180035220
mov r9, qword [rcx]
xor edx, edx
div esi
mov r8d, edx
shl r8, 4
add r8, rdi
je 0x180035299
mov eax, dword [r8]
test eax, eax
je 0x180035261
mov rdx, qword [r8 + 8]
jmp 0x180035264
mov rdx, r10
inc eax
mov qword [r8 + 8], rcx
mov dword [r8], eax
test rdx, rdx
je 0x180035299
mov qword [rcx], rdx
mov rax, qword [rdx + 8]
mov qword [rcx + 8], rax
mov rax, qword [rdx + 8]
test rax, rax
je 0x18003528f
mov qword [rax], rcx
mov qword [rdx + 8], rcx
jmp 0x1800352b5
mov qword [rbx + 8], rcx
mov qword [rdx + 8], rcx
jmp 0x1800352b5
mov rax, qword [rbx + 8]
mov qword [rcx], rax
mov rax, qword [rbx + 8]
test rax, rax
je 0x1800352ad
mov qword [rax + 8], rcx
mov qword [rcx + 8], r10
mov qword [rbx + 8], rcx
mov rcx, r9
test r9, r9
jne 0x180035210
mov rsi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
mov eax, 1
add rsp, 0x20
pop rdi
ret
Function at 0x18003cde0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r13
push r14
push r15
mov r12, rdx
xor edx, edx
movsxd rbx, r8d
lea r15d, [rdx + 2]
mov esi, edx
mov r13d, edx
mov r14d, edx
lea r10, [rbx + rcx]
cmp r9b, 1
jne 0x18003ce20
lea r8d, [rdx + 1]
jmp 0x18003ce66
movzx eax, r9b
mov edx, 3
mov r8d, r15d
sub edx, eax
movsxd rax, edx
cmp rax, rbx
jge 0x18003ce47
cmp byte [rax + rcx], sil
jne 0x18003ce47
add rax, r8
add edx, r8d
cmp rax, rbx
jl 0x18003ce36
xor r11d, r11d
cmp edx, ebx
movsxd r10, edx
setl r14b
movzx eax, r9b
xor r10, 1
and eax, 1
add r10, rcx
add rcx, rax
xor edx, edx
lea r9, [0x180000000]
cmp rcx, r10
jae 0x18003ceab
movzx eax, byte [rcx]
test byte [rax + r9 + 0xa0ee0], 1
je 0x18003ce8d
movsxd rax, r8d
add rcx, rax
cmp rcx, r10
jb 0x18003ce72
jmp 0x18003ceab
cmp rcx, r10
jae 0x18003ceab
movzx eax, byte [rcx]
cmp al, 0x2d
jne 0x18003cea1
mov r13d, 1
jmp 0x18003cea5
cmp al, 0x2b
jne 0x18003ceab
movsxd rax, r8d
add rcx, rax
mov rbp, rcx
cmp rcx, r10
jae 0x18003cec3
cmp byte [rcx], 0x30
jne 0x18003cec3
movsxd rax, r8d
add rcx, rax
cmp rcx, r10
jb 0x18003ceb3
mov r9d, edx
movsxd rdi, r8d
cmp rcx, r10
jae 0x18003cf20
mov rbx, rdx
movsx r11, byte [rbx + rcx]
lea eax, [r11 - 0x30]
cmp eax, 9
ja 0x18003cefc
lea rdx, [rsi - 6]
add r9d, r8d
add rbx, rdi
lea rdx, [rsi + rdx*4]
lea rsi, [r11 + rdx*2]
movsxd rdx, r9d
add rdx, rcx
cmp rdx, r10
jb 0x18003ced1
movabs rdx, 0x7fffffffffffffff
cmp rsi, rdx
jbe 0x18003cf20
xor r11d, r11d
test r13d, r13d
mov eax, r11d
setne al
add rax, rdx
mov qword [r12], rax
jmp 0x18003cf2f
test r13d, r13d
je 0x18003cf28
neg rsi
xor r11d, r11d
mov qword [r12], rsi
movsxd rdx, r9d
add rdx, rcx
cmp rdx, r10
jb 0x18003cfb7
test r9d, r9d
jne 0x18003cf44
cmp rbp, rcx
je 0x18003cfb7
imul eax, r8d, 0x13
cmp r9d, eax
jg 0x18003cfb7
test r14d, r14d
jne 0x18003cfb7
cmp r9d, eax
jge 0x18003cf5b
xor eax, eax
jmp 0x18003cfbc
mov eax, r11d
mov r8, r11
mov r9, rcx
lea r10, [0x180000000]
nop dword [rax + rax]
cmp r8, 0x12
jge 0x18003cf94
movsx eax, byte [r8 + r10 + 0xa6320]
movsx edx, byte [r9]
inc r8
sub edx, eax
add r9, rdi
lea eax, [rdx + rdx*4]
add eax, eax
je 0x18003cf70
jmp 0x18003cfa3
test eax, eax
jne 0x18003cfa5
lea rax, [rdi + rdi*8]
movsx eax, byte [rcx + rax*2]
sub eax, 0x38
test eax, eax
js 0x18003cf57
test eax, eax
jg 0x18003cfb7
test r13d, r13d
cmovne r15d, r11d
mov eax, r15d
jmp 0x18003cfbc
mov eax, 1
mov rbx, qword [rsp + 0x28]
mov rbp, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
pop r15
pop r14
pop r13
pop r12
ret