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

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [rcx + 0xd8]
lea r8, [0x18008a9a0]
movsxd rcx, dword [rcx + 0xd0]
mov r11d, edx
shr r11d, 0x18
mov r9d, edx
shr r9d, 8
mov r10d, edx
shr r10d, 0x10
mov ebx, dword [rax + rcx*4 - 4]
not ebx
movzx eax, dl
movzx ecx, bl
xor rcx, rax
shr ebx, 8
movzx eax, r9b
xor ebx, dword [r8 + rcx*4]
movzx ecx, bl
xor rcx, rax
shr ebx, 8
movzx eax, r10b
xor ebx, dword [r8 + rcx*4]
movzx ecx, bl
xor rcx, rax
shr ebx, 8
xor ebx, dword [r8 + rcx*4]
movzx ecx, bl
xor rcx, r11
shr ebx, 8
xor ebx, dword [r8 + rcx*4]
mov rcx, qword [0x1800e2968]
not ebx
cmp dword [rcx + 0x3ec4], ebx
jne 0x180032635
movsxd r8, edx
mov ecx, ebx
mov edx, 4
call fcn.180043870
mov eax, ebx
add rsp, 0x20
pop rbx
ret
Function at 0x1800372a0
Capabilities:
Hash data with crc32

Disassembly:
movzx r9d, byte [rcx]
lea r8, [rcx + 1]
mov r10d, 0xffffffff
mov eax, r10d
test r9b, r9b
je 0x1800372f0
lea r11, [0x18008a9a0]
nop dword [rax]
cmp r9b, 0x23
jne 0x1800372d3
cmp byte [r8], r9b
jne 0x1800372d3
cmp byte [r8 + 1], r9b
cmove eax, r10d
movzx edx, al
movzx ecx, r9b
movzx r9d, byte [r8]
xor rdx, rcx
shr eax, 8
inc r8
xor eax, dword [r11 + rdx*4]
test r9b, r9b
jne 0x1800372c0
mov rcx, qword [0x1800e2968]
not eax
movsxd rdx, dword [rcx + 0x3e70]
mov r9, qword [rcx + 0x3e78]
mov r10, rdx
shl r10, 4
add r10, r9
test rdx, rdx
je 0x180037351
nop word [rax + rax]
mov r8, rdx
shr r8, 1
mov rcx, r8
add rcx, rcx
cmp dword [r9 + rcx*8], eax
jae 0x180037349
lea r9, [r9 + rcx*8]
mov rcx, 0xffffffffffffffff
sub rcx, r8
add r9, 0x10
add rdx, rcx
jmp 0x18003734c
mov rdx, r8
test rdx, rdx
jne 0x180037320
cmp r9, r10
je 0x180037360
cmp dword [r9], eax
jne 0x180037360
mov rax, qword [r9 + 8]
ret
xor eax, eax
ret

Function at 0x180042380
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
cmp qword [rcx + 0x53e0], 0
lea rbx, [rcx + 0x53e8]
mov rsi, r8
mov rbp, rdx
mov rdi, rcx
je 0x180042427
mov r9d, dword [rbx + 4]
mov qword [rsp + 0x30], r14
xor r14d, r14d
test r9d, r9d
jns 0x1800423da
mov eax, r9d
mov rcx, rbx
cdq
sub eax, edx
mov edx, r14d
sar eax, 1
add eax, r9d
test eax, eax
cmovg edx, eax
call fcn.180044930
mov r8, rsi
mov dword [rbx], r14d
mov rdx, rbp
mov rcx, rbx
call fcn.1800307e0
mov eax, dword [rbx]
mov edx, 1
mov r9, qword [rdi + 0x53e0]
test eax, eax
lea ecx, [rax - 1]
mov rax, qword [rdi + 0x53f0]
cmove ecx, r14d
test rax, rax
movsxd r8, ecx
lea rcx, [0x1800e28b4]
cmovne rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r14, qword [rsp + 0x30]
jmp 0x18004242f
mov rcx, rbx
call fcn.1800307e0
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret

Function at 0x1800428b0
Capabilities:
Hash data with crc32

Disassembly:
sub rsp, 8
movzx r9d, byte [rcx]
lea r8, [rcx + 1]
mov r10, qword [0x1800e2968]
mov r11d, 0xffffffff
mov eax, r11d
test r9b, r9b
je 0x180042913
mov qword [rsp], rbx
lea rbx, [0x18008a9a0]
nop dword [rax]
cmp r9b, 0x23
jne 0x1800428f3
cmp byte [r8], r9b
jne 0x1800428f3
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 [rbx + rdx*4]
test r9b, r9b
jne 0x1800428e0
mov rbx, qword [rsp]
movsxd rcx, dword [r10 + 0x5390]
xor r8d, r8d
not eax
test ecx, ecx
jle 0x180042947
mov r10, qword [r10 + 0x5398]
mov r9, rcx
mov edx, r8d
lea rcx, [r10 + 8]
cmp dword [rcx], eax
je 0x18004294e
inc r8d
inc rdx
add rcx, 0x48
cmp rdx, r9
jl 0x180042934
xor eax, eax
add rsp, 8
ret
movsxd rax, r8d
lea rcx, [rax + rax*8]
lea rax, [r10 + rcx*8]
add rsp, 8
ret
Function at 0x18005df30
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rax, qword [rsp + 0x78]
sub rax, 0x10000
mov rcx, rax
call fcn.18005e180
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x70]
cmp qword [rsp + 0x20], rax
jbe 0x18005e04a
mov rax, qword [section..data]
cmp qword [rsp + 0x20], rax
jb 0x18005df94
mov rax, qword [0x18009d008]
cmp qword [rsp + 0x20], rax
ja 0x18005df94
mov rax, qword [rsp + 0x20]
sub rax, 0x8000000
mov qword [rsp + 0x20], rax
jmp 0x18005df56
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0x30]
call sub.VCRUNTIME140.dll_memset
mov r8d, 0x30
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_VirtualQuery
test rax, rax
jne 0x18005dfc5
jmp 0x18005e04a
cmp dword [rsp + 0x50], 0x10000
jne 0x18005e02d
cmp qword [rsp + 0x48], 0x10000
jb 0x18005e02d
mov r9d, 0x40
mov r8d, 0x3000
mov edx, 0x10000
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_VirtualAlloc
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x18005e00b
mov rax, qword [rsp + 0x28]
jmp 0x18005e04c
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
jne 0x18005e01b
xor eax, eax
jmp 0x18005e04c
mov rax, qword [rsp + 0x20]
sub rax, 0x10000
mov qword [rsp + 0x20], rax
jmp 0x18005e045
mov rax, qword [rsp + 0x38]
sub rax, 0x10000
mov rcx, rax
call fcn.18005e180
mov qword [rsp + 0x20], rax
jmp 0x18005df56
xor eax, eax
add rsp, 0x68
ret

Function at 0x18005e060
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rcx, qword [rsp + 0x70]
call fcn.18005e1c0
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x78]
cmp qword [rsp + 0x20], rax
jae 0x18005e176
mov rax, qword [section..data]
cmp qword [rsp + 0x20], rax
jb 0x18005e0bb
mov rax, qword [0x18009d008]
cmp qword [rsp + 0x20], rax
ja 0x18005e0bb
mov rax, qword [rsp + 0x20]
add rax, 0x8000000
mov qword [rsp + 0x20], rax
jmp 0x18005e07d
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0x30]
call sub.VCRUNTIME140.dll_memset
mov r8d, 0x30
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_VirtualQuery
test rax, rax
jne 0x18005e0ec
jmp 0x18005e176
cmp dword [rsp + 0x50], 0x10000
jne 0x18005e154
cmp qword [rsp + 0x48], 0x10000
jb 0x18005e154
mov r9d, 0x40
mov r8d, 0x3000
mov edx, 0x10000
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_VirtualAlloc
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x18005e132
mov rax, qword [rsp + 0x28]
jmp 0x18005e178
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
jne 0x18005e142
xor eax, eax
jmp 0x18005e178
mov rax, qword [rsp + 0x20]
add rax, 0x10000
mov qword [rsp + 0x20], rax
jmp 0x18005e171
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
mov rcx, rax
call fcn.18005e1c0
mov qword [rsp + 0x20], rax
jmp 0x18005e07d
xor eax, eax
add rsp, 0x68
ret
Function at 0x18005e210
Capabilities:
Hook routines via microsoft detours

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x58
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x38]
mov rcx, qword [rsp + 0x60]
call fcn.18005e7a0
mov qword [rsp + 0x28], 0
cmp qword [0x1800e17c8], 0
jne 0x18005e258
cmp qword [0x1800e17c0], 0
je 0x18005e258
mov rax, qword [0x1800e17c0]
mov qword [0x1800e17c8], rax
cmp qword [0x1800e17c8], 0
je 0x18005e2fe
mov rax, qword [0x1800e17c8]
cmp qword [rax + 0x10], 0
je 0x18005e2fe
mov rax, qword [0x1800e17c8]
mov rcx, qword [rsp + 0x38]
cmp qword [rax + 0x10], rcx
jb 0x18005e2fe
mov rax, qword [0x1800e17c8]
mov rcx, qword [rsp + 0x30]
cmp qword [rax + 0x10], rcx
ja 0x18005e2fe
mov rax, qword [0x1800e17c8]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x38]
cmp qword [rsp + 0x28], rax
jb 0x18005e2c4
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x28], rax
jbe 0x18005e2cb
xor eax, eax
jmp 0x18005e479
mov rax, qword [0x1800e17c8]
mov rcx, qword [rsp + 0x28]
mov rcx, qword [rcx + 0x48]
mov qword [rax + 0x10], rcx
mov r8d, 0x60
mov edx, 0xcc
mov rcx, qword [rsp + 0x28]
call sub.VCRUNTIME140.dll_memset
mov rax, qword [rsp + 0x28]
jmp 0x18005e479
mov rax, qword [0x1800e17c0]
mov qword [0x1800e17c8], rax
jmp 0x18005e320
mov rax, qword [0x1800e17c8]
mov rax, qword [rax + 8]
mov qword [0x1800e17c8], rax
cmp qword [0x1800e17c8], 0
je 0x18005e36d
cmp qword [0x1800e17c8], 0
je 0x18005e36b
mov rax, qword [0x1800e17c8]
cmp qword [rax + 0x10], 0
je 0x18005e36b
mov rax, qword [0x1800e17c8]
mov rcx, qword [rsp + 0x38]
cmp qword [rax + 0x10], rcx
jb 0x18005e36b
mov rax, qword [0x1800e17c8]
mov rcx, qword [rsp + 0x30]
cmp qword [rax + 0x10], rcx
ja 0x18005e36b
jmp 0x18005e29c
jmp 0x18005e30e
mov rcx, qword [rsp + 0x60]
call fcn.1800603f0
and eax, 0xffff
mov eax, eax
mov rcx, qword [rsp + 0x60]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x60], rax
mov r8, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x60]
call fcn.18005e480
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
je 0x18005e477
mov rax, qword [rsp + 0x48]
mov qword [0x1800e17c8], rax
mov rax, qword [0x1800e17c8]
mov dword [rax], 0x52727464
mov rax, qword [0x1800e17c8]
mov qword [rax + 0x10], 0
mov rax, qword [0x1800e17c8]
mov rcx, qword [0x1800e17c0]
mov qword [rax + 8], rcx
mov rax, qword [0x1800e17c8]
mov qword [0x1800e17c0], rax
mov qword [rsp + 0x40], 0
mov rax, qword [0x1800e17c8]
add rax, 0x60
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x2a8
jmp 0x18005e428
mov eax, dword [rsp + 0x20]
dec eax
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 1
jle 0x18005e462
movsxd rax, dword [rsp + 0x20]
imul rax, rax, 0x60
mov rcx, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x40]
mov qword [rcx + rax + 0x48], rdx
movsxd rax, dword [rsp + 0x20]
imul rax, rax, 0x60
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
jmp 0x18005e41e
mov rax, qword [0x1800e17c8]
mov rcx, qword [rsp + 0x40]
mov qword [rax + 0x10], rcx
jmp 0x18005e29c
xor eax, eax
add rsp, 0x58
ret
Function at 0x18005f190
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov r8d, 0x30
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x80]
call sub.KERNEL32.dll_VirtualQuery
nop
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x18005f1d7
xor al, al
jmp 0x18005f279
mov rax, qword [rsp + 0x28]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp dword [rax], 0x4550
je 0x18005f201
xor al, al
jmp 0x18005f279
mov eax, 8
imul rax, rax, 0xc
mov rcx, qword [rsp + 0x30]
mov eax, dword [rcx + rax + 0x88]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
cmp qword [rsp + 0x88], rax
jb 0x18005f271
mov eax, 8
imul rax, rax, 0xc
mov rcx, qword [rsp + 0x30]
mov eax, dword [rcx + rax + 0x88]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov ecx, 8
imul rcx, rcx, 0xc
mov rdx, qword [rsp + 0x30]
mov ecx, dword [rdx + rcx + 0x8c]
add rax, rcx
cmp qword [rsp + 0x88], rax
jae 0x18005f271
mov al, 1
jmp 0x18005f279
jmp 0x18005f277
xor al, al
add rsp, 0x78
ret

Function at 0x18005f580
Capabilities:
Allocate or change rwx memory

Disassembly:
sub rsp, 0x38
mov rax, qword [0x1800e17c0]
mov qword [rsp + 0x28], rax
jmp 0x18005f5a0
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 8]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x18005f5cf
lea r9, [rsp + 0x20]
mov r8d, 0x40
mov edx, 0x10000
mov rcx, qword [rsp + 0x28]
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
jne 0x18005f5cd
call sub.KERNEL32.dll_GetLastError
jmp 0x18005f5d1
jmp 0x18005f592
xor eax, eax
add rsp, 0x38
ret
Function at 0x18005fc90
Capabilities:
Resume thread

Disassembly:
sub rsp, 0x68
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [0x1800e17d8], eax
je 0x18005fcab
mov eax, 0x10dd
jmp 0x18005fdd0
mov rax, qword [0x1800e17f0]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x18005fd55
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 0x20]
movzx eax, byte [rax + 0x3e]
lea r9, [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
mov r8d, dword [rcx + 0x28]
mov edx, eax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rax + 0x18]
call sub.KERNEL32.dll_VirtualProtect
mov rax, qword [rsp + 0x28]
cmp dword [rax + 8], 0
jne 0x18005fd20
mov rax, qword [rsp + 0x28]
cmp qword [rax + 0x20], 0
je 0x18005fd20
mov rax, qword [rsp + 0x28]
mov rcx, qword [rax + 0x20]
call fcn.18005e8e0
mov rax, qword [rsp + 0x28]
mov qword [rax + 0x20], 0
mov rax, qword [rsp + 0x28]
mov rax, qword [rax]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x38], rax
mov edx, 0x30
mov rcx, qword [rsp + 0x38]
call fcn.1800620b4
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x28], rax
jmp 0x18005fcb7
mov qword [0x1800e17f0], 0
call fcn.18005f340
mov rax, qword [0x1800e17e8]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x18005fdb9
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax + 8]
call sub.KERNEL32.dll_ResumeThread
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x48], rax
mov edx, 0x10
mov rcx, qword [rsp + 0x48]
call fcn.1800620b4
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x30], rax
jmp 0x18005fd71
mov qword [0x1800e17e8], 0
mov dword [0x1800e17d8], 0
xor eax, eax
add rsp, 0x68
ret
Function at 0x180060300
Capabilities:
Suspend thread

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x48
cmp dword [0x1800e17dc], 0
je 0x18006031d
mov eax, dword [0x1800e17dc]
jmp 0x1800603e3
call sub.KERNEL32.dll_GetCurrentThread
cmp qword [rsp + 0x50], rax
jne 0x180060330
xor eax, eax
jmp 0x1800603e3
mov ecx, 0x10
call fcn.180061d00
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x18006039e
mov dword [rsp + 0x20], 8
cmp qword [rsp + 0x28], 0
je 0x180060383
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x38], rax
mov edx, 0x10
mov rcx, qword [rsp + 0x38]
call fcn.1800620b4
mov qword [rsp + 0x28], 0
mov eax, dword [rsp + 0x20]
mov dword [0x1800e17dc], eax
mov qword [0x1800e17e0], 0
mov eax, dword [rsp + 0x20]
jmp 0x1800603e3
mov rcx, qword [rsp + 0x50]
call sub.KERNEL32.dll_SuspendThread
cmp eax, 0xffffffff
jne 0x1800603b8
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
jmp 0x180060359
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x50]
mov qword [rax + 8], rcx
mov rax, qword [rsp + 0x28]
mov rcx, qword [0x1800e17e8]
mov qword [rax], rcx
mov rax, qword [rsp + 0x28]
mov qword [0x1800e17e8], rax
xor eax, eax
add rsp, 0x48
ret

Function at 0x1800618a0
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x1800618da
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x1800618df
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x180061928
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x1800669b0]
cmp byte [rcx + rax], 0
je 0x180061928
dec r8
sub rdx, 1
jne 0x18006190e
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x140001840
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 ecx, dword [section..data]
call fcn.140001200
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 0x1400021bc
Capabilities:
Parse pe header

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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r13
push r14
push r15
lea rbp, [rsp - 0x150]
sub rsp, 0x250
mov rax, qword [0x14006c100]
xor rax, rsp
mov qword [rbp + 0x140], rax
and qword [rdx], 0
mov r15, rdx
mov r8, rcx
mov edi, 0x104
mov edx, edi
lea rcx, [rsp + 0x30]
xor r14d, r14d
call fcn.14000219c
lea r8, [0x1400530e0]
mov edx, edi
lea rcx, [rsp + 0x30]
call fcn.140002228
lea r8, [rsp + 0x30]
xor edx, edx
mov ecx, 0x1f0003
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_OpenSemaphoreW]
nop dword [rax + rax]
lea r13, [0x14005307c]
mov rbx, rax
test rax, rax
jne 0x140005170
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 2
je 0x140005276
mov rcx, qword [rbp + 0x178]
lea edx, [rdi - 0x3b]
mov r8, r13
call fcn.140003c50
mov esi, eax
jmp 0x140005257
and dword [rsp + 0x24], r14d
lea rdx, [rsp + 0x24]
and dword [rsp + 0x20], r14d
mov rcx, rbx
call fcn.140003d88
mov esi, eax
test eax, eax
jns 0x1400051b1
mov rcx, qword [rbp + 0x178]
mov r9d, eax
mov r8, r13
mov edx, 0xcf
call fcn.140003c18
mov rcx, rbx
call fcn.140003d00
jmp 0x140005257
lea r8, [0x1400530e8]
mov rdx, rdi
lea rcx, [rsp + 0x30]
call fcn.140002228
lea r8, [rsp + 0x30]
xor edx, edx
mov ecx, 0x1f0003
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_OpenSemaphoreW]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
jne 0x1400051fd
mov rcx, qword [rbp + 0x178]
mov r8, r13
mov edx, 0xd5
call fcn.140003c50
mov esi, eax
jmp 0x1400051a4
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.140003d88
mov esi, eax
test eax, eax
jns 0x140005234
mov rcx, qword [rbp + 0x178]
mov r9d, eax
mov r8, r13
mov edx, 0xd7
call fcn.140003c18
mov rcx, rdi
call fcn.140003d00
jmp 0x1400051a4
mov rcx, rdi
call fcn.140003d00
movsxd rax, dword [rsp + 0x20]
mov rcx, rbx
movsxd r14, dword [rsp + 0x24]
shl rax, 0x1f
or r14, rax
call fcn.140003d00
xor esi, esi
test esi, esi
jns 0x140005276
mov rcx, qword [rbp + 0x178]
mov r9d, esi
mov r8, r13
mov edx, 0x62
call fcn.140003c18
mov eax, esi
jmp 0x14000527b
mov qword [r15], r14
xor eax, eax
mov rcx, qword [rbp + 0x140]
xor rcx, rsp
call fcn.14004b180
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop rdi
pop rbp
ret
Function at 0x14000dcf4
Capabilities:
Encode data using base64

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
mov r11, r8
mov r10, rdx
xor r8d, r8d
movabs rax, 0xaaaaaaaaaaaaaaab
mul rdx
mov rdi, rcx
mov rbx, rdx
shr rbx, 1
lea rax, [rbx + rbx*2]
sub r10, rax
cmp r10, 1
mov rax, r10
setne r8b
add r8, 2
neg rax
sbb rax, rax
and rax, r8
lea rax, [rax + rbx*4]
inc rax
cmp rax, 0x81
ja 0x14000de64
xor r9d, r9d
lea r14, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_x
xor esi, esi
test rbx, rbx
je 0x14000ddda
movzx ecx, byte [rdi]
inc esi
movzx edx, byte [rdi + 2]
mov eax, ecx
movzx r8d, byte [rdi + 1]
and cl, 3
shr rax, 2
add rdi, 3
shl cl, 4
movzx ecx, cl
mov al, byte [rax + r14]
mov byte [r9 + r11], al
mov eax, r8d
shr rax, 4
and r8b, 0xf
or rcx, rax
shl r8b, 2
mov al, byte [rcx + r14]
mov byte [r9 + r11 + 1], al
mov eax, edx
shr rax, 6
and edx, 0x3f
movzx ecx, r8b
or rcx, rax
mov al, byte [rcx + r14]
mov byte [r9 + r11 + 2], al
mov al, byte [rdx + r14]
mov byte [r9 + r11 + 3], al
add r9, 4
mov eax, esi
cmp rax, rbx
jb 0x14000dd69
sub r10, 1
je 0x14000de30
cmp r10, 1
jne 0x14000de5f
movzx ecx, byte [rdi]
movzx edx, byte [rdi + 1]
mov eax, ecx
shr rax, 2
and cl, 3
shl cl, 4
movzx ecx, cl
mov al, byte [rax + r14]
mov byte [r9 + r11], al
mov eax, edx
shr rax, 4
and dl, 0xf
or rcx, rax
shl dl, 2
mov al, byte [rcx + r14]
mov byte [r9 + r11 + 1], al
movzx eax, dl
mov al, byte [rax + r14]
mov byte [r9 + r11 + 2], al
mov byte [r9 + r11 + 3], 0x3d
jmp 0x14000de5b
movzx ecx, byte [rdi]
mov eax, ecx
and cl, 3
shr rax, 2
shl cl, 4
mov al, byte [rax + r14]
mov byte [r9 + r11], al
movzx eax, cl
mov al, byte [rax + r14]
mov byte [r9 + r11 + 1], al
mov word [r9 + r11 + 2], 0x3d3d
add r9, 4
mov byte [r9 + r11], 0
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
mov r14, qword [rsp + 0x20]
ret
Function at 0x1400103f8
Capabilities:
Parse pe header

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
xor r11d, r11d
lea r8, [0x140000000]
mov r9, rdx
test rdx, rdx
jne 0x140010429
mov r9, r8
not r9
mov rdx, r9
mov rcx, r8
call fcn.140010120
test eax, eax
je 0x14001062d
mov edx, 0x40
call fcn.140010120
test eax, eax
je 0x14001062d
mov eax, 0x5a4d
cmp word [0x140000000], ax
jne 0x14001062d
movsxd rax, dword [0x14000003c]
cmp rax, r9
jae 0x14001062d
lea rcx, [rax + r8]
mov edx, 0x108
call fcn.140010120
test eax, eax
je 0x14001062d
cmp dword [rcx], 0x4550
jne 0x14001062d
movzx eax, word [rcx + 0x14]
cmp rax, r9
jae 0x14001062d
add rcx, 0x18
mov edx, 0x10b
cmp word [rcx], dx
jne 0x1400104d2
cmp rax, 0x60
jb 0x14001062d
mov edx, 0xe0
call fcn.140010120
test eax, eax
je 0x14001062d
mov eax, dword [rcx + 0x5c]
add rcx, 0x70
jmp 0x140010503
mov edx, 0x20b
cmp word [rcx], dx
jne 0x14001062d
cmp rax, 0x70
jb 0x14001062d
mov edx, 0xf0
call fcn.140010120
test eax, eax
je 0x14001062d
mov eax, dword [rcx + 0x6c]
sub rcx, 0xffffffffffffff80
cmp eax, 2
jbe 0x14001062d
mov eax, dword [rcx]
mov edx, dword [rcx + 4]
test rax, rax
je 0x14001062d
test rdx, rdx
je 0x14001062d
lea rdi, [rax + r8]
test rdi, rdi
je 0x14001062d
mov rcx, rdi
call fcn.140010120
test eax, eax
je 0x14001062d
mov ebp, 0x10
cmp rdx, rbp
jb 0x14001062d
movzx ebx, word [rdi + 0xe]
test rbx, rbx
je 0x14001062d
movzx ecx, word [rdi + 0xc]
lea r14d, [rbp - 8]
add rcx, 2
mov rsi, r11
lea rcx, [rdi + rcx*8]
test rbx, rbx
je 0x140010593
mov rdx, r14
call fcn.140010120
test eax, eax
je 0x14001062d
cmp word [rcx], bp
je 0x140010593
add rcx, r14
inc rsi
cmp rsi, rbx
jb 0x140010573
cmp rsi, rbx
je 0x14001062d
mov ebx, dword [rcx + 4]
test ebx, ebx
jns 0x140010615
mov esi, 0x7fffffff
mov rdx, rbp
and rbx, rsi
add rbx, rdi
mov rcx, rbx
call fcn.140010120
test eax, eax
je 0x14001062d
cmp word [rbx + 0xe], r11w
jne 0x1400105cb
cmp word [rbx + 0xc], r11w
je 0x14001062d
lea rcx, [rbx + 0x10]
mov rdx, r14
call fcn.140010120
test eax, eax
je 0x14001062d
mov ebx, dword [rcx + 4]
test ebx, ebx
jns 0x140010615
and rbx, rsi
mov rdx, rbp
add rbx, rdi
mov rcx, rbx
call fcn.140010120
test eax, eax
je 0x14001062d
cmp word [rbx + 0xe], r11w
jne 0x140010605
cmp word [rbx + 0xc], r11w
je 0x14001062d
lea rcx, [rbx + 0x10]
mov rdx, r14
call fcn.140010120
test eax, eax
je 0x14001062d
mov ecx, dword [rcx + 4]
mov rdx, rbp
add rcx, rdi
call fcn.140010120
test eax, eax
je 0x14001062d
mov r11d, dword [rcx]
add r11, r8
mov rbx, qword [rsp + 0x30]
mov rax, r11
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret