joyce8/EMBER2024-capa huggingface dataset:
Function at 0x439910
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x47da83
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.004714e4
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], vtable.CBrush.0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.00476b79
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.00478095
test eax, eax
je 0x439a2c
mov ecx, dword [esp + 0x3c]
call fcn.00476ba6
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x4399f0
push edi
mov ecx, esi
call fcn.00474213
mov ecx, esi
call fcn.00439b90
cmp dword [esp + 0x38], 1
jne 0x439a25
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.0047434e
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x43c440
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x43c473
push esi
call fcn.0043f550
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x43c46c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x43c4f9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x43c4e2
mov eax, dword [esi + 8]
test eax, eax
je 0x43c497
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x43c4de
cmp eax, 2
je 0x43c4e2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x43c48a
cmp eax, 3
je 0x43c4bd
cmp eax, 1
jne 0x43c48a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x43c48a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x43c48a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.0043c520
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x43c508
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.0043c520
add esp, 4
pop esi
ret

Function at 0x44a5d0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x4d48f8]
xor edx, edx
cmp eax, edx
jne 0x44a5f6
xor eax, eax
mov byte [eax + 0x4d47f8], al
inc eax
cmp eax, 0x100
jl 0x44a5de
mov dword [0x4d48f8], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x4d47f8
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x44a687
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x44a65a
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x44a628
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x44a700
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x44a753
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x44a73a
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4510d0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x47df1e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x10], edi
call fcn.004519f0
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0x4a7fb4
call fcn.0046fc73
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x451163
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.0046fc73
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x45115c
push 0
mov ecx, eax
call fcn.00448200
mov dword [esi + 0xc], eax
jmp 0x451165
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x451165
xor esi, esi
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x30], esi
mov dword [edi + 0x34], 0
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8

Function at 0x4722d9
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x472311
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0047038d
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00470365
jmp 0x47231d
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4739cb
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x473a0d
call fcn.00479485
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x473a0d
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x473a04
xor eax, eax
jmp 0x473a15
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00473a1b
pop edi
pop esi
pop ebx
ret 4
Function at 0x4799b5
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4799e3
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x479a01
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0047991b
jmp 0x479a01
mov eax, dword [esi + 0x14]
test eax, eax
je 0x479a01
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0047991b
test edi, edi
mov eax, edi
jne 0x4799eb
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x4011b0
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x48a220
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
mov eax, dword [0x4bb27c]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
call fcn.00404d90
mov eax, dword [ebp + 0x10]
mov esi, dword [eax]
call fcn.00418e70
call fcn.00405500
mov ecx, dword [0x4ba6a8]
push 0
add ecx, 0x300
call fcn.00446e80
mov ecx, dword [ebp + 8]
push ecx
mov ecx, 0x4c19e0
call fcn.00401c90
mov edx, dword [ebp + 0xc]
push edx
mov ecx, 0x4c19f0
call fcn.00403000
lea eax, [esp + 0xc]
push str.ids_deleting_files
push eax
call fcn.00418de0
add esp, 8
push eax
mov ecx, 0x4c186c
mov dword [esp + 0x24], 0
call fcn.00403000
or esi, 0xffffffff
mov dword [esp + 0x20], esi
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, esi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401268
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0xc]
push str.ids_deleting_files_title
push ecx
call fcn.00418de0
add esp, 8
push eax
mov ecx, 0x4c1868
mov dword [esp + 0x24], 1
call fcn.00403000
mov dword [esp + 0x20], esi
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
mov ecx, esi
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4012b0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0xc]
push ecx
call fcn.00429fa0
mov edx, dword [eax]
add esp, 4
push edx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, esi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4012e5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0
mov ecx, 0x4c1468
call fcn.00421890
mov eax, dword [0x4c1874]
mov ecx, 0x4c14d8
call fcn.0040f7f0
cmp eax, esi
setne al
movzx ecx, al
push ecx
lea edx, [esp + 0x10]
push str.CWaitDialog_closed._Cancel:_d_n
push edx
mov dword [esp + 0x18], 4
mov byte [esp + 0x1c], 0
call fcn.00402e60
add esp, 0xc
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x402d00
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x402d19
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x402d54
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x402d50
lea ebx, [ebx]
cmp esi, eax
jae 0x402d54
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x402d40
cmp esi, eax
jb 0x402d5a
pop esi
pop edi
xor eax, eax
pop ebx
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x406220
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x48936e
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x4bb27c]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
mov eax, dword [0x4be0cc]
mov edx, dword [eax + 0xc]
mov ecx, 0x4be0cc
call edx
add eax, 0x10
mov dword [esi], eax
xor edi, edi
mov dword [esp + 0x18], edi
mov eax, dword [0x4be0cc]
mov edx, dword [eax + 0xc]
mov ecx, 0x4be0cc
call edx
add eax, 0x10
mov dword [esi + 4], eax
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], edi
mov dword [esi + 8], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x2c], edi
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret
Function at 0x4087b0
Capabilities:
Read .ini file

Disassembly:
push ebp
lea ebp, [esp - 0x808]
sub esp, 0x808
push 0xffffffffffffffff
push 0x489123
mov eax, dword fs:[0]
push eax
sub esp, 0x230
mov eax, dword [0x4bb27c]
xor eax, ebp
mov dword [ebp + 0x804], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, dword [ebp + 0x810]
xor eax, eax
mov ebx, ecx
mov dword [ebp - 0x28], eax
mov dword [ebp - 4], eax
push 0x4976a0
lea ecx, [ebp - 0x14]
mov esi, edx
mov byte [ebp - 4], 2
call fcn.004031f0
lea eax, [ebp - 0x1c]
push eax
mov byte [ebp - 4], 3
call fcn.00423db0
add esp, 4
lea ecx, [ebp - 0x14]
push ecx
push eax
lea edx, [ebp - 0x18]
push edx
mov byte [ebp - 4], 4
call fcn.004269d0
add esp, 0xc
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40885a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40887d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [ebp - 0x18]
mov eax, dword [edi]
mov ecx, dword [esi]
push edx
push 0x802
lea edx, [ebp]
push edx
push eax
push ecx
push str.InstallerShim
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov word [ebp + eax*2], 0
lea eax, [ebp]
push eax
mov ecx, ebx
call fcn.004031f0
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4088d0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x804]
xor ecx, ebp
call fcn.0046605d
add ebp, 0x808
mov esp, ebp
pop ebp
ret
Function at 0x40a4c0
Capabilities:
Create process on windows

Disassembly:
push ebp
lea ebp, [esp - 0x4c]
sub esp, 0x4c
push 0xffffffffffffffff
push 0x488d88
mov eax, dword fs:[0]
push eax
sub esp, 0x238
push ebx
push esi
push edi
mov eax, dword [0x4bb27c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov edi, edx
mov ebx, dword [ebp + 0x54]
mov dword [ebp - 4], 0
mov byte [ebp - 4], 2
lea ecx, [ebp]
mov dword [ebp + 0x48], 0x643
call fcn.00430ec0
mov byte [ebp - 4], 3
call fcn.00435180
test al, al
je 0x40a60e
push 0x3c
lea eax, [ebp - 0x4c]
push 0
push eax
call fcn.00467730
mov ecx, dword [ebx]
mov edx, dword [edi]
mov eax, dword [esi]
mov dword [ebp - 0x3c], ecx
add esp, 0xc
lea ecx, [ebp - 0x4c]
push ecx
mov dword [ebp - 0x4c], 0x3c
mov dword [ebp - 0x40], str.open
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], 1
mov dword [ebp - 0x48], 0x40
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x40a5e8
push str.CInstallUtils::RunInstallerAndWaitForCompletion
lea ecx, [ebp + 0x40]
call fcn.004031f0
push str..InstallUtils.cpp
lea ecx, [ebp + 0x44]
mov byte [ebp - 4], 4
call fcn.004031f0
mov byte [ebp - 4], 5
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
call esi
push eax
lea edx, [ebp + 0x34]
push edx
call fcn.00435510
add esp, 0xc
mov edi, eax
mov byte [ebp - 4], 6
call esi
test eax, eax
jle 0x40a5bd
and eax, 0xffff
or eax, 0x80070000
lea ecx, [ebp + 0x40]
push ecx
push 0x12a
lea edx, [ebp + 0x44]
push edx
push eax
push edi
lea ecx, [ebp - 0x244]
call fcn.0041fce0
push 0x4b1c2c
lea eax, [ebp - 0x244]
push eax
call fcn.00466ffb
mov eax, dword [ebp - 0x14]
test eax, eax
mov esi, eax
je 0x40a62e
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea ecx, [ebp + 0x48]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40a62e
push esi
push edi
push ebx
lea ecx, [ebp]
call fcn.00431d80
push 0xffffffffffffffff
lea ecx, [ebp]
call fcn.004319a0
lea ecx, [ebp]
call fcn.00431540
mov dword [ebp + 0x48], eax
mov edx, dword [ebp + 0x48]
push edx
lea eax, [ebp + 0x30]
push str.Installer_exited_with_code__d._n
push eax
mov dword [ebp + 0x30], 4
mov byte [ebp + 0x34], 0
call fcn.00402e60
mov esi, dword [ebp + 0x48]
add esp, 0xc
lea ecx, [ebp]
mov byte [ebp - 4], 2
call fcn.004319f0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add ebp, 0x4c
mov esp, ebp
pop ebp
ret
Function at 0x40ad90
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x50]
sub esp, 0x50
push 0xffffffffffffffff
push 0x488ca4
mov eax, dword fs:[0]
push eax
sub esp, 0x234
push ebx
push esi
push edi
mov eax, dword [0x4bb27c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov ebx, dword [ebp + 0x58]
mov dword [ebp + 0x30], 0
mov dword [ebp - 4], 1
mov byte [ebp - 4], 3
mov eax, dword [edi]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
test esi, esi
jne 0x40ae16
mov eax, dword [0x4be0cc]
mov edx, dword [eax + 0xc]
mov ecx, 0x4be0cc
call edx
add eax, 0x10
mov dword [ebx], eax
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add ebp, 0x50
mov esp, ebp
pop ebp
ret
push 0
push esi
lea ecx, [ebp + 0x20]
call fcn.00435bd0
mov byte [ebp - 4], 4
mov eax, dword [ebp + 0x20]
mov edx, dword [eax + 0x14]
lea ecx, [ebp + 0x20]
mov dword [ebp + 0x3c], 0
call edx
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, eax
nop
mov eax, dword [edi]
push 0
lea edx, [ebp + 0x3c]
push edx
push esi
push ecx
push eax
call ebx
test eax, eax
je 0x40ae68
cmp esi, dword [ebp + 0x3c]
jbe 0x40ae6b
mov eax, dword [ebp + 0x20]
mov edx, dword [eax + 0x14]
lea ecx, [ebp + 0x20]
call edx
mov ecx, dword [ebp + 0x3c]
add ecx, eax
jmp 0x40ae40
cmp esi, dword [ebp + 0x3c]
je 0x40aee7
push str.CInstallUtils::ReadTextFileFromPipe
lea ecx, [ebp + 0x44]
call fcn.004031f0
push str..InstallUtils.cpp
lea ecx, [ebp + 0x4c]
mov byte [ebp - 4], 5
call fcn.004031f0
mov byte [ebp - 4], 6
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
call esi
push eax
lea edx, [ebp + 0x34]
push edx
call fcn.00435510
add esp, 0xc
mov edi, eax
mov byte [ebp - 4], 7
call esi
test eax, eax
jle 0x40aebc
and eax, 0xffff
or eax, 0x80070000
lea ecx, [ebp + 0x44]
push ecx
push 0x171
lea edx, [ebp + 0x4c]
push edx
push eax
push edi
lea ecx, [ebp - 0xb8]
call fcn.0041fce0
push 0x4b1c2c
lea eax, [ebp - 0xb8]
push eax
call fcn.00466ffb
mov esi, dword [ebp + 0x58]
mov eax, 2
push eax
lea ecx, [ebp + 0x20]
push ecx
push esi
call fcn.00425440
or dword [ebp + 0x30], 1
add esp, 0xc
lea ecx, [ebp + 0x20]
mov byte [ebp - 4], 3
call fcn.00435f80
mov eax, esi
jmp 0x40ae01
Function at 0x40d720
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x488910
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x4bb27c]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
push esi
call fcn.0040f640
mov dword [esp + 0x14], 0
mov dword [esi], vtable.CNWaitDialog.0
mov dword [esi + 0x20], vtable.CNWaitDialog.1.0
mov dword [esi + 0x24], vtable.CNWaitDialog.2.0
mov dword [esi + 0x30], vtable.CNWaitDialog.3.0
mov dword [esi + 0x34], vtable.CNWaitDialog.4.0
mov eax, dword [0x4be0cc]
mov edx, dword [eax + 0xc]
mov ecx, 0x4be0cc
call edx
add eax, 0x10
mov dword [esi + 0x390], eax
mov byte [esp + 0x14], 1
mov eax, dword [0x4be0cc]
mov edx, dword [eax + 0xc]
mov ecx, 0x4be0cc
call edx
add eax, 0x10
mov dword [esi + 0x394], eax
mov byte [esp + 0x14], 2
mov eax, dword [0x4be0cc]
mov edx, dword [eax + 0xc]
mov ecx, 0x4be0cc
call edx
add eax, 0x10
mov dword [esi + 0x398], eax
lea ecx, [esi + 0x3a0]
mov byte [esp + 0x14], 3
call fcn.00450fa0
lea ecx, [esi + 0x498]
mov byte [esp + 0x14], 4
call fcn.00454a00
mov dword [esi + 0x39c], 0
mov dword [esi + 0x3d0], 1
mov byte [esi + 0x504], 0
mov byte [esi + 0x44], 1
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret 4

Function at 0x40d840
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x487930
mov eax, dword fs:[0]
push eax
push esi
mov eax, dword [0x4bb27c]
xor eax, esp
push eax
lea eax, [esp + 8]
mov dword fs:[0], eax
mov esi, dword [esp + 0x18]
mov dword [esi], vtable.CNWaitDialog.0
mov dword [esi + 0x20], vtable.CNWaitDialog.1.0
mov dword [esi + 0x24], vtable.CNWaitDialog.2.0
mov dword [esi + 0x30], vtable.CNWaitDialog.3.0
mov dword [esi + 0x34], vtable.CNWaitDialog.4.0
lea ecx, [esi + 0x498]
mov dword [esp + 0x10], 4
call fcn.00454a80
lea ecx, [esi + 0x3a0]
mov byte [esp + 0x10], 3
call fcn.00450e30
mov byte [esp + 0x10], 2
mov eax, dword [esi + 0x398]
sub eax, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d8d1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x10], 1
mov eax, dword [esi + 0x394]
sub eax, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d8f8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x10], 0
mov eax, dword [esi + 0x390]
sub eax, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d91f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, esi
mov dword [esp + 0x10], 0xffffffff
call fcn.0040e550
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0xc
ret 4
Function at 0x40ee30
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x134
mov eax, dword [0x4bb27c]
xor eax, esp
mov dword [esp + 0x130], eax
movzx eax, word [esp + 0x138]
push esi
mov esi, dword [0x4be060]
push edi
push 0xf0
push eax
mov edi, 1
push esi
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x40efbf
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x40efbf
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x40efbf
push ebx
push ebp
mov ebp, dword [sym.imp.USER32.dll_SendDlgItemMessageW]
jmp 0x40eea5
mov edi, dword [esp + 0x10]
movzx eax, word [esi]
test ax, ax
je 0x40efbb
add esi, 2
mov ebx, dword [esi + 2]
movzx edi, ax
movzx eax, word [esi]
add esi, 2
add esi, 4
cmp ax, 0x403
jne 0x40ef20
lea ecx, [esp + 0x40]
mov dword [esp + 0x3c], ecx
call dword [0x4ba6a0]
push eax
push esi
lea ecx, [esp + 0x44]
call fcn.0040f450
mov edx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x14]
push edx
mov edx, dword [ecx + 4]
push 0
movzx eax, di
push 0x143
push eax
push edx
call ebp
cmp eax, 0xffffffff
jne 0x40ef09
mov dword [esp + 0x10], 0
mov eax, dword [esp + 0x3c]
lea ecx, [esp + 0x40]
cmp eax, ecx
je 0x40ef8f
push eax
call fcn.00466825
add esp, 4
jmp 0x40ef8f
cmp ax, 0x1234
jne 0x40ef8f
lea edx, [esp + 0x40]
mov dword [esp + 0x18], 1
mov dword [esp + 0x1c], 0xffffffff
mov dword [esp + 0x3c], edx
call dword [0x4ba6a0]
push eax
push esi
lea ecx, [esp + 0x44]
call fcn.0040f450
mov eax, dword [esp + 0x3c]
lea ecx, [esp + 0x40]
cmp eax, ecx
mov dword [esp + 0x20], eax
je 0x40ef68
push eax
call fcn.00466825
add esp, 4
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x18]
push edx
mov edx, dword [ecx + 4]
push 0
movzx eax, di
push 0x40b
push eax
push edx
call ebp
cmp eax, 0xffffffff
jne 0x40ef8f
mov dword [esp + 0x10], 0
add esi, ebx
cmp dword [esp + 0x10], 0
jne 0x40eea1
mov eax, dword [esp + 0x10]
pop ebp
pop ebx
mov ecx, dword [esp + 0x138]
pop edi
pop esi
xor ecx, esp
call fcn.0046605d
add esp, 0x134
ret 4
mov eax, edi
jmp 0x40efa0
mov eax, edi
jmp 0x40efa2