joyce8/EMBER2024-capa huggingface dataset:
Function at 0x59cf90
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x208
lea eax, [esp]
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
push ebp
push esi
push edi
xor edi, edi
push 0x104
push eax
push edi
push SysStringLen
call ebx
mov esi, dword [esp + 0x21c]
mov ebp, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x59cffb
mov ecx, dword [esi + 8]
push 0
push ecx
call ebp
test eax, eax
je 0x59d035
lea edx, [esp + 0x10]
push esi
push edx
push SysStringLen
call fcn.0059ce00
add esp, 0xc
lea eax, [esp + 0x10]
inc edi
push 0x104
push eax
push edi
push SysStringLen
call ebx
test eax, eax
je 0x59cfc5
mov edi, 0x5b78b0
mov ecx, dword [esi + 8]
push 0
push ecx
call ebp
test eax, eax
je 0x59d035
mov edx, dword [edi]
push esi
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.0059ce00
add edi, 4
add esp, 0xc
cmp edi, 0x5b78c0
jb 0x59d000
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x208
ret
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x208
ret

Function at 0x59d070
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x250
push esi
push edi
mov edi, dword [esp + 0x25c]
push 0x5c
push edi
call fcn.005a3082
mov esi, eax
add esp, 8
test esi, esi
je 0x59d107
lea eax, [esp + 8]
mov word [esi], 0
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x59d102
push ebx
lea ebx, [esi + 2]
push ebp
lea ecx, [esp + 0x3c]
push ebx
push ecx
call fcn.005a2946
add esp, 8
test eax, eax
je 0x59d0e3
mov ebp, dword [sym.imp.KERNEL32.dll_FindNextFileW]
lea edx, [esp + 0x10]
push edx
push edi
call ebp
test eax, eax
je 0x59d0e8
lea eax, [esp + 0x3c]
push ebx
push eax
call fcn.005a2946
add esp, 8
test eax, eax
jne 0x59d0c5
mov word [esi], 0x5c
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp word [esi], 0
pop ebp
pop ebx
je 0x59d102
pop edi
mov al, 1
pop esi
add esp, 0x250
ret
mov word [esi], 0x5c
pop edi
xor al, al
pop esi
add esp, 0x250
ret
Function at 0x59df10
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x5b29fb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov esi, dword [esp + 0x2c]
xor ebp, ebp
mov dword [esp + 0x10], eax
xor ebx, ebx
mov eax, 1
mov ecx, ebx
shl eax, cl
mov ecx, dword [esp + 0x10]
test ecx, eax
je 0x59e002
lea edx, [ebx + 0x41]
lea eax, [esp + 0x14]
push edx
push str._c:_
push eax
call fcn.005a1dff
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x59e002
lea edx, [esp + 0x14]
push edx
push str.Mounting__s_n
call fcn.005996e0
lea eax, [esp + 0x1c]
lea edi, [esi + 0x1048]
push eax
push edi
mov word [esp + 0x28], bp
call fcn.005a220b
push 0x10
call fcn.005a21d3
add esp, 0x14
mov dword [esp + 0x2c], eax
cmp eax, ebp
mov dword [esp + 0x24], ebp
je 0x59dfc5
mov cx, word [edi]
push ecx
mov ecx, eax
call fcn.0058e1c0
jmp 0x59dfc7
xor eax, eax
push esi
mov dword [esp + 0x28], 0xffffffff
mov dword [esi], eax
call fcn.0059db80
mov edi, dword [esi]
add esp, 4
cmp edi, ebp
je 0x59dff0
mov ecx, edi
call fcn.0058e2c0
push edi
call fcn.005a21c8
add esp, 4
mov edx, dword [esi + 0x1024]
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x59e021
inc ebx
cmp ebx, 0x20
jb 0x59df3e
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0x59f250
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b3808
push 0x5a3288
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x28], ebx
xor esi, esi
mov dword [ebp - 0x20], esi
mov byte [ebp - 0x24], bl
mov dword [ebp - 4], ebx
mov byte [ebp - 0x34], bl
mov byte [ebp - 0x33], bl
mov byte [ebp - 0x32], bl
mov byte [ebp - 0x31], bl
mov byte [ebp - 0x30], bl
mov byte [ebp - 0x2f], 5
lea eax, [ebp - 0x1c]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x12
push 1
lea ecx, [ebp - 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x59f329
lea edx, [ebp - 0x28]
push edx
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x59f329
mov dword [ebp - 0x2c], ebx
lea eax, [ebp - 0x2c]
push eax
push ebx
push ebx
push 1
mov ecx, dword [ebp - 0x28]
push ecx
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
call edi
mov edx, dword [ebp - 0x2c]
push edx
call fcn.005a21d3
add esp, 4
mov esi, eax
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x20], esi
cmp esi, ebx
je 0x59f329
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
push esi
push 1
mov edx, dword [ebp - 0x28]
push edx
call edi
test eax, eax
je 0x59f329
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [esi]
push ecx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 0x24], al
jmp 0x59f32c
mov al, byte [ebp - 0x24]
mov dword [ebp - 4], 0xffffffff
call fcn.0059f351
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x59fd20
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov edx, dword [esp + 8]
push esi
mov esi, dword [esp + 0x10]
lea eax, [esp + 4]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
mov dword [esp + 0x1c], 8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x59fd58
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esi], ecx
mov dword [esi + 4], edx
pop esi
pop ecx
ret 0x10

Function at 0x59fd60
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
lea eax, [esp + 0x10]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x59fd94
mov eax, dword [esp + 0x14]
test eax, eax
je 0x59fd94
push eax
push esi
call fcn.005a220b
add esp, 8
pop esi
ret 0x10

Function at 0x59fda0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x24
lea eax, [esp + 0x28]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x59fe22
push ebx
mov ebx, dword [esp + 0x30]
push esi
xor esi, esi
test ebx, ebx
jbe 0x59fe15
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov edi, dword [esp + 0x40]
push esi
lea ecx, [esp + 0x18]
push 0x5b8320
push ecx
mov dword [esp + 0x1c], 4
call fcn.005a1dff
mov ecx, dword [esp + 0x44]
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
push edx
push edi
push 0
push 0
push eax
push ecx
call ebp
inc esi
add edi, 4
cmp esi, ebx
jb 0x59fdda
pop edi
pop ebp
mov edx, dword [esp + 0x30]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
add esp, 0x24
ret 0xc

Function at 0x59fe30
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x28
lea eax, [esp + 0x2c]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x59fec2
push ebp
mov ebp, dword [esp + 0x34]
push esi
xor esi, esi
test ebp, ebp
jbe 0x59feb5
push ebx
mov ebx, dword [esp + 0x40]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push esi
lea ecx, [esp + 0x1c]
push 0x5b8320
push ecx
mov dword [esp + 0x1c], 4
call fcn.005a1dff
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x40]
push eax
push 0
push 0
push ecx
push edx
call edi
test eax, eax
jne 0x59feab
mov ax, word [esp + 0x14]
mov word [ebx], ax
inc esi
add ebx, 2
cmp esi, ebp
jb 0x59fe6a
pop edi
pop ebx
mov ecx, dword [esp + 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebp
add esp, 0x28
ret 0xc
Function at 0x5a0000
Capabilities:
Get file version info

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0x5a0131
push esi
call fcn.005a3145
add esp, 4
mov edi, eax
push edi
push esi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push ebx
call fcn.00592080
mov ebp, eax
add esp, 0x1c
cmp ebp, 0xffffffff
je 0x5a0131
push 0
push ebp
call fcn.005923a0
push 0
push 0
push 0
push 4
push 0
push ebp
mov ebx, eax
call fcn.00592260
add esp, 0x20
mov dword [esp + 0x18], eax
test eax, eax
jne 0x5a008b
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 0
push 0
push 0
push 6
push eax
call fcn.005922f0
mov esi, eax
add esp, 0x14
test esi, esi
je 0x5a0121
push 0x5b8918
push edi
call fcn.005a13f0
push eax
push ebx
push esi
call fcn.0059ff60
push 0x5b88f8
push edi
call fcn.005a13f0
push eax
push ebx
push esi
call fcn.0059ff60
push 0x5b88d8
push edi
call fcn.005a13f0
push eax
push ebx
push esi
call fcn.0059ff60
push 0x5b88c0
push edi
call fcn.005a13f0
add esp, 0x44
push eax
push ebx
push esi
call fcn.0059ff60
push 0x5b88a0
push edi
call fcn.005a13f0
push eax
push ebx
push esi
call fcn.0059ff60
push 0x5b8888
push edi
call fcn.005a13f0
push eax
push ebx
push esi
call fcn.0059ff60
add esp, 0x34
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
push ebp
call esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x5a11b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.005a1140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.005a1140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.005a1140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.005a1140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0x5a1bfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x5a1c50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x5b387c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x5a1c43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x5a1c52
xor eax, eax
pop esi
leave
ret 4
Function at 0x10188e0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x11000]
push edi
or ebp, 0xffffffff
jmp 0x1018902
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x1018909
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x10188f8
mov eax, 1
add ebx, ebx
jne 0x101891b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x1018910
jne 0x101892c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x1018910
xor ecx, ecx
sub eax, 3
jb 0x1018940
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x10189b2
mov ebp, eax
add ebx, ebx
jne 0x101894b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x1018958
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x101897c
inc ecx
add ebx, ebx
jne 0x1018968
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x101895d
jne 0x1018979
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x101895d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x101899c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x101898d
jmp 0x10188fe
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x101899c
add edi, ecx
jmp 0x10188fe
pop esi
mov edi, esi
mov ecx, 0x56c
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x10189ba
cmp byte [edi], 2
jne 0x10189ba
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x10189bf
lea edi, [esi + 0x15000]
mov eax, dword [edi]
or eax, eax
je 0x1018a2e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x18780]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x18820]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x10189ec
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x18824]
or eax, eax
je 0x1018a28
mov dword [ebx], eax
add ebx, 4
jmp 0x1018a09
call dword [esi + 0x18834]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x1018a5f
cmp al, 0xef
ja 0x1018a52
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x1018a34
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x1018a41
mov ebp, dword [esi + 0x18828]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1ff]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x1018a93
sub esp, 0xffffff80
jmp 0x1008e21
Function at 0x401000
Capabilities:
Create thread
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x4c
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov esi, dword [ebp + 0x14]
mov dword [ebp - 0x1c], eax
cmp ebx, 2
je 0x40112f
cmp ebx, 0x111
je 0x401033
cmp ebx, 1
je 0x40109c
jmp 0x401113
cmp esi, dword [0x5b26008]
jne 0x40109c
mov eax, edi
shr eax, 0x10
jne 0x40109c
mov dword [esp], esi
and dword [esp + 4], 0
call dword [sym.imp.USER32.dll_EnableWindow]
push ecx
push ecx
mov dword [esp + 0xc], str.Installing
mov dword [esp + 4], 0xc
mov dword [esp], esi
and dword [esp + 8], 0
call dword [sym.imp.USER32.dll_SendMessageW]
sub esp, 0x10
mov dword [esp + 8], sym._InstallationProcess
and dword [esp + 0x14], 0
and dword [esp + 0x10], 0
and dword [esp + 0xc], 0
and dword [esp + 4], 0
and dword [esp], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
sub esp, 0x18
and dword [esp + 0x2c], 0
mov eax, dword [section..bss]
and dword [esp + 0x24], 0
mov dword [esp + 0x28], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp + 0x1c], 0x41
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], 0x78
mov dword [esp + 0x14], 5
mov dword [esp + 0x10], 0xc8
mov dword [esp + 0xc], 0x50000001
mov dword [esp + 8], str.Not_started
mov dword [esp + 4], str.STATIC
and dword [esp], 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
sub esp, 0x30
mov dword [0x5b26004], eax
mov dword [esp + 4], 1
mov dword [esp], eax
call dword [sym.imp.USER32.dll_ShowWindow]
push edx
push edx
mov eax, dword [ebp - 0x1c]
mov dword [ebp + 0x14], esi
mov dword [ebp + 0x10], edi
mov dword [ebp + 0xc], ebx
mov dword [ebp + 8], eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
jmp dword [sym.imp.USER32.dll_DefWindowProcW]
and dword [esp], 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
push eax
lea esp, [ebp - 0xc]
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret 0x10
Function at 0x40180c
Capabilities:
Create process on windows
Delete file
Get common file path
Write and execute a file
Write file on windows

Disassembly:
push ebp
xor eax, eax
mov ebp, esp
push edi
push esi
push ebx
lea ebx, [ebp - 0x198]
mov edi, ebx
sub esp, 0x21c
push 0x60
pop ecx
rep stosd dword es:[edi], eax
mov dword [esp + 4], ebx
mov dword [esp], 0x180
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push edx
push edx
test eax, eax
jne 0x401847
mov dword [esp], str.Failed_to_GetTempPathA___n
jmp 0x40189a
mov dword [esp + 4], str.patcher.exe
mov dword [esp], ebx
call sym._strcat
mov dword [esp + 0x14], pe_nt_image_headers32
mov dword [esp + 0x10], 2
mov dword [esp + 8], 1
mov dword [esp + 4], 0xc0000000
mov dword [esp], ebx
and dword [esp + 0x18], 0
and dword [esp + 0xc], 0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
xchg esi, eax
sub esp, 0x1c
cmp esi, 0xffffffff
jne 0x4018a6
mov dword [esp], str.Failed_to_create_file_for_extracting_WUR_patcher_n
call sym._ConsolePrint
xor eax, eax
jmp 0x4019dd
mov dword [esp + 4], str.Extracting_WUR_patcher...
mov eax, dword [0x5b26004]
mov dword [esp], eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
push eax
push eax
lea eax, [ebp - 0x1f0]
mov dword [esp + 0xc], eax
mov eax, 0x593a380
sub eax, 0x47a2380
mov dword [esp + 4], 0x47a2380
mov dword [esp + 8], eax
mov dword [esp], esi
and dword [esp + 0x10], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
sub esp, 0x14
test eax, eax
jne 0x4018fc
mov dword [esp], str.Failed_to_write_to_file_for_extracting_WUR_patcher_n
jmp 0x40189a
mov dword [esp], esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
xor eax, eax
lea edx, [ebp - 0x1dc]
push edi
lea edi, [ebp - 0x1d8]
push 0x10
pop ecx
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x1ec]
mov dword [ebp - 0x1dc], 0x44
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], edx
mov dword [esp + 0x14], 0x20
mov dword [esp + 4], 0x5b245e6
mov dword [esp], ebx
and dword [esp + 0x1c], 0
and dword [esp + 0x18], 0
and dword [esp + 0x10], 0
and dword [esp + 0xc], 0
and dword [esp + 8], 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
sub esp, 0x28
test eax, eax
jne 0x401978
mov dword [esp], str.Could_not_start_WU_patcher_n
jmp 0x40189a
or dword [esp + 4], 0xffffffff
mov eax, dword [ebp - 0x1ec]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push eax
push eax
mov eax, dword [ebp - 0x1ec]
mov dword [esp], eax
call esi
push edx
mov eax, dword [ebp - 0x1e8]
mov dword [esp], eax
call esi
push ecx
mov dword [esp], str.WUR_patcher_has_exited__deleting_...
call sym._ConsolePrint
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push ebx
test eax, eax
je 0x4019d1
mov dword [esp], str.Success_n
call sym._ConsolePrint
push 1
pop eax
jmp 0x4019dd
mov dword [esp], str.Fail__n
jmp 0x40189a
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x4019e5
Capabilities:
Check os version
Query or enumerate registry value
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0xc4
mov eax, dword [0x5b26004]
mov ebx, dword [sym.imp.USER32.dll_SetWindowTextW]
mov dword [ebp - 0x9c], 0x94
mov dword [ebp - 0xa0], 4
mov dword [esp + 4], str.Running_Windows_Installer_3.0
mov dword [esp], eax
call ebx
push eax
push eax
call sym._WindowsInstaller3_0
mov eax, dword [0x5b26004]
mov dword [esp + 4], str.Checking_for_.NET_Framework_2.0
mov dword [esp], eax
call ebx
lea eax, [ebp - 0x9c]
push edx
push edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
lea eax, [ebp - 0xa8]
push ecx
mov dword [esp + 8], eax
mov dword [esp + 4], str.SoftwareMicrosoftNET_Framework_SetupNDP_v2.0.50727
mov dword [esp], 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
sub esp, 0xc
test eax, eax
jne 0x401abf
lea eax, [ebp - 0xa0]
mov dword [esp + 4], str.Install
mov dword [esp + 0x14], eax
lea eax, [ebp - 0xa4]
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0xa8]
and dword [esp + 0xc], 0
mov dword [esp], eax
and dword [esp + 8], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
sub esp, 0x18
test eax, eax
jne 0x401abf
cmp dword [ebp - 0xa4], 1
jne 0x401abf
mov dword [esp], str..NET_Framework_2.0_already_installed._n
call sym._ConsolePrint
jmp 0x401af7
cmp dword [ebp - 0x98], 5
jne 0x401ad8
cmp dword [ebp - 0x94], 2
jne 0x401ad8
call sym._NetFramework2_0_x64_Installation
jmp 0x401add
call sym._NetFramework2_0_x32_Installation
test eax, eax
jne 0x401af7
mov dword [esp], str.Failed_to_run_.NET_installer__n
call sym._ConsolePrint
mov dword [esp + 4], str..NET_Installation_failed__contact_support
jmp 0x401b44
mov eax, dword [ebp - 0xa8]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
mov dword [esp], str.Running_patcher..._n
call sym._ConsolePrint
mov eax, dword [0x5b26004]
mov dword [esp + 4], str.Running_WUR_patcher
mov dword [esp], eax
call ebx
push eax
push eax
call sym._Patcher_Run
test eax, eax
jne 0x401b6c
mov dword [esp], str.Failed_to_run_patcher__n
call sym._ConsolePrint
mov dword [esp + 4], str.WUR_patcher_failed__contact_support
mov eax, dword [0x5b26004]
mov dword [esp], eax
call ebx
push eax
push eax
mov eax, dword [0x5b26008]
mov dword [esp + 4], str.Failed
mov dword [esp], eax
call ebx
mov ebx, dword [ebp - 4]
push eax
push eax
push 1
pop eax
leave
ret
mov dword [esp], 0x5b2485e
call sym._ConsolePrint
mov eax, dword [0x5b26004]
mov dword [esp + 4], str.Finished__The_program_will_close.
mov dword [esp], eax
call ebx
push eax
push eax
mov eax, dword [0x5b26008]
mov dword [esp + 4], str.Finished
mov dword [esp], eax
call ebx
push edx
push edx
mov dword [esp], 0x9c4
call dword [sym.imp.KERNEL32.dll_Sleep]
push ecx
and dword [esp], 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]