joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4043a0
Capabilities:
Delete file
Get file size

Disassembly:
mov eax, dword [esp + 4]
push esi
push edi
lea esi, [ecx + 4]
push 0x103
push eax
push esi
call fcn.0042747e
add esp, 0xc
push 0
push 0
push 3
push 0
push 1
push SysReAllocString
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x4043fd
lea ecx, [esp + 0xc]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push edi
mov dword [esp + 0x10], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0xc], 0x8c000
jbe 0x4043fd
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop edi
pop esi
ret 4

Function at 0x405400
Capabilities:
Read .ini file

Disassembly:
mov eax, dword [esp + 4]
add ecx, 0x3a4
push ecx
push 0
push eax
push str.INSTALLED
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
xor ecx, ecx
cmp ecx, eax
sbb eax, eax
neg eax
ret 4
Function at 0x4074b0
Capabilities:
Delete file
Delete registry key

Disassembly:
sub esp, 0x108
push ebx
push ebp
push esi
lea eax, [esp + 0xc]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push eax
push 0x20006
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall
mov esi, ecx
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x24], 0
call edi
mov ebx, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x407507
mov edx, dword [esp + 0x10]
lea ecx, [esi + 0x23c]
push ecx
push edx
call ebx
mov eax, dword [esp + 0x10]
push eax
call ebp
lea ecx, [esp + 0x10]
lea edx, [esi + 0xc7c]
push ecx
push 0x20006
push 0
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call edi
test eax, eax
jne 0x40753a
mov ecx, dword [esp + 0x10]
lea eax, [esi + 0x23c]
push eax
push ecx
call ebx
mov edx, dword [esp + 0x10]
push edx
call ebp
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
lea ebx, [esi + 0x23c]
push ebx
push 0x435470
call fcn.00427e70
add esp, 8
test eax, eax
jne 0x407568
push eax
push 0x432408
call fcn.004267b0
add esp, 8
push ebx
push 0x43534c
call fcn.00427e70
add esp, 8
test eax, eax
jne 0x407588
push eax
push 0x432418
call fcn.004265a0
add esp, 8
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0x43b10c
call ebp
mov al, byte [0x4397e1]
test al, al
jne 0x4075b4
cmp dword [0x43b3b8], 6
je 0x4075b4
push 0x4397f8
call ebp
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x15]
mov byte [esp + 0x14], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
add esi, 0x4b6
push str.Language.ini
stosb byte es:[edi], al
push esi
lea eax, [esp + 0x1c]
push str._s_s
push eax
call fcn.00426b7c
add esp, 0x10
lea ecx, [esp + 0x14]
push ecx
call ebp
push str.CompsVer.inf
push esi
lea edx, [esp + 0x1c]
push str._s_s
push edx
call fcn.00426b7c
add esp, 0x10
lea eax, [esp + 0x14]
push eax
call ebp
push str.Language.ini
push str.Update
push esi
lea ecx, [esp + 0x20]
push str._s_s_s
push ecx
call fcn.00426b7c
add esp, 0x14
lea edx, [esp + 0x14]
push edx
call ebp
push ebx
push 0x435470
call fcn.00427e70
add esp, 8
test eax, eax
jne 0x407660
movsx eax, byte [esi]
push eax
lea ecx, [esp + 0x18]
push str._c:_rising.ini
push ecx
call fcn.00426b7c
add esp, 0xc
lea edx, [esp + 0x14]
push edx
call ebp
movsx eax, byte [esi]
push eax
lea ecx, [esp + 0x18]
push str._c:_rising.log
push ecx
call fcn.00426b7c
add esp, 0xc
lea edx, [esp + 0x14]
push edx
call ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret
Function at 0x407b70
Capabilities:
Enumerate files on windows
Read .ini file

Disassembly:
sub esp, 0x498
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push 0x4397f8
push 0
push 0x43538c
mov esi, ecx
push str.Setup
call edi
test eax, eax
push 0x4397f8
push 0
setne al
push str.QuickLaunch
push str.Setup
mov byte [esi + 0x228], al
call edi
lea edx, [esi + 0x4b6]
push str.CompsVer.inf
test eax, eax
lea edi, [esi + 0x1120]
push edx
setne cl
push str._s_s
push edi
mov byte [esi + 0x229], cl
call fcn.00426b7c
add esp, 0x10
lea ebp, [esi + 0x5ba]
lea ebx, [esi + 0x1224]
push str.CompsVer.inf
push ebp
push str._s_s
push ebx
call fcn.00426b7c
add esp, 0x10
lea eax, [esi + 0x1328]
push edi
push 0x20
push eax
push 0x43965c
push str.Version
push str.UPDATE
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea edi, [esi + 0x1348]
push ebx
push 0x20
push edi
push 0x43965c
push str.Version
push str.UPDATE
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [esi + 0x1328]
push edi
push eax
call fcn.00427e70
add esp, 8
test eax, eax
je 0x407c5a
mov dword [esi + 0x111c], 1
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x161]
mov byte [esp + 0x160], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push ebp
lea eax, [esp + 0x164]
push str._s.cfi
push eax
call fcn.00426b7c
mov ecx, 0x4f
xor eax, eax
lea edi, [esp + 0x378]
mov dword [esp + 0x374], 0
rep stosd dword es:[edi], eax
add esp, 0xc
lea ecx, [esp + 0x368]
lea edx, [esp + 0x160]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x407db1
lea ecx, [esp + 0x10]
call fcn.00410af0
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x265]
mov byte [esp + 0x264], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push ebp
lea eax, [esp + 0x268]
push str._sCfgDll.dll
push eax
call fcn.00426b7c
add esp, 0xc
lea ecx, [esp + 0x264]
push 0
push ecx
lea ecx, [esp + 0x18]
call fcn.00410d90
test eax, eax
jne 0x407d2e
lea ecx, [esp + 0x10]
call fcn.00410c10
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x498
ret
add esi, 0xace
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x5d]
mov byte [esp + 0x5c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea edx, [esp + 0x394]
stosb byte es:[edi], al
push edx
push ebp
lea eax, [esp + 0x64]
push str._s_s
push eax
call fcn.00426b7c
add esp, 0x10
lea ecx, [esp + 0x5c]
push ecx
push str.PatchConfig__s...
push 0x4396a0
call fcn.00404420
add esp, 0xc
lea edx, [esp + 0x5c]
lea ecx, [esp + 0x10]
push 0
push 0
push edx
push esi
call fcn.00411290
lea eax, [esp + 0x368]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x407d34
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [esp + 0x10]
call fcn.00410c10
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x498
ret
Function at 0x4086a0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x344
push ebp
push esi
mov ebp, ecx
push edi
mov ecx, 5
mov esi, str.SoftwareRisingRav
lea edi, [esp + 0x24c]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, 0x3c
lea edi, [esp + 0x260]
rep stosd dword es:[edi], eax
mov ecx, 0x40
lea edi, [esp + 0x9d]
mov byte [esp + 0x9c], al
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0xc]
lea ecx, [esp + 0x24c]
push eax
push 1
push 0
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4088b6
lea edx, [esp + 0x10]
lea eax, [esp + 0x9c]
push edx
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x18]
push eax
push ecx
push 0
push str.installpath
push edx
mov dword [esp + 0x2c], 1
mov dword [esp + 0x28], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4087a0
lea edi, [esp + 0x9c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
test ecx, ecx
jle 0x40876f
cmp byte [esp + ecx + 0x9b], 0x5c
je 0x40876f
mov byte [esp + ecx + 0x9c], 0x5c
mov byte [esp + ecx + 0x9d], 0
mov edi, str.Guidll.dll
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x9c]
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
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x9c]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x4087fc
push str._SetFilter_12
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4087e9
mov edx, dword [esp + 0x354]
neg edx
sbb edx, edx
add ebp, 0xbd2
add edx, 2
push edx
push 2
push ebp
call eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop esi
pop ebp
add esp, 0x344
ret 4
mov esi, dword [esp + 0x354]
mov ecx, 0x20
xor eax, eax
lea edi, [esp + 0x19]
mov byte [esp + 0x18], 0
rep stosd dword es:[edi], eax
neg esi
sbb esi, esi
add ebp, 0xbd2
stosb byte es:[edi], al
lea eax, [esp + 0x18]
push ebp
push eax
add esi, 0x1f5
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [esp + 0x18]
push 0x2e
push ecx
call fcn.00427f40
add esp, 8
test eax, eax
je 0x408857
lea edx, [esp + 0x18]
push 0x2e
push edx
call fcn.00427f40
add esp, 8
mov byte [eax], 0
lea ecx, [esp + 0x1a0]
call fcn.00401370
push 0
lea ecx, [esp + 0x1a4]
call fcn.00401620
test eax, eax
je 0x4088aa
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
lea ecx, [esp + 0x18]
push eax
push ecx
push esi
push 0x43965c
push str.RavMonD.exe0
lea ecx, [esp + 0x1b4]
call fcn.00401a00
lea ecx, [esp + 0x1a0]
call fcn.004018d0
lea ecx, [esp + 0x1a0]
call fcn.00401580
pop edi
pop esi
pop ebp
add esp, 0x344
ret 4
Function at 0x409010
Capabilities:
Create directory

Disassembly:
mov eax, dword [ecx + 0xc74]
test eax, eax
je 0x4090b9
push str.SHGetFolderPathA
push str.Shell32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4090cb
push ebx
mov ebx, dword [esp + 8]
push ebp
push esi
push edi
push ebx
push 1
push 0
push 0x1c
push 0
call eax
mov edi, 0x435634
or ecx, 0xffffffff
xor eax, eax
mov ebp, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push eax
mov esi, edi
mov edx, ecx
mov edi, ebx
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
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call ebp
mov edi, str.Rfw
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push eax
mov esi, edi
mov edx, ecx
mov edi, ebx
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
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call ebp
pop edi
pop esi
pop ebp
pop ebx
ret 4
mov eax, dword [esp + 4]
add ecx, 0x4b6
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
ret 4

Function at 0x4090d0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x10c
mov edx, ecx
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0xd]
mov byte [esp + 0xc], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
add edx, 0x4b6
stosb byte es:[edi], al
push edx
lea eax, [esp + 0x10]
push str._sNetConfig.ini
push eax
call fcn.00426b7c
add esp, 0xc
lea ecx, [esp + 0xc]
push ecx
push 0
push str.BlockNC
push str.Setting
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
test eax, eax
pop edi
je 0x40914b
lea ecx, [esp]
call fcn.00421820
lea ecx, [esp]
call fcn.00421860
test eax, eax
je 0x409142
lea ecx, [esp]
call fcn.00421930
lea ecx, [esp]
call fcn.00421850
add esp, 0x10c
ret

Function at 0x4092c0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x20
push ebx
push esi
mov ebx, ecx
push edi
mov ecx, 7
xor eax, eax
lea edi, [esp + 0xd]
mov byte [esp + 0xc], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebx + 0x5ba]
push str.CompsVer.inf
lea esi, [ebx + 0x1224]
push eax
push str._s_s
push esi
call fcn.00426b7c
add esp, 0x10
lea ecx, [esp + 0xc]
push esi
push 0x20
push ecx
push 0x43965c
push str.Version
push str.UPDATE
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea edx, [esp + 0xc]
push 0x2e
push edx
call fcn.00427cb0
add esp, 8
test eax, eax
je 0x40934f
lea eax, [esp + 0xc]
push 0x2e
push eax
call fcn.00427cb0
lea ecx, [esp + 0x14]
push 0x2e
push ecx
mov byte [eax], 0x5f
call fcn.00427cb0
add esp, 0x10
test eax, eax
jne 0x40932d
lea edi, [ebx + 0xc54]
lea edx, [esp + 0xc]
push edi
push edx
call fcn.00427e70
add esp, 8
test eax, eax
jne 0x40937d
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x40937d
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x20
ret
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x20
ret
Function at 0x409a2f
Capabilities:
Query or enumerate registry value

Disassembly:
mov al, byte [esp - 0x1f1]
sub esp, 0x1f4
push ebx
push ebp
push esi
mov esi, ecx
push 0xc
mov byte [esi + 8], al
call fcn.00426d08
mov cl, byte [esp + 0x13]
xor ebx, ebx
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], ebx
push 0xc
mov byte [esi + 0x14], cl
call fcn.00426d08
mov dl, byte [esp + 0x17]
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], ebx
push 0xc
mov byte [esi + 0x20], dl
call fcn.00426d08
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [esi + 0x24], eax
mov al, byte [esp + 0x1b]
mov dword [esi + 0x28], ebx
push 0xc
mov byte [esi + 0x2c], al
call fcn.00426d08
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [esi + 0x30], eax
mov al, byte [esp + 0x1f]
mov dword [esi + 0x34], ebx
mov ecx, dword [0x4350b8]
mov dword [esi + 0x3c], ecx
mov edx, dword [0x4350b8]
mov dword [esi + 0x40], edx
push 0xc
mov byte [esi + 0x44], al
call fcn.00426d08
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [esi + 0x48], eax
mov dword [esi + 0x4c], ebx
mov ecx, dword [0x4350b8]
push 0xac
mov dword [esi + 0x158], ecx
mov edx, dword [0x4350b8]
mov dword [esi + 0x244], edx
mov dword [esi], 0x43242c
mov dword [esi + 0x15c], ebx
call fcn.00426d08
add esp, 0x18
cmp eax, ebx
je 0x409aff
mov ecx, eax
call fcn.00401370
mov ebp, eax
jmp 0x409b01
xor ebp, ebp
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x101]
mov byte [esp + 0x100], bl
push 0x439fba
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x104]
push str._sRsCommx.dll
push eax
mov dword [esi + 0x240], ebp
call fcn.00426b7c
add esp, 0xc
lea ecx, [esp + 0x100]
push ecx
mov ecx, ebp
call fcn.00401620
test eax, eax
jne 0x409b64
mov edx, dword [esi + 0x240]
push edx
call fcn.00426ac0
add esp, 4
mov dword [esi + 0x240], ebx
mov ecx, 0x26
xor eax, eax
lea edi, [esp + 0x68]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x64]
mov dword [esp + 0x64], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov edx, dword [esp + 0x74]
lea edi, [esp + 0x21]
cmp edx, 2
lea edx, [esp + 0x14]
sete cl
push edx
mov byte [esi + 0x251], cl
push 1
mov ecx, 0x10
xor eax, eax
push ebx
mov byte [esp + 0x2c], bl
push str.SoftwareMicrosoftInternet_Explorer
rep stosd dword es:[edi], eax
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x28], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
mov dword [esi + 0x154], ebx
pop edi
jne 0x409c19
lea eax, [esp + 0x18]
lea ecx, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x18]
push ecx
push edx
push ebx
push str.Version
push eax
mov dword [esp + 0x30], 0x41
mov dword [esp + 0x2c], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x409c0e
movsx ecx, byte [esp + 0x1c]
sub ecx, 0x30
mov dword [esi + 0x154], ecx
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x1f4
ret
mov ecx, 0x4397a8
jmp 0x409a20
Function at 0x40c6a0
Capabilities:
Create directory
Delete file

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x104
test edx, edx
push edi
jne 0x40c6bb
xor eax, eax
pop edi
add esp, 0x104
ret 4
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 0x104
jbe 0x40c6e3
push 0x6f
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop edi
add esp, 0x104
ret 4
push ebx
push esi
push 0x103
lea eax, [esp + 0x10]
push edx
push eax
call fcn.00427d70
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileA]
add esp, 0xc
lea eax, [esp + 0xc]
push 0x5c
push eax
call fcn.00424fc0
mov esi, eax
add esp, 8
test esi, esi
je 0x40c741
lea ecx, [esp + 0xc]
push 0
push ecx
mov byte [esi], 0
call edi
test eax, eax
jne 0x40c739
lea edx, [esp + 0xc]
push edx
call ebx
lea eax, [esp + 0xc]
push 0
push eax
call edi
mov byte [esi], 0x5c
lea eax, [esi + 1]
jmp 0x40c708
lea ecx, [esp + 0xc]
push 0
push ecx
call edi
test eax, eax
jne 0x40c75e
lea edx, [esp + 0xc]
push edx
call ebx
lea eax, [esp + 0xc]
push 0
push eax
call edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop esi
pop ebx
test eax, eax
je 0x40c77d
cmp eax, 0xb7
je 0x40c77d
xor eax, eax
pop edi
add esp, 0x104
ret 4
mov eax, 1
pop edi
add esp, 0x104
ret 4
Function at 0x40ddf0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x104
push ebx
push ebp
mov ebp, dword [esp + 0x110]
push esi
test ebp, ebp
push edi
jne 0x40de14
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x104
ret 8
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x11]
mov byte [esp + 0x10], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x103
lea eax, [esp + 0x14]
push ebp
push eax
call fcn.00427d70
lea ecx, [esp + 0x1c]
push 0x5c
push ecx
call fcn.00425000
add esp, 0x14
test eax, eax
je 0x40de5e
lea edx, [esp + 0x10]
push 0x5c
push edx
call fcn.00425000
add esp, 8
mov byte [eax], 0
mov esi, dword [esp + 0x11c]
lea eax, [esp + 0x10]
push 5
push eax
push esi
push ebp
push str.Open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, 0x20
jg 0x40dfac
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, esi
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edi, [edx + ecx + 5]
push edi
call fcn.00426d08
mov ecx, edi
mov ebx, eax
mov edx, ecx
xor eax, eax
mov edi, ebx
add esp, 4
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
test esi, esi
rep stosb byte es:[edi], al
je 0x40df5f
or ecx, 0xffffffff
mov edi, 0x4358b4
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
shr ecx, 2
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
or ecx, 0xffffffff
mov edi, ebp
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
or ecx, 0xffffffff
mov edi, ebx
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x4358b0
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebx
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
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x11c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebx
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
jmp 0x40df79
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
push 5
rep movsb byte es:[edi], byte [esi]
push ebx
call dword [sym.imp.KERNEL32.dll_WinExec]
cmp eax, 0x1f
push ebx
jae 0x40dfa4
call fcn.00426ac0
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x104
ret 8
call fcn.00426ac0
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x104
ret 8
Function at 0x40e0c0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x431150
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x478
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov ecx, 0x11
xor eax, eax
lea edi, [ebp - 0x158]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x158], 0x44
mov dword [ebp - 0x12c], 1
mov word [ebp - 0x128], 0xa
xor ebx, ebx
mov dword [ebp - 0x168], ebx
mov dword [ebp - 0x164], ebx
mov esi, dword [ebp + 8]
cmp esi, ebx
je 0x40e2d8
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x40e2d8
mov byte [ebp - 0x114], bl
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x113]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov byte [ebp - 0x474], bl
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x473]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov byte [ebp - 0x370], bl
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x36f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [ebp + 0xc]
cmp eax, ebx
je 0x40e195
push eax
lea eax, [ebp - 0x474]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
cmp byte [esi], 0x22
push 0x104
jne 0x40e1a5
lea ecx, [esi + 1]
push ecx
jmp 0x40e1a6
push esi
lea edx, [ebp - 0x114]
push edx
call fcn.00427d70
add esp, 0xc
lea eax, [ebp - 0x474]
push eax
push esi
push str._s__s
lea ecx, [ebp - 0x370]
push ecx
call fcn.00426b7c
add esp, 0x10
push 0x5c
lea edx, [ebp - 0x114]
push edx
call fcn.00425000
add esp, 8
test eax, eax
je 0x40e1f9
push 0x5c
lea eax, [ebp - 0x114]
push eax
call fcn.00425000
add esp, 8
mov byte [eax], bl
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x168]
push ecx
lea edx, [ebp - 0x158]
push edx
lea eax, [ebp - 0x114]
push eax
push ebx
push 0x20
push ebx
push ebx
push ebx
lea ecx, [ebp - 0x370]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov dword [ebp - 0x478], eax
cmp eax, ebx
je 0x40e2d8
mov dword [ebp - 0x47c], ebx
mov eax, dword [ebp + 0x10]
cmp eax, 0xffffffff
jle 0x40e24b
push eax
mov edx, dword [ebp - 0x168]
push edx
jmp 0x40e254
push 0xffffffffffffffff
mov eax, dword [ebp - 0x168]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov esi, eax
mov dword [ebp - 0x47c], esi
mov eax, dword [ebp - 0x164]
cmp eax, ebx
je 0x40e273
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x480], ebx
mov eax, dword [ebp - 0x168]
cmp eax, ebx
je 0x40e2a6
lea ecx, [ebp - 0x480]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov edx, dword [ebp - 0x168]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x480], ebx
jne 0x40e2d8
cmp esi, 0x102
je 0x40e2d8
cmp esi, 0xffffffff
je 0x40e2d8
mov dword [ebp - 4], 0xffffffff
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc