joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400125f0
Capabilities:
Hash data with crc32

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 8], rcx
push rdi
sub rsp, 0x20
mov rax, qword [0x1400824e0]
lea rdx, [0x14004c7d0]
mov r8, rcx
mov rbx, qword [rax + 0x1c10]
add rbx, 0xc8
movsxd r9, dword [rbx]
mov rax, qword [rbx + 8]
mov edi, dword [rax + r9*4 - 4]
not edi
movzx eax, r8b
mov r8d, dword [rbx + 4]
movzx ecx, dil
xor rcx, rax
shr edi, 8
movzx eax, byte [r11 + 9]
xor edi, dword [rdx + rcx*4]
movzx ecx, dil
xor rcx, rax
shr edi, 8
movzx eax, byte [r11 + 0xa]
xor edi, dword [rdx + rcx*4]
movzx ecx, dil
xor rcx, rax
shr edi, 8
movzx eax, byte [r11 + 0xb]
xor edi, dword [rdx + rcx*4]
movzx ecx, dil
xor rcx, rax
shr edi, 8
movzx eax, byte [r11 + 0xc]
xor edi, dword [rdx + rcx*4]
movzx ecx, dil
xor rcx, rax
shr edi, 8
movzx eax, byte [r11 + 0xd]
xor edi, dword [rdx + rcx*4]
movzx ecx, dil
xor rcx, rax
shr edi, 8
movzx eax, byte [r11 + 0xe]
xor edi, dword [rdx + rcx*4]
movzx ecx, dil
xor rcx, rax
shr edi, 8
movzx eax, byte [r11 + 0xf]
xor edi, dword [rdx + rcx*4]
movzx ecx, dil
shr edi, 8
xor rcx, rax
xor edi, dword [rdx + rcx*4]
not edi
cmp r9d, r8d
jne 0x1400126f1
lea ecx, [r9 + 1]
test r8d, r8d
je 0x1400126dd
mov eax, r8d
cdq
sub eax, edx
sar eax, 1
add eax, r8d
jmp 0x1400126e2
mov eax, 8
cmp eax, ecx
cmovg ecx, eax
mov edx, ecx
mov rcx, rbx
call fcn.1400192b0
movsxd rcx, dword [rbx]
mov rax, qword [rbx + 8]
mov dword [rax + rcx*4], edi
inc dword [rbx]
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x1400152f0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [0x1400824e0]
mov rbx, rcx
xor ecx, ecx
mov dword [rax + 0x3034], ecx
test rbx, rbx
je 0x14001535f
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x38], rdi
call fcn.140015370
lea rdx, [0x14004cf08]
mov rcx, rbx
mov rdi, rax
call fcn.14000acf0
mov rbx, rax
test rax, rax
je 0x14001535a
mov r8, qword [rsp + 0x30]
mov r9, rax
mov edx, 1
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rdi, qword [rsp + 0x38]
add rsp, 0x20
pop rbx
ret
Function at 0x1400179a0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rsi
sub rsp, 0x20
mov rbx, qword [0x1400824e0]
cmp byte [rbx + 0x3031], 0
jne 0x140017af9
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x140017af2
lea rdx, [0x14004cf04]
mov qword [rsp + 0x38], rdi
call fcn.14000acf0
mov rdi, rax
test rax, rax
je 0x140017aed
mov qword [rsp + 0x40], r14
mov rcx, rax
mov qword [rsp + 0x30], rbp
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov r14d, eax
cmp eax, 0xffffffff
je 0x140017ada
xor edx, edx
mov rcx, rdi
lea r8d, [rdx + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x140017ada
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rbp, eax
cmp ebp, 0xffffffff
je 0x140017ada
xor r8d, r8d
mov edx, r14d
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x140017ada
mov r14, rbp
cmp rbp, 0xffffffffffffffff
je 0x140017ada
mov rax, qword [0x1400824e0]
test rax, rax
je 0x140017a69
inc dword [rax + 0x3b4]
mov rdx, qword [0x1400824f0]
mov rcx, r14
call qword [section..data]
mov rbp, rax
test rax, rax
je 0x140017ada
mov r9, rdi
mov r8, r14
mov edx, 1
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rcx, rdi
cmp rax, r14
je 0x140017aa5
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
jmp 0x140017ab6
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rdx, r14
mov rcx, rbp
call fcn.14000cc20
mov rax, qword [0x1400824e0]
test rax, rax
je 0x140017ac8
dec dword [rax + 0x3b4]
mov rdx, qword [0x1400824f0]
mov rcx, rbp
call qword [0x14005b008]
jmp 0x140017ae3
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rbp, qword [rsp + 0x30]
mov r14, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x38]
mov byte [rbx + 0x3031], 1
movss xmm0, dword [rbx + 0x3034]
xorps xmm1, xmm1
comiss xmm0, xmm1
jbe 0x140017b3c
subss xmm0, dword [rbx + 0x18]
comiss xmm1, xmm0
movss dword [rbx + 0x3034], xmm0
jb 0x140017b3c
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x140017b2b
call fcn.1400152f0
jmp 0x140017b32
mov byte [rbx + 0x39c], 1
mov dword [rbx + 0x3034], 0
mov rbx, qword [rsp + 0x48]
add rsp, 0x20
pop rsi
ret
Function at 0x14002bb40
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x50
mov rax, qword [0x140082100]
xor rax, rsp
mov qword [rsp + 0x48], rax
call fcn.14000a4a0
mov rcx, qword [0x140082558]
lea rdx, [rsp + 0x28]
xorps xmm0, xmm0
mov rdi, rax
movdqu xmmword [rsp + 0x28], xmm0
call qword [sym.imp.USER32.dll_GetClientRect]
mov ecx, dword [rsp + 0x30]
sub ecx, dword [rsp + 0x28]
movd xmm1, ecx
mov ecx, dword [rsp + 0x34]
sub ecx, dword [rsp + 0x2c]
cvtdq2ps xmm1, xmm1
movd xmm0, ecx
lea rcx, [rsp + 0x40]
cvtdq2ps xmm0, xmm0
movss dword [rdi + 8], xmm1
movss dword [rdi + 0xc], xmm0
mov qword [rsp + 0x40], 0
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rsp + 0x40]
xorps xmm1, xmm1
sub rax, qword [0x140082560]
xorps xmm0, xmm0
cvtsi2ss xmm0, qword [0x140082568]
mov ecx, 0x11
cvtsi2ss xmm1, rax
divss xmm1, xmm0
movss dword [rdi + 0x10], xmm1
mov rax, qword [rsp + 0x40]
mov qword [0x140082560], rax
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
mov ecx, 0x10
and al, 1
mov byte [rdi + 0x138], al
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
mov ecx, 0x12
and al, 1
mov byte [rdi + 0x139], al
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, 1
mov byte [rdi + 0x13b], 0
mov byte [rdi + 0x13a], al
call fcn.14000a4a0
mov rbx, rax
cmp byte [rax + 0x393], 0
je 0x14002bc83
cvttss2si ecx, dword [rax + 0x120]
lea rdx, [rsp + 0x38]
mov dword [rsp + 0x38], ecx
cvttss2si ecx, dword [rax + 0x124]
mov dword [rsp + 0x3c], ecx
mov rcx, qword [0x140082558]
call qword [sym.imp.USER32.dll_ClientToScreen]
test eax, eax
je 0x14002bc83
mov edx, dword [rsp + 0x3c]
mov ecx, dword [rsp + 0x38]
call qword [sym.imp.USER32.dll_SetCursorPos]
mov dword [rbx + 0x120], 0xff7fffff
mov dword [rbx + 0x124], 0xff7fffff
call qword [sym.imp.USER32.dll_GetActiveWindow]
cmp rax, qword [0x140082558]
jne 0x14002bced
lea rcx, [rsp + 0x20]
call qword [sym.imp.USER32.dll_GetCursorPos]
test eax, eax
je 0x14002bced
mov rcx, qword [0x140082558]
lea rdx, [rsp + 0x20]
call qword [sym.imp.USER32.dll_ScreenToClient]
test eax, eax
je 0x14002bced
movd xmm0, dword [rsp + 0x20]
movd xmm1, dword [rsp + 0x24]
cvtdq2ps xmm0, xmm0
cvtdq2ps xmm1, xmm1
movss dword [rbx + 0x120], xmm0
movss dword [rbx + 0x124], xmm1
cmp byte [rdi + 0xc0], 0
je 0x14002bcfd
mov eax, 0xffffffff
jmp 0x14002bd02
call fcn.14000a4b0
cmp dword [0x14005b1c0], eax
je 0x14002bd15
mov dword [0x14005b1c0], eax
call fcn.14002c0a0
call fcn.14002bda0
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140049b90
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret
Function at 0x14002d050
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub rsp, 0x38
mov rax, qword [0x1400824e0]
mov rcx, qword [rax + 0x1ff0]
mov r10, qword [rax + 0x1c10]
movsxd rax, dword [rcx + 0x7c]
movups xmm0, xmmword [rcx + 0x174]
movss xmm4, dword [rcx + 0x174]
movss xmm3, dword [rcx + 0x178]
movss xmm2, dword [rcx + 0x17c]
movss xmm1, dword [rcx + 0x180]
movss dword [rsp + 0x20], xmm4
movss dword [rsp + 0x24], xmm3
movss dword [rsp + 0x28], xmm2
movss dword [rsp + 0x2c], xmm1
imul r9, rax, 0x68
mov rax, qword [r10 + 0x2b0]
add r9, qword [rcx + 0x18]
movups xmmword [r10 + 0x250], xmm0
movss dword [rax + 0x88], xmm4
movss dword [rax + 0x8c], xmm3
movss dword [rax + 0x90], xmm2
movss dword [rax + 0x94], xmm1
mov rax, qword [r10 + 0x2b0]
movups xmm0, xmmword [rsp + 0x20]
movsxd r8, dword [rax + 0x58]
mov rdx, qword [rax + 0x60]
add r8, r8
movups xmmword [rdx + r8*8 - 0x10], xmm0
movzx r8d, byte [r9 + 0x57]
mov rdx, qword [r10 + 0x2b0]
mov rcx, qword [rcx + 0x1a8]
add rsp, 0x38
jmp 0x140022330

Function at 0x14002d120
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub rsp, 0x38
mov rax, qword [0x1400824e0]
mov rcx, qword [rax + 0x1ff0]
mov r9, qword [rax + 0x1c10]
movups xmm0, xmmword [r9 + 0x250]
movups xmmword [rcx + 0x174], xmm0
mov rax, qword [r9 + 0x2b0]
movups xmm0, xmmword [rcx + 0x154]
movss xmm4, dword [rcx + 0x154]
movss xmm3, dword [rcx + 0x158]
movss xmm2, dword [rcx + 0x15c]
movss xmm1, dword [rcx + 0x160]
movups xmmword [r9 + 0x250], xmm0
movss dword [rsp + 0x20], xmm4
movss dword [rsp + 0x24], xmm3
movss dword [rsp + 0x28], xmm2
movss dword [rsp + 0x2c], xmm1
movss dword [rax + 0x88], xmm4
movss dword [rax + 0x8c], xmm3
movss dword [rax + 0x90], xmm2
movss dword [rax + 0x94], xmm1
mov rax, qword [r9 + 0x2b0]
movups xmm0, xmmword [rsp + 0x20]
movsxd r8, dword [rax + 0x58]
mov rdx, qword [rax + 0x60]
add r8, r8
movups xmmword [rdx + r8*8 - 0x10], xmm0
movzx r8d, byte [rcx + 0x1d7]
mov rcx, qword [rcx + 0x1a8]
mov rdx, qword [r9 + 0x2b0]
add rsp, 0x38
jmp 0x140022330
Function at 0x14002fb50
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbx
sub rsp, 0x90
mov rax, qword [0x140082100]
xor rax, rsp
mov qword [rsp + 0x80], rax
movzx eax, byte [rcx]
mov ebx, edx
mov r8, rcx
test al, al
je 0x14002fb90
cmp al, 0x25
jne 0x14002fb84
cmp byte [r8 + 1], al
jne 0x14002fb90
inc r8
movzx eax, byte [r8 + 1]
inc r8
test al, al
jne 0x14002fb77
movzx edx, byte [r8]
cmp dl, 0x25
jne 0x14002fcfa
cmp byte [r8 + 1], dl
je 0x14002fcfa
lea r11, [rsp + 0x20]
mov r9, r8
nop
lea eax, [rdx - 0x41]
movsx r10d, dl
cmp al, 0x19
ja 0x14002fbcd
lea ecx, [r10 - 0x41]
mov eax, 1
shl eax, cl
test eax, 0x900
je 0x14002fbf5
sub dl, 0x61
cmp dl, 0x19
ja 0x14002fbe7
lea ecx, [r10 - 0x61]
mov eax, 1
shl eax, cl
test eax, 0x2480a80
je 0x14002fbf5
movzx edx, byte [r9 + 1]
inc r9
test dl, dl
jne 0x14002fbb0
jmp 0x14002fbf8
inc r9
cmp r8, r9
jae 0x14002fc2f
movabs rdx, 0x800000000000009
nop word [rax + rax]
movzx ecx, byte [r8]
inc r8
lea eax, [rcx - 0x24]
cmp al, 0x3b
ja 0x14002fc24
bt rdx, rax
jb 0x14002fc2a
mov byte [r11], cl
inc r11
cmp r8, r9
jb 0x14002fc10
xorps xmm3, xmm3
mov byte [r11], 0
cvtss2sd xmm3, xmm2
lea r8, [rsp + 0x20]
mov edx, 0x40
lea rcx, [rsp + 0x40]
movq r9, xmm3
call fcn.14000ae40
cmp byte [rsp + 0x40], 0x20
lea rcx, [rsp + 0x40]
jne 0x14002fc68
nop
inc rcx
cmp byte [rcx], 0x20
je 0x14002fc60
lea eax, [rbx - 8]
cmp eax, 1
jbe 0x14002fce8
movzx r9d, byte [rcx]
movzx r8d, r9b
cmp r9b, 0x2d
jne 0x14002fc8a
movzx r8d, byte [rcx + 1]
lea rax, [rcx + 1]
mov rcx, rax
movzx eax, r8b
cmp r8b, 0x2b
jne 0x14002fc98
movzx eax, byte [rcx + 1]
lea rdx, [rcx + 1]
xorps xmm1, xmm1
cmovne rdx, rcx
cmp al, 0x30
jl 0x14002fcd6
movss xmm2, dword [0x14004d010]
nop
cmp al, 0x39
ja 0x14002fcd6
movzx eax, al
inc rdx
sub eax, 0x30
mulss xmm1, xmm2
movd xmm0, eax
movzx eax, byte [rdx]
cvtdq2ps xmm0, xmm0
addss xmm0, xmm1
movaps xmm1, xmm0
cmp al, 0x30
jge 0x14002fcb0
cmp r9b, 0x2d
jne 0x14002fcf5
xorps xmm1, xmmword [0x14004d080]
movaps xmm0, xmm1
jmp 0x14002fcfd
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atof]
xorps xmm1, xmm1
cvtsd2ss xmm1, xmm0
movaps xmm0, xmm1
jmp 0x14002fcfd
movaps xmm0, xmm2
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140049b90
add rsp, 0x90
pop rbx
ret
Function at 0x14002fd20
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbx
sub rsp, 0x90
mov rax, qword [0x140082100]
xor rax, rsp
mov qword [rsp + 0x80], rax
movzx eax, byte [rcx]
mov ebx, edx
mov r8, rcx
test al, al
je 0x14002fd60
cmp al, 0x25
jne 0x14002fd54
cmp byte [r8 + 1], al
jne 0x14002fd60
inc r8
movzx eax, byte [r8 + 1]
inc r8
test al, al
jne 0x14002fd47
movzx edx, byte [r8]
cmp dl, 0x25
jne 0x14002fec4
cmp byte [r8 + 1], dl
je 0x14002fec4
lea r11, [rsp + 0x20]
mov r9, r8
nop
lea eax, [rdx - 0x41]
movsx r10d, dl
cmp al, 0x19
ja 0x14002fd9d
lea ecx, [r10 - 0x41]
mov eax, 1
shl eax, cl
test eax, 0x900
je 0x14002fdc5
sub dl, 0x61
cmp dl, 0x19
ja 0x14002fdb7
lea ecx, [r10 - 0x61]
mov eax, 1
shl eax, cl
test eax, 0x2480a80
je 0x14002fdc5
movzx edx, byte [r9 + 1]
inc r9
test dl, dl
jne 0x14002fd80
jmp 0x14002fdc8
inc r9
cmp r8, r9
jae 0x14002fdff
movabs rdx, 0x800000000000009
nop word [rax + rax]
movzx ecx, byte [r8]
inc r8
lea eax, [rcx - 0x24]
cmp al, 0x3b
ja 0x14002fdf4
bt rdx, rax
jb 0x14002fdfa
mov byte [r11], cl
inc r11
cmp r8, r9
jb 0x14002fde0
movaps xmm3, xmm2
mov byte [r11], 0
movq r9, xmm2
lea r8, [rsp + 0x20]
mov edx, 0x40
lea rcx, [rsp + 0x40]
call fcn.14000ae40
cmp byte [rsp + 0x40], 0x20
lea rcx, [rsp + 0x40]
jne 0x14002fe38
nop dword [rax + rax]
inc rcx
cmp byte [rcx], 0x20
je 0x14002fe30
lea eax, [rbx - 8]
cmp eax, 1
jbe 0x14002feb6
movzx r9d, byte [rcx]
movzx r8d, r9b
cmp r9b, 0x2d
jne 0x14002fe5a
movzx r8d, byte [rcx + 1]
lea rax, [rcx + 1]
mov rcx, rax
movzx eax, r8b
cmp r8b, 0x2b
jne 0x14002fe68
movzx eax, byte [rcx + 1]
lea rdx, [rcx + 1]
xorps xmm1, xmm1
cmovne rdx, rcx
cmp al, 0x30
jl 0x14002fea4
movsd xmm2, qword [0x1400513f8]
nop
cmp al, 0x39
ja 0x14002fea4
movzx eax, al
inc rdx
sub eax, 0x30
mulsd xmm1, xmm2
movd xmm0, eax
movzx eax, byte [rdx]
cvtdq2pd xmm0, xmm0
addsd xmm1, xmm0
cmp al, 0x30
jge 0x14002fe80
cmp r9b, 0x2d
jne 0x14002febf
xorps xmm1, xmmword [0x140051480]
movaps xmm0, xmm1
jmp 0x14002fec7
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atof]
movaps xmm1, xmm0
movaps xmm0, xmm1
jmp 0x14002fec7
movaps xmm0, xmm2
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140049b90
add rsp, 0x90
pop rbx
ret
Function at 0x14004a79c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14004a7e6
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14004a7e6
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14004a7e6
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14004a7e6
cmp dword [rcx + 0x84], 0xe
jbe 0x14004a7e6
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14004a7e8
xor al, al
add rsp, 0x28
ret
Function at 0x140004890
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x78
mov qword [rsp + 0x28], rdx
mov qword [rsp + 0x30], rcx
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x70], 0
mov qword [rsp + 0x68], 0
cmp qword [rax + 8], 0
sete al
and al, 1
cmp al, 0
je 0x1400048e8
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x70], 0
mov qword [rsp + 0x68], 0
mov qword [rax], 0
xor eax, eax
add rsp, 0x78
ret
mov ecx, 0xfffffff4
call sub.KERNEL32.dll_GetStdHandle
mov qword [rsp + 0x60], rax
mov rcx, qword [rsp + 0x60]
mov edx, 1
xor r8d, r8d
call sub.KERNEL32.dll_SetHandleInformation
mov rax, qword [rsp + 0x30]
mov dword [rsp + 0x5c], 0
mov qword [rsp + 0x50], 0
mov rax, qword [rax + 8]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x50]
cmp rax, qword [rsp + 0x48]
setl al
and al, 1
cmp al, 0
je 0x1400049f6
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x48]
sub rcx, qword [rsp + 0x50]
mov qword [rsp + 0x40], rcx
mov rcx, qword [rsp + 0x40]
mov edx, ecx
mov ecx, 0x40000000
cmp edx, 0x40000000
cmovl ecx, edx
mov dword [rsp + 0x3c], ecx
mov rcx, qword [rsp + 0x60]
mov rdx, qword [rax]
add rdx, qword [rsp + 0x50]
mov r8d, dword [rsp + 0x3c]
lea r9, [rsp + 0x5c]
xor eax, eax
mov qword [rsp + 0x20], 0
call sub.KERNEL32.dll_WriteFile
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x5c], 0
setbe al
and al, 1
cmp al, 0
jne 0x1400049ac
cmp dword [rsp + 0x38], 0
jne 0x1400049e3
call sub.KERNEL32.dll_GetLastError
mov rcx, qword [rsp + 0x28]
mov eax, eax
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x70], rax
mov rdx, qword [rsp + 0x70]
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x70], rdx
mov qword [rsp + 0x68], rax
mov qword [rcx], rdx
add rsp, 0x78
ret
mov eax, dword [rsp + 0x5c]
add rax, qword [rsp + 0x50]
mov qword [rsp + 0x50], rax
jmp 0x140004928
mov rcx, qword [rsp + 0x28]
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x70], rax
mov rdx, qword [rsp + 0x70]
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x70], rdx
mov qword [rsp + 0x68], rax
mov qword [rcx], rdx
add rsp, 0x78
ret
Function at 0x14001d820
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x88
mov qword [rsp + 0x38], r8
mov qword [rsp + 0x40], rdx
mov qword [rsp + 0x48], rcx
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x48]
mov qword [rsp + 0x80], rcx
cmp qword [rax + 8], 0
sete al
and al, 1
cmp al, 0
je 0x14001d86c
mov rax, qword [rsp + 0x38]
mov qword [rax], 0
xor eax, eax
add rsp, 0x88
ret
mov rax, qword [rsp + 0x40]
mov dword [rsp + 0x7c], 0
mov qword [rsp + 0x70], 0
mov rax, qword [rax + 8]
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x70]
cmp rax, qword [rsp + 0x68]
setl al
and al, 1
cmp al, 0
je 0x14001d97f
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x68]
sub rcx, qword [rsp + 0x70]
mov qword [rsp + 0x60], rcx
mov rcx, qword [rsp + 0x60]
mov edx, ecx
mov ecx, 0x40000000
cmp edx, 0x40000000
cmovl ecx, edx
mov dword [rsp + 0x5c], ecx
mov rcx, qword [rax]
mov qword [rsp + 0x28], rcx
mov r9, qword [rsp + 0x70]
mov qword [rsp + 0x30], r9
mov rax, qword [rax + 8]
lea rcx, str.E:_Libs_Odin_core_os_file_windows.odin
mov edx, 0x5b
mov r8d, 0x30
mov qword [rsp + 0x20], rax
call fcn.140002390
mov rdx, qword [rsp + 0x28]
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x48]
add rdx, rax
mov r8d, dword [rsp + 0x5c]
lea r9, [rsp + 0x7c]
xor eax, eax
mov qword [rsp + 0x20], 0
call sub.KERNEL32.dll_WriteFile
mov dword [rsp + 0x58], eax
cmp dword [rsp + 0x7c], 0
setbe al
and al, 1
cmp al, 0
jne 0x14001d946
cmp dword [rsp + 0x58], 0
jne 0x14001d96c
call sub.KERNEL32.dll_GetLastError
mov rcx, qword [rsp + 0x38]
mov eax, eax
mov qword [rsp + 0x50], rax
mov rdx, qword [rsp + 0x70]
mov rax, qword [rsp + 0x50]
mov qword [rcx], rdx
add rsp, 0x88
ret
mov eax, dword [rsp + 0x7c]
add rax, qword [rsp + 0x70]
mov qword [rsp + 0x70], rax
jmp 0x14001d88b
mov rax, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x70]
mov qword [rax], rcx
xor eax, eax
add rsp, 0x88
ret
Function at 0x14001e410
Capabilities:
Get file size

Disassembly:
sub rsp, 0x48
mov qword [rsp + 0x20], rdx
mov qword [rsp + 0x28], rcx
mov rcx, qword [rsp + 0x28]
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
lea rdx, [rsp + 0x38]
call sub.KERNEL32.dll_GetFileSizeEx
cmp eax, 0
jne 0x14001e455
call sub.KERNEL32.dll_GetLastError
mov eax, eax
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov rax, qword [rsp + 0x30]
mov qword [rcx], rdx
add rsp, 0x48
ret

Function at 0x14001e470
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0xd8
mov qword [rsp + 0x28], r9
mov qword [rsp + 0x30], r8
mov qword [rsp + 0x38], rdx
mov qword [rsp + 0x40], rcx
mov rcx, qword [rsp + 0x38]
mov rax, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x40]
mov qword [rsp + 0xd0], rdx
mov qword [rsp + 0xc8], rax
mov rax, qword [rcx]
mov rcx, qword [rcx + 8]
mov qword [rsp + 0xc0], rcx
mov qword [rsp + 0xb8], rax
cmp qword [rsp + 0xc0], 0x40000000
setg al
and al, 1
cmp al, 0
je 0x14001e53e
mov rcx, qword [rsp + 0xc0]
mov rax, rsp
mov qword [rax + 0x20], rcx
lea rcx, str.E:_Libs_Odin_core_os_file_windows.odin
mov edx, 0xe5
mov r8d, 0xc
mov r9d, 0x40000000
call fcn.140002fa0
mov rax, qword [rsp + 0xb8]
mov qword [rsp + 0xa8], rax
mov qword [rsp + 0xb0], 0x40000000
mov rax, qword [rsp + 0xa8]
mov rcx, qword [rsp + 0xb0]
mov qword [rsp + 0xc0], rcx
mov qword [rsp + 0xb8], rax
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x30]
xorps xmm0, xmm0
movaps xmmword [rsp + 0x90], xmm0
movaps xmmword [rsp + 0x80], xmm0
mov qword [rsp + 0x98], 0
mov dword [rsp + 0x94], 0
mov dword [rsp + 0x90], 0
mov qword [rsp + 0x88], 0
mov qword [rsp + 0x80], 0
mov rdx, rcx
shr rdx, 0x20
mov dword [rsp + 0x94], edx
mov dword [rsp + 0x90], ecx
mov rcx, qword [rsp + 0x80]
mov rdx, qword [rsp + 0x88]
mov r8d, dword [rsp + 0x90]
mov r9d, dword [rsp + 0x94]
mov r10, qword [rsp + 0x98]
mov qword [rsp + 0x78], r10
mov dword [rsp + 0x74], r9d
mov dword [rsp + 0x70], r8d
mov qword [rsp + 0x68], rdx
mov qword [rsp + 0x60], rcx
mov qword [rsp + 0x58], rax
mov dword [rsp + 0x54], 0
mov qword [rsp + 0x48], 0
mov rcx, qword [rsp + 0x58]
mov rdx, qword [rsp + 0xb8]
mov rax, qword [rsp + 0xc0]
mov r8d, eax
lea r9, [rsp + 0x54]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
call sub.KERNEL32.dll_ReadFile
cmp eax, 0
jne 0x14001e646
call sub.KERNEL32.dll_GetLastError
mov eax, eax
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x54], 0
mov rcx, qword [rsp + 0x28]
mov eax, dword [rsp + 0x54]
mov edx, eax
mov rax, qword [rsp + 0x48]
mov qword [rcx], rdx
add rsp, 0xd8
ret
Function at 0x14001e670
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0xd8
mov qword [rsp + 0x28], r9
mov qword [rsp + 0x30], r8
mov qword [rsp + 0x38], rdx
mov qword [rsp + 0x40], rcx
mov rcx, qword [rsp + 0x38]
mov rax, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x40]
mov qword [rsp + 0xd0], rdx
mov qword [rsp + 0xc8], rax
mov rax, qword [rcx]
mov rcx, qword [rcx + 8]
mov qword [rsp + 0xc0], rcx
mov qword [rsp + 0xb8], rax
cmp qword [rsp + 0xc0], 0x40000000
setg al
and al, 1
cmp al, 0
je 0x14001e73e
mov rcx, qword [rsp + 0xc0]
mov rax, rsp
mov qword [rax + 0x20], rcx
lea rcx, str.E:_Libs_Odin_core_os_file_windows.odin
mov edx, 0xfd
mov r8d, 0xc
mov r9d, 0x40000000
call fcn.140002fa0
mov rax, qword [rsp + 0xb8]
mov qword [rsp + 0xa8], rax
mov qword [rsp + 0xb0], 0x40000000
mov rax, qword [rsp + 0xa8]
mov rcx, qword [rsp + 0xb0]
mov qword [rsp + 0xc0], rcx
mov qword [rsp + 0xb8], rax
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x30]
xorps xmm0, xmm0
movaps xmmword [rsp + 0x90], xmm0
movaps xmmword [rsp + 0x80], xmm0
mov qword [rsp + 0x98], 0
mov dword [rsp + 0x94], 0
mov dword [rsp + 0x90], 0
mov qword [rsp + 0x88], 0
mov qword [rsp + 0x80], 0
mov rdx, rcx
shr rdx, 0x20
mov dword [rsp + 0x94], edx
mov dword [rsp + 0x90], ecx
mov rcx, qword [rsp + 0x80]
mov rdx, qword [rsp + 0x88]
mov r8d, dword [rsp + 0x90]
mov r9d, dword [rsp + 0x94]
mov r10, qword [rsp + 0x98]
mov qword [rsp + 0x78], r10
mov dword [rsp + 0x74], r9d
mov dword [rsp + 0x70], r8d
mov qword [rsp + 0x68], rdx
mov qword [rsp + 0x60], rcx
mov qword [rsp + 0x58], rax
mov dword [rsp + 0x54], 0
mov qword [rsp + 0x48], 0
mov rcx, qword [rsp + 0x58]
mov rdx, qword [rsp + 0xb8]
mov rax, qword [rsp + 0xc0]
mov r8d, eax
lea r9, [rsp + 0x54]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
call sub.KERNEL32.dll_WriteFile
cmp eax, 0
jne 0x14001e846
call sub.KERNEL32.dll_GetLastError
mov eax, eax
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x54], 0
mov rcx, qword [rsp + 0x28]
mov eax, dword [rsp + 0x54]
mov edx, eax
mov rax, qword [rsp + 0x48]
mov qword [rcx], rdx
add rsp, 0xd8
ret
Function at 0x14003d910
Capabilities:
Hash data using fnv

Disassembly:
sub rsp, 0x50
mov qword [rsp], rdx
mov qword [rsp + 8], rcx
mov rax, qword [rsp + 8]
mov rcx, qword [rsp]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x38], 8
movabs rdx, 0xcbf29ce484222325
add rcx, rdx
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
mov qword [rsp + 0x18], 0
cmp qword [rsp + 0x20], 8
jge 0x14003d9c3
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x28]
movzx ecx, byte [rcx]
xor rax, rcx
movabs rcx, 0x100000001b3
imul rax, rcx
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x28]
add rax, 1
mov qword [rsp + 0x10], rax
mov rax, qword [rsp + 0x10]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x20]
add rax, 1
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x18]
add rax, 1
mov qword [rsp + 0x18], rax
jmp 0x14003d962
movabs rax, 0x7fffffffffffffff
and rax, qword [rsp + 0x30]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x30], 0
sete cl
and cl, 1
movzx ecx, cl
or rax, rcx
add rsp, 0x50
ret