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

Disassembly:
push 0xffffffffffffffff
push 0x46cc63
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.0046057a
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.00465c18
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.00467134
test eax, eax
je 0x43bcdc
mov ecx, dword [esp + 0x3c]
call fcn.00465c45
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 0x43bca0
push edi
mov ecx, esi
call fcn.004632a0
mov ecx, esi
call fcn.0043be40
cmp dword [esp + 0x38], 1
jne 0x43bcd5
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.004633db
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 0x43e700
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x43e733
push esi
call fcn.00441800
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x43e72c
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 0x43e7b9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x43e7a2
mov eax, dword [esi + 8]
test eax, eax
je 0x43e757
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 0x43e79e
cmp eax, 2
je 0x43e7a2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x43e74a
cmp eax, 3
je 0x43e77d
cmp eax, 1
jne 0x43e74a
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 0x43e74a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x43e74a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.0043e7e0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x43e7c8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.0043e7e0
add esp, 4
pop esi
ret

Function at 0x449b20
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0xa0
push ebx
push ebp
mov ebp, dword [esp + 0xac]
push esi
push edi
push ebp
call sub.RASAPI32.dll_RasHangUpA
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x28
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], 0xa0
call esi
mov edi, eax
call esi
sub eax, edi
cmp eax, 0xbb8
jae 0x449b86
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x10]
push eax
push ebp
call sub.RASAPI32.dll_RasGetConnectStatusA
cmp eax, 6
je 0x449b86
push 0
call ebx
call esi
sub eax, edi
cmp eax, 0xbb8
jb 0x449b67
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret
Function at 0x44a6c0
Capabilities:
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ecx
push esi
mov esi, ecx
call fcn.0044a810
push 0
push 1
push 2
call sub.WS2_32.dll_socket
mov dword [esi], eax
cmp eax, 0xffffffff
pop esi
jne 0x44a6e0
xor eax, eax
pop ecx
ret
lea ecx, [esp]
push 4
push ecx
push 0x1001
push 0xffff
push eax
mov dword [esp + 0x14], 0
call sub.WS2_32.dll_setsockopt
mov eax, 1
pop ecx
ret

Function at 0x44a6c1
Capabilities:
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ecx
push esi
mov esi, ecx
call fcn.0044a810
push 0
push 1
push 2
call sub.WS2_32.dll_socket
mov dword [esi], eax
cmp eax, 0xffffffff
pop esi
jne 0x44a6e0
xor eax, eax
pop ecx
ret
lea ecx, [esp]
push 4
push ecx
push 0x1001
push 0xffff
push eax
mov dword [esp + 0x14], 0
call sub.WS2_32.dll_setsockopt
mov eax, 1
pop ecx
ret

Function at 0x44a710
Capabilities:
Resolve dns

Disassembly:
sub esp, 0x10
xor eax, eax
push esi
push edi
mov dword [esp + 8], eax
mov edi, ecx
mov dword [esp + 0xc], eax
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x10], eax
push ecx
mov dword [esp + 0x18], eax
mov word [esp + 0xc], 2
call sub.WS2_32.dll_htons
mov esi, dword [esp + 0x1c]
mov word [esp + 0xa], ax
push esi
call sub.WS2_32.dll_inet_addr
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x44a767
push esi
call sub.WS2_32.dll_gethostbyname
test eax, eax
je 0x44a77d
mov edx, dword [eax + 0xc]
mov eax, dword [edx]
mov ecx, dword [eax]
mov dword [esp + 0xc], ecx
lea edx, [esp + 8]
push 0x10
push edx
mov ecx, edi
call fcn.0044a7a0
pop edi
pop esi
add esp, 0x10
ret 8
push 0x2726
call sub.WS2_32.dll_WSASetLastError
pop edi
xor eax, eax
pop esi
add esp, 0x10
ret 8

Function at 0x44a7a0
Capabilities:
Connect socket

Disassembly:
mov eax, dword [esp + 8]
mov edx, dword [esp + 4]
push eax
mov eax, dword [ecx]
push edx
push eax
call sub.WS2_32.dll_connect
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
ret 8

Function at 0x44a830
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [ecx]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0x10]
push 0
push edx
push 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 1
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
jne 0x44a879
xor eax, eax
add esp, 0x10c
ret 4
mov edx, dword [esp + 0x110]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov eax, 1
add esp, 0x10c
ret 4
Function at 0x44acf0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x46d190
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.0044a8a0
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.0044a920
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.0044a920
lea ecx, [esi + 0xc]
call fcn.0045ef56
lea ecx, [esi + 0x10]
call fcn.0045ef56
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.0044d150
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.0044d150
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.0044d150
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.0045efcb
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.0045efcb
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x44b998
Capabilities:
Get hostname

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x46d3b8
push eax
mov dword fs:[0], esp
sub esp, 0x64
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 4]
test eax, eax
je 0x44b9a8
call fcn.0044bec0
mov edi, dword [esp + 0x7c]
test edi, edi
je 0x44ba8b
cmp byte [edi], 0
je 0x44ba8b
mov eax, dword [esp + 0x8c]
test eax, eax
jg 0x44b9cd
mov eax, 0x7d0
mov ecx, esi
mov dword [esi + 8], eax
call fcn.0044a6c0
test eax, eax
jne 0x44b9ed
push 0x48c450
lea ecx, [esi + 0x38]
call fcn.0045f108
jmp 0x44ba8b
mov eax, dword [esp + 0x80]
mov ecx, esi
push eax
push edi
call fcn.0044a710
test eax, eax
jne 0x44ba1c
mov ecx, esi
call fcn.0044a810
push edi
add esi, 0x38
push 0x48c42c
push esi
call fcn.0045cf67
add esp, 0xc
jmp 0x44ba8b
push 0xdc
mov ecx, esi
mov dword [esi + 4], 1
call fcn.0044c740
test eax, eax
je 0x44ba84
lea ecx, [esp + 8]
push 0x64
push ecx
call sub.WS2_32.dll_gethostname
mov eax, dword [esp + 0x88]
mov ecx, dword [esp + 0x84]
lea edx, [esp + 0x8c]
mov dword [esp + 0x8c], 1
push edx
push eax
lea edx, [esp + 0x10]
push ecx
push edx
mov ecx, esi
call fcn.0044bb60
test eax, eax
jne 0x44baa0
push edi
lea eax, [esi + 0x38]
push 0x48c408
push eax
call fcn.0045cf67
add esp, 0xc
mov ecx, esi
call fcn.0044bec0
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x64]
mov dword fs:[0], ecx
add esp, 0x70
ret 0x14
mov eax, dword [esp + 0x8c]
test eax, eax
je 0x44bb48
mov ecx, dword [0x48c6c0]
mov dword [esp + 0x7c], ecx
lea edx, [esp + 8]
lea eax, [esp + 0x7c]
push edx
push str.HELO__s_r_n
push eax
mov dword [esp + 0x80], 0
call fcn.0045cf67
mov edx, dword [esp + 0x88]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
mov ecx, esi
call fcn.0044a7c0
test eax, eax
jne 0x44bb0a
push 0x48c3ec
lea ecx, [esi + 0x38]
call fcn.0045f108
jmp 0x44bb1a
push 0xfa
mov ecx, esi
call fcn.0044c740
test eax, eax
jne 0x44bb37
mov ecx, esi
call fcn.0044bec0
lea ecx, [esp + 0x7c]
mov dword [esp + 0x74], 0xffffffff
call fcn.0045efcb
jmp 0x44ba8b
lea ecx, [esp + 0x7c]
mov dword [esp + 0x74], 0xffffffff
call fcn.0045efcb
mov ecx, dword [esp + 0x6c]
pop edi
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x70
ret 0x14
Function at 0x46136f
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4613a7
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.0045f426
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0045f3fe
jmp 0x4613b3
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x462a5d
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 0x462a9f
call fcn.004685de
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x462a9f
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x462a96
xor eax, eax
jmp 0x462aa7
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00462aad
pop edi
pop esi
pop ebx
ret 4

Function at 0x468b0e
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 0x468b3c
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x468b5a
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00468a74
jmp 0x468b5a
mov eax, dword [esi + 0x14]
test eax, eax
je 0x468b5a
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00468a74
test edi, edi
mov eax, edi
jne 0x468b44
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x403e15
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [esi]
and dword [esi], 0
add eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push 0
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x403e78
cmp dword [ebp + 0xc], 1
je 0x403e51
cmp dword [ebp + 0xc], 2
je 0x403e51
push 0xd
pop eax
jmp 0x403e78
test edi, edi
mov eax, dword [ebp - 4]
je 0x403e72
test eax, eax
je 0x403e6e
test al, 1
jne 0x403e4c
mov ecx, eax
shr ecx, 1
cmp word [edi + ecx*2 - 2], 0
je 0x403e72
jmp 0x403e4c
and word [edi], 0
shr eax, 1
mov dword [esi], eax
xor eax, eax
leave
ret 8

Function at 0x4040f6
Capabilities:
Terminate process

Disassembly:
push 0xc
mov eax, 0x44a923
call fcn.004346a6
mov eax, dword [esi + 0xa0]
cmp eax, 1
jge 0x40412c
push 0xbd2
lea eax, [ebp - 0x18]
push eax
call fcn.004085af
and dword [ebp - 4], 0
lea eax, [ebp - 0x18]
mov ecx, 0x468640
jmp fcn.00405a31
lea edi, [esi + 0x98]
dec eax
mov ecx, edi
call fcn.004052ba
mov ebx, str.CFinishedPage
push ebx
mov ecx, eax
call fcn.00402435
test eax, eax
je 0x404156
push ebx
push dword [edi + 8]
mov ecx, edi
call fcn.0042604c
mov eax, dword [esi + 0xa0]
dec eax
lea ecx, [esi + 0x90]
cmp dword [ecx], eax
je 0x404189
mov dword [ecx], eax
mov ecx, edi
call fcn.004052ba
push dword [eax]
call fcn.0043071c
pop ecx
push eax
push 0
push 0x8002
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_PostMessageW]
call fcn.00434745
ret

Function at 0x4041b2
Capabilities:
Terminate process

Disassembly:
push 0xc
mov eax, 0x44a923
call fcn.004346a6
lea esi, [edi + 0xa0]
mov eax, dword [esi]
cmp eax, 1
jne 0x4041db
cmp dword [edi + 0x90], 0
jne 0x4041db
mov ecx, edi
call fcn.00404350
mov esi, dword [esi]
cmp esi, 1
jge 0x404201
push 0xbd2
lea eax, [ebp - 0x18]
push eax
call fcn.004085af
and dword [ebp - 4], 0
lea eax, [ebp - 0x18]
mov ecx, 0x468640
jmp fcn.00405a31
dec esi
cmp dword [edi + 0x90], esi
je 0x40421c
push 0
push 0
push 0x8002
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_PostMessageW]
call fcn.00434745
ret
Function at 0x404350
Capabilities:
Terminate process

Disassembly:
push 0x2c
mov eax, 0x44a8fe
call fcn.004346a6
mov esi, ecx
lea ecx, [ebp - 0x10]
call fcn.00401b10
and dword [ebp - 4], 0
lea eax, [ebp - 0x10]
push eax
push 0x453044
mov ecx, 0x468838
call fcn.00423e36
test eax, eax
jne 0x4043a0
push 0xbd3
lea eax, [ebp - 0x24]
push eax
call fcn.004085af
mov byte [ebp - 4], 1
lea eax, [ebp - 0x24]
mov ecx, 0x468640
jmp fcn.00405a31
lea ecx, [ebp - 0x38]
call fcn.00425d34
mov byte [ebp - 4], 2
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push 0x453058
lea edi, [ebp - 0x38]
call fcn.00401553
mov byte [ebp - 4], 3
push ecx
lea eax, [ebp - 0x10]
mov ecx, esp
mov dword [ebp - 0x18], esp
push eax
call fcn.00403c62
mov byte [ebp - 4], 4
mov byte [ebp - 4], 2
call fcn.0040c676
mov eax, dword [ebp - 0x30]
xor ebx, ebx
inc ebx
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0x14], eax
jbe 0x4044aa
test ebx, ebx
jl 0x4044c8
cmp ebx, dword [ebp - 0x30]
jge 0x4044c8
mov eax, dword [ebp - 0x34]
mov edi, ebx
shl edi, 2
add eax, edi
mov ecx, dword [eax]
cmp dword [ecx - 0xc], 0
je 0x4044a0
push str.CProgressPage
push eax
call fcn.00404f0a
test al, al
pop ecx
pop ecx
je 0x404431
call fcn.0040460f
jmp 0x404486
cmp ebx, dword [ebp - 0x30]
jge 0x4044c8
mov eax, dword [ebp - 0x34]
add eax, edi
push 0x4523bc
push eax
call fcn.00404f0a
test al, al
pop ecx
pop ecx
jne 0x4044a0
cmp ebx, dword [ebp - 0x30]
jge 0x4044c8
mov eax, dword [ebp - 0x34]
add eax, edi
push 0x4526e4
push eax
call fcn.00404f0a
test al, al
pop ecx
pop ecx
jne 0x4044a0
cmp ebx, dword [ebp - 0x30]
jge 0x4044c8
mov eax, dword [ebp - 0x34]
add eax, edi
push 0x451f40
push eax
call fcn.00404f0a
test al, al
pop ecx
pop ecx
jne 0x4044a0
cmp ebx, dword [ebp - 0x30]
jge 0x4044c8
mov eax, dword [ebp - 0x34]
add eax, edi
lea ecx, [esi + 0x98]
mov edx, dword [ecx + 8]
push eax
push edx
call fcn.00425ffc
inc ebx
cmp ebx, dword [ebp - 0x14]
jb 0x4043f2
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x38]
call fcn.00425ee5
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00409dbd
call fcn.00434745
ret
jmp fcn.00424d51

Function at 0x40579d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
call fcn.0042715f
push dword [esp + 0xc]
mov esi, dword [eax + 0xc]
push dword [esp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
jne 0x4057bd
xor eax, eax
jmp 0x4057d0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4057b9
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
pop esi
ret 8

Function at 0x405a31
Capabilities:
Terminate process

Disassembly:
push esi
mov esi, eax
test esi, esi
je 0x405a6a
push ebx
mov ebx, ecx
add ebx, 0x230
push edi
mov edi, dword [ebx]
test edi, edi
je 0x405a5d
call fcn.0040a499
mov edx, dword [ebx]
push 0
push str.InstallBroken
call fcn.00409d67
pop ecx
pop ecx
mov eax, dword [esi]
push 0
push 0
mov ecx, esi
call dword [eax + 0x14]
pop edi
pop ebx
push 1
call fcn.00430b25
pop esi
Function at 0x40636b
Capabilities:
Delete file

Disassembly:
push 4
mov eax, 0x44a3be
call fcn.004346a6
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi], vtable.CProgressPage.0
mov dword [ebp - 4], 3
xor edi, edi
cmp dword [esi + 0x118], edi
je 0x4063b3
lea ebx, [esi + 0x110]
mov eax, edi
mov ecx, ebx
call fcn.004052ba
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
inc edi
cmp edi, dword [esi + 0x118]
jne 0x406399
mov byte [ebp - 4], 2
lea ecx, [esi + 0x178]
call fcn.0042a853
mov byte [ebp - 4], 1
lea ecx, [esi + 0x124]
call fcn.0042a853
mov byte [ebp - 4], 0
lea ecx, [esi + 0x110]
call fcn.00425ee5
or dword [ebp - 4], 0xffffffff
mov ecx, esi
call fcn.004104a9
call fcn.00434745
ret

Function at 0x4067b8
Capabilities:
Delete file
Move file

Disassembly:
push 4
mov eax, 0x448c49
call fcn.004346a6
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [edi], vtable.RememberTempFile.0
mov dword [ebp - 4], 1
lea esi, [edi + 4]
mov eax, dword [esi]
mov ecx, dword [eax - 0xc]
test ecx, ecx
je 0x4067fa
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x4067fa
mov eax, dword [esi]
push 4
push 0
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov byte [ebp - 4], 0
mov ecx, esi
call fcn.00409dbd
or dword [ebp - 4], 0xffffffff
mov dword [edi], vtable.CProgressPageProxy::Caller.0
call fcn.00434745
ret
Function at 0x40a5fe
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 0xc], esi
jne 0x40a610
mov eax, 0x80070057
jmp 0x40a659
push esi
lea eax, [ebp + 0xc]
push eax
push esi
push 0x2001f
push esi
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, esi
je 0x40a63c
jle 0x40a659
and eax, 0xffff
or eax, 0x80070000
jmp 0x40a659
push dword [edi + 0xc]
push dword [edi + 8]
push 3
push esi
push str.InstallerOverlay
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp eax, esi
jne 0x40a62e
xor eax, eax
pop esi
pop ebp
ret 8

Function at 0x40a65e
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
push 0x10000
mov edi, 0x8007000e
call fcn.00430d62
mov ebx, eax
xor esi, esi
cmp ebx, esi
pop ecx
je 0x40a70b
push 0x7fff
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x40a6ab
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, esi
jle 0x40a6a7
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
jmp 0x40a70b
push esi
push esi
push 3
push esi
push 1
push SysReAllocString
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40a693
lea eax, [ebp - 8]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x40a693
cmp dword [ebp - 4], 0x7fffffff
jg 0x40a70b
push esi
push esi
push esi
push 8
push esi
push ebx
xor edi, edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
cmp eax, esi
je 0x40a693
push esi
push esi
push esi
push 1
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, esi
je 0x40a693
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov eax, dword [ebp - 8]
mov dword [ecx + 4], eax
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x40be75
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push esi
push edi
push 0x40
xor esi, esi
lea eax, [ebp - 0x50]
push esi
push eax
mov dword [ebp - 0x54], 0x44
call fcn.00430590
mov ecx, dword [ebp + 8]
add esp, 0xc
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x54]
push eax
push esi
push esi
push 0x1000000
push esi
push esi
push esi
call fcn.00403c1e
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 8]
push 0xffffffffffffffff
mov ebx, eax
call fcn.00403dcf
cmp edi, esi
jne 0x40bed4
xor eax, eax
jmp 0x40bee7
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 0x10]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40c32f
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x18
mov eax, 0x44877b
call fcn.004346a6
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 4], ebx
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0x14]
push eax
mov edi, 0x20019
push edi
push ebx
push str.SOFTWAREMicrosoftInternet_ExplorerToolbar_
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x14], ebx
call esi
cmp eax, ebx
jne 0x40c397
lea ecx, [ebp - 0x18]
call fcn.00403e7c
cmp eax, ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], ecx
jne 0x40c397
push ebx
push ebx
push ebx
push ebx
push str.95B7759C_8C7F_4BF1_B163_73684A933233
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40c397
mov dword [ebp - 0x10], 1
mov dword [ebp - 0x14], ebx
mov byte [ebp - 4], 1
lea eax, [ebp - 0x1c]
push eax
push edi
push ebx
push str.TypeLibCCC7A320_B3CA_4199_B1A6_9F516DD69829
push SysReAllocString
mov dword [ebp - 0x1c], ebx
call esi
cmp eax, ebx
jne 0x40c3cc
lea ecx, [ebp - 0x14]
call fcn.00403e7c
cmp eax, ebx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x14], ecx
jne 0x40c3cc
inc dword [ebp - 0x10]
cmp dword [ebp - 0x10], ebx
je 0x40c498
mov dword [ebp - 0x10], ebx
mov byte [ebp - 4], 2
lea eax, [ebp - 0x1c]
push eax
push edi
push ebx
push str.SOFTWAREMicrosoftWindowsCurrentVersionExtSettings95B7759C_8C7F_4BF1_B163_73684A933233
push SysReAllocString
mov dword [ebp - 0x1c], ebx
call esi
cmp eax, ebx
jne 0x40c407
lea ecx, [ebp - 0x10]
call fcn.00403e7c
cmp eax, ebx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x10], ecx
je 0x40c433
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x10]
call fcn.00403e7c
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x14]
call fcn.00403e7c
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00403e7c
xor eax, eax
inc eax
call fcn.00434745
ret
push 4
pop esi
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x24]
push eax
push ebx
push str.Flags
push ecx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, ebx
jne 0x40c464
cmp dword [ebp - 0x24], esi
jne 0x40c464
xor eax, eax
cmp eax, ebx
je 0x40c48e
xor esi, esi
inc esi
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x10]
call fcn.00403e7c
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x14]
call fcn.00403e7c
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00403e7c
mov eax, esi
jmp 0x40c42d
mov esi, dword [ebp - 0x20]
not esi
and esi, 1
jmp 0x40c467
xor esi, esi
jmp 0x40c473
Function at 0x40c722
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
sub esp, 0x208
lea ebp, [esp - 4]
mov eax, dword [0x463e00]
xor eax, ebp
mov dword [ebp + 0x208], eax
push 0x14
mov eax, 0x4490f8
call fcn.004346a6
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword [ebp + 0x214]
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x1c], ebx
xor esi, esi
inc esi
mov dword [ebp - 4], esi
push 0x455450
mov ecx, edi
call fcn.00401553
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp]
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
push dword [ebp + 0x218]
mov dword [ebp - 0x1c], esi
push dword [ebp - 0x14]
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x18], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, ebx
jne 0x40c7a4
lea eax, [ebp]
push eax
mov ecx, edi
call fcn.0040166e
mov byte [ebp - 4], bl
lea ecx, [ebp + 0x218]
call fcn.00409dbd
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x208]
xor ecx, ebp
call fcn.0043013e
add ebp, 0x20c
leave
ret