joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408a40
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x414ed9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, dword [esp + 0x1c]
push edi
xor edi, edi
mov ecx, esi
mov dword [esp + 8], edi
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::GetManager]
push eax
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_2]
mov dword [esp + 0x14], edi
mov edi, dword [esp + 0x24]
push edi
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::StringLength]
add esp, 4
push eax
push edi
mov ecx, esi
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::GetLength]
push eax
mov ecx, esi
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::Concatenate]
mov esi, dword [esp + 0x30]
add esp, 0x14
lea ecx, [esp + 8]
push ecx
mov ecx, esi
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_1]
lea ecx, [esp + 8]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov ecx, dword [esp + 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x4091f0
Capabilities:
Get common file path
Get startup folder

Disassembly:
push 0xffffffffffffffff
push 0x414f9b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push esi
mov esi, ecx
lea ecx, [esp + 4]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_3]
push 1
push 7
push 0x104
lea ecx, [esp + 0x10]
mov dword [esp + 0x24], 0
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::GetBuffer]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
lea ecx, [esp + 4]
je 0x409320
push 0xffffffffffffffff
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::ReleaseBuffer]
lea ecx, [esp + 8]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_3]
push 0x104
push 0x104
lea ecx, [esp + 0x10]
mov byte [esp + 0x20], 1
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::GetBuffer]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0xffffffffffffffff
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::ReleaseBuffer]
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_3]
push 0x6b
lea ecx, [esp + 0x10]
mov byte [esp + 0x1c], 2
call dword [sym.imp.MFC71.DLL_ATL::CStringT::LoadStringA]
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
lea eax, [esp + 8]
push eax
call fcn.00410210
add esp, 8
lea ecx, [esp + 8]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
lea ecx, [esp + 8]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
mov ecx, esi
call fcn.004085b0
test eax, eax
lea ecx, [esp + 0xc]
jl 0x40930c
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 8]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 4]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov eax, 1
pop esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 8]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 4]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov ecx, dword [esp + 0x10]
xor eax, eax
pop esi
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0x40bb80
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x415329
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, dword [esp + 0x1c]
push edi
xor edi, edi
mov ecx, esi
mov dword [esp + 8], edi
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::GetManager]
push eax
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_2]
mov dword [esp + 0x14], edi
mov edi, dword [esp + 0x24]
mov ecx, edi
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::GetLength]
push eax
mov ecx, edi
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
mov ecx, esi
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::GetLength]
push eax
mov ecx, esi
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::Concatenate]
mov esi, dword [esp + 0x30]
add esp, 0x14
lea ecx, [esp + 8]
push ecx
mov ecx, esi
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_1]
lea ecx, [esp + 8]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov ecx, dword [esp + 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x40cdf0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x415481
push eax
mov dword fs:[0], esp
push esi
push edi
mov edi, dword [esp + 0x18]
test edi, edi
jne 0x40ce47
push 0x40
call sub.MFC71.DLL_operator_new_1
add esp, 4
mov dword [esp + 0x18], eax
test eax, eax
mov dword [esp + 0x10], edi
je 0x40cec3
mov ecx, dword [esp + 0x1c]
push ecx
push edi
mov ecx, eax
call fcn.0040ca90
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop edi
pop esi
add esp, 0xc
ret
mov esi, dword [esp + 0x1c]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40cec3
test al, 0x10
je 0x40ce8f
push 0x40
call sub.MFC71.DLL_operator_new_1
add esp, 4
mov dword [esp + 0x18], eax
test eax, eax
mov dword [esp + 0x10], 1
je 0x40cec3
push esi
push edi
mov ecx, eax
call fcn.0040ca90
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop edi
pop esi
add esp, 0xc
ret
push 0x30
call sub.MFC71.DLL_operator_new_1
add esp, 4
mov dword [esp + 0x18], eax
test eax, eax
mov dword [esp + 0x10], 2
je 0x40cec3
push esi
push edi
mov ecx, eax
call fcn.0040c630
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop edi
pop esi
add esp, 0xc
ret
mov ecx, dword [esp + 8]
pop edi
xor eax, eax
mov dword fs:[0], ecx
pop esi
add esp, 0xc
ret

Function at 0x40d410
Capabilities:
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x4154f9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
lea ecx, [esp + 4]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_3]
lea eax, [esp + 4]
push eax
mov ecx, esi
mov dword [esp + 0x14], 0
call fcn.0040d170
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
lea ecx, [esp + 4]
mov esi, eax
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov ecx, dword [esp + 8]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x40d8b0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x415589
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
lea ecx, [esp]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_3]
mov ecx, dword [esp + 0x1c]
lea eax, [esp]
push eax
mov dword [esp + 0x18], 0
call fcn.0040d170
mov ecx, dword [esp + 0x20]
push ecx
lea edx, [esp + 4]
push edx
call fcn.00410210
mov eax, dword [esp + 0x2c]
add esp, 8
lea ecx, [esp]
mov dword [esp + 8], eax
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
mov ecx, dword [esp + 0x2c]
push ecx
lea edx, [esp + 8]
push edx
mov dword [esp + 0xc], eax
call dword [esp + 0x30]
lea ecx, [esp]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret 0x14
Function at 0x40e570
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x428
mov eax, dword [0x41c260]
push esi
lea esi, [ecx + 4]
mov dword [esp + 0x428], eax
cmp byte [esi], 0
jne 0x40e5a6
mov eax, 0xffffffff
pop esi
mov ecx, dword [esp + 0x424]
call fcn.004140fd
add esp, 0x428
ret 4
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx edx, word [esp + 0x10]
mov ecx, dword [esp + 0x430]
movzx eax, word [esp + 0xe]
push ecx
movzx ecx, word [esp + 0x10]
push edx
movzx edx, word [esp + 0x12]
push eax
movzx eax, word [esp + 0x12]
push ecx
movzx ecx, word [esp + 0x14]
push edx
push eax
push ecx
lea edx, [esp + 0x34]
push str._04d_02d_02d__02d:_02d:_02d__s_r_n
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x24
push 0
push 0x80
push 4
push 0
push 1
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x40e664
lea eax, [esp + 0x18]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40e617
push edi
push 2
push 0
push 0
sub eax, edx
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [esp + 0x1c]
push eax
push edi
lea ecx, [esp + 0x28]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x424]
call fcn.004140fd
add esp, 0x428
ret 4
mov ecx, dword [esp + 0x428]
or eax, 0xffffffff
pop esi
call fcn.004140fd
add esp, 0x428
ret 4
Function at 0x4103d0
Capabilities:
Check if file exists
Get file attributes
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x4156cc
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x31c
mov eax, dword [0x41c260]
mov dword [esp + 0x318], eax
push 0x104
lea eax, [esp + 0x114]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 0x110]
push ecx
call fcn.00410180
mov ecx, dword [str.mpskinfo.dll]
lea edx, [eax + 1]
add esp, 4
sub edx, ecx
mov al, byte [ecx]
mov byte [edx + ecx], al
inc ecx
test al, al
jne 0x410427
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
lea edx, [esp + 0x114]
push edx
call esi
cmp eax, 0xffffffff
jne 0x410562
push 0x418198
lea ecx, [esp + 8]
call dword [0x416138]
mov eax, dword [str.mpskinfo.dll]
push eax
lea ecx, [esp + 8]
mov dword [esp + 0x32c], 0
call dword [sym.imp.MFC71.DLL_ATL::CStringT::operator]
lea ecx, [esp + 4]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
call esi
cmp eax, 0xffffffff
jne 0x410558
mov edx, dword [str.SOFTWAREMicrosoftWindowsCurrentVersion]
lea ecx, [esp + 8]
push ecx
push 0x20019
push 0
push edx
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x410569
mov edx, dword [str.CommonFilesDir]
lea eax, [esp + 0xc]
push eax
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x14]
push ecx
push 0
push 0
push edx
push eax
mov dword [esp + 0x24], 0x103
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x410569
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 8]
call dword [0x416154]
lea ecx, [esp + 4]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
call fcn.004100f0
add esp, 4
test eax, eax
jne 0x410516
push 0x417394
lea ecx, [esp + 8]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::operator]
mov edx, dword [str.Canopus_Shared]
push edx
lea ecx, [esp + 8]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::operator]
push 0x417394
lea ecx, [esp + 8]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::operator]
mov eax, dword [str.mpskinfo.dll]
push eax
lea ecx, [esp + 8]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::operator]
lea ecx, [esp + 4]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
call esi
cmp eax, 0xffffffff
je 0x410569
lea ecx, [esp + 4]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov eax, 1
jmp 0x410575
lea ecx, [esp + 4]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
xor eax, eax
mov ecx, dword [esp + 0x320]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x31c]
pop esi
call fcn.004140fd
add esp, 0x328
ret
Function at 0x4105a0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x4156ec
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x114
mov eax, dword [0x41c260]
push esi
mov esi, ecx
mov dword [esp + 0x114], eax
mov eax, dword [esi + 4]
test eax, eax
je 0x4105db
mov eax, 1
jmp 0x4106e8
mov eax, dword [str.mpskinfo.dll]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call edi
test eax, eax
mov dword [esi + 4], eax
jne 0x4106d8
mov edx, dword [str.SOFTWAREMicrosoftWindowsCurrentVersion]
lea ecx, [esp + 0x10]
push ecx
push 0x20019
push eax
push edx
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4106e5
mov edx, dword [str.CommonFilesDir]
lea eax, [esp + 0xc]
push eax
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x18]
push ecx
push 0
push 0
push edx
push eax
mov dword [esp + 0x24], 0x103
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4106e5
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0xc]
call dword [0x416138]
lea ecx, [esp + 8]
mov dword [esp + 0x124], 0
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
call fcn.004100f0
add esp, 4
test eax, eax
jne 0x41068a
push 0x417394
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::operator]
mov edx, dword [str.Canopus_Shared]
push edx
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::operator]
push 0x417394
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::operator]
mov eax, dword [str.mpskinfo.dll]
push eax
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::operator]
lea ecx, [esp + 8]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
call edi
test eax, eax
mov dword [esi + 4], eax
lea ecx, [esp + 8]
je 0x4106df
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov eax, 1
jmp 0x4106e7
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
xor eax, eax
pop edi
mov ecx, dword [esp + 0x118]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x114]
pop esi
call fcn.004140fd
add esp, 0x120
ret

Function at 0x4112a0
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 4]
test eax, eax
mov dword [esi + 0xc], 0
je 0x4112bf
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esi + 4], 0
mov eax, dword [esi + 8]
push 0x2710
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x4112e1
mov ecx, dword [esi + 8]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [esi + 8]
test eax, eax
je 0x4112f6
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 8], 0
pop esi
ret
Function at 0x411850
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 8]
test eax, eax
je 0x411863
mov eax, 1
pop esi
ret 8
mov eax, dword [esp + 8]
test eax, eax
je 0x41187e
push 0x103
push eax
lea eax, [esi + 0x10]
push eax
call dword [sym.imp.MSVCR71.dll__mbsnbcpy]
add esp, 0xc
mov ax, word [esp + 0xc]
test ax, ax
je 0x41188f
mov word [esi + 0x11c], ax
push 0
push 0
push esi
push 0x411740
push 0
push 0
mov dword [esi + 0xc], 1
call dword [sym.imp.MSVCR71.dll__beginthreadex]
xor ecx, ecx
add esp, 0x18
test eax, eax
setne cl
mov dword [esi + 8], eax
pop esi
mov eax, ecx
ret 8
Function at 0x412050
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x30]
test eax, eax
jne 0x41205e
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x3c]
test eax, eax
mov dword [esi + 0x40], 0
je 0x412079
push 0
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_PostQueuedCompletionStatus]
mov eax, dword [esi + 0x30]
push 0x2710
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x41209b
mov ecx, dword [esi + 0x30]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [esi + 0x30]
test eax, eax
je 0x4120a9
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x30], 0
mov eax, 1
pop esi
ret

Function at 0x413300
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x30]
test eax, eax
jne 0x41330e
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x40]
test eax, eax
mov dword [esi + 0x3c], 0
je 0x413323
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [esi + 0x30]
push 0x2710
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x413345
mov ecx, dword [esi + 0x30]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [esi + 0x30]
test eax, eax
je 0x413353
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x30], 0
mov eax, 1
pop esi
ret
Function at 0x4142f8
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x74
push 0x418798
call fcn.004144f8
xor ebx, ebx
mov dword [ebp - 0x20], ebx
push ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x414338
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x414338
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x414350
cmp eax, 0x20b
je 0x41433d
mov dword [ebp - 0x1c], ebx
jmp 0x414364
cmp dword [ecx + 0x84], 0xe
jbe 0x414338
xor eax, eax
cmp dword [ecx + 0xf8], ebx
jmp 0x41435e
cmp dword [ecx + 0x74], 0xe
jbe 0x414338
xor eax, eax
cmp dword [ecx + 0xe8], ebx
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], ebx
push 2
call dword [sym.imp.MSVCR71.dll___set_app_type]
pop ecx
or dword [0x41c708], 0xffffffff
or dword [0x41c70c], 0xffffffff
call dword [sym.imp.MSVCR71.dll___p__fmode]
mov ecx, dword [0x41c6b0]
mov dword [eax], ecx
call dword [sym.imp.MSVCR71.dll___p__commode]
mov ecx, dword [0x41c6ac]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCR71.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x41c704], eax
call fcn.004146ac
call fcn.0041474c
cmp dword [0x41c290], ebx
jne 0x4143c4
push fcn.0041474c
call dword [sym.imp.MSVCR71.dll___setusermatherr]
pop ecx
call fcn.0041473a
push 0x41c024
push 0x41c020
call sub.MSVCR71.dll__initterm
push 0x4146f0
call fcn.004142d3
mov eax, dword [0x41c6a8]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push dword [0x41c6a4]
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.MSVCR71.dll___getmainargs]
add esp, 0x20
mov dword [ebp - 0x3c], eax
cmp eax, ebx
jge 0x414418
push 8
call sub.MSVCR71.dll__amsg_exit
pop ecx
push 0x41c01c
push section..data
call sub.MSVCR71.dll__initterm
pop ecx
pop ecx
mov eax, dword [sym.imp.MSVCR71.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x24], esi
mov al, byte [esi]
cmp al, 0x20
ja 0x414496
cmp al, bl
je 0x414442
cmp dword [ebp - 0x20], ebx
jne 0x414496
mov al, byte [esi]
cmp al, bl
je 0x414452
cmp al, 0x20
ja 0x414452
inc esi
mov dword [ebp - 0x24], esi
jmp 0x414442
mov dword [ebp - 0x58], ebx
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x58], 1
je 0x41446e
movzx eax, word [ebp - 0x54]
jmp 0x414471
push 0xa
pop eax
push eax
push esi
push ebx
push ebx
call edi
push eax
call fcn.00414950
mov esi, eax
mov dword [ebp - 0x40], esi
cmp dword [ebp - 0x1c], ebx
jne 0x41448e
push esi
call dword [sym.imp.MSVCR71.dll_exit]
call dword [sym.imp.MSVCR71.dll__cexit]
jmp 0x4144eb
cmp al, 0x22
jne 0x4144a5
xor ecx, ecx
cmp dword [ebp - 0x20], ebx
sete cl
mov dword [ebp - 0x20], ecx
movzx eax, al
push eax
call dword [sym.imp.MSVCR71.dll__ismbblead]
pop ecx
test eax, eax
je 0x4144b8
inc esi
mov dword [ebp - 0x24], esi
inc esi
jmp 0x414430
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.00414533
ret
Function at 0x41475c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4147b2
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x416951
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4147a5
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x4147b4
xor eax, eax
pop esi
leave
ret 4
Function at 0x406190
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x410fe8
mov eax, dword fs:[0]
push eax
sub esp, 0x21c
mov eax, dword [0x41901c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x228], 0
push 0x105
push 0
lea eax, [ebp - 0x224]
push eax
call sub.MSVCR90.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x224]
push ecx
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov edx, dword [ebp + 0xc]
push edx
lea ecx, [ebp - 0x10]
call fcn.0040a560
mov dword [ebp - 4], 0
lea eax, [ebp - 0x224]
push eax
push 0x41518c
lea ecx, [ebp - 0x10]
call fcn.0040a600
lea ecx, [ebp - 0x10]
push ecx
mov ecx, dword [ebp + 8]
call fcn.0040a540
mov edx, dword [ebp - 0x228]
or edx, 1
mov dword [ebp - 0x228], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0040a5e0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0040f7c4
mov esp, ebp
pop ebp
ret

Function at 0x406260
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
mov dword [ebp - 0x60], ecx
lea ecx, [ebp + 8]
call fcn.0040a7e0
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0x8000000
push 0x44
push 0
lea eax, [ebp - 0x58]
push eax
call sub.MSVCR90.dll_memset
add esp, 0xc
mov dword [ebp - 0x58], 0x44
lea ecx, [ebp - 0x58]
push ecx
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov dword [ebp - 0x2c], 1
mov edx, 5
mov word [ebp - 0x28], dx
movzx eax, byte [ebp + 0x10]
test eax, eax
je 0x4062cb
mov dword [ebp - 0x2c], 1
mov ecx, 0xb
mov word [ebp - 0x28], cx
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0x58]
push eax
push 0
push 0
mov ecx, dword [ebp - 4]
push ecx
push 0
push 0
push 0
mov edx, dword [ebp - 0xc]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x406309
mov byte [ebp - 0x59], 1
lea ecx, [ebp + 8]
call fcn.0040a5e0
mov al, byte [ebp - 0x59]
jmp 0x406322
mov byte [ebp - 0x5a], 0
lea ecx, [ebp + 8]
call fcn.0040a5e0
mov al, byte [ebp - 0x5a]
jmp 0x406322
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40f7c4
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41901c]
jne 0x40f7ce
repz ret
jmp fcn.0040fd64
Function at 0x401e10
Capabilities:
Create directory

Disassembly:
sub esp, 0x358
push ebx
mov ebx, dword [esp + 0x360]
push esi
push edi
push 1
push ebx
call fcn.00401590
mov eax, dword [0x410250]
mov ecx, 0x41
mov dword [esp + 0x14], eax
xor eax, eax
lea edi, [esp + 0x64]
add esp, 8
rep stosd dword es:[edi], eax
mov ecx, 0x41
lea edi, [esp + 0x160]
rep stosd dword es:[edi], eax
mov ecx, 0x13
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x264]
push 0x100
push ecx
push str.Open_previously_saved_view
call sub.REDCOMM.dll_Ordinal_50
mov eax, dword [0x4111b4]
lea edx, [esp + 0x5c]
push 0x104
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x401ea3
lea ecx, [esp + 0x5c]
push 0x5c
push ecx
call fcn.00406c70
add esp, 8
mov edx, eax
mov edi, str.ePview
jmp 0x401eac
lea edx, [esp + 0x5c]
mov edi, str.C:ePview
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xor esi, esi
lea ecx, [esp + 0x5c]
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov edx, dword [0x4111b4]
lea ecx, [esp + 0x5c]
lea eax, [esp + 0x160]
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x18], edx
mov dword [esp + 0x2c], eax
lea ecx, [esp + 0x10]
lea edx, [esp + 0x264]
lea eax, [esp + 0xc]
push ecx
mov dword [esp + 0x14], 0x4c
mov dword [esp + 0x18], ebx
mov dword [esp + 0x20], str.e_Pointer_View_.epv_
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], 1
mov dword [esp + 0x34], 0x104
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], esi
mov dword [esp + 0x44], edx
mov word [esp + 0x4c], si
mov word [esp + 0x4e], si
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], esi
mov dword [esp + 0x48], 0x81004
call sub.comdlg32.dll_GetOpenFileNameA
test eax, eax
je 0x401f7d
push ebx
call dword [sym.imp.USER32.dll_UpdateWindow]
mov eax, dword [0x41153c]
lea edx, [esp + 0x160]
push edx
push eax
push ebx
call fcn.00401d10
add esp, 0xc
push esi
push ebx
call fcn.00401590
add esp, 8
pop edi
pop esi
pop ebx
add esp, 0x358
ret