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

Disassembly:
push ecx
push ebx
push ebp
mov ebp, dword [esp + 0x14]
push esi
mov esi, dword [ecx]
push edi
push 0xffffffffffffffff
push 0
mov ecx, ebp
call sub.MFC42.DLL_CStringArray::SetSize
test esi, esi
je 0x1002a83c
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x14]
push 0
push ecx
push 0
push edx
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1002a83c
mov eax, dword [esp + 0x10]
cmp eax, 1
je 0x1002a7ac
cmp eax, 2
je 0x1002a7ac
cmp eax, 6
je 0x1002a7ac
cmp eax, 7
jne 0x1002a83c
mov eax, dword [esp + 0x1c]
add eax, 2
push eax
call sub.MFC42.DLL_operatornew
mov ecx, dword [esp + 0x20]
mov ebx, eax
add ecx, 2
xor eax, eax
mov edx, ecx
mov edi, ebx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
add esp, 4
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x1c]
push eax
push ebx
push 0
push 0
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1002a833
mov al, byte [ebx]
mov esi, ebx
test al, al
je 0x1002a81d
mov edx, dword [ebp + 8]
push esi
push edx
mov ecx, ebp
call sub.MFC42.DLL_CStringArray::SetAtGrow_1
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov al, byte [esi + ecx + 1]
lea esi, [esi + ecx + 1]
test al, al
jne 0x1002a7f9
push ebx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8
push ebx
call sub.MFC42.DLL_operatordelete
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret 8
Function at 0x1002ac60
Capabilities:
Set registry value

Disassembly:
push ecx
mov eax, dword [esp + 0x10]
push esi
push edi
mov edi, dword [ecx]
mov dword [esp + 8], eax
mov eax, dword [ecx + 4]
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x1002aca8
lea edx, [esp + 0x10]
or eax, 0x20006
push edx
lea edx, [esp + 0x1c]
push edx
push 0
push eax
push 0
push 0
push 0
push ecx
push edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov esi, eax
mov eax, dword [esp + 0x18]
neg esi
sbb esi, esi
not esi
and esi, eax
jmp 0x1002acaa
mov esi, edi
test esi, esi
je 0x1002acea
mov ecx, dword [esp + 0x14]
lea eax, [esp + 8]
push 4
push eax
push 4
push 0
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x1002acdf
cmp esi, edi
je 0x1002acd4
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, 1
pop esi
pop ecx
ret 0xc
cmp esi, edi
je 0x1002acea
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
xor eax, eax
pop esi
pop ecx
ret 0xc

Function at 0x1002aeb0
Capabilities:
Set registry value

Disassembly:
mov edx, dword [ecx]
test edx, edx
je 0x1002aee6
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
push esi
push 1
push eax
mov eax, dword [esp + 0x1c]
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
test eax, eax
jne 0x1002aee6
mov eax, 1
ret 8
xor eax, eax
ret 8
Function at 0x1002af20
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x10055fc8
push eax
mov eax, dword [ebp + 0xc]
mov dword fs:[0], esp
push ebx
push esi
test eax, eax
push edi
je 0x1002af76
lea ecx, [ebp + 0x14]
lea edx, [ebp + 0xc]
push ecx
mov ecx, dword [ebp + 0x14]
push edx
mov edx, dword [ebp + 8]
or ecx, 0x20006
push 0
push ecx
push 0
push 0
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov esi, eax
mov eax, dword [ebp + 0xc]
neg esi
sbb esi, esi
not esi
and esi, eax
jmp 0x1002af79
mov esi, dword [ebp + 8]
test esi, esi
je 0x1002b060
call fcn.1004b990
test eax, eax
je 0x1002affb
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x1002af95
xor ebx, ebx
jmp 0x1002afc5
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
inc edi
lea eax, [edi + edi]
add eax, 3
and al, 0xfc
call fcn.10013b30
mov eax, dword [ebp + 0x10]
mov ebx, esp
push edi
push ebx
push 0xffffffffffffffff
push eax
push 0
push 0
mov word [ebx], 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov edi, dword [ebp + 0x18]
push edi
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
lea ecx, [eax + eax + 2]
push ecx
push edi
push 1
push 0
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x1002b054
cmp esi, dword [ebp + 8]
je 0x1002aff4
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
jmp 0x1002b062
mov edx, dword [ebp + 0x18]
lea ecx, [ebp + 0x18]
push edx
call fcn.10014910
mov eax, dword [ebp + 0x18]
mov ecx, dword [eax - 8]
inc ecx
push ecx
push eax
mov eax, dword [ebp + 0x10]
push 1
push 0
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x1002b045
cmp esi, dword [ebp + 8]
je 0x1002b02f
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp + 0x18]
mov dword [ebp - 4], 0xffffffff
call fcn.10015110
mov eax, 1
jmp 0x1002b062
lea ecx, [ebp + 0x18]
mov dword [ebp - 4], 0xffffffff
call fcn.10015110
cmp esi, dword [ebp + 8]
je 0x1002b060
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov ecx, dword [ebp - 0xc]
lea esp, [ebp - 0x18]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1002b170
Capabilities:
Set registry value

Disassembly:
mov eax, dword [esp + 8]
sub esp, 8
test eax, eax
push ebx
push ebp
push esi
push edi
je 0x1002b1bc
lea ecx, [esp + 0x28]
lea edx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x2c]
push edx
mov edx, dword [esp + 0x24]
or ecx, 0x20006
push 0
push ecx
push 0
push 0
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov esi, eax
mov eax, dword [esp + 0x20]
neg esi
sbb esi, esi
not esi
and esi, eax
mov dword [esp + 0x10], esi
jmp 0x1002b1c6
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x10], eax
mov esi, eax
test esi, esi
je 0x1002b308
mov ebp, dword [esp + 0x2c]
xor edi, edi
mov dword [esp + 0x20], 1
mov eax, dword [ebp + 8]
test eax, eax
jle 0x1002b212
lea ecx, [esp + 0x28]
push edi
push ecx
mov ecx, ebp
call fcn.1002b320
mov edx, dword [eax]
mov ecx, dword [esp + 0x20]
mov eax, dword [edx - 8]
lea edx, [ecx + eax + 1]
lea ecx, [esp + 0x28]
mov dword [esp + 0x20], edx
call fcn.100135b2
mov eax, dword [ebp + 8]
inc edi
cmp edi, eax
jl 0x1002b1e3
mov eax, dword [esp + 0x20]
push eax
call sub.MFC42.DLL_operatornew
mov ebx, eax
add esp, 4
test ebx, ebx
mov dword [esp + 0x14], ebx
je 0x1002b308
mov ecx, dword [esp + 0x20]
xor eax, eax
mov edx, ecx
mov edi, ebx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
mov dword [esp + 0x28], 0
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [ebp + 8]
test eax, eax
jle 0x1002b2b3
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x2c]
push eax
push ecx
mov ecx, ebp
call fcn.1002b320
mov edi, dword [eax]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x2c]
call fcn.100135b2
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x28]
not ecx
dec ecx
inc eax
mov dword [esp + 0x28], eax
lea ebx, [ebx + ecx + 1]
mov ecx, dword [ebp + 8]
cmp eax, ecx
jl 0x1002b252
mov ebx, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
push eax
push ebx
push 7
push 0
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x1002b2f0
cmp esi, dword [esp + 0x1c]
je 0x1002b2da
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
push ebx
call sub.MFC42.DLL_operatordelete
mov eax, dword [esp + 0x20]
add esp, 4
cmp esi, eax
je 0x1002b308
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
Function at 0x1002b850
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0xc
mov eax, dword [ecx + 4]
push ebx
push ebp
push esi
push edi
mov edi, dword [ecx]
mov ecx, dword [esp + 0x20]
xor ebp, ebp
cmp ecx, ebp
mov dword [esp + 0x18], edi
je 0x1002b88e
lea edx, [esp + 0x14]
or eax, 0x20019
push edx
push eax
push ebp
push ecx
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
mov eax, dword [esp + 0x14]
neg esi
sbb esi, esi
not esi
and esi, eax
jmp 0x1002b890
mov esi, edi
mov ecx, dword [esp + 0x24]
push 0xffffffffffffffff
push ebp
call sub.MFC42.DLL_CStringArray::SetSize
cmp esi, ebp
je 0x1002b977
push ebp
push ebp
push ebp
push ebp
push ebp
lea eax, [esp + 0x34]
push ebp
lea ecx, [esp + 0x28]
push eax
push ecx
push ebp
push ebp
push ebp
push esi
mov dword [esp + 0x40], ebp
mov dword [esp + 0x50], ebp
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x1002b96c
cmp dword [esp + 0x10], ebp
jbe 0x1002b96c
mov eax, dword [esp + 0x20]
cmp eax, 0x104
jae 0x1002b8ec
mov eax, 0x104
mov dword [esp + 0x20], eax
inc eax
push eax
call sub.MFC42.DLL_operatornew
mov ebx, eax
add esp, 4
cmp ebx, ebp
je 0x1002b96c
cmp dword [esp + 0x10], ebp
jbe 0x1002b949
mov edx, dword [esp + 0x20]
xor eax, eax
mov edi, ebx
lea ecx, [edx + 1]
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x20]
inc eax
push eax
push ebx
push ebp
push esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0x1002b93c
mov ecx, dword [esp + 0x24]
push ebx
mov edx, dword [ecx + 8]
push edx
call sub.MFC42.DLL_CStringArray::SetAtGrow_1
mov eax, dword [esp + 0x10]
inc ebp
cmp ebp, eax
jb 0x1002b902
mov edi, dword [esp + 0x18]
push ebx
call sub.MFC42.DLL_operatordelete
add esp, 4
cmp esi, edi
je 0x1002b95d
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0xc
ret 8
cmp esi, edi
je 0x1002b977
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret 8
Function at 0x1002bcd0
Capabilities:
Delete registry key
Delete registry value

Disassembly:
push ebx
mov ebx, dword [ecx + 4]
push ebp
mov ebp, dword [esp + 0xc]
push esi
push edi
mov edi, dword [ecx]
test ebp, ebp
je 0x1002bd09
mov ecx, ebx
lea eax, [esp + 0x14]
or ecx, 0x2001f
push eax
push ecx
push 0
push ebp
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
mov eax, dword [esp + 0x14]
neg esi
sbb esi, esi
not esi
and esi, eax
jmp 0x1002bd0b
mov esi, edi
test esi, esi
je 0x1002bd96
mov eax, dword [esp + 0x18]
test eax, eax
je 0x1002bd3e
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
jne 0x1002bd8b
cmp esi, edi
je 0x1002bd32
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret 8
push ebx
push esi
call fcn.1002bda0
add esp, 8
test eax, eax
je 0x1002bd8b
cmp esi, edi
je 0x1002bd57
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [0x10071c94]
test eax, eax
je 0x1002bd77
test ebx, ebx
je 0x1002bd77
push 0
push ebx
push ebp
push edi
call eax
neg eax
pop edi
pop esi
sbb eax, eax
pop ebp
inc eax
pop ebx
ret 8
push ebp
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
neg eax
pop edi
pop esi
sbb eax, eax
pop ebp
inc eax
pop ebx
ret 8
cmp esi, edi
je 0x1002bd96
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 8
Function at 0x1002bda0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
sub esp, 8
lea eax, [esp + 0xc]
lea ecx, [esp]
push ebx
push ebp
push esi
push edi
push 0
push 0
mov ebx, dword [esp + 0x24]
push 0
push 0
push 0
push 0
push eax
push ecx
push 0
push 0
push 0
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x1002bf18
mov eax, dword [esp + 0x10]
test eax, eax
je 0x1002bef7
mov eax, dword [esp + 0x1c]
cmp eax, 0x104
jae 0x1002bdf6
mov eax, 0x104
mov dword [esp + 0x1c], eax
inc eax
push eax
call sub.MFC42.DLL_operatornew
mov esi, eax
add esp, 4
test esi, esi
je 0x1002bf18
mov edx, dword [esp + 0x1c]
xor eax, eax
mov edi, esi
lea ecx, [edx + 1]
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x1c]
inc eax
push eax
push esi
push 0
push ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0x1002bf0f
mov ebp, dword [esp + 0x20]
mov eax, ebp
or eax, 0x2001f
mov dword [esp + 0x14], eax
lea ecx, [esp + 0x20]
push ecx
push eax
push 0
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1002bf0f
mov edi, dword [esp + 0x20]
test edi, edi
je 0x1002bf0f
push ebp
push edi
call fcn.1002bda0
add esp, 8
test eax, eax
je 0x1002bf04
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [0x10071c94]
test eax, eax
je 0x1002bea1
test ebp, ebp
je 0x1002bea1
push 0
push ebp
push esi
push ebx
call eax
test eax, eax
jne 0x1002bf0f
jmp 0x1002bead
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x1002bf0f
mov eax, dword [esp + 0x10]
dec eax
mov dword [esp + 0x10], eax
je 0x1002beee
mov edx, dword [esp + 0x1c]
xor eax, eax
mov edi, esi
lea ecx, [edx + 1]
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x1c]
inc eax
push eax
push esi
push 0
push ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0x1002bf0f
mov eax, dword [esp + 0x14]
jmp 0x1002be4a
push esi
call sub.MFC42.DLL_operatordelete
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 8
ret
test edi, edi
je 0x1002bf0f
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call sub.MFC42.DLL_operatordelete
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
Function at 0x1002c110
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
push ebx
test edx, edx
push esi
mov ebx, ecx
je 0x1002c146
mov eax, dword [ebx + 4]
mov ecx, dword [ebx]
lea esi, [esp + 0xc]
or eax, 0x20019
push esi
push eax
push 0
push edx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
mov eax, dword [esp + 0xc]
neg esi
sbb esi, esi
not esi
and esi, eax
jmp 0x1002c148
mov esi, dword [ebx]
test esi, esi
je 0x1002c1d3
mov edx, dword [esp + 0x10]
push edi
lea eax, [esp + 0x14]
xor edi, edi
push eax
lea ecx, [esp + 0x14]
push edi
push ecx
push edi
push edx
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne case.0x1002c178.2
mov eax, dword [esp + 0x18]
cmp eax, 4
ja case.0x1002c178.2
jmp dword [eax*4 + 0x1002c1dc]
mov edi, 1
jmp case.0x1002c178.2
mov ecx, dword [esp + 0x10]
xor eax, eax
cmp ecx, 4
sete al
mov edi, eax
jmp case.0x1002c178.2
mov eax, dword [esp + 0x10]
cmp eax, 1
je case.0x1002c178.0
cmp eax, 2
je case.0x1002c178.0
cmp eax, 6
je case.0x1002c178.0
cmp eax, 7
je case.0x1002c178.0
xor edi, edi
jmp case.0x1002c178.2
mov eax, dword [esp + 0x10]
xor ecx, ecx
cmp eax, 3
sete cl
mov edi, ecx
cmp esi, dword [ebx]
je 0x1002c1cb
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc

Function at 0x1002c2e0
Capabilities:
Create thread
Resume thread

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 8]
test eax, eax
jne 0x1002c331
lea eax, [esi + 4]
push eax
push 4
push esi
push 0x1002c500
push 0
push 0
call dword [sym.imp.MSVCRT.dll__beginthreadex]
add esp, 0x18
mov dword [esi + 8], eax
test eax, eax
je 0x1002c331
mov ecx, dword [esi + 0x1c]
mov dword [esi + 0xc], 1
test ecx, ecx
je 0x1002c320
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov ecx, dword [esi + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, 1
pop esi
ret
xor eax, eax
pop esi
ret

Function at 0x1002c380
Capabilities:
Terminate thread

Disassembly:
sub esp, 8
push esi
mov esi, ecx
mov eax, dword [esi + 8]
test eax, eax
jne 0x1002c394
xor eax, eax
pop esi
add esp, 8
ret
mov eax, dword [esi + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov ecx, dword [esi + 0x14]
mov eax, dword [esi + 0x18]
mov edx, dword [esi + 8]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 8]
push 0
push ecx
push 2
mov dword [esp + 0x18], edx
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov edx, dword [esi + 8]
push 0x3e8
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x1002c3e1
mov eax, dword [esi + 8]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, dword [esi + 0x10]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_ResetEvent]
push ecx
call edi
mov edx, dword [esi + 0x14]
push edx
call edi
mov dword [esi + 0xc], 0
pop edi
mov eax, 1
pop esi
add esp, 8
ret
Function at 0x1002c5a0
Capabilities:
Check os version
Get system information on windows

Disassembly:
mov eax, dword [0x10071e0c]
test eax, eax
jne 0x1002c67a
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
push 0x10071ca8
mov dword [0x10071e0c], 1
mov dword [0x10071ca8], 0x94
call esi
mov edx, dword [0x10071cb8]
xor eax, eax
cmp edx, 2
sete al
test eax, eax
mov dword [0x10062c68], eax
je 0x1002c66e
push edi
push 0x10071d40
mov dword [0x10071d40], 0x9c
call esi
push 0x1006022c
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
push str.GetNativeSystemInfo
push esi
call edi
push str.GetProductInfo
push esi
mov dword [0x10071e04], eax
call edi
mov dword [0x10071e08], eax
mov eax, dword [0x10071e04]
pop edi
test eax, eax
push 0x10071de0
je 0x1002c63c
call eax
jmp 0x1002c642
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [0x10071d44]
cmp eax, 6
jae 0x1002c65a
cmp eax, 5
jne 0x1002c66e
cmp dword [0x10071d48], 2
jb 0x1002c66e
cmp word [0x10071de0], 9
jne 0x1002c66e
mov dword [0x10071c9c], 1
call fcn.1002c680
mov eax, 1
pop esi
ret
mov eax, 1
ret

Function at 0x1002d390
Capabilities:
Get common file path
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100590c8
push 0x1001410e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x22c
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov eax, dword [0x10071e10]
xor ebx, ebx
cmp eax, ebx
jne 0x1002d4f1
mov byte [ebp - 0x11c], bl
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x11b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x104
lea eax, [ebp - 0x11c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x1002d4ec
mov byte [ebp - 0x224], bl
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x223]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push str.user32.dll
lea ecx, [ebp - 0x11c]
push ecx
push 0x100603c0
lea edx, [ebp - 0x224]
push edx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x10
mov dword [ebp - 0x22c], ebx
lea eax, [ebp - 0x22c]
push eax
lea ecx, [ebp - 0x224]
push ecx
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov dword [ebp - 0x120], eax
push eax
call sub.MFC42.DLL_operatornew
add esp, 4
mov esi, eax
mov dword [ebp - 0x238], esi
cmp esi, ebx
je 0x1002d4ec
push esi
mov edx, dword [ebp - 0x120]
push edx
mov eax, dword [ebp - 0x22c]
push eax
lea ecx, [ebp - 0x224]
push ecx
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x1002d4e3
mov dword [ebp - 0x230], ebx
lea edx, [ebp - 0x120]
push edx
lea eax, [ebp - 0x230]
push eax
push str.VarFileInfoTranslation
push esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x1002d4e3
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x230]
mov dword [ebp - 0x234], eax
mov ecx, dword [eax]
mov dword [0x10071e10], ecx
mov dword [ebp - 4], 0xffffffff
jmp 0x1002d4e3
push esi
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, dword [0x10071e10]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1002db50
Capabilities:
Get user security identifier

Disassembly:
mov eax, dword [0x10071e74]
sub esp, 0xa0
push ebx
xor ebx, ebx
push ebp
cmp eax, ebx
push edi
jne 0x1002db9c
mov ecx, 0x24
xor eax, eax
lea edi, [esp + 0x1c]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esp + 0x28]
mov eax, 1
cmp ecx, 2
jne 0x1002db97
mov dword [0x10071e78], eax
mov dword [0x10071e74], eax
cmp dword [0x10071e78], ebx
jne 0x1002dbb0
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 0xa0
ret
mov ebp, dword [esp + 0xb0]
mov edi, dword [esp + 0xb4]
lea ecx, [esp + 0x14]
lea edx, [esp + 0x10]
push ecx
push edx
lea eax, [esp + 0x14]
push ebx
push eax
push ebx
push ebp
push ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [edi], ebx
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
jne 0x1002dbfc
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x1002dbfc
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 0xa0
ret
mov ecx, dword [esp + 0xc]
push esi
push ecx
call sub.MFC42.DLL_operatornew
mov edx, dword [esp + 0x18]
mov dword [edi], eax
lea eax, [edx + edx]
push eax
call sub.MFC42.DLL_operatornew
mov esi, eax
mov eax, dword [edi]
add esp, 8
test eax, eax
je 0x1002dc41
test esi, esi
je 0x1002dc52
lea ecx, [esp + 0x18]
lea edx, [esp + 0x14]
push ecx
push edx
lea ecx, [esp + 0x18]
push esi
push ecx
push eax
push ebp
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
mov ebx, eax
test esi, esi
je 0x1002dc4e
push esi
call sub.MFC42.DLL_operatordelete
add esp, 4
test ebx, ebx
jne 0x1002dc61
mov edi, dword [edi]
test edi, edi
je 0x1002dc61
push edi
call sub.MFC42.DLL_operatordelete
add esp, 4
pop esi
pop edi
mov eax, ebx
pop ebp
pop ebx
add esp, 0xa0
ret
Function at 0x1002eb10
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x1005621f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push ebp
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c], 0
call sub.MFC42.DLL_CString::CString_1
mov ecx, dword [esp + 0x34]
mov edi, dword [esi]
mov eax, dword [esi + 4]
mov dword [esp + 0x28], 1
test ecx, ecx
mov dword [esp + 0x14], edi
je 0x1002eb7d
lea edx, [esp + 0x18]
or eax, 0x20019
push edx
push eax
push 0
push ecx
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
mov eax, dword [esp + 0x18]
neg esi
sbb esi, esi
not esi
and esi, eax
jmp 0x1002eb7f
mov esi, edi
test esi, esi
je 0x1002ec49
mov ebx, dword [esp + 0x38]
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x3c]
push 0
push ecx
push 0
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1002ec3e
mov eax, dword [esp + 0x38]
cmp eax, 1
je 0x1002ebc1
cmp eax, 2
je 0x1002ebc1
cmp eax, 6
je 0x1002ebc1
cmp eax, 7
jne 0x1002ec3e
mov edx, dword [esp + 0x34]
add edx, 2
push edx
call sub.MFC42.DLL_operatornew
mov ebp, eax
mov eax, dword [esp + 0x38]
mov edi, ebp
add esp, 4
lea ecx, [eax + 2]
xor eax, eax
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea eax, [esp + 0x34]
push eax
push ebp
push 0
push 0
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
push ebp
jne 0x1002ec24
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::operator
cmp esi, dword [esp + 0x14]
je 0x1002ec19
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebp
call sub.MFC42.DLL_operatordelete
add esp, 4
jmp 0x1002ec5b
call sub.MFC42.DLL_operatordelete
add esp, 4
lea ecx, [esp + 0x10]
push 0x10070a8c
call sub.MFC42.DLL_CString::operator
mov edi, dword [esp + 0x14]
cmp esi, edi
je 0x1002ec49
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x1002ec5b
push eax
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::operator
mov esi, dword [esp + 0x30]
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
call sub.MFC42.DLL_CString::CString_2
mov dword [esp + 0x1c], 1
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 0
call fcn.100135b2
mov ecx, dword [esp + 0x20]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 0x10