joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43de28
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x43df7d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
je 0x43de77
lea edx, [ebp - 0x20]
mov eax, dword [0x442d88]
call fcn.00404f8c
mov ecx, dword [ebp - 0x20]
mov dl, 1
mov eax, dword [0x43cb80]
call fcn.00408d80
call fcn.00403384
push 0
push 1
push 2
call sub.wsock32.dll_socket
mov edx, dword [ebp - 4]
mov dword [edx + 4], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0xffffffff
jne 0x43deb2
lea edx, [ebp - 0x20]
mov eax, dword [0x442bf8]
call fcn.00404f8c
mov ecx, dword [ebp - 0x20]
mov dl, 1
mov eax, dword [0x43cb80]
call fcn.00408d80
call fcn.00403384
xor eax, eax
push ebp
push 0x43df4a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 0x10]
push eax
mov ax, word [ebp + 0xc]
push eax
push 0
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0043dd40
push 0x10
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_bind
mov edx, 0x43df98
call fcn.0043d60c
mov eax, dword [ebp - 4]
call fcn.0043dbbc
cmp dword [ebp + 8], 5
jle 0x43df0e
mov dword [ebp + 8], 5
mov cl, 4
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov bx, 0xffff
call fcn.00402ee0
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_listen
mov edx, 0x43dfa8
call fcn.0043d60c
mov eax, dword [ebp - 4]
mov byte [eax + 8], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x43df67
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43df84
lea eax, [ebp - 0x20]
call fcn.00403910
ret
Function at 0x402220
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x4496db
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x45dd50]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, dword [esp + 0x24]
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
call fcn.00446c4f
push 4
mov dword [esp + 0x20], 0
call fcn.0042120c
mov edi, eax
add esp, 4
test edi, edi
je 0x40229e
call fcn.00446e5a
mov dword [edi], eax
call fcn.00446d2f
push 0
lea ecx, [esp + 0x14]
mov ebx, eax
call fcn.00446c10
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x402293
inc eax
mov dword [ebx + 4], eax
lea ecx, [esp + 0x10]
call fcn.00446c38
jmp 0x4022a0
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret 4

Function at 0x4028a0
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x449d38
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
mov eax, dword [0x45dd50]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov esi, edx
xor ebx, ebx
push 0xffffffffffffffff
push ebx
xor eax, eax
push ecx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], ebx
mov word [esp + 0x20], ax
call fcn.00402350
mov eax, esi
mov dword [esp + 0x34], ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4028f6
sub eax, edx
sar eax, 1
push eax
push esi
lea esi, [esp + 0x18]
call fcn.00402dd0
push 0xffffffffffffffff
push ebx
xor edx, edx
mov dword [edi + 0x18], 7
mov dword [edi + 0x14], ebx
push eax
mov ecx, edi
mov word [edi + 4], dx
call fcn.00402350
cmp dword [esp + 0x28], 8
jb 0x40293f
mov eax, dword [esp + 0x14]
push eax
call fcn.0042123b
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x2c
ret
Function at 0x4047b0
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 0x4047c9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x404804
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x404800
lea ebx, [ebx]
cmp esi, eax
jae 0x404804
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4047f0
cmp esi, eax
jb 0x40480a
pop esi
pop edi
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x4060b0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x44b302
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x45dd50]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov edi, dword [esp + 0x28]
xor ebx, ebx
mov dword [esp + 0x14], ebx
mov dword [edi], 0x45218c
mov dword [edi + 0x58], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
lea esi, [edi + 8]
push esi
mov dword [esp + 0x24], ebx
push edi
mov dword [esp + 0x1c], 1
call fcn.00407070
mov dword [esp + 0x20], 1
mov eax, dword [edi]
mov ecx, dword [eax + 4]
mov dword [edi + ecx], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov ecx, esi
call fcn.00407c80
lea edx, [esi + 8]
mov dword [esi + 0x10], edx
mov dword [esi], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov byte [esi + 0x48], bl
mov byte [esi + 0x41], bl
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], ebx
mov eax, dword [esi + 0x24]
mov dword [eax], ebx
mov ecx, dword [esi + 0x34]
mov dword [ecx], ebx
mov edx, dword [esi + 0x10]
mov dword [edx], ebx
mov eax, dword [esi + 0x20]
mov dword [eax], ebx
mov ecx, dword [esi + 0x30]
mov dword [ecx], ebx
mov dword [esi + 0x4c], ebx
mov edx, dword [0x4627a4]
mov dword [esi + 0x44], edx
mov dword [esi + 0x3c], ebx
mov eax, dword [esp + 0x2c]
push eax
mov byte [esp + 0x24], 2
call fcn.00407200
test eax, eax
jne 0x4061a8
mov ecx, dword [edi]
mov ecx, dword [ecx + 4]
mov eax, dword [ecx + edi + 8]
add ecx, edi
or eax, 2
cmp dword [ecx + 0x28], ebx
jne 0x4061a1
or eax, 4
push ebx
push eax
call fcn.00403fa0
mov eax, edi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x14
ret 8
Function at 0x407c80
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x44979b
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x45dd50]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x14], esi
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.00446c4f
push 4
mov dword [esp + 0x24], 0
call fcn.0042120c
mov edi, eax
add esp, 4
test edi, edi
je 0x407d02
call fcn.00446e5a
mov dword [edi], eax
call fcn.00446d2f
push 0
lea ecx, [esp + 0x14]
mov ebx, eax
call fcn.00446c10
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x407cf7
inc eax
mov dword [ebx + 4], eax
lea ecx, [esp + 0x10]
call fcn.00446c38
jmp 0x407d04
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov eax, esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x14
ret
Function at 0x40a8c0
Capabilities:
Create directory
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x449ff8
mov eax, dword fs:[0]
push eax
sub esp, 0x830
mov eax, dword [0x45dd50]
xor eax, esp
mov dword [esp + 0x82c], eax
push ebx
push ebp
push esi
mov eax, dword [0x45dd50]
xor eax, esp
push eax
lea eax, [esp + 0x840]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0x18], ebx
lea ebp, [edi + 4]
xor eax, eax
mov dword [edi + 0x18], 7
mov dword [edi + 0x14], ebx
mov dword [esp + 0x1c], edi
mov word [ebp], ax
mov dword [esp + 0x848], ebx
mov dword [esp + 0x18], 1
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push ebx
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
lea ecx, [esp + 0x10]
push ecx
mov esi, eax
push 8
push esi
mov dword [esp + 0x1c], ebx
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
setne al
cmp al, bl
je 0x40a9c7
push 0x7fe
lea eax, [esp + 0x42]
xor edx, edx
push ebx
push eax
mov word [esp + 0x48], dx
call fcn.00431a80
mov eax, dword [esp + 0x1c]
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x40]
push edx
push eax
mov dword [esp + 0x20], 0x400
call dword [sym.imp.USERENV.dll_GetUserProfileDirectoryW]
test eax, eax
setne al
cmp al, bl
je 0x40a9bc
lea eax, [esp + 0x3c]
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40a9a0
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x40]
push ecx
mov ecx, edi
call fcn.00402450
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [edi + 0x14], ebx
jne 0x40aa00
lea esi, [esp + 0x20]
call fcn.0041d040
push 0xffffffffffffffff
push ebx
push eax
mov ecx, edi
mov dword [esp + 0x854], 1
call fcn.00402350
cmp dword [esp + 0x38], 8
jb 0x40aa76
mov eax, dword [esp + 0x24]
push eax
jmp 0x40aa6e
call fcn.0041cd80
mov esi, edi
cmp eax, 6
jne 0x40aa15
push 0x1f
push str.AppData_roamingWCDMA_General_
jmp 0x40aa1c
push 0x20
push str.Application_DataWCDMA_General_
call fcn.00402dd0
cmp dword [edi + 0x18], 8
jb 0x40aa2a
mov ebp, dword [ebp]
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40aa76
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x40aa76
lea esi, [esp + 0x20]
call fcn.0041d040
push 0xffffffffffffffff
push ebx
push eax
mov ecx, edi
mov dword [esp + 0x854], 2
call fcn.00402350
cmp dword [esp + 0x38], 8
jb 0x40aa76
mov ecx, dword [esp + 0x24]
push ecx
call fcn.0042123b
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0x840]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x82c]
xor ecx, esp
call fcn.0042eb3c
add esp, 0x83c
ret
Function at 0x40b540
Capabilities:
Acquire debug privileges

Disassembly:
sub esp, 0x18
push ebx
lea eax, [esp + 4]
push eax
push 0x20
xor bl, bl
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x40b5d0
lea ecx, [esp + 0xc]
push ecx
push str.SeDebugPrivilege
push 0
mov dword [esp + 0x14], 1
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
jne 0x40b589
push str.Cant___lookup___privilege___value._n
call fcn.004309fb
add esp, 4
mov eax, dword [esp + 4]
push 0
push 0
push 0x10
lea edx, [esp + 0x14]
push edx
push 0
push eax
mov dword [esp + 0x2c], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x40b5ba
push str.Cant___adjust___privilege___value._n
call fcn.004309fb
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 4]
test eax, eax
push ecx
sete bl
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
pop ebx
add esp, 0x18
ret
Function at 0x40f830
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x44a933
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x45dd50]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
mov ecx, 7
xor eax, eax
xor edx, edx
mov dword [esi + 0x18], ecx
mov dword [esi + 0x14], eax
mov word [esi + 4], dx
mov dword [esp + 0x14], eax
mov dword [esi + 0x34], ecx
mov dword [esi + 0x30], eax
mov word [esi + 0x20], ax
lea ecx, [esi + 0x38]
push ecx
mov byte [esp + 0x18], 1
call fcn.00410850
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret 4

Function at 0x40fc00
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x44a8fe
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x45dd50]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
mov ecx, 7
xor eax, eax
xor edx, edx
mov dword [esi + 0x18], ecx
mov dword [esi + 0x14], eax
mov word [esi + 4], dx
mov dword [esp + 0x14], eax
mov dword [esi + 0x34], ecx
mov dword [esi + 0x30], eax
mov word [esi + 0x20], ax
lea ecx, [esi + 0x38]
push ecx
mov byte [esp + 0x18], 1
call fcn.00410850
lea edx, [esi + 0x50]
push edx
mov byte [esp + 0x18], 2
call fcn.00410850
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret 4
Function at 0x413360
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x18
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push ebp
push esi
push edi
lea eax, [esp + 0x10]
push eax
push 0x2001f
xor ebp, ebp
push ebp
push str.SOFTWAREPoliciesMicrosoftWindowsDriverSearching
push 0x80000002
xor edi, edi
xor esi, esi
mov dword [esp + 0x24], ebp
call ebx
cmp eax, ebp
jne 0x413398
mov esi, dword [esp + 0x10]
jmp 0x413415
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x18]
push edx
push ebp
push 0x2001f
push ebp
push ebp
push ebp
push str.SOFTWAREPoliciesMicrosoftWindowsDriverSearching
push 0x80000002
mov dword [esp + 0x38], ebp
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x4133c7
mov esi, dword [esp + 0x14]
lea eax, [esp + 0x18]
push eax
push 0x2001f
push ebp
push str.SOFTWAREPoliciesMicrosoftWindowsDriverSearching
push 0x80000002
mov dword [esp + 0x2c], ebp
call ebx
cmp eax, ebp
jne 0x4133fb
xor eax, eax
cmp esi, ebp
je 0x4133f3
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [esp + 0x18]
cmp eax, ebp
je 0x413410
cmp esi, ebp
je 0x413406
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
mov edi, 1
mov ebx, dword [esp + 0x2c]
lea ecx, [esp + 0x1c]
push ecx
push ebx
lea edx, [esp + 0x28]
push edx
push ebp
push str.SearchOrderConfig
push esi
mov dword [esp + 0x34], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, ebp
jne 0x413469
cmp dword [esp + 0x20], 4
jne 0x413498
cmp dword [ebx], ebp
je 0x413462
push 4
lea eax, [esp + 0x24]
push eax
push 4
push ebp
push str.SearchOrderConfig
push esi
mov dword [esp + 0x38], ebp
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, 2
jmp 0x413498
cmp eax, 2
jne 0x413498
push 4
lea ecx, [esp + 0x24]
push ecx
push 4
push ebp
push str.SearchOrderConfig
push esi
mov dword [ebx], 0xa
mov dword [esp + 0x38], ebp
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp edi, 1
je 0x413498
mov edi, 3
cmp esi, ebp
je 0x4134a3
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
Function at 0x4134b0
Capabilities:
Delete registry value
Set registry value

Disassembly:
sub esp, 0x10
push ebx
xor ebx, ebx
push esi
cmp edi, ebx
je 0x413584
lea eax, [esp + 8]
push eax
push 0x2001f
push ebx
push str.SOFTWAREPoliciesMicrosoftWindowsDriverSearching
push 0x80000002
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x1c], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x413584
mov esi, dword [esp + 8]
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], ebx
cmp edi, 0xa
jne 0x41355f
push str.SearchOrderConfig
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
cmp dword [esp + 0x1c], 1
jne 0x413579
lea ecx, [esp + 0x10]
call fcn.004132e0
mov ecx, str.SOFTWAREPoliciesMicrosoftWindows
lea esi, [esp + 8]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], ebx
call fcn.00413310
call fcn.00413280
mov ecx, esi
call fcn.004132e0
mov eax, dword [esp + 8]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, ebx
je 0x41354e
push eax
call esi
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x413584
push eax
call esi
pop esi
pop ebx
add esp, 0x10
ret
push 4
lea ecx, [esp + 0xc]
push ecx
push 4
push ebx
push str.SearchOrderConfig
push esi
mov dword [esp + 0x20], edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp esi, ebx
je 0x413584
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
add esp, 0x10
ret
Function at 0x413590
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x44b111
mov eax, dword fs:[0]
push eax
sub esp, 0x138
mov eax, dword [0x45dd50]
xor eax, esp
mov dword [esp + 0x130], eax
push ebx
push esi
push edi
mov eax, dword [0x45dd50]
xor eax, esp
push eax
lea eax, [esp + 0x148]
mov dword fs:[0], eax
mov esi, dword [ebp + 0xc]
xor ebx, ebx
cmp dword [ebp + 8], 2
jge 0x4135e2
xor eax, eax
jmp 0x413764
push ebx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call fcn.00422678
test eax, eax
jne 0x413613
push 0x452a28
call fcn.00430ac0
add esp, 4
mov ebx, 1
jmp 0x413762
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], 0xa
call fcn.0041cea0
test al, al
je 0x413639
lea eax, [esp + 0x14]
push eax
call fcn.00413360
add esp, 4
mov dword [esp + 0x10], eax
xor ecx, ecx
push 2
mov word [esp + 0x24], cx
push 0x452a48
lea ecx, [esp + 0x24]
mov dword [esp + 0x3c], 7
mov dword [esp + 0x38], ebx
call fcn.00402450
mov dword [esp + 0x150], ebx
mov edx, dword [esi + 4]
push edx
lea ecx, [esp + 0x3c]
call fcn.004016b0
mov ecx, eax
mov byte [esp + 0x150], 1
mov eax, dword [esp + 0x20]
mov esi, 8
cmp dword [esp + 0x34], esi
jae 0x41368d
lea eax, [esp + 0x20]
mov edi, dword [esp + 0x30]
push eax
mov eax, dword [ecx + 0x14]
call fcn.0040ec30
test eax, eax
sete al
mov byte [esp + 0x18], al
mov ecx, dword [esp + 0x18]
push ecx
lea edx, [esp + 0x58]
push edx
call fcn.0041ba30
mov dword [esp + 0x54], vtable.COEMCopyInstaller.0
cmp dword [esp + 0x50], esi
jb 0x4136cd
mov eax, dword [esp + 0x3c]
push eax
call fcn.0042123b
add esp, 4
mov edi, 7
xor ecx, ecx
mov dword [esp + 0x50], edi
mov dword [esp + 0x4c], ebx
mov word [esp + 0x3c], cx
mov byte [esp + 0x150], 4
cmp dword [esp + 0x34], esi
jb 0x4136fc
mov edx, dword [esp + 0x20]
push edx
call fcn.0042123b
add esp, 4
xor eax, eax
mov word [esp + 0x20], ax
mov eax, dword [esp + 0x58]
cmp dword [eax], 0x1af5
mov dword [esp + 0x34], edi
mov dword [esp + 0x30], ebx
jne 0x413738
lea ecx, [eax + 4]
lea edx, [esp + 0x54]
mov dword [ecx + 0x84], edx
mov dword [ecx + 0x80], 0x413270
mov eax, dword [ecx]
mov edx, dword [eax + 0x14c]
call edx
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x41374d
mov edi, dword [esp + 0x14]
push eax
call fcn.004134b0
add esp, 4
lea eax, [esp + 0x54]
push eax
mov dword [esp + 0x154], 0xffffffff
call fcn.004137a0
mov eax, ebx
mov ecx, dword [esp + 0x148]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x130]
xor ecx, esp
call fcn.0042eb3c
mov esp, ebp
pop ebp
ret
Function at 0x414410
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x44b098
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x45dd50]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
push 5
xor eax, eax
push 0x452ae0
lea ecx, [esp + 0xc]
mov dword [esp + 0x24], 7
mov dword [esp + 0x20], 0
mov word [esp + 0x10], ax
call fcn.00402450
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x34]
push 0
push ecx
lea ecx, [esp + 0xc]
mov dword [esp + 0x30], 0
call fcn.004140b0
add esp, 8
cmp dword [esp + 0x1c], 8
jb 0x41448d
mov edx, dword [esp + 8]
push edx
call fcn.0042123b
add esp, 4
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
add esp, 0x28
ret

Function at 0x4144a0
Capabilities:
Delete file
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x449e48
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x45dd50]
xor eax, esp
mov dword [esp + 0x54], eax
push ebx
push esi
push edi
mov eax, dword [0x45dd50]
xor eax, esp
push eax
lea eax, [esp + 0x68]
mov dword fs:[0], eax
mov edi, ecx
mov ebx, 8
cmp dword [edi + 0x18], ebx
jb 0x4144e2
mov edx, dword [edi + 4]
jmp 0x4144e5
lea edx, [edi + 4]
xor eax, eax
mov word [esp + 0x30], ax
mov eax, edx
mov dword [esp + 0x44], 7
mov dword [esp + 0x40], 0
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x414501
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [esp + 0x34]
call fcn.00402450
mov eax, dword [esp + 0x30]
cmp dword [esp + 0x44], ebx
jae 0x414529
lea eax, [esp + 0x30]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, dword [esp + 0x30]
cmp dword [esp + 0x44], ebx
jae 0x414543
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [esp + 0x44], ebx
jb 0x41455d
mov ecx, dword [esp + 0x30]
push ecx
call fcn.0042123b
add esp, 4
push edi
lea esi, [esp + 0x4c]
call fcn.0041f420
add esp, 4
push 4
mov edi, 4
mov ebx, esi
mov dword [esp + 0x74], 0
call fcn.00415c50
push eax
mov ecx, esi
call fcn.00402600
push edi
push str..pnf
call fcn.00402dd0
mov edx, dword [esp + 0x4c]
mov edi, 8
cmp dword [esp + 0x60], edi
jae 0x4145a6
lea edx, [esp + 0x4c]
xor eax, eax
mov word [esp + 0x14], ax
mov eax, edx
mov dword [esp + 0x28], 7
mov dword [esp + 0x24], 0
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4145c2
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [esp + 0x18]
call fcn.00402450
mov eax, dword [esp + 0x14]
cmp dword [esp + 0x28], edi
jae 0x4145ea
lea eax, [esp + 0x14]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, dword [esp + 0x14]
cmp dword [esp + 0x28], edi
jae 0x414604
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [esp + 0x28], edi
jb 0x41461e
mov ecx, dword [esp + 0x14]
push ecx
call fcn.0042123b
add esp, 4
cmp dword [esp + 0x60], edi
jb 0x414631
mov edx, dword [esp + 0x4c]
push edx
call fcn.0042123b
add esp, 4
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x54]
xor ecx, esp
call fcn.0042eb3c
add esp, 0x64
ret
Function at 0x414650
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x449e12
mov eax, dword fs:[0]
push eax
sub esp, 0x80c
mov eax, dword [0x45dd50]
xor eax, esp
mov dword [esp + 0x808], eax
push esi
push edi
mov eax, dword [0x45dd50]
xor eax, esp
push eax
lea eax, [esp + 0x818]
mov dword fs:[0], eax
xor edi, edi
push 0x800
lea eax, [esp + 0x18]
mov dword [esp + 0x824], edi
mov esi, ecx
push eax
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], edi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
xor ecx, ecx
lea eax, [esp + 0x14]
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], edi
mov word [esi + 4], cx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x4146c3
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x18]
push edx
mov ecx, esi
call fcn.00402450
push 5
mov dword [esp + 0x824], edi
push str.inf_
mov dword [esp + 0x14], 1
call fcn.00402dd0
mov eax, esi
mov ecx, dword [esp + 0x818]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x808]
xor ecx, esp
call fcn.0042eb3c
add esp, 0x818
ret