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

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x70
mov rdi, rdx
cmp qword [rdx], 0
jne 0x1401c5f79
mov rsi, rcx
mov rbx, qword [rdi + 0x18]
mov rax, qword [rbx]
test rax, rax
jne 0x1401c5e67
mov rdx, qword [rbx + 0x10]
lea rax, [rdx + 0xf]
cmp rax, 0xf
jbe 0x1401c5f63
xor eax, eax
mov rdx, qword [rbx + 0x10]
cmp rax, rdx
je 0x1401c5f46
sub rax, rdx
add rdx, qword [rbx + 8]
mov r8, qword [rdi + 0x10]
mov ecx, 0xffffffff
cmp rax, rcx
cmovae rax, rcx
mov dword [rsp + 0x2c], 0
mov rcx, qword [rdi + 0x20]
mov qword [rsp + 0x20], r8
lea r9, [rsp + 0x2c]
mov r8d, eax
call sub.KERNEL32.dll_ReadFile
test eax, eax
je 0x1401c5ec8
mov ecx, dword [rsp + 0x2c]
mov eax, 2
test rcx, rcx
je 0x1401c5ef9
mov qword [rdi], rax
mov qword [rdi + 8], rcx
mov byte [rsi + 1], 1
jmp 0x1401c5efd
call sub.KERNEL32.dll_GetLastError
mov rcx, rax
shl rcx, 0x20
or rcx, 2
mov qword [rsp + 0x40], rcx
cmp eax, 0x3e5
je 0x1401c5f01
cmp eax, 0x6d
jne 0x1401c5f2c
mov qword [rsp + 0x30], 1
lea rax, [rsp + 0x38]
jmp 0x1401c5f06
mov byte [rsi + 1], 0
xor eax, eax
jmp 0x1401c5f32
lea rax, [rsp + 0x30]
mov qword [rax], 0
lea rcx, [rsp + 0x40]
call fcn.140196450
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
test rax, rax
je 0x1401c5f3c
cmp rax, 1
je 0x1401c5eb1
mov qword [rsi + 8], rcx
mov al, 1
mov byte [rsi], al
add rsp, 0x70
pop rbx
pop rdi
pop rsi
ret
mov eax, 1
jmp 0x1401c5ebb
mov r8d, 1
mov rcx, rbx
mov rdx, rax
call fcn.14019c310
mov rax, qword [rbx]
mov rdx, qword [rbx + 0x10]
jmp 0x1401c5e74
mov r8d, 0x10
mov rcx, rbx
call fcn.14019c310
mov rax, qword [rbx]
jmp 0x1401c5e67
mov qword [rsp + 0x40], 0
lea rdx, [rsp + 0x40]
mov rcx, rdi
call fcn.1401c5f90
int3

Function at 0x1401caa00
Capabilities:
Set current directory

Disassembly:
push rsi
push rdi
sub rsp, 0x58
add rdx, rcx
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x48], rdx
mov word [rsp + 0x50], 0
lea rcx, [rsp + 0x28]
lea rdx, [rsp + 0x40]
call fcn.1401bf950
mov rdx, qword [rsp + 0x38]
cmp rdx, qword [rsp + 0x28]
jne 0x1401caa44
lea rcx, [rsp + 0x28]
call fcn.140198eb0
mov rdx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x30]
mov word [rsi + rdx*2], 0
mov rcx, rsi
call sub.KERNEL32.dll_SetCurrentDirectoryW
test eax, eax
je 0x1401caa7c
xor edi, edi
cmp qword [rsp + 0x28], 0
je 0x1401caa72
mov edx, 2
mov rcx, rsi
call fcn.140077af0
mov rax, rdi
add rsp, 0x58
pop rdi
pop rsi
ret
call sub.KERNEL32.dll_GetLastError
mov edi, eax
shl rdi, 0x20
or rdi, 2
cmp qword [rsp + 0x28], 0
jne 0x1401caa65
jmp 0x1401caa72
Function at 0x1401cacb0
Capabilities:
Generate random numbers via winapi
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
sub rsp, 0x30
mov ecx, dword [0x1402de280]
test ecx, ecx
je 0x1401cada9
dec ecx
call fcn.1401e10b4
cmp rax, 2
jb 0x1401cace0
cmp qword [rax + 8], 0
je 0x1401cace0
add rax, 0x10
jmp 0x1401cada3
mov ecx, dword [0x1402de280]
test ecx, ecx
je 0x1401cadbc
dec ecx
call fcn.1401e10b4
cmp rax, 1
je 0x1401cad83
mov rsi, rax
test rax, rax
jne 0x1401cad53
movzx eax, byte [0x140430330]
mov ecx, 0x20
mov edx, 8
call fcn.140077a60
test rax, rax
je 0x1401cade2
mov rsi, rax
lea rax, [0x1402de268]
mov qword [rsi], rax
mov qword [rsi + 8], 0
mov ecx, dword [0x1402de280]
test ecx, ecx
je 0x1401cadcf
dec ecx
mov rdx, rsi
call fcn.1401e10ac
xorps xmm0, xmm0
movaps xmmword [rsp + 0x20], xmm0
lea rdx, [rsp + 0x20]
xor ecx, ecx
mov r8d, 0x10
mov r9d, 2
call sub.bcrypt.dll_BCryptGenRandom
test eax, eax
js 0x1401cad87
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x28]
jmp 0x1401cad8f
xor eax, eax
jmp 0x1401cada3
call fcn.1401c3a80
mov rcx, rax
mov qword [rsi + 8], 1
lea rax, [rsi + 0x10]
mov qword [rsi + 0x10], rcx
mov qword [rsi + 0x18], rdx
add rsp, 0x30
pop rsi
ret
lea rcx, [0x1402de268]
call fcn.140196c20
mov ecx, eax
jmp 0x1401cacc5
lea rcx, [0x1402de268]
call fcn.140196c20
mov ecx, eax
jmp 0x1401cacf0
lea rcx, [0x1402de268]
call fcn.140196c20
mov ecx, eax
jmp 0x1401cad4b
mov ecx, 8
mov edx, 0x20
call fcn.140099f80
int3

Function at 0x1401cd21e
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov rax, rcx
mov ecx, dword [rcx + 0x18]
test ecx, ecx
je 0x1401cd237
dec ecx
add rsp, 0x28
jmp fcn.1401e10b4
mov rcx, rax
call fcn.140196c20
mov ecx, eax
jmp 0x1401cd22e

Function at 0x1401d1b64
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x28
mov rax, qword [rcx]
mov rdx, rax
xor rdx, 3
lock cmpxchg qword [rcx], rdx
jne 0x1401d1b6b
test al, 1
je 0x1401d1b8a
test al, 2
jne 0x1401d1ba2
xor rax, 3
add rsp, 0x28
ret
lea rcx, str.assertion_failed:_prev.is_running__
lea r8, [0x1403c1f18]
mov edx, 0x23
call fcn.14009e210
lea rcx, str.assertion_failed:__prev.is_complete__
lea r8, [0x1403c1f58]
mov edx, 0x25
call fcn.14009e210
int3

Function at 0x1401d2618
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x30
mov ebx, edx
call fcn.1401d0fee
mov rcx, qword [rax]
movzx eax, bl
lea r9, [rsp + 0x2c]
mov dword [r9], eax
mov dword [rsp + 0x20], 4
mov edx, 6
mov r8d, 1
call sub.ws2_32.dll_setsockopt
cmp eax, 0xffffffff
je 0x1401d2653
xor eax, eax
jmp 0x1401d2660
call sub.ws2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
add rsp, 0x30
pop rbx
ret
Function at 0x1401d2666
Capabilities:
Send data
Send data on socket

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x68
mov rdi, r9
mov rbx, r8
mov r14, rdx
mov qword [rsp + 0x28], rcx
mov rax, qword [rsp + 0xd0]
lea r15, [rsp + 0x3a]
lea r12, [rsp + 0x52]
mov r13, qword [rdx + 0x10]
mov ebp, 0x7fffffff
cmp rax, rbp
cmovb rbp, rax
mov rsi, qword [rdx + 0x18]
mov rax, qword [rdx + 0x20]
mov qword [rsp + 0x58], rax
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x60], rsi
mov rdx, r13
mov r8, rbx
call fcn.1401d2610
mov al, byte [rsp + 0x39]
cmp al, 3
je 0x1401d27dc
mov rcx, qword [rsp + 0x30]
cmp al, 2
je 0x1401d27ea
mov dl, byte [rsp + 0x38]
movzx r8d, word [r15 + 4]
mov word [r12 + 4], r8w
mov r8d, dword [r15]
mov dword [r12], r8d
mov qword [rsp + 0x48], rcx
mov byte [rsp + 0x50], dl
mov byte [rsp + 0x51], al
cmp rsi, 0xffffffffffffffff
je 0x1401d282e
mov rcx, rsi
mov rdx, rdi
mov r8d, ebp
xor r9d, r9d
call sub.ws2_32.dll_send
cmp eax, 0xffffffff
jne 0x1401d27fc
call sub.ws2_32.dll_WSAGetLastError
mov esi, eax
shl rsi, 0x20
or rsi, 2
mov rcx, rsi
call fcn.1401715bb
cmp al, 0xd
jne 0x1401d27a4
mov rax, qword [rsp + 0x58]
test rax, rax
je 0x1401d27a4
mov rcx, qword [rax]
mov rdx, qword [rax + 8]
lock inc qword [rdx]
jle 0x1401d283a
mov rbp, r13
mov r13, r14
add rcx, 0x10
mov r8, qword [rax + 0x10]
mov r9b, byte [rax + 0x18]
call fcn.1400d6ae7
mov r14, rax
xor ecx, ecx
call fcn.1400d50ca
test r14, r14
je 0x1401d2799
mov ecx, 1
mov rdx, rsi
call fcn.1400d6ca9
mov rsi, r14
mov r14, r13
mov r13, rbp
mov rbp, qword [rsp + 0x40]
mov rcx, rsi
call fcn.1401cc554
cmp al, 0xd
jne 0x1401d280d
mov qword [rsp + 0x30], rsi
mov rcx, r14
lea rdx, [rsp + 0x48]
call fcn.1401d23af
lea rsi, [rsp + 0x30]
mov rcx, rsi
call fcn.1401cc4b9
mov rcx, rsi
mov rsi, qword [rsp + 0x60]
jmp 0x1401d26c2
mov rax, qword [rsp + 0x28]
mov qword [rax], 2
jmp 0x1401d281d
mov rax, qword [rsp + 0x28]
mov qword [rax], 1
mov qword [rax + 8], rcx
jmp 0x1401d281d
cdqe
mov rcx, qword [rsp + 0x28]
and qword [rcx], 0
mov qword [rcx + 8], rax
jmp 0x1401d281d
mov rax, qword [rsp + 0x28]
mov qword [rax], 1
mov qword [rax + 8], rsi
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rcx, str.C:UsersEFE.cargo_registry_srcindex.crates.io_6f17d22bba15001f_tokio_1.38.1_srciopoll_evented.rs
call fcn.1400a17b0
ud2
Function at 0x1401e2c60
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.1401e3a20
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.1401e3a20
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x1401e2cd0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1404303b4]
test esi, esi
mov rbx, rcx
jle 0x1401e2e00
mov rax, qword [0x1404303b8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x1401e2d1b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x1401e2da5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x1401e2d00
mov rcx, rbx
call fcn.1401e3740
test rax, rax
mov rdi, rax
je 0x1401e2e22
mov rax, qword [0x1404303b8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.1401e3880
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1404303b8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1401e2e07
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x1401e2d9e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x1401e2db0
add dword [0x1404303b4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov r8d, 0x40
mov eax, 4
mov rcx, qword [rsp + 0x20]
cmove r8d, eax
mov rdx, qword [rsp + 0x38]
add rbx, qword [0x1404303b8]
mov r9, rbx
mov qword [rbx + 8], rcx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1401e2d9e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.1401e2c60
nop dword [rax]
xor esi, esi
jmp 0x1401e2d28
mov rax, qword [0x1404303b8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [rdi + 8]
mov r8, qword [rax + rbx + 0x18]
call fcn.1401e2c60
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call fcn.1401e2c60
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x1401e3390
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140430420]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140430400]
test rbx, rbx
je 0x1401e33ec
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x1401e33e3
test rsi, rsi
je 0x1401e33e3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1401e33c8
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x1401e3600
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [sym.imp.msvcrt.dll_exit]
call qword [rax]
nop
nop
sub rsp, 0x28
mov rax, qword [sym.imp.msvcrt.dll__exit]
call qword [rax]
nop
nop
nop
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x1401e3638
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x1401e3640
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x1401e3610
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [sym.imp.msvcrt.dll_exit]
call qword [rax]
nop
nop
sub rsp, 0x28
mov rax, qword [sym.imp.msvcrt.dll__exit]
call qword [rax]
nop
nop
nop
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x1401e3638
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x1401e3640
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x1401e3620
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [sym.imp.msvcrt.dll_exit]
call qword [rax]
nop
nop
sub rsp, 0x28
mov rax, qword [sym.imp.msvcrt.dll__exit]
call qword [rax]
nop
nop
nop
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x1401e3638
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x1401e3640
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x1401e3740
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1403f5230]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1401e3760
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1401e3768
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1401e3760
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x1401e37bd
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x1401e37b4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1401e3760
add rax, 0x28
cmp rax, r9
jne 0x1401e37a0
xor eax, eax
ret

Function at 0x1401e37c0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1403f5230]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x1401e37df
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1401e37e8
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x1401e37df
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x1401e3880
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1403f5230]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x1401e389f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x1401e38a8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x1401e96f0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x18
mov r11d, 1
mov eax, r8d
mov r10, rcx
mov r15, rdx
inc rax
mov ecx, r9d
mov edx, eax
shl r11, cl
add rdx, rdx
lea rdx, [rdx + r11 + 8]
cmp qword [rsp + 0x88], rdx
mov rdx, 0xffffffffffffffd2
setb dil
cmp r8d, 0xff
seta cl
or dil, cl
jne 0x1401e991f
cmp r9d, 0xc
mov rdx, 0xffffffffffffffd4
ja 0x1401e991f
lea esi, [r8 + 1]
mov edx, 1
mov ecx, r9d
mov dword [rsp + 8], esi
lea rbx, [r10 + 4]
mov r8d, edx
mov esi, 1
shl r8d, cl
movzx ecx, r9w
lea ebp, [r8 - 1]
or ecx, 0x10000
mov r14d, ecx
mov r12d, ecx
lea ecx, [r9 - 1]
shl edx, cl
xor ecx, ecx
mov dword [rsp + 0xc], edx
mov edx, ebp
mov r11w, word [r15 + rcx*2]
cmp r11w, 0xffff
jne 0x1401e97b8
mov r11d, edx
dec edx
mov byte [rbx + r11*4 + 2], cl
mov r11d, 1
jmp 0x1401e97c6
xor edi, edi
cmp r11w, word [rsp + 0xc]
cmovge esi, edi
mov dil, 1
mov r13, qword [rsp + 0x80]
mov word [r13 + rcx*2], r11w
mov r11d, dword [rsp + 8]
inc rcx
cmp ecx, r11d
jb 0x1401e979a
test dil, dil
je 0x1401e97f3
shl esi, 0x10
movzx r14d, r14w
or r14d, esi
mov r12d, r14d
mov r11d, r8d
mov ecx, r8d
mov dword [r10], r12d
shr r11d, 1
shr ecx, 3
cmp edx, ebp
lea ecx, [r11 + rcx + 3]
jne 0x1401e98a6
add rax, rax
xor r11d, r11d
xor ebp, ebp
add rax, qword [rsp + 0x80]
movabs r14, 0x101010101010101
movsx rdi, word [r15 + r11*2]
lea r12, [rax + rbp]
mov r13, r11
imul r13, r14
mov rsi, rdi
mov dword [rsp + 0xc], edi
mov edi, 8
mov qword [r12], r13
cmp dword [rsp + 0xc], edi
jle 0x1401e9859
mov qword [r12 + rdi], r13
add rdi, 8
jmp 0x1401e9849
mov edi, dword [rsp + 8]
inc r11
add rbp, rsi
cmp r11d, edi
jb 0x1401e9829
movsxd rdi, r8d
xor esi, esi
xor r11d, r11d
mov r12b, byte [rax + rsi]
mov rbp, rdx
and rbp, r11
add r11, rcx
mov byte [rbx + rbp*4 + 2], r12b
mov r12b, byte [rax + rsi + 1]
mov rbp, rdx
add rsi, 2
and rbp, r11
add r11, rcx
and r11, rdx
cmp rsi, rdi
mov byte [rbx + rbp*4 + 2], r12b
jb 0x1401e9870
xor r11d, r11d
jmp 0x1401e98e0
xor r11d, r11d
xor eax, eax
movsx edi, word [r15 + r11*2]
xor esi, esi
cmp edi, esi
jle 0x1401e98ca
mov r12d, eax
mov byte [rbx + r12*4 + 2], r11b
add eax, ecx
and eax, ebp
cmp edx, eax
jb 0x1401e98be
inc esi
jmp 0x1401e98b2
mov edi, dword [rsp + 8]
inc r11
cmp r11d, edi
jb 0x1401e98ab
or rdx, 0xffffffffffffffff
test eax, eax
je 0x1401e98a1
jmp 0x1401e991f
movzx edx, byte [r10 + r11*4 + 6]
add rdx, rdx
add rdx, qword [rsp + 0x80]
movzx eax, word [rdx]
lea ecx, [rax + 1]
mov word [rdx], cx
bsr ecx, eax
xor ecx, 0x1f
lea ecx, [r9 + rcx - 0x1f]
shl eax, cl
mov byte [r10 + r11*4 + 7], cl
sub eax, r8d
mov word [r10 + r11*4 + 4], ax
inc r11
cmp r11d, r8d
jb 0x1401e98e0
xor edx, edx
mov rax, rdx
add rsp, 0x18
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x1401eb4e0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x18
mov r11d, 1
xor ebx, ebx
xor r10d, r10d
mov r12d, dword [rsp + 0x88]
mov dword [rsp + 0x78], r9d
lea r13d, [r9 + 1]
mov rdi, rcx
mov ecx, dword [rsp + 0x80]
lea rsi, [rdi + rdx]
mov r9, rdi
lea eax, [rcx + 1]
shl r11d, cl
mov dword [rsp + 4], eax
lea rax, [rsi - 2]
lea edx, [rcx - 5]
mov qword [rsp + 8], rax
mov ecx, 4
lea ebp, [r11 + 1]
cmp r10d, r13d
jae 0x1401eb6b6
cmp ebp, 1
jle 0x1401eb6b6
test ebx, ebx
mov eax, r10d
je 0x1401eb620
mov ebx, r10d
mov r14d, r10d
add rbx, rbx
add rbx, r8
add rbx, 2
cmp word [rbx - 2], 0
jne 0x1401eb57e
lea eax, [r14 + 1]
cmp eax, r13d
jae 0x1401eb583
mov r14d, eax
jmp 0x1401eb565
mov eax, r14d
jmp 0x1401eb58e
cmp dword [rsp + 0x78], r14d
je 0x1401eb676
mov r14d, 0xffff
shl r14d, cl
lea r15d, [r10 + 0x18]
cmp eax, r15d
jb 0x1401eb5d1
add edx, r14d
test r12d, r12d
jne 0x1401eb5bb
cmp qword [rsp + 8], r9
jae 0x1401eb5bb
mov rax, 0xffffffffffffffba
jmp 0x1401eb6e3
movzx ebx, dh
mov byte [r9], dl
mov r10d, r15d
add r9, 2
mov byte [r9 - 1], bl
shr edx, 0x10
jmp 0x1401eb597
lea ebx, [r10 + 3]
lea r14d, [rcx + 2]
cmp eax, ebx
jb 0x1401eb5f1
mov r15d, 3
mov r10d, ebx
shl r15d, cl
mov ecx, r14d
add edx, r15d
jmp 0x1401eb5d1
mov ebx, eax
sub ebx, r10d
shl ebx, cl
add edx, ebx
cmp ecx, 0xe
jle 0x1401eb61d
test r12d, r12d
jne 0x1401eb60d
lea r10, [rsi - 2]
cmp r10, r9
jb 0x1401eb5af
mov word [r9], dx
sub ecx, 0xe
add r9, 2
shr edx, 0x10
jmp 0x1401eb620
mov ecx, r14d
movsx ebx, word [r8 + rax*2]
lea r10d, [rax + 1]
lea r14d, [r11 + r11 - 1]
sub r14d, ebp
mov r15d, ebx
mov eax, ebx
inc ebx
sar r15w, 0xf
xor eax, r15d
sub eax, r15d
movzx eax, ax
sub ebp, eax
cmp r11d, ebx
jg 0x1401eb650
add ebx, r14d
mov eax, ebx
shl eax, cl
add edx, eax
mov eax, dword [rsp + 4]
add ecx, eax
cmp ebx, r14d
setl r14b
movzx r14d, r14b
sub ecx, r14d
dec ebx
sete bl
test ebp, ebp
movzx ebx, bl
jg 0x1401eb67c
or rax, 0xffffffffffffffff
jmp 0x1401eb6e3
cmp r11d, ebp
jle 0x1401eb68a
dec dword [rsp + 4]
sar r11d, 1
jmp 0x1401eb67c
cmp ecx, 0x10
jle 0x1401eb53c
test r12d, r12d
jne 0x1401eb6a3
cmp qword [rsp + 8], r9
jb 0x1401eb5af
mov word [r9], dx
sub ecx, 0x10
add r9, 2
shr edx, 0x10
jmp 0x1401eb53c
dec ebp
jne 0x1401eb676
test r12d, r12d
jne 0x1401eb6cc
sub rsi, 2
cmp rsi, r9
jb 0x1401eb5af
lea eax, [rcx + 7]
mov word [r9], dx
mov ecx, 8
cdq
idiv ecx
cdqe
add rax, r9
sub rax, rdi
add rsp, 0x18
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x14022f2e0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push r13
push r12
push rbp
push rsi
push rbx
sub rsp, 0x30
mov r13, qword [rsp + 0x80]
mov rbp, rdx
mov rsi, rcx
mov rdx, r8
test rbp, rbp
mov r8d, r9d
je 0x14022f37f
mov r12, qword [rcx + 0x80]
mov qword [rsp + 0x28], rdx
mov rcx, r12
call fcn.1402b0ca0
mov rbx, rax
mov eax, 7
test rbx, rbx
je 0x14022f392
mov rdx, qword [rsp + 0x28]
mov r9, rbx
mov r8, rbp
mov rcx, r12
call fcn.1402b9e30
mov eax, dword [rbx + 0x1c]
test ax, ax
je 0x14022f348
cmp word [r12 + 8], ax
jae 0x14022f354
mov ecx, 0x11527
call fcn.140283940
jmp 0x14022f362
mov r8, r13
mov rdx, rbx
mov rcx, rsi
call fcn.14027f300
mov rdx, qword [rsi + 0x80]
mov dword [rsp + 0x28], eax
mov rcx, qword [rdx + 0x10]
mov rdx, rbx
call fcn.140284ed0
mov eax, dword [rsp + 0x28]
jmp 0x14022f392
mov r9, r13
add rsp, 0x30
pop rbx
pop rsi
pop rbp
pop r12
pop r13
jmp fcn.140281820
add rsp, 0x30
pop rbx
pop rsi
pop rbp
pop r12
pop r13
ret
Function at 0x140251c60
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov eax, dword [rdx + 0x48]
lea edi, [rax - 1]
mov rsi, rcx
mov rbx, rdx
test edi, edi
jle 0x140251cbb
mov edx, edi
mov rcx, rbx
call fcn.140251b90
test eax, eax
mov ebp, eax
je 0x140251cb7
cmp dword [rsi + 0x3c], 0
jne 0x140251ca6
cdqe
xor r8d, r8d
mov rcx, rsi
shl rax, 7
lea rdx, [rbx + rax + 0x68]
call qword [rbx + rax + 0x98]
mov r9d, edi
mov r8d, ebp
mov rdx, rbx
mov rcx, rsi
call fcn.140251ab0
dec edi
jmp 0x140251c74
mov rcx, rbx
call fcn.140252860
cmp byte [rbx + 0x50], 0
je 0x140251cf1
mov ecx, dword [rsi + 0x3c]
mov rdx, rbx
call fcn.140251f60
test eax, eax
je 0x140251cf1
xor r9d, r9d
xor r8d, r8d
mov rdx, rbx
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp fcn.140252430
mov rcx, rbx
call fcn.140251e00
test eax, eax
jne 0x140251cd8
cmp byte [rbx + 0x14], 0
jne 0x140251d26
mov rax, qword [rbx + 0x60]
mov rcx, rbx
movzx eax, word [rax + 4]
shl rax, 7
lea rdx, [rbx + rax + 0x68]
mov rax, qword [rbx + 0x40]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp rax
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret
Function at 0x1402562c0
Capabilities:
Reference sql statements

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x98
xor edi, edi
movsxd r12, edx
mov rbp, rcx
mov r14, r8
cmp qword [rcx + r12*8 + 0x28], 0
mov r15, r12
mov r13, r9
jne 0x1402564fa
lea rdi, [rsp + 0x38]
cmp r12d, 0xa
mov ecx, 0x16
lea rsi, str.SELECT__s_FROM__s_T_WHERE_T._Q_____AND_T._Q_____ORDER_BY_T._Q_ASC
rep movsd dword [rdi], dword [rsi]
mov rsi, qword [rbp]
ja case.0x140256322.5
lea rdx, [0x1403ed780]
mov eax, r12d
movsxd rax, dword [rdx + rax*4]
add rax, rdx
jmp rax
mov rdx, qword [rsi + 0x68]
lea rcx, str.SELECT__s_FROM__s_AS_T
mov r8, qword [rsi + 0x48]
call fcn.1402c5500
jmp 0x14025644d
mov r9, qword [rsi + 0x50]
mov r8, qword [rsi + 0x48]
mov rdx, qword [rsi + 0x68]
mov rcx, qword [rsp + r12*8 + 0x38]
mov qword [rsp + 0x28], r9
mov qword [rsp + 0x20], r9
call fcn.1402c5500
jmp 0x140256377
mov rdx, qword [rsi + 0x68]
lea rcx, str.SELECT__s_FROM__s_T_WHERE_T._Q_
mov r9, qword [rsi + 0x50]
mov r8, qword [rsi + 0x48]
call fcn.1402c5500
test rax, rax
mov rbx, rax
mov r9d, 1
jne 0x140256486
jmp 0x1402563aa
mov r15d, dword [rsi + 0x18]
lea ecx, [r15 + r15 + 3]
lea ebx, [r15 + 1]
movsxd rcx, ecx
call fcn.1402c5460
mov rdi, rax
xor eax, eax
test rdi, rdi
jne 0x1402563b4
mov edi, 7
jmp 0x1402564fa
cmp ebx, eax
jle 0x1402563c6
mov byte [rdi + rax*2], 0x3f
mov byte [rdi + rax*2 + 1], 0x2c
inc rax
jmp 0x1402563b4
xor eax, eax
add rbx, rbx
inc r15d
mov rcx, qword [rsp + r12*8 + 0x38]
cmovl rbx, rax
mov r9, rdi
mov byte [rdi + rbx - 1], 0
mov rdx, qword [rsi + 8]
mov r8, qword [rsi + 0x10]
call fcn.1402c5500
mov rcx, rdi
mov rbx, rax
call fcn.1402c4500
jmp 0x1402564ea
cmp dword [rsi + 0x44], 0
lea r9, [0x1403e9300]
mov rdx, qword [rsi + 8]
lea rax, [0x1403ed597]
mov r8, qword [rsi + 0x10]
lea rcx, str.REPLACE_INTO__Q._q_docsize_VALUES_____s_
cmovne r9, rax
jmp 0x140256448
cmp dword [rsi + 0x44], 0
lea rdx, [0x1403e9300]
mov r9, qword [rsi + 0x10]
mov r8, qword [rsi + 8]
lea rax, str._origin
lea rcx, str.SELECT_sz_s_FROM__Q._q_docsize_WHERE_id_
cmovne rdx, rax
call fcn.1402c5500
mov rbx, rax
jmp 0x1402564ea
mov rdx, qword [rsi + 8]
mov rcx, qword [rsp + r12*8 + 0x38]
mov r8, qword [rsi + 0x10]
call fcn.1402c5500
test rax, rax
mov rbx, rax
je 0x1402563aa
xor r9d, r9d
cmp r15d, 2
setg r9b
lea r9d, [r9*4 + 1]
mov rax, qword [rbp]
or r8d, 0xffffffff
mov rdx, rbx
inc dword [rax + 0x80]
xor eax, eax
mov qword [rsp + 0x28], rax
lea rax, [rbp + r12*8 + 0x28]
mov qword [rsp + 0x20], rax
mov rcx, qword [rsi]
call fcn.1402c5930
mov rcx, rbx
mov edi, eax
mov rax, qword [rbp]
dec dword [rax + 0x80]
call fcn.1402c4500
test edi, edi
je 0x1402564fa
test r13, r13
je 0x1402564fa
mov rcx, qword [rsi]
call fcn.1402c3d00
lea rcx, [0x1403ea385]
mov rdx, rax
call fcn.1402c5500
mov qword [r13], rax
jmp 0x1402564fa
test rbx, rbx
mov r9d, 5
jne 0x140256486
jmp 0x1402563aa
mov rcx, qword [rbp + r12*8 + 0x28]
mov qword [r14], rcx
call fcn.1402c5f30
mov eax, edi
add rsp, 0x98
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret