joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40d00f
Capabilities:
Copy file

Disassembly:
mov eax, 0x412bb3
call fcn.004114d0
sub esp, 0x454
mov eax, dword [0x4211a4]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
xor esi, esi
push esi
push esi
push 1
xor eax, ebp
push ecx
mov dword [ebp - 0x10], eax
mov eax, str.bool___thiscall_CXmpLoadLibrary::CopyFileW_wchar_t__wchar_t__
push eax
push 0x4188c8
mov dword [ebp - 0x428], ecx
push eax
lea ecx, [ebp - 0x460]
mov dword [ebp - 0x424], edi
call fcn.00406666
mov dword [ebp - 4], esi
mov esi, 0x418890
push esi
call fcn.004023cd
test eax, eax
pop ecx
jne 0x40d0ae
push 1
push edi
push str.__to
push ebx
push str.from
push dword [ebp - 0x428]
push esi
call fcn.00405b88
pop ecx
pop ecx
mov ecx, eax
call fcn.0040bd19
mov ecx, eax
call fcn.0040a80a
mov ecx, eax
call fcn.0040bd19
mov ecx, eax
call fcn.0040a80a
mov ecx, eax
call fcn.0040bce8
and word [ebp - 0x218], 0
and word [ebp - 0x420], 0
mov edx, 0x81
xor eax, eax
mov ecx, edx
lea edi, [ebp - 0x216]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x41e]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov edi, dword [sym.imp.MSVCR71.dll_wcslen]
push ebx
call edi
push eax
push ebx
mov ebx, dword [sym.imp.MSVCR71.dll_wcsncpy]
lea eax, [ebp - 0x218]
push eax
call ebx
push dword [ebp - 0x424]
call edi
push eax
push dword [ebp - 0x424]
lea eax, [ebp - 0x420]
push eax
call ebx
and dword [ebp - 0x448], 0
add esp, 0x20
push 6
xor eax, eax
pop ecx
lea edi, [ebp - 0x444]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x218]
mov dword [ebp - 0x440], eax
lea eax, [ebp - 0x420]
mov dword [ebp - 0x43c], eax
lea eax, [ebp - 0x448]
push eax
mov word [ebp - 0x438], 0x614
mov dword [ebp - 0x444], 2
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
push esi
mov edi, eax
call fcn.004023cd
test eax, eax
pop ecx
jne 0x40d19a
push 1
push edi
push str.SHFileOperation_ret
push dword [ebp - 0x428]
push esi
call fcn.00405b88
pop ecx
pop ecx
mov ecx, eax
call fcn.0040bd19
mov ecx, eax
call fcn.0040a612
mov ecx, eax
call fcn.0040bce8
test edi, edi
sete bl
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x460]
call fcn.004068e0
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.004113e5
leave
ret 8
Function at 0x40d1cb
Capabilities:
Set registry value

Disassembly:
mov eax, 0x412bcd
call fcn.004114d0
sub esp, 0x68
mov eax, dword [0x4211a4]
push ebx
push esi
push edi
xor ebx, ebx
push ebx
xor eax, ebp
push ebx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
push 1
push ebx
mov dword [ebp - 0x58], eax
mov eax, str.void___cdecl_SendLastExitStatus_const_wchar_t__unsigned_long_
push eax
push 0x4189c8
push eax
lea ecx, [ebp - 0x74]
call fcn.00406666
mov dword [ebp - 4], ebx
mov dword [ebp - 0x54], ebx
mov byte [ebp - 4], 1
push 0x20007
mov esi, str.SOFTWAREThunder_NetworkXmp
push esi
mov edi, 0x80000001
push edi
lea ecx, [ebp - 0x54]
mov dword [ebp - 0x5c], ebx
call fcn.00409c96
test eax, eax
lea ecx, [ebp - 0x54]
jne 0x40d28c
lea eax, [ebp - 0x5c]
push eax
mov esi, str.LastExitStatus
push esi
call fcn.00409ccb
cmp dword [ebp - 0x5c], ebx
je 0x40d27a
push 0xf
pop ecx
xor eax, eax
mov word [ebp - 0x50], bx
lea edi, [ebp - 0x4e]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0xa
lea eax, [ebp - 0x50]
push eax
push dword [ebp - 0x5c]
call dword [sym.imp.MSVCR71.dll__itow]
push dword [ebp - 0x58]
lea eax, [ebp - 0x50]
push eax
push str.XMP_LastExitStatus
call fcn.0040cf80
add esp, 0x18
mov eax, dword [ebp + 0xc]
push 4
mov dword [ebp - 0x58], eax
lea eax, [ebp - 0x58]
push eax
push 4
push ebx
push esi
jmp 0x40d2b0
push ebx
push ebx
push 0x2001f
push ebx
push ebx
push esi
push edi
call fcn.00409c48
mov eax, dword [ebp + 0xc]
push 4
mov dword [ebp - 0x58], eax
lea eax, [ebp - 0x58]
push eax
push 4
push ebx
push str.LastExitStatus
push dword [ebp - 0x54]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x54]
call fcn.00409c31
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x74]
call fcn.004068e0
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop esi
xor ecx, ebp
pop ebx
call fcn.004113e5
leave
ret
Function at 0x40d609
Capabilities:
Read .ini file
Set environment variable

Disassembly:
mov eax, 0x412c2f
call fcn.004114d0
sub esp, 0x424
mov eax, dword [0x4211a4]
xor eax, ebp
push ebx
xor ebx, ebx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x430], ebx
cmp word [0x422308], bx
push edi
mov dword [ebp - 0x428], eax
mov esi, 0x422308
jne 0x40d6bc
mov dword [ebp - 0x424], ebx
mov dword [ebp - 4], 1
lea eax, [ebp - 0x42c]
push str.CoreProgram_
push eax
call fcn.0040c300
pop ecx
pop ecx
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x424]
call fcn.0040aadf
mov byte [ebp - 4], 1
push dword [ebp - 0x42c]
mov edi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
call edi
cmp dword [ebp - 0x424], ebx
jne 0x40d693
xor eax, eax
jmp 0x40d69f
push dword [ebp - 0x424]
call dword [sym.imp.OLEAUT32.dll_VariantInit]
push eax
push dword [ebp - 0x424]
push esi
call dword [sym.imp.MSVCR71.dll_wcsncpy]
add esp, 0xc
mov byte [ebp - 4], 0
push dword [ebp - 0x424]
call edi
mov edx, 0x81
xor eax, eax
mov word [ebp - 0x218], bx
mov ecx, edx
lea edi, [ebp - 0x216]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
xor eax, eax
mov word [ebp - 0x420], bx
mov ecx, edx
lea edi, [ebp - 0x41e]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov edi, 0x104
push edi
lea eax, [ebp - 0x218]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov ebx, dword [sym.imp.SHLWAPI.dll_PathAppendW]
push str...xmp.ini
lea eax, [ebp - 0x218]
push eax
call ebx
lea eax, [ebp - 0x218]
push eax
push edi
lea eax, [ebp - 0x420]
push eax
push esi
push str.bindir
push 0x418ba8
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x218]
push eax
call ebx
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
push edi
lea eax, [ebp - 0x218]
push eax
push esi
call dword [sym.imp.MSVCR71.dll_wcsncpy]
mov edi, str.XMP::GetBinDir
push edi
call fcn.004023cd
add esp, 0x10
test eax, eax
jne 0x40d797
push 1
push esi
push str.Path_:
push eax
push edi
call fcn.00405b88
pop ecx
pop ecx
mov ecx, eax
call fcn.0040bd19
mov ecx, eax
call fcn.0040a80a
mov ecx, eax
call fcn.0040bce8
push esi
push str.bindir
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ecx, dword [ebp - 0x428]
push esi
call fcn.004099d4
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x430], 1
mov eax, dword [ebp - 0x428]
pop edi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop esi
xor ecx, ebp
pop ebx
call fcn.004113e5
leave
ret
Function at 0x40e383
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x412d40
call fcn.004114d0
sub esp, 0x234
mov eax, dword [0x4211a4]
push ebx
push esi
push edi
xor ebx, ebx
push ebx
xor eax, ebp
push ebx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
xor esi, esi
inc esi
push esi
push ebx
mov dword [ebp - 0x21c], eax
mov eax, str.class_std::basic_string_wchar_t_struct_std::char_traits_wchar_t__class_std::allocator_wchar_t______cdecl_GetCoreBuildNum_void_
push eax
push 0x419010
push eax
lea ecx, [ebp - 0x240]
mov dword [ebp - 0x224], ebx
call fcn.00406666
mov dword [ebp - 4], esi
xor eax, eax
mov word [ebp - 0x218], bx
mov ecx, 0x81
lea edi, [ebp - 0x216]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x220]
push eax
call fcn.0040d609
mov byte [ebp - 4], 2
mov edi, 0x104
push edi
push dword [ebp - 0x220]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.MSVCR71.dll_wcsncpy]
add esp, 0x10
push str.XmpCoreVersion.dll
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40e448
push edi
lea eax, [ebp - 0x218]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
sub esp, 0x1c
lea eax, [ebp - 0x218]
mov ecx, esp
mov dword [ebp - 0x228], esp
push eax
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
mov byte [ebp - 4], 3
push dword [ebp - 0x21c]
mov byte [ebp - 4], 2
call fcn.0040c136
add esp, 0x20
mov dword [ebp - 0x224], esi
mov byte [ebp - 4], 1
push dword [ebp - 0x220]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x240]
call fcn.004068e0
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x21c]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004113e5
leave
ret
Function at 0x40f7ea
Capabilities:
Create thread

Disassembly:
mov eax, 0x412ed3
call fcn.004114d0
sub esp, 0x18
push esi
push edi
xor esi, esi
push esi
push esi
push 1
mov edi, ecx
push edi
mov eax, str.__w64_long___thiscall_CCmdReceiverWnd::OnCreate_unsigned_int___w64_unsigned_int___w64_long_int__
push eax
push 0x419cf4
push eax
lea ecx, [ebp - 0x24]
call fcn.00406666
mov dword [ebp - 4], esi
push esi
push esi
push edi
push 0x40f84e
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.004068e0
mov ecx, dword [ebp - 0xc]
pop edi
xor eax, eax
pop esi
mov dword fs:[0], ecx
leave
ret 0x10

Function at 0x40f9ba
Capabilities:
Parse pe header

Disassembly:
push 0x2c
push 0x41a070
call fcn.0041145c
push 0x1c
lea eax, [ebp - 0x3c]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
and dword [ebp - 4], 0
mov ecx, dword [ebp - 0x38]
mov dword [ebp - 0x1c], ecx
cmp word [ecx], 0x5a4d
jne 0x40fa26
mov eax, dword [ecx + 0x3c]
add eax, ecx
mov dword [ebp - 0x20], eax
cmp dword [eax], 0x4550
je 0x40f9fe
xor al, al
or dword [ebp - 4], 0xffffffff
jmp 0x40fa2c
mov edx, dword [eax + 0xd8]
lea esi, [edx + ecx]
cmp dword [ebp + 0xc], esi
jb 0x40f9f6
mov eax, dword [eax + 0xdc]
add eax, edx
add eax, ecx
cmp dword [ebp + 0xc], eax
jae 0x40f9f6
mov al, 1
jmp 0x40f9f8
or dword [ebp - 4], 0xffffffff
xor al, al
call fcn.00411497
ret
Function at 0x40fb6c
Capabilities:
Allocate or change rwx memory
Hook routines via microsoft detours

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
push esi
mov esi, eax
cmp esi, 0x7ff80000
push edi
mov ebx, 0x10000
jbe 0x40fb8f
lea eax, [esi - 0x7ff80000]
mov dword [ebp - 4], eax
jmp 0x40fb92
mov dword [ebp - 4], ebx
cmp esi, 0x80000000
jae 0x40fba5
lea eax, [esi + 0x7ff80000]
mov dword [ebp - 8], eax
jmp 0x40fbac
mov dword [ebp - 8], 0xfff80000
mov eax, dword [0x42259c]
test eax, eax
mov ecx, dword [0x422598]
jne 0x40fbc6
test ecx, ecx
je 0x40fbdb
mov eax, ecx
mov dword [0x42259c], eax
mov edx, dword [eax + 8]
test edx, edx
je 0x40fbdb
cmp edx, dword [ebp - 4]
jb 0x40fbdb
cmp edx, dword [ebp - 8]
jbe 0x40fcaf
mov eax, ecx
test ecx, ecx
jmp 0x40fbff
test eax, eax
je 0x40fbfa
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x40fbfa
cmp ecx, dword [ebp - 4]
jb 0x40fbfa
cmp ecx, dword [ebp - 8]
jbe 0x40fcaf
mov eax, dword [eax + 4]
test eax, eax
mov dword [0x42259c], eax
jne 0x40fbe1
mov eax, esi
and eax, 0xffff
sub esi, eax
cmp esi, dword [ebp - 4]
mov edi, esi
jbe 0x40fd4a
cmp edi, 0x70000000
jb 0x40fc2f
cmp edi, 0x80000000
ja 0x40fc2f
mov edi, 0x6fff0000
push 0x1c
lea eax, [ebp - 0x40]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40fd4a
cmp dword [ebp - 0x30], ebx
jne 0x40fc4e
cmp dword [ebp - 0x34], ebx
jae 0x40fc61
mov edi, dword [ebp - 0x3c]
add edi, 0xffff0000
cmp edi, dword [ebp - 4]
ja 0x40fc1a
jmp 0x40fd4a
push 0x40
push 0x3000
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
mov dword [0x42259c], eax
je 0x40fd4a
mov ecx, dword [0x422598]
xor edx, edx
mov dword [eax + 4], ecx
mov dword [eax], 0x52727464
mov dword [eax + 8], edx
mov dword [0x422598], eax
lea ecx, [eax + 0xffe0]
mov esi, 0x7fd
mov dword [ecx + 0x18], edx
mov edx, ecx
sub ecx, 0x20
dec esi
jne 0x40fca1
mov dword [eax + 8], edx
mov esi, dword [eax + 8]
cmp esi, dword [ebp - 4]
jb 0x40fd4f
cmp esi, dword [ebp - 8]
ja 0x40fd4f
mov ecx, dword [esi + 0x18]
push 0x20
push 0xcc
push esi
mov dword [eax + 8], ecx
call sub.MSVCR71.dll_memset
add esp, 0xc
mov eax, esi
jmp 0x40fd51
cmp esi, 0x70000000
jb 0x40fcf3
cmp esi, 0x80000000
ja 0x40fcf3
mov esi, 0x80010000
push 0x1c
lea eax, [ebp - 0x24]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40fd4f
cmp dword [ebp - 0x14], ebx
jne 0x40fd41
cmp dword [ebp - 0x18], ebx
jb 0x40fd41
mov ecx, esi
and ecx, 0xffff
je 0x40fd25
mov eax, ebx
sub eax, ecx
sub dword [ebp - 0x18], eax
add dword [ebp - 0x24], eax
mov esi, dword [ebp - 0x24]
push 0x40
push 0x3000
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
mov dword [0x42259c], eax
jne 0x40fc7d
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x18]
lea esi, [eax + ecx]
cmp esi, dword [ebp - 8]
jb 0x40fcde
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40fd77
Capabilities:
Parse pe header

Disassembly:
push 0x28
push 0x41a080
call fcn.0041145c
push 0x1c
lea eax, [ebp - 0x38]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40fdd2
and dword [ebp - 4], 0
mov ecx, dword [ebp - 0x34]
cmp word [ecx], 0x5a4d
jne 0x40fdce
mov eax, dword [ecx + 0x3c]
add eax, ecx
mov dword [ebp - 0x1c], eax
cmp dword [eax], 0x4550
jne 0x40fdce
cmp word [eax + 0x14], 0
jne 0x40fdc3
xor eax, eax
or dword [ebp - 4], 0xffffffff
jmp 0x40fdd4
mov eax, ecx
jmp 0x40fdbd
or dword [ebp - 4], 0xffffffff
xor eax, eax
call fcn.00411497
ret

Function at 0x40fdf8
Capabilities:
Allocate or change rwx memory

Disassembly:
push ecx
push edi
xor edi, edi
cmp dword [0x4225a4], edi
jne 0x40fe1b
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push 0x4225a4
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
je 0x40fe22
mov eax, 0x10dd
jmp 0x40fe66
push esi
mov esi, dword [0x422598]
mov dword [0x4225a0], edi
mov dword [0x4225b4], edi
mov dword [0x4225b0], edi
mov dword [0x4225a8], edi
mov dword [0x4225ac], edi
jmp 0x40fe5f
lea eax, [esp + 8]
push eax
push 0x40
push 0x10000
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov esi, dword [esi + 4]
cmp esi, edi
jne 0x40fe49
xor eax, eax
pop esi
pop edi
pop ecx
ret

Function at 0x40fe69
Capabilities:
Resume thread

Disassembly:
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x4225a4], eax
je 0x40fe7f
mov eax, 0x10dd
pop ecx
ret
push ebx
push esi
mov esi, dword [0x4225b4]
xor ebx, ebx
cmp esi, ebx
push edi
je 0x40feca
lea eax, [esp + 0xc]
push eax
mov eax, dword [esi + 0x10]
push dword [esi + 0x14]
movzx eax, byte [eax + 0x17]
push eax
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
cmp dword [esi + 4], ebx
jne 0x40febb
mov edi, dword [esi + 0x10]
cmp edi, ebx
je 0x40febb
call fcn.0040fd56
mov dword [esi + 0x10], ebx
mov edi, dword [esi]
push esi
call sub.MSVCR71.dll_void___cdecl_operator_delete_void__
cmp edi, ebx
pop ecx
mov esi, edi
jne 0x40fe8e
mov dword [0x4225b4], ebx
call fcn.0040fb45
mov esi, dword [0x4225b0]
cmp esi, ebx
je 0x40fef7
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov edi, dword [esi]
push esi
call sub.MSVCR71.dll_void___cdecl_operator_delete_void__
cmp edi, ebx
pop ecx
mov esi, edi
jne 0x40fedf
pop edi
pop esi
mov dword [0x4225b0], ebx
mov dword [0x4225a4], ebx
xor eax, eax
pop ebx
pop ecx
ret
Function at 0x41014a
Capabilities:
Suspend thread

Disassembly:
mov eax, dword [0x4225a8]
test eax, eax
jne 0x4101ba
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov edi, dword [esp + 8]
cmp edi, eax
jne 0x410166
xor eax, eax
jmp 0x4101b9
push esi
push 8
call fcn.00411142
mov esi, eax
test esi, esi
pop ecx
jne 0x41017a
push 8
pop edi
jmp 0x410195
push edi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x4101a6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov edi, eax
call sub.MSVCR71.dll_void___cdecl_operator_delete_void__
pop ecx
and dword [0x4225ac], 0
mov dword [0x4225a8], edi
mov eax, edi
jmp 0x4101b8
mov eax, dword [0x4225b0]
mov dword [esi], eax
mov dword [esi + 4], edi
mov dword [0x4225b0], esi
xor eax, eax
pop esi
pop edi
ret 4
Function at 0x4103fa
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x4225a4], eax
je 0x410416
mov eax, 0x10dd
jmp 0x4104f2
mov eax, dword [0x4225a8]
test eax, eax
jne 0x4104f2
push edi
mov edi, dword [ebp + 8]
test edi, edi
jne 0x410433
push 6
pop eax
jmp 0x4104f1
cmp dword [edi], 0
push ebx
push esi
jne 0x410447
push 6
pop eax
mov dword [0x4225a8], eax
jmp 0x4104e9
push 0x18
call fcn.00411142
mov esi, eax
test esi, esi
pop ecx
jne 0x41045a
push 8
pop edi
jmp 0x4104d3
mov edi, dword [edi]
push 0
push dword [ebp + 0xc]
call fcn.0040fdda
movzx ecx, byte [edi + 0x17]
mov ebx, dword [edi + 0x18]
xor edx, edx
sub ebx, ecx
cmp ecx, edx
je 0x4104c8
cmp ecx, 0x17
ja 0x4104c8
cmp dword [edi + 0x1c], eax
jne 0x4104c8
lea eax, [ebp - 4]
push eax
push 0x40
push ecx
push ebx
mov dword [ebp - 4], edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x41049e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x4104d3
mov eax, dword [ebp + 8]
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov dword [esi + 0x10], edi
mov dword [esi + 0xc], ebx
mov eax, dword [ebp - 4]
mov dword [esi + 0x14], eax
mov eax, dword [0x4225b4]
mov dword [esi], eax
mov dword [0x4225b4], esi
xor eax, eax
jmp 0x4104ef
cmp dword [0x4225a0], edx
push 9
pop edi
jne 0x4104d9
mov dword [0x4225a8], edi
test esi, esi
je 0x4104e4
push esi
call sub.MSVCR71.dll_void___cdecl_operator_delete_void__
pop ecx
mov eax, edi
mov edi, dword [ebp + 8]
mov dword [0x4225ac], edi
pop esi
pop ebx
pop edi
leave
ret 8
Function at 0x411744
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x74
push 0x41b368
call fcn.0041145c
xor edi, edi
mov dword [ebp - 0x20], edi
push edi
mov ebx, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call ebx
cmp word [eax], 0x5a4d
jne 0x411784
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x411784
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x41179c
cmp eax, 0x20b
je 0x411789
mov dword [ebp - 0x1c], edi
jmp 0x4117b0
cmp dword [ecx + 0x84], 0xe
jbe 0x411784
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x4117aa
cmp dword [ecx + 0x74], 0xe
jbe 0x411784
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], edi
push 2
call dword [sym.imp.MSVCR71.dll___set_app_type]
pop ecx
or dword [0x422630], 0xffffffff
or dword [0x422634], 0xffffffff
call dword [sym.imp.MSVCR71.dll___p__fmode]
mov ecx, dword [0x422628]
mov dword [eax], ecx
call dword [sym.imp.MSVCR71.dll___p__commode]
mov ecx, dword [0x422624]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCR71.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x42262c], eax
call fcn.00411a02
call fcn.00411aab
cmp dword [0x4211c0], edi
jne 0x411810
push 0x411aa8
call dword [sym.imp.MSVCR71.dll___setusermatherr]
pop ecx
call fcn.00411a90
push 0x421038
push 0x421034
call sub.MSVCR71.dll__initterm
push 0x411a46
call fcn.004115c4
mov eax, dword [0x422620]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push dword [0x42261c]
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.MSVCR71.dll___wgetmainargs]
add esp, 0x20
mov dword [ebp - 0x3c], eax
cmp eax, edi
jge 0x411864
push 8
call sub.MSVCR71.dll__amsg_exit
pop ecx
push 0x421030
push section..data
call sub.MSVCR71.dll__initterm
pop ecx
pop ecx
mov eax, dword [sym.imp.MSVCR71.dll__wcmdln]
mov esi, dword [eax]
cmp esi, edi
jne 0x41188e
or dword [ebp - 4], 0xffffffff
mov eax, 0xff
jmp 0x411948
mov dword [ebp - 0x24], esi
mov ax, word [esi]
cmp ax, 0x20
ja 0x4118fd
cmp ax, di
je 0x4118a4
cmp dword [ebp - 0x20], edi
jne 0x4118fd
mov ax, word [esi]
cmp ax, di
je 0x4118b9
cmp ax, 0x20
ja 0x4118b9
inc esi
inc esi
mov dword [ebp - 0x24], esi
jmp 0x4118a4
mov dword [ebp - 0x58], edi
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
test byte [ebp - 0x58], 1
je 0x4118d5
movzx eax, word [ebp - 0x54]
jmp 0x4118d8
push 0xa
pop eax
push eax
push esi
push edi
push edi
call ebx
push eax
call fcn.0040ec29
mov esi, eax
mov dword [ebp - 0x40], esi
cmp dword [ebp - 0x1c], edi
jne 0x4118f5
push esi
call dword [sym.imp.MSVCR71.dll_exit]
call dword [sym.imp.MSVCR71.dll__cexit]
jmp 0x411942
cmp ax, 0x22
jne 0x41190e
xor eax, eax
cmp dword [ebp - 0x20], edi
sete al
mov dword [ebp - 0x20], eax
inc esi
inc esi
jmp 0x41188e
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.00411497
ret
Function at 0x40ead0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x46d17b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.00461cc1
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x40eb52
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0045fa40
mov eax, dword [eax]
push 0x4b8210
push eax
call fcn.00452684
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.00461f4c
test bl, bl
je 0x40eb52
push 0x4b8210
lea ecx, [esp + 0xc]
call fcn.004622dc
push 0x4bbd84
lea ecx, [esp + 0xc]
call fcn.004622dc
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x40eb8e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.00461f4c
jmp 0x40ec59
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x40ec12
lea edx, [esp + 0x7c]
push 0x4bbd80
push edx
call fcn.00452684
add esp, 8
test eax, eax
je 0x40ec12
lea eax, [esp + 0x7c]
push 0x4bbd7c
push eax
call fcn.00452684
add esp, 8
test eax, eax
je 0x40ec12
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40eba2
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.00461f4c
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x40f450
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x40f4b2
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc