joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180003570
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov edi, r8d
mov rsi, rdx
mov rbp, rcx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
jne 0x1800035a3
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov rcx, rax
mov qword [rsp + 0x30], rbx
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x1800035e7
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov r11d, eax
add r11, rbx
and edi, 0xf
jbe 0x1800035e2
cmp rbx, r11
jae 0x1800035e7
add edi, 0xffffffff
movzx eax, word [rbx]
lea rbx, [rbx + rax*2 + 2]
jne 0x1800035d0
cmp rbx, r11
jb 0x1800035eb
xor eax, eax
jmp 0x1800035f7
xor eax, eax
cmp word [rbx], ax
cmove rbx, rax
mov rax, rbx
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x180004db0
Capabilities:
Encode data using add xor sub operations
Encode data using xor
Encrypt data using des

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
mov r9d, dword [rcx]
mov r8d, dword [rcx + 4]
mov rbx, rcx
mov eax, r9d
mov rdi, rdx
mov esi, 8
shr eax, 4
lea rbp, [0x180000000]
xor eax, r8d
and eax, 0xf0f0f0f
xor r8d, eax
shl eax, 4
xor r9d, eax
mov eax, r9d
shr eax, 0x10
xor eax, r8d
movzx ecx, ax
xor r8d, ecx
shl ecx, 0x10
xor r9d, ecx
mov eax, r8d
shr eax, 2
xor eax, r9d
and eax, 0x33333333
xor r9d, eax
shl eax, 2
xor r8d, eax
mov r10d, r8d
shr r10d, 8
xor r10d, r9d
and r10d, 0xff00ff
xor r9d, r10d
shl r10d, 8
xor r10d, r8d
rol r10d, 1
mov r11d, r10d
xor r11d, r9d
and r11d, 0xaaaaaaaa
xor r10d, r11d
xor r11d, r9d
rol r11d, 1
nop word [rax + rax]
mov eax, r10d
add rdi, 0x10
ror eax, 4
xor eax, dword [rdi - 0x10]
mov edx, eax
mov ecx, eax
shr rax, 0x10
and eax, 0x3f
shr rcx, 0x18
and ecx, 0x3f
mov r9d, dword [rbp + rcx*4 + 0x1c770]
or r9d, dword [rbp + rax*4 + 0x1c970]
mov rax, rdx
and edx, 0x3f
shr rax, 8
and eax, 0x3f
or r9d, dword [rbp + rax*4 + 0x1cb70]
mov eax, dword [rdi - 0xc]
or r9d, dword [rbp + rdx*4 + 0x1cd70]
xor eax, r10d
mov r8d, eax
mov ecx, eax
shr rax, 0x10
and eax, 0x3f
shr rcx, 0x18
and ecx, 0x3f
mov edx, dword [rbp + rcx*4 + 0x1c870]
or edx, dword [rbp + rax*4 + 0x1ca70]
mov rax, r8
and r8d, 0x3f
shr rax, 8
and eax, 0x3f
or edx, dword [rbp + rax*4 + 0x1cc70]
or edx, dword [rbp + r8*4 + 0x1ce70]
or edx, r9d
xor r11d, edx
mov eax, r11d
ror eax, 4
xor eax, dword [rdi - 8]
mov edx, eax
mov ecx, eax
shr rax, 0x10
and eax, 0x3f
shr rcx, 0x18
and ecx, 0x3f
mov r9d, dword [rbp + rcx*4 + 0x1c770]
or r9d, dword [rbp + rax*4 + 0x1c970]
mov rax, rdx
and edx, 0x3f
shr rax, 8
and eax, 0x3f
or r9d, dword [rbp + rax*4 + 0x1cb70]
mov eax, dword [rdi - 4]
or r9d, dword [rbp + rdx*4 + 0x1cd70]
xor eax, r11d
mov r8d, eax
mov ecx, eax
shr rax, 0x10
and eax, 0x3f
shr rcx, 0x18
and ecx, 0x3f
mov edx, dword [rbp + rcx*4 + 0x1c870]
or edx, dword [rbp + rax*4 + 0x1ca70]
mov rax, r8
and r8d, 0x3f
shr rax, 8
and eax, 0x3f
or edx, dword [rbp + rax*4 + 0x1cc70]
or edx, dword [rbp + r8*4 + 0x1ce70]
or edx, r9d
xor r10d, edx
sub rsi, 1
jne 0x180004e60
mov rbp, qword [rsp + 0x10]
mov rsi, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
ror r10d, 1
mov edx, r10d
xor edx, r11d
and edx, 0xaaaaaaaa
xor r10d, edx
xor edx, r11d
ror edx, 1
mov eax, edx
shr eax, 8
xor eax, r10d
and eax, 0xff00ff
xor r10d, eax
shl eax, 8
xor edx, eax
mov eax, edx
shr eax, 2
xor eax, r10d
and eax, 0x33333333
xor r10d, eax
shl eax, 2
xor edx, eax
mov eax, r10d
shr eax, 0x10
xor eax, edx
movzx ecx, ax
xor edx, ecx
shl ecx, 0x10
xor r10d, ecx
mov ecx, r10d
shr ecx, 4
xor ecx, edx
and ecx, 0xf0f0f0f
mov eax, ecx
xor ecx, edx
shl eax, 4
xor eax, r10d
mov dword [rbx], eax
mov dword [rbx + 4], ecx
mov rbx, qword [rsp + 8]
ret
Function at 0x18000817f
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x18001b068]
jne 0x180006a9a
rol rcx, 0x10
test cx, 0xffff
jne 0x180006a96
repz ret
ror rcx, 0x10
jmp 0x1800080d8
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x180021420]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov r11, qword [0x180021518]
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 0x18000815d
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, [0x180021420]
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 0x18000817f
mov rax, qword [rsp + 0x88]
mov qword [0x180021518], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x1800214b8], rax
mov rax, qword [0x180021518]
mov qword [0x180021390], rax
mov rax, qword [rsp + 0x90]
mov qword [0x1800214a0], rax
mov dword [0x180021380], 0xc0000409
mov dword [0x180021384], 1
mov rax, qword [0x18001b068]
mov qword [rsp + 0x68], rax
mov rax, qword [0x18001b070]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x180021418], eax
mov ecx, 1
call fcn.18000c8b8
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x180015568]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x180021418], 0
jne 0x180008206
mov ecx, 1
call fcn.18000c8b8
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 0x18000b890
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
lea edx, [r8 + 1]
jmp 0x18000b704
Function at 0x1800113e8
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.1800090d8
xor ebx, ebx
mov rdi, rax
cmp qword [0x1800220f0], rbx
jne 0x1800114ee
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
je 0x1800115c3
lea rdx, str.MessageBoxA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1800115c3
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x1800220f0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x1800220f8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetUserObjectInformationA
mov rcx, rsi
mov qword [0x180022100], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov r11, rax
mov qword [0x180022110], rax
test rax, rax
je 0x1800114e5
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov qword [0x180022108], rax
jmp 0x1800114f5
mov rax, qword [0x180022108]
jmp 0x1800114fc
mov rax, qword [0x180022108]
mov r11, qword [0x180022110]
cmp rax, rdi
je 0x180011564
cmp r11, rdi
je 0x180011564
mov rcx, rax
call sub.KERNEL32.dll_DecodePointer
mov rcx, qword [0x180022110]
mov rsi, rax
call sub.KERNEL32.dll_DecodePointer
mov r12, rax
test rsi, rsi
je 0x180011564
test rax, rax
je 0x180011564
call rsi
test rax, rax
je 0x18001155e
lea rcx, [rsp + 0x88]
mov r9d, reloc.WS2_32.dll_inet_ntoa
lea r8, [rsp + 0x30]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x18001155e
test byte [rsp + 0x38], 1
jne 0x180011564
bts ebp, 0x15
jmp 0x1800115a2
mov rcx, qword [0x1800220f8]
cmp rcx, rdi
je 0x1800115a2
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x1800115a2
call rax
mov rbx, rax
test rax, rax
je 0x1800115a2
mov rcx, qword [0x180022100]
cmp rcx, rdi
je 0x1800115a2
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x1800115a2
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x1800220f0]
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x1800115c3
mov r9d, ebp
mov r8, r13
mov rdx, r14
mov rcx, rbx
call rax
jmp 0x1800115c5
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 0x140690058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1406901df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x140690089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14069006f
add dl, dl
jne 0x140690096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1406900f6
xor eax, eax
add dl, dl
jne 0x1406900a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1406901ad
add dl, dl
jne 0x1406900b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406900c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406900d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406900dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1406900ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14069007e
mov eax, 1
add dl, dl
jne 0x140690106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140690113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1406900fb
sub eax, ebx
mov ebx, 1
jne 0x14069014c
mov ecx, 1
add dl, dl
jne 0x14069012e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14069013b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140690123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14069007e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140690168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140690175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14069015d
cmp eax, 0x7d00
jae 0x14069019b
cmp eax, 0x500
jb 0x140690196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14069007e
cmp eax, 0x7f
ja 0x14069019e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14069007e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1406901d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x14069007e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x1400064d0]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x1400064e0]
mov dword [rax], 1
mov rax, qword [0x1400064f0]
mov dword [rax], 1
mov rax, qword [0x140006470]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x1400064c0]
mov dword [0x14000900c], 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 [0x1400065a0]
mov edx, dword [rdx]
mov dword [rax], edx
call sym.__p__commode
mov rdx, qword [0x140006580]
mov edx, dword [rdx]
mov dword [rax], edx
call sym._setargv
mov rax, qword [0x140006420]
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 0x140001450
Capabilities:
Get file size
Read file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x98
lea rbp, [rsp + 0x90]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov rax, qword [rbp + 0x28]
mov rcx, rax
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::c_str___const
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], pe_nt_image_headers64
mov dword [rsp + 0x20], 3
mov r9d, 0
mov r8d, 0
mov edx, 0x80000000
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CreateFileA]
call rax
mov qword [rbp - 8], rax
mov eax, 0xffffffff
cmp qword [rbp - 8], rax
jne 0x1400014e6
mov rax, qword [rbp + 0x20]
mov qword [rax], 0
mov qword [rax + 8], 0
mov qword [rax + 0x10], 0
mov rax, qword [rbp + 0x20]
mov rcx, rax
call fcn.140003b40
jmp 0x140001658
mov rax, qword [rbp - 8]
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetFileSize]
call rax
mov dword [rbp - 0xc], eax
cmp dword [rbp - 0xc], 0xffffffff
jne 0x140001540
mov rax, qword [rbp - 8]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp + 0x20]
mov qword [rax], 0
mov qword [rax + 8], 0
mov qword [rax + 0x10], 0
mov rax, qword [rbp + 0x20]
mov rcx, rax
call fcn.140003b40
jmp 0x140001658
lea rax, [rbp - 0x19]
mov qword [rbp - 0x18], rax
nop
nop
mov edx, dword [rbp - 0xc]
lea rcx, [rbp - 0x19]
lea rax, [rbp - 0x40]
mov r8, rcx
mov rcx, rax
call method.std::vector_unsigned_char__std::allocator_unsigned_char___.vector_unsigned_long_long__std::allocator_unsigned_char__const_
lea rax, [rbp - 0x19]
mov rcx, rax
call method.std::__new_allocator_unsigned_char_.__new_allocator__
nop
lea rax, [rbp - 0x40]
mov rcx, rax
call method.std::vector_unsigned_char__std::allocator_unsigned_char___.data__
mov rdx, rax
lea rcx, [rbp - 0x44]
mov r8d, dword [rbp - 0xc]
mov rax, qword [rbp - 8]
mov qword [rsp + 0x20], 0
mov r9, rcx
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_ReadFile]
call rax
test eax, eax
je 0x1400015ac
mov eax, dword [rbp - 0x44]
cmp dword [rbp - 0xc], eax
je 0x1400015b3
mov eax, 1
jmp 0x1400015b8
mov eax, 0
test al, al
je 0x1400015f5
mov rax, qword [rbp - 8]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp + 0x20]
mov qword [rax], 0
mov qword [rax + 8], 0
mov qword [rax + 0x10], 0
mov rax, qword [rbp + 0x20]
mov rcx, rax
call fcn.140003b40
jmp 0x140001615
mov rax, qword [rbp - 8]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
lea rax, [rbp - 0x40]
mov rcx, qword [rbp + 0x20]
mov rdx, rax
call method.std::vector_unsigned_char__std::allocator_unsigned_char___.vector_std::vector_unsigned_char__std::allocator_unsigned_char____
lea rax, [rbp - 0x40]
mov rcx, rax
call method.std::vector_unsigned_char__std::allocator_unsigned_char___.vector__
jmp 0x140001658
mov rax, qword [rbp + 0x20]
add rsp, 0x98
pop rbx
pop rbp
ret
Function at 0x1400016ca
Capabilities:
Enumerate processes

Disassembly:
push rbp
push rbx
sub rsp, 0x198
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x130], rcx
mov edx, 0
mov ecx, 2
call sym.CreateToolhelp32Snapshot
mov qword [rbp + 0x108], rax
lea rax, [rbp - 0x60]
mov r8d, 0x130
mov edx, 0
mov rcx, rax
call sym.memset
mov dword [rbp - 0x60], 0x130
lea rax, [rbp - 0x60]
mov rcx, qword [rbp + 0x108]
mov rdx, rax
call sym.Process32First
test eax, eax
setne al
test al, al
je 0x1400017da
lea rax, [rbp + 0xff]
mov qword [rbp + 0x100], rax
nop
nop
lea rcx, [rbp + 0xff]
lea rax, [rbp - 0x60]
lea rdx, [rax + 0x2c]
lea rax, [rbp + 0xd0]
mov r8, rcx
mov rcx, rax
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::basic_string_std.allocator_char____char_const__std::allocator_char__const_
mov rdx, qword [rbp + 0x130]
lea rax, [rbp + 0xd0]
mov rcx, rax
call method.bool_std::operator_char__std::char_traits_char___std.allocator_char____std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char____const__std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char____const_
mov ebx, eax
lea rax, [rbp + 0xd0]
mov rcx, rax
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::basic_string__
lea rax, [rbp + 0xff]
mov rcx, rax
call method.std::__new_allocator_char_.__new_allocator__
nop
test bl, bl
je 0x1400017ba
mov rax, qword [rbp + 0x108]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov eax, dword [rbp - 0x58]
jmp 0x140001812
lea rax, [rbp - 0x60]
mov rcx, qword [rbp + 0x108]
mov rdx, rax
call sym.Process32Next
test eax, eax
setne al
test al, al
jne 0x140001736
mov rax, qword [rbp + 0x108]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov eax, 0
jmp 0x140001812
add rsp, 0x198
pop rbx
pop rbp
ret
Function at 0x140001ef0
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 0x140001f60
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x140009094]
test esi, esi
mov rbx, rcx
jle 0x140002090
mov rax, qword [0x140009098]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140001fab
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140002035
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140001f90
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov rdi, rax
je 0x1400020b2
mov rax, qword [0x140009098]
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 [0x140009098]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140002097
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14000202e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140002040
add dword [0x140009094], 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 [0x140009098]
mov r9, rbx
mov qword [rbx + 8], rcx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000202e
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 0x140001fb8
mov rax, qword [0x140009098]
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 0x140002620
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140009100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400090e0]
test rbx, rbx
je 0x14000267c
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 0x140002673
test rsi, rsi
je 0x140002673
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140002658
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 0x140002890
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
call qword [rax]
nop
nop

Function at 0x1400028a0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__exit]
call qword [rax]
nop
nop
nop

Function at 0x1400028b0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x1400028c8
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x1400028d0
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x1400028e0
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 0x14000292d
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 0x140002924
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x14000292f
add rax, 0x28
cmp rax, r9
jne 0x140002910
xor eax, eax
ret

Function at 0x140002930
Capabilities:
Parse pe header

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

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

Function at 0x140002a50
Capabilities:
Parse pe header

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