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

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x38
xor eax, eax
test eax, eax
jne 0x14004a243
xor eax, eax
test eax, eax
jne 0x14004a243
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
mov rcx, qword [rcx]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
add rsp, 0x38
ret

Function at 0x14004a290
Capabilities:
Set registry value

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
xor eax, eax
test eax, eax
jne 0x14004a2a8
xor eax, eax
test eax, eax
jne 0x14004a2a8
cmp qword [rsp + 0x60], 0
je 0x14004a2c6
mov dword [rsp + 0x34], 1
jmp 0x14004a2ce
mov dword [rsp + 0x34], 0
mov eax, dword [rsp + 0x34]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jne 0x14004a2e4
mov eax, 0xd
jmp 0x14004a326
xor eax, eax
test eax, eax
jne 0x14004a2b4
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
cdqe
shl rax, 1
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x68]
xor r8d, r8d
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
mov rcx, qword [rcx]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
add rsp, 0x48
ret

Function at 0x14004a330
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x58
xor eax, eax
test eax, eax
jne 0x14004a343
xor eax, eax
test eax, eax
jne 0x14004a343
cmp qword [rsp + 0x70], 0
je 0x14004a361
mov dword [rsp + 0x48], 1
jmp 0x14004a369
mov dword [rsp + 0x48], 0
mov eax, dword [rsp + 0x48]
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0
jne 0x14004a382
mov eax, 0xd
jmp 0x14004a403
xor eax, eax
test eax, eax
jne 0x14004a34f
mov dword [rsp + 0x30], 0
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x38], rax
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
mov dword [rsp + 0x40], eax
mov ecx, dword [rsp + 0x40]
mov rax, qword [rsp + 0x38]
lea rax, [rax + rcx*2]
mov qword [rsp + 0x38], rax
mov ecx, dword [rsp + 0x40]
mov eax, dword [rsp + 0x30]
lea rax, [rax + rcx*2]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x40], 1
jne 0x14004a39a
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r9d, 7
xor r8d, r8d
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
mov rcx, qword [rcx]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
add rsp, 0x58
ret
Function at 0x14004f0b7
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x14007a9b0]
jne 0x14004c9fa
rol rcx, 0x10
test cx, 0xffff
jne 0x14004c9f6
repz ret
ror rcx, 0x10
jmp 0x14004f010
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x14007d570]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov r11, qword [0x14007d668]
mov qword [rsp + 0x58], r11
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 0x14004f095
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, [0x14007d570]
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 0x14004f0b7
mov rax, qword [rsp + 0x88]
mov qword [0x14007d668], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x14007d608], rax
mov rax, qword [0x14007d668]
mov qword [0x14007d4e0], rax
mov rax, qword [rsp + 0x90]
mov qword [0x14007d5f0], rax
mov dword [0x14007d4d0], 0xc0000409
mov dword [0x14007d4d4], 1
mov rax, qword [0x14007a9b0]
mov qword [rsp + 0x68], rax
mov rax, qword [0x14007a9b8]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x14007d568], eax
mov ecx, 1
call fcn.1400535a8
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x14006cc20]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x14007d568], 0
jne 0x14004f13e
mov ecx, 1
call fcn.1400535a8
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 0x140055388
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov dword [rsp + 0x18], r8d
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov r12d, r8d
mov ebx, edx
mov r15d, ecx
mov ecx, 8
call fcn.1400576ec
nop
cmp dword [0x14007db10], 1
je 0x140055334
mov dword [0x14007db0c], 1
mov byte [0x14007db08], r12b
test ebx, ebx
jne 0x140055320
mov rcx, qword [0x14007e770]
call sub.KERNEL32.dll_DecodePointer
mov rsi, rax
mov qword [rsp + 0x30], rax
test rax, rax
je 0x14005530d
mov rcx, qword [0x14007e768]
call sub.KERNEL32.dll_DecodePointer
mov rdi, rax
mov qword [rsp + 0x20], rax
mov r14, rsi
mov qword [rsp + 0x28], rsi
mov r13, rax
mov qword [rsp + 0x38], rax
sub rdi, 8
mov qword [rsp + 0x20], rdi
cmp rdi, rsi
jb 0x1400552ac
call fcn.14004f2f8
cmp qword [rdi], rax
jne 0x1400552ac
jmp 0x140055292
cmp rdi, rsi
jb 0x14005530d
mov rcx, qword [rdi]
call sub.KERNEL32.dll_DecodePointer
mov rbx, rax
call fcn.14004f2f8
mov qword [rdi], rax
call rbx
mov rcx, qword [0x14007e770]
call sub.KERNEL32.dll_DecodePointer
mov rbx, rax
mov rcx, qword [0x14007e768]
call sub.KERNEL32.dll_DecodePointer
cmp r14, rbx
jne 0x1400552eb
cmp r13, rax
je 0x14005530b
mov r14, rbx
mov qword [rsp + 0x28], rbx
mov rsi, rbx
mov qword [rsp + 0x30], rbx
mov r13, rax
mov qword [rsp + 0x38], rax
mov rdi, rax
mov qword [rsp + 0x20], rax
jmp 0x140055292
lea rdx, [0x1400648e0]
lea rcx, [0x1400648c8]
call fcn.1400550dc
lea rdx, [0x1400648f0]
lea rcx, [0x1400648e8]
call fcn.1400550dc
nop
test r12d, r12d
je 0x140055343
mov ecx, 8
call fcn.1400575ec
test r12d, r12d
jne 0x14005536e
mov dword [0x14007db10], 1
lea ecx, [r12 + 8]
call fcn.1400575ec
mov ecx, r15d
call fcn.140055070
mov ecx, r15d
call qword [sym.imp.KERNEL32.dll_ExitProcess]
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
xor r8d, r8d
xor edx, edx
jmp 0x1400551fc

Function at 0x140055394
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
lea edx, [r8 + 1]
jmp 0x1400551fc
Function at 0x14005b268
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x40
mov ebp, r8d
mov r13, rdx
mov r14, rcx
call fcn.14004f2f8
xor ebx, ebx
mov rdi, rax
cmp qword [0x14007e358], rbx
jne 0x14005b36e
lea rcx, [0x14006e7c8]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
je 0x14005b443
lea rdx, [0x14006e7b8]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14005b443
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, [0x14006e7a8]
mov rcx, rsi
mov qword [0x14007e358], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, [0x14006e790]
mov rcx, rsi
mov qword [0x14007e360], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, [0x14006e770]
mov rcx, rsi
mov qword [0x14007e368], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov r11, rax
mov qword [0x14007e378], rax
test rax, rax
je 0x14005b365
lea rdx, [0x14006e758]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov qword [0x14007e370], rax
jmp 0x14005b375
mov rax, qword [0x14007e370]
jmp 0x14005b37c
mov rax, qword [0x14007e370]
mov r11, qword [0x14007e378]
cmp rax, rdi
je 0x14005b3e4
cmp r11, rdi
je 0x14005b3e4
mov rcx, rax
call sub.KERNEL32.dll_DecodePointer
mov rcx, qword [0x14007e378]
mov rsi, rax
call sub.KERNEL32.dll_DecodePointer
mov r12, rax
test rsi, rsi
je 0x14005b3e4
test rax, rax
je 0x14005b3e4
call rsi
test rax, rax
je 0x14005b3de
lea rcx, [rsp + 0x88]
mov r9d, 0xc
lea r8, [rsp + 0x30]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x14005b3de
test byte [rsp + 0x38], 1
jne 0x14005b3e4
bts ebp, 0x15
jmp 0x14005b422
mov rcx, qword [0x14007e360]
cmp rcx, rdi
je 0x14005b422
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x14005b422
call rax
mov rbx, rax
test rax, rax
je 0x14005b422
mov rcx, qword [0x14007e368]
cmp rcx, rdi
je 0x14005b422
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x14005b422
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x14007e358]
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x14005b443
mov r9d, ebp
mov r8, r13
mov rdx, r14
mov rcx, rbx
call rax
jmp 0x14005b445
xor eax, eax
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
add rsp, 0x40
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x14005e500
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
mov rcx, qword [0x14007e4f8]
test rcx, rcx
jne 0x14005e457
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 0x60]
mov rcx, qword [rbx + 0x40]
test rcx, rcx
jne 0x14005e450
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
xor edx, edx
lea r8d, [rdx + 0x10]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rdi, rax
test rax, rax
je 0x14005e482
and qword [rax], 0
and qword [rax + 8], 0
xor eax, eax
lock cmpxchg qword [rbx + 0x40], rdi
je 0x14005e44c
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rdi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [rbx + 0x40]
mov qword [0x14007e4f8], rcx
call qword [sym.imp.KERNEL32.dll_InterlockedPopEntrySList]
test rax, rax
jne 0x14005e4f5
mov edx, 0x1000
lea r9d, [rax + 0x40]
xor ecx, ecx
mov r8d, edx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
test rax, rax
jne 0x14005e4a5
xor edx, edx
lea r9, [rsp + 0x30]
mov ecx, 0xc0000017
lea r8d, [rdx + 1]
mov qword [rsp + 0x30], 0x20
call qword [sym.imp.KERNEL32.dll_RaiseException]
mov eax, dword [rax]
mov rcx, qword [0x14007e4f8]
call qword [sym.imp.KERNEL32.dll_InterlockedPopEntrySList]
mov rdi, rax
test rax, rax
je 0x14005e4d2
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rax, rdi
jmp 0x14005e4f5
lea rdi, [rbx + 0xfe0]
mov rcx, qword [0x14007e4f8]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_InterlockedPushEntrySList]
add rbx, 0x20
cmp rbx, rdi
jb 0x14005e4d9
mov rax, rbx
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
jmp 0x14005e3dc
Function at 0x401010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x004dc520]
xor edx, edx
mov dword [rax], 1
mov rax, qword [0x004dc530]
mov dword [rax], 1
mov rax, qword [0x004dc540]
mov dword [rax], 1
mov rax, qword [0x004dc510]
mov dword [rax], 1
mov rax, qword [0x004dc400]
cmp word [rax], 0x5a4d
je 0x4010b0
mov rax, qword [0x004dc500]
mov dword [0x004df00c], edx
mov eax, dword [rax]
test eax, eax
je 0x4010a0
mov ecx, 2
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x004dc4c0]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x004dc3b0]
cmp dword [rax], 1
je 0x4010f0
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x401075
movsxd rcx, dword [rax + 0x3c]
add rax, rcx
cmp dword [rax], 0x4550
jne 0x401058
movzx ecx, word [rax + 0x18]
cmp cx, 0x10b
je 0x401103
cmp cx, 0x20b
jne 0x401058
cmp dword [rax + 0x84], 0xe
jbe 0x401058
mov ecx, dword [rax + 0xf8]
xor edx, edx
test ecx, ecx
setne dl
jmp 0x401058
lea rcx, [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x401058
mov r8d, dword [rax + 0xe8]
xor edx, edx
test r8d, r8d
setne dl
jmp 0x401058

Function at 0x4015c0
Capabilities:
Write file on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov qword [rbp + 0x20], r8
lea rdx, section..rdata
mov rcx, qword [rbp + 0x10]
call sym.fopen
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x401602
lea rcx, str.Failed_to_open_file_for_writing
call sym.perror
mov eax, 0
jmp 0x401632
mov rcx, qword [rbp - 8]
mov rdx, qword [rbp + 0x20]
mov rax, qword [rbp + 0x18]
mov r9, rcx
mov r8, rdx
mov edx, 1
mov rcx, rax
call sym.fwrite
mov rax, qword [rbp - 8]
mov rcx, rax
call sym.fclose
mov eax, 1
add rsp, 0x30
pop rbp
ret
Function at 0x401638
Capabilities:
Create process on windows
Get common file path

Disassembly:
push rbp
sub rsp, 0x310
lea rbp, [rsp + 0x80]
lea rax, str.26015078667
mov qword [rbp + 0x288], rax
mov rax, qword [0x004dba20]
mov rcx, rax
call sym.malloc
mov qword [rbp + 0x280], rax
cmp qword [rbp + 0x280], 0
jne 0x40168c
lea rcx, str.Failed_to_allocate_memory
call sym.perror
mov eax, 0
jmp 0x40184f
mov rdx, qword [0x004dba20]
mov rax, qword [rbp + 0x280]
mov r8, rdx
lea rdx, [0x00404020]
mov rcx, rax
call sym.memcpy
mov rax, qword [rbp + 0x288]
mov rcx, rax
call sym.strlen
mov r8, rax
mov rdx, qword [0x004dba20]
mov rcx, qword [rbp + 0x288]
mov rax, qword [rbp + 0x280]
mov r9, r8
mov r8, rcx
mov rcx, rax
call sym.xor_encrypt_decrypt
lea rax, [rbp + 0x170]
mov rdx, rax
mov ecx, 0x104
mov rax, qword [sym.imp.KERNEL32.dll_GetTempPathA]
call rax
lea rdx, [rbp + 0x60]
lea rax, [rbp + 0x170]
mov r9, rdx
mov r8d, 0
lea rdx, [0x004dc04e]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetTempFileNameA]
call rax
mov rcx, qword [0x004dba20]
mov rdx, qword [rbp + 0x280]
lea rax, [rbp + 0x60]
mov r8, rcx
mov rcx, rax
call sym.save_file
test eax, eax
jne 0x40175a
mov rax, qword [rbp + 0x280]
mov rcx, rax
call sym.free
mov eax, 0
jmp 0x40184f
mov rax, qword [rbp + 0x280]
mov rcx, rax
call sym.free
lea rax, [rbp - 0x10]
mov r8d, 0x68
mov edx, 0
mov rcx, rax
call sym.memset
mov dword [rbp - 0x10], 0x68
lea rax, [rbp - 0x30]
mov r8d, 0x18
mov edx, 0
mov rcx, rax
call sym.memset
lea rax, [rbp + 0x60]
lea rdx, [rbp - 0x30]
mov qword [rsp + 0x48], rdx
lea rdx, [rbp - 0x10]
mov qword [rsp + 0x40], rdx
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9d, 0
mov r8d, 0
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateProcessA]
call rax
test eax, eax
jne 0x401815
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov edx, eax
lea rcx, str.Error_launching_process:__d_n
call sym.printf
mov eax, 0
jmp 0x40184f
mov rax, qword [rbp - 0x30]
mov edx, 0xffffffff
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call rax
mov rax, qword [rbp - 0x30]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp - 0x28]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov eax, 1
add rsp, 0x310
pop rbp
ret
Function at 0x401dc0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x004df624]
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
test esi, esi
jle 0x401f74
mov rax, qword [0x004df628]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x401e0c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x401e99
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x401df0
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x401fa9
mov rax, qword [0x004df628]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call dbg._GetPEImageBase
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x004df628]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x401f8c
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x401e92
sub eax, 0x40
and eax, 0xffffffbf
jne 0x401f14
add dword [0x004df624], 1
cmp edi, 8
jae 0x401ed0
test dil, 4
jne 0x401f60
test edi, edi
je 0x401ebc
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x401f7b
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rax, qword [rbp]
mov qword [rbx], rax
mov eax, edi
mov rdx, qword [rbp + rax - 8]
mov qword [rbx + rax - 8], rdx
lea rax, [rbx + 8]
and rax, 0xfffffffffffffff8
sub rbx, rax
sub rbp, rbx
add ebx, edi
and ebx, 0xfffffff8
cmp ebx, 8
jb 0x401ebc
and ebx, 0xfffffff8
xor edx, edx
mov ecx, edx
add edx, 8
mov r8, qword [rbp + rcx]
cmp edx, ebx
mov qword [rax + rcx], r8
jb 0x401f00
jmp 0x401ebc
add rsi, qword [0x004df628]
mov rcx, qword [rsp + 0x20]
mov r8d, 0x40
mov rdx, qword [rsp + 0x38]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x401e92
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 + rax]
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x401ebc
xor esi, esi
jmp 0x401e17
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x401ebc
mov rax, qword [0x004df628]
mov edx, dword [r12 + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rsi + 0x18]
call dbg.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call dbg.__report_error
nop
nop dword [rax]
Function at 0x402700
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x004df900]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x004df8e0]
test rbx, rbx
je 0x402754
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x40274b
test rsi, rsi
je 0x40274b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x402730
lea rcx, [0x004df900]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x402990
Capabilities:
Parse pe header

Disassembly:
cmp word [rcx], 0x5a4d
je 0x4029a0
xor eax, eax
ret
jmp sym._ValidateImageBase.part.0

Function at 0x4029b0
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 0x4029f1
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
mov r8d, dword [rax + 0xc]
cmp r8, rdx
mov rcx, r8
ja 0x4029e8
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x4029f3
add rax, 0x28
cmp rax, r9
jne 0x4029d4
xor eax, eax
ret

Function at 0x402a90
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x004dc400]
mov rdx, rcx
cmp word [r8], 0x5a4d
jne 0x402afd
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x402afd
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x402afd
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x402af4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x402aff
add rax, 0x28
cmp rax, r9
jne 0x402ae0
xor eax, eax
add rsp, 0x28
ret

Function at 0x402c00
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x004dc400]
xor eax, eax
mov rdx, rcx
cmp word [r8], 0x5a4d
je 0x402c20
add rsp, 0x28
ret
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x402c18
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x402c7d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x402c74
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x402c84
add rax, 0x28
cmp rax, r9
jne 0x402c60
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret
Function at 0x402ca0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x004dc400]
mov r9d, ecx
cmp word [r11], 0x5a4d
jne 0x402d0e
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x402d0e
movsxd rax, dword [r11 + 0x3c]
add rax, r11
mov edx, dword [rax + 0x90]
test edx, edx
je 0x402d0e
movzx ecx, word [rax + 0x14]
lea rcx, [rax + rcx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x402d0e
sub eax, 1
lea rax, [rax + rax*4]
lea rax, [rcx + rax*8 + 0x28]
mov r10d, dword [rcx + 0xc]
cmp rdx, r10
mov r8, r10
jb 0x402d05
add r8d, dword [rcx + 8]
cmp rdx, r8
jb 0x402d15
add rcx, 0x28
cmp rcx, rax
jne 0x402cf0
xor eax, eax
add rsp, 0x28
ret
add rdx, r11
jne 0x402d28
jmp 0x402d0e
sub r9d, 1
add rdx, 0x14
mov ecx, dword [rdx + 4]
test ecx, ecx
jne 0x402d36
mov eax, dword [rdx + 0xc]
test eax, eax
je 0x402d0e
test r9d, r9d
jg 0x402d20
mov eax, dword [rdx + 0xc]
add rax, r11
add rsp, 0x28
ret

Function at 0x402fc0
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 dbg.__acrt_iob_func
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
mov r8d, 0x1b
mov edx, 1
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
nop
nop
nop
nop
nop
nop
Function at 0x140005f20
Capabilities:
Hash data with md5

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
sub rsp, 0xa0
mov rax, qword [0x14003e040]
xor rax, rsp
mov qword [rsp + 0x90], rax
mov rdi, rcx
mov esi, edx
mov ecx, edx
mov rbp, r8
call fcn.140011b4c
mov r8d, esi
mov rdx, rdi
mov rcx, rax
mov rbx, rax
call fcn.14002a470
mov r8d, esi
mov qword [rsp + 0x20], 0
mov rdx, rbx
mov dword [rsp + 0x28], 0x67452301
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x2c], 0xefcdab89
mov dword [rsp + 0x30], 0x98badcfe
mov dword [rsp + 0x34], 0x10325476
call fcn.140005820
lea rcx, [rsp + 0x20]
call fcn.140005af0
movups xmm0, xmmword [rsp + 0x78]
movups xmmword [rbp], xmm0
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.140009100
mov rbx, qword [rsp + 0xd8]
add rsp, 0xa0
pop rdi
pop rsi
pop rbp
ret

Function at 0x140009b34
Capabilities:
Parse pe header

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

Function at 0x140016ab0
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1400168ac

Function at 0x14001e260
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14001e276
mov al, 1
jmp 0x14001e2d6
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14001e287
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14001e2d4
mov ecx, dword [rcx + 0x18]
nop
call fcn.1400224f8
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14001e2d4
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14001e2d4
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14001e2d4
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14001e2d6
xor al, al
add rsp, 0x20
pop rbx
ret