joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400393a0
Capabilities:
Parse pe header

Disassembly:
cmp byte [rcx + 0x41], 0
je 0x1400394ad
xor byte [rcx], 0x20
xor byte [rcx + 1], 0x21
xor byte [rcx + 2], 0x22
xor byte [rcx + 3], 0x23
xor byte [rcx + 4], 0x24
xor byte [rcx + 5], 0x25
xor byte [rcx + 6], 0x26
xor byte [rcx + 7], 0x27
xor byte [rcx + 8], 0x28
xor byte [rcx + 9], 0x29
xor byte [rcx + 0xa], 0x2a
xor byte [rcx + 0xb], 0x2b
xor byte [rcx + 0xc], 0x2c
xor byte [rcx + 0xd], 0x2d
xor byte [rcx + 0xe], 0x2e
xor byte [rcx + 0xf], 0x2f
xor byte [rcx + 0x10], 0x30
xor byte [rcx + 0x11], 0x31
xor byte [rcx + 0x12], 0x32
xor byte [rcx + 0x13], 0x33
xor byte [rcx + 0x14], 0x34
xor byte [rcx + 0x15], 0x35
xor byte [rcx + 0x16], 0x36
xor byte [rcx + 0x17], 0x37
xor byte [rcx + 0x18], 0x38
xor byte [rcx + 0x19], 0x39
xor byte [rcx + 0x1a], 0x3a
xor byte [rcx + 0x1b], 0x3b
xor byte [rcx + 0x1c], 0x3c
xor byte [rcx + 0x1d], 0x3d
xor byte [rcx + 0x1e], 0x3e
xor byte [rcx + 0x1f], 0x3f
xor byte [rcx + 0x20], 0x40
xor byte [rcx + 0x21], 0x41
xor byte [rcx + 0x22], 0x42
xor byte [rcx + 0x23], 0x43
xor byte [rcx + 0x24], 0x44
xor byte [rcx + 0x25], 0x45
xor byte [rcx + 0x26], 0x46
xor byte [rcx + 0x27], 0x47
xor byte [rcx + 0x28], 0x48
xor byte [rcx + 0x29], 0x49
xor byte [rcx + 0x2a], 0x4a
xor byte [rcx + 0x2b], 0x4b
xor byte [rcx + 0x2c], 0x4c
xor byte [rcx + 0x2d], 0x4d
xor byte [rcx + 0x2e], 0x4e
xor byte [rcx + 0x2f], 0x4f
xor byte [rcx + 0x30], 0x50
xor byte [rcx + 0x31], 0x51
xor byte [rcx + 0x32], 0x52
xor byte [rcx + 0x33], 0x53
xor byte [rcx + 0x34], 0x54
xor byte [rcx + 0x35], 0x55
xor byte [rcx + 0x36], 0x56
xor byte [rcx + 0x37], 0x57
xor byte [rcx + 0x38], 0x58
xor byte [rcx + 0x39], 0x59
xor byte [rcx + 0x3a], 0x5a
xor byte [rcx + 0x3b], 0x5b
xor byte [rcx + 0x3c], 0x5c
xor byte [rcx + 0x3d], 0x5d
xor byte [rcx + 0x3e], 0x5e
xor byte [rcx + 0x3f], 0x5f
mov byte [rcx + 0x41], 0
ret
Function at 0x1400394b0
Capabilities:
Parse pe header

Disassembly:
cmp byte [rcx + 0x40], 0
je 0x1400395b9
xor byte [rcx], 0x20
xor byte [rcx + 1], 0x21
xor byte [rcx + 2], 0x22
xor byte [rcx + 3], 0x23
xor byte [rcx + 4], 0x24
xor byte [rcx + 5], 0x25
xor byte [rcx + 6], 0x26
xor byte [rcx + 7], 0x27
xor byte [rcx + 8], 0x28
xor byte [rcx + 9], 0x29
xor byte [rcx + 0xa], 0x2a
xor byte [rcx + 0xb], 0x2b
xor byte [rcx + 0xc], 0x2c
xor byte [rcx + 0xd], 0x2d
xor byte [rcx + 0xe], 0x2e
xor byte [rcx + 0xf], 0x2f
xor byte [rcx + 0x10], 0x30
xor byte [rcx + 0x11], 0x31
xor byte [rcx + 0x12], 0x32
xor byte [rcx + 0x13], 0x33
xor byte [rcx + 0x14], 0x34
xor byte [rcx + 0x15], 0x35
xor byte [rcx + 0x16], 0x36
xor byte [rcx + 0x17], 0x37
xor byte [rcx + 0x18], 0x38
xor byte [rcx + 0x19], 0x39
xor byte [rcx + 0x1a], 0x3a
xor byte [rcx + 0x1b], 0x3b
xor byte [rcx + 0x1c], 0x3c
xor byte [rcx + 0x1d], 0x3d
xor byte [rcx + 0x1e], 0x3e
xor byte [rcx + 0x1f], 0x3f
xor byte [rcx + 0x20], 0x40
xor byte [rcx + 0x21], 0x41
xor byte [rcx + 0x22], 0x42
xor byte [rcx + 0x23], 0x43
xor byte [rcx + 0x24], 0x44
xor byte [rcx + 0x25], 0x45
xor byte [rcx + 0x26], 0x46
xor byte [rcx + 0x27], 0x47
xor byte [rcx + 0x28], 0x48
xor byte [rcx + 0x29], 0x49
xor byte [rcx + 0x2a], 0x4a
xor byte [rcx + 0x2b], 0x4b
xor byte [rcx + 0x2c], 0x4c
xor byte [rcx + 0x2d], 0x4d
xor byte [rcx + 0x2e], 0x4e
xor byte [rcx + 0x2f], 0x4f
xor byte [rcx + 0x30], 0x50
xor byte [rcx + 0x31], 0x51
xor byte [rcx + 0x32], 0x52
xor byte [rcx + 0x33], 0x53
xor byte [rcx + 0x34], 0x54
xor byte [rcx + 0x35], 0x55
xor byte [rcx + 0x36], 0x56
xor byte [rcx + 0x37], 0x57
xor byte [rcx + 0x38], 0x58
xor byte [rcx + 0x39], 0x59
xor byte [rcx + 0x3a], 0x5a
xor byte [rcx + 0x3b], 0x5b
xor byte [rcx + 0x3c], 0x5c
xor byte [rcx + 0x3d], 0x5d
xor byte [rcx + 0x3e], 0x5e
mov byte [rcx + 0x40], 0
ret
Function at 0x1400395c0
Capabilities:
Parse pe header

Disassembly:
cmp byte [rcx + 0x3f], 0
je 0x1400396c5
xor byte [rcx], 0x20
xor byte [rcx + 1], 0x21
xor byte [rcx + 2], 0x22
xor byte [rcx + 3], 0x23
xor byte [rcx + 4], 0x24
xor byte [rcx + 5], 0x25
xor byte [rcx + 6], 0x26
xor byte [rcx + 7], 0x27
xor byte [rcx + 8], 0x28
xor byte [rcx + 9], 0x29
xor byte [rcx + 0xa], 0x2a
xor byte [rcx + 0xb], 0x2b
xor byte [rcx + 0xc], 0x2c
xor byte [rcx + 0xd], 0x2d
xor byte [rcx + 0xe], 0x2e
xor byte [rcx + 0xf], 0x2f
xor byte [rcx + 0x10], 0x30
xor byte [rcx + 0x11], 0x31
xor byte [rcx + 0x12], 0x32
xor byte [rcx + 0x13], 0x33
xor byte [rcx + 0x14], 0x34
xor byte [rcx + 0x15], 0x35
xor byte [rcx + 0x16], 0x36
xor byte [rcx + 0x17], 0x37
xor byte [rcx + 0x18], 0x38
xor byte [rcx + 0x19], 0x39
xor byte [rcx + 0x1a], 0x3a
xor byte [rcx + 0x1b], 0x3b
xor byte [rcx + 0x1c], 0x3c
xor byte [rcx + 0x1d], 0x3d
xor byte [rcx + 0x1e], 0x3e
xor byte [rcx + 0x1f], 0x3f
xor byte [rcx + 0x20], 0x40
xor byte [rcx + 0x21], 0x41
xor byte [rcx + 0x22], 0x42
xor byte [rcx + 0x23], 0x43
xor byte [rcx + 0x24], 0x44
xor byte [rcx + 0x25], 0x45
xor byte [rcx + 0x26], 0x46
xor byte [rcx + 0x27], 0x47
xor byte [rcx + 0x28], 0x48
xor byte [rcx + 0x29], 0x49
xor byte [rcx + 0x2a], 0x4a
xor byte [rcx + 0x2b], 0x4b
xor byte [rcx + 0x2c], 0x4c
xor byte [rcx + 0x2d], 0x4d
xor byte [rcx + 0x2e], 0x4e
xor byte [rcx + 0x2f], 0x4f
xor byte [rcx + 0x30], 0x50
xor byte [rcx + 0x31], 0x51
xor byte [rcx + 0x32], 0x52
xor byte [rcx + 0x33], 0x53
xor byte [rcx + 0x34], 0x54
xor byte [rcx + 0x35], 0x55
xor byte [rcx + 0x36], 0x56
xor byte [rcx + 0x37], 0x57
xor byte [rcx + 0x38], 0x58
xor byte [rcx + 0x39], 0x59
xor byte [rcx + 0x3a], 0x5a
xor byte [rcx + 0x3b], 0x5b
xor byte [rcx + 0x3c], 0x5c
xor byte [rcx + 0x3d], 0x5d
mov byte [rcx + 0x3f], 0
ret
Function at 0x140039f30
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rdx
test rcx, rcx
je 0x14003a0d3
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14003a0d3
movsxd rax, dword [rcx + 0x3c]
cmp dword [rax + rcx], 0x4550
jne 0x14003a0d3
mov edx, 0x20b
cmp word [rax + rcx + 0x18], dx
jne 0x14003a0d3
mov qword [rbx], rcx
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
mov qword [rsp + 0x40], rdi
mov qword [rbx + 8], rcx
xor edi, edi
mov qword [rsp + 0x48], r14
lea rax, [rcx + 0x18]
mov qword [rbx + 0x18], rax
lea rdx, [rcx + 4]
mov qword [rbx + 0x10], rdx
lea rax, [rcx + 0x88]
mov qword [rbx + 0x20], rax
lea r14, [rcx + 0x18]
lea rax, [rcx + 0x90]
mov qword [rbx + 0x28], rax
lea rax, [rcx + 0x98]
mov qword [rbx + 0x30], rax
lea rax, [rcx + 0xa0]
mov qword [rbx + 0x38], rax
lea rax, [rcx + 0xa8]
mov qword [rbx + 0x40], rax
lea rax, [rcx + 0xb0]
mov qword [rbx + 0x48], rax
lea rax, [rcx + 0xb8]
mov qword [rbx + 0x50], rax
lea rax, [rcx + 0xc0]
mov qword [rbx + 0x58], rax
lea rax, [rcx + 0xc8]
mov qword [rbx + 0x60], rax
lea rax, [rcx + 0xd0]
mov qword [rbx + 0x68], rax
lea rax, [rcx + 0xd8]
mov qword [rbx + 0x70], rax
lea rax, [rcx + 0xe0]
mov qword [rbx + 0x78], rax
lea rax, [rcx + 0xe8]
mov qword [rbx + 0x80], rax
lea rax, [rcx + 0xf0]
mov qword [rbx + 0x88], rax
lea rax, [rcx + 0xf8]
mov qword [rbx + 0x90], rax
lea rax, [rcx + 0x100]
mov qword [rbx + 0x98], rax
movzx eax, word [rcx + 0x14]
add r14, rax
cmp di, word [rdx + 2]
jae 0x14003a0c1
mov qword [rsp + 0x38], rsi
nop dword [rax]
mov rdx, qword [rbx + 0xa8]
movsxd rax, edi
lea rcx, [rax + rax*4]
lea rax, [r14 + rcx*8]
mov qword [rsp + 0x30], rax
cmp rdx, qword [rbx + 0xb0]
je 0x14003a09d
mov qword [rdx], rax
add qword [rbx + 0xa8], 8
jmp 0x14003a0ae
lea r8, [rsp + 0x30]
lea rcx, [rbx + 0xa0]
call fcn.14003a0e0
mov rax, qword [rbx + 0x10]
inc edi
movzx ecx, word [rax + 2]
cmp edi, ecx
jl 0x14003a070
mov rsi, qword [rsp + 0x38]
mov r14, qword [rsp + 0x48]
mov al, 1
mov rdi, qword [rsp + 0x40]
add rsp, 0x20
pop rbx
ret
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x14003b1a0
Capabilities:
Hash data using fnv

Disassembly:
push rbx
push rbp
push rsi
push r15
sub rsp, 0x28
mov rsi, qword [rcx + 8]
mov rbp, rcx
mov r15, qword [rcx + 0x10]
mov rbx, qword [rsi]
cmp rbx, rsi
je 0x14003b335
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x60], r12
movabs r12, 0x100000001b3
mov qword [rsp + 0x68], r13
movabs r13, 0xcbf29ce484222325
mov qword [rsp + 0x20], r14
nop dword [rax]
mov rax, qword [rbx + 0x20]
test rax, rax
je 0x14003b1fd
lock inc dword [rax + 8]
mov rax, qword [rbx + 0x18]
mov rdi, qword [rbx + 0x20]
movzx r14d, byte [rax + 0x10]
test rdi, rdi
je 0x14003b23e
mov eax, 0xffffffff
lock xadd dword [rdi + 8], eax
cmp eax, 1
jne 0x14003b23e
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax]
mov eax, 0xffffffff
lock xadd dword [rdi + 0xc], eax
cmp eax, 1
jne 0x14003b23e
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 8]
test r14b, r14b
jne 0x14003b315
movzx eax, byte [rbx + 0x11]
lea r14, [rbx + 0x10]
movzx edx, byte [r14]
mov rdi, rbx
xor rdx, r13
imul rdx, r12
xor rdx, rax
movzx eax, byte [rbx + 0x12]
imul rdx, r12
xor rdx, rax
movzx eax, byte [rbx + 0x13]
imul rdx, r12
xor rdx, rax
imul rdx, r12
and rdx, qword [rbp + 0x30]
shl rdx, 4
add rdx, qword [rbp + 0x18]
mov rax, qword [rdx]
cmp qword [rdx + 8], rbx
jne 0x14003b2ab
cmp rax, rbx
jne 0x14003b2a1
mov rax, qword [rbp + 8]
mov qword [rdx], rax
mov qword [rdx + 8], rax
jmp 0x14003b2b6
mov rax, qword [rbx + 8]
mov qword [rdx + 8], rax
jmp 0x14003b2b6
cmp rax, rbx
jne 0x14003b2b6
mov rax, qword [rbx]
mov qword [rdx], rax
mov rbx, qword [rbx]
dec qword [rbp + 0x10]
mov rax, qword [rdi + 8]
mov qword [rax], rbx
mov rax, qword [rdi + 8]
mov qword [rbx + 8], rax
mov r14, qword [r14 + 0x10]
test r14, r14
je 0x14003b306
mov eax, 0xffffffff
lock xadd dword [r14 + 8], eax
cmp eax, 1
jne 0x14003b306
mov rax, qword [r14]
mov rcx, r14
call qword [rax]
mov eax, 0xffffffff
lock xadd dword [r14 + 0xc], eax
cmp eax, 1
jne 0x14003b306
mov rax, qword [r14]
mov rcx, r14
call qword [rax + 8]
mov edx, 0x28
mov rcx, rdi
call fcn.140072c30
jmp 0x14003b318
mov rbx, qword [rbx]
cmp rbx, rsi
jne 0x14003b1f0
mov r14, qword [rsp + 0x20]
mov r13, qword [rsp + 0x68]
mov r12, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x58]
sub r15, qword [rbp + 0x10]
mov rax, r15
add rsp, 0x28
pop r15
pop rsi
pop rbp
pop rbx
ret
Function at 0x14003b890
Capabilities:
Hash data using fnv

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov r13, r8
mov r14, rdx
mov rbp, rcx
movzx esi, byte [r8]
movabs rax, 0xcbf29ce484222325
xor rsi, rax
movabs rcx, 0x100000001b3
imul rsi, rcx
movzx eax, byte [r8 + 1]
xor rsi, rax
imul rsi, rcx
movzx eax, byte [r8 + 2]
xor rsi, rax
imul rsi, rcx
movzx eax, byte [r8 + 3]
xor rsi, rax
imul rsi, rcx
mov rcx, rsi
and rcx, qword [rbp + 0x30]
add rcx, rcx
mov rax, qword [rbp + 0x18]
mov rbx, qword [rax + rcx*8 + 8]
lea rdx, [rbp + 8]
mov r12, qword [rdx]
cmp rbx, r12
jne 0x14003b917
mov rbx, r12
mov r15, r12
jmp 0x14003b95a
mov rcx, qword [rax + rcx*8]
mov eax, dword [r8]
cmp eax, dword [rbx + 0x10]
je 0x14003b931
cmp rbx, rcx
je 0x14003b954
mov rbx, qword [rbx + 8]
cmp eax, dword [rbx + 0x10]
jne 0x14003b923
mov qword [r14], rbx
mov byte [r14 + 8], 0
mov rax, r14
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov r12, rbx
mov r15, rbx
movabs rax, 0x2e8ba2e8ba2e8ba
cmp qword [rbp + 0x10], rax
jne 0x14003b978
lea rcx, str.unordered_map_set_too_long
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const____ptr64_]
int3
mov qword [rsp + 0x20], rdx
mov qword [rsp + 0x28], 0
mov ecx, 0x58
call fcn.140072e78
mov rdi, rax
mov qword [rsp + 0x28], rax
mov eax, dword [r13]
mov dword [rdi + 0x10], eax
lea rcx, [rdi + 0x18]
lea rdx, [r13 + 8]
call fcn.14003b570
nop
mov rcx, qword [rbp + 0x10]
add rcx, 1
xorps xmm0, xmm0
js 0x14003b9c1
cvtsi2ss xmm0, rcx
jmp 0x14003b9d6
mov rax, rcx
shr rax, 1
and ecx, 1
or rax, rcx
cvtsi2ss xmm0, rax
addss xmm0, xmm0
mov rcx, qword [rbp + 0x38]
xorps xmm1, xmm1
test rcx, rcx
js 0x14003b9e9
cvtsi2ss xmm1, rcx
jmp 0x14003b9fe
mov rax, rcx
shr rax, 1
and ecx, 1
or rax, rcx
cvtsi2ss xmm1, rax
addss xmm1, xmm1
divss xmm0, xmm1
comiss xmm0, dword [rbp]
jbe 0x14003ba64
mov rcx, rbp
call fcn.14002d040
mov rcx, rsi
and rcx, qword [rbp + 0x30]
add rcx, rcx
mov rdx, qword [rbp + 0x18]
mov rax, qword [rdx + rcx*8 + 8]
mov rbx, qword [rbp + 8]
cmp rax, rbx
jne 0x14003ba37
mov qword [rsp + 0x28], 0
jmp 0x14003ba57
mov rdx, qword [rdx + rcx*8]
mov ecx, dword [rdi + 0x10]
cmp ecx, dword [rax + 0x10]
je 0x14003ba54
mov rbx, rax
cmp rax, rdx
je 0x14003ba95
mov rax, qword [rax + 8]
cmp ecx, dword [rax + 0x10]
jne 0x14003ba43
mov rbx, qword [rax]
mov qword [rsp + 0x20], rbx
mov r15, rbx
mov r12, qword [rsp + 0x20]
mov rcx, qword [rbx + 8]
inc qword [rbp + 0x10]
mov qword [rdi], r12
mov qword [rdi + 8], rcx
mov qword [rcx], rdi
mov qword [rbx + 8], rdi
mov rax, qword [rbp + 0x18]
and rsi, qword [rbp + 0x30]
add rsi, rsi
mov rdx, qword [rax + rsi*8]
cmp rdx, qword [rbp + 8]
jne 0x14003baa5
mov qword [rax + rsi*8], rdi
jmp 0x14003bab7
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], 0
jmp 0x14003ba5c
cmp rdx, r15
jne 0x14003bab0
mov qword [rax + rsi*8], rdi
jmp 0x14003babc
cmp qword [rax + rsi*8 + 8], rcx
jne 0x14003babc
mov qword [rax + rsi*8 + 8], rdi
mov qword [r14], rdi
mov byte [r14 + 8], 1
jmp 0x14003b939
Function at 0x14003f570
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 0x14003f598
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 0x14003f5be
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x14003f5c0
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x14003f619
test ecx, ecx
jle 0x14003f5f9
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 0x14003f619
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x14003f619
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 0x14003f640
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 0x14003f662
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x14003f678
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 0x14003f694
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14003f696
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x14003f6d2
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 0x14003f76e
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x14003f70d
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 0x14003f74e
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 0x14003f76e
cmp rbx, rax
ja 0x14003f720
test rbx, rbx
je 0x14003f76e
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 0x14003fbd0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x1401be040]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x14003fbfd
xor eax, eax
jmp 0x14003fd69
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x14003fc37
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x14003fc37
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 0x14003fd69
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x14003fd5c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14003fc7a
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 0x14003fca5
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 0x14003fd61
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 0x14003fd14
sub eax, 1
je 0x14003fd14
cmp eax, 2
jne 0x14003fd5c
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 0x14003fd61
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x14003fd42
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 0x14003fd5c
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x14003fd61
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140072850
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x140040130
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x1401be040]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140040203
cmp byte [rcx + 0x71], 0
je 0x140040203
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x1400401ff
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 0x1400401c4
sub eax, 1
je 0x1400401c8
cmp eax, 2
jne 0x1400401ff
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140072850
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x1400401f6
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 0x1400401ff
cmp byte [rbx + 0x71], 0
sete al
jmp 0x1400401ac
xor al, al
jmp 0x1400401ac
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140072850
add rsp, 0x60
pop rbx
ret
Function at 0x140048f90
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
movss xmm0, dword [rcx + 0xc]
mov rdi, r9
mulss xmm2, dword [0x1401adf84]
mov rsi, rdx
mov rbx, rcx
movaps xmmword [rsp + 0x20], xmm6
xorps xmm6, xmm6
subss xmm0, xmm2
maxss xmm0, xmm6
ucomiss xmm0, xmm6
movss dword [rcx + 0xc], xmm0
jp 0x140048fd5
jne 0x140048fd5
mov al, 1
jmp 0x140048fd7
xor al, al
mov byte [rcx + 8], al
mov rcx, qword [rcx + 0x20]
test rcx, rcx
je 0x1400491b0
mov rax, qword [rbx + 0x10]
test rax, rax
jne 0x140049036
mov r8d, 0x1505
lea r9, [0x1401a7ccd]
lea rdx, str.pos_y
nop dword [rax]
nop dword [rax + rax]
movzx eax, byte [rdx]
inc rdx
imul r8d, r8d, 0x21
xor r8d, eax
cmp rdx, r9
jne 0x140049010
movss xmm3, dword [0x1401ade20]
mov edx, dword [rcx + 0x10]
call fcn.1400321e0
mov qword [rbx + 0x10], rax
mov rdx, qword [0x1401c3720]
movaps xmm3, xmm6
mov byte [rax + 0x10], 1
mov r8d, dword [rsi]
mov r9d, r8d
shr r9d, 3
mov rax, qword [rdx + 0x4b58]
and r9b, 1
shr r8d, 1
and r8b, 1
mov rcx, qword [rax]
movss xmm1, dword [rcx + 0x14]
movss xmm4, dword [rcx + 0x10]
movaps xmm0, xmm1
mov rcx, qword [rbx + 0x10]
comiss xmm6, xmm1
seta al
mov byte [rcx + 0x3c], al
test al, al
je 0x140049087
movaps xmm0, xmm6
movaps xmm3, xmm1
movss xmm2, dword [rcx + 0x30]
subss xmm0, xmm3
mulss xmm2, dword [rcx + 0x2c]
addss xmm2, dword [rcx + 0x28]
movss dword [rcx + 0x2c], xmm0
movss dword [rcx + 0x28], xmm3
subss xmm2, xmm3
divss xmm2, xmm0
movss xmm0, dword [rcx + 0x34]
ucomiss xmm0, xmm2
jp 0x1400490b8
je 0x1400490c1
movss dword [rcx + 0x30], xmm2
mov byte [rcx + 8], 0
mov rcx, qword [rbx + 0x10]
xorps xmm0, xmm0
movss xmm2, dword [rdx + 0x3938]
test rdi, rdi
js 0x1400490dc
cvtsi2ss xmm0, rdi
jmp 0x1400490f1
mov rax, rdi
and edi, 1
shr rax, 1
or rax, rdi
cvtsi2ss xmm0, rax
addss xmm0, xmm0
addss xmm2, xmm2
mulss xmm2, xmm0
mulss xmm0, dword [rbx + 0x2c]
addss xmm2, xmm0
movss xmm0, dword [rcx + 0x34]
subss xmm2, dword [rcx + 0x28]
divss xmm2, dword [rcx + 0x2c]
ucomiss xmm0, xmm2
jp 0x140049118
je 0x140049125
movss dword [rcx + 0x30], xmm2
mov byte [rcx + 8], 0
mov rcx, qword [rbx + 0x10]
movss xmm3, dword [0x1401be0a0]
movaps xmm2, xmm3
mulss xmm3, dword [rsi + 8]
mulss xmm2, dword [rsi + 4]
test r8b, r8b
jne 0x14004914b
subss xmm4, dword [rbx + 0x28]
subss xmm4, xmm2
movaps xmm2, xmm4
test r9b, r9b
je 0x140049165
movss xmm1, dword [rcx + 0x34]
mulss xmm1, dword [rcx + 0x2c]
addss xmm1, dword [rcx + 0x28]
addss xmm1, xmm3
jmp 0x140049181
movss xmm0, dword [rcx + 0x34]
mulss xmm0, dword [rcx + 0x2c]
addss xmm0, dword [rcx + 0x28]
subss xmm1, xmm0
subss xmm1, dword [rbx + 0x2c]
subss xmm1, xmm3
or dword [rdx + 0x4a48], 1
movaps xmm0, xmm6
unpcklps xmm0, xmm6
movsd qword [rdx + 0x4a60], xmm0
movss dword [rdx + 0x4a58], xmm2
movss dword [rdx + 0x4a5c], xmm1
mov dword [rdx + 0x4a4c], 1
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
movaps xmm6, xmmword [rsp + 0x20]
add rsp, 0x30
pop rdi
ret