joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404c40
Capabilities:
Set registry value

Disassembly:
sub esp, 0x404
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 4]
push esi
push edi
mov edi, dword [esp + 0x410]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
mov edx, dword [esp + 0x414]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
test edx, edx
rep movsb byte es:[edi], byte [esi]
je 0x404cd6
mov edi, 0x409570
or ecx, 0xffffffff
xor eax, eax
push ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push ebp
lea ebx, [esp + 0x14]
mov esi, edi
mov ebp, ecx
mov edi, ebx
or ecx, 0xffffffff
lea ebx, [esp + 0x14]
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
pop ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebx
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
pop ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 8]
push 0
push eax
push 0
push 0xf003f
push 0
push 0
lea ecx, [esp + 0x24]
push 0
push ecx
push 0x80000000
call dword [0x407014]
test eax, eax
je 0x404d09
pop edi
xor eax, eax
pop esi
add esp, 0x404
ret
mov edx, dword [esp + 0x418]
test edx, edx
je 0x404d30
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
push edx
mov edx, dword [esp + 0x10]
push 1
push eax
push eax
push edx
call dword [section..rdata]
mov eax, dword [esp + 8]
push eax
call dword [0x40700c]
pop edi
mov eax, 1
pop esi
add esp, 0x404
ret

Function at 0x4061b0
Capabilities:
Encode data using xor
Encrypt data using tea

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x24]
mov eax, dword [edi]
push eax
call fcn.00406b96
mov ecx, dword [edi + 4]
mov esi, eax
push ecx
call fcn.00406b96
mov ebp, dword [esp + 0x28]
lea edx, [esp + 0x10]
mov edi, eax
lea ebx, [esp + 0x10]
sub ebp, edx
mov dword [esp + 0x24], 4
mov eax, dword [ebx + ebp]
push eax
call fcn.00406b96
mov dword [ebx], eax
mov eax, dword [esp + 0x24]
add ebx, 4
dec eax
mov dword [esp + 0x24], eax
jne 0x4061e6
mov ecx, dword [esp + 0x1c]
xor eax, eax
mov dword [esp + 0x24], 0x10
mov ebx, dword [esp + 0x14]
mov ebp, dword [esp + 0x10]
mov edx, edi
sub eax, 0x61c88647
shr edx, 5
add edx, ebx
mov ebx, edi
shl ebx, 4
add ebx, ebp
mov ebp, dword [esp + 0x18]
xor edx, ebx
lea ebx, [eax + edi]
xor edx, ebx
add esi, edx
mov edx, esi
mov ebx, esi
shr edx, 5
shl ebx, 4
add edx, ecx
add ebx, ebp
xor edx, ebx
lea ebx, [eax + esi]
xor edx, ebx
add edi, edx
mov edx, dword [esp + 0x24]
dec edx
mov dword [esp + 0x24], edx
jne 0x40620d
push esi
call fcn.00406b90
mov esi, dword [esp + 0x2c]
push edi
mov dword [esi], eax
call fcn.00406b90
mov dword [esi + 4], eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x406280
Capabilities:
Encode data using xor
Encrypt data using tea

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
mov esi, dword [esp + 0x20]
push edi
mov eax, dword [esi]
push eax
call fcn.00406b96
mov ecx, dword [esi + 4]
mov edi, eax
push ecx
call fcn.00406b96
mov ebp, dword [esp + 0x28]
lea edx, [esp + 0x10]
mov esi, eax
lea ebx, [esp + 0x10]
sub ebp, edx
mov dword [esp + 0x24], 4
mov eax, dword [ebx + ebp]
push eax
call fcn.00406b96
mov dword [ebx], eax
mov eax, dword [esp + 0x24]
add ebx, 4
dec eax
mov dword [esp + 0x24], eax
jne 0x4062b6
mov ecx, dword [esp + 0x14]
mov eax, 0xe3779b90
mov dword [esp + 0x24], 0x10
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x18]
mov edx, edi
shr edx, 5
add edx, ebx
mov ebx, edi
shl ebx, 4
add ebx, ebp
mov ebp, dword [esp + 0x10]
xor edx, ebx
lea ebx, [eax + edi]
xor edx, ebx
sub esi, edx
mov edx, esi
mov ebx, esi
shr edx, 5
shl ebx, 4
add edx, ecx
add ebx, ebp
xor edx, ebx
lea ebx, [eax + esi]
xor edx, ebx
add eax, 0x61c88647
sub edi, edx
mov edx, dword [esp + 0x24]
dec edx
mov dword [esp + 0x24], edx
jne 0x4062e0
push edi
call fcn.00406b90
mov edi, dword [esp + 0x2c]
push esi
mov dword [edi], eax
call fcn.00406b90
mov dword [edi + 4], eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x403c50
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
lea eax, [ebp - 4]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
lea ecx, [ebp - 0x10]
push ecx
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov dword [ebp - 0x14], 1
mov dword [ebp - 8], 2
push 0
push 0
push 0
lea edx, [ebp - 0x14]
push edx
push 0
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
mov esp, ebp
pop ebp
ret

Function at 0x403cd0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x130
mov dword [ebp - 0x130], ecx
mov dword [ebp - 4], 0
mov eax, dword [0x449df8]
movzx ecx, byte [eax + 0x449c24]
test ecx, ecx
jne 0x403d0d
push 0x43ad40
lea edx, [ebp - 0x118]
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 8
jmp 0x403d54
mov eax, dword [0x449df8]
movzx ecx, byte [eax + 0x449c24]
test ecx, ecx
je 0x403d54
mov edx, dword [0x449df8]
movzx eax, byte [edx + 0x449c24]
cmp eax, 0xff
je 0x403d54
mov ecx, dword [0x449df8]
movzx edx, byte [ecx + 0x449c24]
push edx
push 0x43ad6c
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea ecx, [ebp - 0x11c]
push ecx
push 0x20019
push 0
lea edx, [ebp - 0x118]
push edx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x124], eax
cmp dword [ebp - 0x124], 0
je 0x403d8a
xor al, al
jmp 0x403e93
mov dword [ebp - 0x120], 4
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x12c]
push ecx
lea edx, [ebp - 0x120]
push edx
push 0
push 0x43ad98
mov eax, dword [ebp - 0x11c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x403dd9
mov ecx, dword [ebp - 0x11c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
jmp 0x403e93
mov edx, dword [ebp - 0x12c]
mov dword [ebp - 0x128], edx
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x12c]
push ecx
lea edx, [ebp - 0x120]
push edx
push 0
push 0x43adac
mov eax, dword [ebp - 0x11c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x403e20
mov ecx, dword [ebp - 0x11c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
jmp 0x403e93
mov edx, dword [ebp - 0x130]
mov al, byte [ebp - 0x12c]
mov byte [edx + 0x88], al
mov dword [ebp - 8], 0
jmp 0x403e44
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 0x130]
movzx eax, byte [edx + 0x88]
cmp dword [ebp - 8], eax
jge 0x403e84
mov ecx, dword [ebp - 8]
shl ecx, 3
mov edx, dword [ebp - 0x128]
shr edx, cl
and edx, 0xff
mov eax, dword [ebp - 0x130]
add eax, dword [ebp - 4]
mov byte [eax + 0x84], dl
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
jmp 0x403e3b
mov edx, dword [ebp - 0x11c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
mov esp, ebp
pop ebp
ret
Function at 0x40e390
Capabilities:
Get common file path
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov dword [ebp - 0x104], ecx
mov eax, dword [str._system32drivers_]
mov dword [ebp - 0xc4], eax
mov ecx, dword [0x43c648]
mov dword [ebp - 0xc0], ecx
mov edx, dword [0x43c64c]
mov dword [ebp - 0xbc], edx
mov eax, dword [0x43c650]
mov dword [ebp - 0xb8], eax
mov cx, word [0x43c654]
mov word [ebp - 0xb4], cx
mov dl, byte [0x43c656]
mov byte [ebp - 0xb2], dl
xor eax, eax
mov dword [ebp - 0xb1], eax
mov dword [ebp - 0xad], eax
mov dword [ebp - 0xa9], eax
mov dword [ebp - 0xa5], eax
mov dword [ebp - 0xa1], eax
mov dword [ebp - 0x9d], eax
mov dword [ebp - 0x99], eax
mov word [ebp - 0x95], ax
mov byte [ebp - 0x93], al
push 0x14
push 0
lea ecx, [ebp - 0x90]
push ecx
call fcn.00421600
add esp, 0xc
push 0x64
push 0
lea edx, [ebp - 0x68]
push edx
call fcn.00421600
add esp, 0xc
mov eax, dword [ebp + 8]
movzx ecx, byte [eax + 0x449c24]
test ecx, ecx
jne 0x40e467
push str.sisraid.sys
lea edx, [ebp - 0x90]
push edx
call fcn.00421660
add esp, 8
jmp 0x40e486
mov eax, dword [ebp + 8]
movzx ecx, byte [eax + 0x449c24]
push ecx
push str.sisraid_d.sys
lea edx, [ebp - 0x90]
push edx
call fcn.00421660
add esp, 0xc
lea eax, [ebp - 0x90]
push eax
lea ecx, [ebp - 0xc4]
push ecx
call fcn.00421060
add esp, 8
push 0x64
lea edx, [ebp - 0x68]
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [ebp - 0xc4]
push eax
lea ecx, [ebp - 0x68]
push ecx
call fcn.00421060
add esp, 8
mov dword [ebp - 0x100], 0
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x7c], 0
lea edx, [ebp - 0x100]
push edx
lea eax, [ebp - 0x68]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov dword [ebp - 0x70], eax
cmp dword [ebp - 0x70], 0
jne 0x40e4fc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x78], eax
xor al, al
jmp 0x40e5ea
mov ecx, dword [ebp - 0x70]
push ecx
call fcn.00421c8f
add esp, 4
mov dword [ebp - 0xc8], eax
mov edx, dword [ebp - 0xc8]
push edx
mov eax, dword [ebp - 0x70]
push eax
push 0
lea ecx, [ebp - 0x68]
push ecx
call sub.VERSION.dll_GetFileVersionInfoA
lea edx, [ebp - 0x6c]
push edx
lea eax, [ebp - 0x7c]
push eax
push 0x43c674
mov ecx, dword [ebp - 0xc8]
push ecx
call sub.VERSION.dll_VerQueryValueA
push 0x34
push 0
lea edx, [ebp - 0xfc]
push edx
call fcn.00421600
add esp, 0xc
push 0x34
mov eax, dword [ebp - 0x7c]
push eax
lea ecx, [ebp - 0xfc]
push ecx
call fcn.00421150
add esp, 0xc
mov edx, dword [ebp - 0xf4]
mov dword [ebp - 0x78], edx
mov eax, dword [ebp - 0xf0]
mov dword [ebp - 0x74], eax
mov ecx, dword [ebp + 8]
movzx edx, byte [ecx + 0x449c24]
test edx, edx
je 0x40e594
mov eax, dword [ebp + 8]
movzx ecx, byte [eax + 0x449c24]
cmp ecx, 1
jne 0x40e5ad
mov edx, dword [ebp - 0x74]
and edx, 0xffff
cmp edx, 0x424
jae 0x40e5a9
xor al, al
jmp 0x40e5ea
mov al, 1
jmp 0x40e5ea
mov eax, dword [ebp + 8]
movzx ecx, byte [eax + 0x449c24]
cmp ecx, 2
jne 0x40e5d5
mov edx, dword [ebp - 0x74]
and edx, 0xffff
cmp edx, 0x7ee
jae 0x40e5d1
xor al, al
jmp 0x40e5ea
mov al, 1
jmp 0x40e5ea
mov eax, dword [ebp + 8]
movzx ecx, byte [eax + 0x449c24]
cmp ecx, 4
jne 0x40e5e8
mov al, 1
jmp 0x40e5ea
xor al, al
mov esp, ebp
pop ebp
ret 4
Function at 0x40e640
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x190
mov dword [ebp - 0x190], ecx
mov dword [ebp - 0x188], 0xff
push 0x43c694
lea eax, [ebp - 0x178]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 8
lea ecx, [ebp - 0x17c]
push ecx
push 0x20019
push 0
lea edx, [ebp - 0x178]
push edx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x188], eax
cmp dword [ebp - 0x188], 0
je 0x40e6b5
push 0x43c6b0
lea eax, [ebp - 0x70]
push eax
call fcn.00421660
add esp, 8
xor al, al
jmp 0x40e873
mov dword [ebp - 0x184], 4
mov dword [ebp - 4], 4
lea ecx, [ebp - 4]
push ecx
lea edx, [ebp - 0x18c]
push edx
lea eax, [ebp - 0x184]
push eax
push 0
push 0x43c704
mov ecx, dword [ebp - 0x17c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x40e704
mov edx, dword [ebp - 0x17c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
jmp 0x40e873
movzx eax, byte [ebp - 0x18c]
and eax, 0xff
mov byte [ebp - 0x17d], al
movsx ecx, byte [ebp - 0x17d]
imul ecx, ecx, 0x98
mov byte [ecx + 0x449e3c], 1
lea edx, [ebp - 4]
push edx
lea eax, [ebp - 0x18c]
push eax
lea ecx, [ebp - 0x184]
push ecx
push 0
push 0x43c714
mov edx, dword [ebp - 0x17c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x40e768
mov eax, dword [ebp - 0x17c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
jmp 0x40e873
movzx ecx, byte [ebp - 0x18c]
and ecx, 0xff
mov byte [ebp - 0x17d], cl
movsx edx, byte [ebp - 0x17d]
imul edx, edx, 0x98
mov byte [edx + 0x449e3c], 1
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 0x18c]
push ecx
lea edx, [ebp - 0x184]
push edx
push 0
push 0x43c724
mov eax, dword [ebp - 0x17c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x40e7cd
mov ecx, dword [ebp - 0x17c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
jmp 0x40e873
movzx edx, byte [ebp - 0x18c]
and edx, 0xff
mov byte [ebp - 0x17d], dl
movsx eax, byte [ebp - 0x17d]
cmp eax, 0xff
je 0x40e864
movsx ecx, byte [ebp - 0x17d]
imul ecx, ecx, 0x98
mov byte [ecx + 0x449e3c], 1
lea edx, [ebp - 4]
push edx
lea eax, [ebp - 0x18c]
push eax
lea ecx, [ebp - 0x184]
push ecx
push 0
push 0x43c734
mov edx, dword [ebp - 0x17c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x40e83d
mov eax, dword [ebp - 0x17c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
jmp 0x40e873
movzx ecx, byte [ebp - 0x18c]
and ecx, 0xff
mov byte [ebp - 0x17d], cl
movsx edx, byte [ebp - 0x17d]
imul edx, edx, 0x98
mov byte [edx + 0x449e3c], 1
mov eax, dword [ebp - 0x17c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
mov esp, ebp
pop ebp
ret
Function at 0x40ef50
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43854e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x98
mov dword [ebp - 0x80], str.Scsi0:
mov dword [ebp - 0x7c], str.Scsi1:
mov dword [ebp - 0x78], str.Scsi2:
mov dword [ebp - 0x74], str.Scsi3:
mov dword [ebp - 0x70], str.Scsi4:
mov dword [ebp - 0x6c], str.Scsi5:
mov dword [ebp - 0x68], str.Scsi6:
mov dword [ebp - 0x64], 0
lea ecx, [ebp - 0x14]
call fcn.00408d70
mov dword [ebp - 4], 0
mov byte [ebp - 0x5d], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x10], 0
jmp 0x40efd2
mov eax, dword [ebp - 0x10]
add eax, 1
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 7
jge 0x40f150
push 0x40
push 0
lea ecx, [ebp - 0x5c]
push ecx
call fcn.00421600
add esp, 0xc
mov byte [ebp - 0x15], 0xff
push 0x40
lea edx, [ebp - 0x5c]
push edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + eax*4 - 0x80]
push ecx
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceA]
mov dword [ebp - 0x64], eax
cmp dword [ebp - 0x64], 0
je 0x40f14b
lea edx, [ebp - 0x5c]
push edx
lea ecx, [ebp - 0x14]
call fcn.00408d90
push 0
push str.SiSRaid
lea ecx, [ebp - 0x14]
call fcn.0040f180
cmp eax, 0xffffffff
jne 0x40f033
jmp 0x40efc9
mov al, byte [ebp - 0x5d]
add al, 1
mov byte [ebp - 0x5d], al
movzx ecx, byte [ebp - 0x5d]
cmp ecx, dword [ebp + 0x10]
jne 0x40f14b
movsx edx, byte [ebp - 0x47]
test edx, edx
jne 0x40f056
mov byte [ebp - 0x15], 0
jmp 0x40f081
movsx eax, byte [ebp - 0x48]
cmp eax, 0x31
jne 0x40f065
mov byte [ebp - 0x15], 1
jmp 0x40f081
movsx ecx, byte [ebp - 0x48]
cmp ecx, 0x32
jne 0x40f074
mov byte [ebp - 0x15], 2
jmp 0x40f081
movsx edx, byte [ebp - 0x48]
cmp edx, 0x34
jne 0x40f081
mov byte [ebp - 0x15], 4
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + eax*4 - 0x80]
push ecx
lea ecx, [ebp - 0x84]
call fcn.0040f440
mov dword [ebp - 0x94], eax
mov edx, dword [ebp - 0x94]
mov dword [ebp - 0x98], edx
mov byte [ebp - 4], 1
push 0x43ca10
lea ecx, [ebp - 0x88]
call fcn.0040f440
mov dword [ebp - 0x9c], eax
mov eax, dword [ebp - 0x9c]
mov dword [ebp - 0xa0], eax
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x98]
push ecx
mov edx, dword [ebp - 0xa0]
push edx
lea eax, [ebp - 0x8c]
push eax
call fcn.0040f200
add esp, 0xc
mov dword [ebp - 0xa4], eax
mov ecx, dword [ebp - 0xa4]
call fcn.0040f4b0
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00421050
add esp, 8
lea ecx, [ebp - 0x8c]
call fcn.00405aa0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x88]
call fcn.00405aa0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x84]
call fcn.00405aa0
lea ecx, [ebp - 0x14]
call fcn.0040f4b0
push eax
mov edx, dword [ebp + 0xc]
push edx
call fcn.00421050
add esp, 8
jmp 0x40f150
jmp 0x40efc9
mov al, byte [ebp - 0x15]
mov byte [ebp - 0x8d], al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00405aa0
mov al, byte [ebp - 0x8d]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x416050
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x184
mov dword [ebp - 0x184], ecx
push 0x43d818
lea eax, [ebp - 0x178]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 8
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 0x17c]
push edx
push 0
push 0xf003f
push 0
push 0
push 0
lea eax, [ebp - 0x178]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov dword [ebp - 0x180], eax
cmp dword [ebp - 0x180], 0
je 0x4160d2
push str.Can_not_create_open_a_new_registry_to_HKEY_LOCAL_MACHINE_Software_____n
lea ecx, [ebp - 0x70]
push ecx
call fcn.00421660
add esp, 8
push 0
push 0
lea edx, [ebp - 0x70]
push edx
call fcn.00434ce8
xor al, al
jmp 0x41625b
mov eax, dword [ebp - 0x184]
mov ecx, dword [eax + 0xd4]
movzx edx, byte [ecx + 0x28]
and edx, 0xff
mov dword [ebp - 4], edx
push 4
lea eax, [ebp - 4]
push eax
push 4
push 0
push str.Sync_Start
mov ecx, dword [ebp - 0x17c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x41611f
mov edx, dword [ebp - 0x17c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
jmp 0x41625b
mov eax, dword [ebp - 0x184]
mov ecx, dword [eax + 0xd4]
movzx edx, byte [ecx]
and edx, 0xff
mov dword [ebp - 4], edx
push 4
lea eax, [ebp - 4]
push eax
push 4
push 0
push str.SourceDevice_1
mov ecx, dword [ebp - 0x17c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x41616b
mov edx, dword [ebp - 0x17c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
jmp 0x41625b
mov eax, dword [ebp - 0x184]
mov ecx, dword [eax + 0xd4]
movzx edx, byte [ecx + 4]
and edx, 0xff
mov dword [ebp - 4], edx
push 4
lea eax, [ebp - 4]
push eax
push 4
push 0
push str.TargetDevice_1
mov ecx, dword [ebp - 0x17c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x4161b8
mov edx, dword [ebp - 0x17c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
jmp 0x41625b
mov eax, dword [ebp - 0x184]
mov ecx, dword [eax + 0xd4]
movzx edx, byte [ecx + 1]
and edx, 0xff
mov dword [ebp - 4], edx
push 4
lea eax, [ebp - 4]
push eax
push 4
push 0
push str.SourceDevice_2
mov ecx, dword [ebp - 0x17c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x416202
mov edx, dword [ebp - 0x17c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
jmp 0x41625b
mov eax, dword [ebp - 0x184]
mov ecx, dword [eax + 0xd4]
movzx edx, byte [ecx + 5]
and edx, 0xff
mov dword [ebp - 4], edx
push 4
lea eax, [ebp - 4]
push eax
push 4
push 0
push str.TargetDevice_2
mov ecx, dword [ebp - 0x17c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x41624c
mov edx, dword [ebp - 0x17c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
jmp 0x41625b
mov eax, dword [ebp - 0x17c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
mov esp, ebp
pop ebp
ret
Function at 0x418100
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov dword [ebp - 0x114], ecx
mov eax, dword [0x449df8]
movzx ecx, byte [eax + 0x449c24]
test ecx, ecx
jne 0x418136
push 0x43e0c0
lea edx, [ebp - 0x108]
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 8
jmp 0x41817d
mov eax, dword [0x449df8]
movzx ecx, byte [eax + 0x449c24]
test ecx, ecx
je 0x41817d
mov edx, dword [0x449df8]
movzx eax, byte [edx + 0x449c24]
cmp eax, 0xff
je 0x41817d
mov ecx, dword [0x449df8]
movzx edx, byte [ecx + 0x449c24]
push edx
push 0x43e0ec
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea ecx, [ebp - 0x10c]
push ecx
push 0x20006
push 0
lea edx, [ebp - 0x108]
push edx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x110], eax
cmp dword [ebp - 0x110], 0
je 0x4181b3
xor al, al
jmp 0x418264
push str.Adapternumber
mov eax, dword [ebp - 0x10c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push str.StartFlag
mov ecx, dword [ebp - 0x10c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push 0x43e134
mov edx, dword [ebp - 0x10c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push 0x43e148
mov eax, dword [ebp - 0x10c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push str.SourceDevice
mov ecx, dword [ebp - 0x10c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push str.DestinationDevice
mov edx, dword [ebp - 0x10c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push str.CopyNum
mov eax, dword [ebp - 0x10c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push str.AvailRaidName
mov ecx, dword [ebp - 0x10c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push str.SourceSignature
mov edx, dword [ebp - 0x10c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov eax, dword [ebp - 0x10c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
mov esp, ebp
pop ebp
ret
Function at 0x41c5a0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 0x18], ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 8]
mov dword [ebp - 0x1c], edx
cmp dword [ebp - 0x1c], 0
je 0x41c5cf
cmp dword [ebp - 0x1c], 4
je 0x41c5cf
cmp dword [ebp - 0x1c], 7
je 0x41c5d8
jmp 0x41c63b
mov byte [0x44a2b9], 1
jmp 0x41c63b
mov eax, dword [0x449dfc]
mov dword [ebp - 0x10], eax
mov ecx, dword [0x4499e0]
mov dword [ebp - 0xc], ecx
mov edx, dword [0x449a3c]
mov dword [ebp - 0x14], edx
mov ecx, dword [ebp - 0x10]
call fcn.0040ba10
mov ecx, dword [ebp - 0xc]
call fcn.004039f0
mov ecx, dword [ebp - 0x14]
call fcn.00406790
mov byte [0x44a2b9], 0
mov eax, dword [ebp - 0x18]
add eax, 0x8c
push eax
push 0
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 0x1c]
push edx
push 0x41c1a0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [ebp - 0x18]
mov dword [ecx + 0x88], eax
mov eax, 1
mov esp, ebp
pop ebp
ret 8

Function at 0x41c740
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x178
mov byte [0x44a2b8], 0
mov dword [ebp - 0x178], 0xff
push str.SoftwareSiS_RAID_Software
lea eax, [ebp - 0x170]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 8
lea ecx, [ebp - 0x174]
push ecx
push 0x20006
push 0
lea edx, [ebp - 0x170]
push edx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x178], eax
cmp dword [ebp - 0x178], 0
je 0x41c7b6
push str.Can_not_open_the_registry_key_HKEY_LOCAL_MACHINE_Software_SiS_RAID_Software_____n
lea eax, [ebp - 0x68]
push eax
call fcn.00421660
add esp, 8
xor al, al
jmp 0x41c854
mov ecx, dword [ebp - 0x174]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x178], 0xff
push str.Software
lea edx, [ebp - 0x170]
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 8
lea eax, [ebp - 0x174]
push eax
push 0x20006
push 0
lea ecx, [ebp - 0x170]
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push str.SiS_RAID_Software
mov edx, dword [ebp - 0x174]
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov dword [ebp - 0x178], eax
cmp dword [ebp - 0x178], 0
je 0x41c845
push str.Can_not_clear_the_registry_key_HKEY_LOCAL_MACHINE_Software_SiS_RAID_Software_____n
lea eax, [ebp - 0x68]
push eax
call fcn.00421660
add esp, 8
push 0
push 0
lea ecx, [ebp - 0x68]
push ecx
call fcn.00434ce8
xor al, al
jmp 0x41c854
mov edx, dword [ebp - 0x174]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
mov esp, ebp
pop ebp
ret