joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14003fb30
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
push rsi
push rdi
push r12
push r13
push r14
push r15
mov r14, qword [rsp + 0x58]
xor r15d, r15d
mov r11, qword [rsp + 0x70]
mov r13, rdx
mov rax, qword [rsp + 0x60]
mov qword [r14], r8
mov qword [r11], rax
mov rdi, qword [r14]
cmp rdi, r9
je 0x14003fcc3
mov r12, qword [rsp + 0x68]
lea r8d, [r15 + 1]
mov rsi, qword [r11]
mov r9d, 0x3ff
mov r10d, 0x2400
mov ebx, 0x2800
cmp rsi, r12
je 0x14003fcc3
movzx edx, word [r13]
xor bpl, bpl
movzx ecx, word [rdi]
cmp r8w, dx
jae 0x14003fbc9
lea eax, [r10 + rcx]
cmp ax, r9w
ja 0x14003fce7
mov eax, edx
sub ecx, 0xdc00
shl eax, 0xa
or eax, ecx
jmp 0x14003fbdf
mov eax, ecx
add cx, bx
cmp cx, r9w
ja 0x14003fbdf
shl eax, 0xa
mov bpl, 1
sub eax, 0x35f0000
cmp eax, 0x80
jae 0x14003fbf2
movzx r9d, al
mov r10d, r15d
mov ebx, r15d
jmp 0x14003fc3d
mov r9d, eax
cmp eax, 0x800
jae 0x14003fc0c
shr r9d, 6
mov r10d, r8d
or r9b, 0xc0
mov ebx, r8d
jmp 0x14003fc3d
cmp eax, 0x10000
jae 0x14003fc26
shr r9d, 0xc
mov r10d, 2
or r9b, 0xe0
mov ebx, r10d
jmp 0x14003fc3d
shr r9d, 0x12
mov r10d, 3
movzx ebx, bpl
or r9b, 0xf0
xor ebx, 1
add ebx, ebx
lea r8d, [rbx + 1]
mov rdx, r12
sub rdx, rsi
mov ecx, r8d
cmp rdx, rcx
jl 0x14003fcc3
lea rcx, [rdi + 2]
mov qword [r14], rcx
test bpl, bpl
jne 0x14003fc61
cmp r10d, 3
jae 0x14003fc6d
mov rcx, qword [r11]
mov r8d, ebx
mov byte [rcx], r9b
inc qword [r11]
mov r9, qword [r11]
test r8d, r8d
jle 0x14003fc9e
lea ecx, [r10 + r10*2]
add ecx, ecx
nop dword [rax + rax]
sub ecx, 6
mov edx, eax
shr edx, cl
dec r8d
and dl, 0x3f
or dl, 0x80
mov byte [r9], dl
inc qword [r11]
mov r9, qword [r11]
test r8d, r8d
jg 0x14003fc80
shr eax, 0xa
mov r8d, 1
test bpl, bpl
mov ecx, r8d
cmovne ecx, eax
mov word [r13], cx
mov rdi, qword [r14]
cmp rdi, qword [rsp + 0x50]
jne 0x14003fb7e
mov rax, qword [rsp + 0x48]
cmp rax, qword [r14]
sete r15b
mov eax, r15d
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
mov eax, 2
jmp 0x14003fcd2
Function at 0x1400404b0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x1401ac580]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x1400404dd
xor eax, eax
jmp 0x14004063a
mov rdx, qword [rcx + 0x40]
mov rax, qword [rdx]
test rax, rax
je 0x140040508
mov rdx, qword [rcx + 0x58]
movsxd r8, dword [rdx]
add r8, rax
cmp rax, r8
jae 0x140040508
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pninc_void____ptr64]
mov byte [rax], dil
mov eax, edi
jmp 0x14004063a
cmp qword [rcx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x14004062d
mov r8, qword [rcx + 0x18]
lea rax, [rcx + 0x70]
cmp qword [r8], rax
jne 0x14004054b
mov rdx, qword [rcx + 0x90]
mov rcx, qword [rcx + 0x88]
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 0x140040576
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 0x140040632
lea rax, [rsp + 0x48]
mov byte [rsp + 0x40], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x41]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x40]
lea rax, [rsp + 0x50]
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 0x1400405e5
sub eax, 1
je 0x1400405e5
cmp eax, 2
jne 0x14004062d
movsx ecx, byte [rsp + 0x40]
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 0x140040632
mov rsi, qword [rsp + 0x48]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140040613
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 0x14004062d
lea rax, [rsp + 0x40]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x50], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x140040632
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1400e74c0
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x140040d70
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push r14
sub rsp, 0x20
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x140040da1
xor eax, eax
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
cmp qword [rcx + 0x68], 0
je 0x140040dbf
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
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 + 0x30], rbx
mov rbx, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x140040ddb
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140040ddd
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140040e19
mov qword [rsp + 0x38], 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 + 0x38]
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x140040eae
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x140040e54
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 0x140040e8e
nop dword [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 0x140040eae
cmp rbx, rax
ja 0x140040e60
test rbx, rbx
je 0x140040eae
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
mov rsi, qword [rsp + 0x48]
sub rbp, rbx
mov rbx, qword [rsp + 0x30]
mov rax, rbp
mov rbp, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
Function at 0x140040ed0
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 0x140040ef8
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 0x140040f1e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140040f20
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140040f79
test ecx, ecx
jle 0x140040f59
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 0x140040f79
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140040f79
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 0x140053e00
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x30
movsxd rbx, ecx
lea rax, str.VERBOSE:
mov rbp, rdx
lea rcx, [0x140150c2c]
mov rsi, r8
mov rbx, qword [rax + rbx*8]
mov rdx, rbx
call fcn.140019a60
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rdi, rax
call fcn.140047550
xor r9d, r9d
mov qword [rsp + 0x20], rsi
mov r8, rbp
mov rdx, rdi
mov r14, rax
mov rcx, qword [rax]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___stdio_common_vfprintf]
lea rcx, reloc.WS2_32.dll_ioctlsocket
call fcn.140019a60
lea rcx, [0x1401b7b68]
call fcn.140041000
mov rdx, 0xffffffffffffffff
nop dword [rax]
inc rdx
cmp byte [rbx + rdx], 0
jne 0x140053e90
lea rdi, [0x1401b7b80]
mov rcx, rdi
sub rcx, rbx
nop word [rax + rax]
movzx eax, byte [rbx]
mov byte [rcx + rbx], al
lea rbx, [rbx + 1]
test al, al
jne 0x140053eb0
mov rcx, qword [r14]
mov r8d, 0x3ff
sub r8, rdx
mov qword [rsp + 0x28], rsi
add rdx, rdi
mov qword [rsp + 0x20], 0
or rcx, 2
mov r9, rbp
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___stdio_common_vsprintf]
mov rcx, rdi
mov byte [0x1401b7f7f], 0
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea rcx, [0x1401b7b68]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
jmp fcn.140041030
Function at 0x140097ca0
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 0x140097d6c
lea r8d, [rcx - 0x30]
cmp r8d, 0xffffffff
je 0x140097d6c
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 0x140097d85
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 0x140097d5c
cmp byte [rax], 0x5c
jne 0x140097d56
lea rdx, [rax + 1]
cmp rdx, rcx
je 0x140097d56
mov r8d, dword [rbx + 0x80]
test r8b, 8
jne 0x140097d42
movzx ecx, byte [rdx]
sub cl, 0x28
cmp cl, 1
jbe 0x140097d53
test r8b, 0x10
jne 0x140097d56
movzx ecx, byte [rdx]
sub cl, 0x7b
test cl, 0xfd
jne 0x140097d56
mov rax, rdx
inc rax
mov qword [rbx], rax
mov rcx, rbx
call fcn.140099fc0
test edi, edi
jne 0x140097cc0
mov rbx, qword [rsp + 0x30]
cmp edi, 0x7fffffff
mov rsi, qword [rsp + 0x38]
setne al
add rsp, 0x20
pop rdi
ret
mov edx, esi
mov rcx, rbx
call fcn.140098ca0
int3

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

Disassembly:
movabs rax, 0xcbf29ce484222325
mov r9d, 0
sub r8, rdx
je 0x14009a4f4
movabs r10, 0x100000001b3
nop
movzx ecx, byte [r9 + rdx]
inc r9
xor rax, rcx
imul rax, r10
cmp r9, r8
jb 0x14009a4e0
ret
Function at 0x14009e160
Capabilities:
Encode data using base64

Disassembly:
xor r9d, r9d
xor r8d, r8d
jmp 0x14009e170
Function at 0x1400a61f0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov rbx, rcx
mov rdi, r8
mov ecx, reloc.WS2_32.dll_recv
mov rsi, rdx
call fcn.1400e73e4
test rax, rax
je 0x1400a621e
mov qword [rax], rdi
mov qword [rax + 8], rsi
lea rdi, [rbx + 8]
mov r9, rax
mov qword [rsp + 0x28], rdi
lea r8, [0x1400a6180]
xor edx, edx
mov dword [rsp + 0x20], 0
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rbx], rax
test rax, rax
je 0x1400a625e
mov rsi, qword [rsp + 0x48]
mov rax, rbx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
mov ecx, 6
mov dword [rdi], 0
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
int3
Function at 0x1400d35a0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
sub rsp, 0x50
mov rdi, rdx
xor ebp, ebp
call fcn.1400eda00
mov rcx, qword [rdi]
call fcn.140040450
mov rcx, rax
lea r8, [0x1400d32a0]
xor edx, edx
call fcn.1400efad0
mov rcx, qword [rdi]
call fcn.140040450
mov rcx, rax
lea r8, [0x1400d3480]
lea edx, [rbp + 4]
call fcn.1400efad0
mov rcx, qword [rdi]
call fcn.140040450
mov rcx, rax
lea r8, [0x1400d5bf0]
lea edx, [rbp + 1]
call fcn.1400efad0
mov rcx, qword [rdi]
call fcn.140040450
mov rcx, rax
lea r8, [0x1400d5c50]
lea edx, [rbp + 2]
call fcn.1400efad0
mov rcx, qword [rdi]
call fcn.140040450
mov rcx, rax
lea r8, [0x1400d3140]
lea edx, [rbp + 3]
call fcn.1400efad0
mov rcx, qword [rdi]
call fcn.140040450
mov rcx, rax
lea r8, [0x1400d2610]
lea edx, [rbp + 5]
call fcn.1400efad0
mov rcx, qword [rdi]
call fcn.140040450
mov rcx, rax
lea r8, [0x1400d3e10]
lea edx, [rbp + 6]
call fcn.1400efad0
mov rcx, rdi
call fcn.1400d3a70
mov rsi, qword [rdi + 0x1d0]
add rsi, 0x40
lea rbx, [rsi + 8]
mov qword [rsp + 0x78], rbx
mov rcx, rbx
call fcn.140041000
nop
mov rcx, rbx
call fcn.140041000
mov byte [rsi + 4], bpl
mov rcx, rbx
call fcn.140041030
nop
mov rcx, qword [rdi + 8]
mov qword [rsi + 0x88], rcx
lea rdx, [rsi + 0x20]
call fcn.1400b0160
mov dword [rsi], ebp
lea ecx, [rbp + 0x10]
call fcn.1400e73e4
test rax, rax
je 0x1400d36d8
mov qword [rax], rsi
lea rcx, [0x1400cd840]
mov qword [rax + 8], rcx
jmp 0x1400d36db
mov rax, rbp
mov qword [rsp + 0x80], rax
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], ebp
mov r9, rax
lea r8, [0x1400a6180]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rsp + 0x38], rax
test rax, rax
je 0x1400d37c9
lea rcx, [rsi + 0x78]
lea rdx, [rsp + 0x38]
call fcn.1400a6310
nop
lea rcx, [rsp + 0x38]
call fcn.1400a62f0
nop
mov rcx, rbx
call fcn.140041030
nop
mov rbx, qword [rdi + 0x1d0]
mov ecx, 0x38
call fcn.1400e73e4
mov rcx, rax
test rax, rax
je 0x1400d377b
mov qword [rax + 0x28], rbp
mov qword [rax + 0x30], rbp
mov qword [rax + 8], rbp
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rbp
lea rax, vtable.firebase::auth::FunctionRegistryAuthStateListener.0
mov qword [rcx], rax
mov qword [rcx + 0x20], rbp
mov qword [rcx + 0x28], rbp
mov qword [rcx + 0x30], rbp
jmp 0x1400d377e
mov rcx, rbp
add rbx, 0xd8
lea rax, [rsp + 0x30]
cmp rbx, rax
je 0x1400d37a2
mov r8, qword [rbx]
mov qword [rbx], rcx
test r8, r8
je 0x1400d37b1
mov rax, qword [r8]
mov rcx, r8
jmp 0x1400d37aa
test rcx, rcx
je 0x1400d37b1
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
mov rdx, qword [rbx]
mov rcx, qword [rdi + 8]
mov rbx, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
pop rsi
pop rbp
jmp fcn.1400b0050
mov dword [rsp + 0x40], ebp
mov ecx, 6
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
int3
Function at 0x1400e3250
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
mov rdx, rcx
lea r8, [rsp + 0x38]
mov ecx, 2
call fcn.140047780
add rsp, 0x28
ret
push rdi
sub rsp, 0x30
cmp qword [rcx + 0xd0], 0
mov rdi, rcx
je 0x1400e3285
lea rdx, [rcx + 0xc0]
cmp qword [rdx + 0x18], 0x10
jb 0x1400e3274
mov rdx, qword [rdx]
lea rcx, str.Environment_Emulator_Url_already_set:__s
add rsp, 0x30
pop rdi
jmp 0x140047720
lea rcx, str.USE_AUTH_EMULATOR
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
jne 0x1400e32a8
lea rcx, str.USE_AUTH_EMULATOR_not_set.
add rsp, 0x30
pop rdi
jmp 0x140047720
add rdi, 0xc0
mov rdx, qword [rdi + 0x18]
mov rcx, qword [rdi + 0x10]
mov rax, rdx
sub rax, rcx
cmp rax, 9
jb 0x1400e3300
mov qword [rsp + 0x40], rbx
lea rax, [rcx + 9]
mov qword [rdi + 0x10], rax
mov rax, rdi
cmp rdx, 0x10
jb 0x1400e32dc
mov rax, qword [rdi]
lea rbx, [rax + rcx]
mov r8d, 9
mov rcx, rbx
lea rdx, str.localhost
call sub.VCRUNTIME140.dll_memmove
mov byte [rbx + 9], 0
mov rbx, qword [rsp + 0x40]
jmp 0x1400e331f
xor r8d, r8d
mov qword [rsp + 0x20], 9
lea r9, str.localhost
mov rcx, rdi
lea edx, [r8 + 9]
call fcn.140008a40
mov rdx, qword [rdi + 0x18]
mov rcx, qword [rdi + 0x10]
mov rax, rdx
sub rax, rcx
cmp rax, 1
jb 0x1400e334f
lea rax, [rcx + 1]
mov qword [rdi + 0x10], rax
mov rax, rdi
cmp rdx, 0x10
jb 0x1400e3347
mov rax, qword [rdi]
mov word [rax + rcx], 0x3a
jmp 0x1400e336e
xor r8d, r8d
mov qword [rsp + 0x20], 1
lea r9, [0x140152668]
mov rcx, rdi
lea edx, [r8 + 1]
call fcn.140008a40
lea rcx, str.AUTH_EMULATOR_PORT
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
jne 0x1400e33de
mov rdx, qword [rdi + 0x18]
mov rcx, qword [rdi + 0x10]
mov rax, rdx
sub rax, rcx
cmp rax, 4
jb 0x1400e33b9
lea rax, [rcx + 4]
mov qword [rdi + 0x10], rax
cmp rdx, 0x10
jb 0x1400e33a5
mov rdi, qword [rdi]
mov eax, dword [str.9099]
mov dword [rdi + rcx], eax
mov byte [rdi + rcx + 4], 0
add rsp, 0x30
pop rdi
ret
xor r8d, r8d
mov qword [rsp + 0x20], 4
lea r9, str.9099
mov rcx, rdi
lea edx, [r8 + 4]
call fcn.140008a40
add rsp, 0x30
pop rdi
ret
lea rcx, str.AUTH_EMULATOR_PORT
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], 0
jne 0x1400e33f2
mov rdx, rax
mov rcx, rdi
add rsp, 0x30
pop rdi
jmp fcn.140018490

Function at 0x1400e837c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400e83c6
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400e83c6
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400e83c6
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400e83c6
cmp dword [rcx + 0x84], 0xe
jbe 0x1400e83c6
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400e83c8
xor al, al
add rsp, 0x28
ret
Function at 0x1400f8af0
Capabilities:
Acquire credentials from windows credential manager

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x1401ac580]
xor rax, rsp
mov qword [rbp - 0x10], rax
xorps xmm0, xmm0
mov qword [rsp + 0x98], rbx
movups xmmword [rbp - 0x30], xmm0
lea r8, [rbp - 0x30]
mov word [rbp - 0x30], 0x2a
lea rdx, [rbp - 0x50]
mov qword [rbp - 0x20], 1
mov qword [rbp - 0x18], reloc.WS2_32.dll_ntohs
call fcn.1400f8ef0
xor ebx, ebx
lea rcx, [rbp - 0x50]
cmp qword [rbp - 0x38], 0x10
lea r9, [rbp - 0x58]
lea r8, [rbp - 0x60]
mov dword [rbp - 0x60], ebx
cmovae rcx, qword [rbp - 0x50]
xor edx, edx
mov qword [rbp - 0x58], rbx
call qword [sym.imp.ADVAPI32.dll_CredEnumerateA]
test eax, eax
jne 0x1400f8b9b
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp qword [rbp - 0x38], 0x10
lea r8, [rbp - 0x50]
lea rdx, str.DeleteAllData
mov ecx, eax
cmovae r8, qword [rbp - 0x50]
call fcn.1400f9860
mov rcx, qword [rbp - 0x58]
test rcx, rcx
je 0x1400f8c6d
jmp 0x1400f8c67
cmp dword [rbp - 0x60], ebx
jbe 0x1400f8c63
mov qword [rsp + 0xa0], rdi
nop dword [rax]
mov eax, ebx
xor r8d, r8d
lea rdi, [rax*8]
mov rax, qword [rbp - 0x58]
mov rcx, qword [rdi + rax]
mov edx, dword [rcx + 4]
mov rcx, qword [rcx + 8]
call qword [sym.imp.ADVAPI32.dll_CredDeleteA]
test eax, eax
jne 0x1400f8c50
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rbp - 0x58]
mov rdx, qword [rdi + rcx]
mov r8, qword [rdx + 8]
lea rdx, str.DeleteAllData
cmp eax, 0x490
jne 0x1400f8c04
lea rcx, str._s:_Credential__s_not_found
call fcn.140047660
jmp 0x1400f8c50
cmp eax, 0x520
jne 0x1400f8c19
lea rcx, str._s:_No_logon_session_for_credential__s
call fcn.140047880
jmp 0x1400f8c50
cmp eax, 0x3ec
jne 0x1400f8c2e
lea rcx, str._s:_Invalid_flags_for_credential__s
call fcn.140047630
jmp 0x1400f8c50
cmp eax, 0x57
jne 0x1400f8c41
lea rcx, str._s:_Invalid_paremeter_for_credential__s
call fcn.140047630
jmp 0x1400f8c50
mov r9d, eax
lea rcx, str._s:_Operation_on_credential__s_failed_with_error__d
call fcn.140047880
inc ebx
cmp ebx, dword [rbp - 0x60]
jb 0x1400f8bb0
mov rdi, qword [rsp + 0xa0]
mov rcx, qword [rbp - 0x58]
call qword [sym.imp.ADVAPI32.dll_CredFree]
mov rdx, qword [rbp - 0x38]
mov rbx, qword [rsp + 0x98]
cmp rdx, 0x10
jb 0x1400f8cac
mov rcx, qword [rbp - 0x50]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400f8ca7
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400f8cef
call fcn.1400e7420
mov rdx, qword [rbp - 0x18]
movdqa xmm0, xmmword [0x14014c160]
mov byte [rbp - 0x50], 0
movdqu xmmword [rbp - 0x40], xmm0
cmp rdx, 0x10
jb 0x1400f8cfb
mov rcx, qword [rbp - 0x30]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400f8cf6
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400f8cf6
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400e7420
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.1400e74c0
add rsp, 0x80
pop rbp
ret
Function at 0x140110c70
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
cmp qword [rcx + 0x700], 0
mov rsi, r9
mov rbp, r8
movsxd rbx, edx
mov rdi, rcx
je 0x140110cce
mov dl, 1
call fcn.1400fea80
mov rax, qword [rdi + 0x658]
mov r9, rsi
mov r8, rbp
mov qword [rsp + 0x20], rax
mov edx, ebx
mov rcx, rdi
call qword [rdi + 0x700]
xor edx, edx
mov rcx, rdi
mov ebx, eax
call fcn.1400fea80
mov eax, ebx
jmp 0x140110d1d
mov edx, ebx
test ebx, ebx
je 0x140110cde
sub edx, 1
je 0x140110cde
cmp edx, 1
jne 0x140110d1b
mov r9, qword [rdi + 0x650]
lea rax, [0x14015fa28]
mov edx, 2
lea rcx, [rbx + rbx*2]
add rcx, rax
lea r8d, [rdx - 1]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r9, qword [rdi + 0x650]
mov r8d, 1
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x140110d40
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rdi
sub rsp, 0x160
mov rax, qword [0x1401ac580]
xor rax, rsp
mov qword [rsp + 0x140], rax
cmp byte [rcx + 0xf61], 0
mov rdi, rcx
jne 0x140110d83
cmp qword [rcx + 0x660], 0
je 0x140110e60
mov r8, rdx
mov qword [rsp + 0x158], rbx
mov edx, 0x100
lea r9, [rsp + 0x180]
lea rcx, [rsp + 0x30]
call fcn.140120f80
lea rax, [rsp + 0x30]
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [rax + rbx], 0
jne 0x140110db1
mov rcx, qword [rdi + 0x660]
test rcx, rcx
je 0x140110df8
cmp byte [rdi + 0x16c3], 0
jne 0x140110df8
lea rdx, [rsp + 0x30]
nop dword [rax]
nop dword [rax + rax]
movzx eax, byte [rdx]
lea rdx, [rdx + 1]
mov byte [rcx], al
lea rcx, [rcx + 1]
test al, al
jne 0x140110de0
mov byte [rdi + 0x16c3], 1
cmp byte [rdi + 0xf61], 0
je 0x140110e58
mov byte [rsp + rbx + 0x30], 0xa
inc rbx
cmp rbx, 0x102
jae 0x140110eb3
cmp qword [rdi + 0x700], 0
mov byte [rsp + rbx + 0x30], 0
je 0x140110e79
mov dl, 1
mov rcx, rdi
call fcn.1400fea80
mov rax, qword [rdi + 0x658]
lea r8, [rsp + 0x30]
mov r9, rbx
mov qword [rsp + 0x20], rax
xor edx, edx
mov rcx, rdi
call qword [rdi + 0x700]
xor edx, edx
mov rcx, rdi
call fcn.1400fea80
mov rbx, qword [rsp + 0x158]
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.1400e74c0
add rsp, 0x160
pop rdi
ret
mov r9, qword [rdi + 0x650]
lea rcx, [0x14015fa28]
mov edx, 2
lea r8d, [rdx - 1]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r9, qword [rdi + 0x650]
lea rcx, [rsp + 0x30]
mov r8d, 1
mov rdx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
jmp 0x140110e58
call fcn.1400e7d3c
int3