joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403090
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x3c
mov eax, dword [0x41901c]
xor eax, esp
mov dword [esp + 0x38], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
push 0
call dword [sym.imp.ole32.dll_OleInitialize]
call fcn.00403420
push 0x413978
lea ecx, [esp + 0x2c]
xor edi, edi
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
push str.IconTips
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.MSVCP90.dll_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____cdecl_std::operator_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const___wchar_t_const__]
sub esp, 0xfffffff4
push eax
lea ecx, [esp + 0x2c]
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
lea ecx, [esp + 0xc]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
cmp dword [esp + 0x40], 8
mov eax, dword [esp + 0x2c]
jae 0x40310c
lea eax, [esp + 0x2c]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x403161
mov edx, dword [ebp + 0x14]
mov edi, dword [sym.imp.USER32.dll_LoadStringW]
push 0x64
push 0x41932c
push 0x67
push esi
mov dword [0x419324], esi
mov dword [0x419328], edx
call edi
push 0x64
push 0x4193f4
push 0x6d
push esi
call edi
mov eax, esi
call fcn.004031a0
call fcn.004022b0
mov edi, eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
call fcn.00403380
call dword [sym.imp.ole32.dll_OleUninitialize]
call dword [sym.imp.ole32.dll_CoUninitialize]
lea ecx, [esp + 0x28]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov ecx, dword [esp + 0x44]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0041045c
mov esp, ebp
pop ebp
ret 0x10
Function at 0x404690
Capabilities:
Set registry value

Disassembly:
push ebx
mov ebx, dword [esp + 0x10]
or ebx, ebx
jne 0x4046a0
lea eax, [ebx + 0xd]
pop ebx
ret 0xc
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [ecx]
push ebp
mov ebp, ebx
push edi
xor edi, edi
push ebp
call esi
inc eax
lea ecx, [eax + eax]
add ebp, ecx
add edi, ecx
cmp eax, 1
jne 0x4046b0
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx]
push edi
push ebx
push 7
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop ebp
pop esi
pop ebx
ret 0xc
Function at 0x404b90
Capabilities:
Query or enumerate registry key

Disassembly:
add esp, 0xfffffdd8
mov eax, dword [0x41901c]
xor eax, esp
mov dword [esp + 0x224], eax
mov eax, dword [ecx]
push ebx
mov ebx, dword [ecx + 4]
push ebp
push esi
xor ebp, ebp
push edi
or ebx, 0x2001f
mov edi, dword [esp + 0x23c]
mov dword [esp + 0x24], ecx
lea ecx, [esp + 0x20]
push ecx
push ebx
push ebp
push edi
push eax
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x34], ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
mov ecx, dword [esp + 0x14]
cmp esi, ebp
jne 0x404c0a
xor eax, eax
cmp ecx, ebp
je 0x404bf2
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x20]
and ebx, 0x300
cmp eax, ebp
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], ebx
mov esi, eax
je 0x404c18
cmp ecx, ebp
je 0x404cab
push ecx
jmp 0x404ca5
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea ebx, [esp + 0x28]
push ebx
push ebp
push ebp
push ebp
lea eax, [esp + 0x2c]
push eax
lea edx, [esp + 0x44]
push edx
push ebp
push ecx
mov dword [esp + 0x3c], pe_nt_image_headers32
call esi
or eax, eax
jne 0x404c7a
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x18]
call fcn.00404b90
mov ebx, eax
cmp ebx, ebp
jne 0x404cc8
lea ecx, [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x18]
push ebp
push ebp
push ebp
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x44]
push eax
push ebp
push ecx
mov dword [esp + 0x3c], pe_nt_image_headers32
call esi
or eax, eax
je 0x404c40
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x404c8d
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x14], ebp
mov esi, dword [esp + 0x24]
mov dword [esp + 0x18], ebp
call fcn.00404d40
mov esi, eax
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x404cab
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [esp + 0x234]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0041045c
sub esp, 0xfffffdd8
ret 4
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x404cd7
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x404cad
Function at 0x4057d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
lea ebp, [esp - 0x408]
sub esp, 0x408
push 0xffffffffffffffff
push 0x411f60
mov eax, dword fs:[0]
push eax
add esp, 0xffffffe4
mov eax, dword [0x41901c]
xor eax, ebp
mov dword [ebp + 0x404], eax
push edi
push esi
push ebx
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0x410]
mov esi, dword [ebp + 0x414]
xor edi, edi
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x1c], edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x28], edi
mov dword [ebp], edi
push 2
push edi
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov ebx, eax
mov dword [ebp - 0x18], ebx
cmp ebx, edi
jne 0x40584f
call fcn.00403f80
mov esi, eax
jmp 0x405931
mov eax, dword [ebp - 0x14]
push eax
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
cmp esi, edi
jne 0x40586b
call fcn.00403f80
jmp 0x405928
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x20], eax
cmp eax, edi
jne 0x405884
call fcn.00403f80
jmp 0x405928
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea ecx, [eax + 1]
mov dword [ebp - 0x14], eax
cmp ecx, eax
jae 0x4058b8
lea ecx, [ebp + 4]
cmp dword [ebp], ecx
je 0x4058a6
lea eax, [ebp]
call fcn.004046e0
lea esi, [ebp - 0x1c]
call fcn.00405c80
mov eax, 0x8007000e
jmp 0x405943
mov eax, ecx
lea esi, [ebp]
mov byte [ebp - 4], 2
call fcn.00403f40
mov dword [ebp - 4], 1
jmp 0x4058e1
mov ecx, dword [ebp]
cmp ecx, edi
jne 0x4058ef
mov esi, 0x8007000e
jmp 0x40592a
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x20]
push eax
push ecx
push eax
push edx
push edi
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, edi
jne 0x40590d
call fcn.00403f80
jmp 0x405928
mov edx, dword [ebp]
xor ecx, ecx
mov word [edx + eax*2], cx
mov eax, dword [ebp + 0x418]
mov ecx, dword [ebp]
push eax
lea edx, [ebp - 0x28]
call fcn.00405680
mov esi, eax
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [ebp + 4]
cmp dword [ebp], ecx
je 0x405941
lea eax, [ebp]
call fcn.004046e0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop ebx
pop esi
pop edi
mov ecx, dword [ebp + 0x404]
xor ecx, ebp
call fcn.0041045c
add ebp, 0x408
mov esp, ebp
pop ebp
ret 0xc
Function at 0x406220
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x411863
mov eax, dword fs:[0]
push eax
add esp, 0xfffffdd0
mov eax, dword [0x41901c]
xor eax, esp
mov dword [esp + 0x22c], eax
push esi
mov eax, dword [0x41901c]
xor eax, esp
push eax
lea eax, [esp + 0x238]
mov dword fs:[0], eax
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0
mov dword [esp + 0x240], 4
cmp dword [esp + 0x2b0], 0
jne 0x4062a8
lea esi, [esp + 0x10]
call fcn.004061b0
push eax
mov byte [esp + 0x244], 5
lea ecx, [esp + 0x2a0]
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
mov ecx, esi
mov byte [esp + 0x240], 4
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
push 0x206
xor eax, eax
push eax
lea ecx, [esp + 0x36]
push ecx
mov word [esp + 0x38], ax
call sub.MSVCR90.dll_memset
mov esi, dword [esp + 0x2ac]
sub esp, 0xfffffff4
mov eax, 8
cmp dword [esp + 0x2b4], eax
jae 0x4062de
lea esi, [esp + 0x2a0]
mov edx, dword [esp + 0x284]
cmp dword [esp + 0x298], eax
jae 0x4062f5
lea edx, [esp + 0x284]
mov ecx, dword [esp + 0x268]
cmp dword [esp + 0x27c], eax
jae 0x40630c
lea ecx, [esp + 0x268]
cmp dword [esp + 0x260], eax
mov eax, dword [esp + 0x24c]
jae 0x406323
lea eax, [esp + 0x24c]
push esi
push 0x104
lea esi, [esp + 0x34]
push esi
push edx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov edx, esi
push edx
mov ecx, edi
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
lea ecx, [esp + 0x248]
mov dword [esp + 8], 1
mov byte [esp + 0x240], 3
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov byte [esp + 0x240], 2
lea ecx, [esp + 0x264]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [esp + 0x280]
mov byte [esp + 0x240], 1
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov byte [esp + 0x240], 0
lea ecx, [esp + 0x29c]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov eax, edi
mov edx, dword [esp + 0x238]
mov dword fs:[0], edx
pop edx
pop esi
mov ecx, dword [esp + 0x22c]
xor ecx, esp
call fcn.0041045c
sub esp, 0xfffffdc4
ret
Function at 0x4065f0
Capabilities:
Check if file exists
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x41154b
mov eax, dword fs:[0]
push eax
add esp, 0xffffffc4
mov eax, dword [0x41901c]
xor eax, esp
mov dword [esp + 0x38], eax
push esi
mov eax, dword [0x41901c]
xor eax, esp
push eax
lea eax, [esp + 0x44]
mov dword fs:[0], eax
lea eax, [esp + 0x24]
push eax
call fcn.00405db0
push 0x413978
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x14]
mov dword [esp + 0x58], 0
mov esi, dword [sym.imp.MSVCP90.dll_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____cdecl_std::operator_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const___wchar_t_const__]
push edx
call esi
add esp, 0x10
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x50], 1
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
lea ecx, [esp + 8]
mov byte [esp + 0x4c], 0
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
push str..exe
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x10]
push ecx
call esi
add esp, 0xc
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x50], 2
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
lea ecx, [esp + 8]
mov byte [esp + 0x4c], 0
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov eax, dword [esp + 0x28]
mov esi, 8
cmp dword [esp + 0x3c], esi
jae 0x4066b0
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
or eax, eax
je 0x4066da
mov eax, dword [esp + 0x28]
cmp dword [esp + 0x3c], esi
jae 0x4066c9
lea eax, [esp + 0x28]
push 1
push 0
push 0
push eax
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea ecx, [esp + 0x24]
mov dword [esp + 0x4c], 0xffffffff
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov ecx, dword [esp + 0x44]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.0041045c
sub esp, 0xffffffb8
ret
Function at 0x407a80
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
movzx ebp, word [esp + 0xc]
push esi
push edi
push 0x414278
push ebp
mov edi, eax
mov esi, ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
or ebx, ebx
jne 0x407ad3
push 2
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x407b7f
push 0x2000
push ebx
push ebx
push ebx
push ebp
push edi
call dword [sym.imp.USER32.dll_LoadImageW]
mov dword [esi + 4], eax
xor eax, eax
call fcn.00407470
pop edi
pop esi
xor al, al
pop ebp
pop ebx
ret
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x407aed
push eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
xor al, al
pop edi
pop esi
pop ebp
pop ebx
ret
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebp, eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push ebx
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push ebx
push ebp
push eax
call sub.MSVCR90.dll_memcpy
sub esp, 0xfffffff4
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
xor ebx, ebx
lea eax, [esp + 0x14]
push eax
push 1
push edi
mov dword [esp + 0x20], ebx
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x407b78
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x407b78
push eax
push esi
call fcn.00407080
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
add esp, 0xfffffff0
xor ecx, ecx
xor edx, edx
mov eax, esp
xor edi, edi
mov dword [eax], ecx
mov dword [eax + 4], edx
mov dword [eax + 8], edi
push esi
mov dword [eax + 0xc], ebx
call fcn.00407980
add esp, 0x14
pop edi
mov al, 1
pop esi
pop ebp
pop ebx
ret
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
Function at 0x409ed0
Capabilities:
Hide graphical window

Disassembly:
add esp, 0xffffffe0
push esi
mov esi, ecx
cmp dword [esi + 0xac], 0
jne 0x409ee8
xor al, al
pop esi
add esp, 0x20
ret 4
push 0
lea eax, [esp + 0x18]
push eax
push 0
push 0x30
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
mov edx, dword [esi + 0xac]
lea ecx, [esp + 4]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 8]
sub eax, dword [esp + 0x10]
push 0x41
add eax, dword [esp + 0x24]
push 0
cdq
sub eax, edx
push 0
sar eax, 1
push eax
mov eax, dword [esp + 0x14]
sub eax, dword [esp + 0x1c]
add eax, dword [esp + 0x2c]
cdq
sub eax, edx
sar eax, 1
push eax
mov eax, dword [esi + 0xac]
push 0
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
mov edx, dword [esi + 0xac]
mov ecx, dword [esp + 0x28]
push ecx
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [esi + 0xac]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
pop esi
sub esp, 0xffffffe0
mov al, 1
ret 4

Function at 0x409f70
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [ecx]
mov edx, dword [eax + 0x8c]
push 0
call edx
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
ret

Function at 0x409fb0
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi]
mov edx, dword [eax + 0x8c]
push edi
call edx
push eax
call dword [sym.imp.USER32.dll_IsIconic]
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
or eax, eax
je 0x409fe0
mov eax, dword [esi]
mov edx, dword [eax + 0x8c]
push 9
mov ecx, esi
call edx
push eax
call edi
mov eax, dword [esi]
mov edx, dword [eax + 0x8c]
push 5
mov ecx, esi
call edx
push eax
call edi
mov eax, dword [esi]
mov edx, dword [eax + 0x8c]
push 0x43
push 0
push 0
push 0
push 0
push 0
mov ecx, esi
call edx
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
mov eax, dword [esi]
mov edx, dword [eax + 0x8c]
mov ecx, esi
call edx
push eax
call dword [sym.imp.USER32.dll_SetForegroundWindow]
pop edi
pop esi
ret
Function at 0x40d5c0
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x411dca
mov eax, dword fs:[0]
push eax
add esp, 0xfffffff4
push ebx
push ebp
push esi
push edi
mov eax, dword [0x41901c]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov eax, dword [esp + 0x34]
push 0x414568
xor ebp, ebp
push eax
mov dword [esp + 0x24], ebp
call dword [sym.imp.MSVCR90.dll_fopen]
mov ebx, eax
sub esp, 0xfffffff8
cmp ebx, ebp
jne 0x40d62d
mov ebx, dword [0x41a580]
mov eax, dword [esp + 0x30]
mov dword [eax], ebx
cmp ebx, ebp
je 0x40d619
inc dword [ebx + 0x30]
mov ebx, dword [esp + 0x20]
mov dword fs:[0], ebx
pop ebx
pop edi
pop esi
pop ebp
pop ebx
sub esp, 0xffffffe8
ret
mov esi, dword [sym.imp.MSVCR90.dll_fseek]
push 2
push ebp
push ebx
call esi
sub esp, 0xfffffff4
push ebx
call dword [sym.imp.MSVCR90.dll_ftell]
mov edi, eax
add esp, 4
cmp edi, ebp
jne 0x40d683
push ebx
call dword [sym.imp.MSVCR90.dll_fclose]
mov edi, dword [0x41a580]
mov esi, edi
mov eax, dword [esp + 0x34]
mov dword [eax], edi
add esp, 4
cmp esi, ebp
je 0x40d790
inc dword [esi + 0x30]
mov edx, dword [esp + 0x20]
mov dword fs:[0], edx
pop ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
push ebp
push ebp
push ebx
call esi
lea eax, [edi + 4]
sub esp, 0xfffffff4
push eax
call dword [sym.imp.MSVCR90.dll_malloc]
sub esp, 0xfffffffc
mov esi, eax
push ebx
push edi
push 1
push esi
call dword [sym.imp.MSVCR90.dll_fread]
mov edi, eax
push ebx
call dword [sym.imp.MSVCR90.dll_fclose]
add esp, 0x14
push 0
push edi
push esi
mov byte [esi + edi], 0
mov byte [esi + edi + 1], 0
mov byte [esi + edi + 2], 0
mov byte [esi + edi + 3], 0
call dword [sym.imp.ADVAPI32.dll_IsTextUnicode]
mov edi, dword [sym.imp.MSVCR90.dll_free]
or al, al
je 0x40d70e
mov al, byte [esi]
cmp al, 0xef
jne 0x40d6e9
cmp byte [esi + 1], 0xff
jne 0x40d6e9
mov ebp, 2
cmp al, 0xff
jne 0x40d6f8
cmp byte [esi + 1], 0xfe
jne 0x40d6f8
mov ebp, 2
lea ebx, [esi + ebp]
call fcn.0040bd60
mov ebp, eax
push esi
call edi
mov esi, ebp
add esp, 4
xor ebp, ebp
jmp 0x40d724
cmp byte [esi], 0xef
jne 0x40d724
cmp byte [esi + 1], 0xbb
jne 0x40d724
cmp byte [esi + 2], 0xbf
jne 0x40d724
mov ebp, 3
test esi, esi
jne 0x40d74f
mov edi, dword [0x41a580]
mov eax, dword [esp + 0x30]
mov dword [eax], edi
test edi, edi
je 0x40d790
inc dword [edi + 0x30]
mov ebx, dword [esp + 0x20]
mov dword fs:[0], ebx
pop ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
lea edx, [esi + ebp]
push edx
lea eax, [esp + 0x1c]
push eax
call fcn.0040d3c0
push esi
call edi
mov eax, dword [esp + 0x24]
mov ebx, dword [esp + 0x3c]
mov dword [ebx], eax
add esp, 0xc
or eax, eax
je 0x40d774
inc dword [eax + 0x30]
mov dword [esp + 0x28], 0
lea ecx, [esp + 0x18]
push ecx
mov dword [esp + 0x20], 1
call fcn.0040d830
mov eax, ebx
mov ebx, dword [esp + 0x20]
mov dword fs:[0], ebx
pop edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
Function at 0x40e650
Capabilities:
Acquire debug privileges

Disassembly:
add esp, 0xffffffec
push esi
lea eax, [esp + 4]
push eax
push 0x20
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
or eax, eax
je 0x40e6bc
lea ecx, [esp + 0xc]
push ecx
push str.SeDebugPrivilege
push esi
mov dword [esp + 0x14], 1
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov eax, dword [esp + 4]
push esi
push esi
push 0x10
lea edx, [esp + 0x14]
push edx
push esi
push eax
mov dword [esp + 0x2c], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 4]
mov esi, eax
neg esi
sbb esi, esi
push ecx
inc esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
sub esp, 0xffffffec
ret

Function at 0x40e8f0
Capabilities:
Terminate thread

Disassembly:
mov eax, dword [esi + 0x24]
mov dword [esi + 0xc], 1
test eax, eax
je 0x40e905
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [esi + 8]
or eax, eax
mov dword [esi + 0xc], 1
je 0x40e943
push 0x1388
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x40e932
mov eax, dword [esi + 8]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, dword [esi + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 8], 0
ret
Function at 0x40f290
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x411d8b
mov eax, dword fs:[0]
push eax
sub esp, 8
push edi
push ebx
push esi
push ebp
mov eax, dword [0x41901c]
xor eax, esp
xor edi, edi
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov ebx, dword [esp + 0x2c]
cmp dword [ebx + 0x50], edi
je 0x40f2ca
lea eax, [edi + 1]
jmp 0x40f3b2
cmp dword [ebx + 0x54], edi
mov dword [esp + 0x2c], edi
jle 0x40f3a7
push 0x28
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov esi, eax
mov dword [esp + 0x18], esi
mov dword [esp + 0x24], edi
cmp esi, edi
je 0x40f30c
lea eax, [esi + 4]
push eax
mov dword [esi], edi
call fcn.0040f7f0
push edi
push edi
push edi
push edi
mov dword [esi + 0x20], ebx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x24], eax
jmp 0x40f30e
xor esi, esi
lea ebp, [esi + 4]
push edi
push edi
push ebp
push 0x40f980
mov dword [esp + 0x34], 0xffffffff
push edi
push edi
mov dword [esp + 0x30], esi
mov dword [ebp + 0xc], 0x40eee0
mov dword [ebp + 0x10], esi
mov dword [ebp + 8], edi
call dword [sym.imp.MSVCR90.dll__beginthreadex]
add esp, 0x18
mov dword [ebp + 4], eax
cmp eax, edi
jne 0x40f36d
cmp esi, edi
je 0x40f395
call fcn.0040e8f0
mov eax, dword [esi + 0x24]
cmp eax, edi
je 0x40f35b
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, ebp
call fcn.0040f8c0
push esi
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
add esp, 4
jmp 0x40f395
mov edi, dword [ebx + 0x6c]
lea esi, [ebx + 0x58]
lea ecx, [esp + 0x18]
mov edx, dword [edi + 4]
push ecx
push edx
push edi
call fcn.0040f7b0
mov ebp, eax
mov ecx, esi
call fcn.0040fdb0
mov dword [edi + 4], ebp
xor edi, edi
mov eax, dword [ebp + 4]
mov dword [eax], ebp
mov eax, dword [esp + 0x2c]
inc eax
cmp eax, dword [ebx + 0x54]
mov dword [esp + 0x2c], eax
jl 0x40f2d7
xor eax, eax
cmp dword [ebx + 0x70], edi
setne al
mov dword [ebx + 0x50], eax
mov ebx, dword [esp + 0x1c]
mov dword fs:[0], ebx
pop ecx
pop ebp
pop esi
pop ebx
pop edi
add esp, 0x14
ret 4