joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1401bf2f0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
test dword [rdx + 0x58], 0x1000000
lea rdi, [rdx + 0x80]
mov rbx, rdx
mov rsi, rcx
je 0x1401bf33b
mov qword [rdx + 0x238], 0
lea rcx, [0x1401bf670]
mov rdx, rdi
mov r8d, reloc.WS2_32.dll_recv
call qword [sym.imp.KERNEL32.dll_QueueUserWorkItem]
jmp 0x1401bf3f5
xor eax, eax
lea rcx, [rdi + 0x40]
mov qword [rcx], rax
mov qword [rcx + 8], rax
mov qword [rcx + 0x10], rax
mov qword [rcx + 0x18], rax
test dword [rdx + 0x58], 0x80000
je 0x1401bf365
mov rax, qword [rdi + 0x70]
or rax, 1
mov qword [rdi + 0x58], rax
mov qword [rsp + 0x20], rcx
lea rdx, [0x1408895e0]
mov rcx, qword [rbx + 0x118]
xor r9d, r9d
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1401bf395
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x1401bf3f9
test dword [rbx + 0x58], 0x80000
je 0x1401bf450
cmp qword [rdi + 0x70], 0
jne 0x1401bf3c6
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [rdi + 0x70], rax
test rax, rax
je 0x1401bf489
cmp qword [rdi + 0x78], 0xffffffffffffffff
lea rcx, [rdi + 0x78]
jne 0x1401bf450
mov rdx, qword [rdi + 0x58]
lea r8, [0x1401b80b0]
mov dword [rsp + 0x28], 4
mov r9, rdi
mov dword [rsp + 0x20], 0xffffffff
call qword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
test eax, eax
jne 0x1401bf450
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jg 0x1401bf40b
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1401bf419
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx eax, ax
or eax, 0x80070000
cdqe
mov qword [rdi + 0x40], rax
mov qword [rdi + 0x68], 0
mov rax, qword [rsi + 0x48]
test rax, rax
je 0x1401bf446
mov rax, qword [rax + 0x68]
mov qword [rdi + 0x68], rax
mov rax, qword [rsi + 0x48]
mov qword [rax + 0x68], rdi
mov qword [rsi + 0x48], rdi
jmp 0x1401bf46f
mov qword [rdi + 0x68], rdi
mov qword [rsi + 0x48], rdi
jmp 0x1401bf46f
mov rcx, qword [rbx + 0x128]
test rcx, rcx
je 0x1401bf46f
xor r9d, r9d
lea rdx, [0x1401bdc80]
lea r8d, [r9 + 0x32]
call fcn.1401b7e80
or dword [rbx + 0x58], 0x10000
inc dword [rbx + 0x78]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
lea rdx, str.CreateEvent
call fcn.1401bc930
int3
Function at 0x1401c1990
Capabilities:
Manipulate console buffer

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x60
mov rax, qword [0x1405f98c0]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov r14, qword [rsp + 0xb8]
mov esi, r9d
movzx ebp, r8b
mov edi, edx
mov rbx, rcx
cmp dword [r14], 0
je 0x1401c19ce
mov eax, 0xffffffff
jmp 0x1401c1af7
mov qword [rsp + 0x58], r12
xor r12d, r12d
mov qword [rsp + 0x50], r15
movzx r15d, byte [rsp + 0xb0]
mov rcx, qword [rbx + 0x110]
lea rdx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
test eax, eax
jne 0x1401c1a03
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [r14], eax
movsx eax, word [rsp + 0x34]
mov edx, edi
movsx r8d, word [rsp + 0x38]
movsx r11d, word [rsp + 0x28]
sub r8d, eax
mov eax, dword [0x1405ea048]
inc r8d
movsx r9d, word [rsp + 0x2e]
mov dword [0x1405ea050], r11d
mov dword [0x1405ea04c], r8d
cmp eax, 0xffffffff
jne 0x1401c1a40
mov eax, r9d
jmp 0x1401c1a4d
mov ecx, r9d
sub ecx, r8d
inc ecx
cmp eax, ecx
cmovl eax, ecx
movsx r10d, word [rsp + 0x2a]
lea ecx, [r8 + rax]
cmp ecx, r10d
jle 0x1401c1a62
mov eax, r10d
sub eax, r8d
test eax, eax
lea ecx, [r9 + rsi]
cmovs eax, r12d
mov dword [0x1405ea048], eax
test r15b, r15b
jne 0x1401c1a7a
lea ecx, [rax + rsi]
cmp ecx, eax
jge 0x1401c1a82
mov ecx, eax
jmp 0x1401c1a8f
lea r9d, [r8 + rax]
cmp ecx, r9d
jl 0x1401c1a8f
lea ecx, [r9 - 1]
test bpl, bpl
je 0x1401c1a9b
movsx edx, word [rsp + 0x2c]
add edx, edi
test edx, edx
jns 0x1401c1aa4
mov edx, r12d
jmp 0x1401c1aad
cmp edx, r11d
jl 0x1401c1aad
lea edx, [r11 - 1]
mov word [rsp + 0x22], cx
mov rcx, qword [rbx + 0x110]
mov word [rsp + 0x20], dx
mov edx, dword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
test eax, eax
jne 0x1401c1aeb
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
je 0x1401c19e4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [r14], eax
mov eax, 0xffffffff
jmp 0x1401c1aed
xor eax, eax
mov r12, qword [rsp + 0x58]
mov r15, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1403e3630
add rsp, 0x60
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1401c1e60
Capabilities:
Log keystrokes
Manipulate console buffer

Disassembly:
push rbx
sub rsp, 0x90
mov rax, qword [0x1405f98c0]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov rbx, rcx
mov ecx, dword [rcx + 0x58]
btr ecx, 0xc
mov eax, ecx
sub dword [rbx + 0x7c], 1
mov dword [rbx + 0x58], ecx
jne 0x1401c1eab
test cl, 1
jne 0x1401c1eab
test cl, 4
je 0x1401c1eab
and eax, 0xfffffffb
mov dword [rbx + 0x58], eax
test al, 8
je 0x1401c1eab
mov rax, qword [rbx + 8]
dec dword [rax + 8]
mov eax, dword [rbx + 0x58]
mov qword [rsp + 0xa8], rbp
mov qword [rsp + 0x88], rdi
bt eax, 0x10
jae 0x1401c1f3f
bt eax, 0x19
jae 0x1401c1f08
mov rcx, qword [rbx + 0x110]
lea r9, [rsp + 0x40]
xor eax, eax
lea rdx, [rsp + 0x60]
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rax
mov dword [rsp + 0x70], eax
mov eax, reloc.WS2_32.dll_recv
mov word [rsp + 0x60], ax
lea r8d, [rax - 0xf]
call qword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
test eax, eax
jne 0x1401c1f3f
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1401c1f41
bt eax, 0x15
jb 0x1401c1f3f
lea rcx, [0x140889630]
xor edi, edi
call fcn.1401bc830
mov eax, 2
xchg dword [0x1408895e8], eax
cmp eax, 1
je 0x1401c1f67
lea rcx, [0x140889630]
call fcn.1401bc800
or dword [rbx + 0x58], 0x200000
xor eax, eax
mov rdi, qword [rsp + 0x88]
mov rbp, qword [rsp + 0xa8]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1403e3630
add rsp, 0x90
pop rbx
ret
xor r9d, r9d
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0xb0], rsi
lea rcx, str.conout_
mov dword [rsp + 0x28], 0x80
mov edx, 0xc0000000
mov qword [rsp + 0x80], r14
lea r8d, [r9 + 3]
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x1401c1fca
lea rdx, [0x1408895f0]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
test eax, eax
je 0x1401c1fca
lock or dword [0x1408895ec], 1
mov ebp, 1
mov dword [rsp + 0x50], 0xd0001
mov r14d, reloc.WS2_32.dll_listen
mov word [rsp + 0x48], bp
mov ecx, r14d
mov dword [rsp + 0x4c], ebp
xor edx, edx
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
mov rcx, qword [rbx + 0x110]
lea r9, [rsp + 0x44]
mov r8d, ebp
mov word [rsp + 0x54], ax
lea rdx, [rsp + 0x48]
mov word [rsp + 0x56], r14w
mov dword [rsp + 0x58], edi
call qword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
mov r14, qword [rsp + 0x80]
test eax, eax
jne 0x1401c202e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp rsi, 0xffffffffffffffff
je 0x1401c203d
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rsi, qword [rsp + 0xb0]
test edi, edi
je 0x1401c1f38
mov eax, edi
jmp 0x1401c1f41
Function at 0x1401c5b20
Capabilities:
Initialize winsock library

Disassembly:
sub rsp, 0x478
mov rax, qword [0x1405f98c0]
xor rax, rsp
mov qword [rsp + 0x460], rax
lea r8, [0x14089a0c0]
xor edx, edx
lea rcx, str.0.0.0.0
call fcn.1401b6140
test eax, eax
jne 0x1401c5da5
lea r8, [0x14089a0a0]
xor edx, edx
lea rcx, [0x1404ad8e8]
call fcn.1401b61a0
test eax, eax
jne 0x1401c5da5
lea ecx, [rax + 0x43]
call qword [sym.imp.USER32.dll_GetSystemMetrics]
cmp eax, 1
je 0x1401c5d00
mov ecx, 0x202
lea rdx, [rsp + 0x2c0]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x1401c5d18
mov qword [rsp + 0x480], rbx
lea ecx, [rax + 2]
mov qword [rsp + 0x470], rdi
xor r8d, r8d
mov edi, 1
mov edx, edi
call qword [sym.imp.WS2_32.dll_socket]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1401c5c2b
lea rax, [rsp + 0x30]
mov dword [rsp + 0x30], 0x274
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov edx, 0xffff
mov r8d, 0x2005
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_getsockopt]
cmp eax, 0xffffffff
je 0x1401c5d27
mov eax, dword [0x14089a0d4]
mov rcx, rbx
test dword [rsp + 0x40], 0x20000
cmove eax, edi
mov dword [0x14089a0d4], eax
call qword [sym.imp.WS2_32.dll_closesocket]
cmp eax, 0xffffffff
je 0x1401c5d3c
jmp 0x1401c5c52
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x273d
je 0x1401c5d90
cmp eax, 0x273a
jbe 0x1401c5d90
cmp eax, 0x2740
jae 0x1401c5d90
xor r8d, r8d
mov edx, edi
lea ecx, [r8 + 0x17]
call qword [sym.imp.WS2_32.dll_socket]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1401c5cc9
lea rax, [rsp + 0x30]
mov dword [rsp + 0x30], 0x274
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov edx, 0xffff
mov r8d, 0x2005
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_getsockopt]
cmp eax, 0xffffffff
je 0x1401c5d51
mov eax, dword [0x14089a0d0]
mov rcx, rbx
test dword [rsp + 0x40], 0x20000
cmove eax, edi
mov dword [0x14089a0d0], eax
call qword [sym.imp.WS2_32.dll_closesocket]
cmp eax, 0xffffffff
je 0x1401c5d66
jmp 0x1401c5cf0
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x273d
je 0x1401c5d7b
cmp eax, 0x273a
jbe 0x1401c5d7b
cmp eax, 0x2740
jae 0x1401c5d7b
mov rbx, qword [rsp + 0x480]
mov rdi, qword [rsp + 0x470]
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.1403e3630
add rsp, 0x478
ret
lea rdx, str.WSAStartup
mov ecx, eax
call fcn.1401bc930
int3
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
lea rdx, str.getsockopt
call fcn.1401bc930
int3
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
lea rdx, str.closesocket
call fcn.1401bc930
int3
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
lea rdx, str.getsockopt
call fcn.1401bc930
int3
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
lea rdx, str.closesocket
call fcn.1401bc930
int3
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
lea rdx, str.socket
call fcn.1401bc930
int3
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
lea rdx, str.socket
call fcn.1401bc930
int3
call fcn.140405e44
int3
Function at 0x1401e10c0
Capabilities:
Set thread local storage value

Disassembly:
mov eax, 0x28
call fcn.1403e4120
sub rsp, rax
mov ecx, dword [rcx]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
xor ecx, ecx
test eax, eax
setne cl
mov eax, ecx
add rsp, 0x28
ret

Function at 0x1401e8910
Capabilities:
Get thread local storage value

Disassembly:
mov eax, 0x28
call fcn.1403e4120
sub rsp, rax
lea rcx, [0x14088c408]
add rsp, 0x28
jmp fcn.1401e0f20

Function at 0x1401f4970
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x20], rbx
push rsi
mov eax, 0x20
call fcn.1403e4120
sub rsp, rax
mov rbx, rcx
mov rsi, rdx
mov rcx, rdx
call fcn.1401eeb10
test eax, eax
je 0x1401f49af
xor edx, edx
mov rcx, rbx
call fcn.1401eefb0
mov eax, 1
mov rbx, qword [rsp + 0x48]
add rsp, 0x20
pop rsi
ret
mov qword [rsp + 0x30], rbp
mov ebp, dword [rsi + 8]
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x40], r14
mov r14, qword [rsi]
lea eax, [rbp - 1]
movsxd rdi, eax
xor eax, eax
mov rcx, qword [r14 + rdi*8]
cmp rcx, 1
sete al
sub ebp, eax
cmp rsi, rbx
je 0x1401f49f7
mov edx, ebp
mov rcx, rbx
call fcn.1401ef570
test rax, rax
je 0x1401f4a5d
mov eax, dword [rsi + 0x10]
mov dword [rbx + 0x10], eax
mov rcx, qword [r14 + rdi*8]
mov rax, qword [rbx]
mov rdx, rcx
xor rdx, 1
inc rdx
neg rdx
shl rdx, 0x3f
lea r8, [rax + rdi*8]
shr rcx, 1
je 0x1401f4a17
mov qword [r8], rcx
test rdi, rdi
jle 0x1401f4a4e
sub r14, rax
nop
mov rcx, qword [r14 + r8 - 8]
lea r8, [r8 - 8]
mov rax, rcx
dec rdi
shr rax, 1
or rax, rdx
mov rdx, rcx
xor rdx, 1
mov qword [r8], rax
inc rdx
neg rdx
shl rdx, 0x3f
test rdi, rdi
jg 0x1401f4a20
mov dword [rbx + 8], ebp
test ebp, ebp
jne 0x1401f4a58
mov dword [rbx + 0x10], ebp
mov eax, 1
mov rdi, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x30]
mov r14, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x48]
add rsp, 0x20
pop rsi
ret

Function at 0x140206690
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x38
call fcn.1403e4120
sub rsp, rax
mov r10, rdx
mov dword [rsp + 0x40], reloc.WS2_32.dll_recv
add rdx, 0xf
lea rax, [r8 + 0xf]
mov r11, rcx
cmp r10, rax
ja 0x1402066c0
xor r9d, r9d
cmp rdx, r8
jae 0x1402066d9
movdqu xmm1, xmmword [r10]
movdqu xmm0, xmmword [r8]
pxor xmm1, xmm0
movdqu xmmword [r10], xmm1
mov r9d, reloc.WS2_32.dll_recv
cmp r9, 0x10
jae 0x140206701
sub r8, r10
lea rax, [r9 + r10]
mov edx, reloc.WS2_32.dll_recv
sub rdx, r9
nop
movzx ecx, byte [r8 + rax]
xor byte [rax], cl
lea rax, [rax + 1]
sub rdx, 1
jne 0x1402066f0
mov rcx, qword [r11 + 8]
lea r8, [rsp + 0x40]
mov r9, r10
mov dword [rsp + 0x20], reloc.WS2_32.dll_recv
mov rdx, r10
call fcn.14021f190
test eax, eax
je 0x140206732
cmp dword [rsp + 0x40], 0x10
jne 0x140206732
mov eax, 1
add rsp, 0x38
ret
xor eax, eax
add rsp, 0x38
ret
Function at 0x1402068e0
Capabilities:
Encode data using xor

Disassembly:
mov r10, rcx
test rdx, rdx
je 0x140206968
test r8, r8
je 0x140206968
mov rax, qword [rcx + 0x18]
cmp r8, rax
mov r9, rax
cmovb r9, r8
test r9, r9
je 0x140206926
add rcx, 0x20
mov r11, rdx
sub r11, r10
nop
movzx eax, byte [r11 + rcx - 0x20]
xor byte [rcx], al
lea rcx, [rcx + 1]
sub r9, 1
jne 0x140206910
mov rax, qword [r10 + 0x18]
cmp r8, rax
jbe 0x140206968
sub r8, rax
mov eax, reloc.WS2_32.dll_recv
cmp r8, rax
cmova r8, rax
xor ecx, ecx
test r8, r8
je 0x140206968
nop dword [rax]
nop word [rax + rax]
mov rax, qword [r10 + 0x18]
add rax, rcx
movzx eax, byte [rax + rdx]
xor byte [r10 + rcx + 0x40], al
inc rcx
cmp rcx, r8
jb 0x140206950
ret

Function at 0x140258e80
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x38
call fcn.1403e4120
sub rsp, rax
cmp dword [rsp + 0x68], 0
je 0x140258ea9
lea rax, [0x1402574f0]
mov qword [rsp + 0x68], rax
add rsp, 0x38
jmp fcn.14024ff90
lea rax, [0x1402566b0]
mov qword [rsp + 0x68], rax
add rsp, 0x38
jmp fcn.14024fce0
Function at 0x140287950
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, reloc.OLEAUT32.dll_SetErrorInfo
call fcn.1403e4120
sub rsp, rax
mov rax, qword [0x1405f98c0]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov r12, qword [rsp + 0x130]
xor r14d, r14d
mov rax, qword [rcx]
mov rbp, r9
movsxd rdi, r8d
mov rsi, rdx
mov rbx, rcx
mov r15d, r14d
lea r13d, [r14 + 1]
test r9, r9
je 0x1402879b9
cmp r9, rax
je 0x1402879b1
test rdx, rdx
je 0x140287a2a
test r8d, r8d
js 0x140287a2a
mov r15d, r13d
mov qword [rcx], r9
jmp 0x1402879c1
test rax, rax
je 0x140287a2a
mov rbp, rax
mov rcx, rbp
call fcn.1401f65e0
test al, 2
jne 0x140287a2a
test rsi, rsi
je 0x140287a92
mov rcx, rbp
mov r15d, r13d
call fcn.1401f6af0
cmp eax, 0x90
jg 0x140287a2a
cmp eax, edi
jge 0x140287a50
mov rcx, qword [rbx + 8]
mov r8, r12
mov rdx, rbp
call fcn.1401d2590
test eax, eax
je 0x140287a2a
mov rcx, qword [rbx + 8]
mov r8, rdi
mov rdx, rsi
call fcn.1401d27e0
test eax, eax
je 0x140287a2a
mov rcx, qword [rbx + 8]
lea rsi, [rbx + 0x20]
mov r8, rsi
lea rdx, [rbx + 0x24]
call fcn.1401d24b0
test eax, eax
jne 0x140287a6d
xor eax, eax
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.1403e3630
add rsp, 0xc8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
cmp edi, 0x90
ja 0x140287a2a
mov r8, rdi
lea rcx, [rbx + 0x24]
mov rdx, rsi
call fcn.14043cc20
lea rsi, [rbx + 0x20]
mov dword [rsi], edi
mov ecx, dword [rsi]
cmp ecx, 0x90
je 0x140287a9b
mov eax, ecx
mov r8d, 0x90
sub r8d, ecx
xor edx, edx
lea rcx, [rbx + 0x24]
add rcx, rax
call fcn.14043d3a0
jmp 0x140287a9b
test r15d, r15d
je 0x140287b76
lea rcx, [rsp + 0x20]
mov rax, rbx
sub rax, rcx
mov rdx, r14
lea rdi, [rax + 0x24]
lea rsi, [rax + 0x25]
nop dword [rax]
nop word [rax + rax]
lea rcx, [rsp + 0x20]
add rcx, rdx
add rdx, 2
movzx eax, byte [rdi + rcx]
xor al, 0x36
mov byte [rcx], al
movzx eax, byte [rsi + rcx]
xor al, 0x36
mov byte [rcx + 1], al
cmp rdx, 0x90
jl 0x140287ac0
mov rcx, qword [rbx + 0x10]
mov r8, r12
mov rdx, rbp
call fcn.1401d2590
test eax, eax
je 0x140287b89
mov rcx, rbp
call fcn.1401f6af0
mov rcx, qword [rbx + 0x10]
lea rdx, [rsp + 0x20]
movsxd r8, eax
call fcn.1401d27e0
test eax, eax
je 0x140287b89
mov rdx, r14
nop dword [rax]
lea rcx, [rsp + 0x20]
add rcx, rdx
add rdx, 2
movzx eax, byte [rdi + rcx]
xor al, 0x5c
mov byte [rcx], al
movzx eax, byte [rsi + rcx]
xor al, 0x5c
mov byte [rcx + 1], al
cmp rdx, 0x90
jl 0x140287b20
mov rcx, qword [rbx + 0x18]
mov r8, r12
mov rdx, rbp
call fcn.1401d2590
test eax, eax
je 0x140287b89
mov rcx, rbp
call fcn.1401f6af0
mov rcx, qword [rbx + 0x18]
lea rdx, [rsp + 0x20]
movsxd r8, eax
call fcn.1401d27e0
test eax, eax
je 0x140287b89
mov rdx, qword [rbx + 0x10]
mov rcx, qword [rbx + 8]
call fcn.1401d2850
test eax, eax
cmovne r14d, r13d
test r15d, r15d
je 0x140287b9d
mov edx, 0x90
lea rcx, [rsp + 0x20]
call fcn.140001240
mov eax, r14d
jmp 0x140287a2c
Function at 0x1403755e0
Capabilities:
Reference sql statements

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov eax, dword [rsp + 0x50]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x20], rax
lea r9, [0x1405f37c0]
mov r8, qword [rsp + 0x48]
lea rdx, str.SELECT_1_FROM___w_._s_WHERE_name_NOT_LIKE_sqliteX____ESCAPE_X_AND_sql_NOT_LIKE_create_virtual___AND_sqlite_rename_test__Q__sql__type__name___d_NULL
mov rcx, qword [rsp + 0x40]
call fcn.140329eb0
cmp dword [rsp + 0x50], 0
jne 0x140375646
mov r9, qword [rsp + 0x48]
lea r8, [0x1405f3870]
lea rdx, str.SELECT_1_FROM_temp._s_WHERE_name_NOT_LIKE_sqliteX____ESCAPE_X_AND_sql_NOT_LIKE_create_virtual___AND_sqlite_rename_test__Q__sql__type__name__1_NULL
mov rcx, qword [rsp + 0x40]
call fcn.140329eb0
add rsp, 0x38
ret
Function at 0x1403b9580
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbx
push rsi
sub rsp, 0x28
mov ebx, dword [rcx + 0x14]
mov rsi, rcx
call fcn.1403b9370
mov rcx, rsi
mov byte [rsp + 0x40], al
call fcn.1403b9370
mov r8, qword [rsi]
mov byte [rsp + 0x41], al
mov rax, qword [r8]
movsxd rdx, dword [rax + 4]
cmp dword [rdx + r8 + 0x10], 0
jne 0x1403b96fb
xor eax, eax
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x58], r14
cmp ebx, 2
mov qword [rsp + 0x20], r15
lea r14, [rsp + 0x40]
setne al
lea r15, [rsp + 0x40]
add r14, rax
xor rax, 1
add r15, rax
movzx edi, byte [r14]
movzx eax, byte [r15]
shl edi, 8
or edi, eax
lea eax, [rdi - 0xdc00]
cmp eax, 0x3ff
ja 0x1403b9610
lea rcx, [rsi + 0x18]
mov edx, 0xfffd
call fcn.1403b9460
jmp 0x1403b96ec
lea eax, [rdi - 0xd800]
mov qword [rsp + 0x48], rbp
cmp eax, 0x3ff
ja 0x1403b96dc
mov rcx, rsi
call fcn.1403b9370
mov rcx, rsi
mov byte [rsp + 0x40], al
call fcn.1403b9370
mov rdx, qword [rsi]
mov byte [rsp + 0x41], al
mov rax, qword [rdx]
movsxd rcx, dword [rax + 4]
cmp dword [rcx + rdx + 0x10], 0
jne 0x1403b9702
movzx eax, byte [r15]
movzx ebx, byte [r14]
shl ebx, 8
or ebx, eax
lea eax, [rbx - 0xdc00]
cmp eax, 0x3ff
jbe 0x1403b96c5
lea rbp, [rsi + 0x18]
mov edx, 0xfffd
mov rcx, rbp
call fcn.1403b9460
lea eax, [rbx - 0xd800]
cmp eax, 0x7ff
ja 0x1403b96c0
mov rcx, rsi
mov edi, ebx
call fcn.1403b9370
mov rcx, rsi
mov byte [rsp + 0x40], al
call fcn.1403b9370
mov rdx, qword [rsi]
mov byte [rsp + 0x41], al
mov rax, qword [rdx]
movsxd rcx, dword [rax + 4]
cmp dword [rcx + rdx + 0x10], 0
je 0x1403b9653
mov edx, 0xfffd
mov rcx, rbp
jmp 0x1403b96e2
mov rcx, rbp
jmp 0x1403b96e0
and edi, 0x3ff
and ebx, 0x3ff
shl edi, 0xa
or edi, ebx
add edi, 0x10000
lea rcx, [rsi + 0x18]
mov edx, edi
call fcn.1403b9460
mov rbp, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
mov r14, qword [rsp + 0x58]
mov r15, qword [rsp + 0x20]
add rsp, 0x28
pop rsi
pop rbx
ret
lea rbp, [rsi + 0x18]
mov edx, 0xfffd
mov rcx, rbp
jmp 0x1403b96e2
Function at 0x1403c4580
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x1403c45ba
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x1403c45bf
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x1403c4608
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x14052cb80]
cmp byte [rcx + rax], 0
je 0x1403c4608
dec r8
sub rdx, 1
jne 0x1403c45ee
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x1403db30c
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
lea r9, [rdx + rdx]
movabs r8, 0xcbf29ce484222325
xor edx, edx
test r9, r9
je 0x1403c8aee
movzx eax, byte [rcx + rdx]
movabs r10, 0x100000001b3
xor r8, rax
inc rdx
imul r8, r10
cmp rdx, r9
jb 0x1403c8ad1
mov rax, r8
ret
sub r8, rdx
mov rcx, rdx
sar r8, 1
mov rdx, r8
jmp 0x1403c8abc

Function at 0x1403e4580
Capabilities:
Parse pe header

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

Function at 0x1403fe09c
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, edx
mov rbp, rcx
test r8, r8
jne 0x1403fe0d3
call fcn.1403fde44
mov dword [rax], reloc.WS2_32.dll_shutdown
call fcn.1403fd748
xor eax, eax
jmp 0x1403fe161
mov rdx, r9
mov rcx, r8
call fcn.1403fe038
mov rbx, rax
test rax, rax
je 0x1403fe15e
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x1403fdf64]
mov eax, dword [rsp + 0x60]
mov r9, rbx
mov rcx, rbp
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x1403fe14b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1403fddb8
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x1403fe132
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x1403fe141
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.140418fc4
jmp 0x1403fe15e
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x1403fe15b
mov eax, dword [rsp + 0x50]
mov dword [rcx], eax
mov rdi, rdx
mov rax, rdi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret