joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180001e80
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x80
movaps xmmword [rsp + 0x70], xmm6
mov rax, qword [0x1800773b0]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov r10, qword [0x18007d370]
movaps xmm6, xmm1
test r10, r10
jne 0x180001f4f
xorps xmm0, xmm0
xor eax, eax
xor ecx, ecx
mov qword [rsp + 0x40], rax
movups xmmword [rsp + 0x30], xmm0
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r9d, 0x18
lea r8, [rsp + 0x30]
mov rcx, rax
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_K32GetModuleInformation]
mov r11d, dword [rsp + 0x38]
xor r9d, r9d
add r11d, 0xfffffffe
je 0x180001fb5
mov rbx, qword [rsp + 0x30]
lea rdi, [0x180068b00]
nop dword [rax]
mov r10d, r9d
lea rdx, [0x180068b04]
add r10, rbx
mov al, 0x78
mov r8, r10
mov rcx, rdi
sub r8, rdi
cmp al, 0x78
jne 0x180001f35
movzx eax, byte [r8 + rcx]
cmp byte [rdx], al
jne 0x180001fa9
movzx eax, byte [rcx + 1]
inc rcx
inc rdx
test al, al
jne 0x180001f28
mov qword [0x18007d370], r10
test r10, r10
je 0x180001fc0
lea rax, [fcn.180040c98]
mov qword [rsp + 0x48], r10
mov qword [rsp + 0x50], rax
xor r9d, r9d
xor eax, eax
xor r8d, r8d
mov qword [rsp + 0x28], rax
xor edx, edx
mov qword [rsp + 0x58], rax
movaps xmm0, xmm6
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
call fcn.1800357f0
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.180039730
mov rbx, qword [rsp + 0x90]
movaps xmm6, xmmword [rsp + 0x70]
add rsp, 0x80
pop rdi
ret
inc r9d
cmp r9d, r11d
jb 0x180001f10
mov qword [0x18007d370], 0
xor r9d, r9d
lea r8, str.Failure
lea rdx, str.Failed_to_find_valid_trampoline
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x180003ba0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push rdi
cmp dword [0x18007d394], 0
lea rdi, [0x18007d390]
mov r11d, r8d
mov r9d, edx
mov r10, rcx
jne 0x180003c78
mov qword [rsp + 0x10], rbx
xor edx, edx
mov rbx, rdi
nop dword [rax]
mov r8d, edx
lea rbx, [rbx + 4]
and r8d, 1
mov eax, edx
shr eax, 1
neg r8d
and r8d, 0xedb88320
inc edx
xor r8d, eax
mov eax, r8d
shr r8d, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, r8d
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov dword [rbx - 4], eax
cmp edx, 0x100
jb 0x180003bd0
mov rbx, qword [rsp + 0x10]
not r11d
mov eax, r11d
test r9d, r9d
jle 0x180003cae
nop dword [rax]
nop word [rax + rax]
movzx ecx, byte [r10]
lea r10, [r10 + 1]
movzx edx, al
xor rdx, rcx
shr eax, 8
xor eax, dword [rdi + rdx*4]
sub r9d, 1
jne 0x180003c90
not eax
pop rdi
ret
movzx r9d, byte [r10]
lea r8, [r10 + 1]
test r9b, r9b
je 0x180003cef
nop dword [rax + rax]
cmp r9b, 0x23
jne 0x180003cd3
cmp byte [r8], r9b
jne 0x180003cd3
cmp byte [r8 + 1], r9b
cmove eax, r11d
movzx edx, al
movzx ecx, r9b
movzx r9d, byte [r8]
xor rdx, rcx
shr eax, 8
inc r8
xor eax, dword [rdi + rdx*4]
test r9b, r9b
jne 0x180003cc0
not eax
pop rdi
ret

Function at 0x180004530
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rdi
sub rsp, 0x20
movsxd rbp, r9d
mov rdi, r8
test r8, r8
je 0x18000454a
mov dword [r8], 0
call fcn.180004320
mov rbx, rax
test rax, rax
jne 0x18000455f
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
xor edx, edx
mov qword [rsp + 0x40], rsi
mov rcx, rbx
mov qword [rsp + 0x48], r14
lea r8d, [rdx + 2]
call fcn.1800423d0
test eax, eax
jne 0x180004646
mov rcx, rbx
call fcn.1800416dc
movsxd r14, eax
cmp r14d, 0xffffffff
je 0x180004646
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call fcn.1800423d0
test eax, eax
jne 0x180004646
mov rdx, qword [0x180077e20]
lea eax, [r14 + rbp]
movsxd rcx, eax
inc dword [rdx + 0x354]
call qword [rdx + 0xf0]
mov rsi, rax
test rax, rax
je 0x180004646
mov r9, rbx
mov qword [rsp + 0x50], r15
mov r8, r14
mov edx, 1
mov rcx, rax
call fcn.180045a68
cmp rax, r14
je 0x18000461f
mov rcx, rbx
call fcn.1800420c8
mov rax, qword [0x180077e20]
mov rcx, rsi
dec dword [rax + 0x354]
call qword [rax + 0xf8]
xor eax, eax
mov r15, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x40]
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
test ebp, ebp
jle 0x180004631
mov r8, rbp
lea rcx, [r14 + rsi]
xor edx, edx
call fcn.18003ce70
mov rcx, rbx
call fcn.1800420c8
test rdi, rdi
je 0x180004641
mov dword [rdi], r14d
mov rax, rsi
jmp 0x180004608
mov rcx, rbx
call fcn.1800420c8
xor eax, eax
jmp 0x18000460d
Function at 0x180025540
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov r11, rsp
push r13
push r14
sub rsp, 0xb8
mov r13, rcx
movsxd rax, r9d
xor ecx, ecx
mov qword [rsp + 0x60], rax
mov dword [rsp + 0xe8], ecx
mov r14, rdx
test r9d, r9d
jle 0x1800257a2
mov qword [r11 + 8], rbx
lea rbx, [r8 + 0x20]
mov qword [r11 + 0x10], rbp
movzx ebp, byte [r13 + 0x24]
mov qword [r11 + 0x18], rsi
mov qword [r11 - 0x18], rdi
mov edi, 0x100
mov qword [r11 - 0x20], r12
xor r12d, r12d
mov qword [r11 - 0x28], r15
movaps xmmword [r11 - 0x38], xmm6
movaps xmmword [r11 - 0x48], xmm7
xorps xmm7, xmm7
movaps xmmword [r11 - 0x58], xmm8
movzx r11d, byte [r13 + 0x20]
movss xmm8, dword [0x18006d4d0]
nop word [rax + rax]
movss xmm6, dword [rbx - 0x20]
comiss xmm6, xmm7
jbe 0x18002560a
movsxd r10, dword [r14 + 0x24]
mov r9, qword [r14 + 8]
movsx ecx, di
movzx eax, byte [r10 + r9 + 7]
movzx edx, byte [r10 + r9 + 6]
imul edx, ecx
movsx ecx, di
add dx, ax
movzx eax, byte [r10 + r9 + 5]
movsx r8d, dx
movzx edx, byte [r10 + r9 + 4]
imul edx, ecx
add ax, dx
cwde
sub eax, r8d
movd xmm0, eax
jmp 0x180025629
movsxd rdx, dword [r14 + 0x1c]
xorps xmm6, xmm8
mov rax, qword [r14 + 8]
movzx ecx, byte [rdx + rax + 0x12]
movzx eax, byte [rdx + rax + 0x13]
shl ecx, 8
add ecx, eax
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
xor edi, edi
mov byte [rbx], r11b
mov byte [rbx + 1], bpl
divss xmm6, xmm0
cmp dword [rbx - 0x10], edi
jle 0x180025740
mov r15, qword [rsp + 0xf0]
mov rax, r12
shl rax, 4
add r15, 6
xor esi, esi
add r15, rax
nop word [rax + rax]
mov rax, qword [rbx - 0x18]
test rax, rax
jne 0x180025670
mov edx, dword [rbx - 0x1c]
add edx, edi
jmp 0x180025673
mov edx, dword [rax + rsi]
mov eax, dword [r13 + 0x24]
xorps xmm3, xmm3
xorps xmm2, xmm2
mov rcx, r14
cvtsi2ss xmm3, rax
mov eax, dword [r13 + 0x20]
cvtsi2ss xmm2, rax
mulss xmm3, xmm6
mulss xmm2, xmm6
call fcn.180020730
mov edx, eax
mov rcx, r14
lea rax, [rsp + 0x5c]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x54]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x30], rax
movss dword [rsp + 0x28], xmm7
movss dword [rsp + 0x20], xmm7
call fcn.1800231d0
movzx ecx, word [r13 + 0x1c]
inc r12
movzx r11d, word [r13 + 0x20]
movzx eax, cx
sub ax, word [rsp + 0x50]
dec cx
movzx ebp, word [r13 + 0x24]
dec ax
add ax, r11w
inc edi
add ax, word [rsp + 0x54]
add rsi, 4
mov word [r15 - 2], ax
movzx eax, bp
sub ax, word [rsp + 0x58]
add ax, cx
mov ecx, dword [rsp + 0xe8]
add ax, word [rsp + 0x5c]
inc ecx
mov word [r15], ax
add r15, 0x10
mov dword [rsp + 0xe8], ecx
cmp edi, dword [rbx - 0x10]
jl 0x180025660
jmp 0x180025747
mov ecx, dword [rsp + 0xe8]
add rbx, 0x28
mov edi, 0x100
sub qword [rsp + 0x60], 1
jne 0x1800255c0
movaps xmm8, xmmword [rsp + 0x70]
movaps xmm7, xmmword [rsp + 0x80]
movaps xmm6, xmmword [rsp + 0x90]
mov r15, qword [rsp + 0xa0]
mov r12, qword [rsp + 0xa8]
mov rdi, qword [rsp + 0xb0]
mov rsi, qword [rsp + 0xe0]
mov rbp, qword [rsp + 0xd8]
mov rbx, qword [rsp + 0xd0]
mov eax, ecx
add rsp, 0xb8
pop r14
pop r13
ret
Function at 0x1800290f0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
test r9d, 0xff000000
je 0x1800292a7
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
movss xmm3, dword [rsp + 0x70]
xorps xmm0, xmm0
comiss xmm3, xmm0
mov esi, r9d
mov rdi, r8
mov rbp, rdx
mov rbx, rcx
jbe 0x180029186
mov eax, dword [rsp + 0x78]
mov dword [rsp + 0x20], eax
call fcn.180028b20
mov r8d, dword [rbx + 0x80]
mov r9d, esi
mov rdx, qword [rbx + 0x88]
mov rcx, rbx
call fcn.180028110
mov ecx, dword [rbx + 0x84]
test ecx, ecx
jns 0x180029177
mov eax, ecx
cdq
sub eax, edx
xor edx, edx
sar eax, 1
add eax, ecx
lea rcx, [rbx + 0x80]
test eax, eax
cmovg edx, eax
call fcn.18001e5c0
mov dword [rbx + 0x80], 0
jmp 0x180029293
mov edx, 6
movaps xmmword [rsp + 0x30], xmm6
lea r8d, [rdx - 2]
call fcn.180026f40
movzx edx, word [rbx + 0x48]
mov rax, qword [rbx + 0x38]
movss xmm1, dword [rdi]
movss xmm2, dword [rbp + 4]
movss xmm3, dword [rbp]
lea ecx, [rdx + 1]
movss xmm6, dword [rax + 4]
movss xmm5, dword [rax]
movss xmm4, dword [rdi + 4]
mov rax, qword [rbx + 0x58]
mov word [rax], dx
mov rax, qword [rbx + 0x58]
mov word [rax + 2], cx
lea ecx, [rdx + 2]
mov rax, qword [rbx + 0x58]
mov word [rax + 4], cx
mov rax, qword [rbx + 0x58]
mov word [rax + 6], dx
add dx, 3
mov rax, qword [rbx + 0x58]
mov word [rax + 8], cx
mov rax, qword [rbx + 0x58]
mov word [rax + 0xa], dx
movsd xmm0, qword [rbp]
mov rax, qword [rbx + 0x50]
movsd qword [rax], xmm0
mov rax, qword [rbx + 0x50]
movss dword [rax + 8], xmm5
movss dword [rax + 0xc], xmm6
mov rax, qword [rbx + 0x50]
mov dword [rax + 0x10], esi
mov rax, qword [rbx + 0x50]
movss dword [rax + 0x14], xmm1
movss dword [rax + 0x18], xmm2
mov rax, qword [rbx + 0x50]
movss dword [rax + 0x1c], xmm5
movss dword [rax + 0x20], xmm6
mov rax, qword [rbx + 0x50]
mov dword [rax + 0x24], esi
movsd xmm0, qword [rdi]
mov rax, qword [rbx + 0x50]
movsd qword [rax + 0x28], xmm0
mov rax, qword [rbx + 0x50]
movss dword [rax + 0x30], xmm5
movss dword [rax + 0x34], xmm6
mov rax, qword [rbx + 0x50]
mov dword [rax + 0x38], esi
mov rax, qword [rbx + 0x50]
movss dword [rax + 0x3c], xmm3
movss dword [rax + 0x40], xmm4
mov rax, qword [rbx + 0x50]
movss dword [rax + 0x44], xmm5
movss dword [rax + 0x48], xmm6
mov rax, qword [rbx + 0x50]
movaps xmm6, xmmword [rsp + 0x30]
mov dword [rax + 0x4c], esi
add qword [rbx + 0x50], 0x50
add dword [rbx + 0x48], 4
add qword [rbx + 0x58], 0xc
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x18002f300
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x38
cmp edx, 0x101
jne 0x18002f343
movzx r10d, byte [0x180077e4c]
cmp r8, 0x2d
je 0x18002f325
test r10b, r10b
je 0x18002f376
cmp r8, 0x1b
jne 0x18002f362
mov rax, qword [0x180077e20]
test r10b, r10b
sete r10b
mov byte [0x180077e4c], r10b
mov byte [rax + 0x124], r10b
jmp 0x18002f362
cmp edx, 0x12
jne 0x18002f35a
cmp byte [0x180077e4c], 0
je 0x18002f376
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
movzx r10d, byte [0x180077e4c]
test r10b, r10b
je 0x18002f376
call fcn.18002e850
mov eax, 1
add rsp, 0x38
ret
mov qword [rsp + 0x20], r9
mov r9, r8
mov r8d, edx
mov rdx, rcx
mov rcx, qword [0x180079950]
call qword [sym.imp.USER32.dll_CallWindowProcW]
add rsp, 0x38
ret
Function at 0x180034300
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x170
mov rax, qword [0x1800773b0]
xor rax, rsp
mov qword [rsp + 0x160], rax
xorps xmm0, xmm0
lea rdx, [rsp + 0x60]
movups xmmword [0x1800799b8], xmm0
xor eax, eax
mov ecx, 0xff
movups xmmword [0x1800799c8], xmm0
mov qword [rsp + 0x50], rax
movups xmmword [0x1800799d8], xmm0
mov word [0x1800799b8], 1
movsd xmm0, qword [rsp + 0x50]
movsd qword [0x1800799e8], xmm0
movaps xmm0, xmmword [0x18006d480]
movups xmmword [0x1800799d0], xmm0
mov byte [0x1800799bb], 1
mov qword [0x1800799bc], 0x42c80000
mov byte [0x1800799c4], 1
mov dword [0x1800799c8], 0x42f00000
mov word [0x1800799cc], 0x101
mov byte [0x1800799cf], 1
mov dword [0x1800799e0], 0x3da3d70a
mov dword [0x1800799e4], 0x3f19999a
mov word [0x1800799e9], 0x101
mov dword [0x1800799ec], 4
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
lea rax, [rsp + 0x60]
dec rax
cmp byte [rax + 1], 0
lea rax, [rax + 1]
jne 0x1800343d1
movups xmm0, xmmword [str.fnambt.settings]
lea rdx, [0x18006cf28]
lea rcx, [rsp + 0x60]
movups xmmword [rax], xmm0
call fcn.1800457e8
mov rbx, rax
test rax, rax
je 0x18003441e
mov edx, 0x38
lea rcx, [0x1800799b8]
mov r9, rax
lea r8d, [rdx - 0x37]
call fcn.18004b824
mov rcx, rbx
call fcn.1800420c8
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.180039730
add rsp, 0x170
pop rbx
ret

Function at 0x180036b10
Capabilities:
Suspend thread

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
mov rdi, rsp
mov ecx, 0xc
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x40]
mov rax, qword [rsp + 0x40]
mov qword [rax], 0
mov rax, qword [rsp + 0x40]
mov dword [rax + 8], 0
mov rax, qword [rsp + 0x40]
mov dword [rax + 0xc], 0
mov rcx, qword [rsp + 0x40]
call fcn.180036900
mov rax, qword [rsp + 0x40]
cmp qword [rax], 0
je 0x180036be7
mov dword [rsp + 0x20], 0
jmp 0x180036b84
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 0xc]
cmp dword [rsp + 0x20], eax
jae 0x180036be7
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x40]
mov rcx, qword [rcx]
mov r8d, dword [rcx + rax*4]
xor edx, edx
mov ecx, 0x5a
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x180036be5
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov r8d, dword [rsp + 0x50]
mov edx, dword [rsp + 0x48]
mov rcx, qword [rsp + 0x28]
call fcn.1800366e0
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x180036b7a
add rsp, 0x30
pop rdi
ret
Function at 0x180036c00
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
mov rdi, rsp
mov ecx, 0xc
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x40]
mov rax, qword [rsp + 0x40]
cmp qword [rax], 0
je 0x180036ca4
mov dword [rsp + 0x20], 0
jmp 0x180036c3d
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 0xc]
cmp dword [rsp + 0x20], eax
jae 0x180036c8d
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x40]
mov rcx, qword [rcx]
mov r8d, dword [rcx + rax*4]
xor edx, edx
mov ecx, 0x5a
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x180036c8b
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x180036c33
mov rax, qword [rsp + 0x40]
mov r8, qword [rax]
xor edx, edx
mov rcx, qword [0x180078718]
call qword [sym.imp.KERNEL32.dll_HeapFree]
add rsp, 0x30
pop rdi
ret
Function at 0x180036cb0
Capabilities:
Allocate or change rwx memory

Disassembly:
mov dword [rsp + 0x10], edx
mov dword [rsp + 8], ecx
push rdi
sub rsp, 0x70
mov rdi, rsp
mov ecx, 0x1c
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov ecx, dword [rsp + 0x80]
mov eax, dword [rsp + 0x80]
imul rax, rax, 0x38
mov rcx, qword [0x18007d7e0]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x48], 5
mov rax, qword [rsp + 0x20]
mov rax, qword [rax]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x20]
movzx eax, byte [rax + 0x20]
and al, 1
movzx eax, al
test eax, eax
je 0x180036d34
mov rax, qword [rsp + 0x50]
sub rax, 5
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x48]
add rax, 2
mov qword [rsp + 0x48], rax
lea r9, [rsp + 0x34]
mov r8d, 0x40
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x180036d5d
mov eax, 0xa
jmp 0x180036e97
cmp dword [rsp + 0x88], 0
je 0x180036dcb
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
mov byte [rax], 0xe9
mov rax, qword [rsp + 0x50]
add rax, 5
mov rcx, qword [rsp + 0x20]
mov rcx, qword [rcx + 8]
sub rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x58]
mov dword [rcx + 1], eax
mov rax, qword [rsp + 0x20]
movzx eax, byte [rax + 0x20]
and al, 1
movzx eax, al
test eax, eax
je 0x180036dc9
mov rax, qword [rsp + 0x20]
mov rax, qword [rax]
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x60]
mov byte [rax], 0xeb
mov rax, qword [rsp + 0x60]
mov byte [rax + 1], 0xf9
jmp 0x180036e17
mov rax, qword [rsp + 0x20]
movzx eax, byte [rax + 0x20]
and al, 1
movzx eax, al
test eax, eax
je 0x180036dfb
mov rax, qword [rsp + 0x20]
add rax, 0x18
mov r8d, 7
mov rdx, rax
mov rcx, qword [rsp + 0x50]
call fcn.18003c7d0
jmp 0x180036e17
mov rax, qword [rsp + 0x20]
add rax, 0x18
mov r8d, 5
mov rdx, rax
mov rcx, qword [rsp + 0x50]
call fcn.18003c7d0
lea r9, [rsp + 0x34]
mov r8d, dword [rsp + 0x34]
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r8, qword [rsp + 0x48]
mov rdx, qword [rsp + 0x50]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FlushInstructionCache]
movzx eax, byte [rsp + 0x88]
and al, 1
shl al, 1
mov rcx, qword [rsp + 0x20]
movzx ecx, byte [rcx + 0x20]
and cl, 0xfd
or cl, al
movzx eax, cl
mov rcx, qword [rsp + 0x20]
mov byte [rcx + 0x20], al
movzx eax, byte [rsp + 0x88]
and al, 1
shl al, 2
mov rcx, qword [rsp + 0x20]
movzx ecx, byte [rcx + 0x20]
and cl, 0xfb
or cl, al
movzx eax, cl
mov rcx, qword [rsp + 0x20]
mov byte [rcx + 0x20], al
xor eax, eax
mov rdi, rax
mov rcx, rsp
lea rdx, [0x18005f760]
call fcn.18003a0c4
mov rax, rdi
add rsp, 0x70
pop rdi
ret
Function at 0x180038380
Capabilities:
Check for software breakpoints

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x10
mov rdi, rsp
mov ecx, 4
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x20]
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0x20]
movzx eax, byte [rcx + rax]
test eax, eax
je 0x1800383ee
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0x20]
movzx eax, byte [rcx + rax]
cmp eax, 0x90
je 0x1800383ee
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0x20]
movzx eax, byte [rcx + rax]
cmp eax, 0xcc
je 0x1800383ee
xor eax, eax
jmp 0x180038435
mov dword [rsp], 1
jmp 0x1800383ff
mov eax, dword [rsp]
inc eax
mov dword [rsp], eax
mov eax, dword [rsp + 0x28]
cmp dword [rsp], eax
jae 0x180038430
mov eax, dword [rsp]
mov rcx, qword [rsp + 0x20]
movzx eax, byte [rcx + rax]
mov ecx, 1
imul rcx, rcx, 0
mov rdx, qword [rsp + 0x20]
movzx ecx, byte [rdx + rcx]
cmp eax, ecx
je 0x18003842e
xor eax, eax
jmp 0x180038435
jmp 0x1800383f7
mov eax, 1
add rsp, 0x10
pop rdi
ret
Function at 0x1800414f8
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.18005a910
sub rsp, rax
mov rax, qword [0x1800773b0]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.18004db70
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x180041547
mov rax, rbp
jmp 0x18004164f
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, [0x180000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x79040]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.18004de00
mov r13, rax
lea rax, [0x180000000]
mov rcx, qword [rax + rbx*8 + 0x79040]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x18004164b
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 0x18004164b
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.18004de00
test rax, rax
js 0x18004164b
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x18004164b
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x18004163d
lea r8, [0x180000000]
cmp rcx, rdx
jae 0x18004163d
cmp byte [rcx], 0xd
jne 0x180041623
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x180041632
cmp byte [rcx + 1], 0xa
jne 0x180041632
inc rcx
jmp 0x180041632
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x776a0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x180041605
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x18004164f
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.180039730
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 0x18004deac
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, [0x180079040]
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 0x18004df03
cmp word [rdx], r13w
jne 0x18004df03
or byte [rax + rdi*8 + 0x38], cl
jmp 0x18004df08
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x18004e02d
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x18004e04e
lea r9, [rdx + 2]
cmp cx, r11w
je 0x18004df41
mov rdx, r9
mov word [rbx], cx
jmp 0x18004df68
cmp r9, r8
jae 0x18004df78
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 0x18004df22
jmp 0x18004e02d
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 0x18004e022
cmp dword [rsp + 0x80], esi
je 0x18004e022
lea r8, [0x180079040]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x18004dffa
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x18004dfca
mov word [rbx], r13w
jmp 0x18004e02a
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 0x18004dfd7
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x18004e02a
cmp word [rsp + 0x70], r13w
jne 0x18004e007
cmp rbx, r14
je 0x18004dfc4
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.18004de08
cmp word [rsp + 0x70], r13w
je 0x18004e02d
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, [0x180079040]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x18004e027
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x18004e02d
Function at 0x180052e04
Capabilities:
Get file size

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