joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45f65e
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 2
lea eax, [ebp - 4]
push eax
push 0x20000001
push str._x_sys_default_locale
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov esi, dword [ebp + 0xc]
neg eax
sbb eax, eax
xor ecx, ecx
and eax, dword [ebp - 4]
push ecx
push ecx
push esi
push eax
push dword [ebp + 8]
mov dword [ebp - 4], eax
push ecx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push eax
push dword [esi]
call fcn.0045f63a
pop esi
leave
ret 8

Function at 0x46072d
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
test eax, eax
jg 0x46074e
jl 0x460745
test edi, edi
jne 0x46074e
xor eax, eax
xor edx, edx
jmp 0x46080f
cmp dword [ebx + 0x38], 0
je 0x460763
push eax
push edi
push dword [ebp + 8]
call fcn.004253e0
jmp 0x46080f
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x4607aa
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x4607aa
cmp eax, edi
jb 0x460784
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.00462e50
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, dword [ebp + 8]
sub esi, ecx
add eax, ecx
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x2c]
sub dword [eax], ecx
mov eax, dword [ebx + 0x1c]
add dword [eax], ecx
jmp 0x4607b0
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x460804
mov ecx, ebx
call fcn.004600a4
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x4607ef
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.00469831
mov ecx, dword [ebp - 4]
sub esi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp - 4], ecx
mov edx, esi
cmp eax, 0xfff
jne 0x460804
jmp 0x4607c2
test edx, edx
je 0x460804
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.00469831
add esp, 0x10
sub esi, eax
mov edx, dword [ebp + 0x10]
sub edi, esi
mov eax, edi
sbb edx, 0
pop esi
pop edi
pop ebx
leave
ret 0xc
Function at 0x460815
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x460837
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00425300
jmp 0x4608f5
mov eax, dword [ebx + 0x20]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov ecx, dword [eax]
lea eax, [ebx + 0x30]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], eax
test ecx, ecx
je 0x46085d
mov eax, dword [eax]
mov ecx, dword [eax]
jmp 0x460862
xor ecx, ecx
mov dword [ebp - 0xc], eax
mov eax, ecx
cdq
mov dword [ebp - 4], eax
mov ecx, edx
mov dword [ebp - 8], ecx
test edi, edi
jl 0x4608c2
jg 0x460877
test esi, esi
je 0x4608c2
test ecx, ecx
jl 0x4608bd
jg 0x460881
test eax, eax
je 0x4608bd
cmp edi, ecx
jg 0x460893
jl 0x46088b
cmp esi, eax
jae 0x460893
mov eax, esi
mov dword [ebp - 4], esi
mov dword [ebp - 8], edi
push eax
push dword [ebp + 8]
push dword [ebp - 0x10]
call fcn.00462e50
mov eax, dword [ebp - 0xc]
add esp, 0xc
mov edx, dword [ebp - 4]
mov ecx, dword [ebp + 8]
add ecx, edx
sub esi, edx
mov eax, dword [eax]
sbb edi, dword [ebp - 8]
sub dword [eax], edx
mov eax, dword [ebx + 0x20]
add dword [eax], edx
jmp 0x4608c5
mov ecx, dword [ebp + 8]
jmp 0x4608cf
mov ecx, dword [ebp + 8]
test edi, edi
jl 0x4608e9
jg 0x4608cf
test esi, esi
je 0x4608e9
cmp dword [ebx + 0x4c], 0
je 0x4608e9
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.00469b8b
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x461ea2
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x461ee1
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x461ee1
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x461ee1
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x461ee1
cmp dword [ecx + 0x74], 0xe
jbe 0x461ee1
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x478823
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00478699

Function at 0x47eb56
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0047e7d3

Function at 0x485bf0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x485c1d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x485c1d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x401000
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
mov ebp, esp
add esp, 0xfffffffc
push esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x4033ec], eax
mov eax, dword [ebp + 4]
mov dword [0x40321d], eax
xor eax, eax
mov ecx, 0x16
push eax
dec ecx
jne 0x401020
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
push 0x7f00
push esi
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [ebp - 0x5c]
push ecx
mov eax, 0x30
mov dword [ecx], eax
mov eax, dword [0x40321d]
mov dword [ebp - 0x48], eax
mov eax, 0x4016dc
mov dword [ebp - 0x54], eax
mov ecx, str.Hello
mov dword [ebp - 0x34], ecx
call dword [sym.imp.USER32.dll_RegisterClassExA]
xor ecx, ecx
push ecx
push dword [0x40321d]
push ecx
push ecx
push 0x12e
push 0x7a
push 0x34c
push 0x2aa
push 0x40000
lea eax, str.lukifas
push eax
mov eax, str.Hello
push eax
push ecx
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [0x403438], eax
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0x403438]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
xor ebx, ebx
lea edi, [ebp - 0x50]
jmp 0x4010bc
push edi
call dword [sym.imp.USER32.dll_DispatchMessageA]
push ebx
push ebx
push ebx
push edi
call dword [sym.imp.USER32.dll_GetMessageA]
test al, al
jne 0x4010b5
mov esp, ebp
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x401640
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x40170b
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x40170a
push ebx
mov ebx, dword [ebp + 0x10]
test ebx, ebx
je 0x401709
push edi
mov edi, dword [ebp + 0x14]
test edi, edi
je 0x401708
mov eax, dword [ebp + 0x18]
cdq
and edx, 3
add eax, edx
sar eax, 2
test eax, eax
jle 0x401708
mov edx, ebx
sub edx, ecx
sub esi, ecx
sub edi, ecx
mov dword [ebp + 0x10], eax
mov eax, dword [edx + ecx]
mov dword [ebp + 0x18], eax
mov eax, dword [ecx]
mov dword [ebp + 0xc], eax
mov eax, dword [esi + ecx]
mov dword [ebp + 8], eax
not eax
mov dword [ebp + 0x14], eax
movd mm1, dword [ebp + 0x18]
movd mm2, dword [ebp + 0xc]
movd mm3, dword [ebp + 8]
movd mm5, dword [ebp + 0x14]
psrlw mm4, 0x10
punpcklbw mm1, mm4
punpcklbw mm2, mm4
punpcklbw mm3, mm4
punpcklbw mm5, mm4
pmullw mm1, mm3
pmullw mm2, mm5
paddw mm2, mm1
psrlw mm2, 8
movq mm1, mm2
psrlq mm1, 8
por mm2, mm1
movd dword [ebp + 0xc], mm2
psrlq mm2, 0x10
movd dword [ebp + 8], mm2
emms
mov eax, dword [ebp + 8]
mov ebx, eax
xor ebx, dword [ebp + 0xc]
add ecx, 4
and ebx, 0xffff
xor ebx, eax
dec dword [ebp + 0x10]
mov dword [edi + ecx - 4], ebx
jne 0x401691
pop edi
pop ebx
pop esi
pop ebp
ret 0x14
Function at 0x401ea0
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
push ecx
xor eax, eax
push ebx
mov ebx, ecx
cmp dword [ebp + 0x14], eax
jle 0x401fde
cmp dword [ebp + 0x18], eax
jle 0x401fde
mov eax, dword [ebp + 8]
push esi
push edi
push eax
call dword [sym.imp.USER32.dll_GetDC]
cmp dword [ebp + 0x1c], 0
mov dword [ebp - 4], eax
jne 0x401ed5
mov esi, dword [ebx + 8]
jmp 0x401ed8
mov esi, dword [ebx + 0x18]
mov ecx, dword [ebp + 0x20]
mov edi, dword [esi + ecx*4]
test edi, edi
je 0x401f31
mov eax, dword [esi + 0x1000]
mov edx, dword [ebp + 0x18]
cmp dword [eax + 8], edx
jne 0x401efc
mov ecx, dword [ebp + 0x14]
cmp dword [eax + 4], ecx
je 0x401f83
push 1
mov ecx, esi
call fcn.00401a80
push 0x100c
call fcn.0049eef7
add esp, 4
test eax, eax
je 0x401f1f
mov ecx, eax
call fcn.00401000
jmp 0x401f21
xor eax, eax
cmp dword [ebp + 0x1c], 0
mov esi, eax
jne 0x401f2e
mov dword [ebx + 8], eax
jmp 0x401f31
mov dword [ebx + 0x18], eax
mov edx, dword [ebp + 0x18]
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 4]
push edx
push eax
push ecx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov edx, dword [ebp + 0x20]
mov edi, eax
mov dword [esi + edx*4], edi
cmp dword [esi + 0x1000], 0
jne 0x401f83
push edi
mov ecx, ebx
call fcn.00401710
mov dword [esi + 0x1000], eax
mov ecx, dword [eax + 4]
lea ecx, [ecx + ecx*2]
mov edx, ecx
neg edx
and edx, 3
add ecx, edx
mov dword [esi + 0x1004], ecx
mov eax, dword [eax + 8]
imul eax, ecx
mov dword [esi + 0x1008], eax
push 0
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ebx, dword [sym.imp.GDI32.dll_SelectObject]
mov esi, eax
push edi
push esi
call ebx
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
push 0xcc0020
push ecx
mov ecx, dword [ebp + 0x18]
push edx
mov edx, dword [ebp + 0x14]
mov dword [ebp + 0x1c], eax
mov eax, dword [ebp - 4]
push eax
push ecx
push edx
push 0
push 0
push esi
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
push eax
push ecx
call dword [sym.imp.USER32.dll_ReleaseDC]
mov edx, dword [ebp + 0x1c]
push edx
push esi
call ebx
push esi
call dword [sym.imp.GDI32.dll_DeleteDC]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x402c50
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x4f6cdc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 0x20], ecx
mov ecx, dword [ebp + 0x10]
xor edi, edi
push 0x4d1590
push eax
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x14], edi
call fcn.0049f6bd
mov esi, eax
add esp, 8
mov dword [ebp - 0x1c], esi
cmp esi, edi
je 0x402d65
push esi
push 8
lea edx, [ebp - 0xc]
push 1
push edx
call fcn.0049f5e2
lea eax, [ebp - 0xc]
push 8
push eax
call fcn.00482d40
add esp, 0x18
cmp eax, edi
je 0x402d5c
push edi
push edi
push edi
push 0x4d1588
call fcn.0047f750
add esp, 0x10
mov dword [ebp - 0x10], eax
cmp eax, edi
je 0x402d5c
push eax
call fcn.00482ea0
add esp, 4
mov dword [ebp - 0x14], eax
push edi
cmp eax, edi
jne 0x402cf3
lea ecx, [ebp - 0x10]
push edi
push ecx
call fcn.00481650
add esp, 0xc
jmp 0x402d5c
mov edx, dword [ebp - 0x10]
push edx
call fcn.0049f730
add esp, 8
test eax, eax
je 0x402d1c
push edi
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x10]
push ecx
call fcn.00481650
mov edi, dword [ebp - 0x18]
mov esi, dword [ebp - 0x1c]
add esp, 0xc
jmp 0x402d5c
mov esi, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x10]
push esi
push edx
call fcn.00483710
mov eax, dword [ebp - 0x10]
push 8
push eax
call fcn.00482c60
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x24]
add esp, 0x10
mov dword [ebp - 0x2c], ecx
mov ecx, dword [ebp + 0xc]
push eax
mov dword [ebp - 0x28], edx
push ecx
mov ecx, dword [ebp - 0x20]
lea edx, [ebp - 0x2c]
push edx
call fcn.00402770
mov edi, eax
mov dword [ebp - 0x18], edi
push esi
call fcn.0049f307
add esp, 4
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.0049f71b
mov esp, ebp
pop ebp
ret 0xc
Function at 0x404ab0
Capabilities:
Terminate thread

Disassembly:
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov dword [esi], vtable.CInstallationPackageHandler.0
cmp dword [esi + 0xc], ebx
je 0x404b2f
mov eax, dword [esi + 0x24]
cmp eax, ebx
je 0x404b2f
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [esi + 0xc]
push 0x2710
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x404af1
mov ecx, dword [esi + 0xc]
push 1
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov edx, dword [esi + 0xc]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call edi
mov eax, dword [esi + 0x14]
push eax
mov dword [esi + 0xc], ebx
call edi
mov ecx, dword [esi + 0x1c]
push ecx
mov dword [esi + 0x14], ebx
call edi
mov edx, dword [esi + 0x18]
push edx
mov dword [esi + 0x1c], ebx
call edi
mov eax, dword [esi + 0x24]
push eax
mov dword [esi + 0x18], ebx
call edi
mov ecx, dword [esi + 0x2c]
push ecx
mov dword [esi + 0x24], ebx
call edi
mov dword [esi + 0x2c], ebx
pop edi
pop esi
pop ebx
ret

Function at 0x405100
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push 0x44
lea eax, [ebp - 0x58]
push 0
push eax
call fcn.0049eae0
add esp, 0xc
xor eax, eax
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x58]
push edx
push eax
push eax
push eax
push eax
push eax
push eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x10]
push eax
push 0
mov dword [ebp - 0x58], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x405213
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp - 0x14]
push ebx
push esi
push edi
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x4051de
mov ebx, dword [ebp + 0x18]
mov eax, ebx
xor esi, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x405170
sub eax, edx
sar eax, 1
je 0x4051be
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x3e8
call edi
push ebx
mov ebx, dword [sym.imp.USER32.dll_FindWindowW]
push 0
call ebx
test eax, eax
je 0x4051be
lea ecx, [ecx]
push 0xbb8
call edi
add esi, 0xbb8
cmp esi, dword [ebp + 0x14]
ja 0x4051cd
mov eax, dword [ebp + 0x18]
push eax
push 0
call ebx
test eax, eax
jne 0x4051a0
mov eax, dword [ebp + 8]
push 0
push 0
push 0x593
push eax
jmp 0x4051f4
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push ecx
push 1
push 0x594
push edx
jmp 0x4051f4
cmp eax, 0x102
je 0x4051cd
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push eax
push 0
push 0x594
push ecx
call dword [sym.imp.USER32.dll_PostMessageW]
mov edx, dword [ebp - 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [ebp - 0x10]
push eax
call esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 8]
push 0
push 0
push 0x533
push ecx
call dword [sym.imp.USER32.dll_PostMessageW]
mov esp, ebp
pop ebp
ret
Function at 0x406460
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x814
mov eax, dword [0x4f6cdc]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x80c]
push eax
push 0xf003f
xor esi, esi
push esi
push str.SOFTWARENokiaInstaller
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x80c], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x406552
push ebx
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea ecx, [ebp - 0x814]
push ecx
mov ecx, dword [ebp - 0x80c]
push esi
push esi
push esi
lea edx, [ebp - 0x808]
push edx
lea eax, [ebp - 0x404]
push eax
push esi
mov ebx, 0x200
push ecx
mov dword [ebp - 0x808], ebx
call edi
test eax, eax
jne 0x406550
lea ebx, [ebx]
lea edx, [ebp - 0x808]
push edx
lea eax, [ebp - 0x804]
push eax
push 0x4d2988
lea ecx, [ebp - 0x404]
push ecx
mov dword [ebp - 0x808], ebx
call sub.msi.dll_MsiGetPropertyW
cmp eax, 0x645
jne 0x406520
mov eax, dword [ebp - 0x80c]
lea edx, [ebp - 0x404]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
lea ecx, [ebp - 0x814]
push ecx
mov ecx, dword [ebp - 0x80c]
push 0
push 0
push 0
lea edx, [ebp - 0x808]
push edx
lea eax, [ebp - 0x404]
push eax
inc esi
push esi
push ecx
mov dword [ebp - 0x808], ebx
call edi
test eax, eax
je 0x4064e0
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0049f71b
mov esp, ebp
pop ebp
ret
Function at 0x408f10
Capabilities:
Get installed programs
Query environment variable
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x82c
mov eax, dword [0x4f6cdc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
mov dword [ebp - 0x820], eax
mov dword [ebp - 0x808], ebx
cmp eax, ebx
je 0x409155
lea eax, [ebp - 0x808]
push eax
push 0xf003f
push ebx
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x409155
lea ecx, [ebp - 0x82c]
push ecx
mov ecx, dword [ebp - 0x808]
push ebx
push ebx
push ebx
lea edx, [ebp - 0x80c]
push edx
lea eax, [ebp - 0x804]
push eax
push ebx
push ecx
mov dword [ebp - 0x818], ebx
mov dword [ebp - 0x80c], 0x200
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x409155
push esi
push edi
mov ecx, dword [ebp - 0x808]
lea edx, [ebp - 0x810]
push edx
push 1
push ebx
lea eax, [ebp - 0x804]
push eax
push ecx
mov dword [ebp - 0x810], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40910e
push 0x800
call fcn.0049eef7
mov esi, eax
push 0x3fe
lea eax, [ebp - 0x402]
xor edx, edx
push ebx
push eax
mov dword [ebp - 0x81c], esi
mov word [ebp - 0x404], dx
call fcn.0049eae0
mov eax, 0x4d2a40
mov edx, esi
add esp, 0x10
sub edx, eax
jmp 0x409010
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
cmp cx, bx
jne 0x409010
lea edi, [esi + 0x400]
mov eax, 0x4d2a40
mov edx, edi
sub edx, eax
mov edi, edi
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
cmp cx, bx
jne 0x409030
mov eax, dword [ebp - 0x810]
lea ecx, [ebp - 0x814]
push ecx
lea edx, [ebp - 0x404]
push edx
push ebx
push ebx
push 0x4d2988
push eax
mov dword [ebp - 0x814], 0x200
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push 0x200
push esi
lea ecx, [ebp - 0x404]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
mov ecx, dword [ebp - 0x810]
lea edx, [ebp - 0x814]
push edx
lea eax, [ebp - 0x404]
push eax
push ebx
push ebx
push str.UninstallString
push ecx
mov dword [ebp - 0x814], 0x200
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push 0x200
push edi
lea edx, [ebp - 0x404]
push edx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4090c2
sub eax, edx
sar eax, 1
jne 0x4090fc
mov eax, edi
lea edx, [eax + 2]
jmp 0x4090e0
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4090e0
sub eax, edx
sar eax, 1
jne 0x4090fc
push esi
call fcn.0049eb5a
add esp, 4
jmp 0x40910e
mov ecx, dword [ebp - 0x820]
lea eax, [ebp - 0x81c]
push eax
call fcn.00408ea0
mov eax, dword [ebp - 0x818]
lea ecx, [ebp - 0x82c]
push ecx
push ebx
push ebx
push ebx
lea edx, [ebp - 0x80c]
push edx
mov edx, dword [ebp - 0x808]
lea ecx, [ebp - 0x804]
inc eax
push ecx
push eax
push edx
mov dword [ebp - 0x80c], 0x200
mov dword [ebp - 0x818], eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x408fa2
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0049f71b
mov esp, ebp
pop ebp
ret
Function at 0x409a00
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
push esi
mov esi, ecx
mov dword [esi], vtable.CInstallationPackageHandler.0
mov byte [esi + 4], bl
mov dword [esi + 8], eax
mov dword [ebp - 4], eax
mov dword [esi + 0xc], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
cmp byte [ebp + 0xc], bl
je 0x409af9
push edi
lea eax, [ebp - 4]
push eax
push 2
call sub.msi.dll_MsiSetPropertyW
push esi
push 0x20075ef
push 0x406f30
call sub.msi.dll_MsiSetInternalUI
mov edi, dword [sym.imp.KERNEL32.dll_CreateEventW]
push ebx
push ebx
push ebx
push ebx
call edi
push ebx
push ebx
push ebx
push ebx
mov dword [esi + 0x20], eax
call edi
push ebx
push ebx
push ebx
push ebx
mov dword [esi + 0x14], eax
call edi
push ebx
push ebx
push ebx
push ebx
mov dword [esi + 0x1c], eax
call edi
push ebx
push ebx
push ebx
push ebx
mov dword [esi + 0x24], eax
call edi
push ebx
push ebx
push ebx
push ebx
mov dword [esi + 0x18], eax
call edi
push ebx
push ebx
push ebx
push ebx
mov dword [esi + 0x28], eax
call edi
mov ecx, dword [esi + 0x20]
mov edi, dword [sym.imp.KERNEL32.dll_ResetEvent]
push ecx
mov dword [esi + 0x2c], eax
call edi
mov edx, dword [esi + 0x14]
push edx
call edi
mov eax, dword [esi + 0x1c]
push eax
call edi
mov ecx, dword [esi + 0x24]
push ecx
call edi
mov edx, dword [esi + 0x18]
push edx
call edi
mov eax, dword [esi + 0x28]
push eax
call edi
mov ecx, dword [esi + 0x2c]
push ecx
call edi
lea edx, [esi + 0x10]
push edx
push ebx
push esi
push 0x4098c0
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0xc], eax
mov eax, dword [ebp + 8]
mov dword [0x4fbb38], eax
mov byte [0x4fb298], bl
mov dword [0x4fb29c], ebx
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x40a890
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ecx
lea edx, [ecx + 0x408]
test edx, edx
je 0x40a8c6
mov eax, edx
push esi
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40a8a4
sub eax, esi
sar eax, 1
pop esi
je 0x40a8c6
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
jne 0x40a8c6
mov esp, ebp
pop ebp
ret
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x40ade0
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
mov eax, dword [0x4f6cdc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push 0x3fe
push eax
lea ecx, [ebp - 0x402]
push ecx
mov bl, 1
mov word [ebp - 0x404], ax
call fcn.0049eae0
add esp, 0xc
test esi, esi
je 0x40ae4a
lea edx, [ebp - 0x404]
push edx
push 0x200
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x40ae4a
push esi
mov esi, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
call esi
test eax, eax
jne 0x40ae5e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7b
jne 0x40ae67
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049f71b
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x404]
push eax
call esi
mov ecx, dword [ebp - 4]
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.0049f71b
mov esp, ebp
pop ebp
ret 4