joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402ea9
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x39c]
sub esp, 0x41c
mov ecx, dword [ebp + 0x3a4]
cmp ecx, dword [0x40ab4c]
mov eax, dword [0x409040]
push ebx
push esi
mov dword [ebp + 0x398], eax
push edi
jae 0x40306f
mov eax, ecx
sar eax, 5
lea ebx, [eax*4 + 0x40ab60]
mov eax, dword [ebx]
mov esi, ecx
and esi, 0x1f
shl esi, 3
mov al, byte [eax + esi + 4]
test al, 1
mov dword [ebp - 0x80], ebx
je 0x40306f
xor edi, edi
cmp dword [ebp + 0x3ac], edi
mov dword [ebp - 0x74], edi
mov dword [ebp - 0x7c], edi
jne 0x402f13
xor eax, eax
jmp 0x403083
test al, 0x20
je 0x402f24
push 2
push edi
push edi
push ecx
call fcn.00404db5
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x402ff9
cmp dword [ebp + 0x3ac], edi
mov eax, dword [ebp + 0x3a8]
mov dword [ebp - 0x70], eax
mov dword [ebp + 0x3a4], edi
jbe 0x403040
mov ecx, dword [ebp - 0x70]
sub ecx, dword [ebp + 0x3a8]
lea eax, [ebp - 0x6c]
cmp ecx, dword [ebp + 0x3ac]
jae 0x402f86
mov edx, dword [ebp - 0x70]
inc dword [ebp - 0x70]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x402f77
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc edi
mov ebx, dword [ebp - 0x80]
mov byte [eax], dl
inc eax
inc edi
cmp edi, 0x400
jl 0x402f59
mov edi, eax
lea eax, [ebp - 0x6c]
sub edi, eax
push 0
lea eax, [ebp - 0x78]
push eax
push edi
lea eax, [ebp - 0x6c]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x402fc6
mov eax, dword [ebp - 0x78]
add dword [ebp - 0x74], eax
cmp eax, edi
jl 0x402fd2
mov eax, dword [ebp - 0x70]
sub eax, dword [ebp + 0x3a8]
xor edi, edi
cmp eax, dword [ebp + 0x3ac]
jb 0x402f4d
jmp 0x402fd4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0x3a4], eax
xor edi, edi
mov eax, dword [ebp - 0x74]
cmp eax, edi
jne 0x40306a
cmp dword [ebp + 0x3a4], edi
je 0x403040
push 5
pop eax
cmp dword [ebp + 0x3a4], eax
jne 0x403032
mov dword [0x4096d4], eax
jmp 0x403076
push edi
lea ecx, [ebp - 0x78]
push ecx
push dword [ebp + 0x3ac]
push dword [ebp + 0x3a8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x403024
mov eax, dword [ebp - 0x78]
mov dword [ebp + 0x3a4], edi
mov dword [ebp - 0x74], eax
jmp 0x402fd4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0x3a4], eax
jmp 0x402fd4
push dword [ebp + 0x3a4]
call fcn.00404ca0
pop ecx
jmp 0x403080
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x403058
mov eax, dword [ebp + 0x3a8]
cmp byte [eax], 0x1a
je 0x402f0c
mov dword [0x4096d0], 0x1c
mov dword [0x4096d4], edi
jmp 0x403080
sub eax, dword [ebp - 0x7c]
jmp 0x403083
and dword [0x4096d4], 0
mov dword [0x4096d0], 9
or eax, 0xffffffff
mov ecx, dword [ebp + 0x398]
pop edi
pop esi
pop ebx
call fcn.0040127c
add ebp, 0x39c
leave
ret
Function at 0x403415
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x409838], ebx
push esi
push edi
jne 0x403495
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x4034d0
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x407e0c
push edi
call esi
test eax, eax
mov dword [0x409838], eax
je 0x4034d0
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x40983c], eax
call esi
cmp dword [0x4096dc], 2
mov dword [0x409840], eax
jne 0x403495
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x409848], eax
je 0x403495
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x409844], eax
mov eax, dword [0x409844]
test eax, eax
je 0x4034da
call eax
test eax, eax
je 0x4034c1
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x409848]
test eax, eax
je 0x4034c1
test byte [ebp - 8], 1
jne 0x4034da
cmp dword [0x4096e8], 4
jb 0x4034d4
or byte [ebp + 0x12], 0x20
jmp 0x4034f9
xor eax, eax
jmp 0x403509
or byte [ebp + 0x12], 4
jmp 0x4034f9
mov eax, dword [0x40983c]
test eax, eax
je 0x4034f9
call eax
mov ebx, eax
test ebx, ebx
je 0x4034f9
mov eax, dword [0x409840]
test eax, eax
je 0x4034f9
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x409838]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x403722
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x403750
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x403757
cmp ebx, dword [eax + 4]
jae 0x403757
xor eax, eax
jmp 0x403947
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x403768
xor eax, eax
inc eax
jmp 0x403946
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x40377e
cmp ecx, edx
jae 0x4038c3
cmp dword [eax + 4], 0
je 0x403787
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x40376f
cmp dword [ebp + 8], 0
je 0x4037a9
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x4038c3
cmp eax, esi
jae 0x4038c3
mov eax, dword [0x409850]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x4037ce
cmp dword [esi*4 + 0x409858], edi
je 0x4038c7
inc esi
cmp esi, eax
jl 0x4037bc
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x403943
cmp dword [ebp - 8], 0x1000000
jne 0x403943
test byte [ebp - 0xc], 0xcc
je 0x40384c
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x403943
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x403943
cmp word [eax + 0x18], 0x10b
jne 0x403943
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x403943
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x40384c
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x40384c
test byte [ecx + 0x27], 0x80
jne 0x4038c3
push 1
push 0x409898
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x403760
mov ecx, dword [0x409850]
test ecx, ecx
mov edx, ecx
jle 0x403880
lea eax, [ecx*4 + 0x409854]
cmp dword [eax], edi
je 0x403880
dec edx
sub eax, 4
test edx, edx
jg 0x403874
test edx, edx
jne 0x4038b1
push 0xf
pop ebx
cmp ecx, ebx
jg 0x40388d
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x4038a5
lea eax, [edx*4 + 0x409858]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x403893
cmp ecx, 0x10
jge 0x4038b1
inc ecx
mov dword [0x409850], ecx
push 0
push 0x409898
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x403760
xor eax, eax
jmp 0x403946
test esi, esi
jle 0x403760
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x409898
call ebx
test eax, eax
jne 0x403760
cmp dword [esi*4 + 0x409858], edi
je 0x40391d
mov eax, dword [0x409850]
lea esi, [eax - 1]
test esi, esi
jl 0x40390b
cmp dword [esi*4 + 0x409858], edi
je 0x403907
dec esi
jns 0x4038fb
test esi, esi
jge 0x40391b
cmp eax, 0x10
jge 0x403916
inc eax
mov dword [0x409850], eax
lea esi, [eax - 1]
jmp 0x40391d
je 0x403935
xor ecx, ecx
test esi, esi
jl 0x403935
lea eax, [ecx*4 + 0x409858]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x403923
push 0
push 0x409898
call ebx
jmp 0x403760
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x405dc9
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.00402de0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x405e64
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x4096dc]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x405e64
cmp eax, 1
je 0x405e85
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x405e64
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x405e31
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x405e60
xor eax, eax
inc eax
jmp 0x405ea4
cmp edi, eax
jae 0x405e68
xor eax, eax
jmp 0x405ea4
cmp eax, esi
jae 0x405e6f
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x4096dc]
jmp 0x405e88
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40de83
Capabilities:
Delete registry key

Disassembly:
push 0x1c
mov eax, 0x42e88b
call fcn.0042a7e8
test byte [0x4462b0], 1
mov esi, 0x446298
jne 0x40debb
or dword [0x4462b0], 1
push 0x3e8
push esi
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSectionAndSpinCount]
push 0x43098b
call fcn.0042a22d
pop ecx
mov eax, esi
lea esi, [ebp - 0x18]
call fcn.0040b4a7
xor ecx, ecx
mov dword [ebp - 4], ecx
mov eax, dword [0x4460e0]
cmp eax, ecx
mov byte [0x44613a], cl
mov dword [ebp - 0x10], ecx
jle 0x40df87
mov dword [ebp - 0x14], ecx
mov edi, dword [ebp - 0x14]
test edi, edi
jl 0x40e005
cmp dword [ebp - 0x10], eax
jge 0x40e005
mov eax, dword [0x4460dc]
add edi, eax
lea eax, [ebp - 0x28]
push eax
call fcn.004034d8
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x1c]
sub eax, 3
je 0x40df54
dec eax
je 0x40df4b
sub eax, 3
je 0x40df42
dec eax
je 0x40df39
sub eax, 9
je 0x40df30
sub eax, 6
jne 0x40df66
cmp dword [ebx + 0x190], eax
jmp 0x40df5b
cmp dword [ebx + 0x18c], 0
jmp 0x40df5b
cmp dword [ebx + 0x1a0], 0
jmp 0x40df5b
cmp dword [ebx + 0x19c], 0
jmp 0x40df5b
cmp dword [ebx + 0x198], 0
jmp 0x40df5b
cmp dword [ebx + 0x194], 0
je 0x40df66
push dword [ebp - 0x1c]
push ebx
call fcn.00412e9c
lea esi, [ebp - 0x28]
mov byte [ebp - 4], 0
call fcn.00403522
inc dword [ebp - 0x10]
mov eax, dword [0x4460e0]
add dword [ebp - 0x14], 0x10
cmp dword [ebp - 0x10], eax
jl 0x40dee3
push dword [ebx + 0xdcc]
push SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
push 1
lea ecx, [ebx + 0x28c]
call sub.mfc90u.dll_CWnd::EnableWindow
mov eax, dword [0x44612c]
push 0
push 0xbfc
push 0x111
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_PostMessageW]
mov dword [0x445e9c], 0
mov eax, dword [0x445e9c]
mov ecx, dword [sym.imp.pcoshelper.dll_Ordinal_1356]
test eax, eax
setne al
mov byte [ecx], al
mov ecx, 0x445f90
call dword [sym.imp.pcoshelper.dll_Ordinal_283]
mov esi, dword [0x44612c]
push 1
call fcn.00423ad0
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
inc eax
call fcn.0042a887
ret
call sub.mfc90u.dll_AfxThrowInvalidArgException
int3
Function at 0x40e142
Capabilities:
Get common file path
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe3c
mov eax, dword [0x444028]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x228], ax
lea eax, [ebp - 0x226]
push eax
call sub.MSVCR90.dll_memset
add esp, 0xc
push 0x104
lea eax, [ebp - 0x228]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x628]
push eax
lea eax, [ebp - 0xe28]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x228]
push eax
call dword [sym.imp.MSVCR90.dll__wsplitpath]
mov eax, dword [0x43686c]
mov dword [ebp - 0x14], eax
mov eax, dword [0x436870]
mov dword [ebp - 0x10], eax
xor eax, eax
lea edi, [ebp - 0xc]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov ax, word [ebp - 0x20]
add esp, 0x14
mov word [ebp - 0x14], ax
push 0
lea eax, [ebp - 0xe38]
push eax
lea eax, [ebp - 0xe30]
push eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
push 0
push 0x64
push dword [ebp - 0xe2c]
push dword [ebp - 0xe30]
call fcn.0042a9d0
push dword [ebp - 0xe34]
push dword [ebp - 0xe38]
push edx
push eax
call fcn.0042a960
test edx, edx
ja 0x40e234
jb 0x40e21b
cmp eax, 8
jae 0x40e234
cmp dword [ebp - 0xe2c], 0
ja 0x40e234
cmp dword [ebp - 0xe30], 0x40000000
jae 0x40e234
xor al, al
jmp 0x40e236
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.0042a12d
leave
ret
Function at 0x426d47
Capabilities:
Create process on windows
Set current directory

Disassembly:
push 0x68
mov eax, 0x42b9d4
call fcn.0042a851
xor ebx, ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x2c]
call dword [0x431488]
mov byte [ebp - 4], 2
call sub.mfc90u.dll_AfxGetModuleState
mov eax, dword [eax + 8]
lea ecx, [ebp - 0x2c]
push ecx
push eax
call dword [sym.imp.pcoshelper.dll_Ordinal_401]
pop ecx
pop ecx
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x30]
call dword [0x4314a8]
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x30]
push eax
mov byte [ebp - 4], 3
call dword [sym.imp.pcoshelper.dll_Ordinal_1048]
pop ecx
pop ecx
lea ecx, [ebp - 0x30]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Trim]
mov esi, str.open
lea edi, [ebp - 0x28]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
xor eax, eax
lea edi, [ebp - 0x1c]
stosd dword es:[edi], eax
mov esi, 0x43b3d0
lea edi, [ebp - 0x18]
movsd dword es:[edi], dword [esi]
push 0x3c
movsw word es:[edi], word [esi]
pop esi
push esi
lea eax, [ebp - 0x74]
push ebx
push eax
call sub.MSVCR90.dll_memset
lea eax, [ebp - 0x28]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp + 0xc]
add esp, 0xc
mov dword [ebp - 0x74], esi
inc ebx
cmp dword [eax - 0xc], 0
je 0x426e01
lea eax, [ebp + 0xc]
jmp 0x426e11
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x38]
call dword [0x4314bc]
mov dword [ebp - 0x34], ebx
mov eax, dword [eax]
mov dword [ebp - 0x60], eax
test byte [ebp - 0x34], bl
je 0x426e24
lea ecx, [ebp - 0x38]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov dword [ebp - 0x70], 0x800040
mov dword [ebp - 0x58], ebx
call fcn.00404c4d
test eax, eax
je 0x426e4b
call fcn.00404c4d
test eax, eax
jne 0x426e45
and dword [ebp - 0x6c], eax
jmp 0x426e4b
mov eax, dword [eax + 0x20]
mov dword [ebp - 0x6c], eax
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
lea ecx, [ebp - 0x30]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
lea ecx, [ebp - 0x2c]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
lea ecx, [ebp + 8]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
lea ecx, [ebp + 0xc]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
call fcn.0042a89b
ret 8
Function at 0x426ef8
Capabilities:
Delete registry value
Persist via run registry key

Disassembly:
push 0x14
mov eax, 0x42b995
call fcn.0042a7e8
and dword [ebp - 0x10], 0
cmp byte [ebp + 8], 0
jne 0x426f29
push dword [0x446174]
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHDeleteValueW]
jmp 0x427010
cmp byte [ebp + 0xc], 0
push 2
pop ebx
jne 0x426f4f
push str.____startedafteroptimizationPartial
lea ecx, [ebp - 0x20]
call dword [0x4314bc]
mov esi, eax
and dword [ebp - 4], 0
mov dword [ebp - 0x10], 1
jmp 0x426f69
push str.____startedafteroptimizationFull
lea ecx, [ebp - 0x1c]
call dword [0x4314bc]
mov esi, eax
mov dword [ebp - 4], 1
mov dword [ebp - 0x10], ebx
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.pcoshelper.dll_Ordinal_400]
mov edi, eax
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x14]
mov dword [esp], 0x43b47c
call dword [0x4314bc]
lea ecx, [ebp + 0xc]
push edi
push ecx
mov ecx, eax
mov byte [ebp - 4], 3
call fcn.004132ad
lea ecx, [ebp + 8]
push esi
push ecx
mov ecx, eax
mov byte [ebp - 4], 4
call fcn.004132ad
add esp, 0x10
lea ecx, [ebp + 0xc]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
lea ecx, [ebp - 0x14]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
lea ecx, [ebp - 0x18]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
test byte [ebp - 0x10], bl
je 0x426fd8
and dword [ebp - 0x10], 0xfffffffd
lea ecx, [ebp - 0x1c]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov byte [ebp - 4], 0xa
test byte [ebp - 0x10], 1
je 0x426feb
lea ecx, [ebp - 0x20]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
push dword [ebp + 8]
push dword [0x446174]
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push SysReAllocString
call dword [sym.imp.pcoshelper.dll_Ordinal_1001]
add esp, 0x10
lea ecx, [ebp + 8]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
call fcn.0042a887
ret 8
Function at 0x42710d
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
lea eax, [ebp - 4]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
lea eax, [ebp - 0x10]
push eax
push 0x43b480
xor esi, esi
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
push esi
push esi
push esi
lea eax, [ebp - 0x14]
push eax
push esi
push dword [ebp - 4]
mov dword [ebp - 0x14], 1
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push SysReAllocString
push 4
call dword [sym.imp.USER32.dll_ExitWindowsEx]
call fcn.00404c4d
push esi
push esi
push 0x10
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_PostMessageW]
pop esi
leave
ret

Function at 0x4294b1
Capabilities:
Check if file exists

Disassembly:
push 8
mov eax, 0x42ab15
call fcn.0042a7e8
lea ecx, [ebp - 0x10]
call dword [0x431488]
and dword [ebp - 4], 0
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.pcoshelper.dll_Ordinal_1018]
lea ecx, [ebp - 0x14]
mov dword [esp], str.dbupdates
call dword [0x4314bc]
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 1
mov esi, dword [sym.imp.pcoshelper.dll_Ordinal_1048]
push eax
call esi
pop ecx
pop ecx
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
push str.CompleteDatabase.zip
lea ecx, [ebp - 0x14]
call dword [0x4314bc]
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
mov byte [ebp - 4], 2
call esi
pop ecx
pop ecx
lea ecx, [ebp - 0x14]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea ecx, [ebp - 0x10]
mov esi, eax
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov eax, esi
call fcn.0042a887
ret

Function at 0x42a12d
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x444028]
jne 0x42a137
repz ret
jmp fcn.0042a64e
Function at 0x8df080
Capabilities:
Get common file path

Disassembly:
sub esp, 0x43c
push esi
mov esi, dword [esp + 0x444]
cmp word [esi + 2], 0x3a
je 0x8df0c4
lea eax, [esp + 0x30]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [esp + 0x30]
push 0x904458
push ecx
call fcn.008ef1e1
lea edx, [esp + 0x38]
push esi
push edx
call fcn.008ef1e1
add esp, 0x10
jmp 0x8df0d2
lea eax, [esp + 0x30]
push esi
push eax
call fcn.008ef20b
add esp, 8
lea ecx, [esp + 0x30]
lea edx, [esp + 0x238]
push ecx
push str.___s
push edx
call fcn.008eedff
lea eax, [esp + 0x244]
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.008df050
mov eax, dword [0x909728]
xor esi, esi
add esp, 0x14
lea edx, [esp + 0x20]
cmp eax, esi
mov dword [esp + 8], 0x18
mov dword [esp + 0xc], esi
mov dword [esp + 0x14], reloc.gdi32.dll_GetMetaFileBitsEx
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
jne 0x8df13b
push esi
call fcn.008defb0
add esp, 4
mov dword [0x909728], eax
mov ecx, dword [esp + 0x454]
cmp ecx, 3
jne 0x8df14c
mov ecx, 1
mov edx, dword [esp + 0x458]
push esi
push esi
push 0x20
push ecx
mov ecx, dword [esp + 0x45c]
push ecx
push edx
lea ecx, [esp + 0x40]
push esi
push ecx
mov ecx, dword [esp + 0x468]
lea edx, [esp + 0x28]
or ecx, 0x100000
push edx
lea edx, [esp + 0x28]
push ecx
push edx
push eax
call fcn.008deff0
mov ecx, dword [esp + 0x34]
add esp, 0x30
neg eax
sbb eax, eax
pop esi
not eax
and eax, ecx
add esp, 0x43c
ret

Function at 0x8e2440
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
mov ebx, dword [ecx + 0x88]
test ebx, ebx
je 0x8e24b7
push esi
xor eax, eax
mov ax, word [ecx + 0x14]
xor esi, esi
mov si, word [ecx + 6]
push edi
xor edi, edi
lea eax, [eax + ecx + 0x18]
test esi, esi
jbe 0x8e248e
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x8e2471
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x8e247e
add edx, ecx
cmp ebx, edx
jb 0x8e248a
inc edi
add eax, 0x28
cmp edi, esi
jb 0x8e2467
xor ecx, ecx
jmp 0x8e24a2
test eax, eax
jne 0x8e2492
xor ecx, ecx
jmp 0x8e24a2
mov ecx, dword [eax + 0x14]
mov esi, dword [eax + 0xc]
mov eax, dword [esp + 0x10]
sub ecx, esi
add ecx, ebx
add ecx, eax
mov edx, dword [esp + 0x18]
push edx
push 0
push 0
push ecx
push ecx
call fcn.008e23c0
add esp, 0x14
pop edi
pop esi
pop ebx
ret
Function at 0x8e28f0
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebx
mov eax, dword [esp + 8]
push ebp
push esi
push edi
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push eax
xor bl, bl
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x8e2921
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
push 0
push 0
push 0
push 2
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ebp, eax
test ebp, ebp
jne 0x8e2946
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
push 0
push 0
push 0
push 4
push ebp
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
test esi, esi
jne 0x8e296e
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call esi
push edi
call esi
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [esp + 0x18]
mov dword [ecx], esi
mov dword [ecx + 4], eax
cmp word [esi], reloc.gdi32.dll_SetViewportExtEx
jne 0x8e2993
push ecx
push esi
call fcn.008e24c0
add esp, 8
mov bl, al
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call esi
push edi
call esi
pop edi
pop esi
mov al, bl
pop ebp
pop ebx
ret