joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40bf25
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040be73
pop ecx
mov dword [ebp - 4], eax
test eax, eax
pop ecx
je 0x40c00b
push eax
call fcn.0040c00d
test eax, eax
pop ecx
jne 0x40c00b
push ebx
push esi
push edi
mov esi, 0x420aec
push 0x5c
push esi
call dword [sym.imp.MSVCRT.dll_strrchr]
pop ecx
test eax, eax
pop ecx
jne 0x40bf98
lea eax, [ebp - 0x414]
mov ebx, 0x104
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea eax, [ebp - 0x108]
push ebx
push eax
lea eax, [ebp - 0x414]
push eax
call fcn.0040a7c5
add esp, 0xc
jmp 0x40bfb7
sub eax, esi
push esi
push eax
mov ebx, 0x104
push str._.s
lea eax, [ebp - 0x108]
push ebx
push eax
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0x14
mov esi, dword [sym.imp.MSVCRT.dll_strncat]
mov edi, 0x103
push edi
lea eax, [ebp - 0x108]
push 0x41e83c
push eax
call esi
push edi
lea eax, [ebp - 0x108]
push dword [ebp - 4]
push eax
call esi
lea eax, [ebp - 0x108]
push ebx
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.MSVCRT.dll__fullpath]
lea eax, [ebp - 0x20c]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040baba
add esp, 0x30
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40c06c
Capabilities:
Create service
Delete service
Modify service
Persist via windows service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x238
push ebx
push esi
push edi
xor edi, edi
xor esi, esi
xor eax, eax
cmp dword [ebp + 8], 0x67
mov dword [ebp - 8], 0x420c90
mov dword [ebp - 4], 1
setne al
dec eax
and eax, 0xc0000000
add eax, 0x80000000
push eax
push edi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebx, eax
cmp ebx, edi
jne 0x40c0ba
mov dword [ebp - 4], edi
call fcn.0040c182
jmp 0x40c16e
cmp dword [ebp + 8], 0x67
jne 0x40c124
mov esi, 0x118
lea eax, [ebp - 0x238]
push esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push esi
lea eax, [ebp - 0x238]
push 0x420950
push eax
call dword [sym.imp.MSVCRT.dll_wcsncat]
add esp, 0xc
lea eax, [ebp - 0x238]
push edi
push edi
push edi
push edi
push edi
push eax
mov eax, dword [str.Mongoose]
push 1
push 2
push 0x10
push 0xf01ff
push eax
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov esi, eax
cmp esi, edi
je 0x40c0b0
lea eax, [ebp - 8]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2A]
jmp 0x40c16e
cmp dword [ebp + 8], 0x68
jne 0x40c156
push 0x10000
push dword [0x41fcf8]
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
cmp esi, edi
je 0x40c0b0
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x40c16e
jmp 0x40c0b0
push 4
push dword [0x41fcf8]
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
cmp esi, edi
jne 0x40c16e
mov dword [ebp - 4], edi
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push ebx
call esi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402710
Capabilities:
Get graphical window text

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x494d6b
push eax
mov dword fs:[0], esp
sub esp, 0x10c
push ebx
mov ebx, ecx
push esi
mov eax, dword [ebx + 4]
lea esi, [ebx + 4]
test eax, eax
jne 0x40282b
mov eax, dword [ebx + 8]
push ebp
push edi
mov edi, str.SDHelperMainDlg
test eax, eax
mov ebp, str.SDHELPERMAINDLG
je 0x40275a
mov edi, str.TATMainDlg
mov ebp, str.TATMAINDLG
lea ecx, [esp + 0x10]
call fcn.00424490
push 0x20019
push str.softwareTECOcular.3ShareDataTSDS
push SysFreeString
lea ecx, [esp + 0x1c]
mov dword [esp + 0x130], 0
call fcn.004245b0
test eax, eax
je 0x4027a1
push 0
push edi
lea ecx, [esp + 0x18]
call fcn.00424750
lea ecx, [esp + 0x10]
mov dword [esi], eax
call fcn.00424600
mov eax, dword [esi]
test eax, eax
je 0x4027f9
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4027f9
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x19]
mov byte [esp + 0x18], 0
rep stosd dword es:[edi], eax
mov ecx, dword [esi]
push 0x103
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x18]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push ebp
push edx
call fcn.00413352
add esp, 0xc
test eax, eax
je 0x402815
mov eax, dword [ebx + 8]
push esi
test eax, eax
je 0x402808
push 0x4028e0
jmp 0x40280d
push 0x4029e0
push 0
call dword [sym.imp.USER32.dll_EnumDesktopWindows]
lea ecx, [esp + 0x10]
mov dword [esp + 0x124], 0xffffffff
call fcn.00424530
pop edi
pop ebp
mov ecx, dword [esi]
xor eax, eax
test ecx, ecx
mov ecx, dword [esp + 0x114]
pop esi
setne al
pop ebx
mov dword fs:[0], ecx
add esp, 0x118
ret
Function at 0x405ff0
Capabilities:
Set file attributes

Disassembly:
sub esp, 0x664
push ebx
push esi
mov esi, dword [esp + 0x670]
xor ebx, ebx
cmp esi, ebx
je 0x406196
push esi
call fcn.0041329e
add esp, 4
test eax, eax
je 0x406196
push ebx
push ebx
push ebx
push ebx
lea eax, [esp + 0x18]
push ebx
push eax
push esi
mov dword [esp + 0x24], ebx
call fcn.004035f0
add esp, 0x1c
test eax, eax
je 0x406196
mov eax, dword [esp + 8]
cmp eax, 0xffffffff
je 0x406196
test al, 1
je 0x40605c
and al, 0xfe
push eax
push esi
mov dword [esp + 0x10], eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, dword [esp + 8]
test al, 0x10
je 0x406186
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x46a]
mov word [esp + 0x468], bx
push esi
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x46c]
push ecx
stosw word es:[edi], ax
call fcn.00413826
lea edx, [esp + 0x470]
push 0x4ac7a4
push edx
call fcn.004137fc
mov ecx, 0x93
xor eax, eax
lea edi, [esp + 0x22c]
mov dword [esp + 0x228], ebx
add esp, 0x10
rep stosd dword es:[edi], eax
lea eax, [esp + 0x218]
lea ecx, [esp + 0x468]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x406175
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcmpW]
lea edx, [esp + 0x248]
push 0x4ac7e4
push edx
call ebp
test eax, eax
je 0x406156
lea eax, [esp + 0x248]
push 0x4ac7e0
push eax
call ebp
test eax, eax
je 0x406156
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x16]
mov word [esp + 0x14], 0
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x14]
push esi
push ecx
stosw word es:[edi], ax
call fcn.00413826
lea edx, [esp + 0x1c]
push 0x4ac7dc
push edx
call fcn.004137fc
lea eax, [esp + 0x258]
lea ecx, [esp + 0x24]
push eax
push ecx
call fcn.004137fc
lea edx, [esp + 0x2c]
push edx
call fcn.00405ff0
add esp, 0x1c
lea eax, [esp + 0x21c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4060e1
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
pop ebp
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
pop edi
pop esi
pop ebx
add esp, 0x664
ret
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
pop esi
pop ebx
add esp, 0x664
ret
pop esi
xor eax, eax
pop ebx
add esp, 0x664
ret
Function at 0x406200
Capabilities:
Check for time delay via gettickcount
Check if file exists
Copy file
Get file attributes
Move file
Set file attributes

Disassembly:
sub esp, 0x204
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push ebp
mov ebp, dword [esp + 0x214]
push esi
push edi
push ebp
call ebx
cmp eax, 0xffffffff
jne 0x406241
mov eax, dword [esp + 0x220]
mov ecx, dword [esp + 0x218]
push eax
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x204
ret
test al, 1
je 0x406257
and al, 0xfe
push eax
push ebp
mov dword [esp + 0x18], eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, dword [esp + 0x10]
test al, 0x10
je 0x4062d6
mov ecx, 0x7f
xor eax, eax
lea edi, [esp + 0x15]
mov byte [esp + 0x14], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
push eax
push ebp
lea edx, [esp + 0x1c]
push str._s.bak_08X
push edx
call fcn.00413cf4
add esp, 0x10
lea eax, [esp + 0x14]
xor esi, esi
push eax
call ebx
cmp eax, 0xffffffff
je 0x4062ca
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
call edi
push eax
push ebp
lea ecx, [esp + 0x1c]
push str._s.bak_08X
push ecx
call fcn.00413cf4
add esp, 0x10
lea edx, [esp + 0x14]
push edx
call ebx
inc esi
cmp esi, 0xa
jge 0x4062f8
cmp eax, 0xffffffff
jne 0x40629a
lea eax, [esp + 0x14]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_MoveFileA]
mov ecx, dword [esp + 0x220]
mov edx, dword [esp + 0x218]
push ecx
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x204
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x204
ret
Function at 0x406520
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x494e02
push eax
mov dword fs:[0], esp
sub esp, 0x158
push ebx
push esi
mov esi, dword [esp + 0x170]
xor ebx, ebx
cmp esi, ebx
push edi
je 0x406733
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x406733
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x406733
test al, 0x10
je 0x406733
push esi
lea ecx, [esp + 0x10]
call fcn.0047c60e
push 0x5c
lea ecx, [esp + 0x10]
mov dword [esp + 0x170], ebx
call fcn.00478faf
mov ecx, 0x4f
xor eax, eax
lea edi, [esp + 0x28]
mov dword [esp + 0x24], ebx
rep stosd dword es:[edi], eax
lea eax, [esp + 0xc]
push 0x4ac7a0
lea ecx, [esp + 0x14]
push eax
push ecx
call fcn.0047c835
mov eax, dword [eax]
lea edx, [esp + 0x24]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
lea ecx, [esp + 0x10]
mov edi, eax
call fcn.0047c5a0
cmp edi, 0xffffffff
mov ebx, 1
je 0x40671b
mov esi, dword [esp + 0x178]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcmpA]
lea eax, [esp + 0x54]
push 0x4ac7d8
push eax
call ebp
test eax, eax
je 0x4066ff
lea ecx, [esp + 0x54]
push 0x4ac7d4
push ecx
call ebp
test eax, eax
je 0x4066ff
lea edx, [esp + 0x54]
lea ecx, [esp + 0x14]
push edx
call fcn.0047c60e
mov al, byte [esp + 0x28]
mov byte [esp + 0x170], bl
test al, 0x10
push 0x4ac714
je 0x406692
lea eax, [esp + 0x14]
lea ecx, [esp + 0x1c]
push eax
push ecx
call fcn.0047c835
lea edx, [esp + 0x14]
mov byte [esp + 0x170], 2
push edx
push eax
lea eax, [esp + 0x2c]
push eax
call fcn.0047c7cf
mov eax, dword [eax]
push esi
push eax
mov byte [esp + 0x178], 3
call fcn.00406520
add esp, 8
lea ecx, [esp + 0x24]
mov byte [esp + 0x170], 2
call fcn.0047c5a0
mov byte [esp + 0x170], bl
lea ecx, [esp + 0x18]
jmp 0x4066e9
lea ecx, [esp + 0x14]
lea edx, [esp + 0x24]
push ecx
push edx
call fcn.0047c835
lea ecx, [esp + 0x14]
lea edx, [esp + 0x1c]
push ecx
push eax
push edx
mov byte [esp + 0x17c], 4
call fcn.0047c7cf
mov ecx, dword [esi + 8]
push eax
push ecx
mov ecx, esi
mov byte [esp + 0x178], 5
call fcn.0047a7dc
lea ecx, [esp + 0x1c]
mov byte [esp + 0x170], 4
call fcn.0047c5a0
mov byte [esp + 0x170], bl
lea ecx, [esp + 0x20]
call fcn.0047c5a0
lea ecx, [esp + 0x14]
mov byte [esp + 0x170], 0
call fcn.0047c5a0
lea eax, [esp + 0x28]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4065ef
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop ebp
lea ecx, [esp + 0xc]
mov dword [esp + 0x16c], 0xffffffff
call fcn.0047c5a0
mov eax, ebx
jmp 0x406735
xor eax, eax
mov ecx, dword [esp + 0x164]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x164
ret
Function at 0x406750
Capabilities:
Get graphical window text

Disassembly:
call fcn.00427360
test eax, eax
je 0x40676f
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
push eax
push ecx
push edx
call dword [sym.imp.USER32.dll_GetWindowTextW]
ret
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x18]
xor ebp, ebp
test edi, edi
je 0x4067f0
mov esi, dword [esp + 0x1c]
test esi, esi
je 0x4067f0
lea ecx, [esi + esi]
xor eax, eax
mov edx, ecx
push esi
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
call fcn.0047c2db
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x4067f0
mov ecx, esi
xor eax, eax
mov edx, ecx
mov edi, ebx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push esi
and ecx, 3
push ebx
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ebp, eax
test ebp, ebp
je 0x4067f0
push esi
mov esi, dword [esp + 0x1c]
push esi
push 0xffffffffffffffff
push ebx
xor ebp, ebp
call fcn.00402500
add esp, 0x10
test eax, eax
je 0x4067f0
push esi
call fcn.0041329e
add esp, 4
mov ebp, eax
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
ret
Function at 0x424680
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
mov eax, dword [ecx + 4]
push ebx
push ebp
push esi
push edi
mov edi, dword [ecx]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x10], 0
test ecx, ecx
je 0x4246c1
lea edx, [esp + 0x14]
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 + 0x14]
neg esi
sbb esi, esi
not esi
and esi, eax
jmp 0x4246c3
mov esi, edi
test esi, esi
je 0x424738
mov ebx, dword [esp + 0x20]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x20]
push eax
push 0
push ecx
push 0
push ebx
push esi
call ebp
test eax, eax
jne 0x42472d
mov ecx, dword [esp + 0x20]
mov eax, 4
cmp ecx, eax
jne 0x42472d
cmp dword [esp + 0x1c], eax
jbe 0x4246fe
mov dword [esp + 0x1c], eax
lea edx, [esp + 0x1c]
lea eax, [esp + 0x10]
push edx
push eax
push 0
push 0
push ebx
push esi
call ebp
test eax, eax
jne 0x42472d
cmp esi, edi
je 0x42471f
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 0xc
cmp esi, edi
je 0x424738
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 0xc

Function at 0x424750
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
push ebx
push esi
mov esi, dword [ecx]
push edi
test esi, esi
mov dword [esp + 0xc], 0
je 0x4247b5
mov edi, dword [esp + 0x18]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [esp + 0x18]
lea ecx, [esp + 0x10]
push eax
push 0
push ecx
push 0
push edi
push esi
call ebx
test eax, eax
jne 0x4247b5
mov ecx, dword [esp + 0x10]
mov eax, 4
cmp ecx, eax
jne 0x4247b5
cmp dword [esp + 0x18], eax
jbe 0x42479b
mov dword [esp + 0x18], eax
lea edx, [esp + 0x18]
lea eax, [esp + 0xc]
push edx
push eax
push 0
push 0
push edi
push esi
call ebx
test eax, eax
mov eax, dword [esp + 0xc]
je 0x4247b9
mov eax, dword [esp + 0x1c]
pop edi
pop esi
pop ebx
add esp, 8
ret 8
Function at 0x424a50
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x49672f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
mov eax, dword [0x4acb8c]
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x1c], 0
mov dword [esp + 0x10], eax
mov eax, dword [ecx + 4]
mov edi, dword [ecx]
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x28], 1
test ecx, ecx
mov dword [esp + 0x14], edi
je 0x424abb
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 0x424abd
mov esi, edi
test esi, esi
je 0x424b87
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 0x424b7c
mov eax, dword [esp + 0x38]
cmp eax, 1
je 0x424aff
cmp eax, 2
je 0x424aff
cmp eax, 6
je 0x424aff
cmp eax, 7
jne 0x424b7c
mov edx, dword [esp + 0x34]
add edx, 2
push edx
call fcn.0047c2db
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 0x424b62
lea ecx, [esp + 0x14]
call fcn.0047c729
cmp esi, dword [esp + 0x14]
je 0x424b57
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebp
call fcn.0047c304
add esp, 4
jmp 0x424b99
call fcn.0047c304
add esp, 4
lea ecx, [esp + 0x10]
push 0x499e10
call fcn.0047c729
mov edi, dword [esp + 0x14]
cmp esi, edi
je 0x424b87
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x424b99
push eax
lea ecx, [esp + 0x14]
call fcn.0047c729
mov esi, dword [esp + 0x30]
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
call fcn.0047c315
mov dword [esp + 0x1c], 1
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 0
call fcn.0047c5a0
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
Function at 0x424ce0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
test eax, eax
je 0x424d17
mov edx, dword [ebp + 0x14]
lea ecx, [ebp + 0xc]
or edx, 0x20019
push ecx
push edx
push 0
push eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
mov eax, dword [ebp + 0xc]
neg esi
sbb esi, esi
not esi
and esi, eax
jmp 0x424d1a
mov esi, dword [ebp + 8]
test esi, esi
je 0x424ecb
call fcn.00444de0
test eax, eax
je 0x424e04
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x424d3b
mov dword [ebp + 0x10], eax
jmp 0x424d6e
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.004141a0
mov ecx, dword [ebp + 0x10]
mov ebx, esp
push edi
push ebx
push 0xffffffffffffffff
push ecx
push 0
push 0
mov word [ebx], 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebp + 0x10], ebx
mov ecx, dword [ebp + 0x10]
lea edx, [ebp + 0xc]
push edx
lea eax, [ebp + 0x14]
push 0
push eax
push 0
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x424ebf
mov eax, dword [ebp + 0x14]
cmp eax, 1
je 0x424da8
cmp eax, 2
je 0x424da8
cmp eax, 6
je 0x424da8
cmp eax, 7
jne 0x424ebf
mov edx, dword [ebp + 0xc]
add edx, 2
push edx
call fcn.0047c2db
mov ebx, eax
mov eax, dword [ebp + 0xc]
mov edi, ebx
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
mov ecx, dword [ebp + 0x10]
lea eax, [ebp + 0xc]
push eax
push ebx
push 0
push 0
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
push ebx
jne 0x424eaa
mov ecx, dword [ebp + 0x18]
call fcn.00455680
cmp esi, dword [ebp + 8]
je 0x424e94
jmp 0x424e8d
mov ecx, dword [ebp + 0x10]
lea edx, [ebp + 0xc]
push edx
lea eax, [ebp + 0x14]
push 0
push eax
push 0
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x424ebf
mov eax, dword [ebp + 0x14]
cmp eax, 1
je 0x424e3e
cmp eax, 2
je 0x424e3e
cmp eax, 6
je 0x424e3e
cmp eax, 7
jne 0x424ebf
mov edx, dword [ebp + 0xc]
add edx, 2
push edx
call fcn.0047c2db
mov ebx, eax
mov eax, dword [ebp + 0xc]
mov edi, ebx
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
mov ecx, dword [ebp + 0x10]
lea eax, [ebp + 0xc]
push eax
push ebx
push 0
push 0
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
push ebx
jne 0x424eaa
mov ecx, dword [ebp + 0x18]
call fcn.00455750
cmp esi, dword [ebp + 8]
je 0x424e94
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
call fcn.0047c304
add esp, 4
mov eax, 1
lea esp, [ebp - 0xc]
pop edi
pop esi
pop ebx
pop ebp
ret
call fcn.0047c304
mov ecx, dword [ebp + 0x18]
add esp, 4
push 0x499e10
call fcn.00455750
cmp esi, dword [ebp + 8]
je 0x424ecb
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea esp, [ebp - 0xc]
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x425910
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4967f8
push eax
mov eax, dword [ebp + 0xc]
mov dword fs:[0], esp
push ebx
push esi
test eax, eax
push edi
je 0x425966
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 0x425969
mov esi, dword [ebp + 8]
test esi, esi
je 0x425a4f
call fcn.00444de0
test eax, eax
je 0x4259ea
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x425985
xor ebx, ebx
jmp 0x4259b5
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.004141a0
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 fcn.0041329e
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 0x425a43
cmp esi, dword [ebp + 8]
je 0x4259e3
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
jmp 0x425a51
mov edx, dword [ebp + 0x18]
lea ecx, [ebp + 0x18]
push edx
call fcn.0044f220
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 0x425a34
cmp esi, dword [ebp + 8]
je 0x425a1e
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp + 0x18]
mov dword [ebp - 4], 0xffffffff
call fcn.0044fa30
mov eax, 1
jmp 0x425a51
lea ecx, [ebp + 0x18]
mov dword [ebp - 4], 0xffffffff
call fcn.0044fa30
cmp esi, dword [ebp + 8]
je 0x425a4f
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