joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14015cba0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
mov rsi, qword [rsp + 0xc0]
mov ebp, r8d
mov r8, qword [rsi + 0x18]
mov r14, rcx
mov r12d, edx
mov ecx, ebp
mov qword [rsp + 0xa8], r9
call fcn.1401469d0
mov ebx, eax
mov eax, 0x12
cmp dword [r8 + 0x88], ebx
jl 0x14015cd79
cmp ebx, 0xfa0
mov r13b, byte [rsi + 0x16]
jle 0x14015cd28
cmp qword [r14 + 0x38], 0
jne 0x14015cd28
test byte [r14 + 8], 0x10
jne 0x14015cc2f
mov edx, 0x20
mov rcx, r8
call fcn.14010ff20
test rax, rax
mov qword [r14 + 0x70], rax
jne 0x14015cc2a
mov eax, 7
jmp 0x14015cd79
or byte [r14 + 8], 0x10
mov rdi, qword [r14 + 0x70]
cmp qword [rdi], 0
jne 0x14015cc48
mov rcx, qword [rdi]
test rcx, rcx
je 0x14015cc7d
call fcn.140132f20
jmp 0x14015cc7d
cmp dword [rdi + 0x10], r12d
jne 0x14015cc39
mov eax, dword [rsp + 0xb0]
cmp dword [rdi + 0x14], eax
jne 0x14015cc39
mov eax, dword [rsp + 0xb8]
cmp dword [rdi + 0x18], eax
jne 0x14015cc39
mov rcx, qword [r14 + 0x30]
mov r15, qword [rdi + 8]
call fcn.14010b470
cmp r15, rax
jne 0x14015cc39
mov r15, qword [rdi]
jmp 0x14015ccef
lea ecx, [rbx + 3]
movsxd rcx, ecx
call fcn.140132ef0
test rax, rax
mov r15, rax
mov qword [rdi], rax
je 0x14015cc20
mov rcx, qword [r14 + 0x30]
xor eax, eax
mov r9, r15
mov r8d, ebx
mov edx, dword [rsp + 0xa8]
mov dword [rsp + 0x20], eax
call fcn.1400b69c0
test eax, eax
jne 0x14015cd79
mov eax, ebx
mov byte [r15 + rax], 0
mov byte [r15 + rax + 1], 0
mov byte [r15 + rax + 2], 0
mov eax, dword [rsp + 0xb0]
mov rcx, qword [r14 + 0x30]
mov dword [rdi + 0x10], r12d
mov dword [rdi + 0x14], eax
mov eax, dword [rsp + 0xb8]
mov dword [rdi + 0x18], eax
call fcn.14010b470
mov qword [rdi + 8], rax
inc qword [r15 - 8]
lea rax, [fcn.140132f20]
and ebp, 1
mov r8d, ebx
mov qword [rsp + 0x20], rax
je 0x14015cd18
movzx r9d, r13b
mov rdx, r15
mov rcx, rsi
call fcn.1401457e0
jmp 0x14015cd6d
xor r9d, r9d
mov rdx, r15
mov rcx, rsi
call fcn.1401457e0
jmp 0x14015cd73
mov rcx, qword [r14 + 0x30]
mov r9, rsi
mov r8d, ebx
mov edx, dword [rsp + 0xa8]
call fcn.140145350
test eax, eax
jne 0x14015cd79
mov rcx, qword [rsi + 8]
mov r8, rsi
mov edx, ebp
mov dword [rsp + 0x3c], eax
call fcn.1401468b0
dec r13b
mov eax, dword [rsp + 0x3c]
jne 0x14015cd73
and ebp, 1
je 0x14015cd73
mov rdx, qword [rsi + 8]
movsxd rbx, ebx
mov byte [rdx + rbx], 0
or word [rsi + 0x14], 0x200
and word [rsi + 0x14], 0xbfff
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x14015e350
Capabilities:
Create thread

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
xor ebp, ebp
xor r13d, r13d
movzx r12d, byte [rcx + 0x5b]
mov rbx, rcx
mov edi, r12d
mov byte [rcx + 0x58], 1
dec r12d
cmp r13d, r12d
jge 0x14015e452
movzx eax, byte [rbx + 0x5a]
lea eax, [r13 + rax + 1]
cdq
idiv r12d
movsxd rdx, edx
lea rbp, [rdx + 1]
imul rdx, rdx, 0x60
imul rbp, rbp, 0x60
lea rsi, [rbx + rdx]
add rbp, rbx
cmp dword [rsi + 0x68], 0
jne 0x14015e3b1
cmp qword [rsi + 0x60], 0
je 0x14015e3c2
inc r13d
jmp 0x14015e373
mov rcx, rbp
call fcn.14015e4f0
test eax, eax
je 0x14015e3a5
jmp 0x14015e478
lea rcx, [rbx + 0x60]
mov rax, rbp
mov rdx, qword [rbp + 0x28]
lea rdi, [rbp + 0x20]
sub rax, rcx
movabs rcx, 0xaaaaaaaaaaaaaaab
lea rsi, [rbx + 0x38]
sar rax, 5
imul rax, rcx
mov ecx, 6
mov byte [rbx + 0x5a], al
xor eax, eax
test rdx, rdx
rep movsd dword [rdi], dword [rsi]
mov qword [rbx + 0x38], rax
mov qword [rbx + 0x48], rax
je 0x14015e414
mov qword [rbx + 0x40], rdx
mov rcx, rdx
call fcn.1401293a0
mov dword [rbx + 0x54], eax
jmp 0x14015e42d
cmp qword [rbx + 0x40], 0
je 0x14015e42d
movsxd rcx, dword [rbx + 0x54]
call fcn.140129240
test rax, rax
mov qword [rbx + 0x40], rax
je 0x14015e44b
lea rdx, [0x14015e490]
mov r8, rbp
mov rcx, rbp
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
jmp fcn.14013a220
mov eax, 7
jmp 0x14015e478
jne 0x14015e3c2
lea rdx, [rbx + 0x38]
movzx ecx, dil
imul rcx, rcx, 0x60
add rcx, rbx
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
jmp fcn.14015e560
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
Function at 0x140169db0
Capabilities:
Encode data using xor

Disassembly:
push rbx
xor r9d, r9d
xor r11d, r11d
movsxd rax, dword [rcx + 0xc]
lea r10d, [rax + 1]
add rax, qword [rcx]
mov bl, byte [rdx + r9]
xor byte [rax], bl
movsxd rax, r10d
cmp dword [rcx + 8], r10d
cmovle rax, r11
inc r9
cmp r8d, r9d
jg 0x140169dbb
add dword [rcx + 0x10], r8d
mov dword [rcx + 0xc], eax
pop rbx
ret

Function at 0x140169f10
Capabilities:
Check for software breakpoints

Disassembly:
push rsi
push rbx
sub rsp, 0x28
cmp dx, 0x119
mov rax, rcx
ja 0x140169fb2
cmp dx, 0x108
ja 0x140169f3e
cmp dx, 0xfc
ja 0x140169f82
cmp dx, 0xcc
ja 0x140169f60
jmp case.0x14016a012.316
sub dx, 0x109
cmp dx, 0x10
ja case.0x14016a012.316
lea rcx, [0x140195ae0]
movzx edx, dx
movsxd rdx, dword [rcx + rdx*4]
add rdx, rcx
jmp rdx
sub dx, 0xcd
cmp dx, 0x2f
ja case.0x14016a012.316
lea rcx, [0x140195b24]
movzx edx, dx
movsxd rdx, dword [rcx + rdx*4]
add rdx, rcx
jmp rdx
lea ecx, [rdx - 0xfd]
mov edx, 1
shl rdx, cl
test edx, 0x860
jne case.0x140169f80.239
test edx, 0x40a
jne case.0x14016a012.313
and dl, 5
jne case.0x140169f80.205
jmp case.0x14016a012.316
cmp dx, 0x129
ja 0x140169ff2
lea ecx, [rdx - 0x11a]
mov r9d, 1
shl r9, cl
test r9d, 0x8409
jne case.0x14016a012.314
test r9d, 0x840
jne 0x14016a092
cmp dx, 0x122
jne case.0x14016a012.316
mov rdx, qword [r8 + 8]
jmp 0x14016a0a3
sub dx, 0x135
cmp dx, 0xa
ja case.0x14016a012.316
lea rcx, [0x140195be4]
movzx edx, dx
movsxd rdx, dword [rcx + rdx*4]
add rdx, rcx
jmp rdx
mov rdx, qword [r8]
mov rcx, qword [rax]
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.140138570
mov rdx, qword [r8]
jmp 0x14016a0b5
mov rdx, qword [r8]
mov rcx, qword [rax]
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.140116610
mov rdx, qword [r8]
mov rcx, qword [rax]
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.140138ff0
mov rdx, qword [r8]
mov rcx, qword [rax]
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.14014d250
mov rdx, qword [r8]
mov rbx, qword [rax]
test rdx, rdx
je case.0x14016a012.316
mov rsi, qword [rdx + 0x40]
mov rcx, rbx
call fcn.14014ce90
mov rdx, rsi
jmp 0x14016a066
mov rdx, qword [r8]
jmp 0x14016a0a3
mov rdx, qword [r8]
mov rcx, qword [rax]
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.14014ce90
mov rdx, qword [r8]
mov rcx, qword [rax]
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.140110f30
mov rcx, qword [rax]
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.140125890
mov rdx, qword [r8 + 8]
mov rcx, qword [rax]
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.140115830
add rsp, 0x28
pop rbx
pop rsi
ret
Function at 0x140001300
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
mov eax, 0x13f0
call fcn.140068b00
sub rsp, rax
mov rax, qword [0x140086900]
xor rax, rsp
mov qword [rsp + 0x13e0], rax
mov edi, edx
mov rbx, rcx
mov qword [rsp + 0x28], rcx
xor ebp, ebp
mov dword [rsp + 0x20], ebp
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
mov ecx, 0x40
call fcn.140068540
mov rsi, rax
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x40], 0x3e
mov qword [rsp + 0x48], 0x3f
movups xmm0, xmmword [str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789]
movups xmmword [rax], xmm0
movups xmm1, xmmword [0x14007bf40]
movups xmmword [rax + 0x10], xmm1
movups xmm0, xmmword [0x14007bf50]
movups xmmword [rax + 0x20], xmm0
movsd xmm0, qword [0x14007bf60]
movsd qword [rax + 0x30], xmm0
mov eax, dword [0x14007bf68]
mov dword [rsi + 0x38], eax
movzx eax, word [0x14007bf6c]
mov word [rsi + 0x3c], ax
mov byte [rsi + 0x3e], bpl
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]
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 0x1400013d0
mov dword [rsp + 0x50], 0x270
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rbp
mov qword [rbx + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rbx], 0
mov dword [rsp + 0x20], 1
test edi, edi
jle 0x140001493
mov ebp, 0x80000000
nop dword [rax]
lea rcx, [rsp + 0x50]
call fcn.140003ea0
mov ecx, eax
imul rax, rcx, 0x3e
cmp eax, 3
ja 0x14000144a
lea rcx, [rsp + 0x50]
call fcn.140003ea0
mov ecx, eax
imul rax, rcx, 0x3e
cmp eax, 4
jb 0x140001435
shr rax, 0x20
add rax, rbp
xor rax, rbp
movzx r9d, byte [rax + rsi]
mov rcx, qword [rbx + 0x10]
mov rdx, qword [rbx + 0x18]
cmp rcx, rdx
jae 0x140001485
lea rax, [rcx + 1]
mov qword [rbx + 0x10], rax
mov rax, rbx
cmp rdx, 0xf
jbe 0x14000147a
mov rax, qword [rbx]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x14000148d
mov rcx, rbx
call fcn.140003760
sub rdi, 1
jne 0x140001420
mov edx, 0x40
mov rcx, rsi
call fcn.140068584
mov rax, rbx
mov rcx, qword [rsp + 0x13e0]
xor rcx, rsp
call fcn.140068520
lea r11, [rsp + 0x13f0]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x1400023a0
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 0x1400023c8
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 0x1400023ee
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x1400023f0
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140002449
test ecx, ecx
jle 0x140002429
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 0x140002449
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140002449
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 0x140002470
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 0x140002492
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x1400024a8
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 0x1400024c4
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x1400024c6
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140002502
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 0x14000259e
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x14000253d
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 0x14000257e
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 0x14000259e
cmp rbx, rax
ja 0x140002550
test rbx, rbx
je 0x14000259e
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 0x140002a00
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x140086900]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x140002a2d
xor eax, eax
jmp 0x140002b99
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x140002a67
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x140002a67
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 0x140002b99
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x140002b8c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x140002aaa
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 0x140002ad5
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 0x140002b91
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 0x140002b44
sub eax, 1
je 0x140002b44
cmp eax, 2
jne 0x140002b8c
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 0x140002b91
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140002b72
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 0x140002b8c
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x140002b91
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140068520
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x1400030c0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x140086900]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140003193
cmp byte [rcx + 0x71], 0
je 0x140003193
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + Ordinal_26]
cmp eax, 0xffffffff
je 0x14000318f
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 0x140003154
sub eax, 1
je 0x140003158
cmp eax, 2
jne 0x14000318f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140068520
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140003186
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 0x14000318f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14000313c
xor al, al
jmp 0x14000313c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140068520
add rsp, 0x60
pop rbx
ret
Function at 0x140003ea0
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 0x140003f01
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 0x140003ec0
mov ecx, dword [r9]
jmp 0x140003feb
cmp ecx, 0x4e0
jb 0x140003feb
lea r10, [r9 + 0x9c4]
mov qword [rsp], rbx
mov r11d, dword [r10]
mov ebx, 0xe3
mov eax, r11d
mov r8, r10
mov r11d, dword [r10 + 4]
add r10, 4
mov edx, r11d
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 [r8 + 0x634]
xor ecx, edx
mov dword [r8 - 0x9c0], ecx
sub rbx, 1
jne 0x140003f20
lea r10, [r9 + 0xd50]
mov ebx, 0x18c
mov r11d, dword [r10]
nop
mov eax, r11d
mov r8, r10
mov r11d, dword [r10 + 4]
mov edx, eax
xor edx, r11d
add r10, 4
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 [r8 - 0xd4c]
xor ecx, edx
mov dword [r8 - 0x9c0], ecx
sub rbx, 1
jne 0x140003f70
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 0x14000d660
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
je 0x14000d742
call fcn.140029910
test al, al
jne 0x14000d742
mov qword [rsp + 0x30], rsi
xor esi, esi
mov qword [rsp + 0x38], rdi
mov rdi, 0xffffffffffffffff
inc rdi
cmp byte [rbx + rdi], sil
jne 0x14000d692
mov r8, rdi
mov edx, reloc.WLDAP32.dll_Ordinal_46
mov rcx, rbx
call fcn.140034b80
test rax, rax
je 0x14000d6d7
sub rax, rbx
mov edx, reloc.WLDAP32.dll_Ordinal_46
mov r8, rax
mov rcx, rbx
call fcn.140034b80
mov rsi, rax
test rax, rax
je 0x14000d6d7
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 0x14000d70b
nop dword [rax]
movzx ecx, byte [rbx]
call fcn.1400241e0
imul rdi, rdi, 0x21
movsx rcx, al
inc rbx
xor rdi, rcx
cmp rbx, rsi
jb 0x14000d6f0
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 0x140015de0
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 rdi, rdx
mov r15, r8
mov r10, rcx
mov edx, dword [rax + 8]
and edx, 0xa
cmp edx, 0xa
jne 0x140015e1e
add r12, 0x348
jmp 0x140015e25
add r12, 0x2d8
cmp edx, 0xa
mov eax, 0x5f8
mov ecx, 0x540
mov esi, 0
cmovne eax, ecx
mov qword [r9], rsi
mov bl, 1
add rax, rdi
je 0x140015fd0
cmp byte [rax + 0x6c], sil
je 0x140015fd0
cmp qword [rdi + 0xca0], rsi
je 0x140015fd0
mov rax, qword [rdi + 0xf8]
mov qword [rsp + 0x88], r13
test rax, rax
je 0x140015e80
test byte [rax + 4], 0x10
lea r13, [rax + 0x118]
jne 0x140015e87
lea r13, [rdi + 0xca8]
cmp qword [rdi + 0x6c0], rsi
jbe 0x140015f7f
mov qword [rsp + 0x40], r14
mov r14, rsi
nop dword [rax]
mov rbx, qword [rdi + 0xca0]
add rbx, r14
cmp qword [rbx + 0x18], 0
je 0x140015f59
mov rdx, qword [rbx]
mov rcx, qword [r15]
call fcn.140024310
test eax, eax
je 0x140015f59
mov rcx, qword [rbp]
mov rdx, qword [rbx + 8]
cmp byte [rcx + 0x3c0], 0
jne 0x140015ee0
test rdx, rdx
je 0x140015ef5
jmp 0x140015f59
test rdx, rdx
je 0x140015f59
mov rcx, qword [rcx + 0x98]
call fcn.140024310
test eax, eax
je 0x140015f59
mov rcx, qword [rbp]
mov eax, dword [rbx + 0x38]
cmp byte [rcx + 0x3c1], 0
jne 0x140015f0c
cmp eax, 0xffffffff
je 0x140015f19
jmp 0x140015f59
cmp eax, 0xffffffff
je 0x140015f59
cmp dword [rcx + 0x7d0], eax
jne 0x140015f59
mov eax, dword [rbx + 0x34]
cmp dword [r15 + 0x1c], eax
jne 0x140015f59
mov eax, dword [rbx + 0x3c]
cmp dword [r15 + 0x20], eax
jne 0x140015f59
mov rcx, qword [rcx + 0x3e0]
mov rdx, qword [rbx + 0x10]
mov rcx, qword [rcx]
call fcn.140024310
test eax, eax
je 0x140015f59
lea r8, [rbx + 0x40]
mov rdx, r12
mov rcx, rdi
call fcn.140016c70
test al, al
jne 0x140015fe0
inc rsi
add r14, 0xb0
cmp rsi, qword [rdi + 0x6c0]
jb 0x140015ea0
mov bl, 1
mov r10, qword [rsp + 0x80]
mov r14, qword [rsp + 0x40]
mov rax, qword [r10 + 0x18]
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 rdx, qword [rax + 0x3e0]
lea rax, [0x14006bd18]
mov qword [rsp + 0x28], rcx
cmovne r9, rax
mov rcx, qword [rdx]
mov rdx, r10
mov qword [rsp + 0x20], rcx
mov rcx, rdi
call fcn.14001d980
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 + 0x30], eax
mov rax, qword [rbx + 0x18]
mov qword [rcx], rax
mov rcx, qword [rsp + 0xa0]
test rcx, rcx
je 0x14001600e
mov rax, qword [rbx + 0x20]
mov qword [rcx], rax
xor bl, bl
jmp 0x140015f72
Function at 0x14001d750
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 + 0xa6e], 0
mov rbp, r9
mov r14, r8
movsxd rsi, edx
mov rdi, rcx
je 0x14001d81b
cmp qword [rcx + 0x280], 0
je 0x14001d7ce
mov qword [rsp + 0x40], rbx
call fcn.140007990
mov dl, 1
mov rcx, rdi
movzx ebx, al
call fcn.140008450
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.140008450
mov rbx, qword [rsp + 0x40]
jmp 0x14001d81b
mov ecx, esi
test edx, edx
je 0x14001d7de
sub ecx, 1
je 0x14001d7de
cmp ecx, 1
jne 0x14001d81b
mov r9, qword [rdi + 0x1f0]
lea rax, [0x14006cb50]
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 0x140021af0
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