joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4120c0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41c815
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x32c
push ebx
push esi
push edi
lea edi, [ebp - 0x338]
mov ecx, 0xcb
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov word [ebp - 0x218], 0
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x216]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov esi, esp
push str.shell32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp esi, esp
call fcn.0041925c
mov dword [ebp - 0x224], eax
cmp dword [ebp - 0x224], 0
jne 0x412137
xor al, al
jmp 0x4122a3
mov esi, esp
push str.SHGetKnownFolderPath
mov eax, dword [ebp - 0x224]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp esi, esp
call fcn.0041925c
mov dword [ebp - 0x230], eax
cmp dword [ebp - 0x230], 0
je 0x412219
mov dword [ebp - 0x23c], 0
mov esi, esp
lea eax, [ebp - 0x23c]
push eax
push 0
push 0
push 0x41f9a8
call dword [ebp - 0x230]
cmp esi, esp
call fcn.0041925c
mov dword [ebp - 0x248], eax
cmp dword [ebp - 0x23c], 0
jne 0x4121a4
xor al, al
jmp 0x4122a3
mov esi, esp
mov eax, dword [ebp - 0x23c]
push eax
call dword [sym.imp.MSVCR71.dll_wcslen]
add esp, 4
cmp esi, esp
call fcn.0041925c
cmp eax, 0x104
jbe 0x4121e1
mov esi, esp
mov eax, dword [ebp - 0x23c]
push eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
cmp esi, esp
call fcn.0041925c
xor al, al
jmp 0x4122a3
mov esi, esp
mov eax, dword [ebp - 0x23c]
push eax
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.MSVCR71.dll_wcscpy]
add esp, 8
cmp esi, esp
call fcn.0041925c
mov esi, esp
mov eax, dword [ebp - 0x23c]
push eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
cmp esi, esp
call fcn.0041925c
jmp 0x412237
mov esi, esp
lea eax, [ebp - 0x218]
push eax
push 0
push 0
push 0x23
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
cmp esi, esp
call fcn.0041925c
mov esi, esp
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x32c]
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__]
cmp esi, esp
call fcn.0041925c
mov dword [ebp - 0x334], eax
mov ecx, dword [ebp - 0x334]
mov dword [ebp - 0x338], ecx
mov dword [ebp - 4], 0
mov esi, esp
mov edx, dword [ebp - 0x338]
push edx
mov ecx, dword [ebp + 8]
call dword [0x41e204]
cmp esi, esp
call fcn.0041925c
mov dword [ebp - 4], 0xffffffff
mov esi, esp
lea ecx, [ebp - 0x32c]
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__::destructor_void_]
cmp esi, esp
call fcn.0041925c
mov al, 1
push edx
mov ecx, ebp
push eax
lea edx, [0x4122d4]
call fcn.0041927f
pop eax
pop edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
add esp, 0x338
cmp ebp, esp
call fcn.0041925c
mov esp, ebp
pop ebp
ret
Function at 0x412df0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xcc
push ebx
push esi
push edi
push ecx
lea edi, [ebp - 0xcc]
mov ecx, 0x33
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
pop ecx
mov dword [ebp - 8], ecx
mov esi, esp
push 4
lea eax, [ebp + 0xc]
push eax
push 4
push 0
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp esi, esp
call fcn.0041925c
pop edi
pop esi
pop ebx
add esp, 0xcc
cmp ebp, esp
call fcn.0041925c
mov esp, ebp
pop ebp
ret 8

Function at 0x412e50
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xcc
push ebx
push esi
push edi
push ecx
lea edi, [ebp - 0xcc]
mov ecx, 0x33
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
pop ecx
mov dword [ebp - 8], ecx
mov esi, esp
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp esi, esp
call fcn.0041925c
lea ecx, [eax + eax + 2]
mov esi, esp
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 0x10]
push eax
push 0
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp esi, esp
call fcn.0041925c
pop edi
pop esi
pop ebx
add esp, 0xcc
cmp ebp, esp
call fcn.0041925c
mov esp, ebp
pop ebp
ret 0xc
Function at 0x415ef0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xf0
push ebx
push esi
push edi
push ecx
lea edi, [ebp - 0xf0]
mov ecx, 0x3c
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
pop ecx
mov dword [ebp - 8], ecx
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
shl ecx, 1
mov dword [ebp - 0x2c], ecx
mov eax, dword [ebp + 0x10]
mov dword [eax], 0
mov esi, esp
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0x20]
push edx
push 0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp esi, esp
call fcn.0041925c
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x415f5b
mov eax, dword [ebp - 0x14]
jmp 0x415fa8
cmp dword [ebp - 0x20], 1
je 0x415f6e
cmp dword [ebp - 0x20], 2
je 0x415f6e
mov eax, 0xd
jmp 0x415fa8
cmp dword [ebp + 0xc], 0
je 0x415f9c
mov eax, dword [ebp - 0x2c]
xor edx, edx
mov ecx, 2
div ecx
test edx, edx
jne 0x415f95
mov eax, dword [ebp - 0x2c]
shr eax, 1
mov ecx, dword [ebp + 0xc]
movzx edx, word [ecx + eax*2 - 2]
test edx, edx
je 0x415f9c
mov eax, 0xd
jmp 0x415fa8
mov eax, dword [ebp - 0x2c]
shr eax, 1
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
xor eax, eax
push edx
mov ecx, ebp
push eax
lea edx, [0x415fd0]
call fcn.0041927f
pop eax
pop edx
pop edi
pop esi
pop ebx
add esp, 0xf0
cmp ebp, esp
call fcn.0041925c
mov esp, ebp
pop ebp
ret 0xc

Function at 0x417fe0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x218
mov eax, dword [0x428480]
push esi
push edi
mov dword [esp + 0x21c], eax
xor esi, esi
xor eax, eax
mov word [esp + 0x10], si
mov ecx, 0x81
lea edi, [esp + 0x12]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x104
lea eax, [esp + 0x14]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [esp + 0x10]
push 0x5c
push ecx
call dword [sym.imp.MSVCR71.dll_wcsrchr]
push 0xc
lea edx, [esp + 0x1c]
push 0x420210
push edx
mov word [eax + 2], si
call dword [sym.imp.MSVCR71.dll_wcsncat]
add esp, 0x14
lea eax, [esp + 0x10]
push eax
push 2
lea ecx, [esp + 0x14]
push ecx
push 0x42020c
push str.Replaced
push str.AutoRepair
mov word [esp + 0x24], si
mov word [esp + 0x26], si
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea edx, [esp + 0xc]
push edx
call dword [sym.imp.MSVCR71.dll__wtoi]
mov ecx, dword [esp + 0x220]
add esp, 4
call fcn.00418e11
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4180a0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x218
mov eax, dword [0x428480]
push esi
push edi
mov dword [esp + 0x21c], eax
xor esi, esi
xor eax, eax
mov word [esp + 0x10], si
mov ecx, 0x81
lea edi, [esp + 0x12]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x104
lea eax, [esp + 0x14]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [esp + 0x10]
push 0x5c
push ecx
call dword [sym.imp.MSVCR71.dll_wcsrchr]
push 0xc
lea edx, [esp + 0x1c]
push 0x420210
push edx
mov word [eax + 2], si
call dword [sym.imp.MSVCR71.dll_wcsncat]
add esp, 0x14
lea eax, [esp + 0x10]
push eax
push 2
lea ecx, [esp + 0x14]
push ecx
push 0x42020c
push str.Restored
push str.AutoRepair
mov word [esp + 0x24], si
mov word [esp + 0x26], si
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea edx, [esp + 0xc]
push edx
call dword [sym.imp.MSVCR71.dll__wtoi]
mov ecx, dword [esp + 0x220]
add esp, 4
call fcn.00418e11
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x418160
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x21c
mov eax, dword [0x428480]
push edi
mov dword [esp + 0x21c], eax
xor eax, eax
mov word [esp + 0x10], 0
mov ecx, 0x81
lea edi, [esp + 0x12]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x104
lea eax, [esp + 0x14]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [esp + 0x10]
push 0x5c
push ecx
call dword [sym.imp.MSVCR71.dll_wcsrchr]
push 0xc
lea edx, [esp + 0x1c]
push 0x420210
push edx
mov word [eax + 2], 0
call dword [sym.imp.MSVCR71.dll_wcsncat]
add esp, 0x14
lea ecx, [esp + 0x10]
push ecx
push 5
lea edx, [esp + 0xc]
push edx
push 0x42020c
xor eax, eax
push str.CrashTimes
mov dword [esp + 0x1a], eax
push str.AutoRepair
mov word [esp + 0x1c], 0
mov dword [esp + 0x22], eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [esp + 4]
push eax
call dword [sym.imp.MSVCR71.dll__wtoi]
xor ecx, ecx
add esp, 4
cmp eax, 3
setge cl
mov eax, ecx
mov ecx, dword [esp + 0x21c]
call fcn.00418e11
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x418230
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x230
mov eax, dword [0x428480]
push esi
push edi
mov dword [esp + 0x234], eax
xor esi, esi
xor eax, eax
mov word [esp + 0x28], si
mov ecx, 0x81
lea edi, [esp + 0x2a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x104
lea eax, [esp + 0x2c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [esp + 0x28]
push 0x5c
push ecx
call dword [sym.imp.MSVCR71.dll_wcsrchr]
push 0xc
lea edx, [esp + 0x34]
push 0x420210
push edx
mov word [eax + 2], si
call dword [sym.imp.MSVCR71.dll_wcsncat]
add esp, 0x14
lea eax, [esp + 0x28]
push eax
push 8
lea ecx, [esp + 0x18]
push ecx
push str.ReplaceTime
push str.AutoRepair
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStructW]
test eax, eax
je 0x41830e
lea edx, [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
mov esi, dword [esp + 0x10]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0xc]
sub ecx, esi
sbb eax, edx
cmp eax, 0x580
jl 0x41830e
jg 0x4182f7
cmp ecx, 0x28e44000
jbe 0x41830e
mov eax, 1
mov ecx, dword [esp + 0x234]
call fcn.00418e11
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x234]
xor eax, eax
call fcn.00418e11
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x418330
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x420
mov eax, dword [0x428480]
push esi
push edi
mov dword [esp + 0x424], eax
call fcn.00417fe0
test eax, eax
jne 0x418365
mov ecx, dword [esp + 0x424]
call fcn.00418e11
pop edi
pop esi
mov esp, ebp
pop ebp
ret
call fcn.00418160
test eax, eax
jne 0x41842a
call fcn.00418230
test eax, eax
jne 0x41842a
xor esi, esi
mov word [esp + 0x10], si
mov ecx, 0x81
lea edi, [esp + 0x12]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
xor eax, eax
mov word [esp + 0x218], si
mov ecx, 0x81
lea edi, [esp + 0x21a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x104
lea eax, [esp + 0x14]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push str...ServerConfig.ini
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x220]
push edx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [esp + 0x218]
push eax
push 2
lea ecx, [esp + 0x14]
push ecx
push 0x42020c
push str.Restore
push str.ServerConfig
mov word [esp + 0x24], si
mov word [esp + 0x26], si
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea edx, [esp + 0xc]
push edx
call dword [sym.imp.MSVCR71.dll__wtoi]
add esp, 4
neg eax
sbb eax, eax
neg eax
mov ecx, dword [esp + 0x424]
call fcn.00418e11
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x424]
mov eax, 1
call fcn.00418e11
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4185c0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xa10
mov eax, dword [0x428480]
push esi
push edi
mov dword [esp + 0xa14], eax
xor eax, eax
mov word [esp + 8], 0
mov ecx, 0x81
lea edi, [esp + 0xa]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x104
lea eax, [esp + 0xc]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [esp + 8]
push 0x5c
push ecx
call dword [sym.imp.MSVCR71.dll_wcsrchr]
push 0xd
lea edx, [esp + 0x14]
push str.TDPRepair.exe
push edx
mov word [eax + 2], 0
call dword [sym.imp.MSVCR71.dll_wcsncat]
mov esi, dword [ebp + 0xc]
push esi
call dword [sym.imp.MSVCR71.dll_wcslen]
add esp, 0x18
test eax, eax
je 0x418655
mov eax, dword [ebp + 8]
push esi
push eax
lea ecx, [esp + 0x218]
push str.__dir_s___s_
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
jmp 0x41866f
mov edx, dword [ebp + 8]
push edx
lea eax, [esp + 0x214]
push str.__dir_s
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push str.xlbughandler.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
je 0x41869f
push str._XL_AddCrashProcess_12
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x41869f
push 2
lea ecx, [esp + 0x214]
push ecx
lea edx, [esp + 0x10]
push edx
call eax
call fcn.00417fe0
test eax, eax
je 0x4186c1
call fcn.004180a0
test eax, eax
jne 0x4186c1
push eax
push eax
push 0x418450
call dword [sym.imp.MSVCR71.dll__beginthread]
add esp, 0xc
mov ecx, dword [esp + 0xa14]
call fcn.00418e11
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4186e0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x414
mov eax, dword [0x428480]
mov dword [esp + 0x410], eax
call fcn.004180a0
test eax, eax
jne 0x418753
call fcn.00418330
test eax, eax
je 0x41876b
push 0x104
lea eax, [esp + 4]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [esp]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push str..TDPRepair.exe
lea edx, [esp + 4]
push edx
lea eax, [esp + 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
push 0
push 0
push 0
lea ecx, [esp + 0x214]
push ecx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov eax, 1
mov ecx, dword [esp + 0x410]
call fcn.00418e11
add esp, 0x414
ret
mov ecx, dword [esp + 0x410]
xor eax, eax
call fcn.00418e11
add esp, 0x414
ret
Function at 0x418fe4
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x74
push 0x420550
call fcn.00418d88
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 0x419024
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x419024
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x41903c
cmp eax, 0x20b
je 0x419029
mov dword [ebp - 0x1c], edi
jmp 0x419050
cmp dword [ecx + 0x84], 0xe
jbe 0x419024
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x41904a
cmp dword [ecx + 0x74], 0xe
jbe 0x419024
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 [0x4289d4], 0xffffffff
or dword [0x4289d8], 0xffffffff
call dword [sym.imp.MSVCR71.dll___p__fmode]
mov ecx, dword [0x428950]
mov dword [eax], ecx
call dword [sym.imp.MSVCR71.dll___p__commode]
mov ecx, dword [0x42894c]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCR71.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x4289d0], eax
call fcn.0041936a
call fcn.0041940a
cmp dword [0x4284a0], edi
jne 0x4190b0
push fcn.0041940a
call dword [sym.imp.MSVCR71.dll___setusermatherr]
pop ecx
call fcn.004193f8
push 0x42805c
push 0x428058
call sub.MSVCR71.dll__initterm
push 0x4193ae
call fcn.00418e45
mov eax, dword [0x428948]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push dword [0x428944]
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 0x419104
push 8
call sub.MSVCR71.dll__amsg_exit
pop ecx
push 0x428054
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 0x41912e
or dword [ebp - 4], 0xffffffff
mov eax, 0xff
jmp 0x4191e8
mov dword [ebp - 0x24], esi
mov ax, word [esi]
cmp ax, 0x20
ja 0x41919d
cmp ax, di
je 0x419144
cmp dword [ebp - 0x20], edi
jne 0x41919d
mov ax, word [esi]
cmp ax, di
je 0x419159
cmp ax, 0x20
ja 0x419159
inc esi
inc esi
mov dword [ebp - 0x24], esi
jmp 0x419144
mov dword [ebp - 0x58], edi
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
test byte [ebp - 0x58], 1
je 0x419175
movzx eax, word [ebp - 0x54]
jmp 0x419178
push 0xa
pop eax
push eax
push esi
push edi
push edi
call ebx
push eax
call fcn.00409b3d
mov esi, eax
mov dword [ebp - 0x40], esi
cmp dword [ebp - 0x1c], edi
jne 0x419195
push esi
call dword [sym.imp.MSVCR71.dll_exit]
call dword [sym.imp.MSVCR71.dll__cexit]
jmp 0x4191e2
cmp ax, 0x22
jne 0x4191ae
xor eax, eax
cmp dword [ebp - 0x20], edi
sete al
mov dword [ebp - 0x20], eax
inc esi
inc esi
jmp 0x41912e
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.00418dc3
ret
Function at 0x419f04
Capabilities:
Parse pe header

Disassembly:
push 0x2c
push 0x420ad0
call fcn.00418d88
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 0x419f70
mov eax, dword [ecx + 0x3c]
add eax, ecx
mov dword [ebp - 0x20], eax
cmp dword [eax], 0x4550
je 0x419f48
xor al, al
or dword [ebp - 4], 0xffffffff
jmp 0x419f76
mov edx, dword [eax + 0xd8]
lea esi, [edx + ecx]
cmp dword [ebp + 0xc], esi
jb 0x419f40
mov eax, dword [eax + 0xdc]
add eax, edx
add eax, ecx
cmp dword [ebp + 0xc], eax
jae 0x419f40
mov al, 1
jmp 0x419f42
or dword [ebp - 4], 0xffffffff
xor al, al
call fcn.00418dc3
ret
Function at 0x41a078
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 0x41a09b
lea eax, [esi - 0x7ff80000]
mov dword [ebp - 4], eax
jmp 0x41a09e
mov dword [ebp - 4], ebx
cmp esi, 0x80000000
jae 0x41a0b1
lea eax, [esi + 0x7ff80000]
mov dword [ebp - 8], eax
jmp 0x41a0b8
mov dword [ebp - 8], 0xfff80000
mov eax, dword [0x4289b4]
test eax, eax
mov ecx, dword [0x4289b0]
jne 0x41a0d2
test ecx, ecx
je 0x41a0e7
mov eax, ecx
mov dword [0x4289b4], eax
mov edx, dword [eax + 8]
test edx, edx
je 0x41a0e7
cmp edx, dword [ebp - 4]
jb 0x41a0e7
cmp edx, dword [ebp - 8]
jbe 0x41a1bb
mov eax, ecx
test ecx, ecx
jmp 0x41a10b
test eax, eax
je 0x41a106
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x41a106
cmp ecx, dword [ebp - 4]
jb 0x41a106
cmp ecx, dword [ebp - 8]
jbe 0x41a1bb
mov eax, dword [eax + 4]
test eax, eax
mov dword [0x4289b4], eax
jne 0x41a0ed
mov eax, esi
and eax, 0xffff
sub esi, eax
cmp esi, dword [ebp - 4]
mov edi, esi
jbe 0x41a256
cmp edi, 0x70000000
jb 0x41a13b
cmp edi, 0x80000000
ja 0x41a13b
mov edi, 0x6fff0000
push 0x1c
lea eax, [ebp - 0x40]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x41a256
cmp dword [ebp - 0x30], ebx
jne 0x41a15a
cmp dword [ebp - 0x34], ebx
jae 0x41a16d
mov edi, dword [ebp - 0x3c]
add edi, 0xffff0000
cmp edi, dword [ebp - 4]
ja 0x41a126
jmp 0x41a256
push 0x40
push 0x3000
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
mov dword [0x4289b4], eax
je 0x41a256
mov ecx, dword [0x4289b0]
xor edx, edx
mov dword [eax + 4], ecx
mov dword [eax], 0x52727464
mov dword [eax + 8], edx
mov dword [0x4289b0], eax
lea ecx, [eax + 0xffe0]
mov esi, 0x7fd
mov dword [ecx + 0x18], edx
mov edx, ecx
sub ecx, 0x20
dec esi
jne 0x41a1ad
mov dword [eax + 8], edx
mov esi, dword [eax + 8]
cmp esi, dword [ebp - 4]
jb 0x41a25b
cmp esi, dword [ebp - 8]
ja 0x41a25b
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 0x41a25d
cmp esi, 0x70000000
jb 0x41a1ff
cmp esi, 0x80000000
ja 0x41a1ff
mov esi, 0x80010000
push 0x1c
lea eax, [ebp - 0x24]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x41a25b
cmp dword [ebp - 0x14], ebx
jne 0x41a24d
cmp dword [ebp - 0x18], ebx
jb 0x41a24d
mov ecx, esi
and ecx, 0xffff
je 0x41a231
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 [0x4289b4], eax
jne 0x41a189
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x18]
lea esi, [eax + ecx]
cmp esi, dword [ebp - 8]
jb 0x41a1ea
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41a283
Capabilities:
Parse pe header

Disassembly:
push 0x28
push 0x420ae0
call fcn.00418d88
push 0x1c
lea eax, [ebp - 0x38]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x41a2de
and dword [ebp - 4], 0
mov ecx, dword [ebp - 0x34]
cmp word [ecx], 0x5a4d
jne 0x41a2da
mov eax, dword [ecx + 0x3c]
add eax, ecx
mov dword [ebp - 0x1c], eax
cmp dword [eax], 0x4550
jne 0x41a2da
cmp word [eax + 0x14], 0
jne 0x41a2cf
xor eax, eax
or dword [ebp - 4], 0xffffffff
jmp 0x41a2e0
mov eax, ecx
jmp 0x41a2c9
or dword [ebp - 4], 0xffffffff
xor eax, eax
call fcn.00418dc3
ret

Function at 0x41a2f8
Capabilities:
Allocate or change rwx memory

Disassembly:
push ecx
push edi
xor edi, edi
cmp dword [0x4289bc], edi
jne 0x41a31b
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push 0x4289bc
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
je 0x41a322
mov eax, 0x10dd
jmp 0x41a366
push esi
mov esi, dword [0x4289b0]
mov dword [0x4289b8], edi
mov dword [0x4289cc], edi
mov dword [0x4289c8], edi
mov dword [0x4289c0], edi
mov dword [0x4289c4], edi
jmp 0x41a35f
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 0x41a349
xor eax, eax
pop esi
pop edi
pop ecx
ret

Function at 0x41a369
Capabilities:
Resume thread

Disassembly:
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x4289bc], eax
je 0x41a37f
mov eax, 0x10dd
pop ecx
ret
push ebx
push esi
mov esi, dword [0x4289cc]
xor ebx, ebx
cmp esi, ebx
push edi
je 0x41a3ca
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 0x41a3bb
mov edi, dword [esi + 0x10]
cmp edi, ebx
je 0x41a3bb
call fcn.0041a262
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 0x41a38e
mov dword [0x4289cc], ebx
call fcn.0041a051
mov esi, dword [0x4289c8]
cmp esi, ebx
je 0x41a3f7
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 0x41a3df
pop edi
pop esi
mov dword [0x4289c8], ebx
mov dword [0x4289bc], ebx
xor eax, eax
pop ebx
pop ecx
ret
Function at 0x41a64a
Capabilities:
Suspend thread

Disassembly:
mov eax, dword [0x4289c0]
test eax, eax
jne 0x41a6ba
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov edi, dword [esp + 8]
cmp edi, eax
jne 0x41a666
xor eax, eax
jmp 0x41a6b9
push esi
push 8
call fcn.00418d33
mov esi, eax
test esi, esi
pop ecx
jne 0x41a67a
push 8
pop edi
jmp 0x41a695
push edi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x41a6a6
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 [0x4289c4], 0
mov dword [0x4289c0], edi
mov eax, edi
jmp 0x41a6b8
mov eax, dword [0x4289c8]
mov dword [esi], eax
mov dword [esi + 4], edi
mov dword [0x4289c8], esi
xor eax, eax
pop esi
pop edi
ret 4