joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41714d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor ebx, ebx
call fcn.00408b10
mov esi, dword [eax + 0xc]
push 5
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x417186
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov ecx, dword [ebp - 4]
push esi
push dword [ebp + 0xc]
push ebx
call fcn.00416d8f
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8

Function at 0x4171e4
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x78], ebx
test ebx, 0xffff0000
jne 0x417208
cmp dword [edi + 0x74], 0
jne 0x417208
movzx eax, bx
mov dword [edi + 0x74], eax
call fcn.00408b10
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.004171a5
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x4176e8
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x55c168]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, 0x105
push esi
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x41771d
xor eax, eax
jmp 0x417770
lea eax, [ebp - 0x210]
push eax
call fcn.004f501e
cmp word [ebp + eax*2 - 0x212], 0x5c
pop ecx
je 0x41774e
push 0x51afa8
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.004f867d
add esp, 0xc
test eax, eax
jne 0x417719
push edi
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.004f867d
add esp, 0xc
test eax, eax
jne 0x417719
lea eax, [ebp - 0x210]
push eax
call fcn.0040f969
pop ecx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004f30e9
leave
ret

Function at 0x41be79
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push esi
mov esi, ecx
call fcn.00450ca1
call fcn.0040852d
cmp dword [eax + 0x14], 0
jne 0x41be96
mov ecx, esi
pop esi
jmp fcn.0041b960
pop esi
ret

Function at 0x41f5d2
Capabilities:
Get common file path
Get file system object information

Disassembly:
mov edi, edi
push esi
mov esi, ecx
call fcn.0043d929
call fcn.0040852d
cmp dword [eax + 0x14], 0
jne 0x41f5ef
mov ecx, esi
pop esi
jmp fcn.0041efa5
pop esi
ret
Function at 0x45583f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [ebp - 4], ecx
test esi, esi
jne 0x455859
call fcn.00408b10
mov esi, dword [eax + 0xc]
push dword [0x560e34]
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x455877
xor eax, eax
pop edi
pop esi
leave
ret 8
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp + 0xc], eax
test eax, eax
je 0x45586f
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x4558a4
xor esi, esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop ebx
jmp 0x455871
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push ebx
call fcn.0045576d
mov esi, eax
jmp 0x455896

Function at 0x4d8cfe
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
test byte [esi + 4], 1
push edi
mov ebx, ecx
je 0x4d8d16
mov edi, dword [esi + 0xc]
jmp 0x4d8d56
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x4d8d2f
call fcn.0040c703
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x4d8d44
call fcn.0040c703
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x4d8d56
call fcn.0040c703
call fcn.00408b10
cmp dword [eax + 0x3c], 0
je 0x4d8d6b
push edi
mov ecx, ebx
call fcn.004d7b3a
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.004d8c18
mov dword [ebp + 8], eax
mov eax, dword [ebx + 0x7c]
test eax, eax
je 0x4d8d89
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
and dword [ebx + 0x7c], 0
mov eax, dword [ebp + 8]
test eax, eax
je 0x4d8d95
mov edi, eax
mov dword [ebx + 0x7c], eax
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x4f30e9
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x55c168]
jne 0x4f30f3
repz ret
jmp fcn.004fa304
Function at 0x50821d
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x55c168]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.004fb08b
and dword [ebp - 0x14], 0
cmp dword [0x56390c], 0
mov dword [ebp - 0x18], eax
jne 0x5082d0
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x508378
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x508378
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x53f21c
push ebx
mov dword [0x56390c], eax
call edi
push eax
call esi
push 0x53f208
push ebx
mov dword [0x563910], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x563914], eax
call edi
push eax
call esi
mov dword [0x56391c], eax
test eax, eax
je 0x5082d0
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x563918], eax
mov eax, dword [0x563918]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x508329
cmp dword [0x56391c], ecx
je 0x508329
push eax
call esi
push dword [0x56391c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x508329
test ebx, ebx
je 0x508329
call edi
test eax, eax
je 0x508320
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x508320
test byte [ebp - 8], 1
jne 0x508329
or dword [ebp + 0x10], 0x200000
jmp 0x50835c
mov eax, dword [0x563910]
cmp eax, dword [ebp - 0x18]
je 0x50835c
push eax
call esi
test eax, eax
je 0x50835c
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x50835c
mov eax, dword [0x563914]
cmp eax, dword [ebp - 0x18]
je 0x50835c
push eax
call esi
test eax, eax
je 0x50835c
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x56390c]
call esi
test eax, eax
je 0x508378
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x50837a
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004f30e9
leave
ret
Function at 0x403660
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4107b3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
mov eax, dword [esp + 0x34]
push esi
push eax
lea ecx, [esp + 0xc]
mov dword [esp + 8], 0
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
mov ecx, dword [esp + 0x3c]
push ecx
mov ecx, eax
mov dword [esp + 0x30], 1
call dword [0x4124bc]
mov esi, dword [esp + 0x34]
push eax
mov ecx, esi
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
lea ecx, [esp + 8]
mov dword [esp + 4], 1
mov byte [esp + 0x2c], 0
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov ecx, dword [esp + 0x24]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x2c
ret
Function at 0x406320
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x410cd3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
mov eax, dword [esp + 0x34]
push esi
push eax
lea ecx, [esp + 0xc]
mov dword [esp + 8], 0
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
mov ecx, dword [esp + 0x3c]
push ecx
mov ecx, eax
mov dword [esp + 0x30], 1
call dword [sym.imp.MSVCP71.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_char_const__]
mov esi, dword [esp + 0x34]
push eax
mov ecx, esi
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
lea ecx, [esp + 8]
mov dword [esp + 4], 1
mov byte [esp + 0x2c], 0
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov ecx, dword [esp + 0x24]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x2c
ret
Function at 0x4063a0
Capabilities:
Access peb ldr_data
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x410d17
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x138
mov eax, dword [0x418168]
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 4]
push edi
mov ecx, ebx
mov dword [esp + 0x13c], eax
mov dword [esp + 0x10], esi
mov dword [esi], 0x413388
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
xor eax, eax
mov dword [esi + 0x20], eax
mov byte [esp + 0x30], al
mov dword [esp + 0x14c], eax
mov ecx, 0x40
lea edi, [esp + 0x31]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x30]
push eax
push 0x104
mov dword [0x4183e4], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push str...Helper
lea ecx, [esp + 0x34]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
lea edx, [esp + 0x30]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashA]
lea eax, [esp + 0x30]
push eax
mov ecx, ebx
call dword [0x4124a0]
push 0x24
call sub.MFC71U.DLL_CWordArray::CWordArray
add esp, 4
mov dword [esp + 0xc], eax
test eax, eax
mov byte [esp + 0x14c], 1
je 0x406466
mov ecx, eax
call fcn.00406720
jmp 0x406468
xor eax, eax
push 0x30
mov byte [esp + 0x150], 0
mov dword [esi + 0x20], eax
call sub.MFC71U.DLL_CWordArray::CWordArray
add esp, 4
mov dword [esp + 0xc], eax
test eax, eax
mov byte [esp + 0x14c], 2
je 0x406496
mov ecx, eax
call fcn.004055c0
jmp 0x406498
xor eax, eax
mov dword [esi + 0x24], eax
mov ecx, dword [0x4183e4]
push str.HelperItems.xml
add ecx, 4
push ecx
lea edx, [esp + 0x1c]
push edx
mov byte [esp + 0x158], 0
call fcn.00406320
add esp, 0xc
mov ecx, dword [esi + 0x24]
push eax
mov byte [esp + 0x150], 3
call fcn.00404640
lea ecx, [esp + 0x14]
mov byte [esp + 0x14c], 0
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov ecx, dword [esp + 0x144]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x13c]
mov eax, esi
call fcn.0040ff99
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x406830
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x410da6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x178
mov eax, dword [0x418168]
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x120], esi
call fcn.00409320
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
xor edi, edi
mov dword [ebp - 4], edi
mov ecx, ebx
mov dword [esi], 0x413428
mov dword [esi + 0x54], eax
mov dword [ebp - 0x11c], edi
mov byte [ebp - 4], 1
call dword [sym.imp.MSVCP71.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
push 0x413424
push eax
call dword [sym.imp.MSVCR71.dll_fopen]
mov esi, eax
add esp, 8
cmp esi, edi
jne 0x406910
mov byte [ebp - 0x118], 0
xor eax, eax
mov ecx, 0x40
lea edi, [ebp - 0x117]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, ebx
stosb byte es:[edi], al
call dword [sym.imp.MSVCP71.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
push eax
push str.TinyXMLDocument:Load_file__s_error
lea ecx, [ebp - 0x118]
push 0x104
push ecx
call dword [sym.imp.MSVCR71.dll__snprintf]
add esp, 0x10
lea eax, [ebp - 0x124]
lea edx, [ebp - 0x118]
push eax
lea ecx, [ebp - 0x130]
mov dword [ebp - 0x124], edx
call dword [sym.imp.MSVCR71.dll_public:_void___thiscall_exception::constructor_char_const__const_const__]
push 0x4150c0
lea ecx, [ebp - 0x130]
push ecx
call sub.MSVCR71.dll__CxxThrowException
push 2
push edi
mov edi, dword [sym.imp.MSVCR71.dll_fseek]
push esi
call edi
push esi
call dword [sym.imp.MSVCR71.dll_ftell]
push 0
mov ebx, eax
push 0
push esi
mov dword [ebp + 8], ebx
call edi
lea edi, [ebx + 1]
push edi
call sub.MFC71U.DLL_SerializeElements
mov ecx, edi
mov ebx, eax
mov edx, ecx
shr ecx, 2
xor eax, eax
mov edi, ebx
rep stosd dword es:[edi], eax
mov ecx, edx
add esp, 0x20
and ecx, 3
rep stosb byte es:[edi], al
mov edi, dword [ebp + 8]
push esi
push edi
push 1
push ebx
mov dword [ebp - 0x11c], ebx
call dword [sym.imp.MSVCR71.dll_fread]
push esi
mov byte [edi + ebx], 0
call dword [sym.imp.MSVCR71.dll_fclose]
add esp, 0x14
lea ecx, [ebp - 0x184]
call fcn.00409320
xor esi, esi
push esi
push esi
push ebx
lea ecx, [ebp - 0x184]
mov byte [ebp - 4], 2
call fcn.0040ae50
lea ecx, [ebp - 0x184]
call fcn.00408660
cmp eax, esi
je 0x4069ad
mov ecx, dword [ebp - 0x120]
push eax
call fcn.00406590
mov eax, dword [ebp - 0x148]
cmp eax, esi
mov byte [ebp - 4], 1
mov dword [ebp - 0x184], 0x413428
je 0x4069ce
push eax
call sub.MFC71U.DLL_operator_new
add esp, 4
lea ecx, [ebp - 0x184]
mov dword [ebp - 0x148], esi
mov dword [ebp - 0x144], esi
mov dword [ebp - 0x140], esi
call fcn.00408db0
push ebx
call sub.MFC71U.DLL_operator_new
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x120]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
add esp, 4
call fcn.0040ff99
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x408b67
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x410f2e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
or eax, 0xffffffff
xor ebx, ebx
mov dword [esi + 8], eax
mov dword [esi + 4], eax
push edi
mov dword [esp + 0xc], esi
mov dword [esi + 0xc], ebx
lea ecx, [esi + 0x14]
mov dword [esi], 0x413944
mov dword [esp + 0x18], ebx
mov dword [ecx + 4], ebx
mov dword [ecx], ebx
mov dword [ecx + 8], ebx
lea edi, [esi + 0x20]
mov dword [edi + 4], ebx
mov dword [edi], ebx
mov dword [edi + 8], ebx
mov eax, dword [esp + 0x20]
push eax
mov byte [esp + 0x1c], 2
call fcn.00408290
mov ecx, dword [esp + 0x24]
push ecx
mov ecx, edi
call fcn.00408290
mov ecx, dword [esp + 0x10]
mov dword [esi + 0x10], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x2c], ebx
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 8

Function at 0x409320
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x410f93
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
xor ebx, ebx
push esi
mov esi, ecx
or eax, 0xffffffff
mov dword [esi + 8], eax
mov dword [esi + 4], eax
mov dword [esi + 0xc], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x28], ebx
mov dword [esp + 8], esi
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
lea ecx, [esi + 0x3c]
mov dword [esi], 0x413428
mov dword [esp + 0x14], ebx
mov dword [ecx + 4], ebx
mov dword [ecx], ebx
mov dword [ecx + 8], ebx
mov dword [esi + 0x50], eax
mov dword [esi + 0x4c], eax
push 0x412b46
mov byte [esp + 0x18], 1
mov dword [esi + 0x48], 4
mov byte [esi + 0x34], bl
mov dword [esi + 0x38], ebx
call fcn.00408290
mov ecx, dword [esp + 0xc]
mov dword [esi + 0x50], ebx
mov dword [esi + 0x4c], ebx
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x4096d9
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x410fe8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
or eax, 0xffffffff
push esi
mov esi, ecx
mov dword [esi + 8], eax
mov dword [esi + 4], eax
xor eax, eax
lea ecx, [esi + 0x20]
mov dword [esi + 0xc], eax
mov dword [ecx + 4], eax
mov dword [ecx], eax
mov dword [ecx + 8], eax
mov dword [esp + 4], esi
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 4
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], eax
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x18]
push eax
mov dword [esi], 0x4139dc
call fcn.00408290
mov ecx, dword [esp + 8]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 4
Function at 0x409960
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x411033
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
xor edx, edx
push esi
mov esi, ecx
push edi
or edi, 0xffffffff
mov dword [esi + 8], edi
mov dword [esi + 4], edi
lea ecx, [esi + 0x20]
mov dword [esi + 0xc], edx
mov dword [ecx + 4], edx
mov dword [ecx], edx
mov dword [ecx + 8], edx
mov dword [esp + 8], esi
mov dword [esi + 0x10], edx
mov dword [esi + 0x14], 1
mov dword [esi + 0x2c], edx
mov dword [esi + 0x30], edx
lea eax, [esi + 0x34]
mov dword [esi], 0x413a0c
mov dword [eax + 8], edi
mov dword [eax + 4], edi
mov dword [eax + 0xc], edx
mov dword [eax], 0x413944
mov dword [eax + 0x18], edx
mov dword [eax + 0x14], edx
mov dword [eax + 0x1c], edx
mov dword [eax + 0x24], edx
mov dword [eax + 0x20], edx
mov dword [eax + 0x28], edx
mov dword [esp + 0x14], edx
mov dword [eax + 0x10], edx
mov dword [eax + 0x30], eax
mov dword [eax + 0x2c], eax
mov eax, dword [esp + 0x1c]
push eax
mov byte [esp + 0x18], 1
mov dword [esi + 0x1c], edx
mov dword [esi + 0x18], edx
call fcn.00408290
mov ecx, dword [esp + 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 4
Function at 0x40fcf0
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x74
push 0x414768
call fcn.00410070
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 0x40fd30
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40fd30
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x40fd48
cmp eax, 0x20b
je 0x40fd35
mov dword [ebp - 0x1c], edi
jmp 0x40fd5c
cmp dword [ecx + 0x84], 0xe
jbe 0x40fd30
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x40fd56
cmp dword [ecx + 0x74], 0xe
jbe 0x40fd30
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 [0x418464], 0xffffffff
or dword [0x418468], 0xffffffff
call dword [sym.imp.MSVCR71.dll___p__fmode]
mov ecx, dword [0x41841c]
mov dword [eax], ecx
call dword [sym.imp.MSVCR71.dll___p__commode]
mov ecx, dword [0x418418]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCR71.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x418460], eax
call fcn.00410192
call fcn.00410232
cmp dword [0x41816c], edi
jne 0x40fdbc
push fcn.00410232
call dword [sym.imp.MSVCR71.dll___setusermatherr]
pop ecx
call fcn.00410220
push 0x418028
push 0x418024
call sub.MSVCR71.dll__initterm
push 0x4101d6
call fcn.0040ffcd
mov eax, dword [0x418414]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push dword [0x418410]
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 0x40fe10
push 8
call sub.MSVCR71.dll__amsg_exit
pop ecx
push 0x418020
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 0x40fe3a
or dword [ebp - 4], 0xffffffff
mov eax, 0xff
jmp 0x40fef4
mov dword [ebp - 0x24], esi
mov ax, word [esi]
cmp ax, 0x20
ja 0x40fea9
cmp ax, di
je 0x40fe50
cmp dword [ebp - 0x20], edi
jne 0x40fea9
mov ax, word [esi]
cmp ax, di
je 0x40fe65
cmp ax, 0x20
ja 0x40fe65
inc esi
inc esi
mov dword [ebp - 0x24], esi
jmp 0x40fe50
mov dword [ebp - 0x58], edi
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
test byte [ebp - 0x58], 1
je 0x40fe81
movzx eax, word [ebp - 0x54]
jmp 0x40fe84
push 0xa
pop eax
push eax
push esi
push edi
push edi
call ebx
push eax
call fcn.004103b2
mov esi, eax
mov dword [ebp - 0x40], esi
cmp dword [ebp - 0x1c], edi
jne 0x40fea1
push esi
call dword [sym.imp.MSVCR71.dll_exit]
call dword [sym.imp.MSVCR71.dll__cexit]
jmp 0x40feee
cmp ax, 0x22
jne 0x40feba
xor eax, eax
cmp dword [ebp - 0x20], edi
sete al
mov dword [ebp - 0x20], eax
inc esi
inc esi
jmp 0x40fe3a
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.004100ab
ret