joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140005080
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x13f0
call fcn.140157ed0
sub rsp, rax
mov rax, qword [0x14019d3c0]
xor rax, rsp
mov qword [rsp + 0x13e0], rax
mov rbx, rcx
mov qword [rsp + 0x28], rcx
xor edi, edi
mov dword [rsp + 0x20], edi
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x48], rdi
mov r8d, 0x3e
lea rdx, str.0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz
lea rcx, [rsp + 0x30]
call fcn.140001270
nop
call qword [sym.imp.MSVCP140.dll_unsigned_int___cdecl_std::_Random_device_void_]
mov edx, eax
mov dword [rsp + 0x13d4], 0xffffffff
mov dword [rsp + 0x54], eax
mov ecx, 1
nop dword [rax + rax]
mov eax, edx
shr eax, 0x1e
xor eax, edx
imul edx, eax, 0x6c078965
add edx, ecx
mov dword [rsp + rcx*4 + 0x54], edx
inc rcx
cmp rcx, 0x270
jb 0x140005110
mov dword [rsp + 0x50], 0x270
mov r14d, dword [rsp + 0x40]
dec r14d
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rdi
mov qword [rbx + 0x18], rdi
xor r8d, r8d
lea rdx, [0x14017ef61]
mov rcx, rbx
call fcn.140001270
mov dword [rsp + 0x20], 1
mov r12d, 0x80000000
xor r14d, r12d
mov ebp, 0xa
mov r13, qword [rsp + 0x48]
mov r15, qword [rsp + 0x30]
nop
lea rcx, [rsp + 0x50]
cmp r14d, 0x7fffffff
jne 0x140005197
call fcn.140016c70
mov ecx, eax
jmp 0x1400051d8
lea edi, [r14 - 0x7fffffff]
call fcn.140016c70
mov esi, edi
mov ecx, eax
imul rcx, rsi
cmp ecx, edi
jae 0x1400051d4
mov eax, edi
neg eax
xor edx, edx
div edi
mov edi, edx
cmp ecx, edx
jae 0x1400051d4
nop dword [rax]
lea rcx, [rsp + 0x50]
call fcn.140016c70
mov ecx, eax
imul rcx, rsi
cmp ecx, edi
jb 0x1400051c0
shr rcx, 0x20
lea eax, [rcx + r12]
xor eax, r12d
lea rcx, [rsp + 0x30]
cmp r13, 0xf
cmova rcx, r15
cdqe
movzx r9d, byte [rax + rcx]
mov rcx, qword [rbx + 0x10]
mov rdx, qword [rbx + 0x18]
cmp rcx, rdx
jae 0x14000521f
lea rax, [rcx + 1]
mov qword [rbx + 0x10], rax
mov rax, rbx
cmp rdx, 0xf
jbe 0x140005214
mov rax, qword [rbx]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x140005227
mov rcx, rbx
call fcn.140002120
sub rbp, 1
jne 0x140005180
cmp r13, 0xf
jbe 0x14000526b
lea rdx, [r13 + 1]
mov rax, r15
cmp rdx, 0x1000
jb 0x140005263
add rdx, 0x27
mov r15, qword [r15 - 8]
sub rax, r15
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140005263
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r15
call fcn.140157d3c
mov rax, rbx
mov rcx, qword [rsp + 0x13e0]
xor rcx, rsp
call fcn.140157800
lea r11, [rsp + 0x13f0]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x140007600
Capabilities:
Get system firmware table

Disassembly:
push rbx
push rsi
mov eax, 0x100d8
call fcn.140157ed0
sub rsp, rax
mov rax, qword [0x14019d3c0]
xor rax, rsp
mov qword [rsp + 0x100b0], rax
mov rsi, rcx
xor edx, edx
lea rcx, [rsp + 0xb0]
mov r8d, 0x10000
call fcn.1401585e8
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov ecx, 0x52534d42
call qword [sym.imp.KERNEL32.dll_GetSystemFirmwareTable]
mov ebx, eax
test eax, eax
je 0x1400076b6
mov r9d, eax
lea r8, [rsp + 0xb0]
xor edx, edx
mov ecx, 0x52534d42
call qword [sym.imp.KERNEL32.dll_GetSystemFirmwareTable]
test eax, eax
je 0x1400076b6
mov r8d, dword [rsp + 0xb4]
lea eax, [rbx - 8]
cmp r8d, eax
jne 0x1400076b6
xor edx, edx
lea rax, [rsp + 0xb8]
test r8d, r8d
je 0x1400076b6
nop
cmp byte [rax], 1
je 0x1400076d2
movzx ecx, byte [rax + 1]
add rax, rcx
cmp word [rax], 0
je 0x1400076ab
inc rax
cmp word [rax], 0
jne 0x1400076a2
add rax, 2
inc edx
cmp edx, r8d
jb 0x140007690
xor eax, eax
mov rcx, qword [rsp + 0x100b0]
xor rcx, rsp
call fcn.140157800
add rsp, 0x100d8
pop rsi
pop rbx
ret
movzx ecx, byte [rax + 0x12]
movzx edx, byte [rsp + 0xb1]
mov qword [rsp + 0x100f8], rbp
movzx ebp, byte [rax + 0x17]
mov qword [rsp + 0x10100], rdi
mov qword [rsp + 0x10108], r12
movzx r12d, byte [rax + 0x14]
mov dword [rsp + 0x90], ebp
mov dword [rsp + 0xa0], ecx
movzx ecx, byte [rax + 0x11]
mov qword [rsp + 0x100d0], r13
movzx r13d, byte [rax + 0x13]
mov dword [rsp + 0xa4], ecx
movzx ecx, byte [rax + 0x10]
mov qword [rsp + 0x100c8], r14
movzx r14d, byte [rax + 0x16]
mov dword [rsp + 0x88], r14d
shl edx, 8
mov dword [rsp + 0xa8], ecx
movzx ecx, byte [rsp + 0xb2]
mov qword [rsp + 0x100c0], r15
add edx, ecx
movzx r15d, byte [rax + 0x15]
mov dword [rsp + 0x80], r15d
mov dword [rsp + 0x78], r12d
mov dword [rsp + 0x70], r13d
cmp edx, 0x206
jb 0x14000779f
movzx ecx, byte [rax + 0xe]
movzx edx, byte [rax + 0xf]
movzx r8d, byte [rax + 0xc]
movzx r10d, byte [rax + 0xd]
movzx r11d, byte [rax + 8]
movzx ebx, byte [rax + 9]
movzx edi, byte [rax + 0xa]
movzx r9d, byte [rax + 0xb]
jmp 0x1400077c3
movzx ecx, byte [rax + 0xf]
movzx edx, byte [rax + 0xe]
movzx r8d, byte [rax + 0xd]
movzx r10d, byte [rax + 0xc]
movzx r11d, byte [rax + 0xb]
movzx ebx, byte [rax + 0xa]
movzx edi, byte [rax + 9]
movzx r9d, byte [rax + 8]
mov eax, dword [rsp + 0xa0]
mov dword [rsp + 0x68], eax
mov eax, dword [rsp + 0xa4]
mov dword [rsp + 0x60], eax
mov eax, dword [rsp + 0xa8]
mov dword [rsp + 0x58], eax
mov dword [rsp + 0x50], ecx
mov rcx, rsi
mov dword [rsp + 0x48], edx
mov edx, 0x64
mov dword [rsp + 0x40], r8d
lea r8, str._02X_02X_02X_02X__02X_02X__02X_02X__02X_02X__02X_02X_02X_02X_02X_02X
mov dword [rsp + 0x38], r10d
mov dword [rsp + 0x30], r11d
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], edi
call fcn.1400022a0
mov r15, qword [rsp + 0x100c0]
mov rax, rsi
mov r14, qword [rsp + 0x100c8]
mov r13, qword [rsp + 0x100d0]
mov r12, qword [rsp + 0x10108]
mov rdi, qword [rsp + 0x10100]
mov rbp, qword [rsp + 0x100f8]
jmp 0x1400076b8
Function at 0x140008640
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r15, rdx
mov rdi, rcx
je 0x140008668
add rsp, 0x20
pop r15
pop rdi
pop rbx
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x40]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov rsi, rbx
mov qword [rsp + 0x58], r14
mov r9, qword [rax]
test r9, r9
je 0x14000868e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140008690
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x1400086e9
test ecx, ecx
jle 0x1400086c9
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
add r15, rbp
sub rbx, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x1400086e9
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x1400086e9
mov r8, rbx
mov edx, 1
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov r14, qword [rsp + 0x58]
sub rsi, rbx
mov rbp, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop rdi
pop rbx
ret

Function at 0x140008710
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x30
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x140008732
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x140008748
add rsp, 0x30
pop r14
pop rsi
pop rbp
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x38]
mov qword [rsp + 0x28], rbx
mov rbx, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x140008764
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140008766
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x1400087a2
mov qword [rsp + 0x20], rdi
cmp rax, rbp
mov rdi, rbp
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
add r14, rdi
sub rbx, rdi
sub dword [rax], edi
mov rcx, qword [rsi + 0x38]
movsxd rax, edi
mov rdi, qword [rsp + 0x20]
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x14000883e
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x1400087dd
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
cmp rbx, 0xfff
jbe 0x14000881e
nop word [rax + rax]
mov r9, qword [rsi + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add r14, rax
sub rbx, rax
cmp rax, 0xfff
jne 0x14000883e
cmp rbx, rax
ja 0x1400087f0
test rbx, rbx
je 0x14000883e
mov r9, qword [rsi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
sub rbp, rbx
mov rbx, qword [rsp + 0x28]
mov rax, rbp
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
Function at 0x140008ca0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x14019d3c0]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x140008ccd
xor eax, eax
jmp 0x140008e39
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x140008d07
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x140008d07
lea ecx, [r8 - 1]
mov dword [rax], ecx
mov eax, edi
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], dil
jmp 0x140008e39
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x140008e2c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x140008d4a
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
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x140008d75
mov rdx, qword [rbx + 0x80]
movsx ecx, dil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x140008e31
lea rax, [rsp + 0x40]
mov byte [rsp + 0x50], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x51]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x50]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__char_const____ptr64__char_const____ptr64__char_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140008de4
sub eax, 1
je 0x140008de4
cmp eax, 2
jne 0x140008e2c
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x140008e31
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140008e12
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rsi, rax
jne 0x140008e2c
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x140008e31
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140157800
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x1400095e0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x14019d3c0]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x1400096b3
cmp byte [rcx + 0x71], 0
je 0x1400096b3
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x1400096af
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140009674
sub eax, 1
je 0x140009678
cmp eax, 2
jne 0x1400096af
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140157800
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x1400096a6
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x1400096af
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14000965c
xor al, al
jmp 0x14000965c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140157800
add rsp, 0x60
pop rbx
ret
Function at 0x140016c70
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 0x140016cd1
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 0x140016c90
mov ecx, dword [r9]
jmp 0x140016db8
cmp ecx, 0x4e0
jb 0x140016db8
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 0x140016cf0
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 0x140016d40
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 0x140022a10
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
je 0x140022af2
call fcn.1400435f0
test al, al
jne 0x140022af2
mov qword [rsp + 0x30], rsi
xor esi, esi
mov qword [rsp + 0x38], rdi
mov rdi, 0xffffffffffffffff
inc rdi
cmp byte [rbx + rdi], sil
jne 0x140022a42
mov r8, rdi
mov edx, 0x2e
mov rcx, rbx
call fcn.14004dc90
test rax, rax
je 0x140022a87
sub rax, rbx
mov edx, 0x2e
mov r8, rax
mov rcx, rbx
call fcn.14004dc90
mov rsi, rax
test rax, rax
je 0x140022a87
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 0x140022abb
nop dword [rax]
movzx ecx, byte [rbx]
call fcn.140039930
imul rdi, rdi, 0x21
movsx rcx, al
inc rbx
xor rdi, rcx
cmp rbx, rsi
jb 0x140022aa0
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 0x14002bca0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 8], rcx
push rbx
push rbp
push rsi
push rdi
push r12
push r15
sub rsp, 0x48
mov rax, qword [rcx]
lea rbp, [rcx + 0x18]
mov r12, qword [rbp]
mov r15, r8
mov rdi, rdx
mov r10d, dword [rax + 8]
and r10d, 0xa
cmp r10d, 0xa
jne 0x14002bcde
add r12, 0x348
jmp 0x14002bce5
add r12, 0x2d8
cmp r10d, 0xa
mov ecx, 0x540
mov eax, 0x600
mov bl, 1
cmovne eax, ecx
mov rcx, qword [rsp + 0xa8]
xor esi, esi
add rax, rdi
mov qword [r9], rsi
test rcx, rcx
je 0x14002bd10
mov qword [rcx], rsi
test rax, rax
je 0x14002bea0
cmp byte [rax + 0x6c], sil
je 0x14002bea0
cmp qword [rdx + 0xcb8], rsi
je 0x14002bea0
mov rax, qword [rdx + 0xf8]
mov qword [rsp + 0x88], r13
test rax, rax
je 0x14002bd51
test byte [rax + 4], 0x10
lea r13, [rax + 0x118]
jne 0x14002bd58
lea r13, [rdx + 0xcc0]
cmp qword [rdx + 0x6d0], rsi
jbe 0x14002be47
mov qword [rsp + 0x40], r14
mov r14, rsi
nop dword [rax]
mov rbx, qword [rdi + 0xcb8]
add rbx, r14
cmp qword [rbx + 0x20], 0
je 0x14002be29
mov rdx, qword [rbx]
mov rcx, qword [r15]
call fcn.140039a60
test eax, eax
je 0x14002be29
mov rcx, qword [rbp]
mov rdx, qword [rbx + 8]
cmp byte [rcx + 0x3c0], 0
jne 0x14002bdb0
test rdx, rdx
je 0x14002bdc5
jmp 0x14002be29
test rdx, rdx
je 0x14002be29
mov rcx, qword [rcx + 0x98]
call fcn.140039a60
test eax, eax
je 0x14002be29
mov rcx, qword [rbp]
mov eax, dword [rbx + 0x40]
cmp byte [rcx + 0x3c1], 0
jne 0x14002bddc
cmp eax, 0xffffffff
je 0x14002bde9
jmp 0x14002be29
cmp eax, 0xffffffff
je 0x14002be29
cmp dword [rcx + 0x7d0], eax
jne 0x14002be29
mov eax, dword [rbx + 0x3c]
cmp dword [r15 + 0x1c], eax
jne 0x14002be29
mov eax, dword [rbx + 0x44]
cmp dword [r15 + 0x20], eax
jne 0x14002be29
mov rcx, qword [rcx + 0x3e0]
mov rdx, qword [rbx + 0x10]
mov rcx, qword [rcx]
call fcn.140039a60
test eax, eax
je 0x14002be29
lea r8, [rbx + 0x48]
mov rdx, r12
mov rcx, rdi
call fcn.14002cd70
test al, al
jne 0x14002beb0
inc rsi
add r14, 0xb8
cmp rsi, qword [rdi + 0x6d0]
jb 0x14002bd70
mov bl, 1
mov r14, qword [rsp + 0x40]
mov r10, qword [rsp + 0x80]
lea r9, str.Found
mov ecx, dword [r15 + 0x1c]
lea r8, str._s_cached_session_ID_for__s:___s:_d
mov dword [rsp + 0x30], ecx
test bl, bl
mov rcx, qword [r15]
mov rax, qword [r10 + 0x18]
mov qword [rsp + 0x28], rcx
mov rdx, qword [rax + 0x3e0]
lea rax, [0x14015d058]
cmovne r9, rax
mov rcx, qword [rdx]
mov rdx, r10
mov qword [rsp + 0x20], rcx
mov rcx, rdi
call fcn.140033030
mov r13, qword [rsp + 0x88]
movzx eax, bl
add rsp, 0x48
pop r15
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
inc dword [r13]
mov eax, dword [r13]
mov rcx, qword [rsp + 0x98]
mov dword [rbx + 0x38], eax
mov rax, qword [rbx + 0x20]
mov qword [rcx], rax
mov rcx, qword [rsp + 0xa0]
test rcx, rcx
je 0x14002bede
mov rax, qword [rbx + 0x28]
mov qword [rcx], rax
mov rcx, qword [rsp + 0xa8]
test rcx, rcx
je 0x14002bef2
mov rax, qword [rbx + 0x18]
mov qword [rcx], rax
xor bl, bl
jmp 0x14002be42
Function at 0x14002c070
Capabilities:
Convert ip address from string

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x40
mov rax, qword [0x14019d3c0]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov dword [rcx + 0x20], r8d
mov rdi, rcx
mov rax, qword [rdx]
mov ebp, 0x1b
mov ecx, dword [rax + 8]
mov rax, qword [rdx + 0x18]
and ecx, 0xa
cmp cl, 0xa
jne 0x14002c0c5
mov rbx, qword [rax + 0xf0]
mov rsi, qword [rax + 0xf8]
mov ecx, dword [rax + 0x100]
jmp 0x14002c0d3
mov rbx, qword [rax + 0x68]
mov rsi, qword [rax + 0x70]
mov ecx, dword [rax + 0x7cc]
xor r14d, r14d
mov dword [rdi + 0x1c], ecx
test rbx, rbx
je 0x14002c204
cmp byte [rbx], r14b
je 0x14002c204
mov rcx, rbx
call qword [case.0x14002d53c.1]
mov qword [rdi], rax
mov rcx, rax
test rax, rax
je 0x14002c209
test rsi, rsi
je 0x14002c13e
mov r8, rsi
sub r8, rbx
nop
movzx edx, byte [rbx]
movzx eax, byte [rbx + r8]
sub edx, eax
jne 0x14002c123
inc rbx
test eax, eax
jne 0x14002c110
test edx, edx
je 0x14002c13e
mov rcx, rsi
call qword [case.0x14002d53c.1]
mov qword [rdi + 8], rax
test rax, rax
jne 0x14002c142
jmp 0x14002c209
mov qword [rdi + 8], rcx
mov rbx, qword [rdi]
test rbx, rbx
je 0x14002c19b
cmp byte [rbx], r14b
je 0x14002c19b
lea r8, [rsp + 0x20]
mov rdx, rbx
mov ecx, 2
call qword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
je 0x14002c175
mov dword [rdi + 0x18], 1
mov eax, r14d
jmp 0x14002c23c
lea r8, [rsp + 0x20]
mov rdx, rbx
mov ecx, reloc.WS2_32.dll_socket
call qword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
je 0x14002c19b
mov dword [rdi + 0x18], 2
mov eax, r14d
jmp 0x14002c23c
mov rax, qword [rdi]
mov rbx, 0xffffffffffffffff
mov dword [rdi + 0x18], r14d
nop dword [rax]
inc rbx
cmp byte [rax + rbx], r14b
jne 0x14002c1b0
test rbx, rbx
je 0x14002c1c8
cmp byte [rax + rbx - 1], 0x2e
jne 0x14002c1c8
dec rbx
cmp rbx, 0xffff
jae 0x14002c1ff
lea rdx, [rbx + 1]
mov ecx, 1
call qword [0x140199020]
mov qword [rdi + 0x10], rax
test rax, rax
je 0x14002c209
mov rdx, qword [rdi]
mov r8, rbx
mov rcx, rax
call fcn.140039980
mov rax, qword [rdi + 0x10]
mov byte [rbx + rax], r14b
mov eax, r14d
jmp 0x14002c23c
mov ebp, 2
mov rcx, qword [rdi + 8]
cmp rcx, qword [rdi]
je 0x14002c218
call qword [fcn.140158666]
mov rcx, qword [rdi + 0x10]
call qword [fcn.140158666]
mov rcx, qword [rdi]
call qword [fcn.140158666]
mov eax, ebp
mov qword [rdi + 8], r14
mov qword [rdi + 0x10], r14
mov qword [rdi], r14
mov dword [rdi + 0x18], r14d
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140157800
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret
Function at 0x140032e00
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x30
cmp byte [rcx + 0xa7e], 0
mov rbp, r9
mov r14, r8
movsxd rsi, edx
mov rdi, rcx
je 0x140032ecb
cmp qword [rcx + 0x280], 0
je 0x140032e7e
mov qword [rsp + 0x40], rbx
call fcn.14001d220
mov dl, 1
mov rcx, rdi
movzx ebx, al
call fcn.14001dce0
mov rcx, qword [rdi + 0x1f8]
mov r9, rbp
mov qword [rsp + 0x20], rcx
mov r8, r14
mov rcx, rdi
mov edx, esi
call qword [rdi + 0x280]
movzx edx, bl
mov rcx, rdi
call fcn.14001dce0
mov rbx, qword [rsp + 0x40]
jmp 0x140032ecb
mov ecx, esi
test edx, edx
je 0x140032e8e
sub ecx, 1
je 0x140032e8e
cmp ecx, 1
jne 0x140032ecb
mov r9, qword [rdi + 0x1f0]
lea rax, [0x14015e048]
lea rcx, [rsi + rsi*2]
mov edx, 2
add rcx, rax
mov r8d, 1
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov r9, qword [rdi + 0x1f0]
mov r8d, 1
mov rdx, rbp
mov rcx, r14
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret

Function at 0x1400371b0
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x28
call sub.api_ms_win_crt_stdio_l1_1_0.dll__read
cdqe
add rsp, 0x28
ret