joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4091c0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x40f167
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x238
mov eax, dword [0x418110]
push ebx
push esi
push edi
mov dword [esp + 0x23c], eax
call fcn.00408830
test eax, eax
je 0x4092b3
xor esi, esi
xor ebx, ebx
mov dword [esp + 0x10], esi
push str.SoftwareMicrosoftWindows_NTCurrentVersionAppCompatFlagsCompatibility_AssistantPersisted
lea ecx, [esp + 0x18]
mov dword [esp + 0x250], ebx
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__]
lea ecx, [esp + 0x14]
mov byte [esp + 0x24c], 1
call dword [sym.imp.MSVCP71.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
lea ecx, [esp + 0xc]
push ecx
push 0xf003f
push ebx
push eax
push SysReAllocString
mov dword [esp + 0x20], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x409297
mov esi, dword [esp + 0xc]
mov word [esp + 0x30], bx
xor eax, eax
mov ecx, 0x81
lea edi, [esp + 0x32]
rep stosd dword es:[edi], eax
push 0x104
lea edx, [esp + 0x34]
push edx
push ebx
mov dword [esp + 0x1c], esi
stosw word es:[edi], ax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 4
lea eax, [esp + 0x10]
push eax
push 4
push ebx
lea ecx, [esp + 0x40]
push ecx
push esi
mov dword [esp + 0x24], 1
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea ecx, [esp + 0x14]
mov byte [esp + 0x24c], bl
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, ebx
je 0x4092b3
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x244]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x23c]
call fcn.0040e783
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40ae30
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
sub esp, 0x21c
mov eax, dword [0x418110]
mov edx, dword [esp + 0x220]
push esi
push edi
mov edi, ecx
lea ecx, [esp + 0x10]
push ecx
push 0x2001f
push 0
mov dword [esp + 0x22c], eax
mov eax, dword [edi]
push edx
push eax
mov dword [esp + 0x28], edi
mov dword [esp + 0x1c], 0
mov dword [esp + 0x24], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, dword [esp + 8]
mov esi, eax
test esi, esi
jne 0x40ae9a
test ecx, ecx
je 0x40ae8c
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
mov ecx, dword [esp + 0x10]
mov esi, eax
mov dword [esp + 8], ecx
je 0x40aea8
test ecx, ecx
je 0x40af4b
push ecx
jmp 0x40af45
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea eax, [esp + 0x18]
push eax
push 0
push 0
push 0
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x34]
push eax
push 0
push ecx
mov dword [esp + 0x2c], 0x100
call esi
test eax, eax
jne 0x40af12
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0xc]
call fcn.0040ae30
mov edi, eax
test edi, edi
jne 0x40af64
lea edx, [esp + 0x18]
push edx
mov edx, dword [esp + 0xc]
push eax
push eax
push eax
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x34]
push ecx
push edi
push edx
mov dword [esp + 0x2c], 0x100
call esi
test eax, eax
je 0x40aed4
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 8]
test eax, eax
je 0x40af29
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 8], 0
mov eax, dword [esp + 0x228]
mov ecx, dword [edi]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov esi, eax
mov eax, dword [esp + 8]
test eax, eax
je 0x40af4b
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
mov ecx, dword [esp + 0x218]
call fcn.0040e783
add esp, 0x21c
ret 4
mov eax, dword [esp + 8]
test eax, eax
je 0x40af73
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x220]
mov eax, edi
pop edi
pop esi
call fcn.0040e783
add esp, 0x21c
ret 4
Function at 0x40b390
Capabilities:
Set registry value

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
mov ebp, ecx
xor edi, edi
push esi
call ebx
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x40b3a2
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [ebp]
push edi
push eax
push 7
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebp
pop ebx
ret 8

Function at 0x40c2b0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x214
mov eax, dword [0x418110]
push ebx
push esi
push edi
push str.InstallBugReport
mov dword [esp + 0x220], eax
call fcn.00401ef0
add esp, 4
xor ebx, ebx
test eax, eax
jne 0x40c324
push str.start_init_XLBugReport
push ebx
push str.InstallBugReport
call fcn.004055f0
add esp, 8
mov ecx, eax
call fcn.00402bb0
push 1
mov esi, eax
push ebx
mov dword [0x418140], ebx
mov eax, dword [esi + 0x240]
push ebx
push eax
push 1
mov ecx, esi
mov dword [esi + 0x248], ebx
call fcn.00405bc0
add esi, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov word [esp + 0x10], bx
xor eax, eax
mov ecx, 0x81
lea edi, [esp + 0x12]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x10]
push ecx
push 0x104
stosw word es:[edi], ax
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push str.Xlacc_
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [esp + 0x10]
push eax
call fcn.00408db0
mov ecx, eax
call fcn.00406600
push 1
call fcn.00408db0
mov ecx, eax
call fcn.004068e0
push 0x104
lea ecx, [esp + 0x14]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov esi, eax
call fcn.00408720
push eax
push str.0x800
push ebx
lea eax, [esp + 0x1c]
push eax
push esi
call fcn.00408db0
mov ecx, eax
call fcn.00406690
push str.InstallBugReport
call fcn.00401ef0
add esp, 4
test eax, eax
jne 0x40c40a
push str.XL_InitBugHandler_success
push ebx
push str.InstallBugReport
call fcn.004055f0
add esp, 8
mov ecx, eax
call fcn.00402bb0
push 1
mov esi, eax
push ebx
mov dword [0x418140], ebx
mov ecx, dword [esi + 0x240]
push ebx
push ecx
push 1
mov ecx, esi
mov dword [esi + 0x248], ebx
call fcn.00405bc0
add esi, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x21c]
call fcn.0040e783
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40d522
Capabilities:
Parse pe header

Disassembly:
push 0x2c
push 0x413250
call fcn.0040eb48
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 0x40d58e
mov eax, dword [ecx + 0x3c]
add eax, ecx
mov dword [ebp - 0x20], eax
cmp dword [eax], 0x4550
je 0x40d566
xor al, al
or dword [ebp - 4], 0xffffffff
jmp 0x40d594
mov edx, dword [eax + 0xd8]
lea esi, [edx + ecx]
cmp dword [ebp + 0xc], esi
jb 0x40d55e
mov eax, dword [eax + 0xdc]
add eax, edx
add eax, ecx
cmp dword [ebp + 0xc], eax
jae 0x40d55e
mov al, 1
jmp 0x40d560
or dword [ebp - 4], 0xffffffff
xor al, al
call fcn.0040eb83
ret
Function at 0x40d696
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 0x40d6b9
lea eax, [esi - 0x7ff80000]
mov dword [ebp - 4], eax
jmp 0x40d6bc
mov dword [ebp - 4], ebx
cmp esi, 0x80000000
jae 0x40d6cf
lea eax, [esi + 0x7ff80000]
mov dword [ebp - 8], eax
jmp 0x40d6d6
mov dword [ebp - 8], 0xfff80000
mov eax, dword [0x418e38]
test eax, eax
mov ecx, dword [0x418e34]
jne 0x40d6f0
test ecx, ecx
je 0x40d705
mov eax, ecx
mov dword [0x418e38], eax
mov edx, dword [eax + 8]
test edx, edx
je 0x40d705
cmp edx, dword [ebp - 4]
jb 0x40d705
cmp edx, dword [ebp - 8]
jbe 0x40d7d9
mov eax, ecx
test ecx, ecx
jmp 0x40d729
test eax, eax
je 0x40d724
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x40d724
cmp ecx, dword [ebp - 4]
jb 0x40d724
cmp ecx, dword [ebp - 8]
jbe 0x40d7d9
mov eax, dword [eax + 4]
test eax, eax
mov dword [0x418e38], eax
jne 0x40d70b
mov eax, esi
and eax, 0xffff
sub esi, eax
cmp esi, dword [ebp - 4]
mov edi, esi
jbe 0x40d874
cmp edi, 0x70000000
jb 0x40d759
cmp edi, 0x80000000
ja 0x40d759
mov edi, 0x6fff0000
push 0x1c
lea eax, [ebp - 0x40]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40d874
cmp dword [ebp - 0x30], ebx
jne 0x40d778
cmp dword [ebp - 0x34], ebx
jae 0x40d78b
mov edi, dword [ebp - 0x3c]
add edi, 0xffff0000
cmp edi, dword [ebp - 4]
ja 0x40d744
jmp 0x40d874
push 0x40
push 0x3000
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
mov dword [0x418e38], eax
je 0x40d874
mov ecx, dword [0x418e34]
xor edx, edx
mov dword [eax + 4], ecx
mov dword [eax], 0x52727464
mov dword [eax + 8], edx
mov dword [0x418e34], eax
lea ecx, [eax + 0xffe0]
mov esi, 0x7fd
mov dword [ecx + 0x18], edx
mov edx, ecx
sub ecx, 0x20
dec esi
jne 0x40d7cb
mov dword [eax + 8], edx
mov esi, dword [eax + 8]
cmp esi, dword [ebp - 4]
jb 0x40d879
cmp esi, dword [ebp - 8]
ja 0x40d879
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 0x40d87b
cmp esi, 0x70000000
jb 0x40d81d
cmp esi, 0x80000000
ja 0x40d81d
mov esi, 0x80010000
push 0x1c
lea eax, [ebp - 0x24]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40d879
cmp dword [ebp - 0x14], ebx
jne 0x40d86b
cmp dword [ebp - 0x18], ebx
jb 0x40d86b
mov ecx, esi
and ecx, 0xffff
je 0x40d84f
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 [0x418e38], eax
jne 0x40d7a7
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x18]
lea esi, [eax + ecx]
cmp esi, dword [ebp - 8]
jb 0x40d808
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40d8a1
Capabilities:
Parse pe header

Disassembly:
push 0x28
push 0x413260
call fcn.0040eb48
push 0x1c
lea eax, [ebp - 0x38]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40d8fc
and dword [ebp - 4], 0
mov ecx, dword [ebp - 0x34]
cmp word [ecx], 0x5a4d
jne 0x40d8f8
mov eax, dword [ecx + 0x3c]
add eax, ecx
mov dword [ebp - 0x1c], eax
cmp dword [eax], 0x4550
jne 0x40d8f8
cmp word [eax + 0x14], 0
jne 0x40d8ed
xor eax, eax
or dword [ebp - 4], 0xffffffff
jmp 0x40d8fe
mov eax, ecx
jmp 0x40d8e7
or dword [ebp - 4], 0xffffffff
xor eax, eax
call fcn.0040eb83
ret

Function at 0x40d916
Capabilities:
Allocate or change rwx memory

Disassembly:
push ecx
push edi
xor edi, edi
cmp dword [0x418e40], edi
jne 0x40d939
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push 0x418e40
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
je 0x40d940
mov eax, 0x10dd
jmp 0x40d984
push esi
mov esi, dword [0x418e34]
mov dword [0x418e3c], edi
mov dword [0x418e50], edi
mov dword [0x418e4c], edi
mov dword [0x418e44], edi
mov dword [0x418e48], edi
jmp 0x40d97d
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 0x40d967
xor eax, eax
pop esi
pop edi
pop ecx
ret

Function at 0x40d987
Capabilities:
Resume thread

Disassembly:
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x418e40], eax
je 0x40d99d
mov eax, 0x10dd
pop ecx
ret
push ebx
push esi
mov esi, dword [0x418e50]
xor ebx, ebx
cmp esi, ebx
push edi
je 0x40d9e8
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 0x40d9d9
mov edi, dword [esi + 0x10]
cmp edi, ebx
je 0x40d9d9
call fcn.0040d880
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 0x40d9ac
mov dword [0x418e50], ebx
call fcn.0040d66f
mov esi, dword [0x418e4c]
cmp esi, ebx
je 0x40da15
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 0x40d9fd
pop edi
pop esi
mov dword [0x418e4c], ebx
mov dword [0x418e40], ebx
xor eax, eax
pop ebx
pop ecx
ret
Function at 0x40dc68
Capabilities:
Suspend thread

Disassembly:
mov eax, dword [0x418e44]
test eax, eax
jne 0x40dcd8
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov edi, dword [esp + 8]
cmp edi, eax
jne 0x40dc84
xor eax, eax
jmp 0x40dcd7
push esi
push 8
call fcn.0040e710
mov esi, eax
test esi, esi
pop ecx
jne 0x40dc98
push 8
pop edi
jmp 0x40dcb3
push edi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x40dcc4
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 [0x418e48], 0
mov dword [0x418e44], edi
mov eax, edi
jmp 0x40dcd6
mov eax, dword [0x418e4c]
mov dword [esi], eax
mov dword [esi + 4], edi
mov dword [0x418e4c], esi
xor eax, eax
pop esi
pop edi
ret 4
Function at 0x40df18
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x418e40], eax
je 0x40df34
mov eax, 0x10dd
jmp 0x40e010
mov eax, dword [0x418e44]
test eax, eax
jne 0x40e010
push edi
mov edi, dword [ebp + 8]
test edi, edi
jne 0x40df51
push 6
pop eax
jmp 0x40e00f
cmp dword [edi], 0
push ebx
push esi
jne 0x40df65
push 6
pop eax
mov dword [0x418e44], eax
jmp 0x40e007
push 0x18
call fcn.0040e710
mov esi, eax
test esi, esi
pop ecx
jne 0x40df78
push 8
pop edi
jmp 0x40dff1
mov edi, dword [edi]
push 0
push dword [ebp + 0xc]
call fcn.0040d904
movzx ecx, byte [edi + 0x17]
mov ebx, dword [edi + 0x18]
xor edx, edx
sub ebx, ecx
cmp ecx, edx
je 0x40dfe6
cmp ecx, 0x17
ja 0x40dfe6
cmp dword [edi + 0x1c], eax
jne 0x40dfe6
lea eax, [ebp - 4]
push eax
push 0x40
push ecx
push ebx
mov dword [ebp - 4], edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x40dfbc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x40dff1
mov eax, dword [ebp + 8]
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov dword [esi + 0x10], edi
mov dword [esi + 0xc], ebx
mov eax, dword [ebp - 4]
mov dword [esi + 0x14], eax
mov eax, dword [0x418e50]
mov dword [esi], eax
mov dword [0x418e50], esi
xor eax, eax
jmp 0x40e00d
cmp dword [0x418e3c], edx
push 9
pop edi
jne 0x40dff7
mov dword [0x418e44], edi
test esi, esi
je 0x40e002
push esi
call sub.MSVCR71.dll_void___cdecl_operator_delete_void__
pop ecx
mov eax, edi
mov edi, dword [ebp + 8]
mov dword [0x418e48], edi
pop esi
pop ebx
pop edi
leave
ret 8
Function at 0x40e93e
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x74
push 0x414438
call fcn.0040eb48
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 0x40e97e
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40e97e
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x40e996
cmp eax, 0x20b
je 0x40e983
mov dword [ebp - 0x1c], edi
jmp 0x40e9aa
cmp dword [ecx + 0x84], 0xe
jbe 0x40e97e
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x40e9a4
cmp dword [ecx + 0x74], 0xe
jbe 0x40e97e
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 [0x418ef4], 0xffffffff
or dword [0x418ef8], 0xffffffff
call dword [sym.imp.MSVCR71.dll___p__fmode]
mov ecx, dword [0x418eec]
mov dword [eax], ecx
call dword [sym.imp.MSVCR71.dll___p__commode]
mov ecx, dword [0x418ee8]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCR71.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x418ef0], eax
call fcn.0040ec30
call fcn.0040ecd0
cmp dword [0x418138], edi
jne 0x40ea0a
push fcn.0040ecd0
call dword [sym.imp.MSVCR71.dll___setusermatherr]
pop ecx
call fcn.0040ecbe
push 0x418034
push 0x418030
call sub.MSVCR71.dll__initterm
push 0x40ec74
call fcn.0040e862
mov eax, dword [0x418ee4]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push dword [0x418ee0]
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 0x40ea5e
push 8
call sub.MSVCR71.dll__amsg_exit
pop ecx
push 0x41802c
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 0x40ea88
or dword [ebp - 4], 0xffffffff
mov eax, 0xff
jmp 0x40eb42
mov dword [ebp - 0x24], esi
mov ax, word [esi]
cmp ax, 0x20
ja 0x40eaf7
cmp ax, di
je 0x40ea9e
cmp dword [ebp - 0x20], edi
jne 0x40eaf7
mov ax, word [esi]
cmp ax, di
je 0x40eab3
cmp ax, 0x20
ja 0x40eab3
inc esi
inc esi
mov dword [ebp - 0x24], esi
jmp 0x40ea9e
mov dword [ebp - 0x58], edi
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
test byte [ebp - 0x58], 1
je 0x40eacf
movzx eax, word [ebp - 0x54]
jmp 0x40ead2
push 0xa
pop eax
push eax
push esi
push edi
push edi
call ebx
push eax
call fcn.0040cc40
mov esi, eax
mov dword [ebp - 0x40], esi
cmp dword [ebp - 0x1c], edi
jne 0x40eaef
push esi
call dword [sym.imp.MSVCR71.dll_exit]
call dword [sym.imp.MSVCR71.dll__cexit]
jmp 0x40eb3c
cmp ax, 0x22
jne 0x40eb08
xor eax, eax
cmp dword [ebp - 0x20], edi
sete al
mov dword [ebp - 0x20], eax
inc esi
inc esi
jmp 0x40ea88
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.0040eb83
ret
Function at 0x401fd2
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [fcn.004047c8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
lea eax, [ebp - 0x14]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push 0x20
push 2
push eax
mov dword [ebp - 0x10], ebx
mov byte [ebp - 0xc], bl
mov byte [ebp - 0xb], bl
mov byte [ebp - 0xa], bl
mov byte [ebp - 9], bl
mov byte [ebp - 8], bl
mov byte [ebp - 7], 5
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x40201e
xor al, al
jmp 0x402045
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x14]
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x402033
mov dword [ebp - 0x10], ebx
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
xor eax, eax
cmp dword [ebp - 0x10], 1
sete al
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004047c8
leave
ret 4

Function at 0x402054
Capabilities:
Create process on windows
Query environment variable
Self delete

Disassembly:
push ebp
lea ebp, [esp - 0x194]
sub esp, 0x214
mov eax, dword [fcn.004047c8]
xor eax, ebp
mov dword [ebp + 0x190], eax
push ebx
push esi
push 0x104
lea eax, [ebp - 0x78]
push eax
push str.ComSpec
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x402138
lea ecx, [ebp - 0x80]
call fcn.0040102d
push ecx
push ecx
mov ecx, esp
push str._c_del__
call fcn.0040140d
lea ecx, [ebp - 0x80]
call fcn.004014d9
push ecx
push ecx
lea eax, [ebp + 0x19c]
mov ecx, esp
push eax
call fcn.00401037
lea ecx, [ebp - 0x80]
call fcn.004014d9
push ecx
push ecx
mov ecx, esp
push str._____NUL
call fcn.0040140d
lea ecx, [ebp - 0x80]
call fcn.004014d9
xor eax, eax
mov esi, str.runas
cmp byte [ebp + 0x1a4], al
jne 0x4020ed
mov esi, str.open
push eax
push eax
lea ecx, [ebp - 0x80]
call fcn.00401062
push eax
lea eax, [ebp - 0x78]
push eax
push esi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea ecx, [ebp - 0x80]
call fcn.00401471
mov bl, 1
lea ecx, [ebp + 0x19c]
call fcn.00401471
mov ecx, dword [ebp + 0x190]
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.004047c8
add ebp, 0x194
leave
ret
xor bl, bl
jmp 0x402114
Function at 0x4026fa
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
cmp byte [ebp + 8], 0
push ebx
push esi
push edi
mov esi, ecx
jne 0x4027b1
mov eax, dword [esi + 0xc4]
mov edi, dword [eax]
push ecx
push ecx
lea eax, [ebp + 0x14]
mov ecx, esp
push eax
call fcn.00401037
push dword [ebp + 0x10]
mov ebx, dword [ebp + 0xc]
mov ecx, dword [esi + 0xc4]
push ebx
call dword [edi + 0x14]
cmp ebx, 2
jl 0x402761
push ecx
push ecx
lea eax, [ebp + 0x14]
mov ecx, esp
push eax
call fcn.00401037
push dword [ebp + 0x10]
mov ecx, esi
push ebx
call fcn.00401db1
cmp ebx, 2
jne 0x402761
cmp byte [esi + 0x1c4], 0
jne 0x4027b1
push 3
pop ebx
cmp ebx, 3
jne 0x4027b1
lea eax, [esi + 0x184]
push eax
lea ecx, [ebp - 8]
call fcn.00401037
mov eax, dword [esi + 0xc4]
mov edi, dword [eax]
push ecx
push ecx
mov ecx, esp
push str.FlashInstall.log
call fcn.0040140d
push 0x5c
lea ecx, [ebp - 8]
call fcn.00401510
push ecx
push ecx
mov ecx, esp
push eax
call fcn.00401037
mov ecx, dword [esi + 0xc4]
call dword [edi + 0x1c]
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_ExitProcess]
lea ecx, [ebp + 0x14]
call fcn.00401471
cmp byte [ebp + 8], 0
pop edi
pop esi
sete al
pop ebx
leave
ret 0x14

Function at 0x402872
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0xa4
mov eax, dword [fcn.004047c8]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
push edi
lea eax, [ebp - 0x20]
push eax
mov edi, ecx
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x402909
cmp dword [ebp - 0x1c], 6
jae 0x4028e3
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
test eax, eax
jne 0x402909
mov dword [ebp - 0x2c], 0x220
mov dword [ebp - 0x28], 0x223
mov dword [ebp - 0x24], 0x225
xor esi, esi
push dword [ebp + esi*4 - 0x2c]
mov ecx, edi
call fcn.00401fd2
test al, al
jne 0x402909
inc esi
cmp esi, 3
jl 0x4028c9
xor eax, eax
inc eax
jmp 0x40290b
mov ecx, edi
call fcn.0040213c
mov ecx, dword [eax + 0xc]
mov eax, dword [ecx]
call dword [eax + 0x14]
test al, al
jne 0x402909
mov ecx, edi
call fcn.004027c7
cmp eax, 0x3000
jae 0x402909
push 2
pop eax
jmp 0x40290b
xor eax, eax
mov ecx, dword [ebp + 0x74]
pop edi
xor ecx, ebp
pop esi
call fcn.004047c8
add ebp, 0x78
leave
ret
Function at 0x40358a
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
push esi
mov esi, ecx
cmp byte [ebp + 8], bl
jne 0x4035d3
cmp byte [esi + 0xc0], bl
je 0x4035bf
call fcn.004027c7
cmp eax, 0x3000
jae 0x4035bf
mov ecx, esi
call fcn.0040213c
mov ecx, dword [eax + 0xc]
mov eax, dword [ecx]
call dword [eax + 0x14]
test al, al
jne 0x4035d3
lea ecx, [ebp + 0xc]
call fcn.00401471
lea ecx, [ebp + 0x14]
call fcn.00401471
xor al, al
jmp 0x403649
movzx eax, byte [esi + 0xc0]
push ecx
push ecx
mov ecx, esp
push ebx
push 0xa
push eax
call fcn.00401427
push 0xb
push ebx
push ebx
mov ecx, esi
call fcn.004026fa
lea ecx, [ebp + 0x14]
call fcn.00401052
test eax, eax
jle 0x403608
lea ecx, [ebp + 0x14]
call fcn.00401062
jmp 0x40360a
xor eax, eax
cmp byte [esi + 0xc0], bl
mov esi, str.runas
jne 0x40361c
mov esi, str.open
push 1
push ebx
push eax
lea ecx, [ebp + 0xc]
call fcn.00401062
push eax
push esi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea ecx, [ebp + 0xc]
call fcn.00401471
lea ecx, [ebp + 0x14]
call fcn.00401471
mov al, 1
pop esi
pop ebx
pop ebp
ret 0x14