joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404770
Capabilities:
Check os version

Disassembly:
sub esp, 0x9c
push esi
mov esi, ecx
push edi
mov ecx, 0x27
xor eax, eax
lea edi, [esp + 8]
rep stosd dword es:[edi], eax
mov edi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
lea eax, [esp + 8]
push eax
mov dword [esp + 0xc], 0x9c
call edi
test eax, eax
jne 0x4047d5
lea ecx, [esp + 8]
mov dword [esp + 8], 0x94
push ecx
call edi
test eax, eax
jne 0x4047d5
mov eax, dword [0x43bd38]
test eax, eax
je 0x4047ca
push 0
push 0
push str.Error_In_Getting_OS_Version_Information_
call fcn.00426fe8
pop edi
xor eax, eax
pop esi
add esp, 0x9c
ret
mov ecx, dword [esp + 0x18]
mov eax, 1
cmp ecx, 2
jne 0x404811
mov ecx, dword [esp + 0xc]
cmp ecx, 5
jne 0x4047f8
mov dword [esi + 8], eax
pop edi
pop esi
add esp, 0x9c
ret
cmp ecx, 6
jne 0x40482e
mov ecx, dword [esp + 0x10]
test ecx, ecx
jne 0x40482e
mov dword [esi + 0xc], eax
pop edi
pop esi
add esp, 0x9c
ret
cmp ecx, eax
jne 0x40482e
cmp dword [esp + 0xc], 4
jne 0x40482e
mov ecx, dword [esp + 0x10]
test ecx, ecx
jbe 0x40482e
mov dword [esi + 8], 0
mov dword [esi + 0x10], eax
pop edi
pop esi
add esp, 0x9c
ret

Function at 0x404776
Capabilities:
Check os version

Disassembly:
sub esp, 0x9c
push esi
mov esi, ecx
push edi
mov ecx, 0x27
xor eax, eax
lea edi, [esp + 8]
rep stosd dword es:[edi], eax
mov edi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
lea eax, [esp + 8]
push eax
mov dword [esp + 0xc], 0x9c
call edi
test eax, eax
jne 0x4047d5
lea ecx, [esp + 8]
mov dword [esp + 8], 0x94
push ecx
call edi
test eax, eax
jne 0x4047d5
mov eax, dword [0x43bd38]
test eax, eax
je 0x4047ca
push 0
push 0
push str.Error_In_Getting_OS_Version_Information_
call fcn.00426fe8
pop edi
xor eax, eax
pop esi
add esp, 0x9c
ret
mov ecx, dword [esp + 0x18]
mov eax, 1
cmp ecx, 2
jne 0x404811
mov ecx, dword [esp + 0xc]
cmp ecx, 5
jne 0x4047f8
mov dword [esi + 8], eax
pop edi
pop esi
add esp, 0x9c
ret
cmp ecx, 6
jne 0x40482e
mov ecx, dword [esp + 0x10]
test ecx, ecx
jne 0x40482e
mov dword [esi + 0xc], eax
pop edi
pop esi
add esp, 0x9c
ret
cmp ecx, eax
jne 0x40482e
cmp dword [esp + 0xc], 4
jne 0x40482e
mov ecx, dword [esp + 0x10]
test ecx, ecx
jbe 0x40482e
mov dword [esi + 8], 0
mov dword [esi + 0x10], eax
pop edi
pop esi
add esp, 0x9c
ret
Function at 0x404e30
Capabilities:
Delete file
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x42b6ab
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x128
push ebx
push ebp
mov ebp, ecx
push edi
xor ebx, ebx
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x31]
mov byte [esp + 0x30], bl
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea ecx, [esp + 0x30]
mov byte [esp + 0x31], bl
push ecx
lea ecx, [esp + 0x10]
call fcn.0041ff21
mov eax, dword [ebp + 8]
mov dword [esp + 0x13c], ebx
cmp eax, ebx
jne 0x404e9f
cmp dword [ebp + 0xc], ebx
je 0x404f3f
or ecx, 0xffffffff
mov edi, str.:Program_Files
xor eax, eax
push esi
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x34]
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x34]
and ecx, 3
mov ebp, dword [ebp + 0x60]
rep movsb byte es:[edi], byte [esi]
mov edi, 0x4370c4
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x34]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea eax, [esp + 0x34]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x14]
call fcn.0042003c
push ebx
lea ecx, [esp + 0x14]
call fcn.00420242
pop esi
call fcn.00420acc
cmp eax, ebx
je 0x404f51
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x74]
jmp 0x404f53
xor eax, eax
mov eax, dword [eax + 0x1c]
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], 3
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], ebx
mov word [esp + 0x20], 0x410
mov dword [esp + 0x22], ebx
mov dword [esp + 0x26], ebx
call fcn.00427daf
mov eax, dword [eax + 0x10]
lea edx, [esp + 0x10]
push edx
mov dword [esp + 0x2e], eax
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
lea ecx, [esp + 0xc]
mov dword [esp + 0x13c], 0xffffffff
call fcn.0041feb3
mov ecx, dword [esp + 0x134]
pop edi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x134
ret
Function at 0x4051ab
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x42b751
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [0x437cd4]
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
mov dword [esi + 4], eax
mov ecx, dword [0x437cd4]
xor edi, edi
mov dword [esp + 0x14], edi
mov dword [esi + 8], ecx
mov edx, dword [0x437cd4]
mov dword [esi + 0xc], edx
lea ecx, [esi + 0x10]
mov byte [esp + 0x14], 2
call fcn.0041f536
mov eax, dword [0x437cd4]
mov dword [esi + 0x24], eax
mov ecx, dword [0x437cd4]
mov dword [esi + 0x28], ecx
mov edx, dword [0x437cd4]
mov dword [esi + 0x2c], edx
mov eax, dword [0x437cd4]
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], 0x42d5bc
mov dword [esi + 0x38], edi
mov dword [esi + 0x44], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x3c], edi
mov ecx, dword [0x437cd4]
mov dword [esi + 0x80], ecx
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
push edx
push eax
push ecx
mov ecx, esi
mov byte [esp + 0x20], 9
mov dword [esi], 0x42d5b8
call fcn.00405360
mov ecx, dword [esp + 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 0xc

Function at 0x405260
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x42b7cb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
push edi
mov edi, ecx
mov dword [esp + 0xc], edi
mov dword [edi], 0x42d5b8
lea ecx, [edi + 0x80]
mov dword [esp + 0x1c], 8
call fcn.0041feb3
lea ebx, [edi + 0x34]
mov dword [esp + 0x10], ebx
mov dword [ebx], 0x42d5bc
mov esi, dword [ebx + 4]
mov byte [esp + 0x1c], 9
test esi, esi
je 0x4052dc
mov eax, dword [ebx + 8]
mov ecx, eax
dec eax
test ecx, ecx
je 0x4052d0
push ebp
lea ebp, [eax + 1]
mov edx, dword [esi]
push 0
mov ecx, esi
call dword [edx]
add esi, 0x10
dec ebp
jne 0x4052c1
pop ebp
mov ebx, dword [ebx + 4]
push ebx
call fcn.004203ec
add esp, 4
lea ecx, [edi + 0x30]
mov byte [esp + 0x1c], 6
call fcn.0041feb3
lea ecx, [edi + 0x2c]
mov byte [esp + 0x1c], 5
call fcn.0041feb3
lea ecx, [edi + 0x28]
mov byte [esp + 0x1c], 4
call fcn.0041feb3
lea ecx, [edi + 0x24]
mov byte [esp + 0x1c], 3
call fcn.0041feb3
lea ecx, [edi + 0x10]
mov byte [esp + 0x1c], 2
call fcn.0041f569
lea ecx, [edi + 0xc]
mov byte [esp + 0x1c], 1
call fcn.0041feb3
lea ecx, [edi + 8]
mov byte [esp + 0x1c], 0
call fcn.0041feb3
lea ecx, [edi + 4]
mov dword [esp + 0x1c], 0xffffffff
call fcn.0041feb3
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x406e90
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x42bb6b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [0x437cd4]
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
lea ecx, [esi + 0x54]
mov dword [ecx], eax
xor edi, edi
push 0x43bc70
mov dword [esp + 0x18], edi
mov dword [esi], 0x42d8d0
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
call fcn.0042003c
mov dword [esi + 0x50], edi
lea edi, [esi + 0x10]
mov ecx, 8
xor eax, eax
rep stosd dword es:[edi], eax
lea edi, [esi + 0x30]
mov ecx, 8
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x4075b0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
sub esp, 0x108
lea eax, [esp]
push ebx
mov ebx, dword [esp + 0x114]
push ebp
mov ebp, dword [esp + 0x114]
push esi
push edi
push eax
push 0xf003f
push 0
push ebx
push ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x407655
mov edx, dword [esp + 0x10]
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
lea ecx, [esp + 0x14]
push 0x104
push ecx
push eax
push edx
call edi
mov esi, eax
test esi, esi
jne 0x407630
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push eax
push ecx
call fcn.004075b0
mov esi, eax
add esp, 8
test esi, esi
jne 0x407662
lea edx, [esp + 0x14]
push 0x104
push edx
push eax
mov eax, dword [esp + 0x1c]
push eax
call edi
mov esi, eax
test esi, esi
je 0x407600
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, 0x103
mov dword [esp + 0x10], 0
jne 0x407655
push ebx
push ebp
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov esi, eax
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret

Function at 0x407790
Capabilities:
Shutdown system

Disassembly:
push 0xffffffffffffffff
push 0x42bb96
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x638
mov eax, dword [0x437cd4]
push esi
mov esi, ecx
mov dword [esp + 4], eax
mov ecx, dword [0x437a7c]
mov dword [esp + 0x644], 0
test ecx, ecx
je 0x40785c
mov dword [esp + 8], eax
lea eax, [esp + 0xc]
lea ecx, [esp + 0x24]
push eax
push ecx
mov ecx, esi
mov byte [esp + 0x64c], 1
call fcn.00407950
mov eax, dword [esi + 4]
test eax, eax
jne 0x40780b
mov eax, dword [esi + 8]
test eax, eax
jne 0x40780b
push 0
push 0
push str.Error_Detecting_Operating_System_Version
call fcn.00426fe8
jmp 0x40783f
mov ecx, esi
call fcn.004088d0
mov ecx, esi
call fcn.00408a60
mov ecx, esi
call fcn.00408b40
lea edx, [esp + 0xc]
mov ecx, esi
push edx
call fcn.00407ca0
lea eax, [esp + 0xc]
mov ecx, esi
push eax
call fcn.00407fd0
mov ecx, esi
call fcn.00406f70
lea ecx, [esp + 8]
mov dword [0x437a7c], 0
mov byte [esp + 0x644], 0
call fcn.0041feb3
jmp 0x407872
push str.SeShutdownPrivilege
mov ecx, esi
call fcn.004078a0
push 0xffffffffffffffff
push 3
call dword [sym.imp.USER32.dll_ExitWindowsEx]
lea ecx, [esp + 4]
mov dword [esp + 0x644], 0xffffffff
call fcn.0041feb3
mov ecx, dword [esp + 0x63c]
pop esi
mov dword fs:[0], ecx
add esp, 0x644
ret
Function at 0x407ca0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x42bc0d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x174
push ebp
push esi
push edi
lea ecx, [esp + 0x54]
call fcn.00401000
push 0
push 0x407ed0
lea ecx, [esp + 0x5c]
mov dword [esp + 0x190], 0
call fcn.004019b0
mov eax, dword [0x437cd4]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x188], 3
call fcn.004016b0
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x7d]
mov byte [esp + 0x7c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x7c]
push 0x104
push eax
mov byte [esp + 0x190], 4
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov edi, str.inf
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x7c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x190]
cmp dword [esi], 0
je 0x407e64
mov edi, esi
mov ebp, 1
lea eax, [esp + 0x7c]
lea ecx, [esp + 0xc]
push eax
call fcn.0042003c
push str..inf
lea ecx, [esp + 0x14]
push str._s
push ecx
call fcn.0041f20b
mov ecx, dword [esp + 0x58]
mov eax, dword [esp + 0x28]
or ecx, 0x927
add esp, 0xc
mov dword [esp + 0x4c], ecx
mov ecx, dword [edi]
or al, 0x10
push ecx
or al, 0x20
lea ecx, [esp + 0x18]
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], eax
call fcn.0042003c
lea ecx, [esp + 0x54]
call fcn.00401990
lea edx, [esp + 0xc]
lea ecx, [esp + 0x54]
push edx
call fcn.00401110
lea ecx, [esp + 0x54]
call fcn.004019d0
lea eax, [esp + 0x7c]
lea ecx, [esp + 0xc]
push eax
call fcn.0042003c
push str..pnf
lea ecx, [esp + 0x14]
push str._s
push ecx
call fcn.0041f20b
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x58]
mov edi, dword [edi]
add esp, 0xc
or al, 0x10
or edx, 0x927
or al, 0x20
push edi
lea ecx, [esp + 0x18]
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x50], edx
mov dword [esp + 0x20], eax
call fcn.0042003c
lea ecx, [esp + 0x54]
call fcn.00401990
lea edx, [esp + 0xc]
lea ecx, [esp + 0x54]
push edx
call fcn.00401110
lea ecx, [esp + 0x54]
call fcn.004019d0
mov eax, dword [esi + 4]
add esi, 4
test eax, eax
mov edi, esi
jne 0x407d76
lea ecx, [esp + 0x14]
mov byte [esp + 0x188], 6
call fcn.0041feb3
lea ecx, [esp + 0x10]
mov byte [esp + 0x188], 5
call fcn.0041feb3
lea ecx, [esp + 0xc]
mov byte [esp + 0x188], 0
call fcn.0041feb3
lea ecx, [esp + 0x54]
mov dword [esp + 0x188], 0xffffffff
call fcn.00401050
mov ecx, dword [esp + 0x180]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x180
ret 4
Function at 0x4088d0
Capabilities:
Delete file
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x42bc8b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x128
push ebx
push ebp
mov ebp, ecx
push edi
xor ebx, ebx
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x31]
mov byte [esp + 0x30], bl
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea ecx, [esp + 0x30]
mov byte [esp + 0x31], bl
push ecx
lea ecx, [esp + 0x10]
call fcn.0041ff21
mov eax, dword [ebp + 4]
mov dword [esp + 0x13c], ebx
cmp eax, ebx
jne 0x40893f
cmp dword [ebp + 8], ebx
je 0x4089df
or ecx, 0xffffffff
mov edi, str.:Program_Files
xor eax, eax
push esi
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x34]
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x34]
and ecx, 3
mov ebp, dword [ebp + 0x54]
rep movsb byte es:[edi], byte [esi]
mov edi, 0x4370c4
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x34]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea eax, [esp + 0x34]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x14]
call fcn.0042003c
push ebx
lea ecx, [esp + 0x14]
call fcn.00420242
pop esi
call fcn.00420acc
cmp eax, ebx
je 0x4089f1
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x74]
jmp 0x4089f3
xor eax, eax
mov eax, dword [eax + 0x1c]
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], 3
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], ebx
mov word [esp + 0x20], 0x410
mov dword [esp + 0x22], ebx
mov dword [esp + 0x26], ebx
call fcn.00427daf
mov eax, dword [eax + 0x10]
lea edx, [esp + 0x10]
push edx
mov dword [esp + 0x2e], eax
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
lea ecx, [esp + 0xc]
mov dword [esp + 0x13c], 0xffffffff
call fcn.0041feb3
mov ecx, dword [esp + 0x134]
pop edi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x134
ret
Function at 0x408a60
Capabilities:
Delete file
Get common file path
Set file attributes

Disassembly:
sub esp, 0x104
lea eax, [esp]
push ebx
push 0x104
mov ebx, ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov eax, dword [ebx + 4]
test eax, eax
jne 0x408a8b
mov eax, dword [ebx + 8]
test eax, eax
je 0x408b15
push ebp
push esi
push edi
or ecx, 0xffffffff
mov edi, 0x4370c4
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x10]
mov ebp, ecx
mov esi, edi
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea edx, [esp + 0x10]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebx + 0x54]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x10]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str._PciUninst.exe
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebp
lea eax, [esp + 4]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea ecx, [esp + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop ebx
add esp, 0x104
ret
Function at 0x408b40
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x210
mov dword [esp], ecx
push str.SOFTWAREMicrosoftWindowsCurrentVersionPCI_Multi_Io_Controller
call fcn.00407680
add esp, 4
lea eax, [esp + 4]
push eax
push 0xf003f
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionPCI_Multi_Io_Controller
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x408c60
mov edx, dword [esp + 4]
push ebx
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
lea ecx, [esp + 0x10]
push 0x104
push ecx
push eax
push edx
mov ebx, 1
call ebp
test eax, eax
jne 0x408c4c
push esi
push edi
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 0x54]
mov ecx, dword [eax - 8]
push ecx
lea ecx, [esp + 0x1c]
push ecx
push eax
call fcn.0041a030
add esp, 0xc
test eax, eax
jne 0x408c2d
mov edi, str.SOFTWAREMicrosoftWindowsCurrentVersionPCI_Multi_Io_Controller_
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x11c]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x11c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x18]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x11c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.00407550
add esp, 8
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x18]
mov eax, ebx
push 0x104
push ecx
push eax
push edx
inc ebx
call ebp
test eax, eax
je 0x408ba4
pop edi
pop esi
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebp
pop ebx
add esp, 0x210
ret
cmp eax, 2
je 0x408c8c
push 0
lea ecx, [esp + 4]
push 0
push ecx
push 0x400
push eax
push 0
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, dword [esp]
push edx
call dword [sym.imp.KERNEL32.dll_LocalFree]
add esp, 0x210
ret

Function at 0x408ca0
Capabilities:
Get system information on windows

Disassembly:
sub esp, 0x24
push esi
push edi
xor esi, esi
mov ecx, 8
xor eax, eax
lea edi, [esp + 0xc]
mov dword [esp + 8], esi
push str.GetNativeSystemInfo
rep stosd dword es:[edi], eax
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, esi
je 0x408cdc
lea ecx, [esp + 8]
push ecx
call eax
jmp 0x408ce7
lea edx, [esp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [esp + 8]
cmp ax, 9
je 0x408cf7
cmp ax, 6
jne 0x408d02
pop edi
mov eax, 1
pop esi
add esp, 0x24
ret
mov eax, esi
pop edi
pop esi
add esp, 0x24
ret
Function at 0x41e4a0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.004111c0
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x41e56b
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x41e56b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x41e51e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x41e529
or bh, 8
and edi, 0x8000000
je 0x41e544
mov eax, dword [0x43f53c]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x41e56b
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret