joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40a480
Capabilities:
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x41eaa2
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
push 2
push 0
lea ecx, [esp + 0x3c]
mov dword [esp + 0x54], 6
call sub.MFC42.DLL_COleVariant::COleVariant_1
push 0xa
push 0x80020004
lea ecx, [esp + 0x2c]
mov byte [esp + 0x54], 7
call sub.MFC42.DLL_COleVariant::COleVariant
mov ebx, 8
lea ecx, [esi + 0x28]
mov byte [esp + 0x4c], bl
call sub.MFC42.DLL_COleDispatchDriver::ReleaseDispatch
lea ecx, [esi + 0x10]
call sub.MFC42.DLL_COleDispatchDriver::ReleaseDispatch
lea ecx, [esi + 0x20]
call sub.MFC42.DLL_COleDispatchDriver::ReleaseDispatch
mov edi, dword [esi + 0x30]
mov word [esp + 0x14], bx
push edi
call fcn.0041dc94
test eax, eax
mov dword [esp + 0x1c], eax
jne 0x40a511
test edi, edi
je 0x40a511
push 0x8007000e
call fcn.0041dc48
lea eax, [esp + 0x24]
lea ecx, [esp + 0x14]
lea ebp, [esi + 8]
push eax
lea edx, [esp + 0x38]
push ecx
push edx
mov ecx, ebp
mov byte [esp + 0x58], 9
call fcn.00406780
lea eax, [esp + 0x14]
mov byte [esp + 0x4c], bl
mov ebx, dword [sym.imp.OLEAUT32.dll_VariantCopy]
push eax
call ebx
test eax, eax
jge 0x40a54a
push eax
call fcn.0041dc48
mov ecx, ebp
call sub.MFC42.DLL_COleDispatchDriver::ReleaseDispatch
lea edi, [esi + 0x18]
mov ecx, edi
call fcn.00406860
mov ecx, edi
call sub.MFC42.DLL_COleDispatchDriver::ReleaseDispatch
mov ecx, esi
call fcn.004066f0
mov ecx, esi
call sub.MFC42.DLL_COleDispatchDriver::ReleaseDispatch
call dword [sym.imp.ole32.dll_CoUninitialize]
lea ecx, [esp + 0x24]
push ecx
call ebx
lea edx, [esp + 0x34]
push edx
call ebx
lea ecx, [esi + 0x30]
mov byte [esp + 0x4c], 5
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x28]
mov byte [esp + 0x4c], 4
call sub.MFC42.DLL_COleDispatchDriver::ReleaseDispatch
lea ecx, [esi + 0x20]
mov byte [esp + 0x4c], 3
call sub.MFC42.DLL_COleDispatchDriver::ReleaseDispatch
mov ecx, edi
mov byte [esp + 0x4c], 2
call sub.MFC42.DLL_COleDispatchDriver::ReleaseDispatch
lea ecx, [esi + 0x10]
mov byte [esp + 0x4c], 1
call sub.MFC42.DLL_COleDispatchDriver::ReleaseDispatch
mov ecx, ebp
mov byte [esp + 0x4c], 0
call sub.MFC42.DLL_COleDispatchDriver::ReleaseDispatch
mov ecx, esi
mov dword [esp + 0x4c], 0xffffffff
call sub.MFC42.DLL_COleDispatchDriver::ReleaseDispatch
mov ecx, dword [esp + 0x44]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x40
ret
Function at 0x40a880
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x41eb20
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push esi
push edi
mov esi, ecx
push 0
push ecx
lea eax, [esp + 0x34]
mov ecx, esp
mov dword [esp + 0x10], esp
push eax
mov dword [esp + 0x30], 0
call fcn.0041d462
mov ecx, esi
call fcn.0040acc0
cmp eax, 1
jne 0x40a8ce
mov ecx, dword [esp + 0x2c]
push ecx
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
mov eax, dword [esp + 0x2c]
mov word [esp + 0xc], 8
push eax
mov edi, eax
call fcn.0041dc94
test eax, eax
mov dword [esp + 0x14], eax
jne 0x40a8f7
test edi, edi
je 0x40a8f7
push 0x8007000e
call fcn.0041dc48
push 0x429898
push 0x429898
push 0x429898
push 0x429898
push 0
push 0x429898
push 0x429898
push 0x429898
push 0x429898
lea edx, [esp + 0x30]
push 0x429898
push edx
lea ecx, [esi + 8]
mov byte [esp + 0x50], 1
call fcn.004067b0
lea eax, [esp + 0xc]
mov byte [esp + 0x24], 0
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
test eax, eax
jge 0x40a952
push eax
call fcn.0041dc48
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [esi + 0x30]
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x2c]
mov dword [esp + 0x24], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x1c]
pop edi
mov dword fs:[0], ecx
pop esi
add esp, 0x20
ret 4

Function at 0x40ad60
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x41ec28
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
push ebx
push esi
push edi
mov esi, ecx
push 2
push 0
lea ecx, [esp + 0x34]
call sub.MFC42.DLL_COleVariant::COleVariant_1
push 0xa
push 0x80020004
lea ecx, [esp + 0x24]
mov dword [esp + 0x4c], 0
call sub.MFC42.DLL_COleVariant::COleVariant
mov bl, 1
lea ecx, [esi + 0x28]
mov byte [esp + 0x44], bl
call sub.MFC42.DLL_COleDispatchDriver::ReleaseDispatch
lea ecx, [esi + 0x10]
call sub.MFC42.DLL_COleDispatchDriver::ReleaseDispatch
lea ecx, [esi + 0x20]
call sub.MFC42.DLL_COleDispatchDriver::ReleaseDispatch
mov edi, dword [esi + 0x30]
mov word [esp + 0xc], 8
push edi
call fcn.0041dc94
test eax, eax
mov dword [esp + 0x14], eax
jne 0x40ade6
test edi, edi
je 0x40ade6
push 0x8007000e
call fcn.0041dc48
lea eax, [esp + 0x1c]
lea ecx, [esp + 0xc]
lea edi, [esi + 8]
push eax
lea edx, [esp + 0x30]
push ecx
push edx
mov ecx, edi
mov byte [esp + 0x50], 2
call fcn.00406780
lea eax, [esp + 0xc]
mov byte [esp + 0x44], bl
mov ebx, dword [sym.imp.OLEAUT32.dll_VariantCopy]
push eax
call ebx
test eax, eax
jge 0x40ae1f
push eax
call fcn.0041dc48
mov ecx, edi
call sub.MFC42.DLL_COleDispatchDriver::ReleaseDispatch
lea edi, [esi + 0x18]
mov ecx, edi
call fcn.00406860
mov ecx, edi
call sub.MFC42.DLL_COleDispatchDriver::ReleaseDispatch
mov ecx, esi
call fcn.004066f0
mov ecx, esi
call sub.MFC42.DLL_COleDispatchDriver::ReleaseDispatch
call dword [sym.imp.ole32.dll_CoUninitialize]
lea ecx, [esp + 0x1c]
push ecx
call ebx
lea edx, [esp + 0x2c]
push edx
call ebx
mov ecx, dword [esp + 0x3c]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x3c
ret
Function at 0x40c4e0
Capabilities:
Get system information on windows

Disassembly:
sub esp, 0x19c
push ebx
push ebp
push esi
push edi
xor ebp, ebp
mov ecx, 0xe
xor eax, eax
lea edi, [esp + 0x4e]
mov word [esp + 0x4c], bp
mov byte [esp + 0xac], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0xad]
mov esi, str.Msg2.0.db
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esp + 0x1b0]
mov ecx, 5
lea edi, [esp + 0x38]
push eax
push ebp
push 0x410
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 0x1c], ebp
call dword [sym.imp.KERNEL32.DLL_OpenProcess]
mov ebx, eax
cmp ebx, ebp
mov dword [esp + 0x18], ebx
jne 0x40c55a
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x19c
ret
lea ecx, [esp + 0x88]
push ecx
call dword [sym.imp.KERNEL32.DLL_GetSystemInfo]
mov edi, dword [esp + 0x90]
mov eax, dword [esp + 0x94]
cmp edi, eax
jae 0x40c6ea
lea edx, [esp + 0x1c]
push 0x1c
push edx
push edi
push ebx
call dword [sym.imp.KERNEL32.DLL_VirtualQueryEx]
cmp eax, 0x1c
jne 0x40c54d
cmp dword [esp + 0x2c], 0x1000
jne 0x40c5ff
cmp dword [esp + 0x30], 4
jne 0x40c5ff
mov eax, dword [esp + 0x28]
cmp eax, 0x400
mov ebp, eax
jl 0x40c603
add eax, 4
mov dword [esp + 0x14], 0
push eax
call dword [sym.imp.MSVCRT.dll_malloc]
add esp, 4
mov esi, eax
lea eax, [esp + 0x14]
push eax
push ebp
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.DLL_ReadProcessMemory]
test eax, eax
je 0x40c5f5
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x38]
shr edx, 1
push ecx
push edx
push esi
call fcn.0040c430
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x40c61e
push esi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x1c]
lea edi, [ecx + eax]
mov eax, dword [esp + 0x94]
cmp edi, eax
jb 0x40c57e
jmp 0x40c6ea
mov ebx, dword [sym.imp.MSVCRT.dll_wcslen]
lea edx, [esp + 0x38]
push edx
call ebx
lea eax, [eax + edi - 0xb]
add esp, 4
cmp word [esi + eax*2], 0x5c
lea eax, [esi + eax*2]
je 0x40c645
sub eax, 2
cmp word [eax], 0x5c
jne 0x40c63c
mov cx, word [eax + 2]
add eax, 2
cmp cx, 0x5c
je 0x40c668
lea edx, [esp + 0x4c]
add eax, 2
mov word [edx], cx
add edx, 2
mov cx, word [eax]
cmp cx, 0x5c
jne 0x40c656
push 0
push 0
push 0
lea ecx, [esp + 0x58]
push 0
push ecx
call ebx
mov ebx, dword [sym.imp.KERNEL32.DLL_WideCharToMultiByte]
add esp, 4
lea edx, [esp + 0x5c]
push eax
push edx
push 0
push 0
call ebx
mov ebp, eax
xor eax, eax
mov ecx, 0x40
lea edi, [esp + 0xac]
push eax
push eax
rep stosd dword es:[edi], eax
lea eax, [esp + 0xb4]
push ebp
lea ecx, [esp + 0x58]
push eax
push ecx
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
lea edx, [esp + 0x5c]
push eax
push edx
push 0
push 0
call ebx
lea eax, [esp + 0xac]
mov byte [esp + ebp + 0xad], 0
push eax
call fcn.0040c240
push esi
mov dword [esp + 0x18], eax
call dword [sym.imp.MSVCRT.dll_free]
mov ebx, dword [esp + 0x20]
add esp, 8
push ebx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x19c
ret
Function at 0x40d800
Capabilities:
Create directory
Set file attributes

Disassembly:
sub esp, 0x20c
push edi
mov edi, dword [esp + 0x214]
push edi
call fcn.0040d760
add esp, 4
cmp al, 1
jne 0x40d823
pop edi
add esp, 0x20c
ret
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ebx
sub edi, ecx
push ebp
push esi
lea edx, [esp + 0x118]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
xor ebx, ebx
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x118]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + ecx + 0x117]
mov cl, byte [esp + ecx + 0x117]
cmp cl, 0x5c
je 0x40d875
cmp cl, 0x2f
jne 0x40d877
mov byte [eax], bl
lea edi, [esp + 0x118]
or ecx, 0xffffffff
xor eax, eax
xor ebp, ebp
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edi, [esp + 0x18]
mov edx, ecx
mov ecx, 0x40
cmp edx, ebx
mov dword [esp + 0x14], edx
rep stosd dword es:[edi], eax
jle 0x40d940
mov al, byte [esp + ebp + 0x118]
cmp al, 0x5c
je 0x40d8b4
mov byte [esp + 0x12], al
jmp 0x40d8d9
lea eax, [esp + 0x18]
push ebx
push eax
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryA]
test eax, eax
je 0x40d8d4
lea ecx, [esp + 0x18]
push 0x80
push ecx
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesA]
mov byte [esp + 0x12], 0x5c
lea edi, [esp + 0x12]
or ecx, 0xffffffff
xor eax, eax
mov byte [esp + 0x13], bl
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x18]
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 eax, dword [esp + 0x14]
mov ecx, edx
and ecx, 3
dec eax
cmp ebp, eax
rep movsb byte es:[edi], byte [esi]
jne 0x40d933
lea ecx, [esp + 0x18]
push ebx
push ecx
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryA]
test eax, eax
je 0x40d933
lea edx, [esp + 0x18]
push 0x80
push edx
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesA]
mov eax, dword [esp + 0x14]
inc ebp
cmp ebp, eax
jl 0x40d8a3
lea eax, [esp + 0x18]
push eax
call fcn.0040d760
add esp, 4
test al, al
pop esi
pop ebp
pop ebx
pop edi
setne al
add esp, 0x20c
ret
Function at 0x411ae0
Capabilities:
Get disk size

Disassembly:
push 0xffffffffffffffff
push 0x41f1a9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push esi
lea eax, [esp + 0x30]
push 0x428dd4
push eax
mov dword [esp + 0x2c], 0
or esi, 0xffffffff
call dword [sym.imp.MSVCP60.dll_bool___cdecl_std::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___char_const__]
add esp, 8
test al, al
je 0x411b1f
xor eax, eax
jmp 0x411b2c
mov eax, dword [esp + 0x34]
test eax, eax
jne 0x411b2c
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
lea ecx, [esp + 4]
lea edx, [esp + 0xc]
push ecx
lea ecx, [esp + 0x18]
push edx
push ecx
push eax
call dword [sym.imp.KERNEL32.DLL_GetDiskFreeSpaceExA]
test eax, eax
je 0x411b61
mov eax, dword [esp + 4]
mov edx, dword [esp + 8]
mov ecx, 0x14
call fcn.0041d8a0
mov edx, dword [esp + 0x2c]
xor esi, esi
mov dword [edx + 8], eax
mov ecx, dword [esp + 0x34]
test ecx, ecx
je 0x411b95
mov al, byte [ecx - 1]
test al, al
je 0x411b8b
cmp al, 0xff
je 0x411b8b
dec al
mov byte [ecx - 1], al
mov eax, esi
pop esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret
dec ecx
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov ecx, dword [esp + 0x1c]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x24
ret
Function at 0x413f60
Capabilities:
Check os version

Disassembly:
sub esp, 0x94
lea eax, [esp]
push esi
push eax
xor esi, esi
mov dword [esp + 8], 0x94
call dword [sym.imp.KERNEL32.DLL_GetVersionExA]
test eax, eax
je 0x413f95
cmp dword [esp + 0x14], 2
jne 0x413f95
mov eax, dword [esp + 8]
cmp eax, 6
mov eax, 1
jae 0x413f97
mov eax, esi
pop esi
add esp, 0x94
ret
Function at 0x416840
Capabilities:
Check if file exists
Get common file path
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x41f5b6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x208
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::CString_2
mov ecx, 0x80
xor eax, eax
lea edi, [esp + 0x10]
push 0x200
rep stosd dword es:[edi], eax
lea eax, [esp + 0x14]
mov dword [esp + 0x21c], 0
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryA]
lea ecx, [esp + 0x10]
lea edx, [esp + 0xc]
push ecx
push str._s_receivereg.dat
push edx
call sub.MFC42.DLL_CString::Format
mov eax, dword [esp + 0x18]
add esp, 0xc
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x4168cf
mov ecx, dword [0x4295d8]
push eax
push eax
push 0x478
push ecx
call dword [sym.imp.USER32.dll_PostMessageA]
jmp 0x4169b2
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::CString_2
mov edx, dword [esp + 0xc]
lea ecx, [esp + 8]
push edx
push 0x104
push 0x104
mov byte [esp + 0x224], 1
call sub.MFC42.DLL_CString::GetBuffer
mov edi, dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringA]
push eax
push 0
push str.QQNum
push str.Setting
call edi
push 0xffffffffffffffff
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::ReleaseBuffer
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.MSVCRT.dll_atol]
mov ecx, dword [esp + 0x10]
add esp, 4
mov dword [0x429804], eax
push ecx
push 0x104
push 0x104
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::GetBuffer
push eax
push 0
push str.RegCode
push str.Setting
call edi
push 0xffffffffffffffff
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::ReleaseBuffer
mov edx, dword [esp + 8]
push 0x429800
push 0x4288c4
push edx
call dword [sym.imp.MSVCRT.dll_sscanf]
mov eax, dword [esi + 0x20]
add esp, 0xc
push 0
push 0
push 0
push 1
push eax
push 0x4167c0
call sub.MFC42.DLL_AfxBeginThread
mov ecx, dword [esi + 0x20]
push 0
push 0
push 0
push 1
push ecx
push 0x416800
call sub.MFC42.DLL_AfxBeginThread
lea ecx, [esp + 8]
mov byte [esp + 0x218], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
mov dword [esp + 0x218], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x210]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x214
ret
Function at 0x417930
Capabilities:
Set registry value

Disassembly:
push esi
mov esi, dword [esp + 0xc]
mov edx, ecx
push edi
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
mov ecx, dword [edx + 8]
push esi
push 1
push eax
mov eax, dword [esp + 0x1c]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
ret 8

Function at 0x417960
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x208
lea eax, [esp]
push esi
push eax
lea edx, [esp + 0x10]
lea eax, [esp + 0xc]
push edx
mov edx, dword [esp + 0x218]
push eax
mov eax, dword [ecx + 8]
push 0
push edx
push eax
mov dword [esp + 0x1c], 0x200
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
test esi, esi
jne 0x4179a9
lea ecx, [esp + 0xc]
push ecx
mov ecx, dword [esp + 0x218]
call sub.MFC42.DLL_CString::operator
mov eax, esi
pop esi
add esp, 0x208
ret 8

Function at 0x419039
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x14
mov eax, dword [esp + 0x20]
push ebx
push ebp
push esi
mov esi, ecx
lea edx, [esp + 0xc]
mov ecx, dword [esp + 0x30]
push edi
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0x20]
push edx
push 0
push 0x1039
push eax
mov dword [esp + 0x24], ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
mov ecx, esi
push edi
call sub.MFC42.DLL_CListCtrl::GetCheck
xor ebx, ebx
push 1
test eax, eax
mov ecx, esi
setg bl
call fcn.00419520
mov ebp, dword [esp + 0x38]
test ebp, ebp
je 0x419091
push 0x22
push edi
mov ecx, esi
call fcn.004196c0
mov dword [esp + 0x38], eax
jmp 0x419099
mov dword [esp + 0x38], 0
mov ecx, dword [esp + 0x28]
lea eax, [ecx - 0x201]
cmp eax, 8
ja case.0x4190a8.514
jmp dword [eax*4 + 0x419154]
mov ecx, esi
call sub.MFC42.DLL_CWnd::Default
mov edx, dword [esp + 0x28]
mov ecx, esi
push edx
push edi
call sub.MFC42.DLL_CListCtrl::GetCheck
xor ecx, ecx
test eax, eax
setg cl
push ecx
push ebx
push edi
mov ecx, esi
call fcn.00418b40
test ebp, ebp
je 0x4190f1
test eax, eax
jne 0x4190f1
mov eax, dword [esp + 0x38]
test eax, eax
je 0x4190f1
mov edx, dword [esp + 0x20]
mov ecx, esi
push edx
push edi
call fcn.004192b0
mov eax, dword [esp + 0x20]
mov ecx, esi
push eax
push edi
call fcn.0041aa00
test eax, eax
je 0x41914a
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x30]
push ecx
push edi
push edx
push eax
mov ecx, esi
call fcn.00419fd0
test eax, eax
je 0x41914a
push edi
mov ecx, esi
call sub.MFC42.DLL_CListCtrl::GetItemData
mov ecx, dword [eax + 0x58]
mov edx, dword [esp + 0x20]
mov eax, dword [ecx + edx*4]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x41914a
push 5
push 0
push 0
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 0x14
Function at 0x401318
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 1
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov dword [esp + 4], 0x403024
mov dword [esp], str.jiji.dat
call sym._fopen
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x401363
mov dword [esp], str.ERROR
call sym._printf
mov dword [esp], 0x403036
call sym._printf
jmp 0x40139b
cmp byte [ebp - 9], 8
je 0x401386
mov eax, dword [ebp - 0x1c]
mov dl, byte [ebp - 9]
mov byte [eax + 0x404020], dl
inc dword [ebp - 0x1c]
cmp byte [ebp - 9], 8
jne 0x40139b
mov dword [esp], 0x403042
call sym._printf
dec dword [ebp - 0x1c]
call dbg.getchar
mov byte [ebp - 9], al
cmp byte [ebp - 9], 0xa
setne al
test al, al
jne 0x401371
mov dword [esp], 0x403046
call sym._printf
mov dword [ebp - 0x1c], 0
jmp 0x4013fc
cmp byte [ebp - 9], 8
je 0x4013e7
mov dword [esp], 0x2a
call sym._putchar
mov eax, dword [ebp - 0x1c]
mov dl, byte [ebp - 9]
xor edx, 0xf
mov byte [eax + 0x40403e], dl
inc dword [ebp - 0x1c]
cmp byte [ebp - 9], 8
jne 0x4013fc
mov dword [esp], 0x403042
call sym._printf
dec dword [ebp - 0x1c]
call sym._getch
mov byte [ebp - 9], al
cmp byte [ebp - 9], 0xd
setne al
test al, al
jne 0x4013c3
mov dword [esp], 0xa
call sym._putchar
mov eax, dword [ebp - 0x20]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 1
mov dword [esp + 4], 0x2d
mov dword [esp], 0x404020
call sym._fwrite
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call sym._rewind
jmp 0x401508
mov edx, dword [ebp - 0x18]
mov eax, edx
shl eax, 2
add eax, edx
shl eax, 1
add eax, edx
shl eax, 2
add eax, edx
lea edx, [eax + 0x404020]
mov eax, dword [ebp - 0x20]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 1
mov dword [esp + 4], 0x2d
mov dword [esp], edx
call sym._fread
mov edx, dword [ebp - 0x18]
mov eax, edx
shl eax, 2
add eax, edx
shl eax, 1
add eax, edx
shl eax, 2
add eax, edx
lea edx, [eax + 0x404020]
mov eax, 0x404020
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._strcmp
test eax, eax
jne 0x4014f5
mov dword [ebp - 0x14], 1
mov edx, dword [ebp - 0x18]
mov eax, edx
shl eax, 2
add eax, edx
shl eax, 1
add eax, edx
shl eax, 2
add eax, edx
add eax, 0x10
add eax, 0x404020
lea edx, [eax + 0xe]
mov eax, 0x40403e
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._strcmp
test eax, eax
jne 0x4014f5
mov dword [ebp - 0x10], 1
cmp dword [ebp - 0x14], 1
jne 0x401508
cmp dword [ebp - 0x10], 1
jne 0x401508
mov eax, 1
jmp 0x40155a
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call dbg.feof
test eax, eax
sete al
test al, al
jne 0x40144e
cmp dword [ebp - 0x14], 0
jne 0x401539
mov dword [esp], 0x403050
call sym._printf
mov eax, 0
jmp 0x40155a
cmp dword [ebp - 0x14], 0
je 0x401558
cmp dword [ebp - 0x10], 0
jne 0x401558
mov dword [esp], 0x40305b
call sym._printf
mov eax, 0
jmp 0x40155a
jmp 0x40155a
leave
ret
Function at 0x4016a0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
test ecx, ecx
mov dword [ebp - 0xc], ebx
mov ebx, eax
mov dword [ebp - 8], esi
mov esi, edx
mov dword [ebp - 4], edi
mov edi, ecx
jne 0x4016c6
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x38]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov dword [esp], ebx
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x40175a
mov eax, dword [ebp - 0x24]
cmp eax, 4
je 0x401715
cmp eax, 0x40
je 0x401715
lea eax, [ebp - 0x1c]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 8], 0x40
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._memcpy
mov eax, dword [ebp - 0x24]
cmp eax, 4
je 0x4016b9
cmp eax, 0x40
je 0x4016b9
lea eax, [ebp - 0x1c]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
jmp 0x4016b9
mov dword [esp + 8], 0x34
mov dword [esp + 4], str..._.._runtime_pseudo_reloc.c
mov dword [esp], str.VirtualQuery__addr__b__sizeof_b__
call sym.__assert
lea esi, [esi]
lea edi, [edi]
Function at 0x4011ea
Capabilities:
Print debug messages
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
call fcn.00401a7f
test al, al
je 0x401219
cmp dword [esi + 0x10], 0
je 0x4012eb
push str.Calling_Terminate...
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0
push dword [esi + 0x10]
jmp 0x4012e5
push ebx
lea eax, [ebp - 4]
push edi
mov ebx, 0x1f4
push eax
push ebx
push 2
push 0
push 0
push 0x10
mov ecx, esi
call fcn.00401b3e
mov edi, dword [sym.imp.USER32.dll_SendMessageTimeoutA]
push eax
call edi
push 0x7d0
mov ecx, esi
call fcn.004011ba
mov ecx, esi
call fcn.0040116e
test al, al
je 0x40127d
lea eax, [ebp - 4]
mov ecx, esi
push eax
push ebx
push 2
push 0
push 0xf060
push 0x112
call fcn.00401b3e
push eax
call edi
push 0x3e8
mov ecx, esi
call fcn.004011ba
mov ecx, esi
call fcn.0040116e
test al, al
je 0x4012ab
lea eax, [ebp - 4]
mov ecx, esi
push eax
push ebx
push 2
push 0
push 0
push 0x12
call fcn.00401b3e
push eax
call edi
push 0x3e8
mov ecx, esi
call fcn.004011ba
mov ecx, esi
call fcn.0040116e
test al, al
je 0x4012d9
lea eax, [ebp - 4]
mov ecx, esi
push eax
push ebx
push 2
push 0
push 0
push 2
call fcn.00401b3e
push eax
call edi
push 0x3e8
mov ecx, esi
call fcn.004011ba
mov esi, dword [esi + 0x10]
pop edi
test esi, esi
pop ebx
je 0x4012eb
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop esi
leave
ret

Function at 0x401c5f
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
push ebx
mov ebx, dword [ebp + 0xc]
push edi
push 0
and dword [ebx + 4], 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
je 0x401cdb
lea eax, [ebp - 0x128]
mov dword [ebp - 0x128], 0x128
push eax
push edi
call sub.KERNEL32.dll_Process32First
jmp 0x401cbc
mov eax, dword [ebp - 0x110]
cmp eax, dword [ebp + 8]
je 0x401cc2
lea eax, [ebp - 0x128]
mov dword [ebp - 0x128], 0x128
push eax
push edi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x401c9a
jmp 0x401cd0
lea eax, [ebp - 0x120]
mov ecx, ebx
push eax
call fcn.004026f7
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x401cdd
xor al, al
pop edi
pop ebx
leave
ret