joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4017d0
Capabilities:
Acquire debug privileges

Disassembly:
sub esp, 0x30
push esi
push edi
lea eax, [esp + 0x10]
push eax
push str.SeDebugPrivilege
push 0
mov dword [esp + 0x18], 0x10
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
jne 0x4017fb
xor eax, eax
pop edi
pop esi
add esp, 0x30
ret
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov esi, dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
lea eax, [esp + 0xc]
push eax
mov dword [esp + 0x30], ecx
lea ecx, [esp + 0x1c]
push ecx
push 0x10
mov dword [esp + 0x3c], edx
lea edx, [esp + 0x34]
push edx
push 0
push ebx
mov dword [esp + 0x40], 1
mov dword [esp + 0x4c], 0
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
test eax, eax
jne 0x4017f3
cmp dword [esp + 0x3c], 0
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x18], 1
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ecx
je 0x401869
or dword [esp + 0x24], 2
jmp 0x40186e
and dword [esp + 0x24], 0xfffffffd
mov edx, dword [esp + 0xc]
push 0
push 0
push edx
lea eax, [esp + 0x24]
push eax
push 0
push ebx
call esi
call edi
neg eax
sbb eax, eax
pop edi
add eax, 1
pop esi
add esp, 0x30
ret

Function at 0x4023d0
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 0x4023e9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x402424
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x402420
lea ebx, [ebx]
cmp esi, eax
jae 0x402424
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x402410
cmp esi, eax
jb 0x40242a
pop esi
pop edi
xor eax, eax
pop ebx
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x403770
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x469930]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
cmp dword [0x46b344], eax
push esi
mov esi, dword [ebp + 8]
jne 0x4037bb
push 0x46b344
push eax
push eax
push eax
push eax
push eax
push eax
push eax
push 4
mov byte [ebp - 0xc], al
mov byte [ebp - 0xb], al
mov byte [ebp - 0xa], al
mov byte [ebp - 9], al
mov byte [ebp - 8], al
push 1
lea eax, [ebp - 0xc]
push eax
mov byte [ebp - 7], 5
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
push dword [0x46b344]
push esi
call dword [sym.imp.ADVAPI32.dll_EqualSid]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0042d9aa
leave
ret
Function at 0x4037d5
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x469930]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
cmp dword [0x46b348], eax
push esi
mov esi, dword [ebp + 8]
jne 0x40381f
push 0x46b348
push eax
push eax
push eax
push eax
push eax
push eax
push eax
push eax
mov byte [ebp - 0xc], al
mov byte [ebp - 0xb], al
mov byte [ebp - 0xa], al
mov byte [ebp - 9], al
mov byte [ebp - 8], al
push 1
lea eax, [ebp - 0xc]
push eax
mov byte [ebp - 7], 2
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
push dword [0x46b348]
push esi
call dword [sym.imp.ADVAPI32.dll_EqualSid]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0042d9aa
leave
ret

Function at 0x403912
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push 0
lea eax, [ebp - 0x3c]
push 0x3c
push eax
call fcn.0042d110
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x20], eax
add esp, 0xc
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x38], 0x40
mov dword [ebp - 0x30], str.open
mov dword [ebp - 0x24], 0x459a14
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x403974
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x403978
xor al, al
jmp 0x40398c
cmp dword [ebp + 0x18], 0
je 0x40398a
push dword [ebp + 0x18]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov al, 1
leave
ret 0x14

Function at 0x4042ae
Capabilities:
Set registry value

Disassembly:
push 4
lea eax, [esp + 0xc]
push eax
push 4
push 0
push dword [esp + 0x14]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
ret 8

Function at 0x404304
Capabilities:
Set registry value

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
test esi, esi
mov ebx, ecx
jne 0x40431a
push 0x80004005
call fcn.00401280
push edi
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x40431d
push edi
push dword [esp + 0x18]
push 7
push 0
push dword [esp + 0x20]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
ret 8
Function at 0x40484a
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x198]
sub esp, 0x218
mov eax, dword [0x469930]
xor eax, ebp
mov dword [ebp + 0x194], eax
mov eax, dword [ebp + 0x1a0]
push ebx
push esi
push edi
push 0x2001f
mov ebx, ecx
push eax
push dword [ebx]
xor esi, esi
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x70], esi
call fcn.00404279
mov edi, eax
cmp edi, esi
je 0x4048b2
lea ecx, [ebp - 0x70]
call fcn.00404214
mov eax, edi
mov ecx, dword [ebp + 0x194]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042d9aa
add ebp, 0x198
leave
ret 4
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x4048ca
lea eax, [ebp - 0x6c]
push eax
lea ecx, [ebp - 0x70]
call fcn.0040484a
cmp eax, esi
jne 0x4048fd
lea eax, [ebp - 0x80]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x6c]
push eax
push esi
push dword [ebp - 0x70]
mov dword [ebp - 0x74], 0x100
call edi
test eax, eax
je 0x4048ba
lea ecx, [ebp - 0x70]
call fcn.00404214
push dword [ebp - 0x78]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
lea ecx, [ebp - 0x70]
mov esi, eax
call fcn.00404214
mov eax, esi
jmp 0x404898
Function at 0x40a056
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
sub esp, 0x404
lea ebp, [esp - 4]
mov eax, dword [0x469930]
xor eax, ebp
mov dword [ebp + 0x404], eax
push 0x20
mov eax, 0x447bf0
call fcn.0042f433
mov edi, ecx
mov eax, dword [ebp + 0x414]
mov ebx, dword [ebp + 0x410]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x418]
mov dword [ebp - 0x18], eax
call dword [0x46ae0c]
xor esi, esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x28], esi
mov dword [ebp], esi
push 2
push esi
push ebx
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov ebx, eax
cmp ebx, esi
mov dword [ebp - 0x1c], ebx
jne 0x40a0ce
call fcn.0040413d
mov esi, eax
jmp 0x40a1cf
push dword [ebp - 0x18]
push dword [ebp - 0x14]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
cmp edi, esi
jne 0x40a0eb
call fcn.0040413d
jmp 0x40a1c4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, esi
mov dword [ebp - 0x18], eax
je 0x40a0e1
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
lea eax, [edi + 1]
cmp eax, edi
mov dword [ebp - 0x14], edi
jae 0x40a152
lea eax, [ebp + 4]
cmp dword [ebp], eax
je 0x40a11e
lea ecx, [ebp]
call fcn.00404817
mov esi, 0x8007000e
lea ecx, [ebp - 0x20]
call fcn.00403cff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x404]
xor ecx, ebp
call fcn.0042d9aa
add ebp, 0x408
leave
ret 0x10
push eax
lea ecx, [ebp]
mov byte [ebp - 4], 2
call fcn.00404df7
mov dword [ebp - 4], 1
jmp 0x40a182
mov ebx, dword [ebp]
cmp ebx, esi
jne 0x40a190
mov esi, 0x8007000e
jmp 0x40a1c6
call dword [0x46ae0c]
push edi
push ebx
push edi
push dword [ebp - 0x18]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, esi
je 0x40a0e1
mov ecx, dword [ebp]
push dword [ebp + 0x41c]
mov word [ecx + eax*2], si
push dword [ebp]
lea ecx, [ebp - 0x28]
call fcn.00405c43
mov esi, eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp + 4]
cmp dword [ebp], eax
je 0x40a123
lea ecx, [ebp]
call fcn.00404817
jmp 0x40a123
Function at 0x40c186
Capabilities:
Manipulate safe mode programs

Disassembly:
push 0x14
mov eax, 0x4481b9
call fcn.0042f400
push 0x43
call dword [sym.imp.USER32.dll_GetSystemMetrics]
xor ebx, ebx
cmp eax, ebx
je 0x40c25d
lea ecx, [ebp - 0x20]
call fcn.004124bb
push ebx
push ebx
push 0xf001f
push ebx
push str.SYSTEMCurrentControlSetControlSafeBootMinimalMSIServer
mov edi, reloc.OLEAUT32.dll_SysReAllocString
push edi
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], ebx
call fcn.00412828
test eax, eax
mov esi, str.Service
jne 0x40c1fb
push esi
lea ecx, [ebp - 0x10]
call fcn.00402190
lea eax, [ebp - 0x10]
push eax
push ebx
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 1
call fcn.00412684
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov byte [ebp - 4], bl
call fcn.004012d0
lea ecx, [ebp - 0x18]
call fcn.004124bb
push ebx
push ebx
push 0xf001f
push ebx
push str.SYSTEMCurrentControlSetControlSafeBootNetworkMSIServer
push edi
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.00412828
test eax, eax
jne 0x40c246
push esi
lea ecx, [ebp - 0x10]
call fcn.00402190
lea eax, [ebp - 0x10]
push eax
push ebx
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 3
call fcn.00412684
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.004012d0
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], bl
call fcn.0041265d
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.0041265d
call fcn.0042f49f
ret

Function at 0x40c287
Capabilities:
Modify service

Disassembly:
push ebp
sub esp, 0x90
lea ebp, [esp - 4]
mov eax, dword [0x469930]
xor eax, ebp
mov dword [ebp + 0x90], eax
push 0x10
mov eax, 0x4481dc
call fcn.0042f400
mov edi, ecx
xor ebx, ebx
inc ebx
lea ecx, [ebp]
mov dword [ebp - 0x10], ebx
call fcn.0040ec74
xor esi, esi
cmp dword [ebp + 4], 2
mov dword [ebp - 4], esi
je 0x40c2f9
mov esi, ebx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp]
call fcn.0040ecf3
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x90]
xor ecx, ebp
call fcn.0042d9aa
add ebp, 0x94
leave
ret
mov ecx, edi
call fcn.0040c186
push 0xf003f
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
cmp eax, esi
mov dword [ebp - 0x14], eax
je 0x40c381
push 0xf01ff
push str.MSIServer
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebx, eax
cmp ebx, esi
je 0x40c378
mov edi, 0x1000
push edi
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
lea ecx, [ebp - 0x1c]
push ecx
push edi
push eax
push ebx
mov dword [ebp - 0x18], eax
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
test eax, eax
je 0x40c371
mov eax, dword [ebp - 0x18]
cmp dword [eax + 4], 4
jne 0x40c371
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push 0xffffffffffffffff
push 3
push 0xffffffffffffffff
push ebx
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
test eax, eax
jne 0x40c371
mov dword [ebp - 0x10], esi
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, dword [ebp - 0x10]
jmp 0x40c2c8
Function at 0x40f6ff
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x469930]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x210], 0
cmp dword [ebp + 0x10], 0
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
jne 0x40f739
push esi
call fcn.0040edd8
test eax, eax
pop ecx
je 0x40f739
push 0x459a14
jmp 0x40f765
lea eax, [ebp - 0x20c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test esi, esi
je 0x40f75e
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.0042fb55
pop ecx
pop ecx
lea eax, [ebp - 0x20c]
push eax
mov ecx, edi
call fcn.00402190
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.0042d9aa
leave
ret

Function at 0x40f77c
Capabilities:
Create directory

Disassembly:
push 8
mov eax, 0x448a73
call fcn.0042f400
push dword [ebp + 8]
call fcn.0042d994
mov esi, eax
test esi, esi
pop ecx
jne 0x40f79d
inc eax
jmp 0x40f890
xor ecx, ecx
push 2
pop edx
lea eax, [esi + 1]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041d15c
push dword [ebp + 8]
mov ebx, eax
push ebx
call fcn.0042fb7f
lea eax, [ebx + esi*2 - 2]
add esp, 0xc
cmp word [eax], 0x5c
jne 0x40f7d0
and word [eax], 0
push ebx
call fcn.0040f5ff
mov esi, eax
test esi, esi
pop ecx
jne 0x40f887
push ebx
call fcn.0040ee5b
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov esi, eax
test esi, esi
pop ecx
je 0x40f853
cmp esi, ebx
je 0x40f84f
cmp word [esi - 2], 0x3a
jne 0x40f84f
add esi, 2
push esi
call fcn.0040ee5b
pop ecx
mov esi, eax
jmp 0x40f84f
and word [esi], 0
push ebx
lea ecx, [ebp - 0x10]
call fcn.00402190
and dword [ebp - 4], 0
lea eax, [ebp - 0x10]
push eax
call fcn.0040f522
pop ecx
push 0
push dword [ebp - 0x10]
call edi
mov word [esi], 0x5c
add esi, 2
push esi
call fcn.0040ee5b
or dword [ebp - 4], 0xffffffff
pop ecx
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.004012d0
test esi, esi
jne 0x40f80d
push ebx
lea ecx, [ebp - 0x14]
call fcn.00402190
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 4], 1
call fcn.0040f522
pop ecx
push 0
push dword [ebp - 0x14]
call edi
mov ecx, dword [ebp - 0x14]
mov esi, eax
dec esi
neg esi
sbb esi, esi
add ecx, 0xfffffff0
inc esi
call fcn.004012d0
push ebx
call fcn.0041d161
pop ecx
mov eax, esi
call fcn.0042f49f
ret
Function at 0x40fd9e
Capabilities:
Print debug messages

Disassembly:
push 0x14
mov eax, 0x448c37
call fcn.0042f400
xor ebx, ebx
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], ebx
call fcn.004124bb
mov eax, dword [ebp + 8]
cmp dword [eax - 0xc], ebx
mov byte [ebp - 4], 1
je 0x40fe2e
push ebx
push ebx
push 0xf001f
push ebx
push dword [0x46b440]
lea ecx, [ebp - 0x18]
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.00412828
cmp eax, ebx
jne 0x40fdf7
lea eax, [ebp + 8]
push eax
push str.Home
lea ecx, [ebp - 0x18]
call fcn.00412684
cmp eax, ebx
je 0x40fe2e
push eax
lea ecx, [ebp - 0x20]
call fcn.004129a5
lea ecx, [ebp - 0x10]
push ecx
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.00412a52
push dword [eax]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.004012d0
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 1
call fcn.004129b7
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], bl
call fcn.0041265d
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.004012d0
call fcn.0042f49f
ret

Function at 0x40ffd4
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 8
mov eax, 0x448d0e
call fcn.0042f400
push 0x409
push dword [ebp + 0xc]
push 6
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
mov esi, eax
test esi, esi
jne 0x410000
xor al, al
jmp 0x41008c
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 8]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push ebx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
call fcn.0041fff9
push eax
lea ecx, [ebp - 0x10]
call fcn.00402160
and dword [ebp - 4], 0
mov esi, edi
shr esi, 1
push esi
lea ecx, [ebp - 0x10]
call fcn.00401e60
push edi
push ebx
push eax
call fcn.0042fc80
and dword [ebp - 4], 0
add esp, 0xc
push esi
lea ecx, [ebp - 0x10]
call fcn.00404026
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.0040f2e4
pop ecx
pop ecx
mov ecx, dword [ebp + 0x10]
push eax
mov byte [ebp - 4], 3
call fcn.00401fa0
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.004012d0
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.004012d0
mov al, 1
call fcn.0042f49f
ret
Function at 0x4108ee
Capabilities:
Print debug messages

Disassembly:
push 0x28
mov eax, 0x448f5a
call fcn.0042f433
mov dword [ebp - 0x18], ecx
push 0x348
mov dword [ebp - 4], 2
call fcn.0041d131
pop ecx
mov ecx, eax
mov dword [ebp - 0x1c], ecx
test ecx, ecx
mov byte [ebp - 4], 3
je 0x410934
push dword [0x46b2ec]
push dword [ebp - 0x18]
push dword [ebp + 8]
push dword [ebp + 0xc]
call fcn.004107ae
mov esi, eax
jmp 0x410936
xor esi, esi
push 5
mov ecx, esi
mov byte [ebp - 4], 2
mov dword [ebp - 0x1c], esi
call fcn.00418e8f
push 1
mov ecx, esi
call fcn.00418738
push 0x4107f5
mov ecx, esi
call fcn.00418752
push dword [ebp + 8]
mov ecx, esi
call fcn.00418e31
mov eax, dword [ebp + 0x10]
cmp dword [eax - 0xc], 0
je 0x4109f6
push 0x4505b8
lea eax, [ebp + 0x10]
push eax
lea ecx, [ebp - 0x30]
call fcn.004173f6
mov byte [ebp - 4], 4
call fcn.0041fff9
push eax
lea ecx, [ebp - 0x14]
call fcn.00402160
mov byte [ebp - 4], 5
push 0
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x30]
call fcn.00417365
test eax, eax
je 0x4109df
push 0x450b20
mov byte [ebp - 4], 6
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push dword [ebp - 0x14]
mov ecx, esi
call fcn.0041bcdb
mov dword [ebp - 4], 5
jmp 0x410999
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.004012d0
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 2
call fcn.0041725f
push 0
call fcn.00430a62
pop ecx
mov ecx, esi
call fcn.0041c9b6
jmp 0x410a24
mov eax, dword [ebp - 0x18]
cmp byte [eax + 4], 0
je 0x410a19
mov ecx, esi
call fcn.00419e8b
jmp 0x410a24
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, esi
call fcn.00418745
test al, al
jne 0x410a07
mov ecx, esi
xor bl, bl
call fcn.0041875f
test eax, eax
jne 0x410a3e
inc bl
test esi, esi
je 0x410a4a
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax]
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.004012d0
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
call fcn.004012d0
mov ecx, dword [ebp + 0x10]
add ecx, 0xfffffff0
call fcn.004012d0
mov al, bl
call fcn.0042f49f
ret 0xc
Function at 0x411e3b
Capabilities:
Create thread

Disassembly:
push ebx
push esi
mov esi, ecx
lea eax, [esi + 8]
push eax
mov al, byte [esp + 0x10]
xor ebx, ebx
neg al
mov byte [esi + 4], bl
sbb eax, eax
and eax, 4
push eax
push esi
push 0x411e12
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, ebx
mov dword [esi + 0xc], eax
je 0x411e79
cmp dword [esp + 0x10], ebx
je 0x411e79
push dword [esp + 0x10]
mov ecx, esi
call fcn.00411d8b
xor eax, eax
cmp dword [esi + 0xc], ebx
pop esi
setne al
pop ebx
ret 8

Function at 0x412505
Capabilities:
Set registry value

Disassembly:
push 4
lea eax, [esp + 0xc]
push eax
push 4
push 0
push dword [esp + 0x14]
push dword [ecx + 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
ret 8

Function at 0x4126a7
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
mov edi, ecx
mov ecx, dword [ebp + 0xc]
call fcn.004020c0
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 0
lea eax, [ebp - 8]
push eax
push 0
push dword [ebp + 8]
mov dword [ebp - 8], 1
push dword [edi + 4]
call esi
test eax, eax
mov dword [ebp - 0xc], eax
jne 0x412725
mov eax, dword [ebp - 4]
test eax, eax
jbe 0x412725
mov ecx, dword [ebp + 0xc]
shr eax, 1
push eax
mov dword [ebp - 0x10], eax
call fcn.00405959
lea ecx, [ebp - 4]
push ecx
push eax
lea eax, [ebp - 8]
push eax
push 0
push dword [ebp + 8]
push dword [edi + 4]
call esi
cmp dword [ebp - 8], 2
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
jne 0x41271e
push dword [ebp - 0x10]
jmp 0x412720
push 0xffffffffffffffff
call fcn.00404026
mov eax, dword [ebp - 0xc]
pop edi
pop esi
leave
ret 8
Function at 0x413a37
Capabilities:
Reference sql statements

Disassembly:
push 0x28
mov eax, 0x4499f4
call fcn.0042f400
lea ecx, [ebp - 0x1c]
call fcn.00417b52
xor esi, esi
push str.SELECT_Value_FROM_Property_WHERE_PropertyProductVersion
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], esi
call fcn.00402540
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.00417c07
mov ecx, dword [ebp - 0x10]
mov ebx, eax
neg ebx
sbb bl, bl
add ecx, 0xfffffff0
inc bl
mov byte [ebp - 4], 0
call fcn.004012d0
test bl, bl
je 0x413a9f
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.00417bd6
xor eax, eax
call fcn.0042f49f
ret
push esi
lea ecx, [ebp - 0x34]
call fcn.00417a52
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 2
call fcn.00417b8b
mov ebx, eax
neg ebx
sbb bl, bl
lea ecx, [ebp - 0x34]
inc bl
mov byte [ebp - 4], 0
call fcn.00417a6c
test bl, bl
jne 0x413a8b
lea ecx, [ebp - 0x28]
call fcn.00417a40
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 3
call fcn.00417ba4
test eax, eax
jne 0x413b08
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
call fcn.00417a6c
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.00417bd6
mov eax, esi
jmp 0x413a99
xor esi, esi
inc esi
push esi
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x28]
call fcn.00417b15
mov ecx, dword [ebp + 0xc]
push eax
mov byte [ebp - 4], 4
call fcn.00401fa0
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.004012d0
jmp 0x413aec
Function at 0x413f35
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
xor esi, esi
push esi
push 0xf003f
push esi
push esi
push esi
push dword [0x4685ec]
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x413f84
push 4
lea eax, [ebp + 8]
push eax
push 4
push esi
call fcn.00413ece
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
leave
ret

Function at 0x413f87
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
lea eax, [ebp - 0x14]
push eax
xor esi, esi
lea eax, [ebp - 4]
push eax
push esi
push 0xf003f
push esi
push esi
push esi
push dword [0x4685ec]
mov dword [ebp - 8], esi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x413fe7
push 4
pop eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push esi
call fcn.00413ece
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
pop esi
leave
ret