joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100005238
Capabilities:
Delete registry value
Set registry value

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 r12
push r13
push r14
sub rsp, 0x30
mov eax, ecx
mov r12, r9
mov r13, r8
sub eax, 0x11
mov r14, rdx
mov ebp, ecx
je 0x100005282
cmp eax, 1
je 0x100005273
xor eax, eax
jmp 0x1000053d9
call qword [sym.imp.KERNEL32.dll_GetVersion]
lea rbx, [0x100002390]
jmp 0x10000528f
call qword [sym.imp.KERNEL32.dll_GetVersion]
lea rbx, [0x1000023a0]
mov edi, 0x80000000
cmp eax, edi
sbb esi, esi
and esi, 6
add esi, 1
call qword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, edi
jae 0x100005306
mov eax, dword [rsp + 0x70]
mov r8d, ebp
mov rdx, r13
cmp eax, 2
mov rcx, r14
jle 0x1000052e7
mov r9, r12
mov dword [rsp + 0x20], eax
call qword [sym.imp.SETUPAPI.dll_SetupDiSetDeviceRegistryPropertyA]
test eax, eax
jne 0x1000053d4
lea rdx, [0x1000023b0]
mov r8, rbx
lea rcx, [0x1000023d0]
call fcn.100007a84
jmp 0x10000526c
and dword [rsp + 0x20], 0
xor r9d, r9d
call qword [sym.imp.SETUPAPI.dll_SetupDiSetDeviceRegistryPropertyA]
test eax, eax
jne 0x1000053d4
lea rdx, [0x1000023f0]
jmp 0x1000052d6
cmp byte [r12], 0
mov rdx, r12
je 0x10000532d
cmp byte [rdx], 0x2c
jne 0x100005318
mov byte [rdx], 0
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rdx
repne scasb al, byte [rdi]
not rcx
add rdx, rcx
cmp byte [rdx], al
jne 0x100005310
xor r9d, r9d
mov rdx, r13
mov rcx, r14
lea r8d, [r9 + 1]
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], 1
call qword [sym.imp.SETUPAPI.dll_SetupDiOpenDevRegKey]
cmp rax, 0xffffffffffffffff
mov rdi, rax
jne 0x10000536c
lea r8, [0x100002410]
lea rdx, [0x100001840]
jmp 0x1000052d9
mov eax, dword [rsp + 0x70]
mov rdx, rbx
mov rcx, rdi
cmp eax, 3
jle 0x1000053b8
mov dword [rsp + 0x28], eax
mov r9d, esi
xor r8d, r8d
mov qword [rsp + 0x20], r12
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x1000053cb
lea rdx, [0x1000023b0]
lea rcx, [0x1000023d0]
mov r8, rbx
call fcn.100007a84
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x10000526c
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
je 0x1000053cb
lea rdx, [0x1000023f0]
jmp 0x10000539b
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x30
pop r14
pop r13
pop r12
ret

Function at 0x100005c64
Capabilities:
Delete registry value

Disassembly:
push rbx
sub rsp, 0x30
xor r9d, r9d
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], 1
lea r8d, [r9 + 1]
call qword [sym.imp.SETUPAPI.dll_SetupDiOpenDevRegKey]
test rax, rax
mov rbx, rax
je 0x100005cd6
lea rdx, [0x100002680]
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
jne 0x100005ccd
lea r8, [0x100002680]
lea rdx, [0x100002630]
lea rcx, [0x100002658]
call fcn.100007b04
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
jmp 0x100005cd8
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
add rsp, 0x30
pop rbx
ret
Function at 0x100006630
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov dword [rax + 0x20], r9d
push rdi
sub rsp, 0x40
and qword [rax - 0x10], 0
mov rdi, r8
mov rbx, rcx
mov r8d, 0x104
xor edx, edx
mov rcx, rdi
mov dword [rax + 0x20], r8d
xor esi, esi
call sub.msvcrt.dll_memset
lea r11, [rsp + 0x38]
mov r9d, 0xf003f
xor r8d, r8d
mov rdx, rbx
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], r11
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1000066d4
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x68]
lea r9, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rdx, [0x1000023a0]
xor r8d, r8d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1000066d4
lea esi, [rax + 1]
cmp dword [rsp + 0x30], esi
jne 0x1000066d4
jmp 0x1000066cf
cmp byte [rdi], 0x2c
jne 0x1000066cc
mov byte [rdi], 0
add rdi, rsi
cmp byte [rdi], 0
jne 0x1000066c4
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x1000066e4
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, qword [rsp + 0x50]
mov eax, esi
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret

Function at 0x1000066fc
Capabilities:
Delete registry value
Set registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0x40
and qword [rax - 0x18], 0
mov esi, r9d
mov rbx, r8
mov rbp, rcx
xor edi, edi
call qword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jb 0x10000674e
cmp byte [rbx], dil
mov rax, rbx
je 0x10000674e
lea rcx, [rax + 1]
cmp byte [rcx], dil
je 0x10000674e
cmp byte [rax], dil
jne 0x100006746
mov byte [rax], 0x2c
cmp byte [rcx], dil
mov rax, rcx
jne 0x100006735
lea rax, [rsp + 0x30]
mov r9d, 0xf003f
xor r8d, r8d
mov rdx, rbp
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1000067e4
cmp esi, 2
jle 0x1000067c8
call qword [sym.imp.KERNEL32.dll_GetVersion]
mov rcx, qword [rsp + 0x30]
xor r8d, r8d
cmp eax, 0x80000000
mov dword [rsp + 0x28], esi
lea rdx, [0x1000023a0]
mov qword [rsp + 0x20], rbx
jae 0x1000067b2
lea r9d, [r8 + 7]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x1000067e4
lea edi, [rax + 1]
jmp 0x1000067e4
mov ebx, 1
mov r9d, ebx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x1000067e4
mov edi, ebx
jmp 0x1000067e4
mov rcx, qword [rsp + 0x30]
lea rdx, [0x1000023a0]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov ebx, 1
test eax, eax
cmove edi, ebx
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x1000067f4
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov eax, edi
add rsp, 0x40
pop rdi
ret
Function at 0x100007514
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r13
sub rsp, 0x3b0
mov rax, qword [0x10000a100]
xor rax, rsp
mov qword [rsp + 0x3a0], rax
mov rbp, rcx
call qword [sym.imp.KERNEL32.dll_GetVersion]
lea rcx, [0x100002a08]
cmp eax, 0x80000000
lea rax, [rsp + 0x48]
lea rbx, [0x1000029b8]
cmovae rbx, rcx
mov r9d, 0xf003f
xor r8d, r8d
mov rdx, rbx
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x100007734
mov r13d, 0x104
lea rcx, [rsp + 0x70]
xor edx, edx
mov r8, r13
xor esi, esi
mov dword [rsp + 0x40], r13d
call sub.msvcrt.dll_memset
lea rdx, [rsp + 0x68]
mov qword [rsp + 0x38], rdx
and qword [rsp + 0x30], rsi
and qword [rsp + 0x28], rsi
and qword [rsp + 0x20], rsi
xor edx, edx
jmp 0x10000770c
lea rcx, [rsp + 0x70]
call qword [sym.imp.msvcrt.dll__strlwr]
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rbx
repne scasb al, byte [rdi]
lea rdi, [rsp + 0x70]
not rcx
lea rdx, [rcx - 1]
or rcx, 0xffffffffffffffff
repne scasb al, byte [rdi]
not rcx
sub rcx, 1
add rdx, rcx
cmp rdx, r13
jae 0x1000076d7
lea rcx, [rsp + 0x180]
mov r8, r13
xor edx, edx
call sub.msvcrt.dll_memset
lea r9, [rsp + 0x70]
lea rdx, [0x1000029e0]
lea rcx, [rsp + 0x290]
mov r8, rbx
call qword [sym.imp.msvcrt.dll_sprintf]
lea rdx, [rsp + 0x50]
mov r9d, 0xf003f
mov qword [rsp + 0x20], rdx
lea rdx, [rsp + 0x290]
xor r8d, r8d
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1000076d7
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x40]
lea r9, [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x180]
lea rdx, [0x100002a34]
xor r8d, r8d
mov dword [rsp + 0x40], r13d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rax, qword [rbp]
and qword [rsp + 0x58], 0
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x58]
lea r9, [rsp + 0x70]
lea r8, [rsp + 0x180]
lea rdx, [rsp + 0x290]
mov rcx, rbp
mov dword [rsp + 0x28], 1
mov qword [rsp + 0x20], rax
call fcn.100007768
lea rcx, [rsp + 0x70]
mov r8, r13
xor edx, edx
call sub.msvcrt.dll_memset
add esi, 1
lea rax, [rsp + 0x68]
mov qword [rsp + 0x38], rax
and qword [rsp + 0x30], 0
and qword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
mov dword [rsp + 0x40], r13d
mov edx, esi
mov rcx, qword [rsp + 0x48]
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x1000075c2
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
mov rcx, qword [rsp + 0x3a0]
xor rcx, rsp
call fcn.100008060
lea r11, [rsp + 0x3b0]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r13
pop rdi
pop rsi
ret
Function at 0x100007974
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x20], rsi
push rdi
sub rsp, 0x30
mov rdi, rdx
lea rbx, [rcx + 0x314]
lea rax, [r11 + 8]
mov rsi, rcx
mov qword [r11 - 0x10], rax
lea r9, [r11 + 0x18]
lea rdx, [0x1000023a0]
xor r8d, r8d
mov rcx, rdi
mov qword [r11 - 0x18], rbx
mov dword [rsp + 0x40], 0x103
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x1000079d0
xor edx, edx
mov r8d, 0x104
mov rcx, rbx
call sub.msvcrt.dll_memset
lea rax, [rsp + 0x40]
lea rbx, [rsi + 0x418]
lea r9, [rsp + 0x50]
mov qword [rsp + 0x28], rax
lea rdx, [0x100002390]
xor r8d, r8d
mov rcx, rdi
mov qword [rsp + 0x20], rbx
mov dword [rsp + 0x40], 0x103
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x100007a1a
xor edx, edx
mov r8d, 0x104
mov rcx, rbx
call sub.msvcrt.dll_memset
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
mov eax, 1
add rsp, 0x30
pop rdi
ret

Function at 0x1000082d0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
cmp rcx, rdx
je 0x10000831a
cmp rcx, 0xffffffffffffffff
je 0x10000831a
cmp word [rcx], 0x5a4d
jne 0x100008312
cmp dword [rcx + 0x3c], edx
jl 0x100008312
cmp dword [rcx + 0x3c], 0x10000000
jae 0x100008312
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x10000831a
mov rax, rdx
add rsp, 0x18
ret

Function at 0x1000084d7
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x10000a100]
jne 0x10000807a
rol rcx, 0x10
test cx, 0xffff
jne 0x100008076
repz ret
ror rcx, 0x10
jmp 0x100008430
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x10000a720]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x10000a818]
mov qword [rsp + 0x58], rax
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x1000084b5
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x10000a720]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x1000084d7
mov rax, qword [rsp + 0x88]
mov qword [0x10000a818], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x10000a7b8], rax
mov rax, qword [0x10000a818]
mov qword [0x10000a690], rax
mov rax, qword [rsp + 0x90]
mov qword [0x10000a7a0], rax
mov dword [0x10000a680], 0xc0000409
mov dword [0x10000a684], 1
mov rax, qword [0x10000a100]
mov qword [rsp + 0x68], rax
mov rax, qword [0x10000a108]
mov qword [rsp + 0x70], rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x100001390]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret
Function at 0x140954aa8
Capabilities:
Decompress data using aplib

Disassembly:
call 0x140954c2f
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 0x140954ad9
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140954abf
add dl, dl
jne 0x140954ae6
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140954b46
xor eax, eax
add dl, dl
jne 0x140954af5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140954bfd
add dl, dl
jne 0x140954b06
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140954b13
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140954b20
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140954b2d
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140954b3a
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140954ace
mov eax, 1
add dl, dl
jne 0x140954b56
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140954b63
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140954b4b
sub eax, ebx
mov ebx, 1
jne 0x140954b9c
mov ecx, 1
add dl, dl
jne 0x140954b7e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140954b8b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140954b73
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140954ace
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140954bb8
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140954bc5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140954bad
cmp eax, 0x7d00
jae 0x140954beb
cmp eax, 0x500
jb 0x140954be6
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140954ace
cmp eax, 0x7f
ja 0x140954bee
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140954ace
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140954c22
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 0x140954ace
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x7ff6c5921bcc
Capabilities:
Parse pe header

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

Disassembly:
sub rsp, 0x28
mov rax, qword [0x1400bd2d0]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x1400bd2e0]
mov dword [rax], 1
mov rax, qword [0x1400bd2f0]
mov dword [rax], 1
mov rax, qword [0x1400bd280]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x1400bd2c0]
mov dword [0x1400e300c], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010b0
mov ecx, 2
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x1400bd3b0]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x1400bd390]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x1400bc6c0]
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 [dbg._matherr]
call dbg.__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 0x14000a960
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call dbg.__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 dbg.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop dword [rax]
Function at 0x14000a9d0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1400e30b4]
mov rbx, rcx
test esi, esi
jle 0x14000ab00
mov rax, qword [0x1400e30b8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14000aa1b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x14000aaa5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x14000aa00
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x14000ab22
mov rax, qword [0x1400e30b8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call dbg._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1400e30b8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14000ab07
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14000aa9e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x14000aab0
add dword [0x1400e30b4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x1400e30b8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000aa9e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
nop dword [rax]
xor esi, esi
jmp 0x14000aa28
mov rax, qword [0x1400e30b8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call dbg.__report_error
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x14000b090
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x1400e3120]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400e3100]
test rbx, rbx
je 0x14000b0ec
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 0x14000b0e3
test rsi, rsi
je 0x14000b0e3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x14000b0c8
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 0x14000b300
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x14000b318
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x14000b320
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret
Function at 0x14000b330
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r8d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
test r8w, r8w
je 0x14000b37d
lea ecx, [r8 - 1]
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp rdx, r8
jb 0x14000b374
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x14000b37f
add rax, 0x28
cmp rax, r9
jne 0x14000b360
xor eax, eax
ret

Function at 0x14000b380
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x14000b410
mov rdx, qword [0x1400bd280]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x14000b3fe
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x14000b3fe
cmp word [rax + 0x18], 0x20b
jne 0x14000b3fe
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x14000b410
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x14000b3e9
add rbx, 0x28
cmp rbx, rdi
je 0x14000b410
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x14000b3e0
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

Function at 0x14000b420
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1400bd280]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x14000b440
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x14000b448
ret
cmp word [r8 + 0x18], 0x20b
jne 0x14000b440
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14000b49d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x14000b494
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x14000b440
add rax, 0x28
cmp rax, r9
jne 0x14000b480
xor eax, eax
ret

Function at 0x14000b4a0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400bd280]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x14000b4bf
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x14000b4c8
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x14000b4bf
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x14000b4e0
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x1400bd280]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x14000b500
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x14000b508
ret
cmp word [rdx + 0x18], 0x20b
jne 0x14000b500
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x14000b550
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x14000b547
test rcx, rcx
je 0x14000b500
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x14000b538
xor eax, eax
ret