joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140002852
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x140009168]
test eax, eax
je 0x1400028ea
lea rax, [0x140009140]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x140009170]
mov qword [rbp - 8], rax
jmp 0x1400028ce
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x1400028c2
cmp qword [rbp - 0x10], 0
je 0x1400028c2
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x140002888
lea rax, [0x140009140]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x1400028eb
nop
add rsp, 0x30
pop rbp
ret

Function at 0x1400029f0
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x140002a18
mov eax, 0
jmp 0x140002a66
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 0x140002a41
mov eax, 0
jmp 0x140002a66
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x140002a61
mov eax, 0
jmp 0x140002a66
mov eax, 1
add rsp, 0x20
pop rbp
ret

Function at 0x140002a6c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x140002aea
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x140002ae1
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x140002ae1
mov rax, qword [rbp - 8]
jmp 0x140002aff
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x140002ab4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x100d6f0
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x468
mov rax, qword [0x01015360]
xor rax, rsp
mov qword [rsp + 0x450], rax
call qword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x100d72d
mov rcx, qword [rsp + 0x470]
call qword [sym.imp.MSVCR80.dll__wremove]
jmp 0x100d78d
cmp qword [rsp + 0x470], 0
je 0x100d77b
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x400
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9d, 0xffffffff
mov r8, qword [rsp + 0x470]
xor edx, edx
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jg 0x100d782
mov eax, 1
jmp 0x100d78d
lea rcx, [rsp + 0x50]
call qword [sym.imp.MSVCR80.dll_remove]
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.01012150
add rsp, 0x468
ret

Function at 0x1011600
Capabilities:
Get file attributes

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x868
mov rax, qword [0x01015360]
xor rax, rsp
mov qword [rsp + 0x850], rax
call qword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x101163b
mov rcx, qword [rsp + 0x870]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
jmp 0x10116b5
cmp qword [rsp + 0x870], 0
je 0x101165c
mov rcx, qword [rsp + 0x870]
call qword [sym.imp.MSVCR80.dll_wcslen]
cmp rax, 0x3fc
jbe 0x1011663
mov eax, 0xffffffff
jmp 0x10116b5
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x800
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9d, 0xffffffff
mov r8, qword [rsp + 0x870]
xor edx, edx
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov byte [rsp + 0x820], 0
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov rcx, qword [rsp + 0x850]
xor rcx, rsp
call fcn.01012150
add rsp, 0x868
ret
Function at 0x1012178
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x01015360]
jne 0x101216a
rol rcx, 0x10
test cx, 0xffff
jne 0x1012166
repz ret
ror rcx, 0x10
jmp 0x1012178
push rbx
push rsi
push rdi
sub rsp, 0x40
mov rbx, rcx
lea rsi, [0x010203d0]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rdi, qword [0x010204c8]
lea rdx, [rsp + 0x60]
mov rcx, rdi
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_RtlLookupFunctionEntry]
test rax, rax
je 0x10121eb
and qword [rsp + 0x38], 0
mov rdx, qword [rsp + 0x60]
lea rcx, [rsp + 0x68]
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x70]
mov r9, rax
mov qword [rsp + 0x28], rcx
xor ecx, ecx
mov r8, rdi
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_RtlVirtualUnwind]
mov r11, qword [0x010204c8]
jmp 0x1012207
mov r11, qword [rsp + 0x58]
lea rax, [rsp + 0x58]
add rax, 8
mov qword [0x010204c8], r11
mov qword [0x01020468], rax
mov rax, qword [0x01015360]
mov qword [0x01020340], r11
mov qword [0x01020450], rbx
mov dword [0x01020330], 0xc0000409
mov dword [0x01020334], 1
mov qword [rsp + 0x78], rax
mov rax, qword [0x01015368]
xor ecx, ecx
mov qword [rsp + 0x78], rax
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x01003640]
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, 0x40
pop rdi
pop rsi
pop rbx
ret

Function at 0x1012207
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x01015360]
jne 0x101216a
rol rcx, 0x10
test cx, 0xffff
jne 0x1012166
repz ret
ror rcx, 0x10
jmp 0x1012178
push rbx
push rsi
push rdi
sub rsp, 0x40
mov rbx, rcx
lea rsi, [0x010203d0]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rdi, qword [0x010204c8]
lea rdx, [rsp + 0x60]
mov rcx, rdi
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_RtlLookupFunctionEntry]
test rax, rax
je 0x10121eb
and qword [rsp + 0x38], 0
mov rdx, qword [rsp + 0x60]
lea rcx, [rsp + 0x68]
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x70]
mov r9, rax
mov qword [rsp + 0x28], rcx
xor ecx, ecx
mov r8, rdi
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_RtlVirtualUnwind]
mov r11, qword [0x010204c8]
jmp 0x1012207
mov r11, qword [rsp + 0x58]
lea rax, [rsp + 0x58]
add rax, 8
mov qword [0x010204c8], r11
mov qword [0x01020468], rax
mov rax, qword [0x01015360]
mov qword [0x01020340], r11
mov qword [0x01020450], rbx
mov dword [0x01020330], 0xc0000409
mov dword [0x01020334], 1
mov qword [rsp + 0x78], rax
mov rax, qword [0x01015368]
xor ecx, ecx
mov qword [rsp + 0x78], rax
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x01003640]
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, 0x40
pop rdi
pop rsi
pop rbx
ret
Function at 0x10122f0
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
xor esi, esi
mov edi, esi
xor eax, eax
lock cmpxchg qword [0x010208e0], rbx
je 0x1012336
cmp rax, rbx
jne 0x1012329
mov edi, 1
jmp 0x1012336
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1012310
mov eax, dword [0x010208dc]
cmp eax, 1
jne 0x101234b
lea ecx, [rax + 0x1e]
call sub.MSVCR80.dll__amsg_exit
jmp 0x101238a
mov eax, dword [0x010208dc]
test eax, eax
jne 0x1012380
mov dword [0x010208dc], 1
lea rdx, [0x01001420]
lea rcx, [0x01001408]
call sub.MSVCR80.dll__initterm_e
test eax, eax
je 0x101238a
mov eax, 0xff
jmp 0x101246b
mov dword [0x010208c4], 1
mov eax, dword [0x010208dc]
cmp eax, 1
jne 0x10123b2
lea rdx, [0x01001400]
lea rcx, [0x010013d8]
call sub.MSVCR80.dll__initterm
mov dword [0x010208dc], 2
test edi, edi
jne 0x10123bd
xchg qword [0x010208e0], rsi
cmp qword [0x010208f8], 0
je 0x10123e6
lea rcx, [0x010208f8]
call fcn.01012c20
test eax, eax
je 0x10123e6
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
call qword [0x010208f8]
mov rcx, qword [sym.imp.MSVCR80.dll___winitenv]
mov rax, qword [0x010208a8]
mov qword [rcx], rax
mov r8, qword [0x010208a8]
mov rdx, qword [0x010208b0]
mov ecx, dword [0x010208a0]
call fcn.01003a70
mov dword [0x010208c0], eax
cmp dword [0x010208a4], 0
jne 0x1012427
mov ecx, eax
call qword [sym.imp.MSVCR80.dll_exit]
cmp dword [0x010208c4], 0
jne 0x101243c
call qword [sym.imp.MSVCR80.dll__cexit]
mov eax, dword [0x010208c0]
jmp 0x101246b
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
sub rsp, 0x28
call fcn.01012094
add rsp, 0x28
jmp 0x10122f0
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x1400044f0]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x140004500]
mov dword [rax], 1
mov rax, qword [0x140004510]
mov dword [rax], 1
mov rax, qword [0x140004480]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x1400044e0]
mov dword [0x14000700c], 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 [0x1400045c0]
mov edx, dword [rdx]
mov dword [rax], edx
call sym.__p__commode
mov rdx, qword [0x1400045a0]
mov edx, dword [rdx]
mov dword [rax], edx
call sym._setargv
mov rax, qword [0x140004460]
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 0x140001180
Capabilities:
Terminate process

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbx, qword [0x140004540]
xor edi, edi
mov rax, qword gs:[0x30]
mov rbp, qword [sym.imp.KERNEL32.dll_Sleep]
mov rsi, qword [rax + 8]
jmp 0x1400011c0
cmp rsi, rax
je 0x140001320
mov ecx, 0x3e8
call rbp
mov rax, rdi
lock cmpxchg qword [rbx], rsi
test rax, rax
jne 0x1400011b0
mov rsi, qword [0x140004550]
xor edi, edi
mov eax, dword [rsi]
cmp eax, 1
je 0x140001337
mov eax, dword [rsi]
test eax, eax
je 0x1400013a0
mov dword [0x140007008], 1
mov eax, dword [rsi]
cmp eax, 1
je 0x14000134c
test edi, edi
je 0x14000136d
mov rax, qword [0x1400044b0]
mov rax, qword [rax]
test rax, rax
je 0x140001223
xor r8d, r8d
mov edx, 2
xor ecx, ecx
call rax
call sym._pei386_runtime_relocator
mov rcx, qword [sym._gnu_exception_handler]
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rdx, qword [0x140004530]
lea rcx, [sym.__mingw_invalidParameterHandler]
mov qword [rdx], rax
call sym._set_invalid_parameter_handler
call sym._fpreset
mov ebx, dword [0x140007028]
lea edi, [rbx + 1]
movsxd rdi, edi
shl rdi, 3
mov rcx, rdi
call sym.malloc
test ebx, ebx
mov rbp, qword [0x140007020]
mov r12, rax
jle 0x1400013c0
sub rdi, 8
xor ebx, ebx
mov rcx, qword [rbp + rbx]
call sym.strlen
lea rsi, [rax + 1]
mov rcx, rsi
call sym.malloc
mov r8, rsi
mov qword [r12 + rbx], rax
mov rdx, qword [rbp + rbx]
mov rcx, rax
add rbx, 8
call sym.memcpy
cmp rdi, rbx
jne 0x140001280
add rdi, r12
mov qword [rdi], 0
mov qword [0x140007020], r12
call sym.__main
mov rax, qword [0x1400044c0]
mov r8, qword [0x140007018]
mov ecx, dword [0x140007028]
mov rax, qword [rax]
mov qword [rax], r8
mov rdx, qword [0x140007020]
call sym.main
mov ecx, dword [0x14000700c]
mov dword [0x140007010], eax
test ecx, ecx
je 0x1400013c8
mov edx, dword [0x140007008]
test edx, edx
je 0x140001380
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rsi, qword [0x140004550]
mov edi, 1
mov eax, dword [rsi]
cmp eax, 1
jne 0x1400011e1
mov ecx, 0x1f
call sym._amsg_exit
mov eax, dword [rsi]
cmp eax, 1
jne 0x140001200
mov rdx, qword [0x140004570]
mov rcx, qword [0x140004560]
call sym._initterm
test edi, edi
mov dword [rsi], 2
jne 0x140001208
xor eax, eax
xchg qword [rbx], rax
jmp 0x140001208
call sym._cexit
mov eax, dword [0x140007010]
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rdx, qword [0x140004590]
mov dword [rsi], 1
mov rcx, qword [0x140004580]
call sym._initterm
jmp 0x1400011f5
mov rdi, rax
jmp 0x1400012b6
mov ecx, eax
call sym.exit
nop
Function at 0x140001494
Capabilities:
Hide graphical window

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
call sym.__main
mov ecx, 0
call sym.time
mov qword [rbp - 8], rax
mov rax, qword [sym.imp.KERNEL32.dll_AllocConsole]
call rax
mov edx, 0
lea rax, str.ConsoleWindowClass
mov rcx, rax
mov rax, qword [sym.imp.USER32.dll_FindWindowA]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.USER32.dll_ShowWindow]
call rax
lea rax, [0x140004013]
mov rdx, rax
lea rax, str.C:_Users_bbog2_Desktop_test_log.txt
mov rcx, rax
call sym.fopen
mov qword [rbp - 0x18], rax
lea rax, [sym.time]
mov rcx, rax
call sym.ctime
mov rdx, rax
mov rax, qword [rbp - 0x18]
mov r8, rdx
lea rdx, str._n_Logger:_Written_by_jkrix._Started_logging____s
mov rcx, rax
call sym.fprintf
mov ecx, 0x14
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
call sym.kbhit
test eax, eax
je 0x14000152e
call sym.getch
mov byte [rbp - 0x19], al
movsx eax, byte [rbp - 0x19]
sub eax, 8
cmp eax, 0x18
ja case.0x14000157d.10
mov eax, eax
lea rdx, [rax*4]
lea rax, [0x140004094]
mov eax, dword [rdx + rax]
cdqe
lea rdx, [0x140004094]
add rax, rdx
jmp rax
mov rax, qword [rbp - 0x18]
mov rdx, rax
mov ecx, 0x20
call sym.fputc
jmp 0x140001630
mov rax, qword [rbp - 0x18]
mov r9, rax
mov r8d, 5
mov edx, 1
lea rax, str._TAB_
mov rcx, rax
call sym.fwrite
jmp 0x140001630
mov rax, qword [rbp - 0x18]
mov r9, rax
mov r8d, 7
mov edx, 1
lea rax, str._ENTER_
mov rcx, rax
call sym.fwrite
jmp 0x140001630
mov rax, qword [rbp - 0x18]
mov r9, rax
mov r8d, 5
mov edx, 1
lea rax, str._ESC_
mov rcx, rax
call sym.fwrite
jmp 0x140001630
mov rax, qword [rbp - 0x18]
mov r9, rax
mov r8d, 0xb
mov edx, 1
lea rax, str._BACKSPACE_
mov rcx, rax
call sym.fwrite
jmp 0x140001630
movsx eax, byte [rbp - 0x19]
mov rdx, qword [rbp - 0x18]
mov ecx, eax
call sym.fputc
cmp byte [rbp - 0x19], 0x1b
jne 0x14000152e
mov rax, qword [rbp - 0x18]
mov rcx, rax
call sym.fclose
mov eax, 0
add rsp, 0x40
pop rbp
ret

Function at 0x140001930
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 0x1400019a0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x140007094]
test esi, esi
mov rbx, rcx
jle 0x140001ad0
mov rax, qword [0x140007098]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x1400019eb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140001a75
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x1400019d0
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov rdi, rax
je 0x140001af2
mov rax, qword [0x140007098]
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 [0x140007098]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140001ad7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140001a6e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140001a80
add dword [0x140007094], 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 [0x140007098]
mov r9, rbx
mov qword [rbx + 8], rcx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140001a6e
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 0x1400019f8
mov rax, qword [0x140007098]
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 0x140002060
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140007100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400070e0]
test rbx, rbx
je 0x1400020bc
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 0x1400020b3
test rsi, rsi
je 0x1400020b3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140002098
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 0x1400022d0
Capabilities:
Parse pe header

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

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

Function at 0x140002350
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x1400023e0
mov rdx, qword [0x140004480]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x1400023ce
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x1400023ce
cmp word [rax + 0x18], 0x20b
jne 0x1400023ce
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x1400023e0
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x1400023b9
add rbx, 0x28
cmp rbx, rdi
je 0x1400023e0
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x1400023b0
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 0x1400023f0
Capabilities:
Enumerate pe sections
Parse pe header

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

Function at 0x140002470
Capabilities:
Parse pe header

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

Function at 0x1400024b0
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x140004480]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x1400024d0
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x1400024d8
ret
cmp word [rdx + 0x18], 0x20b
jne 0x1400024d0
movzx r8d, word [rdx + 6]
movzx eax, word [rdx + 0x14]
test r8w, r8w
lea rax, [rdx + rax + 0x18]
je 0x140002520
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x140002517
test rcx, rcx
je 0x1400024d0
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x140002508
xor eax, eax
ret
Function at 0x140002530
Capabilities:
Parse pe header

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

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

Disassembly:
mov rdx, qword [0x140004480]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002590
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002598
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002590
movzx r9d, word [r8 + 6]
sub rcx, rdx
movzx edx, word [r8 + 0x14]
test r9w, r9w
lea rdx, [r8 + rdx + 0x18]
je 0x140002590
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]
cmp rcx, r8
mov rax, r8
jb 0x1400025e4
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x1400025f0
add rdx, 0x28
cmp r9, rdx
jne 0x1400025d0
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

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

Disassembly:
mov r11, qword [0x140004480]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x140002622
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x140002630
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002622
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x140002622
movzx r10d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
test r10w, r10w
lea rdx, [r8 + rdx + 0x18]
je 0x140002622
lea r8d, [r10 - 1]
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop word cs:[rax + rax]
mov r9d, dword [rdx + 0xc]
cmp rax, r9
mov r8, r9
jb 0x140002685
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x140002698
add rdx, 0x28
cmp rdx, r10
jne 0x140002670
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x1400026a7
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x1400026b7
mov edx, dword [rax + 0xc]
test edx, edx
je 0x14000268e
test ecx, ecx
jg 0x1400026a0
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret