joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000d5b0
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x150]
sub rsp, 0x250
mov rax, qword [0x140016018]
xor rax, rsp
mov qword [rbp + 0x140], rax
and qword [rdx], 0
mov r12, rdx
mov r8, rcx
mov edi, 0x104
mov edx, edi
lea rcx, [rsp + 0x30]
xor r15d, r15d
xor r14d, r14d
call fcn.140001be4
lea r8, [0x1400139b8]
mov edx, edi
lea rcx, [rsp + 0x30]
call fcn.140001164
lea r8, [rsp + 0x30]
xor edx, edx
mov ecx, 0x1f0003
call qword [sym.imp.KERNEL32.dll_OpenSemaphoreW]
nop dword [rax + rax]
mov rbx, rax
test rax, rax
jne 0x14000d661
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 2
je 0x14000d759
mov rcx, qword [rbp + 0x178]
lea edx, [rdi - 0x3b]
call fcn.14000d4bc
mov esi, eax
jmp 0x14000d73f
and dword [rsp + 0x24], r14d
lea rdx, [rsp + 0x24]
and dword [rsp + 0x20], r14d
mov rcx, rbx
call fcn.14000d7bc
mov esi, eax
test eax, eax
jns 0x14000d69f
mov rcx, qword [rbp + 0x178]
mov r9d, eax
mov edx, 0xcf
call fcn.14000d480
mov rcx, rbx
call fcn.14000d550
jmp 0x14000d73f
lea r8, [0x1400139c0]
mov rdx, rdi
lea rcx, [rsp + 0x30]
call fcn.140001164
lea r8, [rsp + 0x30]
xor edx, edx
mov ecx, 0x1f0003
call qword [sym.imp.KERNEL32.dll_OpenSemaphoreW]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
jne 0x14000d6e8
mov rcx, qword [rbp + 0x178]
mov edx, 0xd5
call fcn.14000d4bc
mov esi, eax
jmp 0x14000d692
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.14000d7bc
mov esi, eax
test eax, eax
jns 0x14000d71c
mov rcx, qword [rbp + 0x178]
mov r9d, eax
mov edx, 0xd7
call fcn.14000d480
mov rcx, rdi
call fcn.14000d550
jmp 0x14000d692
mov rcx, rdi
call fcn.14000d550
movsxd rax, dword [rsp + 0x24]
mov rcx, rbx
movsxd r14, dword [rsp + 0x20]
shl r14, 0x1f
or r14, rax
call fcn.14000d550
xor esi, esi
test esi, esi
jns 0x14000d759
mov rcx, qword [rbp + 0x178]
mov r9d, esi
mov edx, 0x62
call fcn.14000d480
jmp 0x14000d75e
mov r15, r14
xor esi, esi
test esi, esi
jns 0x14000d77a
mov rcx, qword [rbp + 0x178]
mov r9d, esi
mov edx, reloc.urlmon.dll_Ordinal_107
call fcn.14000d480
mov eax, esi
jmp 0x14000d787
mov rax, r15
shl rax, 2
mov qword [r12], rax
xor eax, eax
mov rcx, qword [rbp + 0x140]
xor rcx, rsp
call fcn.14000f1e0
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret

Function at 0x14000f4fc
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14000f548
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14000f540
cmp dword [rcx + 0x3c], edx
jl 0x14000f540
cmp dword [rcx + 0x3c], 0x10000000
jae 0x14000f540
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x14000f548
mov rax, rdx
add rsp, 0x18
ret
Function at 0x140005430
Capabilities:
Parse pe header

Disassembly:
push rbx
sub rsp, 0x40
mov qword [rsp + 0x58], rdx
mov rbx, r8
xor edx, edx
test rcx, rcx
je 0x140005464
cmp word [rcx], 0x5a4d
jne 0x140005464
movsxd rax, dword [rcx + 0x3c]
cmp eax, 0x400
jg 0x140005464
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140005464
mov edx, dword [rcx + 0x28]
add rdx, qword [rsp + 0x58]
mov rcx, rbx
call fcn.140005370
test eax, eax
jne 0x140005480
xor eax, eax
add rsp, 0x40
pop rbx
ret
mov rcx, rbx
call fcn.1400053e0
test rax, rax
je 0x140005475
lea rdx, [rax + 0x10]
lea rax, [rsp + 0x38]
mov rcx, qword [rbx]
mov r9d, 8
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x58]
mov qword [rsp + 0x38], 0
call fcn.140005c2f
not eax
shr eax, 0x1f
add rsp, 0x40
pop rbx
ret

Function at 0x140005b30
Capabilities:
Execute syscall

Disassembly:
pop rax
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
mov rcx, r10
call fcn.140005ad0
add rsp, 0x28
mov rcx, qword [rsp + 8]
mov rdx, qword [rsp + 0x10]
mov r8, qword [rsp + 0x18]
mov r9, qword [rsp + 0x20]
mov r10, rcx
syscall
ret

Function at 0x140005f94
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
mov rax, qword [0x14053ded8]
xor ebx, ebx
add rax, 0x18
mov r12, rcx
mov ecx, dword [0x14053ded4]
mov rsi, rdx
mov rdi, r8
cmp ebx, ecx
jge 0x140005fe2
mov rdx, qword [rax]
cmp r12, rdx
jb 0x140005fda
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x1400060c9
inc ebx
add rax, 0x28
jmp 0x140005fba
mov rcx, r12
call fcn.1400067c1
mov rbp, rax
test rax, rax
jne 0x140006001
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.140005f30
movsxd rbx, ebx
mov rax, qword [0x14053ded8]
xor edx, edx
imul rbx, rbx, 0x28
add rax, rbx
mov dword [rax], edx
mov qword [rax + 0x20], rbp
call fcn.14000686f
mov edx, dword [rbp + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14053ded8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.DLL_VirtualQuery]
test rax, rax
jne 0x140006063
mov rax, qword [0x14053ded8]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140005f30
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x1400060c3
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x1400060c3
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x14053ded8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.DLL_VirtualProtect]
test eax, eax
jne 0x1400060c3
call qword [sym.imp.KERNEL32.DLL_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140005f30
inc dword [0x14053ded4]
mov ecx, edi
mov rdi, r12
rep movsb byte [rdi], byte [rsi]
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
Function at 0x1400064f0
Capabilities:
Get thread local storage value

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
lea rdi, [0x14053df40]
mov rcx, rdi
call qword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
mov rbx, qword [0x14053df20]
test rbx, rbx
je 0x14000653c
mov ecx, dword [rbx]
call qword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov rsi, rax
call qword [sym.imp.KERNEL32.DLL_GetLastError]
test rsi, rsi
je 0x140006536
test eax, eax
jne 0x140006536
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
jmp 0x14000650e
mov rcx, rdi
add rsp, 0x20
pop rbx
pop rsi
pop rdi
jmp qword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]

Function at 0x1400066f0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x140006713
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
jne 0x140006713
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x140006714
Capabilities:
Enumerate pe sections

Disassembly:
xor r8d, r8d
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r9d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
cmp r8d, r9d
jae 0x14000674e
mov r10d, dword [rax + 0xc]
mov rcx, r10
cmp rdx, r10
jb 0x140006745
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x140006750
inc r8d
add rax, 0x28
jmp 0x14000672c
xor eax, eax
ret

Function at 0x1400067c1
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x140539a50]
mov r8, rcx
mov rcx, r9
call fcn.1400066f0
test eax, eax
je 0x1400067ed
mov rdx, r8
mov rcx, r9
sub rdx, r9
add rsp, 0x28
jmp fcn.140006714
xor eax, eax
add rsp, 0x28
ret
Function at 0x140011384
Capabilities:
Terminate process

Disassembly:
jmp 0x140017480
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret
Function at 0x140011479
Capabilities:
Parse pe header

Disassembly:
jmp 0x1400187d0
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x1400187f0
xor al, al
jmp 0x140018871
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140018803
xor al, al
jmp 0x140018871
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x14001882d
xor al, al
jmp 0x140018871
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140018841
xor al, al
jmp 0x140018871
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140018853
xor al, al
jmp 0x140018871
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14001886f
xor al, al
jmp 0x140018871
mov al, 1
add rsp, 0x38
ret
Function at 0x402230
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x00404340]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x402250
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x402258
ret
cmp word [r8 + 0x18], 0x20b
jne 0x402250
movzx eax, word [r8 + 0x14]
sub rcx, rdx
movzx edx, word [r8 + 6]
lea rax, [r8 + rax + 0x18]
test edx, edx
je 0x4022a5
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x40229c
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x402250
add rax, 0x28
cmp rax, r9
jne 0x402288
xor eax, eax
ret

Function at 0x4022b0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x00404340]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x4022d0
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x4022d8
mov eax, r8d
ret
cmp word [rax + 0x18], 0x20b
jne 0x4022d0
movzx r8d, word [rax + 6]
mov eax, r8d
ret

Function at 0x402360
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x00404340]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x402380
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
cmp dword [rdx], 0x4550
je 0x402388
mov rax, r8
ret
cmp word [rdx + 0x18], 0x20b
cmove r8, rax
mov rax, r8
ret

Function at 0x4026e0
Capabilities:
Allocate or change rwx memory
Execute shellcode via windows fibers

Disassembly:
sub rsp, 0x28
call fcn.004015f0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ConvertThreadToFiber]
mov r9d, 0x40
xor ecx, ecx
mov edx, dword [0x004031e0]
mov r8d, 0x1000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r8d, dword [0x004031e0]
lea rdx, [0x004030c0]
mov rcx, rax
call sub.msvcrt.dll_memcpy
xor r8d, r8d
xor ecx, ecx
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_CreateFiber]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SwitchToFiber]
xor eax, eax
add rsp, 0x28
ret
Function at 0x402ae0
Capabilities:
Read file on windows

Disassembly:
push r13
push r12
push rbx
sub rsp, 0x20
mov r13, rcx
mov rcx, rdx
mov edx, 1
mov rbx, r8
mov r9, r13
call sub.msvcrt.dll_fread
mov r12, rax
cmp rbx, rax
je 0x402b13
mov rcx, r13
call sub.msvcrt.dll_ferror
test eax, eax
jne 0x402b20
mov rax, r12
add rsp, 0x20
pop rbx
pop r12
pop r13
ret
mov rcx, r13
call fcn.004028c0
nop
nop dword [rax]
jmp qword [sym.imp.msvcrt.dll__fileno]

Function at 0x4033f0
Capabilities:
Write file on windows

Disassembly:
push r13
push r12
sub rsp, 0x28
mov r12, rcx
mov rcx, rdx
mov edx, 1
mov r9, r12
call sub.msvcrt.dll_fwrite
mov rcx, r12
movsxd r13, eax
call sub.msvcrt.dll_ferror
test eax, eax
jne 0x403426
mov rax, r13
add rsp, 0x28
pop r12
pop r13
ret
mov rcx, r12
call fcn.004028c0
nop
nop
jmp sub.msvcrt.dll_fflush

Function at 0x4035b0
Capabilities:
Write file on windows

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov rdi, qword [fcn.004ae390]
xor ebx, ebx
mov rbp, rcx
mov rsi, rdx
lea r13, [rdx - 1]
test rdx, rdx
jg 0x403603
jmp 0x403618
mov r12, qword [rbp + rbx*8]
mov ecx, 1
add rbx, 1
call rdi
xor r8d, r8d
mov rcx, rax
mov rdx, r12
call fcn.00403440
cmp rsi, rbx
je 0x403618
cmp rsi, rbx
ja 0x4035e0
mov rdx, r13
mov rcx, rbx
call fcn.0040dfc0
jmp 0x4035e0
mov ecx, 1
call rdi
mov r8d, 1
mov edx, 1
lea rcx, [0x004b0141]
mov r9, rax
call sub.msvcrt.dll_fwrite
mov ecx, 1
call rdi
mov rcx, rax
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
jmp sub.msvcrt.dll_fflush
Function at 0x4036c0
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rbx
sub rsp, 0x20
xor r12d, r12d
mov r15, rcx
mov ecx, 0xfa0
call fcn.0040b640
mov r14, rax
lea rbx, [rax + 0x10]
test rax, rax
je 0x4037d0
nop dword [rax]
cmp qword [r14], 0
jne 0x403704
mov rdx, 0xffffffffffffffff
xor ecx, ecx
call fcn.0040dfc0
mov r9, r15
mov r8d, 0xfa0
mov edx, 1
mov rcx, rbx
call sub.msvcrt.dll_fread
mov r13, rax
cmp rax, 0xfa0
je 0x403798
mov rcx, r15
call sub.msvcrt.dll_ferror
test eax, eax
jne 0x403859
test r13, r13
js 0x403840
mov rdx, r13
mov rcx, r14
call fcn.0040ab80
mov rbx, rax
test rax, rax
je 0x403820
mov rdx, qword [rax]
mov rcx, r12
call fcn.0040a360
lea rdx, [rbx + 0x10]
mov r12, rax
mov rax, qword [rax]
lea rcx, [r12 + rax + 0x10]
mov rax, qword [rbx]
lea r8, [rax + 1]
call sub.msvcrt.dll_memcpy
mov rax, qword [rbx]
add qword [r12], rax
mov rax, r12
add rsp, 0x20
pop rbx
pop r12
pop r13
pop r14
pop r15
ret
mov rdx, qword [r14]
mov rcx, r12
call fcn.0040a360
mov r8, qword [r14]
mov rdx, rbx
mov r12, rax
mov rax, qword [rax]
add r8, 1
lea rcx, [r12 + rax + 0x10]
call sub.msvcrt.dll_memcpy
mov rax, qword [r14]
add qword [r12], rax
jmp 0x4036f0
mov r12, rax
jmp 0x4037e5
mov rcx, r12
xor edx, edx
call fcn.0040a360
mov r12, rax
mov rdx, 0xffffffffffffffff
xor ecx, ecx
call fcn.0040dfc0
mov r9, r15
mov edx, 1
mov rcx, rbx
mov r8d, 0xfa0
call sub.msvcrt.dll_fread
mov r13, rax
cmp rax, 0xfa0
jne 0x403725
jmp 0x4037d8
xor edx, edx
mov rcx, r12
add rsp, 0x20
pop rbx
pop r12
pop r13
pop r14
pop r15
jmp fcn.0040a360
movabs r8, 0x7fffffffffffffff
xor edx, edx
mov rcx, r13
call fcn.0040de50
jmp 0x40373e
mov rcx, r15
call fcn.004028c0
nop
nop word cs:[rax + rax]
nop dword [rax]
Function at 0x403870
Capabilities:
Read file on windows

Disassembly:
push r14
push r13
push r12
push rsi
push rbx
sub rsp, 0x20
mov r13, rcx
mov rbx, rdx
test rdx, rdx
js 0x4039b8
mov rcx, rbx
call fcn.0040b640
mov r12, rax
test rax, rax
je 0x403920
cmp qword [rax], 0
je 0x403920
test rbx, rbx
js 0x403937
lea rcx, [r12 + 0x10]
mov r9, r13
mov r8, rbx
mov edx, 1
call sub.msvcrt.dll_fread
mov rcx, r13
mov r14, rax
cmp rbx, rax
je 0x403950
call sub.msvcrt.dll_ferror
mov rcx, r13
test eax, eax
jne 0x403a09
call sub.msvcrt.dll_fgetc
mov rdx, r13
mov esi, eax
mov ecx, eax
call sub.msvcrt.dll_ungetc
test esi, esi
jns 0x403965
cmp rbx, r14
jle 0x4039a2
test r14, r14
js 0x4039f0
mov rdx, r14
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop r12
pop r13
pop r14
jmp fcn.0040ab80
xor ecx, ecx
mov rdx, 0xffffffffffffffff
call fcn.0040dfc0
test rbx, rbx
jns 0x4038ae
movabs r8, 0x7fffffffffffffff
xor edx, edx
mov rcx, rbx
call fcn.0040de50
jmp 0x4038ae
call sub.msvcrt.dll_fgetc
mov rdx, r13
mov ebx, eax
mov ecx, eax
call sub.msvcrt.dll_ungetc
test ebx, ebx
js 0x4039a2
mov rcx, r13
call fcn.004036c0
mov rbx, rax
test rax, rax
je 0x4039d8
mov rdx, qword [rax]
mov rcx, r12
call fcn.0040a360
lea rdx, [rbx + 0x10]
mov r12, rax
mov rax, qword [rax]
lea rcx, [r12 + rax + 0x10]
mov rax, qword [rbx]
lea r8, [rax + 1]
call sub.msvcrt.dll_memcpy
mov rax, qword [rbx]
add qword [r12], rax
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop r12
pop r13
pop r14
ret
movabs r8, 0x7fffffffffffffff
xor edx, edx
mov rcx, rbx
call fcn.0040de50
jmp 0x40388b
xor edx, edx
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop r12
pop r13
pop r14
jmp fcn.0040a360
movabs r8, 0x7fffffffffffffff
xor edx, edx
mov rcx, r14
call fcn.0040de50
jmp 0x403909
call fcn.004028c0
nop
nop
push r14
push r13
push r12
push rbx
sub rsp, 0x28
mov r12, rcx
xor ecx, ecx
call qword [fcn.004ae390]
cmp r12, rax
je 0x403a68
mov r13, qword [fcn.004ae3d0]
mov rcx, r12
call r13
xor edx, edx
mov r8d, 2
mov rcx, r12
mov r14, rax
mov rbx, qword [0x004af258]
call rbx
mov rcx, r12
call r13
xor r8d, r8d
mov rdx, r14
mov rcx, r12
mov r13, rax
call rbx
test r13, r13
jg 0x403a80
mov rcx, r12
add rsp, 0x28
pop rbx
pop r12
pop r13
pop r14
jmp fcn.004036c0
mov rdx, r13
mov rcx, r12
add rsp, 0x28
pop rbx
pop r12
pop r13
pop r14
jmp fcn.00403870
Function at 0x403a10
Capabilities:
Read file on windows

Disassembly:
push r14
push r13
push r12
push rsi
push rbx
sub rsp, 0x20
mov r13, rcx
mov rbx, rdx
test rdx, rdx
js 0x4039b8
mov rcx, rbx
call fcn.0040b640
mov r12, rax
test rax, rax
je 0x403920
cmp qword [rax], 0
je 0x403920
test rbx, rbx
js 0x403937
lea rcx, [r12 + 0x10]
mov r9, r13
mov r8, rbx
mov edx, 1
call sub.msvcrt.dll_fread
mov rcx, r13
mov r14, rax
cmp rbx, rax
je 0x403950
call sub.msvcrt.dll_ferror
mov rcx, r13
test eax, eax
jne 0x403a09
call sub.msvcrt.dll_fgetc
mov rdx, r13
mov esi, eax
mov ecx, eax
call sub.msvcrt.dll_ungetc
test esi, esi
jns 0x403965
cmp rbx, r14
jle 0x4039a2
test r14, r14
js 0x4039f0
mov rdx, r14
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop r12
pop r13
pop r14
jmp fcn.0040ab80
xor ecx, ecx
mov rdx, 0xffffffffffffffff
call fcn.0040dfc0
test rbx, rbx
jns 0x4038ae
movabs r8, 0x7fffffffffffffff
xor edx, edx
mov rcx, rbx
call fcn.0040de50
jmp 0x4038ae
call sub.msvcrt.dll_fgetc
mov rdx, r13
mov ebx, eax
mov ecx, eax
call sub.msvcrt.dll_ungetc
test ebx, ebx
js 0x4039a2
mov rcx, r13
call fcn.004036c0
mov rbx, rax
test rax, rax
je 0x4039d8
mov rdx, qword [rax]
mov rcx, r12
call fcn.0040a360
lea rdx, [rbx + 0x10]
mov r12, rax
mov rax, qword [rax]
lea rcx, [r12 + rax + 0x10]
mov rax, qword [rbx]
lea r8, [rax + 1]
call sub.msvcrt.dll_memcpy
mov rax, qword [rbx]
add qword [r12], rax
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop r12
pop r13
pop r14
ret
movabs r8, 0x7fffffffffffffff
xor edx, edx
mov rcx, rbx
call fcn.0040de50
jmp 0x40388b
xor edx, edx
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop r12
pop r13
pop r14
jmp fcn.0040a360
movabs r8, 0x7fffffffffffffff
xor edx, edx
mov rcx, r14
call fcn.0040de50
jmp 0x403909
call fcn.004028c0
nop
nop
push r14
push r13
push r12
push rbx
sub rsp, 0x28
mov r12, rcx
xor ecx, ecx
call qword [fcn.004ae390]
cmp r12, rax
je 0x403a68
mov r13, qword [fcn.004ae3d0]
mov rcx, r12
call r13
xor edx, edx
mov r8d, 2
mov rcx, r12
mov r14, rax
mov rbx, qword [0x004af258]
call rbx
mov rcx, r12
call r13
xor r8d, r8d
mov rdx, r14
mov rcx, r12
mov r13, rax
call rbx
test r13, r13
jg 0x403a80
mov rcx, r12
add rsp, 0x28
pop rbx
pop r12
pop r13
pop r14
jmp fcn.004036c0
mov rdx, r13
mov rcx, r12
add rsp, 0x28
pop rbx
pop r12
pop r13
pop r14
jmp fcn.00403870

Function at 0x404230
Capabilities:
Write file on windows

Disassembly:
push r13
push r12
sub rsp, 0x28
xor r8d, r8d
mov r13, rcx
mov r12, rdx
test rdx, rdx
je 0x404251
mov rcx, rdx
call sub.msvcrt.dll_strlen
mov r8, rax
mov rcx, r12
mov r9, r13
mov edx, 1
call sub.msvcrt.dll_fwrite
mov rcx, r13
add rsp, 0x28
pop r12
pop r13
jmp sub.msvcrt.dll_fflush

Function at 0x4042c0
Capabilities:
Write file on windows

Disassembly:
push r12
sub rsp, 0x20
mov ecx, 2
call qword [fcn.004ae390]
mov r8d, 0x4b
mov edx, 1
lea rcx, str._GC__cannot_register_thread_local_variable__too_many_thread_local_variables
mov r12, rax
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rcx, r12
call sub.msvcrt.dll_fflush
mov ecx, 1
call sub.msvcrt.dll_exit
nop
nop word cs:[rax + rax]
nop dword [rax]
ret
Function at 0x40c3b0
Capabilities:
Write file on windows

Disassembly:
push rbp
push r12
push rsi
push rbx
mov rbp, rsp
sub rsp, 0x148
cmp qword [0x00506ee0], 0
mov qword [rbp + 0x28], rcx
mov byte [rbp - 0x119], 1
je 0x40c4a3
mov rax, qword [0x00507568]
lea rcx, [rbp - 0x108]
mov rdx, rbp
mov qword [rbp - 0x118], rax
lea rax, [rbp - 0x118]
mov qword [0x00507568], rax
call sub.msvcrt.dll__setjmp
cdqe
mov qword [rbp - 0x110], rax
test rax, rax
jne 0x40c4c0
xor r12d, r12d
cmp qword [rbp + 0x28], 0
je 0x40c474
mov rcx, qword [rbp + 0x28]
mov esi, 7
call sub.msvcrt.dll_strlen
lea r8, [0x004fd460]
lea rcx, [0x004af020]
cmp rax, 7
mov rbx, rax
cmovge rsi, rax
lea rdx, [rsi + 0x11]
call fcn.0040a1b0
movq xmm0, rbx
movq xmm1, rsi
mov rdx, qword [rbp + 0x28]
punpcklqdq xmm0, xmm1
lea rcx, [rax + 0x10]
lea r8, [rbx + 1]
mov r12, rax
movups xmmword [rax], xmm0
call sub.msvcrt.dll_memcpy
mov rcx, r12
call qword [0x00506ee0]
mov rax, qword [0x00507568]
cmp qword [rbp - 0x110], 0
mov byte [rbp - 0x119], 0
mov rax, qword [rax]
mov qword [0x00507568], rax
jne 0x40c52d
movzx eax, byte [rbp - 0x119]
test al, al
jne 0x40c548
add rsp, 0x148
pop rbx
pop rsi
pop r12
pop rbp
ret
mov rax, qword [0x00507568]
mov rax, qword [rax]
mov qword [rbp - 0x110], 0
mov qword [0x00507568], rax
mov rax, qword [0x00507560]
mov rbx, qword [rax + 0x28]
test rbx, rbx
je 0x40c4fd
add qword [rbx - 0x10], 8
mov rax, qword [0x00507560]
test rax, rax
je 0x40c518
mov rsi, qword [rax - 0x10]
lea rcx, [rax - 0x10]
lea rdx, [rsi - 8]
mov qword [rax - 0x10], rdx
cmp rdx, 7
ja 0x40c518
call fcn.00406480
cmp qword [rbp - 0x110], 0
mov qword [0x00507560], rbx
je 0x40c4a3
mov rcx, qword [0x00507560]
test rcx, rcx
je 0x40c58a
call fcn.0040c940
jmp 0x40c4a3
mov ecx, 2
call qword [fcn.004ae390]
xor r8d, r8d
cmp qword [rbp + 0x28], 0
mov r12, rax
je 0x40c56c
mov rcx, qword [rbp + 0x28]
call sub.msvcrt.dll_strlen
mov r8, rax
mov rcx, qword [rbp + 0x28]
mov r9, r12
mov edx, 1
call sub.msvcrt.dll_fwrite
mov rcx, r12
call sub.msvcrt.dll_fflush
jmp 0x40c4b2
call fcn.0040c320
nop
Function at 0x4135f0
Capabilities:
Hash data using murmur3

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
movups xmmword [rsp + 0x30], xmm6
movups xmmword [rsp + 0x40], xmm7
pxor xmm0, xmm0
pxor xmm3, xmm3
pxor xmm4, xmm4
movq xmm2, qword [0x004b10f0]
test rdx, rdx
lea rdi, [rdx + 3]
mov rbp, rcx
mov rsi, rdx
cmovns rdi, rdx
mov rax, rdi
and rdi, 0xfffffffffffffffc
sar rax, 2
cvtsi2sd xmm3, rdi
cvtsi2sd xmm0, rax
mulsd xmm0, qword [0x004b10e0]
movupd xmm1, xmm0
ucomisd xmm0, xmm3
movupd xmm6, xmm0
cmpltsd xmm1, xmm4
xorpd xmm6, xmm2
andpd xmm6, xmm1
andnpd xmm1, xmm0
orpd xmm6, xmm1
jp 0x4136e0
jne 0x4136e0
test rdi, rdi
jle 0x41378d
xor r13d, r13d
xor ebx, ebx
lea r12, [rdx - 1]
jmp 0x4136ba
test rax, rax
jns 0x4136d4
call fcn.00408b70
imul eax, r14d, 0xcc9e2d51
rol eax, 0xf
imul eax, eax, 0x1b873593
xor r13d, eax
rol r13d, 0xd
lea r13d, [r13 + r13*4 - 0x19ab949c]
cmp rdi, rbx
jle 0x413798
cmp rsi, rbx
jbe 0x413860
lea rax, [rbx + 4]
mov r14d, dword [rbp + rbx]
mov rcx, rax
xor rcx, rbx
js 0x413688
mov rbx, rax
jmp 0x413692
subsd xmm3, xmm0
mov eax, 0
lea r12, [rsi - 1]
movupd xmm0, xmm3
xorpd xmm2, xmm3
cmpltsd xmm0, xmm4
movupd xmm7, xmm0
andpd xmm2, xmm0
andnpd xmm7, xmm3
orpd xmm7, xmm2
mulsd xmm7, qword [0x004b1100]
comisd xmm6, xmm7
cmovb rdi, rax
xor ebx, ebx
xor r13d, r13d
jmp 0x413750
test rax, rax
jns 0x413776
call fcn.00408b70
imul eax, r14d, 0xcc9e2d51
rol eax, 0xf
imul eax, eax, 0x1b873593
xor eax, r13d
rol eax, 0xd
lea r13d, [rax + rax*4 - 0x19ab949c]
comisd xmm6, xmm7
jae 0x41375b
call fcn.00408b70
cmp rbx, rdi
jge 0x413798
cmp rbx, rsi
jae 0x413780
lea rax, [rbx + 4]
mov rdx, rbx
mov r14d, dword [rbp + rbx]
xor rdx, rax
js 0x413728
mov rbx, rax
jmp 0x413732
mov rdx, r12
mov rcx, rbx
call fcn.0040dfc0
jmp 0x413765
xor ebx, ebx
xor r13d, r13d
nop word [rax + rax]
mov rax, rsi
xor edi, edi
sar rax, 0x3f
shr rax, 0x3e
lea r14, [rsi + rax]
and r14d, 3
sub r14, rax
test r14, r14
jle 0x413804
lea rax, [rsi - 1]
xor edi, edi
mov qword [rsp + 0x28], rax
lea r12, [r14 - 1]
lea r15, [r12 + rbx]
mov r14, r12
mov rax, r15
xor rax, rbx
jns 0x4137e0
mov rax, r12
xor rax, r15
jns 0x4137e0
call fcn.00408b70
cmp rsi, r15
jbe 0x413850
movzx edx, byte [rbp + r15]
shl edi, 8
or edi, edx
test r12, r12
jne 0x4137c0
imul edi, edi, 0xcc9e2d51
rol edi, 0xf
imul edi, edi, 0x1b873593
mov eax, r13d
movups xmm6, xmmword [rsp + 0x30]
movups xmm7, xmmword [rsp + 0x40]
xor eax, esi
xor eax, edi
mov edi, eax
shr edi, 0x10
xor edi, eax
imul edi, edi, 0x85ebca6b
mov eax, edi
shr eax, 0xd
xor eax, edi
imul eax, eax, 0xc2b2ae35
mov edx, eax
shr edx, 0x10
xor eax, edx
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov rdx, qword [rsp + 0x28]
mov rcx, r15
call fcn.0040dfc0
jmp 0x4137e5
mov rdx, r12
mov rcx, rbx
call fcn.0040dfc0
jmp 0x4136c3
xor edx, edx
test rcx, rcx
je 0x41387a
mov rdx, qword [rcx]
add rcx, 0x10
jmp 0x4135f0