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

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x20], rsi
mov dword [r11 + 0x18], r8d
push rdi
sub rsp, 0x30
mov rsi, rdx
lea rax, [r11 + 8]
mov rdx, qword [rcx + 0x18]
mov rdi, rcx
mov rcx, qword [rcx + 8]
mov r9d, 0x20006
xor r8d, r8d
mov qword [r11 - 0x18], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov rdx, qword [rsi]
test eax, eax
je 0x1401d4512
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1401d450e
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor eax, eax
jmp 0x1401d457b
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x50]
mov dword [rsp + 0x28], 4
mov r9d, 3
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
xor ebx, ebx
test eax, eax
sete bl
cmp dword [rdi + 0x10], 0
jne 0x1401d4550
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, qword [rsi]
sub rdx, 0x18
or ecx, 0xffffffff
lock xadd dword [rdx + 0x10], ecx
sub ecx, 1
jg 0x1401d4579
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
mov eax, ebx
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret

Function at 0x1401d4594
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
push rdi
sub rsp, 0x40
mov rdi, rdx
mov dword [rax - 0x18], 3
mov rdx, qword [rcx + 0x18]
mov ebx, r8d
mov rcx, qword [rcx + 8]
mov r9d, 0x20019
mov dword [rax + 0x20], 4
lea rax, [rax - 0x10]
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov rdx, qword [rdi]
test eax, eax
je 0x1401d45f7
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1401d4653
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
jmp 0x1401d4653
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x68]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x30]
lea rax, [rsp + 0x50]
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x1401d4626
mov dword [rsp + 0x50], ebx
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, qword [rdi]
mov ebx, dword [rsp + 0x50]
sub rdx, 0x18
or ecx, 0xffffffff
lock xadd dword [rdx + 0x10], ecx
sub ecx, 1
jg 0x1401d4653
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
mov eax, ebx
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x1401d4668
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
push rdi
sub rsp, 0x40
mov rdi, rdx
mov dword [rax - 0x18], 3
mov rdx, qword [rcx + 0x18]
mov ebx, r8d
mov rcx, qword [rcx + 8]
mov r9d, 0x20019
mov dword [rax + 0x20], 4
lea rax, [rax - 0x10]
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov rdx, qword [rdi]
test eax, eax
je 0x1401d46cb
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1401d4727
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
jmp 0x1401d4727
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x68]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x30]
lea rax, [rsp + 0x50]
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x1401d46fa
mov dword [rsp + 0x50], ebx
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, qword [rdi]
mov ebx, dword [rsp + 0x50]
sub rdx, 0x18
or ecx, 0xffffffff
lock xadd dword [rdx + 0x10], ecx
sub ecx, 1
jg 0x1401d4727
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
mov eax, ebx
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret

Function at 0x1401d473c
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
mov rdi, rdx
lea rax, [rsp + 0x40]
mov rdx, qword [rcx + 0x18]
mov r9d, 0xf003f
mov rcx, qword [rcx + 8]
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov rdx, qword [rdi]
test eax, eax
je 0x1401d4798
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1401d478b
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor eax, eax
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
and qword [rsp + 0x28], 0
xor r9d, r9d
mov rcx, qword [rsp + 0x40]
xor r8d, r8d
and qword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov rcx, qword [rsp + 0x40]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, qword [rdi]
sub rdx, 0x18
test ebx, ebx
jne 0x1401d4775
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1401d47e3
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov eax, 1
jmp 0x1401d478d
Function at 0x1401d47f0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
mov rdi, rdx
lea rax, [rsp + 0x50]
mov rdx, qword [rcx + 0x18]
mov rbx, rcx
mov rcx, qword [rcx + 8]
mov r9d, 1
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [rbx], eax
mov rdx, qword [rdi]
test eax, eax
je 0x1401d4851
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1401d4844
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor eax, eax
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
and qword [rsp + 0x28], 0
lea r9, [rsp + 0x40]
mov rcx, qword [rsp + 0x50]
xor r8d, r8d
and qword [rsp + 0x20], 0
mov dword [rsp + 0x40], 1
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov rcx, qword [rsp + 0x50]
mov dword [rbx], eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, qword [rdi]
sub rdx, 0x18
cmp dword [rbx], 0
jne 0x1401d482e
mov ebx, dword [rsp + 0x40]
or ecx, 0xffffffff
lock xadd dword [rdx + 0x10], ecx
sub ecx, 1
jg 0x1401d48ac
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
mov eax, ebx
jmp 0x1401d4846
Function at 0x1401d7068
Capabilities:
Create process on windows
Move file

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x20], rsi
mov qword [rax + 0x18], r8
mov qword [rax + 0x10], rdx
push rdi
sub rsp, 0xe0
mov rbx, r8
mov rdi, rdx
mov esi, 0x68
mov r8d, esi
xor edx, edx
lea rcx, [rsp + 0x50]
call fcn.1401d8790
mov dword [rsp + 0x50], esi
mov esi, 1
or dword [rsp + 0x8c], esi
mov word [rsp + 0x90], si
mov r8d, esi
mov rdx, qword [rbx]
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_MoveFileExA]
mov rdx, qword [rbx]
cmp dword [rdx - 8], esi
jle 0x1401d70d7
mov edx, dword [rdx - 0x10]
mov rcx, rbx
call fcn.1400035b8
lea rax, [rsp + 0xc0]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x40], rax
mov rax, qword [0x1402ab448]
mov qword [rsp + 0x38], rax
and qword [rsp + 0x30], 0
and dword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rbx]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x1401d7184
jmp 0x1401d7131
mov rdx, qword [rdi]
sub rdx, 0x18
or edi, 0xffffffff
mov eax, edi
lock xadd dword [rdx + 0x10], eax
add eax, edi
test eax, eax
jg 0x1401d7152
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rbx]
sub rdx, 0x18
mov eax, edi
lock xadd dword [rdx + 0x10], eax
add eax, edi
test eax, eax
jg 0x1401d716f
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea r11, [rsp + 0xe0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
mov ecx, esi
call fcn.1401af50c
int3
Function at 0x1401d7da0
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
xor ebx, ebx
cmp dword [0x140286bf4], ebx
je 0x1401d7dc3
cmp qword [0x140286c08], rbx
setne bl
jmp 0x1401d7eef
call fcn.1401d7f04
lea rcx, str.USER32
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rdi, rax
test rax, rax
je 0x1401d7eb4
lea rdx, [0x140241238]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140286c28], rax
test rax, rax
je 0x1401d7eb4
lea rdx, [0x140241250]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140286c20], rax
test rax, rax
je 0x1401d7eb4
lea rdx, str.MonitorFromRect
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140286c18], rax
test rax, rax
je 0x1401d7eb4
lea rdx, [0x140241278]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140286c10], rax
test rax, rax
je 0x1401d7eb4
lea rdx, [0x140241290]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140286c00], rax
test rax, rax
je 0x1401d7eb4
lea rdx, [0x1402412a8]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140286c08], rax
test rax, rax
je 0x1401d7eb4
lea rdx, str.EnumDisplayDevicesA
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140286bf8], rax
test rax, rax
je 0x1401d7eb4
mov ebx, 1
jmp 0x1401d7ee5
mov qword [0x140286c28], rbx
mov qword [0x140286c20], rbx
mov qword [0x140286c18], rbx
mov qword [0x140286c10], rbx
mov qword [0x140286c08], rbx
mov qword [0x140286c00], rbx
mov qword [0x140286bf8], rbx
mov dword [0x140286bf4], 1
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x14000e7e8
Capabilities:
Parse pe header

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0x20
mov esi, r8d
mov ebx, edx
mov r14d, ecx
test r8d, r8d
jne 0x14000e5bc
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000e5bc
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000e5bc
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000e5bc
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000e5bc
cmp dword [rcx + 0x84], 0xe
jbe 0x14000e5bc
cmp dword [rcx + 0xf8], esi
je 0x14000e5bc
mov ecx, r14d
call fcn.14000e704
mov ecx, 2
call fcn.1400138f8
nop
cmp byte [0x140b85ec0], 0
jne 0x14000e686
mov r15d, 1
mov eax, r15d
xchg dword [0x140b85eb0], eax
test ebx, ebx
jne 0x14000e62f
mov rdi, qword [0x140b82a60]
mov edx, edi
and edx, 0x3f
lea ecx, [rbx + 0x40]
sub ecx, edx
xor eax, eax
ror rax, cl
xor rax, rdi
mov rcx, qword [0x140b85eb8]
cmp rcx, rax
je 0x14000e626
xor rdi, rcx
mov ecx, edx
ror rdi, cl
mov rcx, rdi
call qword [fcn.14000659c]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call rdi
lea rcx, [0x140b85ff8]
jmp 0x14000e63b
cmp ebx, r15d
jne 0x14000e641
lea rcx, [0x140b86010]
call fcn.14000f178
nop
test ebx, ebx
jne 0x14000e658
lea rdx, [0x14001c4a0]
lea rcx, [0x14001c480]
call fcn.14000f4b0
lea rdx, [0x14001c4b0]
lea rcx, [0x14001c4a8]
call fcn.14000f4b0
movzx eax, byte [0x140b85ec0]
test esi, esi
cmove eax, r15d
mov byte [0x140b85ec0], al
jmp 0x14000e686
mov ecx, 2
call fcn.14001394c
test esi, esi
jne 0x14000e69d
mov ecx, r14d
call fcn.14000e6b8
int3
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop r15
ret
xor r8d, r8d
xor edx, edx
jmp 0x14000e54c
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x1400097f0]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x140009800]
mov dword [rax], 1
mov rax, qword [0x140009810]
mov dword [rax], 1
mov rax, qword [0x1400097a0]
cmp word [rax], 0x5a4d
jne 0x14000105e
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c8
mov rax, qword [0x1400097e0]
mov dword [0x14000c00c], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010b8
mov ecx, 2
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x1400098c0]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x1400098a0]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x140009750]
cmp dword [rax], 1
je 0x140001100
xor eax, eax
add rsp, 0x20
pop rbp
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x14000107b
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001118
cmp dx, 0x20b
jne 0x14000105e
cmp dword [rax + 0x84], 0xe
jbe 0x14000105e
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x14000105e
mov rcx, qword [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x20
pop rbp
ret
cmp dword [rax + 0x74], 0xe
jbe 0x14000105e
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x14000105e
Function at 0x140001480
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push rbp
sub rsp, 0x3a0
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x330], rcx
mov rdx, qword [rbp + 0x330]
lea rax, [rbp + 0xc0]
mov r9, rdx
lea r8, str._s.
mov edx, 0x104
mov rcx, rax
call sym.snprintf_char__unsigned_long_long__char_const__::_
lea rdx, [rbp + 0x1d0]
lea rax, [rbp + 0xc0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_FindFirstFileA]
call rax
mov qword [rbp + 0x318], rax
cmp qword [rbp + 0x318], 0xffffffffffffffff
jne 0x140001511
mov r9d, 0x10
lea r8, str.Fehler
lea rax, [0x14000900e]
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.USER32.dll_MessageBoxA]
call rax
jmp 0x14000165c
lea rax, [rbp + 0x1d0]
add rax, 0x2c
lea rdx, [0x140009012]
mov rcx, rax
call sym.strcmp
test eax, eax
je 0x1400015e0
lea rax, [rbp + 0x1d0]
add rax, 0x2c
lea rdx, [0x140009014]
mov rcx, rax
call sym.strcmp
test eax, eax
je 0x1400015e0
mov rcx, qword [rbp + 0x330]
lea rax, [rbp - 0x50]
lea rdx, [rbp + 0x1d0]
add rdx, 0x2c
mov qword [rsp + 0x20], rdx
mov r9, rcx
lea r8, str._s_s
mov edx, 0x104
mov rcx, rax
call sym.snprintf_char__unsigned_long_long__char_const__::_
mov eax, dword [rbp + 0x1d0]
and eax, 0x10
test eax, eax
je 0x1400015a2
lea rax, [rbp - 0x50]
mov rcx, rax
call sym.DeleteFolder_char_const_
jmp 0x1400015e0
lea rax, [rbp - 0x50]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_DeleteFileA]
call rax
test eax, eax
sete al
test al, al
je 0x1400015e0
mov r9d, 0x10
lea r8, str.Fehler
lea rax, [0x14000901d]
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.USER32.dll_MessageBoxA]
call rax
lea rdx, [rbp + 0x1d0]
mov rax, qword [rbp + 0x318]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_FindNextFileA]
call rax
test eax, eax
setne al
test al, al
jne 0x140001511
mov rax, qword [rbp + 0x318]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_FindClose]
call rax
mov rax, qword [rbp + 0x330]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
call rax
test eax, eax
sete al
test al, al
je 0x14000165c
mov r9d, 0x10
lea r8, str.Fehler
lea rax, [0x14000901d]
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.USER32.dll_MessageBoxA]
call rax
nop
add rsp, 0x3a0
pop rbp
ret

Function at 0x140001a30
Capabilities:
Write file on windows

Disassembly:
push rbp
push rsi
push rbx
sub rsp, 0x30
lea rbp, [rsp + 0x30]
mov rbx, rcx
lea rax, [rbp + 0x28]
mov ecx, 2
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
mov qword [rbp - 8], 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 [rbp - 8]
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 0x140001aa0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
lea rbp, [rsp + 0x50]
movsxd rsi, dword [0x14000c0a4]
mov rbx, rcx
test esi, esi
jle 0x140001bd0
mov rax, qword [0x14000c0a8]
xor r9d, r9d
add rax, 0x18
nop dword [rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140001aeb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140001b73
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140001ad0
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x140001bf2
mov rax, qword [0x14000c0a8]
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 [0x14000c0a8]
lea rdx, [rbp - 0x30]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140001bd7
mov eax, dword [rbp - 0xc]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x140001b6c
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x140001b80
add dword [0x14000c0a4], 1
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
ret
cmp eax, 2
mov rcx, qword [rbp - 0x30]
mov rdx, qword [rbp - 0x18]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x14000c0a8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140001b6c
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
nop word [rax + rax]
xor esi, esi
jmp 0x140001af8
mov rax, qword [0x14000c0a8]
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 0x140002180
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rbp, [rsp + 0x20]
lea r13, [0x14000c100]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14000c0e0]
test rbx, rbx
je 0x1400021e5
mov r12, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ecx, dword [rbx]
call r12
mov rsi, rax
call rdi
test rsi, rsi
je 0x1400021dc
test eax, eax
jne 0x1400021dc
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400021c0
mov rcx, r13
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x140002420
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x140002438
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x140002440
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret
Function at 0x140002450
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 0x14000249d
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 0x140002494
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x14000249f
add rax, 0x28
cmp rax, r9
jne 0x140002480
xor eax, eax
ret

Function at 0x1400024a0
Capabilities:
Parse pe header

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

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

Disassembly:
mov rdx, qword [0x1400097a0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002570
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002578
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002570
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x1400025cd
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 0x1400025c4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140002570
add rax, 0x28
cmp rax, r9
jne 0x1400025b0
xor eax, eax
ret

Function at 0x1400025d0
Capabilities:
Parse pe header

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

Function at 0x140002610
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x1400097a0]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x140002630
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x140002638
ret
cmp word [rdx + 0x18], 0x20b
jne 0x140002630
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x140002680
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x140002677
test rcx, rcx
je 0x140002630
sub rcx, 1
add rax, 0x28
cmp rdx, rax
jne 0x140002668
xor eax, eax
ret
Function at 0x140002690
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400097a0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x1400026af
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x1400026b8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

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

Disassembly:
mov rdx, qword [0x1400097a0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400026f0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400026f8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400026f0
sub rcx, rdx
movzx r9d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
test r9w, r9w
je 0x1400026f0
lea eax, [r9 - 1]
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
mov rax, r8
cmp rcx, r8
jb 0x140002744
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x140002750
add rdx, 0x28
cmp rdx, r9
jne 0x140002730
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

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

Disassembly:
mov r11, qword [0x1400097a0]
xor r8d, r8d
cmp word [r11], 0x5a4d
mov r10d, ecx
jne 0x140002784
movsxd rcx, dword [r11 + 0x3c]
add rcx, r11
cmp dword [rcx], 0x4550
je 0x140002790
mov rax, r8
ret
cmp word [rcx + 0x18], 0x20b
jne 0x140002784
mov eax, dword [rcx + 0x90]
test eax, eax
je 0x140002784
movzx edx, word [rcx + 0x14]
movzx r9d, word [rcx + 6]
lea rdx, [rcx + rdx + 0x18]
test r9w, r9w
je 0x140002784
lea ecx, [r9 - 1]
lea rcx, [rcx + rcx*4]
lea r9, [rdx + rcx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rdx + 0xc]
mov rcx, r8
cmp rax, r8
jb 0x1400027dc
add ecx, dword [rdx + 8]
cmp rax, rcx
jb 0x1400027f0
add rdx, 0x28
cmp r9, rdx
jne 0x1400027c8
xor r8d, r8d
mov rax, r8
ret
add rax, r11
jmp 0x140002800
sub r10d, 1
add rax, 0x14
mov ecx, dword [rax + 4]
test ecx, ecx
jne 0x14000280e
mov edx, dword [rax + 0xc]
test edx, edx
je 0x1400027e5
test r10d, r10d
jg 0x1400027f8
mov r8d, dword [rax + 0xc]
add r8, r11
mov rax, r8
ret