joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400015d0
Capabilities:
Create thread
Encode data using xor
Encrypt data using rc4 via systemfunction032
Resume thread

Disassembly:
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x50
lea rcx, str._n
call fcn.140001070
lea rcx, str._Shellcode_APC_Thread_Injector___Designed_By_Kitos__n
call fcn.140001070
lea rcx, str._n
call fcn.140001070
xor edi, edi
lea rcx, str.Press__Enter__to_start..._n
mov dword [rsp + 0x60], edi
call fcn.140001070
lea rax, [rsp + 0x60]
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea r8, [0x140001590]
xor edx, edx
mov dword [rsp + 0x20], 4
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rsi, rax
test rax, rax
jne 0x14000165f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____CreateThread_Failed_With_Error_:__d__n
call fcn.140001070
xor eax, eax
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
mov edx, dword [rsp + 0x60]
lea rcx, str._i__Thread_Of_Id_:__d_created__n
mov qword [rsp + 0x68], rbx
call fcn.140001070
lea rcx, str.___Press__Enter__to_decrypt...__n
call fcn.140001070
lea rcx, str._i__Decrypting...__n
call fcn.140001070
xor bl, bl
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
xor edx, edx
mov rcx, rax
lea r8d, [rdx + 0x20]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r8, rax
test rax, rax
je 0x140001773
movzx edx, byte [0x140003110]
cmp edx, 0x88
je 0x1400016cf
nop
inc bl
movzx ecx, bl
xor ecx, edx
cmp ecx, 0x88
jne 0x1400016c0
lea rdx, [0x140003110]
nop word [rax + rax]
movsxd rcx, edi
movzx eax, bl
xor al, byte [rcx + rdx]
sub al, dil
inc edi
mov byte [r8 + rcx], al
cmp edi, 0x20
jb 0x1400016e0
test bl, bl
je 0x140001773
lea rbx, section..data
mov dword [rsp + 0x30], 0x20
lea rcx, str.Advapi32
mov qword [rsp + 0x48], rbx
mov dword [rsp + 0x34], 0x20
mov qword [rsp + 0x38], r8
mov dword [rsp + 0x40], 0x110
mov dword [rsp + 0x44], 0x110
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rcx, rax
lea rdx, str.SystemFunction032
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x40]
call rax
test eax, eax
je 0x140001788
mov edx, eax
lea rcx, str.____SystemFunction032_FAILED_With_Error:_0x_0.8X__n
call fcn.140001070
lea rcx, str.____Decryption_error...__n
call fcn.140001070
mov rbx, qword [rsp + 0x68]
mov eax, 0xffffffff
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
lea rcx, str._i__Running_Apc_Injection_Function_...__n
call fcn.140001070
mov r9d, 0x110
mov r8, rbx
mov rdx, rsi
mov rcx, 0xffffffffffffffff
call fcn.140001300
test eax, eax
je 0x140001773
lea rcx, str._i__APC_Injection_finished_n
call fcn.140001070
lea rcx, str.___DONE__n
call fcn.140001070
lea rcx, str._i__Resuming_Thread_...
call fcn.140001070
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ResumeThread]
lea rcx, str.___DONE__n
call fcn.140001070
lea rcx, str.___Press__Enter__To_Quit_...
call fcn.140001070
mov rbx, qword [rsp + 0x68]
xor eax, eax
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
Function at 0x140001378
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x140005460]
mov dword [rax], 1
mov rax, qword [0x140005470]
mov dword [rax], 1
mov rax, qword [0x140005480]
mov dword [rax], 1
mov rax, qword [0x140005420]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400013c9
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x1400013f5
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x10b
je 0x14000141b
cmp eax, 0x20b
je 0x140001442
jmp 0x140001471
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x14000142e
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x14000145d
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x1400016d0
Capabilities:
Create process on windows

Disassembly:
push rbp
push rdi
sub rsp, 0x98
lea rbp, [rsp + 0x90]
mov qword [rbp + 0x20], rcx
lea rdx, [rbp - 0x70]
mov eax, 0
mov ecx, 0xe
mov rdi, rdx
rep stosq qword [rdi], rax
mov dword [rbp - 0x70], 0x70
mov rax, qword [rbp + 0x20]
mov qword [rbp - 0x58], rax
mov dword [rbp - 0x40], 1
mov dword [rbp - 0x6c], 0x40
lea rax, [rbp - 0x70]
mov rcx, rax
mov rax, qword [sym.imp.SHELL32.dll_ShellExecuteExA]
call rax
mov rax, qword [rbp - 8]
mov edx, 0xffffffff
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call rax
mov rax, qword [rbp - 8]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
nop
add rsp, 0x98
pop rdi
pop rbp
ret

Function at 0x140001756
Capabilities:
Execute command

Disassembly:
push rbp
sub rsp, 0x480
lea rbp, [rsp + 0x80]
movabs rax, 0x72676f72505c3a43
movabs rdx, 0x445c617461446d61
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], rdx
movabs rax, 0x545c4e55522d5641
movabs rdx, 0x2456454424706d65
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], rdx
mov qword [rbp - 0x40], 0x4e5552
mov qword [rbp - 0x38], 0
mov qword [rbp - 0x30], 0
mov qword [rbp - 0x28], 0
mov qword [rbp - 0x20], 0
mov qword [rbp - 0x18], 0
mov qword [rbp - 0x10], 0
mov qword [rbp - 8], 0
mov dword [rbp], 0
lea rdx, [rbp - 0x60]
lea rax, [rbp + 0x10]
mov r8, rdx
lea rdx, str.rmdir__s__q__s
mov rcx, rax
call sym.sprintf
lea rax, [rbp + 0x10]
mov rcx, rax
call sym.system
nop
add rsp, 0x480
pop rbp
ret
Function at 0x140001815
Capabilities:
Enumerate files on windows
Hide graphical window

Disassembly:
push rbp
push rdi
sub rsp, 0x398
lea rbp, [rsp + 0x80]
call sym.__main
mov rax, qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
call rax
mov qword [rbp + 0x308], rax
mov rax, qword [rbp + 0x308]
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.USER32.dll_ShowWindow]
call rax
movabs rax, 0x72676f72505c3a43
movabs rdx, 0x445c617461446d61
mov qword [rbp + 0x1f0], rax
mov qword [rbp + 0x1f8], rdx
movabs rax, 0x545c4e55522d5641
movabs rdx, 0x2456454424706d65
mov qword [rbp + 0x200], rax
mov qword [rbp + 0x208], rdx
mov qword [rbp + 0x210], 0x4e5552
mov qword [rbp + 0x218], 0
lea rdx, [rbp + 0x220]
mov eax, 0
mov ecx, 0x1a
mov rdi, rdx
rep stosq qword [rdi], rax
mov rdx, rdi
mov dword [rdx], eax
add rdx, 4
lea rdx, [rbp + 0x1f0]
lea rax, [rbp - 0x60]
mov rcx, rax
call sym.strcpy
lea rax, [rbp - 0x60]
mov rcx, rax
call sym.strlen
mov rdx, rax
lea rax, [rbp - 0x60]
add rax, rdx
mov word [rax], 0x5c
lea rax, [rbp - 0x60]
mov rcx, rax
call sym.strlen
mov rdx, rax
lea rax, [rbp - 0x60]
add rax, rdx
movabs rdi, 0x78652e7075746573
mov qword [rax], rdi
mov word [rax + 8], 0x65
lea rdx, [rbp + 0xb0]
lea rax, [rbp - 0x60]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_FindFirstFileA]
call rax
mov qword [rbp + 0x300], rax
cmp qword [rbp + 0x300], 0xffffffffffffffff
jne 0x14000195b
call sym.deleteFilesInFolder
mov eax, 1
jmp 0x140001a27
lea rax, [rbp + 0xb0]
add rax, 0x2c
lea rdx, [0x14000505f]
mov rcx, rax
call sym.strcmp
test eax, eax
je 0x1400019e8
lea rax, [rbp + 0xb0]
add rax, 0x2c
lea rdx, [0x140005061]
mov rcx, rax
call sym.strcmp
test eax, eax
je 0x1400019e8
lea rdx, [rbp + 0x1f0]
lea rax, [rbp - 0x60]
mov rcx, rax
call sym.strcpy
lea rax, [rbp - 0x60]
mov rcx, rax
call sym.strlen
mov rdx, rax
lea rax, [rbp - 0x60]
add rax, rdx
mov word [rax], 0x5c
lea rax, [rbp + 0xb0]
lea rdx, [rax + 0x2c]
lea rax, [rbp - 0x60]
mov rcx, rax
call sym.strcat
lea rax, [rbp - 0x60]
mov rcx, rax
call sym.runExecutable
lea rdx, [rbp + 0xb0]
mov rax, qword [rbp + 0x300]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_FindNextFileA]
call rax
test eax, eax
jne 0x14000195b
mov rax, qword [rbp + 0x300]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_FindClose]
call rax
call sym.deleteFilesInFolder
mov eax, 0
add rsp, 0x398
pop rdi
pop rbp
ret

Function at 0x140001d70
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sym.__acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sym.fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sym.__acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sym.vfprintf
call sym.abort
nop
Function at 0x140002a42
Capabilities:
Get thread local storage value

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

Function at 0x140002be0
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x140002c08
mov eax, 0
jmp 0x140002c56
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x140002c31
mov eax, 0
jmp 0x140002c56
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x140002c51
mov eax, 0
jmp 0x140002c56
mov eax, 1
add rsp, 0x20
pop rbp
ret

Function at 0x140002c5c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x140002cda
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x140002cd1
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x140002cd1
mov rax, qword [rbp - 8]
jmp 0x140002cef
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x140002ca4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140927058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x1409271df
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 0x140927089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14092706f
add dl, dl
jne 0x140927096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1409270f6
xor eax, eax
add dl, dl
jne 0x1409270a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1409271ad
add dl, dl
jne 0x1409270b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1409270c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1409270d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1409270dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1409270ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14092707e
mov eax, 1
add dl, dl
jne 0x140927106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140927113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1409270fb
sub eax, ebx
mov ebx, 1
jne 0x14092714c
mov ecx, 1
add dl, dl
jne 0x14092712e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14092713b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140927123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14092707e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140927168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140927175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14092715d
cmp eax, 0x7d00
jae 0x14092719b
cmp eax, 0x500
jb 0x140927196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14092707e
cmp eax, 0x7f
ja 0x14092719e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14092707e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1409271d2
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 0x14092707e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x1400015f2
Capabilities:
Enumerate processes

Disassembly:
push rbp
sub rsp, 0x160
lea rbp, [rsp + 0x80]
mov qword [rbp + 0xf0], rcx
mov dword [rbp + 0xdc], 0
mov edx, 0
mov ecx, 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov qword [rbp + 0xd0], rax
cmp qword [rbp + 0xd0], 0xffffffffffffffff
jne 0x14000163d
mov eax, 0
jmp 0x1400016cf
mov dword [rbp - 0x60], 0x130
lea rdx, [rbp - 0x60]
mov rax, qword [rbp + 0xd0]
mov rcx, rax
call sub.KERNEL32.dll_Process32First
test eax, eax
jne 0x14000169f
mov rax, qword [rbp + 0xd0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov eax, 0
jmp 0x1400016cf
lea rax, [rbp - 0x60]
lea rdx, [rax + 0x2c]
mov rax, qword [rbp + 0xf0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_lstrcmpiA]
call rax
test eax, eax
jne 0x14000169f
mov eax, dword [rbp - 0x58]
mov dword [rbp + 0xdc], eax
jmp 0x1400016b6
lea rdx, [rbp - 0x60]
mov rax, qword [rbp + 0xd0]
mov rcx, rax
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x140001675
mov rax, qword [rbp + 0xd0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov eax, dword [rbp + 0xdc]
add rsp, 0x160
pop rbp
ret

Function at 0x140001e10
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 fcn.140002c30
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.140002c30
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]
Function at 0x140001e80
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1400380a4]
mov rbx, rcx
test esi, esi
jle 0x140001fb0
mov rax, qword [0x1400380a8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140001ecb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140001f55
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140001eb0
mov rcx, rbx
call fcn.1400028d0
mov rdi, rax
test rax, rax
je 0x140001fd2
mov rax, qword [0x1400380a8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140002a10
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1400380a8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140001fb7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140001f4e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140001f60
add dword [0x1400380a4], 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 [0x1400380a8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140001f4e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140001e10
nop dword [rax]
xor esi, esi
jmp 0x140001ed8
mov rax, qword [0x1400380a8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140001e10
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140001e10
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140002540
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140038100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400380e0]
test rbx, rbx
je 0x14000259c
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 0x140002593
test rsi, rsi
je 0x140002593
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140002578
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 0x1400028d0
Capabilities:
Enumerate pe sections
Parse pe header

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

Function at 0x140002950
Capabilities:
Parse pe header

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

Function at 0x140002a10
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400353d0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x140002a2f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140002a38
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x37a79da50
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 fcn.37a7a9ae0
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call fcn.37a7a9ae0
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]
Function at 0x37a79dac0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rdi, dword [0x37aace064]
mov r12, rcx
mov rsi, rdx
mov rbx, r8
test edi, edi
jle 0x37a79dc70
mov rax, qword [0x37aace068]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp r12, rdx
jb 0x37a79db0c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x37a79db97
add ecx, 1
add rax, 0x28
cmp ecx, edi
jne 0x37a79daf0
mov rcx, r12
call fcn.37a79e360
mov rbp, rax
test rax, rax
je 0x37a79dccd
mov rax, qword [0x37aace068]
lea rdi, [rdi + rdi*4]
shl rdi, 3
add rax, rdi
mov qword [rax + 0x20], rbp
mov dword [rax], 0
call fcn.37a79e490
mov ecx, dword [rbp + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x37aace068]
mov qword [rax + rdi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x37a79dcb2
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x37a79db90
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x37a79dc20
add dword [0x37aace064], 1
cmp ebx, 8
jae 0x37a79dbc8
test bl, 4
jne 0x37a79dc80
test ebx, ebx
je 0x37a79dbb9
movzx eax, byte [rsi]
mov byte [r12], al
test bl, 2
jne 0x37a79dca0
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rax, qword [rsi]
lea rcx, [r12 + 8]
and rcx, 0xfffffffffffffff8
mov qword [r12], rax
mov eax, ebx
mov rdx, qword [rsi + rax - 8]
mov qword [r12 + rax - 8], rdx
sub r12, rcx
add ebx, r12d
sub rsi, r12
and ebx, 0xfffffff8
cmp ebx, 8
jb 0x37a79dbb9
and ebx, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov r8, qword [rsi + rdx]
mov qword [rcx + rdx], r8
cmp eax, ebx
jb 0x37a79dbfa
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
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 rdi, qword [0x37aace068]
mov qword [rdi + 8], rcx
mov r9, rdi
mov qword [rdi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x37a79db90
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.37a79da50
xor edi, edi
jmp 0x37a79db17
mov eax, dword [rsi]
mov ebx, ebx
mov dword [r12], eax
mov eax, dword [rsi + rbx - 4]
mov dword [r12 + rbx - 4], eax
jmp 0x37a79dbb9
mov ebx, ebx
movzx eax, word [rsi + rbx - 2]
mov word [r12 + rbx - 2], ax
jmp 0x37a79dbb9
mov rax, qword [0x37aace068]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rdi + 0x18]
call fcn.37a79da50
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.37a79da50
nop
nop dword [rax]