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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41c615
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.0041910c
mov dword [ebp - 0x224], eax
cmp dword [ebp - 0x224], 0
jne 0x411fd7
xor al, al
jmp 0x412143
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.0041910c
mov dword [ebp - 0x230], eax
cmp dword [ebp - 0x230], 0
je 0x4120b9
mov dword [ebp - 0x23c], 0
mov esi, esp
lea eax, [ebp - 0x23c]
push eax
push 0
push 0
push 0x41f7f0
call dword [ebp - 0x230]
cmp esi, esp
call fcn.0041910c
mov dword [ebp - 0x248], eax
cmp dword [ebp - 0x23c], 0
jne 0x412044
xor al, al
jmp 0x412143
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.0041910c
cmp eax, 0x104
jbe 0x412081
mov esi, esp
mov eax, dword [ebp - 0x23c]
push eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
cmp esi, esp
call fcn.0041910c
xor al, al
jmp 0x412143
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.0041910c
mov esi, esp
mov eax, dword [ebp - 0x23c]
push eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
cmp esi, esp
call fcn.0041910c
jmp 0x4120d7
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.0041910c
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.0041910c
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 [0x41e210]
cmp esi, esp
call fcn.0041910c
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.0041910c
mov al, 1
push edx
mov ecx, ebp
push eax
lea edx, [0x412174]
call fcn.0041912f
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.0041910c
mov esp, ebp
pop ebp
ret
Function at 0x412c90
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.0041910c
pop edi
pop esi
pop ebx
add esp, 0xcc
cmp ebp, esp
call fcn.0041910c
mov esp, ebp
pop ebp
ret 8

Function at 0x412cf0
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.0041910c
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.0041910c
pop edi
pop esi
pop ebx
add esp, 0xcc
cmp ebp, esp
call fcn.0041910c
mov esp, ebp
pop ebp
ret 0xc
Function at 0x415d90
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.0041910c
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x415dfb
mov eax, dword [ebp - 0x14]
jmp 0x415e48
cmp dword [ebp - 0x20], 1
je 0x415e0e
cmp dword [ebp - 0x20], 2
je 0x415e0e
mov eax, 0xd
jmp 0x415e48
cmp dword [ebp + 0xc], 0
je 0x415e3c
mov eax, dword [ebp - 0x2c]
xor edx, edx
mov ecx, 2
div ecx
test edx, edx
jne 0x415e35
mov eax, dword [ebp - 0x2c]
shr eax, 1
mov ecx, dword [ebp + 0xc]
movzx edx, word [ecx + eax*2 - 2]
test edx, edx
je 0x415e3c
mov eax, 0xd
jmp 0x415e48
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, [0x415e70]
call fcn.0041912f
pop eax
pop edx
pop edi
pop esi
pop ebx
add esp, 0xf0
cmp ebp, esp
call fcn.0041910c
mov esp, ebp
pop ebp
ret 0xc

Function at 0x417e80
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x218
mov eax, dword [0x42847c]
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 0x420048
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 0x420044
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.00418c29
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x417f40
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x218
mov eax, dword [0x42847c]
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 0x420048
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 0x420044
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.00418c29
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x418000
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x21c
mov eax, dword [0x42847c]
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 0x420048
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 0x420044
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.00418c29
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x4180d0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x230
mov eax, dword [0x42847c]
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 0x420048
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 0x4181ae
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 0x4181ae
jg 0x418197
cmp ecx, 0x28e44000
jbe 0x4181ae
mov eax, 1
mov ecx, dword [esp + 0x234]
call fcn.00418c29
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x234]
xor eax, eax
call fcn.00418c29
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4181d0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x420
mov eax, dword [0x42847c]
push esi
push edi
mov dword [esp + 0x424], eax
call fcn.00417e80
test eax, eax
jne 0x418205
mov ecx, dword [esp + 0x424]
call fcn.00418c29
pop edi
pop esi
mov esp, ebp
pop ebp
ret
call fcn.00418000
test eax, eax
jne 0x4182ca
call fcn.004180d0
test eax, eax
jne 0x4182ca
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 0x420044
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.00418c29
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x424]
mov eax, 1
call fcn.00418c29
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x418460
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xa10
mov eax, dword [0x42847c]
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 0x4184f5
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 0x41850f
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 0x41853f
push str._XL_AddCrashProcess_12
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x41853f
push 2
lea ecx, [esp + 0x214]
push ecx
lea edx, [esp + 0x10]
push edx
call eax
call fcn.00417e80
test eax, eax
je 0x418561
call fcn.00417f40
test eax, eax
jne 0x418561
push eax
push eax
push 0x4182f0
call dword [sym.imp.MSVCR71.dll__beginthread]
add esp, 0xc
mov ecx, dword [esp + 0xa14]
call fcn.00418c29
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x418580
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x414
mov eax, dword [0x42847c]
mov dword [esp + 0x410], eax
call fcn.00417f40
test eax, eax
jne 0x4185f3
call fcn.004181d0
test eax, eax
je 0x41860b
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.00418c29
add esp, 0x414
ret
mov ecx, dword [esp + 0x410]
xor eax, eax
call fcn.00418c29
add esp, 0x414
ret
Function at 0x418e94
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x74
push 0x420388
call fcn.00418c4c
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 0x418ed4
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x418ed4
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x418eec
cmp eax, 0x20b
je 0x418ed9
mov dword [ebp - 0x1c], edi
jmp 0x418f00
cmp dword [ecx + 0x84], 0xe
jbe 0x418ed4
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x418efa
cmp dword [ecx + 0x74], 0xe
jbe 0x418ed4
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 [0x4289b0], 0xffffffff
or dword [0x4289b4], 0xffffffff
call dword [sym.imp.MSVCR71.dll___p__fmode]
mov ecx, dword [0x42892c]
mov dword [eax], ecx
call dword [sym.imp.MSVCR71.dll___p__commode]
mov ecx, dword [0x428928]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCR71.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x4289ac], eax
call fcn.0041921a
call fcn.004192ba
cmp dword [0x4284a0], edi
jne 0x418f60
push fcn.004192ba
call dword [sym.imp.MSVCR71.dll___setusermatherr]
pop ecx
call fcn.004192a8
push 0x42805c
push 0x428058
call sub.MSVCR71.dll__initterm
push 0x41925e
call fcn.00418d02
mov eax, dword [0x428924]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push dword [0x428920]
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 0x418fb4
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 0x418fde
or dword [ebp - 4], 0xffffffff
mov eax, 0xff
jmp 0x419098
mov dword [ebp - 0x24], esi
mov ax, word [esi]
cmp ax, 0x20
ja 0x41904d
cmp ax, di
je 0x418ff4
cmp dword [ebp - 0x20], edi
jne 0x41904d
mov ax, word [esi]
cmp ax, di
je 0x419009
cmp ax, 0x20
ja 0x419009
inc esi
inc esi
mov dword [ebp - 0x24], esi
jmp 0x418ff4
mov dword [ebp - 0x58], edi
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
test byte [ebp - 0x58], 1
je 0x419025
movzx eax, word [ebp - 0x54]
jmp 0x419028
push 0xa
pop eax
push eax
push esi
push edi
push edi
call ebx
push eax
call fcn.004099f8
mov esi, eax
mov dword [ebp - 0x40], esi
cmp dword [ebp - 0x1c], edi
jne 0x419045
push esi
call dword [sym.imp.MSVCR71.dll_exit]
call dword [sym.imp.MSVCR71.dll__cexit]
jmp 0x419092
cmp ax, 0x22
jne 0x41905e
xor eax, eax
cmp dword [ebp - 0x20], edi
sete al
mov dword [ebp - 0x20], eax
inc esi
inc esi
jmp 0x418fde
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.00418c87
ret
Function at 0x419db4
Capabilities:
Parse pe header

Disassembly:
push 0x2c
push 0x420908
call fcn.00418c4c
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 0x419e20
mov eax, dword [ecx + 0x3c]
add eax, ecx
mov dword [ebp - 0x20], eax
cmp dword [eax], 0x4550
je 0x419df8
xor al, al
or dword [ebp - 4], 0xffffffff
jmp 0x419e26
mov edx, dword [eax + 0xd8]
lea esi, [edx + ecx]
cmp dword [ebp + 0xc], esi
jb 0x419df0
mov eax, dword [eax + 0xdc]
add eax, edx
add eax, ecx
cmp dword [ebp + 0xc], eax
jae 0x419df0
mov al, 1
jmp 0x419df2
or dword [ebp - 4], 0xffffffff
xor al, al
call fcn.00418c87
ret
Function at 0x419f28
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 0x419f4b
lea eax, [esi - 0x7ff80000]
mov dword [ebp - 4], eax
jmp 0x419f4e
mov dword [ebp - 4], ebx
cmp esi, 0x80000000
jae 0x419f61
lea eax, [esi + 0x7ff80000]
mov dword [ebp - 8], eax
jmp 0x419f68
mov dword [ebp - 8], 0xfff80000
mov eax, dword [0x428990]
test eax, eax
mov ecx, dword [0x42898c]
jne 0x419f82
test ecx, ecx
je 0x419f97
mov eax, ecx
mov dword [0x428990], eax
mov edx, dword [eax + 8]
test edx, edx
je 0x419f97
cmp edx, dword [ebp - 4]
jb 0x419f97
cmp edx, dword [ebp - 8]
jbe 0x41a06b
mov eax, ecx
test ecx, ecx
jmp 0x419fbb
test eax, eax
je 0x419fb6
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x419fb6
cmp ecx, dword [ebp - 4]
jb 0x419fb6
cmp ecx, dword [ebp - 8]
jbe 0x41a06b
mov eax, dword [eax + 4]
test eax, eax
mov dword [0x428990], eax
jne 0x419f9d
mov eax, esi
and eax, 0xffff
sub esi, eax
cmp esi, dword [ebp - 4]
mov edi, esi
jbe 0x41a106
cmp edi, 0x70000000
jb 0x419feb
cmp edi, 0x80000000
ja 0x419feb
mov edi, 0x6fff0000
push 0x1c
lea eax, [ebp - 0x40]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x41a106
cmp dword [ebp - 0x30], ebx
jne 0x41a00a
cmp dword [ebp - 0x34], ebx
jae 0x41a01d
mov edi, dword [ebp - 0x3c]
add edi, 0xffff0000
cmp edi, dword [ebp - 4]
ja 0x419fd6
jmp 0x41a106
push 0x40
push 0x3000
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
mov dword [0x428990], eax
je 0x41a106
mov ecx, dword [0x42898c]
xor edx, edx
mov dword [eax + 4], ecx
mov dword [eax], 0x52727464
mov dword [eax + 8], edx
mov dword [0x42898c], eax
lea ecx, [eax + 0xffe0]
mov esi, 0x7fd
mov dword [ecx + 0x18], edx
mov edx, ecx
sub ecx, 0x20
dec esi
jne 0x41a05d
mov dword [eax + 8], edx
mov esi, dword [eax + 8]
cmp esi, dword [ebp - 4]
jb 0x41a10b
cmp esi, dword [ebp - 8]
ja 0x41a10b
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 0x41a10d
cmp esi, 0x70000000
jb 0x41a0af
cmp esi, 0x80000000
ja 0x41a0af
mov esi, 0x80010000
push 0x1c
lea eax, [ebp - 0x24]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x41a10b
cmp dword [ebp - 0x14], ebx
jne 0x41a0fd
cmp dword [ebp - 0x18], ebx
jb 0x41a0fd
mov ecx, esi
and ecx, 0xffff
je 0x41a0e1
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 [0x428990], eax
jne 0x41a039
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x18]
lea esi, [eax + ecx]
cmp esi, dword [ebp - 8]
jb 0x41a09a
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41a133
Capabilities:
Parse pe header

Disassembly:
push 0x28
push 0x420918
call fcn.00418c4c
push 0x1c
lea eax, [ebp - 0x38]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x41a18e
and dword [ebp - 4], 0
mov ecx, dword [ebp - 0x34]
cmp word [ecx], 0x5a4d
jne 0x41a18a
mov eax, dword [ecx + 0x3c]
add eax, ecx
mov dword [ebp - 0x1c], eax
cmp dword [eax], 0x4550
jne 0x41a18a
cmp word [eax + 0x14], 0
jne 0x41a17f
xor eax, eax
or dword [ebp - 4], 0xffffffff
jmp 0x41a190
mov eax, ecx
jmp 0x41a179
or dword [ebp - 4], 0xffffffff
xor eax, eax
call fcn.00418c87
ret

Function at 0x41a1a8
Capabilities:
Allocate or change rwx memory

Disassembly:
push ecx
push edi
xor edi, edi
cmp dword [0x428998], edi
jne 0x41a1cb
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push 0x428998
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
je 0x41a1d2
mov eax, 0x10dd
jmp 0x41a216
push esi
mov esi, dword [0x42898c]
mov dword [0x428994], edi
mov dword [0x4289a8], edi
mov dword [0x4289a4], edi
mov dword [0x42899c], edi
mov dword [0x4289a0], edi
jmp 0x41a20f
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 0x41a1f9
xor eax, eax
pop esi
pop edi
pop ecx
ret

Function at 0x41a219
Capabilities:
Resume thread

Disassembly:
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x428998], eax
je 0x41a22f
mov eax, 0x10dd
pop ecx
ret
push ebx
push esi
mov esi, dword [0x4289a8]
xor ebx, ebx
cmp esi, ebx
push edi
je 0x41a27a
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 0x41a26b
mov edi, dword [esi + 0x10]
cmp edi, ebx
je 0x41a26b
call fcn.0041a112
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 0x41a23e
mov dword [0x4289a8], ebx
call fcn.00419f01
mov esi, dword [0x4289a4]
cmp esi, ebx
je 0x41a2a7
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 0x41a28f
pop edi
pop esi
mov dword [0x4289a4], ebx
mov dword [0x428998], ebx
xor eax, eax
pop ebx
pop ecx
ret
Function at 0x41a4fa
Capabilities:
Suspend thread

Disassembly:
mov eax, dword [0x42899c]
test eax, eax
jne 0x41a56a
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov edi, dword [esp + 8]
cmp edi, eax
jne 0x41a516
xor eax, eax
jmp 0x41a569
push esi
push 8
call fcn.00418bce
mov esi, eax
test esi, esi
pop ecx
jne 0x41a52a
push 8
pop edi
jmp 0x41a545
push edi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x41a556
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 [0x4289a0], 0
mov dword [0x42899c], edi
mov eax, edi
jmp 0x41a568
mov eax, dword [0x4289a4]
mov dword [esi], eax
mov dword [esi + 4], edi
mov dword [0x4289a4], esi
xor eax, eax
pop esi
pop edi
ret 4