joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140002010
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1400070a4]
mov rbx, rcx
test esi, esi
jle 0x140002140
mov rax, qword [0x1400070a8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14000205b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x1400020e5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140002040
mov rcx, rbx
call fcn.140002a60
mov rdi, rax
test rax, rax
je 0x140002162
mov rax, qword [0x1400070a8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140002ba0
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1400070a8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140002147
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x1400020de
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x1400020f0
add dword [0x1400070a4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
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 [0x1400070a8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1400020de
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140001fa0
nop dword [rax]
xor esi, esi
jmp 0x140002068
mov rax, qword [0x1400070a8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140001fa0
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140001fa0
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x1400026d0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140007100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400070e0]
test rbx, rbx
je 0x14000272c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x140002723
test rsi, rsi
je 0x140002723
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140002708
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x140002a60
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1400044d0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002a80
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002a88
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002a80
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x140002add
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x140002ad4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140002a80
add rax, 0x28
cmp rax, r9
jne 0x140002ac0
xor eax, eax
ret

Function at 0x140002ae0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400044d0]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x140002aff
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140002b08
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x140002aff
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x140002ba0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400044d0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x140002bbf
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140002bc8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x5f4920
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x5f492d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x5f493d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x5f4925
lea eax, [rcx + 1]
jmp 0x5f494b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x5f495e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x5f4944
sub eax, 3
jb 0x5f497e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x5f49cd
sar eax, 1
movsxd rbp, eax
jb 0x5f49b4
jmp 0x5f498c
add ebx, ebx
jne 0x5f498a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x5f49b4
inc ecx
add ebx, ebx
jne 0x5f499a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x5f49b4
call r11
adc ecx, ecx
add ebx, ebx
jne 0x5f49ad
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x5f499c
add ecx, 2
jmp 0x5f49b9
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.005f48e2
jmp 0x5f492d
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x92c00
mov dl, 0x1e
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x5f4a19
cmp rsi, rcx
jae 0x5f4a21
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x5f4a00
cmp al, 0x8f
ja 0x5f4a00
cmp byte [rsi - 2], 0xf
je 0x5f4a06
sub al, 0xe8
cmp al, 1
ja 0x5f49ea
cmp rsi, rcx
jae 0x5f4a21
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x5f49f0
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x5f4a21
lodsb al, byte [rsi]
jmp 0x5f4a00
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x1f0000]
mov eax, dword [rdi]
or eax, eax
je 0x5f4a7e
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x1f4000]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x5f4a2e
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x5f4a78
mov qword [rbx], rax
add rbx, 8
jmp 0x5f4a4e
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x5f4ab8
cmp al, 0xef
ja 0x5f4aaa
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x5f4a8a
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x5f4a99
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x1af]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x5f4b0c
sub rsp, 0xffffffffffffff80
jmp 0x4670c0
Function at 0x140006400
Capabilities:
Read file on windows

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov ecx, 0x20
call fcn.140015b64
xorps xmm0, xmm0
lea rdx, [0x14004b530]
mov rcx, rax
movups xmmword [rax], xmm0
movups xmmword [rax + 0x10], xmm0
mov qword [rbx + 0x40], rax
call fcn.14000c690
lea rdx, [rbx + 0x58]
lea rcx, [rbx + 0x48]
lea r8, str.shader_vertexLightingVS.cso
call fcn.140011610
lea rcx, [rbx + 0x50]
lea rdx, str.shader_vertexLightingPS.cso
add rsp, 0x20
pop rbx
jmp fcn.1400117c0

Function at 0x140006720
Capabilities:
Read file on windows

Disassembly:
push rbx
sub rsp, 0x20
xor eax, eax
mov rbx, rcx
mov qword [rcx + 0x40], rax
mov dword [rcx + 0x48], 0x3dcccccd
call fcn.140006c20
lea rdx, str.asset_audioSE_attack.wav
mov qword [rbx + 0x50], rax
mov rcx, rax
call fcn.140006150
lea rdx, [rbx + 0x68]
lea rcx, [rbx + 0x58]
lea r8, str.shader_vertexLightingVS.cso
call fcn.140011610
lea rcx, [rbx + 0x60]
lea rdx, str.shader_vertexLightingPS.cso
add rsp, 0x20
pop rbx
jmp fcn.1400117c0

Function at 0x140007400
Capabilities:
Read file on windows

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov ecx, 0x20
call fcn.140015b64
xorps xmm0, xmm0
lea rdx, str.assetmodelcylinder.obj
mov rcx, rax
movups xmmword [rax], xmm0
movups xmmword [rax + 0x10], xmm0
mov qword [rbx + 0x40], rax
call fcn.14000c690
lea rdx, [rbx + 0x58]
lea rcx, [rbx + 0x48]
lea r8, str.shader_vertexLightingVS.cso
call fcn.140011610
lea rcx, [rbx + 0x50]
lea rdx, str.shader_vertexLightingPS.cso
add rsp, 0x20
pop rbx
jmp fcn.1400117c0
Function at 0x14000b5b0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push rbx
mov eax, 0x13c0
call fcn.1400162d0
sub rsp, rax
mov rax, qword [0x140054040]
xor rax, rsp
mov qword [rsp + 0x13b0], rax
call fcn.1400132cc
mov dword [rsp + 0x24], eax
mov edx, 1
mov dword [rsp + 0x13a4], 0xffffffff
nop word [rax + rax]
mov ecx, eax
shr ecx, 0x1e
xor ecx, eax
imul eax, ecx, 0x6c078965
add eax, edx
mov dword [rsp + rdx*4 + 0x24], eax
inc rdx
cmp rdx, 0x270
jb 0x14000b5f0
movss xmm2, dword [0x14004bf88]
lea r10, [0x140054c70]
movss xmm3, dword [0x14004bfdc]
lea rbx, [0x1400566b4]
mov edx, 0x270
xorps xmm1, xmm1
mov dword [rsp + 0x20], edx
nop dword [rax]
mov r11d, 0x29
cmp edx, 0x270
jne 0x14000b6a2
lea r8, [rsp + 0x28]
mov r9d, edx
nop word [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 r9, 1
jne 0x14000b660
mov edx, dword [rsp + 0x20]
jmp 0x14000b780
cmp edx, 0x4e0
jb 0x14000b780
xor r8d, r8d
mov eax, dword [rsp + r8*4 + 0x9e4]
mov edx, eax
xor edx, dword [rsp + r8*4 + 0x9e8]
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 [rsp + r8*4 + 0x1018]
xor ecx, edx
mov dword [rsp + r8*4 + 0x24], ecx
inc r8
cmp r8, 0xe3
jb 0x14000b6b1
mov r8d, 0xe3
nop word [rax + rax]
mov eax, dword [rsp + r8*4 + 0x9e4]
mov edx, eax
xor edx, dword [rsp + r8*4 + 0x9e8]
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 [rsp + r8*4 - 0x368]
xor ecx, edx
mov dword [rsp + r8*4 + 0x24], ecx
inc r8
cmp r8, 0x26f
jb 0x14000b700
mov edx, dword [rsp + 0x13a0]
mov eax, dword [rsp + 0x24]
and edx, 0x80000000
btr eax, 0x1f
or edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, edx
xor ecx, dword [rsp + 0x654]
xor edx, edx
mov dword [rsp + 0x9e0], ecx
mov dword [rsp + 0x20], edx
xorps xmm0, xmm0
mov eax, edx
inc edx
mov ecx, dword [rsp + rax*4 + 0x24]
mov eax, ecx
shr eax, 0xb
and eax, dword [rsp + 0x13a4]
xor ecx, eax
mov dword [rsp + 0x20], edx
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov eax, ecx
and eax, 0xffffdf8c
shl eax, 0xf
xor ecx, eax
mov eax, ecx
shr eax, 0x12
xor eax, ecx
cvtsi2ss xmm0, rax
subss xmm0, xmm1
addss xmm0, xmm1
mulss xmm0, xmm2
mulss xmm0, xmm3
addss xmm0, xmm1
movss dword [r10], xmm0
add r10, 4
sub r11, 1
jne 0x14000b646
cmp r10, rbx
jl 0x14000b640
mov rcx, qword [rsp + 0x13b0]
xor rcx, rsp
call fcn.140015ac0
add rsp, 0x13c0
pop rbx
ret
Function at 0x140011610
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0x100
mov rax, qword [0x140054040]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov r15, rdx
mov rdi, rcx
lea rdx, [0x14004bdd0]
mov rcx, r8
call fcn.14001cf84
mov rcx, rax
mov rbx, rax
call fcn.140025ddc
mov ecx, eax
call fcn.140025dd4
movsxd rsi, eax
mov rcx, rsi
call fcn.140015c70
mov r9, rbx
mov r8d, 1
mov rdx, rsi
mov rcx, rax
mov r14, rax
call fcn.140026064
mov rcx, rbx
call fcn.14001d10c
mov rcx, qword [0x140058d80]
xor r9d, r9d
mov r8, rsi
mov qword [rsp + 0x20], rdi
mov rdx, r14
mov r10, qword [rcx]
call qword [r10 + 0x60]
xor ecx, ecx
mov qword [rsp + 0x3c], 6
mov dword [rsp + 0x38], ecx
lea rax, str.POSITION
mov qword [rsp + 0x30], rax
lea rdx, [rsp + 0x30]
mov qword [rsp + 0x44], rcx
lea rax, str.NORMAL
mov qword [rbp - 0x79], rax
mov r9, r14
mov dword [rbp - 0x7d], ecx
lea rax, str.TANGENT
mov qword [rbp - 0x59], rax
mov r8d, 6
mov dword [rbp - 0x71], ecx
lea rax, str.BINORMAL
mov qword [rbp - 0x39], rax
lea rax, str.COLOR
mov dword [rbp - 0x5d], ecx
mov dword [rbp - 0x51], ecx
mov dword [rbp - 0x3d], ecx
mov dword [rbp - 0x31], ecx
mov dword [rbp - 0x1d], ecx
mov dword [rbp - 0x11], ecx
mov dword [rbp + 3], ecx
mov dword [rbp + 0xf], ecx
mov dword [rbp + 0x23], ecx
mov rcx, qword [0x140058d80]
mov qword [rbp - 0x19], rax
lea rax, str.TEXCOORD
mov qword [rbp + 7], rax
mov qword [rbp - 0x6d], 6
mov qword [rbp - 0x65], 0xc
mov qword [rbp - 0x4d], 6
mov qword [rbp - 0x45], 0x18
mov qword [rbp - 0x2d], 6
mov qword [rbp - 0x25], 0x24
mov qword [rbp - 0xd], 2
mov qword [rbp - 5], 0x30
mov qword [rbp + 0x13], 0x10
mov qword [rbp + 0x1b], 0x40
mov rax, qword [rcx]
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], rsi
call qword [rax + 0x58]
mov rcx, r14
call fcn.140015ae0
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.140015ac0
mov rbx, qword [rsp + 0x148]
add rsp, 0x100
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret

Function at 0x1400117c0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rax, rdx
mov rbp, rcx
mov rcx, rax
lea rdx, [0x14004bdd0]
call fcn.14001cf84
mov rcx, rax
mov rbx, rax
call fcn.140025ddc
mov ecx, eax
call fcn.140025dd4
movsxd rdi, eax
mov rcx, rdi
call fcn.140015c70
mov r9, rbx
mov r8d, 1
mov rdx, rdi
mov rcx, rax
mov rsi, rax
call fcn.140026064
mov rcx, rbx
call fcn.14001d10c
mov rcx, qword [0x140058d80]
xor r9d, r9d
mov r8, rdi
mov qword [rsp + 0x20], rbp
mov rdx, rsi
mov r10, qword [rcx]
call qword [r10 + 0x78]
mov rcx, rsi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
jmp fcn.140015ae0
Function at 0x140012670
Capabilities:
Read file on windows

Disassembly:
push rbx
sub rsp, 0x20
movss xmm2, dword [0x14004bff8]
mov rbx, rcx
movaps xmm0, xmm2
unpcklps xmm0, xmm2
movsd qword [rcx + 0x24], xmm0
movss dword [rcx + 0x2c], xmm2
mov ecx, 0x20
call fcn.140015b64
xorps xmm0, xmm0
lea rdx, str.assetmodel_sky.obj
mov rcx, rax
movups xmmword [rax], xmm0
movups xmmword [rax + 0x10], xmm0
mov qword [rbx + 0x40], rax
call fcn.14000c690
lea rdx, [rbx + 0x58]
lea rcx, [rbx + 0x48]
lea r8, str.shaderunlitTextureVS.cso
call fcn.140011610
lea rcx, [rbx + 0x50]
lea rdx, str.shaderunlitTexturePS.cso
add rsp, 0x20
pop rbx
jmp fcn.1400117c0

Function at 0x1400149f8
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x20
mov rbp, r8
mov r14, rdx
mov rdi, rcx
test r8, r8
jg 0x140014a26
xor eax, eax
jmp 0x140014b0c
cmp qword [rcx + 0x68], 0
je 0x140014a37
call fcn.140014b28
jmp 0x140014b0c
mov rax, qword [rcx + 0x38]
mov rsi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x140014a4e
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140014a50
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140014a82
cmp rax, rbp
mov rbx, rbp
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call fcn.14003de50
mov rax, qword [rdi + 0x50]
add r14, rbx
sub rsi, rbx
sub dword [rax], ebx
mov rcx, qword [rdi + 0x38]
movsxd rax, ebx
add qword [rcx], rax
cmp qword [rdi + 0x80], 0
je 0x140014b06
mov r8, qword [rdi + 0x18]
lea rax, [rdi + 0x70]
cmp qword [r8], rax
jne 0x140014ab9
mov rcx, qword [rdi + 0x88]
mov rdx, qword [rdi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rdi + 0x38]
mov qword [rax], rcx
mov rax, qword [rdi + 0x50]
mov dword [rax], edx
mov ebx, 0xfff
jmp 0x140014ae2
mov r9, qword [rdi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call fcn.140026064
add r14, rax
sub rsi, rax
cmp rax, rbx
jne 0x140014b06
cmp rsi, rbx
ja 0x140014ac0
test rsi, rsi
je 0x140014b06
mov r9, qword [rdi + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.140026064
sub rsi, rax
sub rbp, rsi
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret

Function at 0x140016a20
Capabilities:
Parse pe header

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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, edx
mov rbp, rcx
test r8, r8
jne 0x14001cdbb
call fcn.1400280b8
mov dword [rax], 0x16
call fcn.14001cafc
xor eax, eax
jmp 0x14001ce49
mov rdx, r9
mov rcx, r8
call fcn.14001cd20
mov rbx, rax
test rax, rax
je 0x14001ce46
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x14001cc4c]
mov eax, dword [rsp + 0x60]
mov r9, rbx
mov rcx, rbp
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x14001ce33
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14002802c
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x14001ce1a
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x14001ce29
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.14002c66c
jmp 0x14001ce46
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14001ce43
mov eax, dword [rsp + 0x50]
mov dword [rcx], eax
mov rdi, rdx
mov rax, rdi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret

Function at 0x140029350
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14002914c
Function at 0x14002d7a8
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.1400162d0
sub rsp, rax
mov rax, qword [0x140054040]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.140025ddc
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14002d7f7
mov rax, rbp
jmp 0x14002d8ff
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x58590]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14002d3e4
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x58590]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14002d8fb
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14002d8fb
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14002d3e4
test rax, rax
js 0x14002d8fb
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14002d8fb
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14002d8ed
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14002d8ed
cmp byte [rcx], 0xd
jne 0x14002d8d3
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14002d8e2
cmp byte [rcx + 1], 0xa
jne 0x14002d8e2
inc rcx
jmp 0x14002d8e2
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x54470]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14002d8b5
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14002d8ff
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140015ac0
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14002f9d0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x140058590]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x14002fa27
cmp word [rdx], r13w
jne 0x14002fa27
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14002fa2c
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x14002fb51
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14002fb72
lea r9, [rdx + 2]
cmp cx, r11w
je 0x14002fa65
mov rdx, r9
mov word [rbx], cx
jmp 0x14002fa8c
cmp r9, r8
jae 0x14002fa9c
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x14002fa46
jmp 0x14002fb51
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14002fb46
cmp dword [rsp + 0x80], esi
je 0x14002fb46
lea r8, [0x140058590]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14002fb1e
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14002faee
mov word [rbx], r13w
jmp 0x14002fb4e
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x14002fafb
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14002fb4e
cmp word [rsp + 0x70], r13w
jne 0x14002fb2b
cmp rbx, r14
je 0x14002fae8
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.14002d3ec
cmp word [rsp + 0x70], r13w
je 0x14002fb51
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x140058590]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14002fb4b
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x14002fb51
Function at 0x140031670
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140031686
mov al, 1
jmp 0x1400316e6
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x140031697
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1400316e4
mov ecx, dword [rcx + 0x18]
nop
call fcn.14002f958
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400316e4
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1400316e4
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1400316e4
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1400316e6
xor al, al
add rsp, 0x20
pop rbx
ret