joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140019850
Capabilities:
Parse pe header

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

Function at 0x140019910
Capabilities:
Parse pe header

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

Function at 0x140019bb0
Capabilities:
Allocate thread local storage

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov eax, dword [0x1401b0108]
mov edi, ecx
mov rsi, rdx
test eax, eax
jne 0x1400193e0
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
mov edx, 0x18
mov ecx, 1
call sub.msvcrt.dll_calloc
mov rbx, rax
test rax, rax
je 0x14001942a
mov qword [rax + 8], rsi
lea rsi, [0x1401b0120]
mov dword [rax], edi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [0x1401b0100]
mov rcx, rsi
mov qword [0x1401b0100], rbx
mov qword [rbx + 0x10], rax
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x1400193d6
or eax, 0xffffffff
jmp 0x1400193d8
push rsi
push rbx
sub rsp, 0x28
mov rsi, rcx
mov rbx, rdx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x140019be0
mov rdx, rbx
mov ecx, eax
mov dword [rsi], eax
add rsp, 0x28
pop rbx
pop rsi
jmp 0x140021a20
add rsp, 0x28
pop rbx
pop rsi
jmp qword [sym.imp.KERNEL32.dll_GetLastError]
test rdx, rdx
jne 0x140021a30
xor eax, eax
ret
jmp 0x1400193c0

Function at 0x140019c20
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov ebx, ecx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, ebx
mov esi, eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, esi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rbx
add rsp, 0x28
pop rbx
pop rsi
ret

Function at 0x140019c50
Capabilities:
Set thread local storage value

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x140019c68
xor eax, eax
add rsp, 0x28
ret
add rsp, 0x28
jmp qword [sym.imp.KERNEL32.dll_GetLastError]

Function at 0x140002eac
Capabilities:
Parse pe header

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

Disassembly:
sub rsp, 0x28
mov rax, qword [0x140029d50]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x140029d60]
mov dword [rax], 1
mov rax, qword [0x140029d70]
mov dword [rax], 1
mov rax, qword [0x140029d00]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x140029d40]
mov dword [0x14002d00c], 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 [0x140029e20]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x140029e00]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x140029cb0]
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 0x1400014a1
Capabilities:
Execute command

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
lea rax, str.dir_C:_
mov rcx, rax
call sym.system
nop
add rsp, 0x20
pop rbp
ret
Function at 0x140001991
Capabilities:
Get explorer pid

Disassembly:
sub rsp, 0x38
mov dword [rsp + 0x2c], 0
call qword [sym.imp.USER32.dll_GetShellWindow]
lea rdx, [rsp + 0x2c]
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov eax, dword [rsp + 0x2c]
add rsp, 0x38
ret

Function at 0x140001af4
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Get system information on windows

Disassembly:
push r13
push r12
push rdi
sub rsp, 0x60
xor eax, eax
mov ecx, 0xc
lea rdi, [rsp + 0x30]
mov dword [rsp + 0x2c], 0
rep stosd dword [rdi], eax
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov edx, dword [rsp + 0x34]
mov r9d, 0x40
xor ecx, ecx
mov r8d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r12, rax
test rax, rax
jne 0x140001b42
xor eax, eax
jmp 0x140001b93
mov byte [rax], 0xc3
lea r9, [rsp + 0x2c]
mov edx, dword [rsp + 0x34]
mov rcx, rax
mov r8d, 0x140
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x140001b3e
lea rcx, [dbg.excepPageGuard]
mov rdi, qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
call rdi
mov r13, rax
call r12
mov rcx, r13
call rdi
mov r8d, 0x8000
xor edx, edx
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, dword [0x140027a0c]
add rsp, 0x60
pop rdi
pop r12
pop r13
ret

Function at 0x140001c17
Capabilities:
Check for protected handle exception

Disassembly:
push r12
push rbx
sub rsp, 0x28
lea r8, str.Random_name
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
mov r12, rax
test rax, rax
jne 0x140001c52
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.CreateMutex_error:__ld_n
mov edx, eax
call sym.printf_1
mov eax, 1
jmp 0x140001ca4
mov rcx, rax
mov r8d, 2
mov edx, 2
call qword [sym.imp.KERNEL32.dll_SetHandleInformation]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x140001c9e
lea rcx, [dbg.setHandleInfoExc]
mov rbx, qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
call rbx
mov ecx, 1
xor r9d, r9d
xor r8d, r8d
mov r12, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_RaiseException]
mov eax, dword [0x140027a08]
add rsp, 0x28
pop rbx
pop r12
ret

Function at 0x140001e49
Capabilities:
Create thread

Disassembly:
sub rsp, 0x38
xor r9d, r9d
lea r8, [dbg.th_instructionPrefixes]
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
call qword [sym.imp.msvcrt.dll__beginthreadex]
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [0x140027a04]
add rsp, 0x38
ret

Function at 0x140001ec2
Capabilities:
Create thread

Disassembly:
sub rsp, 0x38
xor r9d, r9d
lea r8, [dbg.th_dbgExcp]
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
call qword [sym.imp.msvcrt.dll__beginthreadex]
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [0x140027a00]
add rsp, 0x38
ret
Function at 0x14000211d
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push r14
push r13
push r12
sub rsp, 0x40
mov r12, qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r9d, 4
xor ecx, ecx
mov r8d, 0x3000
mov edx, 0x8000
call r12
mov r14, rax
test rax, rax
je 0x14000217b
mov r9d, 0x40
mov r8d, 0x203000
mov edx, 0x1000000
xor ecx, ecx
call r12
mov r13, rax
test rax, rax
jne 0x140002197
mov r8d, 0x8000
xor edx, edx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_VirtualFree]
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.VirtualAlloc_failed._Last_error:__lu_n
xor r12d, r12d
mov edx, eax
call sym.printf_1
jmp 0x140002262
mov r8, qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov word [rax], 0x4851
mov byte [rax + 2], 0xb9
xor eax, eax
lea ecx, [rax*8]
mov rdx, r8
shr rdx, cl
mov byte [r13 + rax + 3], dl
inc rax
cmp rax, 8
jne 0x1400021a9
mov edx, 0x1000000
mov rcx, r13
mov dword [r13 + 0xb], 0xc359d1ff
call qword [sym.imp.KERNEL32.dll_ResetWriteWatch]
call r13
mov r12d, eax
cmp eax, 1
je 0x14000223f
lea rax, [rsp + 0x34]
xor ecx, ecx
mov r9, r14
mov r8d, 0x1000
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x38]
mov rdx, r13
mov qword [rsp + 0x38], 0x1000
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_GetWriteWatch]
test eax, eax
je 0x140002233
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.GetWriteWatch_failed._Last_error:__lu_n
xor r12d, r12d
mov edx, eax
call sym.printf_1
jmp 0x14000223f
mov r12, qword [rsp + 0x38]
test r12, r12
cmove r12d, eax
mov rcx, r14
mov r8d, 0x8000
xor edx, edx
mov r14, qword [sym.imp.KERNEL32.dll_VirtualFree]
call r14
mov r8d, 0x8000
xor edx, edx
mov rcx, r13
call r14
mov eax, r12d
add rsp, 0x40
pop r12
pop r13
pop r14
ret

Function at 0x140002270
Capabilities:
Switch active desktop

Disassembly:
sub rsp, 0x38
lea rcx, str.m_pcszNewDesktopName
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x182
call qword [sym.imp.USER32.dll_CreateDesktopA]
mov rcx, rax
xor eax, eax
test rcx, rcx
je 0x1400022b2
call qword [sym.imp.USER32.dll_SwitchDesktop]
test eax, eax
sete al
movzx eax, al
add rsp, 0x38
ret

Function at 0x140002319
Capabilities:
Get disk information

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
xor ebx, ebx
mov ebp, 1
lea r12, str.kernel32
call qword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov esi, eax
mov eax, ebp
mov ecx, ebx
shl eax, cl
test eax, esi
je 0x140002368
lea rcx, [r12 + rbx]
call qword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 2
jne 0x140002368
lea edx, [rbx + 0x41]
lea rcx, str.USB_drive_detected:__c:_n
call sym.printf_1
mov eax, 1
jmp 0x140002373
inc rbx
cmp rbx, 0x1a
jne 0x140002339
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
Function at 0x1400026e4
Capabilities:
Link many functions at runtime

Disassembly:
push r12
push rbx
sub rsp, 0x28
lea rcx, str.Ntdll.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rbx, qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.RtlInitUnicodeString
mov r12, rax
mov rcx, rax
call rbx
mov rdx, qword [0x140029e70]
mov rcx, r12
mov qword [rdx], rax
lea rdx, str.NtCreateFile
call rbx
mov rcx, r12
lea rdx, str.NtCreateEvent
mov qword [0x14002d078], rax
call rbx
mov rcx, r12
lea rdx, str.NtQueryDirectoryFile
mov qword [0x14002d070], rax
call rbx
mov rcx, r12
lea rdx, str.NtWaitForSingleObject
mov qword [0x14002d068], rax
call rbx
mov rcx, r12
lea rdx, str.RtlUnicodeStringToAnsiString
mov qword [0x14002d060], rax
call rbx
mov rcx, r12
lea rdx, str.NtClose
mov qword [0x14002d058], rax
call rbx
mov rcx, r12
lea rdx, [0x140028654]
mov qword [0x14002d050], rax
call rbx
lea rdx, str.NtQueryAttributesFile
mov rcx, r12
mov qword [0x14002d048], rax
call rbx
mov qword [0x14002d040], rax
add rsp, 0x28
pop rbx
pop r12
ret

Function at 0x140002f6a
Capabilities:
Get process image filename

Disassembly:
push r13
push r12
push rbx
sub rsp, 0x220
xor ebx, ebx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r8d, 0x1f4
mov rcx, rax
lea r12, [rsp + 0x2c]
mov rdx, r12
call sym.K32GetProcessImageFileNameA
mov rcx, r12
call sym.puts
mov r13, qword [sym.imp.msvcrt.dll_toupper]
mov rcx, r12
call sym.strlen
cmp rax, rbx
jbe 0x140002fc1
movsx ecx, byte [r12 + rbx]
call r13
mov byte [r12 + rbx], al
inc rbx
jmp 0x140002fa3
lea rdx, str.SAMPLE
mov rcx, r12
mov r13d, 1
call sym.strstr
test rax, rax
jne 0x140003008
lea rdx, str.VIRUS
mov rcx, r12
call sym.strstr
test rax, rax
jne 0x140003008
lea rdx, str.SANDBOX
mov rcx, r12
xor r13d, r13d
call sym.strstr
test rax, rax
setne r13b
mov eax, r13d
add rsp, 0x220
pop rbx
pop r12
pop r13
ret
Function at 0x1400032a2
Capabilities:
Enumerate files on windows
Get common file path

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x7b8
xor r9d, r9d
xor r8d, r8d
mov edx, 8
xor ecx, ecx
xor r12d, r12d
lea rbx, [rsp + 0x150]
mov qword [rsp + 0x20], rbx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x1400033d8
lea r12, [rsp + 0x358]
lea rsi, [rsp + 0x560]
mov r8, rbx
mov edx, 0x104
mov rcx, r12
call qword [sym.imp.msvcrt.dll_wcscpy_s]
lea r8, [0x1400294c0]
mov edx, 0x104
mov rcx, r12
call qword [sym.imp.msvcrt.dll_wcscat_s]
mov rdx, rsi
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov r13, rax
cmp rax, 0xffffffffffffffff
je 0x1400033d2
mov rdi, qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
xor ebx, ebx
lea rbp, str.Not_blacklisted_file:__s_n
lea r12, [rsp + 0x4c]
or r9d, 0xffffffff
xor edx, edx
mov ecx, 0xfde9
mov dword [rsp + 0x28], 0x104
lea r8, [rsp + 0x58c]
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x20], r12
call rdi
test byte [rsp + 0x560], 0x10
jne 0x1400033ad
mov rcx, r12
call dbg.removeExtension
mov rcx, r12
call dbg.isBlacklisted
mov rdx, r12
test eax, eax
je 0x1400033a3
lea rcx, str.Blacklisted_file:__s_n
call sym.printf_2
jmp 0x1400033d2
mov rcx, rbp
inc ebx
call sym.printf_2
mov rdx, rsi
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
mov r12d, eax
test eax, eax
jne 0x14000333b
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_FindClose]
cmp ebx, 4
jg 0x1400033d8
mov r12d, 1
mov eax, r12d
add rsp, 0x7b8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret

Function at 0x1400033eb
Capabilities:
Enumerate files on windows
Get common file path

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x7b0
xor r9d, r9d
xor r8d, r8d
mov edx, 0xa
xor ecx, ecx
xor r12d, r12d
lea rbx, [rsp + 0x150]
mov qword [rsp + 0x20], rbx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x140003500
lea r12, [rsp + 0x358]
lea rsi, [rsp + 0x560]
mov r8, rbx
mov edx, 0x104
mov rcx, r12
xor ebx, ebx
call qword [sym.imp.msvcrt.dll_wcscpy_s]
lea r8, [0x1400294c0]
mov edx, 0x104
mov rcx, r12
call qword [sym.imp.msvcrt.dll_wcscat_s]
mov rdx, rsi
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov r13, rax
cmp rax, 0xffffffffffffffff
je 0x1400034fa
mov rbp, qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov rdi, qword [sym.imp.KERNEL32.dll_FindNextFileW]
lea r14, str.Trashed_file:__s_n
lea r12, [rsp + 0x4c]
or r9d, 0xffffffff
xor edx, edx
mov ecx, 0xfde9
mov dword [rsp + 0x28], 0x104
lea r8, [rsp + 0x58c]
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x20], r12
call rbp
test byte [rsp + 0x560], 0x10
jne 0x1400034dd
mov rdx, r12
mov rcx, r14
inc ebx
call sym.printf_2
mov rdx, rsi
mov rcx, r13
call rdi
mov r12d, eax
test eax, eax
jne 0x14000348d
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_FindClose]
cmp ebx, 0x63
jg 0x140003500
mov r12d, 1
mov eax, r12d
add rsp, 0x7b0
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
Function at 0x14000379b
Capabilities:
Enumerate processes

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x150
xor eax, eax
xor edx, edx
lea rbp, [rsp + 0x20]
mov rbx, rcx
mov ecx, 0x4c
mov rdi, rbp
rep stosd dword [rdi], eax
mov ecx, 2
call sym.CreateToolhelp32Snapshot
mov r12, rax
xor eax, eax
cmp r12, 0xffffffffffffffff
je 0x140003833
mov rdx, rbp
mov rcx, r12
mov dword [rsp + 0x20], 0x130
call sym.Process32First
test eax, eax
je 0x140003828
lea rsi, [rsp + 0x4c]
mov rdi, qword [sym.imp.msvcrt.dll__stricmp_1]
mov rdx, rbx
mov rcx, rsi
call rdi
test eax, eax
jne 0x140003811
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x28]
jmp 0x140003833
mov rdx, rbp
mov rcx, r12
call sym.Process32Next
test eax, eax
je 0x140003828
mov rdx, rbx
mov rcx, rsi
jmp 0x1400037fc
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
add rsp, 0x150
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret

Function at 0x140003b40
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, 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 rbx, qword [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sym.vfprintf
call sym.abort
nop
nop word [rax + rax]
Function at 0x140003bb0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x50
movsxd rbx, dword [0x14002d0f4]
mov r12, rcx
test ebx, ebx
jle 0x140003ce0
mov rax, qword [0x14002d0f8]
xor r9d, r9d
add rax, 0x18
nop dword [rax + rax]
mov r8, qword [rax]
cmp r8, r12
ja 0x140003bfb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp r12, r8
jb 0x140003c85
add r9d, 1
add rax, 0x28
cmp r9d, ebx
jne 0x140003be0
mov rcx, r12
call dbg.__mingw_GetSectionForAddress
mov rsi, rax
test rax, rax
je 0x140003d02
mov rax, qword [0x14002d0f8]
lea rbx, [rbx + rbx*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rsi
mov dword [rax], 0
call dbg._GetPEImageBase
mov edx, dword [rsi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14002d0f8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140003ce7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140003c7e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140003c90
add dword [0x14002d0f4], 1
add rsp, 0x50
pop rbx
pop rsi
pop r12
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 4
mov eax, 0x40
cmovne r8d, eax
add rbx, qword [0x14002d0f8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140003c7e
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 ebx, ebx
jmp 0x140003c08
mov rax, qword [0x14002d0f8]
mov edx, dword [rsi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call dbg.__report_error
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140004280
Capabilities:
Get thread local storage value

Disassembly:
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r13, [0x14002d160]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14002d140]
test rbx, rbx
je 0x1400042dc
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x1400042d3
test r12, r12
je 0x1400042d3
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400042b8
mov rcx, r13
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop r12
pop r13
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x140004510
Capabilities:
Parse pe header

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

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x140004585
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp r8, rdx
ja 0x14000457c
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x140004587
add rax, 0x28
cmp rax, r9
jne 0x140004568
xor eax, eax
ret

Function at 0x140004590
Capabilities:
Parse pe header

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x20
mov rbx, rcx
call sym.strlen
cmp rax, 8
ja 0x140004620
mov rdx, qword [0x140029d00]
xor r12d, r12d
cmp word [rdx], 0x5a4d
jne 0x14000460e
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x14000460e
cmp word [rax + 0x18], 0x20b
jne 0x14000460e
movzx edx, word [rax + 0x14]
lea r12, [rax + rdx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x140004620
sub eax, 1
lea rax, [rax + rax*4]
lea rsi, [r12 + rax*8 + 0x28]
jmp 0x1400045f9
add r12, 0x28
cmp r12, rsi
je 0x140004620
mov r8d, 8
mov rdx, rbx
mov rcx, r12
call sym.strncmp
test eax, eax
jne 0x1400045f0
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop r12
ret
xor r12d, r12d
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop r12
ret

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

Disassembly:
mov rdx, qword [0x140029d00]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140004650
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140004658
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140004650
movzx eax, word [r8 + 0x14]
sub rcx, rdx
movzx edx, word [r8 + 6]
lea rax, [r8 + rax + 0x18]
test edx, edx
je 0x1400046a5
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x14000469c
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140004650
add rax, 0x28
cmp rax, r9
jne 0x140004688
xor eax, eax
ret

Function at 0x1400046b0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140029d00]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x1400046d0
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400046d8
mov eax, r8d
ret
cmp word [rax + 0x18], 0x20b
jne 0x1400046d0
movzx r8d, word [rax + 6]
mov eax, r8d
ret

Function at 0x1400046f0
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x140029d00]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x140004710
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x140004718
ret
cmp word [rdx + 0x18], 0x20b
jne 0x140004710
movzx eax, word [rdx + 0x14]
lea rax, [rdx + rax + 0x18]
movzx edx, word [rdx + 6]
test edx, edx
je 0x140004758
sub edx, 1
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x14000474f
test rcx, rcx
je 0x140004710
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x140004740
xor eax, eax
ret
Function at 0x140004760
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140029d00]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x140004780
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
cmp dword [rdx], 0x4550
je 0x140004788
mov rax, r8
ret
cmp word [rdx + 0x18], 0x20b
cmove r8, rax
mov rax, r8
ret

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

Disassembly:
mov rdx, qword [0x140029d00]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400047c0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400047c8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400047c0
sub rcx, rdx
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
movzx r8d, word [r8 + 6]
test r8d, r8d
je 0x1400047c0
lea eax, [r8 - 1]
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop dword [rax]
mov r8d, dword [rdx + 0xc]
mov rax, r8
cmp rcx, r8
jb 0x14000480c
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x140004820
add rdx, 0x28
cmp rdx, r9
jne 0x1400047f8
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

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

Disassembly:
mov r11, qword [0x140029d00]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x140004852
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x140004860
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140004852
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x140004852
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
movzx r8d, word [r8 + 6]
test r8d, r8d
je 0x140004852
sub r8d, 1
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop dword [rax]
mov r9d, dword [rdx + 0xc]
mov r8, r9
cmp rax, r9
jb 0x1400048ad
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x1400048c0
add rdx, 0x28
cmp r10, rdx
jne 0x140004898
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x1400048cf
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x1400048df
mov edx, dword [rax + 0xc]
test edx, edx
je 0x1400048b6
test ecx, ecx
jg 0x1400048c8
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret