joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40b040
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0xc]
test eax, eax
je 0x40b05f
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov dword [esi + 0xc], 0
mov eax, dword [esi + 8]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x40b076
push eax
call edi
mov dword [esi + 8], 0
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
je 0x40b088
push eax
call edi
mov dword [esi + 4], 0xffffffff
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 4], eax
cmp eax, 0xffffffff
je 0x40b156
push 0
push 0
push 0
push 2
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [esi + 8], eax
test eax, eax
je 0x40b11e
push 0
push 0
push 0
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [esi + 0xc], eax
test eax, eax
je 0x40b119
xor ecx, ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ecx
push 0x1c
lea ecx, [ebp - 0x1c]
push ecx
push eax
mov dword [ebp - 0x1c], 0
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40b119
mov eax, dword [ebp - 0x10]
mov dword [esi + 0x10], eax
pop edi
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret 4
push dword [esi + 8]
call edi
mov eax, dword [esi + 0xc]
test eax, eax
je 0x40b133
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov dword [esi + 0xc], 0
mov eax, dword [esi + 8]
test eax, eax
je 0x40b144
push eax
call edi
mov dword [esi + 8], 0
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
je 0x40b156
push eax
call edi
mov dword [esi + 4], 0xffffffff
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x40b160
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push edi
mov edi, ecx
test eax, eax
jne 0x40b174
xor al, al
pop edi
pop ebp
ret 4
mov ecx, 0x5a4d
push esi
cmp word [eax], cx
jne 0x40b1d7
mov ecx, dword [eax + 0x3c]
cmp dword [ecx + eax], 0x4550
jne 0x40b1d7
mov ecx, dword [ecx + eax + 0x98]
test ecx, ecx
je 0x40b1d7
lea esi, [ecx + eax]
test esi, esi
je 0x40b1d7
lea eax, [esi + 8]
test eax, eax
je 0x40b1d7
cmp byte [eax], 0x30
lea edx, [eax + 1]
jne 0x40b1d7
mov al, byte [edx]
cmp al, 0x82
jne 0x40b1d7
movzx ecx, byte [edx + 1]
movzx eax, byte [edx + 2]
shl ecx, 8
add eax, 0x13
add eax, ecx
and eax, 0xffffff8
je 0x40b1d7
mov dword [edi + 0x18], esi
mov dword [edi + 0x14], eax
pop esi
mov al, 1
pop edi
pop ebp
ret 4
pop esi
xor al, al
pop edi
pop ebp
ret 4
Function at 0x40d990
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x486850]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
push 0x10
lea eax, [ebp - 0x24]
push eax
push 0x59
push dword [edi]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x40da6f
cmp word [ebp - 0x24], 0
jne 0x40d9cb
xor ecx, ecx
jmp 0x40d9e0
lea ecx, [ebp - 0x24]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40d9d1
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x24]
push eax
mov ecx, esi
call fcn.00402900
push 0x10
lea eax, [ebp - 0x24]
push eax
push 0x5a
push dword [edi]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x40da6f
push 1
push str._0_:
mov ecx, esi
call fcn.00401b20
cmp word [ebp - 0x24], 0
jne 0x40da37
xor ecx, ecx
push ecx
lea eax, [ebp - 0x24]
push eax
mov ecx, esi
call fcn.00401b20
pop edi
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043d3b4
mov esp, ebp
pop ebp
ret 8
lea ecx, [ebp - 0x24]
lea edx, [ecx + 2]
lea ecx, [ecx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40da40
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x24]
push eax
mov ecx, esi
call fcn.00401b20
pop edi
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043d3b4
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
xor al, al
pop esi
call fcn.0043d3b4
mov esp, ebp
pop ebp
ret 8
Function at 0x40e380
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
xor bl, bl
cmp dword [edx + 0x14], 8
jb 0x40e391
mov edx, dword [edx]
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push edx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40e43b
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0x14], 8
jb 0x40e3ba
mov eax, dword [esi]
jmp 0x40e3bc
mov eax, esi
lea ecx, [ebp - 8]
push ecx
push 0
lea ecx, [ebp - 0xc]
push ecx
push 0
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40e431
cmp dword [ebp - 0xc], 1
jne 0x40e431
mov eax, dword [ebp - 8]
xor ecx, ecx
mov edx, 2
mul edx
seto cl
push edi
neg ecx
or ecx, eax
push ecx
call fcn.0043c839
add esp, 4
cmp dword [esi + 0x14], 8
mov edi, eax
jb 0x40e403
mov esi, dword [esi]
lea eax, [ebp - 8]
push eax
push edi
lea eax, [ebp - 0xc]
push eax
push 0
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40e427
mov ecx, dword [ebp + 0xc]
push edi
call fcn.004019b0
mov bl, 1
push edi
call fcn.0043d412
add esp, 4
pop edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x417450
Capabilities:
Delete file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [ebp - 4]
push edi
push eax
lea eax, [ebp - 8]
mov edi, edx
push eax
mov edx, ecx
call fcn.004173d0
add esp, 8
test eax, eax
js 0x4174d6
push esi
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4174b5
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 4]
push dword [ebp - 8]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
test eax, eax
jne 0x4174cd
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x4174d5
movzx eax, ax
pop esi
or eax, 0x80070000
pop edi
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop esi
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x417650
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x486850]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push 0x114
lea eax, [ebp - 0x118]
push 0
push eax
xor bl, bl
call fcn.00444380
add esp, 0xc
lea eax, [ebp - 0x118]
push eax
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4176b0
cmp dword [ebp - 0x114], 6
pop ebx
setae al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043d3b4
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, bl
xor ecx, ebp
pop ebx
call fcn.0043d3b4
mov esp, ebp
pop ebp
ret

Function at 0x417730
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x486850]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x114
lea eax, [ebp - 0x118]
push 0
push eax
mov esi, ecx
call fcn.00444380
add esp, 0xc
lea eax, [ebp - 0x118]
push eax
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4177c4
cmp dword [ebp - 0x114], 6
setae al
test al, al
je 0x4177c4
mov ecx, esi
call fcn.004177f0
test al, al
je 0x4177b0
mov ecx, esi
call fcn.004176d0
cmp eax, 1
jne 0x4177d5
mov eax, 2
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043d3b4
mov esp, ebp
pop ebp
ret
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043d3b4
mov esp, ebp
pop ebp
ret
mov ecx, esi
call fcn.004177f0
xor ecx, ecx
test al, al
setne cl
lea eax, [ecx + 1]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0043d3b4
mov esp, ebp
pop ebp
ret
Function at 0x4177f0
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x486850]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x14]
push eax
push 8
push ecx
mov byte [ebp - 0xd], 0
mov dword [ebp - 0x14], 0
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x41782c
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043d3b4
mov esp, ebp
pop ebp
ret
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea eax, [ebp - 0x18]
push eax
push 0
push 0
push 2
push dword [ebp - 0x14]
mov dword [ebp - 0x18], 0
call esi
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x417913
push ebx
push eax
call fcn.0043c839
add esp, 4
mov ebx, eax
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x18]
push ebx
push 2
push dword [ebp - 0x14]
call esi
test eax, eax
je 0x417909
lea eax, [ebp - 0x1c]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
push eax
mov dword [ebp - 0xc], 0
mov word [ebp - 8], 0x500
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x417909
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
je 0x417909
mov ecx, dword [ebx]
xor eax, eax
cmp eax, ecx
sbb al, al
not al
and byte [ebp - 0xd], al
push edi
xor edi, edi
test ecx, ecx
je 0x4178ff
lea esi, [ebx + 4]
nop
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
je 0x4178f1
push dword [ebp - 0x1c]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x4178f1
test byte [esi + 4], 4
jne 0x4178fb
inc edi
add esi, 8
cmp edi, dword [ebx]
jb 0x4178d0
jmp 0x4178ff
mov byte [ebp - 0xd], 1
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
pop edi
push ebx
call fcn.0043d412
add esp, 4
pop ebx
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov al, byte [ebp - 0xd]
xor ecx, ebp
pop esi
call fcn.0043d3b4
mov esp, ebp
pop ebp
ret
Function at 0x417bc0
Capabilities:
Check for time delay via gettickcount
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x486850]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
push 0xf003f
xor ebx, ebx
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
je 0x417d09
push esi
push 0x24
push str.TuneUp.UtilitiesSvc
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
je 0x417cea
mov dword [ebp - 0x48], 0x24
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x44]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x417cb9
cmp dword [ebp - 0x40], 1
jne 0x417c39
mov ebx, 1
jmp 0x417cb9
lea eax, [ebp - 0x48]
push eax
push 0x24
lea eax, [ebp - 0x28]
push eax
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x417cb9
mov eax, dword [ebp - 0x24]
cmp eax, 1
je 0x417cb1
cmp eax, 3
jne 0x417cb1
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov eax, dword [ebp - 0x10]
cmp eax, 0x1f4
jae 0x417c72
mov eax, 0x1f4
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x48]
push eax
push 0x24
lea eax, [ebp - 0x28]
push eax
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x417cae
mov eax, dword [ebp - 0x24]
cmp eax, 1
je 0x417cb1
call ebx
sub eax, dword [ebp - 0x4c]
cmp eax, 0x7530
ja 0x417cae
mov eax, dword [ebp - 0x24]
cmp eax, 3
je 0x417c63
jmp 0x417cb1
mov eax, dword [ebp - 0x24]
xor ebx, ebx
cmp eax, 1
sete bl
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x426
jne 0x417ccb
mov ebx, 1
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
pop esi
pop edi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043d3b4
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x424
je 0x417cfc
cmp eax, 0x7b
jne 0x417d01
mov ebx, 1
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop esi
mov ecx, dword [ebp - 4]
pop edi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.0043d3b4
mov esp, ebp
pop ebp
ret
Function at 0x417ff0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45aee8
mov eax, dword fs:[0]
push eax
sub esp, 0x8c
mov eax, dword [0x486850]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
mov dword [ebp - 4], eax
xor edi, edi
cmp dword [0x4893d8], 0xa
jb 0x4181c2
cmp dword [0x487b34], 8
mov edx, dword [0x487b20]
jae 0x418058
mov edx, 0x487b20
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], edi
mov word [ebp - 0x28], ax
cmp word [edx], ax
jne 0x418071
xor ecx, ecx
jmp 0x418085
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x418076
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.00402900
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.00417d20
test eax, eax
sete bl
mov byte [ebp - 4], 0
cmp dword [ebp - 0x14], 8
jb 0x4180b8
push dword [ebp - 0x28]
call fcn.0043d3af
add esp, 4
test bl, bl
je 0x4181af
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x58]
call fcn.0042beb0
push str.TUInstallHelper.exe
mov edx, eax
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.0040a580
add esp, 4
cmp dword [ebp - 0x44], 8
jb 0x4180f2
push dword [ebp - 0x58]
call fcn.0043d3af
add esp, 4
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x98], 0x3c
mov dword [ebp - 0x94], 0x140
mov dword [ebp - 0x90], 0
mov dword [ebp - 0x8c], str.open
jae 0x418126
lea eax, [ebp - 0x28]
mov dword [ebp - 0x88], eax
lea eax, [ebp - 0x98]
push eax
mov dword [ebp - 0x84], str.__uninstall_sandman
mov dword [ebp - 0x80], 0
mov dword [ebp - 0x7c], 1
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x41819e
mov ebx, dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [ebp - 0x5c], 0
lea eax, [ebp - 0x5c]
push eax
push dword [ebp - 0x60]
call ebx
test eax, eax
je 0x41817f
mov eax, dword [ebp - 0x5c]
cmp eax, 0x103
jne 0x41818e
push 0xa
call esi
cmp dword [ebp - 0x5c], 0x103
je 0x418168
jmp 0x41819e
cmp eax, 1
jne 0x418197
mov edi, eax
jmp 0x41819e
cmp eax, 2
jne 0x41819e
mov edi, eax
cmp dword [ebp - 0x14], 8
jb 0x4181af
push dword [ebp - 0x28]
call fcn.0043d3af
add esp, 4
cmp dword [ebp - 0x2c], 8
jb 0x4181c0
push dword [ebp - 0x40]
call fcn.0043d3af
add esp, 4
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 - 0x10]
xor ecx, ebp
call fcn.0043d3b4
mov esp, ebp
pop ebp
ret
Function at 0x4181e0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45b008
mov eax, dword fs:[0]
push eax
sub esp, 0x94
mov eax, dword [0x486850]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
mov dword [ebp - 4], eax
cmp dword [0x487b34], 8
mov edx, dword [0x487b20]
lea ebx, [eax + 1]
jae 0x41823c
mov edx, 0x487b20
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
cmp word [edx], ax
jne 0x418259
xor ecx, ecx
jmp 0x41826f
mov ecx, edx
lea esi, [ecx + 2]
mov edi, edi
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x418260
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.00402900
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.00417d20
test eax, eax
sete al
mov byte [ebp - 4], 0
cmp dword [ebp - 0x14], 8
mov byte [ebp - 0x59], al
jb 0x4182a8
push dword [ebp - 0x28]
call fcn.0043d3af
mov al, byte [ebp - 0x59]
add esp, 4
test al, al
je 0x418398
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x58]
call fcn.0042beb0
push str.TUInstallHelper.exe
mov edx, eax
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.0040a580
add esp, 4
cmp dword [ebp - 0x44], 8
jb 0x4182e2
push dword [ebp - 0x58]
call fcn.0043d3af
add esp, 4
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x9c], 0x3c
mov dword [ebp - 0x98], 0x140
mov dword [ebp - 0x94], 0
mov dword [ebp - 0x90], str.open
jae 0x418316
lea eax, [ebp - 0x28]
mov dword [ebp - 0x8c], eax
lea eax, [ebp - 0x9c]
push eax
mov dword [ebp - 0x88], str.__close_tuuapps
mov dword [ebp - 0x84], 0
mov dword [ebp - 0x80], 1
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x418385
mov edi, dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [ebp - 0x60], 0
jmp 0x418360
lea eax, [ebp - 0x60]
push eax
push dword [ebp - 0x64]
call edi
test eax, eax
je 0x418376
cmp dword [ebp - 0x60], 0x103
jne 0x418387
push 0xa
call esi
cmp dword [ebp - 0x60], 0x103
je 0x418360
jmp 0x418387
xor ebx, ebx
cmp dword [ebp - 0x14], 8
jb 0x418398
push dword [ebp - 0x28]
call fcn.0043d3af
add esp, 4
cmp dword [ebp - 0x2c], 8
jb 0x4183a9
push dword [ebp - 0x40]
call fcn.0043d3af
add esp, 4
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 - 0x10]
xor ecx, ebp
call fcn.0043d3b4
mov esp, ebp
pop ebp
ret
Function at 0x4187d0
Capabilities:
Terminate process

Disassembly:
cmp dword [0x4879e0], 0xffffffff
push esi
mov esi, ecx
je 0x418801
mov ecx, 0x469ac4
call fcn.0042b670
mov ecx, str.FINISH
call fcn.0042b670
push 0x2710
push dword [0x4879e0]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call fcn.0043f91b
int3
Function at 0x41a060
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
lea eax, [ebp - 4]
push eax
mov esi, ecx
push str.SoftwareAVGAWL2014
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x1c], edx
mov dword [esi], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x41a16d
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push str.LicenseType
push dword [ebp - 4]
call ebx
mov edi, eax
test edi, edi
jne 0x41a0ed
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
push str.LicenseExpired
push dword [ebp - 4]
call ebx
mov edi, eax
test edi, edi
je 0x41a0ff
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push str.LicenseBeta
push dword [ebp - 4]
call ebx
push dword [ebp - 4]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
jne 0x41a0f6
mov ecx, dword [ebp - 0x10]
cmp ecx, 1
je 0x41a148
cmp ecx, 2
je 0x41a148
cmp ecx, 3
je 0x41a148
cmp ecx, 4
je 0x41a148
xor eax, eax
cmp ecx, 5
setne al
dec eax
and ecx, eax
cmp dword [ebp - 0x14], 0
jbe 0x41a156
mov dword [esi], 6
jmp 0x41a15d
call fcn.004017f0
mov dword [esi], eax
cmp dword [ebp - 0x18], 0
mov ecx, dword [ebp - 0x1c]
setne al
pop edi
mov byte [ecx], al
xor eax, eax
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x41b330
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
mov eax, dword [0x486850]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x118
lea eax, [ebp - 0x124]
push 0
push eax
mov esi, ecx
call fcn.00444380
add esp, 0xc
lea eax, [ebp - 0x128]
push eax
mov dword [ebp - 0x128], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x41b3af
mov eax, dword [ebp - 0x124]
cmp eax, 5
jb 0x41b3be
jne 0x41b3a6
mov eax, dword [ebp - 0x120]
test eax, eax
je 0x41b3be
cmp eax, 1
jne 0x41b3a6
cmp word [ebp - 0x14], 2
jae 0x41b3a6
mov dword [0x4893ec], 2
jmp 0x41b3c8
cmp dword [0x4893ec], 0
jne 0x41b3c8
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0043d3b4
mov esp, ebp
pop ebp
ret
mov dword [0x4893ec], 1
mov ecx, esi
call fcn.0041af70
xor ecx, ecx
call fcn.004187d0
int3

Function at 0x41b530
Capabilities:
Get session information
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x486850]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [sym.imp.WTSAPI32.dll_WTSQuerySessionInformationW]
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x22c]
push eax
push 7
push 0xffffffffffffffff
xor ebx, ebx
push ebx
call esi
test eax, eax
je 0x41b604
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x230]
push eax
push 5
push 0xffffffffffffffff
push ebx
call esi
test eax, eax
je 0x41b5f8
push dword [ebp - 0x230]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push dword [ebp - 0x22c]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
add eax, esi
cmp eax, 0x111
jae 0x41b5ec
push dword [ebp - 0x22c]
lea eax, [ebp - 0x228]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x468374
lea eax, [ebp - 0x228]
push eax
call esi
push dword [ebp - 0x230]
lea eax, [ebp - 0x228]
push eax
call esi
lea eax, [ebp - 0x228]
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov ebx, eax
push dword [ebp - 0x230]
call dword [sym.imp.WTSAPI32.dll_WTSFreeMemory]
push dword [ebp - 0x22c]
call dword [sym.imp.WTSAPI32.dll_WTSFreeMemory]
mov ecx, dword [ebp - 4]
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.0043d3b4
mov esp, ebp
pop ebp
ret