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

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x80
mov rax, qword [0x1400ec780]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov rax, rdx
mov rdi, rcx
mov qword [rsp + 0x68], rcx
xor r14d, r14d
cmp qword [rdx + 0x18], 0xf
jbe 0x1400039fc
mov rax, qword [rdx]
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [r9 + 1]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbp, rax
cmp rax, 0xffffffffffffffff
je 0x140003a4a
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp eax, 0xffffffff
jne 0x140003a6f
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], r14
mov qword [rdi + 0x18], r14
xor r8d, r8d
lea rdx, [0x1400db1e0]
mov rcx, rdi
call fcn.1400037e0
jmp 0x140003b7c
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
mov qword [rsp + 0x58], r14
mov qword [rsp + 0x60], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x48], r14b
mov rbx, rsi
test eax, eax
jne 0x140003a9c
mov qword [rsp + 0x58], rbx
mov byte [rsp + rsi + 0x48], al
jmp 0x140003ad3
lea rcx, [rsp + 0x48]
cmp rbx, 0xf
ja 0x140003abd
mov qword [rsp + 0x58], rbx
mov r8, rbx
xor edx, edx
call fcn.1400b7960
mov byte [rsp + rsi + 0x48], 0
jmp 0x140003ad3
mov byte [rsp + 0x20], 0
mov r9, rbx
movzx r8d, byte [rsp + 0x40]
mov rdx, rbx
call fcn.1400170b0
lea rdx, [rsp + 0x48]
cmp qword [rsp + 0x60], 0xf
cmova rdx, qword [rsp + 0x48]
mov qword [rsp + 0x20], r14
lea r9, [rsp + 0x68]
mov r8d, esi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov ebx, eax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x140003b22
cmp dword [rsp + 0x68], esi
jne 0x140003b22
movups xmm0, xmmword [rsp + 0x48]
movups xmmword [rdi], xmm0
movups xmm1, xmmword [rsp + 0x58]
movups xmmword [rdi + 0x10], xmm1
jmp 0x140003b7c
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], r14
mov qword [rdi + 0x18], r14
xor r8d, r8d
lea rdx, [0x1400db1e0]
mov rcx, rdi
call fcn.1400037e0
nop
mov rdx, qword [rsp + 0x60]
cmp rdx, 0xf
jbe 0x140003b7c
inc rdx
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003b77
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140003ba4
call fcn.140084d80
mov rax, rdi
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140084d60
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
call fcn.14008e520
int3
Function at 0x140011150
Capabilities:
Move file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x47]
sub rsp, 0xc0
mov rax, qword [0x1400ec780]
xor rax, rsp
mov qword [rbp + 0x37], rax
mov rbx, r9
mov rdi, r8
mov rsi, rcx
mov qword [rbp - 0x19], r8
mov qword [rbp - 0x11], rbx
xorps xmm0, xmm0
movups xmmword [rbp - 9], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 7], xmm1
xor edx, edx
mov r8d, 0x104
lea rcx, [rbp - 9]
call fcn.140016750
nop
lea rdx, [rbp - 9]
cmp qword [rbp + 0xf], 7
cmova rdx, qword [rbp - 9]
mov r8d, dword [rbp + 7]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov rdx, rbx
cmp qword [rbx + 0x18], 7
jbe 0x1400111d1
mov rdx, qword [rbx]
lea rcx, [rbp - 9]
cmp qword [rbp + 0xf], 7
cmova rcx, qword [rbp - 9]
call qword [sym.imp.KERNEL32.dll_MoveFileW]
xor r14d, r14d
mov qword [rbp - 0x21], r14
mov rdx, rdi
lea rcx, [rbp - 0x41]
call fcn.140013610
mov r9, rax
mov rdx, rsi
lea rcx, [rbp + 0x17]
call fcn.140010960
lea rdx, [rbp + 0x17]
cmp qword [rbp + 0x2f], 7
cmova rdx, qword [rbp + 0x17]
lea rax, [rbp - 0x21]
mov qword [rsp + 0x20], rax
mov r9d, 0xf003f
xor r8d, r8d
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov rsi, qword [rbp - 0x21]
mov rdx, qword [rbp + 0x2f]
cmp rdx, 7
jbe 0x140011278
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x17]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140011273
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400113a9
call fcn.140084d80
movdqa xmm0, xmmword [0x1400dc420]
movdqu xmmword [rbp + 0x27], xmm0
mov word [rbp + 0x17], r14w
mov rdx, qword [rbp + 0xf]
cmp rdx, 7
jbe 0x1400112ca
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 9]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400112c5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400113af
call fcn.140084d80
movdqa xmm0, xmmword [0x1400dc420]
movdqu xmmword [rbp + 7], xmm0
mov word [rbp - 9], r14w
mov rdx, qword [rdi + 0x18]
cmp rdx, 7
jbe 0x14001131b
mov rcx, qword [rdi]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x140011316
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14001139d
mov rcx, r8
call fcn.140084d80
mov qword [rdi + 0x10], r14
mov qword [rdi + 0x18], 7
mov word [rdi], r14w
mov rdx, qword [rbx + 0x18]
cmp rdx, 7
jbe 0x140011366
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x140011361
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1400113a3
mov rcx, r8
call fcn.140084d80
mov qword [rbx + 0x10], r14
mov qword [rbx + 0x18], 7
mov word [rbx], r14w
mov rax, rsi
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.140084d60
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
call fcn.14008e520
nop
call fcn.14008e520
nop
call fcn.14008e520
nop
call fcn.14008e520
int3
Function at 0x1400119f0
Capabilities:
Check if file exists
Check mutex on windows
Create directory
Get file attributes

Disassembly:
push rbx
sub rsp, 0x80
mov rax, qword [0x1400ec780]
xor rax, rsp
mov qword [rsp + 0x78], rax
xor r8d, r8d
mov qword [rsp + 0x50], 0xffffffffee1e5d00
xor ecx, ecx
lea edx, [r8 + 1]
call qword [sym.imp.KERNEL32.dll_CreateWaitableTimerW]
xor r9d, r9d
lea rdx, [rsp + 0x50]
mov rbx, rax
xor r8d, r8d
xor eax, eax
mov rcx, rbx
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_SetWaitableTimer]
mov edx, 0xffffffff
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xorps xmm0, xmm0
lea rdx, str.xxxBBBxxxYYYY
xorps xmm1, xmm1
lea rcx, [rsp + 0x58]
mov r8d, reloc.WS2_32.dll_listen
movups xmmword [rsp + 0x58], xmm0
movdqu xmmword [rsp + 0x68], xmm1
call fcn.140016890
cmp qword [rsp + 0x70], 7
lea r8, [rsp + 0x58]
cmova r8, qword [rsp + 0x58]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x140011b85
cmp qword [0x1400f00b8], 7
lea rbx, [0x1400f00a0]
mov rcx, rbx
cmova rcx, qword [0x1400f00a0]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140011ada
test al, 0x10
jne 0x140011b80
call fcn.1400113c0
cmp qword [0x1400f00b8], 7
mov rcx, rbx
cmova rcx, qword [0x1400f00a0]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140011b01
test al, 0x10
jne 0x140011b1c
cmp qword [0x1400f00b8], 7
mov rcx, rbx
cmova rcx, qword [0x1400f00a0]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
xor ecx, ecx
call fcn.140004940
mov ecx, 1
call fcn.140004940
mov ecx, 2
call fcn.140004940
call fcn.14000af80
call fcn.14000fc50
cmp qword [0x1400f00b8], 7
lea rcx, [rsp + 0x30]
mov r8, qword [0x1400f00b0]
xorps xmm0, xmm0
cmova rbx, qword [0x1400f00a0]
xorps xmm1, xmm1
mov rdx, rbx
movups xmmword [rsp + 0x30], xmm0
movdqu xmmword [rsp + 0x40], xmm1
call fcn.140016890
lea rcx, [rsp + 0x30]
call fcn.1400117e0
call fcn.14000c5b0
mov rdx, qword [rsp + 0x70]
cmp rdx, 7
jbe 0x140011bc3
mov rcx, qword [rsp + 0x58]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140011bbe
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140011bdb
call fcn.140084d80
xor eax, eax
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140084d60
add rsp, 0x80
pop rbx
ret
call fcn.14008e520
int3
Function at 0x1400122a0
Capabilities:
Read file on windows

Disassembly:
push rbx
push rsi
push r14
sub rsp, 0x30
mov r14, r8
mov rsi, rdx
mov rbx, rcx
test r8, r8
jg 0x1400122c2
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rdi
je 0x14001233c
mov rdi, r14
mov rcx, rbx
call fcn.140014470
test rax, rax
jle 0x140012314
cmp rdi, rax
mov rbp, rdi
mov rcx, rsi
cmovge rbp, rax
mov rax, qword [rbx + 0x38]
mov r8, rbp
mov rdx, qword [rax]
call fcn.1400b72c0
mov rax, qword [rbx + 0x50]
sub rdi, rbp
sub dword [rax], ebp
mov rcx, qword [rbx + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x14001232c
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + gethostname]
cmp eax, 0xffffffff
je 0x140012334
mov byte [rsi], al
dec rdi
mov ebp, 1
add rsi, rbp
test rdi, rdi
jg 0x1400122d6
sub r14, rdi
jmp 0x14001241f
mov rax, qword [rcx + 0x38]
mov rbp, r14
mov rdx, qword [rax]
test rdx, rdx
je 0x140012353
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140012355
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140012387
cmp rax, r14
mov rdi, r14
mov rcx, rsi
cmovb rdi, rax
mov r8, rdi
call fcn.1400b72c0
mov rax, qword [rbx + 0x50]
add rsi, rdi
sub rbp, rdi
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x14001241c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x1400123c2
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
cmp rbp, 0xfff
jbe 0x1400123fd
nop dword [rax + rax]
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rsi
call fcn.14008dd10
add rsi, rax
sub rbp, rax
cmp rax, 0xfff
jne 0x14001241c
cmp rbp, rax
ja 0x1400123d0
test rbp, rbp
je 0x14001241c
mov r9, qword [rbx + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, rsi
call fcn.14008dd10
sub rbp, rax
sub r14, rbp
mov rbp, qword [rsp + 0x28]
mov rax, r14
mov rdi, qword [rsp + 0x20]
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret

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

Disassembly:
movabs rax, 0xcbf29ce484222325
mov r9d, 0
sub r8, rdx
je 0x140019d94
movabs r10, 0x100000001b3
nop
movzx ecx, byte [r9 + rdx]
inc r9
xor rax, rcx
imul rax, r10
cmp r9, r8
jb 0x140019d80
ret
Function at 0x14001a670
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 8
mov r9, rcx
mov r10d, 0x270
mov ecx, dword [rcx]
cmp ecx, r10d
jne 0x14001a6d1
lea r8, [r9 + 8]
nop dword [rax + rax]
mov edx, dword [r8 - 4]
xor edx, dword [r8]
lea r8, [r8 + 4]
btr edx, 0x1f
xor edx, dword [r8 - 8]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x62c]
xor ecx, edx
mov dword [r8 + 0x9b8], ecx
sub r10, 1
jne 0x14001a690
mov ecx, dword [r9]
jmp 0x14001a7b8
cmp ecx, 0x4e0
jb 0x14001a7b8
lea r10, [r9 + 0x9c4]
mov qword [rsp], rbx
mov r11d, dword [r10]
mov ebx, 0xe3
mov eax, r11d
mov r11d, dword [r10 + 4]
mov edx, r11d
lea r10, [r10 + 4]
xor edx, eax
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r10 + 0x630]
xor ecx, edx
mov dword [r10 - 0x9c4], ecx
sub rbx, 1
jne 0x14001a6f0
lea r10, [r9 + 0xd50]
mov ebx, 0x18c
mov r11d, dword [r10]
nop dword [rax + rax]
mov eax, r11d
mov r11d, dword [r10 + 4]
mov edx, r11d
lea r10, [r10 + 4]
xor edx, eax
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r10 - 0xd50]
xor ecx, edx
mov dword [r10 - 0x9c4], ecx
sub rbx, 1
jne 0x14001a740
mov eax, dword [r9 + 0x1380]
mov edx, eax
xor edx, dword [r9 + 4]
mov rbx, qword [rsp]
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r9 + 0x634]
xor ecx, edx
mov dword [r9 + 0x9c0], ecx
xor ecx, ecx
mov dword [r9], ecx
mov eax, ecx
mov edx, dword [r9 + rax*4 + 4]
lea eax, [rcx + 1]
mov dword [r9], eax
mov ecx, edx
mov eax, dword [r9 + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
add rsp, 8
ret
Function at 0x14001e970
Capabilities:
Validate payment card number using luhn algorithm

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov dword [rcx + 0x74], 0
mov rbx, rcx
mov edi, 0x7fffffff
movsx ecx, byte [rbx + 0x78]
lea eax, [rcx - 0x30]
cmp al, 9
ja 0x14001ea3c
lea r8d, [rcx - 0x30]
cmp r8d, 0xffffffff
je 0x14001ea3c
mov r9d, dword [rbx + 0x74]
mov ecx, 0x7fffffff
sub ecx, r8d
mov eax, 0x66666667
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp r9d, edx
jg 0x14001ea55
lea eax, [r9 + r9*4]
dec edi
lea ecx, [r8 + rax*2]
mov rax, qword [rbx]
mov dword [rbx + 0x74], ecx
mov rcx, qword [rbx + 0x10]
cmp rax, rcx
je 0x14001ea2c
cmp byte [rax], 0x5c
jne 0x14001ea26
lea rdx, [rax + 1]
cmp rdx, rcx
je 0x14001ea26
mov r8d, dword [rbx + 0x80]
test r8b, 8
jne 0x14001ea12
movzx ecx, byte [rdx]
sub cl, 0x28
cmp cl, 1
jbe 0x14001ea23
test r8b, 0x10
jne 0x14001ea26
movzx ecx, byte [rdx]
sub cl, 0x7b
test cl, 0xfd
jne 0x14001ea26
mov rax, rdx
inc rax
mov qword [rbx], rax
mov rcx, rbx
call fcn.14001b320
test edi, edi
jne 0x14001e990
mov rbx, qword [rsp + 0x30]
cmp edi, 0x7fffffff
mov rsi, qword [rsp + 0x38]
setne al
add rsp, 0x20
pop rdi
ret
mov edx, esi
call fcn.14001b310
int3
Function at 0x140029940
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 0x140029a1b
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.140033e00
cmp eax, 4
je 0x140029998
mov edx, eax
jmp 0x1400299c5
cmp byte [0x1400ee544], r14b
jne 0x1400299cf
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 0x140029a1d
mov eax, dword [rsp + 0x50]
jmp 0x1400299ee
imul eax, dword [0x1400ee540], 0x41c64e6d
mov edx, r14d
add eax, 0x3039
mov dword [0x1400ee540], eax
ror eax, 0x10
mov dword [rsp + 0x50], eax
test rdi, rdi
je 0x140029a12
sub rsi, rdi
nop word [rax + rax]
mov byte [rbx], al
inc rbx
shr eax, 8
sub rdi, 1
jne 0x140029a00
mov dword [rsp + 0x50], eax
test rsi, rsi
jne 0x140029970
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 0x140029a30
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 rdi, r8
mov rsi, rdx
mov rbx, rcx
sub rdi, 1
je 0x140029ad3
xor ebp, ebp
lea r14, [0x1400bf288]
nop
mov r8d, 4
lea rdx, [rsp + 0x50]
mov rcx, rbx
call fcn.140033e00
cmp eax, 4
jne 0x140029a9f
cmp byte [0x1400ee544], bpl
jne 0x140029aeb
lea r9d, [rax - 2]
mov dword [rsp + 0x50], ebp
mov r8d, eax
lea rdx, [rsp + 0x50]
xor ecx, ecx
call sub.bcrypt.dll_BCryptGenRandom
neg eax
sbb eax, eax
and eax, 2
test eax, eax
jne 0x140029ad8
mov ecx, dword [rsp + 0x50]
cmp ecx, 0xfffffffc
jae 0x140029a60
mov eax, 0x8421085
mul ecx
mov eax, ecx
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 5
imul eax, eax, 0x3e
sub ecx, eax
movzx eax, byte [rcx + r14]
mov byte [rsi], al
inc rsi
sub rdi, 1
jne 0x140029a60
mov byte [rsi], 0
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret
imul ecx, dword [0x1400ee540], 0x41c64e6d
add ecx, 0x3039
mov dword [0x1400ee540], ecx
ror ecx, 0x10
mov dword [rsp + 0x50], ecx
jmp 0x140029aa7
Function at 0x14002f690
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
je 0x14002f772
call fcn.140042ff0
test al, al
jne 0x14002f772
mov qword [rsp + 0x30], rsi
xor esi, esi
mov qword [rsp + 0x38], rdi
mov rdi, 0xffffffffffffffff
inc rdi
cmp byte [rbx + rdi], sil
jne 0x14002f6c2
mov r8, rdi
mov edx, 0x2e
mov rcx, rbx
call fcn.14004cc00
test rax, rax
je 0x14002f707
sub rax, rbx
mov edx, 0x2e
mov r8, rax
mov rcx, rbx
call fcn.14004cc00
mov rsi, rax
test rax, rax
je 0x14002f707
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 0x14002f73b
nop dword [rax]
movzx ecx, byte [rbx]
call fcn.140027b70
imul rdi, rdi, 0x21
movsx rcx, al
inc rbx
xor rdi, rcx
cmp rbx, rsi
jb 0x14002f720
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
Function at 0x140033ab0
Capabilities:
Convert ip address from string

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x40
mov rax, qword [0x1400ec780]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov r14, qword [rdx + 0x10]
mov rbx, rcx
mov rax, qword [rdx + 0x18]
lea rcx, str.SSL_PROXY
cmp qword [rdx], rcx
jne 0x140033af7
mov rdi, qword [rax + 0xd8]
mov rsi, qword [rax + 0xe0]
mov ebp, dword [rax + 0xe8]
jmp 0x140033b05
mov rdi, qword [rax + 0x50]
mov rsi, qword [rax + 0x58]
mov ebp, dword [rax + 0x6d0]
mov qword [rsp + 0x80], r15
test rdi, rdi
je 0x140033ccb
mov r9, qword [rbx]
test r9, r9
je 0x140033b4b
mov r8, r9
mov rax, rdi
sub r8, rdi
nop word [rax + rax]
movzx edx, byte [rax]
movzx ecx, byte [rax + r8]
sub edx, ecx
jne 0x140033b43
inc rax
test ecx, ecx
jne 0x140033b30
test edx, edx
je 0x140033ccb
mov rcx, qword [rbx + 8]
cmp rcx, r9
je 0x140033b5a
call qword [fcn.14008d8ec]
mov rcx, qword [rbx + 0x10]
call qword [fcn.14008d8ec]
mov rcx, qword [rbx]
call qword [fcn.14008d8ec]
xor r15d, r15d
mov rcx, rdi
mov qword [rbx + 8], r15
mov qword [rbx + 0x10], r15
mov qword [rbx], r15
mov byte [rbx + 0x18], r15b
call qword [str.L__n_]
mov qword [rbx], rax
mov rcx, rax
test rax, rax
jne 0x140033bce
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x140033ba2
call qword [fcn.14008d8ec]
mov rcx, qword [rbx + 0x10]
call qword [fcn.14008d8ec]
mov rcx, qword [rbx]
call qword [fcn.14008d8ec]
mov eax, 0x1b
mov qword [rbx + 8], r15
mov qword [rbx + 0x10], r15
mov qword [rbx], r15
mov byte [rbx + 0x18], r15b
jmp 0x140033cd1
test rsi, rsi
je 0x140033c12
mov r8, rsi
sub r8, rdi
nop dword [rax]
movzx edx, byte [rdi]
movzx eax, byte [rdi + r8]
sub edx, eax
jne 0x140033bf3
inc rdi
test eax, eax
jne 0x140033be0
test edx, edx
je 0x140033c12
mov rcx, rsi
call qword [str.L__n_]
mov qword [rbx + 8], rax
test rax, rax
jne 0x140033c16
cmp qword [rbx], r15
je 0x140033ba2
xor ecx, ecx
jmp 0x140033b9c
mov qword [rbx + 8], rcx
mov rdi, qword [rbx]
mov qword [rbx + 0x10], r15
test rdi, rdi
je 0x140033c57
cmp byte [rdi], r15b
je 0x140033c57
lea r8, [rsp + 0x20]
mov rdx, rdi
mov ecx, 2
call qword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
jne 0x140033c53
lea r8, [rsp + 0x20]
mov rdx, rdi
lea ecx, [rax + 0x17]
call qword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
je 0x140033c57
mov cl, 1
jmp 0x140033c59
xor cl, cl
mov rax, qword [rbx]
mov byte [rbx + 0x18], cl
cmp byte [rax], r15b
je 0x140033ccb
test cl, cl
jne 0x140033ccb
mov rdi, 0xffffffffffffffff
nop
inc rdi
cmp byte [rax + rdi], r15b
jne 0x140033c70
test rdi, rdi
je 0x140033c88
cmp byte [rax + rdi - 1], 0x2e
jne 0x140033c88
dec rdi
cmp rdi, 0xffff
jae 0x140033ccb
lea rdx, [rdi + 1]
mov ecx, 1
call qword [case.0x140030acb.3]
mov qword [rbx + 0x10], rax
test rax, rax
jne 0x140033cb5
mov rcx, qword [rbx + 8]
cmp rcx, qword [rbx]
jmp 0x140033b9a
mov rdx, qword [rbx]
mov r8, rdi
mov rcx, rax
call fcn.140027bc0
mov rax, qword [rbx + 0x10]
mov byte [rdi + rax], r15b
mov dword [r14 + 0x50], ebp
xor eax, eax
mov r15, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140084d60
add rsp, 0x40
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14003cf90
Capabilities:
Get common file path

Disassembly:
push rbx
push rbp
push rdi
sub rsp, 0x20
mov rbx, rcx
xor ebp, ebp
lea rcx, str.kernel32
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rdi, rax
test rax, rax
jne 0x14003cfba
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
lea rdx, [0x1400c0e18]
mov qword [rsp + 0x48], r14
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, [0x1400c0e28]
mov rcx, rbx
mov r14, rax
call fcn.140096940
test rax, rax
je 0x14003d019
mov rcx, rbx
test r14, r14
je 0x14003d006
xor edx, edx
lea r8d, [rdx + 8]
mov rax, r14
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
pop rbp
pop rbx
jmp rax
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
pop rbp
pop rbx
jmp qword [sym.imp.KERNEL32.dll_LoadLibraryW]
test r14, r14
je 0x14003d050
lea rdx, str.AddDllDirectory
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14003d050
xor edx, edx
mov r8d, 0x800
mov rcx, rbx
mov rax, r14
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
pop rbp
pop rbx
jmp rax
xor edx, edx
mov qword [rsp + 0x50], r15
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov r15d, eax
test eax, eax
je 0x14003d11a
mov rdi, 0xffffffffffffffff
mov qword [rsp + 0x40], rsi
mov rdx, rdi
nop dword [rax]
inc rdx
cmp word [rbx + rdx*2], bp
jne 0x14003d080
lea ecx, [rax + 1]
add rcx, rdx
add rcx, rcx
call qword [section..data]
mov rsi, rax
test rax, rax
je 0x14003d10c
mov edx, r15d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x14003d10c
mov rax, rdi
cmp word [rsi + rax*2 + 2], bp
lea rax, [rax + 1]
jne 0x14003d0b3
mov dword [rsi + rax*2], 0x5c
cmp word [rsi + rdi*2 + 2], bp
lea rdi, [rdi + 1]
jne 0x14003d0c5
lea rcx, [rdi + rdi]
sub rcx, rbx
add rcx, rsi
nop word [rax + rax]
movzx eax, word [rbx]
mov word [rcx + rbx], ax
lea rbx, [rbx + 2]
test ax, ax
jne 0x14003d0e0
mov rcx, rsi
test r14, r14
je 0x14003d103
xor edx, edx
lea r8d, [rdx + 8]
call r14
jmp 0x14003d109
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rbp, rax
mov rcx, rsi
call qword [fcn.14008d8ec]
mov rsi, qword [rsp + 0x40]
mov r15, qword [rsp + 0x50]
mov rax, rbp
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret