joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40cd40
Capabilities:
Delete file

Disassembly:
mov eax, 0x1310
call fcn.00411c60
push ebx
mov ebx, dword [esp + 0x131c]
push ebp
mov ebp, dword [esp + 0x131c]
push esi
push edi
push 0x2ee0
lea eax, [esp + 0x14]
push ebx
push eax
lea ecx, [esp + 0x20]
push 0x208
push ecx
push ebp
call fcn.00408b30
add esp, 0x18
test al, al
je 0x40cee7
cmp dword [esp + 0x10], 0x208
jne 0x40cee7
lea edx, [esp + 0x21c]
push 0x104
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [esp + 0x21c]
push 0x5c
push eax
call fcn.00412b80
mov byte [eax + 1], 0
lea edi, [esp + 0x1c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x224]
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x224]
and ecx, 3
push 0x42e508
rep movsb byte es:[edi], byte [esi]
push eax
call fcn.00412307
mov edi, eax
add esp, 0x10
test edi, edi
je 0x40cee7
mov eax, dword [esp + 0x214]
xor esi, esi
test eax, eax
jbe 0x40cebd
mov ecx, eax
push 0x2ee0
sub ecx, esi
lea edx, [esp + 0x14]
cmp ecx, 0x1000
push ebx
push edx
jbe 0x40ce7b
lea eax, [esp + 0x32c]
push 0x1000
push eax
push ebp
call fcn.00408b30
add esp, 0x18
test al, al
push edi
je 0x40cf15
push 0x1000
lea ecx, [esp + 0x328]
push 1
push ecx
call fcn.00411dcd
add esp, 0x10
cmp eax, 0x1000
jne 0x40ced3
add esi, eax
mov eax, dword [esp + 0x214]
cmp esi, eax
jae 0x40cebd
jmp 0x40ce18
sub eax, esi
push eax
lea eax, [esp + 0x330]
push eax
push ebp
call fcn.00408b30
add esp, 0x18
test al, al
push edi
je 0x40cef4
mov ecx, dword [esp + 0x218]
lea edx, [esp + 0x324]
sub ecx, esi
push ecx
push 1
push edx
call fcn.00411dcd
mov ecx, dword [esp + 0x224]
add esp, 0x10
sub ecx, esi
cmp eax, ecx
jne 0x40cf14
push edi
call fcn.00412259
add esp, 4
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1310
ret
push edi
call fcn.00412259
add esp, 4
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x1310
ret
call fcn.00412259
add esp, 4
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x1310
ret
push edi
call fcn.00412259
add esp, 4
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x1310
ret
Function at 0x40db20
Capabilities:
Check mutex on windows
Create thread
Terminate thread

Disassembly:
sub esp, 0x12c
push str.Globalwlg_ctrl
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x40db4a
xor eax, eax
add esp, 0x12c
ret 0x10
push 0x432ba8
push 0x432bac
call fcn.00410590
add esp, 8
call fcn.00410460
push 0
call fcn.004256e3
test eax, eax
jne 0x40db75
add esp, 0x12c
ret 0x10
push str.CrashRpt.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
je 0x40db9b
push str.Install
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40db9b
push 2
call eax
add esp, 4
mov ecx, 0x432b70
call fcn.0040fbc0
test eax, eax
jne 0x40dbb2
add esp, 0x12c
ret 0x10
push ebx
push ebp
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, dword [0x432b74]
lea edx, [esp + 0x38]
push 0x104
push edx
push 0
mov dword [ecx + 0x2c088], eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [esp + 0x38]
push 0x5c
push eax
call fcn.00412b80
add esp, 8
lea ecx, [esp + 0x38]
mov byte [eax + 1], 0
push ecx
mov ecx, 0x432bc0
call fcn.0041ef0f
mov ecx, 0x432bc0
call fcn.0041f24d
call fcn.00401c00
push 0x432af0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov esi, dword [sym.imp.KERNEL32.dll_CreateThread]
push 0
push 0
push 0
push 0x40e200
push 0
push 0
mov dword [0x433018], eax
call esi
push 0
push 0
push 0
push 0x40dfa0
push 0
push 0
mov dword [esp + 0x28], eax
call esi
lea ecx, [esp + 0x18]
mov dword [esp + 0x14], eax
call fcn.0040e8b0
mov ebp, dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
mov esi, dword [sym.imp.USER32.dll_PeekMessageA]
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageA]
push 0xff
push 0xa
push 0
push 0x433018
push 1
call ebp
test eax, eax
je 0x40dcca
cmp eax, 1
jne 0x40dc7a
push eax
push 0
push 0
lea edx, [esp + 0x28]
push 0
push edx
call esi
test eax, eax
je 0x40dc7a
lea eax, [esp + 0x1c]
push eax
call edi
lea ecx, [esp + 0x1c]
push ecx
call ebx
push 1
push 0
push 0
lea edx, [esp + 0x28]
push 0
push edx
call esi
test eax, eax
jne 0x40dca7
jmp 0x40dc7a
mov edi, dword [esp + 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_TerminateThread]
push 0
push edi
call esi
push 0xffffffffffffffff
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call edi
push 0
mov ebx, dword [esp + 0x18]
push ebx
call esi
push 0xffffffffffffffff
push ebx
call edi
push 0x432af0
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x12c
ret 0x10
Function at 0x40dfd0
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x426408
push eax
mov eax, dword [0x432b74]
mov dword fs:[0], esp
sub esp, 0x10
add eax, 0x5d7
push ebx
push esi
push eax
call fcn.00401a00
add esp, 4
test eax, eax
je 0x40e1ed
mov ecx, dword [0x432b74]
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov al, 1
cmp byte [ecx + 0x5ee], al
jne 0x40e180
cmp byte [ecx + 0x5ef], al
jne 0x40e03a
call esi
sub eax, dword [0x432bd4]
cmp eax, 0x1d4c0
ja 0x40e1ed
mov ecx, dword [0x432b74]
mov al, byte [ecx + 0x13ea2]
test al, al
je 0x40e11f
call esi
mov ebx, dword [0x432bd8]
mov edx, dword [0x432b74]
mov ecx, eax
mov eax, 0x3c
sub ecx, ebx
xor ebx, ebx
mov bl, byte [edx + 0x13ea2]
cdq
idiv ebx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cmp ecx, eax
jbe 0x40e11f
call esi
lea ecx, [esp + 8]
mov dword [0x432bd8], eax
call fcn.00401000
lea ecx, [esp + 8]
mov dword [esp + 0x20], 0
call fcn.00401090
test eax, eax
je 0x40e10e
mov ecx, dword [0x432b74]
mov al, byte [ecx + 0x5e9]
cmp al, 0x14
jb 0x40e0c0
and eax, 0xff
jmp 0x40e0c5
mov eax, 0x14
mov cl, byte [ecx + 0x13ea1]
push ecx
push eax
call fcn.00401cd0
mov edx, dword [0x432b74]
add esp, 8
mov al, byte [edx + 0x13ea1]
test al, al
jne 0x40e10e
call esi
lea ecx, [esp + 8]
mov dword [0x432bd0], eax
mov dword [esp + 0x20], 0xffffffff
call fcn.00401070
pop esi
pop ebx
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret
lea ecx, [esp + 8]
mov dword [esp + 0x20], 0xffffffff
call fcn.00401070
mov eax, dword [0x432be0]
test eax, eax
jle 0x40e180
call esi
sub eax, dword [0x432bdc]
cmp eax, 0x2710
jbe 0x40e180
call esi
mov dword [0x432bdc], eax
mov eax, dword [0x432b74]
mov al, byte [eax + 0x5e9]
cmp al, 0x14
jb 0x40e154
and eax, 0xff
jmp 0x40e159
mov eax, 0x14
push 0
push eax
call fcn.00401cd0
mov eax, dword [0x432be0]
add esp, 8
dec eax
pop esi
mov dword [0x432be0], eax
pop ebx
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret
mov ecx, dword [0x432b74]
mov eax, dword [ecx + 0x5ea]
test eax, eax
je 0x40e1ed
push edi
call esi
mov edi, dword [0x432b74]
mov ecx, eax
mov eax, 0xe10
mov ebx, dword [0x432bd0]
cdq
idiv dword [edi + 0x5ea]
sub ecx, ebx
pop edi
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea edx, [eax + eax*4]
shl edx, 3
cmp ecx, edx
jb 0x40e1ed
call esi
mov dword [0x432bd0], eax
mov eax, dword [0x432b74]
mov al, byte [eax + 0x5e9]
cmp al, 0x14
jb 0x40e1dd
and eax, 0xff
jmp 0x40e1e2
mov eax, 0x14
push 0
push eax
call fcn.00401cd0
add esp, 8
mov ecx, dword [esp + 0x18]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret
Function at 0x40e690
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x42642b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x98
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x10]
push 1
push eax
mov dword [esp + 0x24], 0x10
mov dword [esp + 0x3c], ecx
call fcn.004087f0
add esp, 8
test al, al
je 0x40e87c
call fcn.00401c80
lea ecx, [esp + 0x20]
push eax
push ecx
call fcn.004029c0
mov eax, dword [eax]
mov edx, dword [esp + 0x18]
push 0x2382
push eax
push edx
mov dword [esp + 0xc4], 0
call fcn.00408820
add esp, 0x14
lea ecx, [esp + 0x20]
test al, al
sete bl
mov dword [esp + 0xb0], 0xffffffff
call fcn.0041edd2
test bl, bl
je 0x40e729
mov eax, dword [esp + 0x10]
push eax
jmp 0x40e874
mov ecx, dword [esp + 0x10]
push ecx
call fcn.00408860
add esp, 4
test al, al
jne 0x40e744
mov edx, dword [esp + 0x10]
push edx
jmp 0x40e874
call dword [sym.imp.WS2_32.dll_WSACreateEvent]
mov ebp, eax
test ebp, ebp
jne 0x40e75a
mov eax, dword [esp + 0x10]
push eax
jmp 0x40e874
mov edx, dword [esp + 0x10]
mov ecx, dword [0x433018]
push 8
push ebp
push edx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], ebp
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
cmp eax, 0xffffffff
jne 0x40e794
mov eax, dword [esp + 0x10]
push eax
call fcn.004088a0
add esp, 4
push ebp
call dword [sym.imp.WS2_32.dll_WSACloseEvent]
jmp 0x40e87c
mov ecx, dword [0x432bf4]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0
push 0xffffffffffffffff
lea edx, [esp + 0x1c]
push 0
push edx
push 2
call dword [sym.imp.WS2_32.dll_WSAWaitForMultipleEvents]
cmp eax, 0xffffffff
je 0x40e868
test eax, eax
je 0x40e868
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x7c]
push eax
push ebp
push ecx
call dword [sym.imp.WS2_32.dll_WSAEnumNetworkEvents]
cmp eax, 0xffffffff
je 0x40e898
cmp dword [esp + 0x7c], 8
jne 0x40e84c
mov ecx, dword [esp + 0x10]
push 0
lea edx, [esp + 0x20]
push 0
lea eax, [esp + 0x2c]
push edx
push eax
push ecx
call dword [sym.imp.WS2_32.dll_WSAAccept]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40e84c
mov edx, dword [esp + 0x28]
push edx
call dword [sym.imp.WS2_32.dll_inet_ntoa]
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x3c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x34]
mov dword [esp + 0x38], ebx
push ecx
push 0
push 0x40e680
call fcn.00412cc7
add esp, 0xc
push 0
push 0xffffffffffffffff
lea edx, [esp + 0x1c]
push 0
push edx
push 2
call dword [sym.imp.WS2_32.dll_WSAWaitForMultipleEvents]
cmp eax, 0xffffffff
jne 0x40e7bd
push ebp
call dword [sym.imp.WS2_32.dll_WSACloseEvent]
mov ecx, dword [esp + 0x10]
push ecx
call fcn.004088a0
add esp, 4
mov ecx, dword [esp + 0xa8]
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
mov dword fs:[0], ecx
add esp, 0xa4
ret
push ebp
call dword [sym.imp.WS2_32.dll_WSACloseEvent]
mov eax, dword [esp + 0x10]
push eax
jmp 0x40e874
Function at 0x40e8b0
Capabilities:
Create thread

Disassembly:
push esi
push 0
push 1
push 0
mov esi, ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
push eax
mov dword [0x432bf4], eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push esi
push 0
push 0x40e670
call fcn.00412cc7
add esp, 0xc
cmp eax, 0xffffffff
pop esi
jne 0x40e8f2
mov eax, dword [0x432bf4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
ret
mov ecx, dword [0x432bf4]
push 0xea60
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x40e918
mov edx, dword [0x432bf4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
ret
mov eax, dword [0x432bf4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
ret
Function at 0x40f890
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4264eb
push eax
mov eax, 0x2d5e4
mov dword fs:[0], esp
call fcn.00411c60
push ebp
push esi
mov ebp, ecx
push edi
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x1c]
push 0x104
rep stosd dword es:[edi], eax
lea eax, [esp + 0x20]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 0x1c]
push 0x5c
push ecx
call fcn.00412b80
mov byte [eax + 1], 0
mov edi, str.spy9.map
or ecx, 0xffffffff
xor eax, eax
add esp, 8
lea edx, [esp + 0x1c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x1c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x40f9c9
mov ecx, ebp
call fcn.0040fc00
lea ecx, [esp + 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
and al, 0xfe
lea edx, [esp + 0x1c]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0xc]
call fcn.00421844
push 0
lea ecx, [esp + 0x20]
push 0x1001
push ecx
lea ecx, [esp + 0x18]
mov dword [esp + 0x2d604], 0
call fcn.00421956
test eax, eax
je 0x40f9ae
mov ecx, 0xb534
xor eax, eax
lea edi, [esp + 0x120]
lea edx, [esp + 0x120]
rep stosd dword es:[edi], eax
push 0x2d4d0
push edx
lea ecx, [esp + 0x14]
call fcn.00421aad
lea ecx, [esp + 0xc]
call fcn.00421b71
mov ecx, ebp
call fcn.0040fc20
lea ecx, [esp + 0xc]
mov dword [esp + 0x2d5f8], 0xffffffff
call fcn.00421899
mov ecx, dword [esp + 0x2d5f0]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x2d5f0
ret
Function at 0x40fca0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x426526
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x110
push edi
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x10]
push 0x104
rep stosd dword es:[edi], eax
lea eax, [esp + 0x14]
mov dword [esp + 0x120], 1
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 0x10]
push 0x5c
push ecx
call fcn.00412b80
add esp, 8
lea edx, [esp + 0x10]
lea ecx, [esp + 4]
mov byte [eax + 1], 0
push edx
call fcn.0041ee40
mov eax, dword [0x42f390]
mov dword [esp + 8], eax
mov ecx, dword [esp + 0x128]
mov edx, dword [esp + 0x124]
push ecx
push edx
lea eax, [esp + 0x10]
push str.__CMD_s__PARAM_s__
push eax
mov byte [esp + 0x12c], 3
call fcn.0041e21c
add esp, 0x10
lea ecx, [esp + 4]
lea edx, [esp + 0xc]
push str.wlgdev.exe
push ecx
push edx
call fcn.0041f01b
mov ecx, dword [esp + 4]
mov edx, dword [esp + 8]
mov eax, dword [eax]
push 0
push ecx
push edx
push eax
push str.open
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
lea ecx, [esp + 0xc]
call fcn.0041edd2
lea ecx, [esp + 8]
mov byte [esp + 0x11c], 2
call fcn.0041edd2
lea ecx, [esp + 4]
mov byte [esp + 0x11c], 1
call fcn.0041edd2
lea ecx, [esp + 0x124]
mov byte [esp + 0x11c], 0
call fcn.0041edd2
lea ecx, [esp + 0x128]
mov dword [esp + 0x11c], 0xffffffff
call fcn.0041edd2
mov ecx, dword [esp + 0x114]
pop edi
mov dword fs:[0], ecx
add esp, 0x11c
ret

Function at 0x40fde0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x104
mov ecx, 0x41
xor eax, eax
push ebx
push esi
push edi
lea edi, [esp + 0xc]
rep stosd dword es:[edi], eax
lea eax, [esp + 0xc]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 0xc]
push 0x5c
push ecx
call fcn.00412b80
mov byte [eax + 1], 0
mov edi, str.server.ini
or ecx, 0xffffffff
xor eax, eax
add esp, 8
lea edx, [esp + 0xc]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov edx, dword [esp + 0x118]
mov ecx, ebx
and ecx, 3
lea eax, [esp + 0xc]
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x11c]
push eax
mov eax, dword [esp + 0x118]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
pop edi
pop esi
pop ebx
add esp, 0x104
ret
Function at 0x40ff50
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push 0xffffffffffffffff
push 0x426548
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x58
push esi
push edi
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x1c]
push 0x432ae0
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x78]
mov dword [esp + 0x6c], 1
push eax
mov dword [esp + 0x24], 0x44
mov dword [esp + 0x50], 1
call fcn.004117d4
add esp, 8
lea edx, [esp + 0x74]
test eax, eax
sete cl
push edx
lea eax, [esp + 0xc]
and ecx, 0xff
push 0x42eca0
push eax
mov esi, ecx
call fcn.0041f08f
push eax
lea ecx, [esp + 0x78]
mov byte [esp + 0x6c], 2
call fcn.0041eebf
lea ecx, [esp + 8]
mov byte [esp + 0x68], 1
call fcn.0041edd2
mov ecx, dword [esp + 0x74]
lea edx, [esp + 0x1c]
neg esi
sbb esi, esi
mov eax, dword [esp + 0x70]
not esi
and esi, ecx
lea ecx, [esp + 0xc]
push ecx
push edx
push 0
push 0
push 0
push 1
push 0
push 0
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x410022
mov eax, dword [esp + 0x78]
dec eax
je 0x4100ce
dec eax
je 0x410073
dec eax
je 0x410054
lea ecx, [esp + 0x70]
mov byte [esp + 0x68], 0
call fcn.0041edd2
lea ecx, [esp + 0x74]
mov dword [esp + 0x68], 0xffffffff
call fcn.0041edd2
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
add esp, 0x64
ret
mov esi, dword [esp + 0xc]
lea ecx, [esp + 0x70]
mov byte [esp + 0x68], 0
call fcn.0041edd2
mov dword [esp + 0x68], 0xffffffff
jmp 0x4100f7
mov ecx, dword [esp + 0xc]
or edi, 0xffffffff
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, edi
je 0x41009a
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x78]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
jne 0x4100c8
lea ecx, [esp + 0x70]
mov byte [esp + 0x68], 0
call fcn.0041edd2
lea ecx, [esp + 0x74]
mov dword [esp + 0x68], edi
call fcn.0041edd2
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
add esp, 0x64
ret
mov esi, dword [esp + 0x78]
jmp 0x4100e5
mov ecx, dword [esp + 0xc]
or edi, 0xffffffff
push edi
push ecx
call dword [sym.imp.USER32.dll_WaitForInputIdle]
cmp eax, edi
je 0x41009a
mov esi, dword [esp + 0xc]
lea ecx, [esp + 0x70]
mov byte [esp + 0x68], 0
call fcn.0041edd2
mov dword [esp + 0x68], edi
lea ecx, [esp + 0x74]
call fcn.0041edd2
mov ecx, dword [esp + 0x60]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x64
ret
Function at 0x410220
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x42659b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
push ebp
push esi
push edi
mov dword [esp + 0x220], 0
lea eax, [esp + 0x10]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 0x10]
push 0x5c
push ecx
call fcn.00412b80
mov byte [eax + 1], 0
lea edi, [esp + 0x18]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x11c]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x18]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x230]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [0x42f390]
mov ecx, ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0x234]
lea edx, [esp + 0x18]
push ecx
push edx
lea eax, [esp + 0x1c]
push str._s__s
push eax
mov byte [esp + 0x238], 2
call fcn.0041e21c
mov ecx, dword [esp + 0x244]
push 0x432ae0
push ecx
call fcn.004117d4
mov ebp, dword [esp + 0x24c]
mov edx, dword [esp + 0x250]
add esp, 0x20
lea ecx, [esp + 0x114]
neg eax
sbb eax, eax
and eax, ebp
neg edx
sbb edx, edx
and edx, 5
push edx
push ecx
lea edx, [esp + 0x18]
push eax
push edx
push str.open
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
lea ecx, [esp + 0xc]
mov byte [esp + 0x220], 1
call fcn.0041edd2
lea ecx, [esp + 0x228]
mov byte [esp + 0x220], 0
call fcn.0041edd2
lea ecx, [esp + 0x22c]
mov dword [esp + 0x220], 0xffffffff
call fcn.0041edd2
mov ecx, dword [esp + 0x218]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x218
ret

Function at 0x42012f
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x420167
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0041f22d
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0041f205
jmp 0x420173
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4
Function at 0x4b4620
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x477408
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
push ebp
push edi
mov edi, ecx
xor ebp, ebp
mov ecx, dword [esp + 0x48]
lea eax, [esp + 0x48]
push ebp
push eax
push ecx
lea ecx, [edi + 0x104]
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ebp
call fcn.004af540
test eax, eax
jne 0x4b468c
push ebp
push 0x4a8f3c
mov ecx, edi
call fcn.004b38a0
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
pop edi
pop ebp
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
add esp, 0x3c
ret 0x10
mov edx, dword [esp + 0x48]
push ebx
mov ebx, dword [esp + 0x50]
push esi
push ebp
push ebp
push ebx
lea ecx, [edx + 0x14]
call fcn.004aef70
lea ecx, [esp + 0x2c]
mov esi, eax
call fcn.004a5b80
push ebx
mov dword [esp + 0x4c], ebp
call fcn.004af6f0
add esp, 4
test eax, eax
je 0x4b472f
add esi, 0x18
push esi
call 0x4edf10
add esi, eax
push esi
call 0x4edf10
mov ecx, dword [esp + 0x60]
add esp, 8
cmp ecx, 3
lea eax, [esi + eax + 8]
ja 0x4b4a32
jmp dword [ecx*4 + 0x415e70]
mov eax, dword [esi]
push ebp
push eax
mov ecx, edi
call fcn.004b39e0
mov ebx, dword [esp + 0x58]
mov ebp, eax
lea edi, [esi + 0x18]
mov edx, dword [ebp + 0x28]
lea ecx, [ebx + ebx*4]
mov esi, edi
lea eax, [edx + ecx*4]
push esi
mov dword [esp + 0x5c], eax
call 0x4edf10
add esi, eax
push esi
call 0x4edf10
add esi, eax
add esp, 8
mov esi, dword [esi]
test esi, esi
je 0x4b4780
mov ecx, dword [esi + 0x1c]
push ecx
call dword [fcn.0047b530]
test eax, eax
je 0x4b4780
mov eax, 1
jmp 0x4b4782
xor eax, eax
cmp ebx, 8
jge 0x4b49e7
cmp ebx, 7
ja 0x4b4a32
jmp dword [ebx*4 + 0x415e80]
test eax, eax
jne 0x4b49fa
mov ecx, dword [esp + 0x10]
push eax
push 0x4a8f28
call fcn.004b38a0
push 6
call dword [ebp + 0x2c]
lea edx, [esp + 0x1c]
xor ecx, ecx
add ebx, 0xfffffff8
push edx
mov dword [esp + 0x20], ecx
push ebx
push esi
mov dword [esp + 0x2c], ecx
call eax
mov edx, dword [esp + 0x5c]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x5c]
push ecx
mov ecx, dword [esp + 0x18]
push edx
push eax
call fcn.004b4f40
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
lea ecx, [esp + 0x2c]
mov esi, eax
mov dword [esp + 0x48], 0xffffffff
mov dword [esp + 0x2c], 0x491e60
call fcn.004a5d80
mov ecx, dword [esp + 0x40]
mov eax, esi
pop esi
mov edx, edi
pop ebx
pop edi
pop ebp
mov dword fs:[0], ecx
add esp, 0x3c
ret 0x10