joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140010a00
Capabilities:
Extract resource via kernel32 functions
Import public key

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x30
mov rdi, rcx
lea r8, [0x1400d0128]
xor ecx, ecx
mov edx, 0xc7
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
test rax, rax
je 0x140010ada
mov rdx, rax
mov qword [rsp + 0x40], rbp
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov rdx, rbx
xor ecx, ecx
mov ebp, eax
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x140010ad5
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x140010ad5
mov r9d, 1
mov qword [rsp + 0x48], rsi
xor r8d, r8d
mov dword [rsp + 0x20], 0
xor edx, edx
lea rcx, [rdi + 0xa88]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x140010ad0
mov r8d, ebp
mov rdx, rbx
mov ecx, 1
call qword [sym.imp.CRYPT32.dll_CertCreateCertificateContext]
mov rbx, rax
test rax, rax
je 0x140010ad0
mov r8, qword [rax + 0x18]
lea r9, [rdi + 0xa90]
mov rcx, qword [rdi + 0xa88]
add r8, 0x60
mov edx, 1
call qword [sym.imp.CRYPT32.dll_CryptImportPublicKeyInfo]
mov rcx, rbx
call qword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
mov rsi, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x140010af0
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x250
mov rax, qword [0x140115740]
xor rax, rsp
mov qword [rsp + 0x240], rax
cmp dword [rcx + 0x10], 0
mov rbx, rcx
je 0x140010b1b
mov al, 1
jmp 0x140010ba3
lea rdx, [rsp + 0x30]
mov ecx, 0x103
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0x102
ja 0x140010bc0
lea r9, [rbx + 0x418]
mov qword [rsp + 0x268], rdi
xor r8d, r8d
lea rdx, [0x1400cffa8]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x140010bbc
lea rdx, [rbx + 0x18]
mov dword [rbx + 0xa48], 0
lea rcx, [rbx + 0xa50]
mov qword [rsp + 0x20], rbx
lea r9, [0x140010250]
lea r8, [rbx + 0x418]
call fcn.140002eb0
test rax, rax
je 0x140010bbc
mov dword [rbx + 0x10], 1
mov al, 1
mov rdi, qword [rsp + 0x268]
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.1400265c0
add rsp, 0x250
pop rbx
ret
xor al, al
jmp 0x140010b9b
xor al, al
jmp 0x140010ba3
Function at 0x140011250
Capabilities:
Delete registry value
Persist via run registry key
Query or enumerate registry value
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x3a0
mov rax, qword [0x140115740]
xor rax, rsp
mov qword [rsp + 0x390], rax
mov edi, ecx
mov dword [rsp + 0x60], 0x114
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
xor ebx, ebx
lea rax, [rsp + 0x58]
cmp dword [rsp + 0x70], 2
lea rdx, [0x1400d0610]
mov qword [rsp + 0x40], rax
mov ecx, ebx
setne cl
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
add rcx, 0xffffffff80000001
mov qword [rsp + 0x30], rbx
xor r9d, r9d
mov dword [rsp + 0x28], 3
xor r8d, r8d
mov dword [rsp + 0x20], ebx
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x1400112da
xor eax, eax
jmp 0x14001138b
test edi, edi
je 0x140011345
mov r8d, 0x104
lea rdx, [rsp + 0x180]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea rcx, [rsp + 0x180]
or rax, 0xffffffffffffffff
cmp word [rcx + rax*2 + 2], bx
lea rax, [rax + 1]
jne 0x140011300
mov rcx, qword [rsp + 0x50]
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
lea rdx, [0x1400d0670]
lea rax, [rsp + 0x180]
mov r9d, 1
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
sete bl
jmp 0x14001137e
mov rcx, qword [rsp + 0x50]
lea rdx, [0x1400d0670]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov rcx, qword [rsp + 0x50]
lea rdx, [0x1400d0670]
xor r9d, r9d
mov qword [rsp + 0x28], rbx
xor r8d, r8d
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
setne bl
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rsp + 0x390]
xor rcx, rsp
call fcn.1400265c0
mov rbx, qword [rsp + 0x3b0]
add rsp, 0x3a0
pop rdi
ret
Function at 0x1400119f0
Capabilities:
Query or enumerate registry value

Disassembly:
push rdi
sub rsp, 0x170
mov rax, qword [0x140115740]
xor rax, rsp
mov qword [rsp + 0x160], rax
lea rcx, [rsp + 0x40]
mov dword [rsp + 0x40], 0x114
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
xor edi, edi
lea rax, [rsp + 0x30]
cmp dword [rsp + 0x50], 2
lea rdx, [0x1400d0610]
mov ecx, edi
mov qword [rsp + 0x20], rax
setne cl
xor r8d, r8d
add rcx, 0xffffffff80000001
lea r9d, [rdi + 3]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x140011a57
xor eax, eax
jmp 0x140011a9e
mov rcx, qword [rsp + 0x30]
lea rdx, [0x1400d0670]
mov qword [rsp + 0x28], rdi
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rdi
mov qword [rsp + 0x180], rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x30]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
mov rbx, qword [rsp + 0x180]
sete dil
mov eax, edi
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.1400265c0
add rsp, 0x170
pop rdi
ret
Function at 0x140019d30
Capabilities:
Hash data using fnv

Disassembly:
mov qword [rsp + 8], rcx
push r12
push r14
push r15
sub rsp, 0x30
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x68], rdi
mov rsi, rdx
mov r14, rcx
movzx r9d, byte [r8]
movabs rax, 0xcbf29ce484222325
xor r9, rax
movabs rcx, 0x100000001b3
imul r9, rcx
movzx eax, byte [r8 + 1]
xor r9, rax
imul r9, rcx
movzx eax, byte [r8 + 2]
xor r9, rax
imul r9, rcx
movzx eax, byte [r8 + 3]
xor r9, rax
imul r9, rcx
mov r12, qword [r14 + 0x30]
and r12, r9
shl r12, 4
mov rbx, qword [r14 + 0x18]
mov rax, qword [rbx + r12]
cmp rax, qword [r14 + 8]
jne 0x140019dbf
mov rbx, qword [r14 + 8]
jmp 0x140019dc7
mov rbx, qword [rbx + r12 + 8]
mov rbx, qword [rbx]
cmp rbx, rax
je 0x140019def
mov ecx, dword [r8]
nop
mov rbx, qword [rbx + 8]
cmp ecx, dword [rbx + 0x10]
je 0x140019de0
cmp rbx, rax
jne 0x140019dd0
jmp 0x140019def
mov qword [rdx], rbx
mov byte [rdx + 8], 0
mov rax, rsi
jmp 0x140019eda
mov rax, qword [r14 + 8]
mov rdi, qword [rax]
mov r9, r8
mov r8, qword [rdi + 8]
mov rdx, rdi
lea rcx, [r14 + 8]
call fcn.140019ae0
mov rdx, rax
movabs rcx, 0x666666666666665
sub rcx, qword [r14 + 0x10]
cmp rcx, 1
jae 0x140019e2d
lea rcx, [0x1400dd708]
call fcn.140028ad4
int3
inc qword [r14 + 0x10]
mov qword [rdi + 8], rdx
mov rax, qword [rax + 8]
mov qword [rax], rdx
mov rdi, qword [r14 + 8]
mov rdi, qword [rdi]
mov qword [rsp + 0x20], rdi
mov rax, qword [rdi]
cmp rbx, rax
je 0x140019e7d
mov rcx, qword [rdi + 8]
mov qword [rcx], rax
mov rcx, qword [rax + 8]
mov qword [rcx], rbx
mov rcx, qword [rbx + 8]
mov qword [rcx], rdi
mov rdx, qword [rbx + 8]
mov rcx, qword [rax + 8]
mov qword [rbx + 8], rcx
mov rcx, qword [rdi + 8]
mov qword [rax + 8], rcx
mov qword [rdi + 8], rdx
mov rdx, qword [r14 + 0x18]
add rdx, r12
mov rax, qword [rdx]
cmp rax, qword [r14 + 8]
jne 0x140019e9b
mov qword [rdx], rdi
mov rax, qword [r14 + 0x18]
mov qword [rax + r12 + 8], rdi
jmp 0x140019ec7
cmp rax, rbx
jne 0x140019ea5
mov qword [rdx], rdi
jmp 0x140019ec7
mov rax, qword [rdx + 8]
mov rcx, qword [rax]
mov qword [rdx + 8], rcx
cmp rcx, rdi
je 0x140019ec7
mov rdx, qword [r14 + 0x18]
mov rax, qword [rdx + r12 + 8]
mov rcx, qword [rax + 8]
mov qword [rdx + r12 + 8], rcx
mov rcx, r14
call fcn.14001e0d0
nop
mov qword [rsi], rdi
mov byte [rsi + 8], 1
mov rax, rsi
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop r12
ret
Function at 0x14001c0c0
Capabilities:
Hash data using fnv

Disassembly:
push rdi
sub rsp, 0xa0
mov rax, qword [0x140115740]
xor rax, rsp
mov qword [rsp + 0x90], rax
xor edi, edi
mov byte [0x140126898], 0
mov dword [0x140126894], edi
mov dword [0x140126890], edi
mov qword [0x140126880], rdi
mov qword [0x140126888], rdi
mov byte [0x140125f16], 1
mov byte [0x140125f17], 0
mov byte [0x1401268a0], 0
call qword [sym.imp.USER32.dll_GetForegroundWindow]
test rax, rax
je 0x14001c33b
lea rdx, [0x140126894]
mov qword [0x140126880], rax
mov rcx, rax
mov qword [0x140126888], rax
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov dword [0x140126890], eax
test eax, eax
je 0x14001c33b
lea rdx, [rsp + 0x40]
mov dword [rsp + 0x40], 0x48
mov ecx, eax
call qword [sym.imp.USER32.dll_GetGUIThreadInfo]
test eax, eax
je 0x14001c33b
mov rcx, qword [rsp + 0x50]
lea rdx, [rsp + 0x30]
mov rax, qword [rsp + 0x48]
mov qword [0x140126880], rcx
mov qword [0x140126888], rax
mov dword [rsp + 0x30], edi
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test eax, eax
je 0x14001c2d6
mov r8d, dword [rsp + 0x30]
movabs rcx, 0x100000001b3
movabs rax, 0xcbf29ce484222325
mov qword [rsp + 0xb0], rbx
movzx edx, r8b
xor rdx, rax
movzx eax, byte [rsp + 0x31]
imul rdx, rcx
xor rdx, rax
movzx eax, byte [rsp + 0x32]
imul rdx, rcx
xor rdx, rax
movzx eax, byte [rsp + 0x33]
imul rdx, rcx
xor rdx, rax
imul rdx, rcx
mov rcx, qword [0x1401289e0]
and rdx, qword [0x1401289f8]
mov rbx, rdx
add rbx, rbx
lea rax, [rdx + rdx]
mov rdx, qword [rcx + rax*8]
lea r9, [rcx + rax*8]
mov rbx, qword [rcx + rbx*8]
mov rcx, qword [0x1401289d0]
cmp rdx, rcx
jne 0x14001c21f
mov rax, rcx
jmp 0x14001c226
mov rax, qword [r9 + 8]
mov rax, qword [rax]
cmp rbx, rax
je 0x14001c287
cmp r8d, dword [rbx + 0x10]
je 0x14001c236
mov rbx, qword [rbx]
jmp 0x14001c215
cmovne rbx, rcx
cmp rbx, rcx
je 0x14001c287
mov r9, qword [rbx + 0x20]
mov rdx, qword [0x1401289b8]
cmp r9, rdx
je 0x14001c282
mov rax, qword [r9]
cmp rdx, r9
je 0x14001c282
cmp rdx, rax
je 0x14001c282
mov qword [rsp + 0x28], 1
lea r8, [0x1401289b8]
lea rcx, [0x1401289b8]
mov qword [rsp + 0x20], rax
call fcn.140020410
mov r8d, dword [rsp + 0x30]
mov eax, dword [rbx + 0x18]
jmp 0x14001c28d
mov eax, dword [0x140128a20]
mov rbx, qword [rsp + 0xb0]
mov dword [rsp + 0x34], eax
cmp eax, 0xffffffff
jne 0x14001c2ca
mov ecx, r8d
call fcn.14001d1a0
test al, al
lea r8, [rsp + 0x34]
lea rdx, [rsp + 0x30]
setne dil
lea rcx, [0x1401289b0]
mov dword [rsp + 0x34], edi
call fcn.1400228b0
mov eax, dword [rsp + 0x34]
cmp eax, 1
sete byte [0x140126898]
jmp 0x14001c2dd
mov byte [0x140126898], dil
mov rcx, qword [0x140126880]
lea rdx, [0x1401268a0]
mov r8d, 0x7f
call qword [sym.imp.USER32.dll_GetClassNameA]
mov r8d, 9
lea rdx, [0x1400dd548]
lea rcx, [0x1401268a0]
call fcn.14008e900
test eax, eax
lea rdx, [0x1400dd548]
mov r8d, 9
lea rcx, [0x1401268a0]
setne byte [0x140125f16]
call fcn.14008e900
test eax, eax
sete byte [0x140125f17]
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.1400265c0
add rsp, 0xa0
pop rdi
ret
Function at 0x1400af00c
Capabilities:
Create thread
Print debug messages

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, 0x50
mov esi, r8d
mov r14, rdx
mov rbx, rcx
call fcn.1400a4e1c
mov bpl, al
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
xor edi, edi
test eax, eax
je 0x1400af05f
test rbx, rbx
je 0x1400af050
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
test bpl, bpl
je 0x1400af05f
mov edi, 4
jmp 0x1400af108
call fcn.1400a4bc4
test al, al
jne 0x1400af07c
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
neg eax
sbb edi, edi
neg edi
add edi, 3
jmp 0x1400af108
test bpl, bpl
je 0x1400af0df
mov qword [rsp + 0x28], rdi
lea r9, [rsp + 0x30]
lea r8, [0x1400aee30]
mov dword [rsp + 0x20], edi
xor edx, edx
mov qword [rsp + 0x30], r14
xor ecx, ecx
mov qword [rsp + 0x38], rbx
mov dword [rsp + 0x40], esi
mov dword [rsp + 0x44], edi
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400af108
xor r8d, r8d
or edx, 0xffffffff
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObjectEx]
mov rcx, rbx
test eax, eax
je 0x1400af0d9
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400af108
mov edi, dword [rsp + 0x44]
jmp 0x1400af0d1
call fcn.1400a4d48
test al, al
jne 0x1400af0f0
bts esi, 0x15
xor ecx, ecx
jmp 0x1400af0f8
call fcn.1400a4c80
mov rcx, rax
mov r9d, esi
mov r8, r14
mov rdx, rbx
call fcn.1400a49fc
mov edi, eax
mov rbx, qword [rsp + 0x60]
mov eax, edi
mov rdi, qword [rsp + 0x78]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop r14
ret
Function at 0x140001480
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x14122de80]
mov dword [rax], 1
mov rax, qword [0x14122de90]
mov dword [rax], 1
mov rax, qword [0x14122dea0]
mov dword [rax], 1
mov rax, qword [0x14122de70]
mov dword [rax], 1
mov rax, qword [0x14122dc50]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400014de
mov eax, 0
jmp 0x14000158b
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x14000150a
mov eax, 0
jmp 0x14000158b
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x10b
je 0x140001530
cmp eax, 0x20b
je 0x140001557
jmp 0x140001586
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x140001543
mov eax, 0
jmp 0x14000158b
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x14000158b
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x140001572
mov eax, 0
jmp 0x14000158b
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x14000158b
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x14000ffe0
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r15, [0x1401d00e4]
mov rsi, rcx
mov r14, rdx
mov rcx, r8
mov rdx, r15
mov r13, r8
call sym.fopen
mov r12, rax
test rax, rax
je 0x1400100b8
mov rcx, rax
mov r8d, 2
xor edx, edx
call sym.fseek
mov rcx, r12
test eax, eax
jne 0x1400100d0
call sym.ftell
mov rcx, r12
mov ebx, eax
cmp eax, 0x7fffffff
je 0x1400100d0
call sym.fclose
test ebx, ebx
js 0x1400100b8
movsxd rdi, ebx
mov qword [r14], rdi
mov rcx, rdi
call sym.malloc
mov qword [rsi], rax
mov r14, rax
test ebx, ebx
je 0x14001006c
test rax, rax
je 0x1400100ea
mov rdx, r15
mov rcx, r13
call sym.fopen
mov r12, rax
test rax, rax
je 0x1400100b8
mov r9, rax
mov r8, rdi
mov edx, 1
mov rcx, r14
call sym.fread
mov rcx, r12
mov rbx, rax
call sym.fclose
xor eax, eax
cmp rdi, rbx
jne 0x1400100b8
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
ret
mov eax, 0x4e
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
ret
call sym.fclose
mov eax, 0x4e
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
ret
mov eax, 0x53
jmp 0x1400100a4

Function at 0x140010100
Capabilities:
Write file on windows

Disassembly:
push r13
push r12
push rbx
sub rsp, 0x20
mov r13, rcx
mov rbx, rdx
lea rdx, [0x1401d00e7]
mov rcx, r8
call sym.fopen
mov r12, rax
test rax, rax
je 0x140010150
mov r9, rax
mov r8, rbx
mov edx, 1
mov rcx, r13
call sym.fwrite
mov rcx, r12
call sym.fclose
xor eax, eax
add rsp, 0x20
pop rbx
pop r12
pop r13
ret
mov eax, 0x4f
add rsp, 0x20
pop rbx
pop r12
pop r13
ret
Function at 0x140011990
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
mov r10, rdx
cmp rdx, 7
jbe 0x140011b20
lea rax, [rdx - 8]
lea r14, [0x1401d25e0]
shr rax, 3
lea r13, [0x1401d29e0]
lea r12, [0x1401d2de0]
lea r9, [rcx + rax*8 + 8]
lea rbp, [0x1401d31e0]
mov eax, 0xffffffff
lea rdi, [0x1401d35e0]
lea rsi, [0x1401d19e0]
lea r11, [0x1401d21e0]
nop dword [rax]
movzx r15d, byte [rcx + 5]
movzx edx, byte [rcx + 4]
movzx ebx, ah
mov r8d, eax
shr r8d, 0x18
xor r8b, byte [rcx + 3]
add rcx, 8
mov edx, dword [r13 + rdx*4]
xor edx, dword [r12 + r15*4]
movzx r8d, r8b
movzx r15d, byte [rcx - 2]
xor edx, dword [rbp + r15*4]
movzx r15d, byte [rcx - 1]
xor edx, dword [rdi + r15*4]
movzx r15d, byte [rcx - 8]
xor r15d, eax
shr eax, 0x10
xor al, byte [rcx - 6]
movzx r15d, r15b
movzx eax, al
xor edx, dword [rsi + r15*4]
mov r15d, ebx
xor r15b, byte [rcx - 7]
movzx r15d, r15b
lea rbx, [0x1401d1de0]
xor edx, dword [rbx + r15*4]
xor edx, dword [r11 + rax*4]
mov eax, dword [r14 + r8*4]
xor eax, edx
cmp rcx, r9
jne 0x1400119f0
and r10d, 7
test r10, r10
je 0x140011b10
movzx ecx, byte [r9]
lea rdx, [0x1401d35e0]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [rdx + rcx*4]
cmp r10, 1
je 0x140011b10
movzx ecx, byte [r9 + 1]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [rdx + rcx*4]
cmp r10, 2
je 0x140011b10
movzx ecx, byte [r9 + 2]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [rdx + rcx*4]
cmp r10, 3
je 0x140011b10
movzx ecx, byte [r9 + 3]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [rdx + rcx*4]
cmp r10, 4
je 0x140011b10
movzx ecx, byte [r9 + 4]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [rdx + rcx*4]
cmp r10, 5
je 0x140011b10
movzx ecx, byte [r9 + 5]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [rdx + rcx*4]
cmp r10, 6
je 0x140011b10
movzx ecx, byte [r9 + 6]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [rdx + rcx*4]
not eax
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov r9, rcx
mov eax, 0xffffffff
jmp 0x140011a6d
Function at 0x14001cf90
Capabilities:
Write file on windows

Disassembly:
push r14
push r13
push r12
push rbx
sub rsp, 0x58
mov eax, dword [rsp + 0xa8]
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0xa0]
mov r10, rdx
mov r13, rcx
mov dword [rsp + 0x20], r9d
lea rdx, [rsp + 0x48]
mov r9d, r8d
lea rcx, [rsp + 0x40]
mov dword [rsp + 0x28], eax
mov r8, r10
call sym.lodepng_encode_memory
mov r12d, eax
test eax, eax
je 0x14001cff8
mov r14, qword [rsp + 0x40]
mov rcx, r14
call sym.free
mov eax, r12d
add rsp, 0x58
pop rbx
pop r12
pop r13
pop r14
ret
mov rcx, r13
mov rbx, qword [rsp + 0x48]
mov r14, qword [rsp + 0x40]
lea rdx, [0x1401d00e7]
call sym.fopen
mov r13, rax
test rax, rax
je 0x14001d040
mov rcx, r14
mov r9, rax
mov r8, rbx
mov edx, 1
call sym.fwrite
mov rcx, r13
call sym.fclose
jmp 0x14001cfdd
mov r12d, 0x4f
jmp 0x14001cfdd

Function at 0x14001d050
Capabilities:
Write file on windows

Disassembly:
push r14
push r13
push r12
push rbx
sub rsp, 0x58
mov dword [rsp + 0x20], r9d
mov r10, rdx
mov r9d, r8d
mov r13, rcx
mov dword [rsp + 0x30], 8
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x40]
mov r8, r10
mov dword [rsp + 0x28], 6
call sym.lodepng_encode_memory
mov r12d, eax
test eax, eax
je 0x14001d0b0
mov r14, qword [rsp + 0x40]
mov rcx, r14
call sym.free
mov eax, r12d
add rsp, 0x58
pop rbx
pop r12
pop r13
pop r14
ret
mov rcx, r13
mov rbx, qword [rsp + 0x48]
mov r14, qword [rsp + 0x40]
lea rdx, [0x1401d00e7]
call sym.fopen
mov r13, rax
test rax, rax
je 0x14001d0f0
mov rcx, r14
mov r9, rax
mov r8, rbx
mov edx, 1
call sym.fwrite
mov rcx, r13
call sym.fclose
jmp 0x14001d097
mov r12d, 0x4f
jmp 0x14001d097

Function at 0x14001d100
Capabilities:
Write file on windows

Disassembly:
push r14
push r13
push r12
push rbx
sub rsp, 0x58
mov dword [rsp + 0x20], r9d
mov r10, rdx
mov r9d, r8d
mov r13, rcx
mov dword [rsp + 0x30], 8
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x40]
mov r8, r10
mov dword [rsp + 0x28], 2
call sym.lodepng_encode_memory
mov r12d, eax
test eax, eax
je 0x14001d160
mov r14, qword [rsp + 0x40]
mov rcx, r14
call sym.free
mov eax, r12d
add rsp, 0x58
pop rbx
pop r12
pop r13
pop r14
ret
mov rcx, r13
mov rbx, qword [rsp + 0x48]
mov r14, qword [rsp + 0x40]
lea rdx, [0x1401d00e7]
call sym.fopen
mov r13, rax
test rax, rax
je 0x14001d1a0
mov rcx, r14
mov r9, rax
mov r8, rbx
mov edx, 1
call sym.fwrite
mov rcx, r13
call sym.fclose
jmp 0x14001d147
mov r12d, 0x4f
jmp 0x14001d147
Function at 0x1400229e0
Capabilities:
Read file on windows

Disassembly:
push r12
sub rsp, 0x20
mov rax, qword [rcx + 0x40]
mov r12, rcx
test rax, rax
je 0x140022a70
mov rdx, qword [rcx + 0x50]
cmp rax, rdx
jb 0x140022a20
mov dword [r12 + 0x98], 1
mov dword [r12 + 0x9c], 0x1e
xor eax, eax
add rsp, 0x20
pop r12
ret
lea rcx, [rax + 1]
mov qword [r12 + 0x40], rcx
cmp byte [rax], 0x4f
jne 0x140022a07
cmp rdx, rcx
jbe 0x1400229fb
lea rax, [rcx + 1]
mov qword [r12 + 0x40], rax
cmp byte [rcx], 0x67
jne 0x140022a07
cmp rdx, rax
jbe 0x1400229fb
lea rcx, [rax + 1]
mov qword [r12 + 0x40], rcx
cmp byte [rax], 0x67
jne 0x140022a07
cmp rdx, rcx
jbe 0x1400229fb
lea rax, [rcx + 1]
mov qword [r12 + 0x40], rax
movzx eax, byte [rcx]
jmp 0x140022af9
mov rcx, qword [rcx + 0x30]
call sym.fgetc
cmp eax, 0xffffffff
je 0x1400229fb
cmp al, 0x4f
jne 0x140022a07
mov rcx, qword [r12 + 0x40]
test rcx, rcx
jne 0x140022bc5
mov rcx, qword [r12 + 0x30]
call sym.fgetc
cmp eax, 0xffffffff
je 0x1400229fb
cmp al, 0x67
jne 0x140022a07
mov rax, qword [r12 + 0x40]
test rax, rax
jne 0x140022bb1
mov rcx, qword [r12 + 0x30]
call sym.fgetc
cmp eax, 0xffffffff
je 0x1400229fb
cmp al, 0x67
jne 0x140022a07
mov rcx, qword [r12 + 0x40]
test rcx, rcx
jne 0x140022bbb
mov rcx, qword [r12 + 0x30]
call sym.fgetc
cmp eax, 0xffffffff
je 0x1400229fb
cmp al, 0x53
jne 0x140022a07
cmp byte [r12 + 0x6e5], 0
mov rdx, qword [r12 + 0x40]
je 0x140022b2d
cmp byte [r12 + 0x5c], 0
jne 0x140022b2d
test rdx, rdx
je 0x140022b98
mov eax, edx
sub eax, dword [r12 + 0x48]
sub eax, 4
mov dword [r12 + 0x64], eax
test rdx, rdx
je 0x140022b80
cmp qword [r12 + 0x50], rdx
ja 0x140022b58
mov dword [r12 + 0x98], 1
mov rcx, r12
add rsp, 0x20
pop r12
jmp sym.start_page_no_capturepattern.part.0
lea rax, [rdx + 1]
mov qword [r12 + 0x40], rax
movzx eax, byte [rdx]
test al, al
je 0x140022b45
mov dword [r12 + 0x9c], 0x1f
xor eax, eax
add rsp, 0x20
pop r12
ret
mov rcx, qword [r12 + 0x30]
call sym.fgetc
cmp eax, 0xffffffff
jne 0x140022b64
jmp 0x140022b39
mov rcx, qword [r12 + 0x30]
call sym.ftell
mov rdx, qword [r12 + 0x40]
sub eax, dword [r12 + 0x38]
jmp 0x140022b25
mov rdx, qword [r12 + 0x50]
jmp 0x140022a41
mov rdx, qword [r12 + 0x50]
jmp 0x140022a54
mov rdx, qword [r12 + 0x50]
jmp 0x140022a2e