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

Disassembly:
push rbx
movzx r9d, byte [rcx]
lea r8, [rcx + 1]
mov r10d, 0xffffffff
mov rbx, rcx
mov eax, r10d
test r9b, r9b
je 0x18001aa22
lea r11, [0x1800ab790]
cmp r9b, 0x23
jne 0x18001aa05
cmp byte [r8], r9b
jne 0x18001aa05
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 0x18001a9f2
mov r11, qword [0x1800c8be0]
mov r10, qword [r11 + 0x5598]
test r10, r10
je 0x18001aa69
lea r9, [r10 + 4]
test r9, r9
je 0x18001aa69
not eax
cmp dword [r9], eax
je 0x18001aa72
movsxd r8, dword [r9 - 4]
lea rdx, [r10 + 4]
movsxd rcx, dword [r11 + 0x5590]
add r8, r9
xor r9d, r9d
add rdx, rcx
cmp r8, rdx
cmovne r9, r8
test r9, r9
jne 0x18001aa40
mov rcx, rbx
pop rbx
jmp fcn.18001a8e0
mov rax, r9
pop rbx
ret

Function at 0x18001aa80
Capabilities:
Hash data with crc32

Disassembly:
sub rsp, 8
movzx r9d, byte [rcx]
lea r8, [rcx + 1]
mov r10, qword [0x1800c8be0]
mov r11d, 0xffffffff
mov eax, r11d
test r9b, r9b
je 0x18001aae3
mov qword [rsp], rbx
lea rbx, [0x1800ab790]
nop dword [rax]
cmp r9b, 0x23
jne 0x18001aac3
cmp byte [r8], r9b
jne 0x18001aac3
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 0x18001aab0
mov rbx, qword [rsp]
movsxd rcx, dword [r10 + 0x5580]
xor r8d, r8d
not eax
test ecx, ecx
jle 0x18001ab17
mov r10, qword [r10 + 0x5588]
mov r9, rcx
mov edx, r8d
lea rcx, [r10 + 8]
cmp dword [rcx], eax
je 0x18001ab1e
inc r8d
inc rdx
add rcx, 0x48
cmp rdx, r9
jl 0x18001ab04
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 0x140001200
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.140001450
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x70]
cmp qword [rsp + 0x20], rax
jbe 0x14000131a
mov rax, qword [section..data]
cmp qword [rsp + 0x20], rax
jb 0x140001264
mov rax, qword [0x140008008]
cmp qword [rsp + 0x20], rax
ja 0x140001264
mov rax, qword [rsp + 0x20]
sub rax, 0x8000000
mov qword [rsp + 0x20], rax
jmp 0x140001226
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 0x140001295
jmp 0x14000131a
cmp dword [rsp + 0x50], 0x10000
jne 0x1400012fd
cmp qword [rsp + 0x48], 0x10000
jb 0x1400012fd
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 0x1400012db
mov rax, qword [rsp + 0x28]
jmp 0x14000131c
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
jne 0x1400012eb
xor eax, eax
jmp 0x14000131c
mov rax, qword [rsp + 0x20]
sub rax, 0x10000
mov qword [rsp + 0x20], rax
jmp 0x140001315
mov rax, qword [rsp + 0x38]
sub rax, 0x10000
mov rcx, rax
call fcn.140001450
mov qword [rsp + 0x20], rax
jmp 0x140001226
xor eax, eax
add rsp, 0x68
ret

Function at 0x140001330
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.140001490
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x78]
cmp qword [rsp + 0x20], rax
jae 0x140001446
mov rax, qword [section..data]
cmp qword [rsp + 0x20], rax
jb 0x14000138b
mov rax, qword [0x140008008]
cmp qword [rsp + 0x20], rax
ja 0x14000138b
mov rax, qword [rsp + 0x20]
add rax, 0x8000000
mov qword [rsp + 0x20], rax
jmp 0x14000134d
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 0x1400013bc
jmp 0x140001446
cmp dword [rsp + 0x50], 0x10000
jne 0x140001424
cmp qword [rsp + 0x48], 0x10000
jb 0x140001424
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 0x140001402
mov rax, qword [rsp + 0x28]
jmp 0x140001448
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
jne 0x140001412
xor eax, eax
jmp 0x140001448
mov rax, qword [rsp + 0x20]
add rax, 0x10000
mov qword [rsp + 0x20], rax
jmp 0x140001441
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
mov rcx, rax
call fcn.140001490
mov qword [rsp + 0x20], rax
jmp 0x14000134d
xor eax, eax
add rsp, 0x68
ret
Function at 0x1400014e0
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.140001a70
mov qword [rsp + 0x28], 0
cmp qword [0x140008168], 0
jne 0x140001528
cmp qword [0x140008160], 0
je 0x140001528
mov rax, qword [0x140008160]
mov qword [0x140008168], rax
cmp qword [0x140008168], 0
je 0x1400015ce
mov rax, qword [0x140008168]
cmp qword [rax + 0x10], 0
je 0x1400015ce
mov rax, qword [0x140008168]
mov rcx, qword [rsp + 0x38]
cmp qword [rax + 0x10], rcx
jb 0x1400015ce
mov rax, qword [0x140008168]
mov rcx, qword [rsp + 0x30]
cmp qword [rax + 0x10], rcx
ja 0x1400015ce
mov rax, qword [0x140008168]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x38]
cmp qword [rsp + 0x28], rax
jb 0x140001594
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x28], rax
jbe 0x14000159b
xor eax, eax
jmp 0x140001745
mov rax, qword [0x140008168]
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 0x140001745
mov rax, qword [0x140008160]
mov qword [0x140008168], rax
jmp 0x1400015f0
mov rax, qword [0x140008168]
mov rax, qword [rax + 8]
mov qword [0x140008168], rax
cmp qword [0x140008168], 0
je 0x14000163d
cmp qword [0x140008168], 0
je 0x14000163b
mov rax, qword [0x140008168]
cmp qword [rax + 0x10], 0
je 0x14000163b
mov rax, qword [0x140008168]
mov rcx, qword [rsp + 0x38]
cmp qword [rax + 0x10], rcx
jb 0x14000163b
mov rax, qword [0x140008168]
mov rcx, qword [rsp + 0x30]
cmp qword [rax + 0x10], rcx
ja 0x14000163b
jmp 0x14000156c
jmp 0x1400015de
mov rax, qword [rsp + 0x60]
and rax, 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.140001750
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
je 0x140001743
mov rax, qword [rsp + 0x48]
mov qword [0x140008168], rax
mov rax, qword [0x140008168]
mov dword [rax], 0x52727464
mov rax, qword [0x140008168]
mov qword [rax + 0x10], 0
mov rax, qword [0x140008168]
mov rcx, qword [0x140008160]
mov qword [rax + 8], rcx
mov rax, qword [0x140008168]
mov qword [0x140008160], rax
mov qword [rsp + 0x40], 0
mov rax, qword [0x140008168]
add rax, 0x60
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x2a8
jmp 0x1400016f4
mov eax, dword [rsp + 0x20]
dec eax
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 1
jle 0x14000172e
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 0x1400016ea
mov rax, qword [0x140008168]
mov rcx, qword [rsp + 0x40]
mov qword [rax + 0x10], rcx
jmp 0x14000156c
xor eax, eax
add rsp, 0x58
ret
Function at 0x140002460
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 0x1400024a7
xor al, al
jmp 0x140002549
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 0x1400024d1
xor al, al
jmp 0x140002549
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 0x140002541
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 0x140002541
mov al, 1
jmp 0x140002549
jmp 0x140002547
xor al, al
add rsp, 0x78
ret

Function at 0x140002850
Capabilities:
Allocate or change rwx memory

Disassembly:
sub rsp, 0x38
mov rax, qword [0x140008160]
mov qword [rsp + 0x28], rax
jmp 0x140002870
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 8]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x14000289f
lea r9, [rsp + 0x20]
mov r8d, 0x40
mov edx, 0x10000
mov rcx, qword [rsp + 0x28]
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
jne 0x14000289d
call sub.KERNEL32.dll_GetLastError
jmp 0x1400028a1
jmp 0x140002862
xor eax, eax
add rsp, 0x38
ret
Function at 0x140002f60
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov dword [rsp + 0x20], 0
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [0x140008178], eax
je 0x140002f8d
mov eax, 0x10dd
jmp 0x1400031a6
cmp dword [0x14000817c], 0
je 0x140002fa1
mov eax, dword [0x14000817c]
jmp 0x1400031a6
cmp qword [rsp + 0x78], 0
jne 0x140002fb3
mov eax, 0x57
jmp 0x1400031a6
cmp qword [rsp + 0x70], 0
jne 0x140002fc5
mov eax, 6
jmp 0x1400031a6
mov rax, qword [rsp + 0x70]
cmp qword [rax], 0
jne 0x140002ff7
mov dword [rsp + 0x20], 6
mov eax, dword [rsp + 0x20]
mov dword [0x14000817c], eax
mov rax, qword [rsp + 0x70]
mov qword [0x140008180], rax
mov eax, dword [rsp + 0x20]
jmp 0x1400031a6
mov ecx, 0x30
call fcn.140004f80
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
jne 0x140003069
mov dword [rsp + 0x20], 8
mov eax, dword [rsp + 0x20]
mov dword [0x14000817c], eax
cmp qword [rsp + 0x30], 0
je 0x140003054
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x50], rax
mov edx, 0x30
mov rcx, qword [rsp + 0x50]
call fcn.140004fbc
mov qword [rsp + 0x30], 0
mov rax, qword [rsp + 0x70]
mov qword [0x140008180], rax
mov eax, dword [rsp + 0x20]
jmp 0x1400031a6
xor edx, edx
mov rax, qword [rsp + 0x70]
mov rcx, qword [rax]
call fcn.140002f30
mov qword [rsp + 0x38], rax
xor edx, edx
mov rcx, qword [rsp + 0x78]
call fcn.140002f30
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x38]
movzx eax, byte [rax + 0x3e]
mov dword [rsp + 0x24], eax
movsxd rax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x38]
mov rcx, qword [rcx + 0x48]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
cmp dword [rsp + 0x24], 0
je 0x1400030c6
movsxd rax, dword [rsp + 0x24]
cmp rax, 0x1e
jbe 0x1400030e3
mov dword [rsp + 0x20], 9
cmp dword [0x140008170], 0
je 0x1400030de
jmp 0x14000302a
jmp 0x140003020
mov rax, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x78]
cmp qword [rax + 0x50], rcx
je 0x140003110
mov dword [rsp + 0x20], 9
cmp dword [0x140008170], 0
je 0x14000310b
jmp 0x14000302a
jmp 0x140003020
mov dword [rsp + 0x28], 0
movsxd rax, dword [rsp + 0x24]
lea r9, [rsp + 0x28]
mov r8d, 0x40
mov rdx, rax
mov rcx, qword [rsp + 0x40]
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
jne 0x140003147
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
jmp 0x140003020
mov rax, qword [rsp + 0x30]
mov dword [rax + 8], 1
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x70]
mov qword [rax + 0x10], rcx
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
mov qword [rax + 0x20], rcx
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x40]
mov qword [rax + 0x18], rcx
mov rax, qword [rsp + 0x30]
mov ecx, dword [rsp + 0x28]
mov dword [rax + 0x28], ecx
mov rax, qword [rsp + 0x30]
mov rcx, qword [0x140008190]
mov qword [rax], rcx
mov rax, qword [rsp + 0x30]
mov qword [0x140008190], rax
xor eax, eax
add rsp, 0x68
ret
Function at 0x1400031b0
Capabilities:
Resume thread

Disassembly:
sub rsp, 0x68
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [0x140008178], eax
je 0x1400031cb
mov eax, 0x10dd
jmp 0x1400032f0
mov rax, qword [0x140008190]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x140003275
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 0x140003240
mov rax, qword [rsp + 0x28]
cmp qword [rax + 0x20], 0
je 0x140003240
mov rax, qword [rsp + 0x28]
mov rcx, qword [rax + 0x20]
call fcn.140001bb0
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.140004fbc
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x28], rax
jmp 0x1400031d7
mov qword [0x140008190], 0
call fcn.140002610
mov rax, qword [0x140008188]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x1400032d9
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.140004fbc
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x30], rax
jmp 0x140003291
mov qword [0x140008188], 0
mov dword [0x140008178], 0
xor eax, eax
add rsp, 0x68
ret
Function at 0x140003820
Capabilities:
Suspend thread

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x48
cmp dword [0x14000817c], 0
je 0x14000383d
mov eax, dword [0x14000817c]
jmp 0x140003903
call sub.KERNEL32.dll_GetCurrentThread
cmp qword [rsp + 0x50], rax
jne 0x140003850
xor eax, eax
jmp 0x140003903
mov ecx, 0x10
call fcn.140004f80
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x1400038be
mov dword [rsp + 0x20], 8
cmp qword [rsp + 0x28], 0
je 0x1400038a3
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x38], rax
mov edx, 0x10
mov rcx, qword [rsp + 0x38]
call fcn.140004fbc
mov qword [rsp + 0x28], 0
mov eax, dword [rsp + 0x20]
mov dword [0x14000817c], eax
mov qword [0x140008180], 0
mov eax, dword [rsp + 0x20]
jmp 0x140003903
mov rcx, qword [rsp + 0x50]
call sub.KERNEL32.dll_SuspendThread
cmp eax, 0xffffffff
jne 0x1400038d8
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
jmp 0x140003879
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x50]
mov qword [rax + 8], rcx
mov rax, qword [rsp + 0x28]
mov rcx, qword [0x140008188]
mov qword [rax], rcx
mov rax, qword [rsp + 0x28]
mov qword [0x140008188], rax
xor eax, eax
add rsp, 0x48
ret

Function at 0x140005528
Capabilities:
Parse pe header

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

Disassembly:
call 0x1411eb1df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x1411eb089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1411eb06f
add dl, dl
jne 0x1411eb096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1411eb0f6
xor eax, eax
add dl, dl
jne 0x1411eb0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1411eb1ad
add dl, dl
jne 0x1411eb0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1411eb0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1411eb0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1411eb0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1411eb0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1411eb07e
mov eax, 1
add dl, dl
jne 0x1411eb106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1411eb113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1411eb0fb
sub eax, ebx
mov ebx, 1
jne 0x1411eb14c
mov ecx, 1
add dl, dl
jne 0x1411eb12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1411eb13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1411eb123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1411eb07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1411eb168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1411eb175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1411eb15d
cmp eax, 0x7d00
jae 0x1411eb19b
cmp eax, 0x500
jb 0x1411eb196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1411eb07e
cmp eax, 0x7f
ja 0x1411eb19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1411eb07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1411eb1d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x1411eb07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x14000a890]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x14000a8a0]
mov dword [rax], 1
mov rax, qword [0x14000a8b0]
mov dword [rax], 1
mov rax, qword [0x14000a820]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x14000a880]
mov dword [0x14000d00c], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010b0
mov ecx, 2
call sym.__set_app_type
call sym.__p__fmode
mov rdx, qword [0x14000a960]
mov edx, dword [rdx]
mov dword [rax], edx
call sym.__p__commode
mov rdx, qword [0x14000a940]
mov edx, dword [rdx]
mov dword [rax], edx
call sym._setargv
mov rax, qword [0x14000a7d0]
cmp dword [rax], 1
je 0x1400010f8
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x140001077
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001110
cmp dx, 0x20b
jne 0x14000105a
cmp dword [rax + 0x84], 0xe
jbe 0x14000105a
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x14000105a
mov rcx, qword [sym._matherr]
call sym.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x14000105a
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x14000105a

Function at 0x140001ef0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call sym.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call sym.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop dword [rax]
Function at 0x140001f60
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14000d094]
test esi, esi
mov rbx, rcx
jle 0x140002090
mov rax, qword [0x14000d098]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140001fab
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140002035
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140001f90
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov rdi, rax
je 0x1400020b2
mov rax, qword [0x14000d098]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call sym._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14000d098]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140002097
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14000202e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140002040
add dword [0x14000d094], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov r8d, 0x40
mov eax, 4
mov rcx, qword [rsp + 0x20]
cmove r8d, eax
mov rdx, qword [rsp + 0x38]
add rbx, qword [0x14000d098]
mov r9, rbx
mov qword [rbx + 8], rcx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000202e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
nop dword [rax]
xor esi, esi
jmp 0x140001fb8
mov rax, qword [0x14000d098]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [rdi + 8]
mov r8, qword [rax + rbx + 0x18]
call sym.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call sym.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140002620
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14000d100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14000d0e0]
test rbx, rbx
je 0x14000267c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x140002673
test rsi, rsi
je 0x140002673
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140002658
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x140002890
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [sym.imp.msvcrt.dll_exit]
call qword [rax]
nop
nop

Function at 0x1400028a0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [sym.imp.msvcrt.dll__exit]
call qword [rax]
nop
nop
nop