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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 1
mov esi, ecx
push 0
lea eax, [esi + 8]
push eax
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [esi + 0x408], eax
test eax, eax
je 0x49735f
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
or eax, 0xffffffff
jmp 0x49739b
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0
push dword [ebp + 8]
mov dword [ebp - 8], 1
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
mov dword [esi + 0x408], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [esi + 0x408]
test esi, esi
je 0x497398
push esi
jmp 0x497354
mov eax, dword [ebp - 8]
pop esi
leave
ret 4

Function at 0x4973a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 1
mov esi, ecx
push 0
lea eax, [esi + 8]
push eax
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [esi + 0x408], eax
test eax, eax
je 0x4973c9
push eax
jmp 0x497405
push 0
push 0
lea eax, [ebp - 8]
push eax
push 0
push dword [ebp + 8]
mov dword [ebp - 8], 1
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
mov dword [esi + 0x408], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [esi + 0x408]
test esi, esi
jne 0x497404
mov eax, dword [ebp - 8]
jmp 0x49740d
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop esi
leave
ret 4

Function at 0x497412
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0xa8]
sub esp, 0x128
mov eax, dword [0x590cec]
xor eax, ebp
mov dword [ebp + 0xa4], eax
push esi
lea eax, [ebp - 0x60]
push eax
push 0xf003f
mov esi, ecx
push 0
lea eax, [esi + 8]
push eax
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [esi + 0x408], eax
test eax, eax
je 0x49745d
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
or eax, 0xffffffff
jmp 0x4974b2
lea eax, [ebp - 0x80]
push eax
push 0
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x78]
push eax
push 0
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x68]
push eax
push 0
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x5c]
push eax
push dword [ebp - 0x60]
mov dword [ebp - 0x64], 0xff
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
push dword [ebp - 0x60]
mov dword [esi + 0x408], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [esi + 0x408]
test esi, esi
je 0x4974af
push esi
jmp 0x497452
mov eax, dword [ebp - 0x68]
mov ecx, dword [ebp + 0xa4]
xor ecx, ebp
pop esi
call fcn.004f41b5
add ebp, 0xa8
leave
ret
Function at 0x4974c8
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0xa8]
sub esp, 0x128
mov eax, dword [0x590cec]
xor eax, ebp
mov dword [ebp + 0xa4], eax
push esi
lea eax, [ebp - 0x60]
push eax
push 0xf003f
mov esi, ecx
push 0
lea eax, [esi + 8]
push eax
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [esi + 0x408], eax
test eax, eax
je 0x497513
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
or eax, 0xffffffff
jmp 0x497568
lea eax, [ebp - 0x80]
push eax
push 0
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x68]
push eax
push 0
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x70]
push eax
push 0
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x5c]
push eax
push dword [ebp - 0x60]
mov dword [ebp - 0x64], 0xff
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
push dword [ebp - 0x60]
mov dword [esi + 0x408], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [esi + 0x408]
test esi, esi
je 0x497565
push esi
jmp 0x497508
mov eax, dword [ebp - 0x68]
mov ecx, dword [ebp + 0xa4]
xor ecx, ebp
pop esi
call fcn.004f41b5
add ebp, 0xa8
leave
ret

Function at 0x497752
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
lea eax, [ebp - 4]
push eax
push 0xf003f
mov esi, ecx
xor edi, edi
push edi
lea eax, [esi + 8]
push eax
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [esi + 0x408], eax
cmp eax, edi
je 0x49777f
push eax
jmp 0x4977ae
push edi
push edi
push edi
push edi
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
mov dword [esi + 0x408], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [esi + 0x408]
cmp esi, edi
jne 0x4977ad
xor eax, eax
inc eax
jmp 0x4977b6
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop edi
pop esi
leave
ret 4
Function at 0x497845
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov eax, 0xff
xor edi, edi
inc edi
push eax
mov esi, ecx
mov dword [ebp - 4], edi
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], edi
call fcn.004b6e34
mov ebx, eax
pop ecx
test ebx, ebx
jne 0x49787e
push 8
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp + 0xc]
jmp 0x49791b
push dword [ebp + 8]
mov ecx, esi
call fcn.004973a0
mov dword [ebp - 4], eax
cmp eax, edi
je 0x497899
cmp eax, 7
je 0x497899
cmp eax, 2
jne 0x4978fd
lea eax, [ebp - 8]
push eax
push 0x20019
xor edi, edi
push edi
lea eax, [esi + 8]
push eax
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [esi + 0x408], eax
cmp eax, edi
je 0x4978c4
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x4978ff
lea eax, [ebp - 0x10]
push eax
push ebx
lea eax, [ebp - 4]
push eax
push edi
push dword [ebp + 8]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [esi + 0x408], eax
cmp eax, edi
je 0x4978e7
mov dword [ebp - 0xc], edi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0xc], edi
jne 0x497919
push dword [esi + 0x408]
jmp 0x4978bc
xor edi, edi
cmp dword [ebp + 0xc], edi
je 0x497910
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x497919
push ebx
call fcn.004b6e29
pop ecx
xor ebx, ebx
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x497922
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
push dword [ebp + 8]
xor edi, edi
inc edi
mov esi, ecx
mov dword [ebp - 4], edi
mov ebx, edi
call fcn.004973a0
push dword [ebp + 8]
mov ecx, esi
mov dword [ebp - 4], eax
call fcn.0049732d
mov dword [ebp - 0xc], eax
cmp dword [ebp - 4], edi
je 0x497966
cmp dword [ebp - 4], 7
je 0x497966
cmp dword [ebp - 4], 2
je 0x497966
mov eax, dword [ebp + 0xc]
jmp 0x4979fa
push eax
call fcn.004b6e34
mov edi, eax
pop ecx
test edi, edi
jne 0x49797d
push 8
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x49795e
lea eax, [ebp - 8]
push eax
push 0x20019
push 0
lea eax, [esi + 8]
push eax
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [esi + 0x408], eax
test eax, eax
je 0x4979a1
push eax
jmp 0x4979d7
lea eax, [ebp - 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
push dword [ebp + 8]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [esi + 0x408], eax
test eax, eax
je 0x4979c4
xor ebx, ebx
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x4979f8
push dword [esi + 0x408]
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp dword [ebp + 0xc], 0
je 0x4979ef
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x4979f8
push edi
call fcn.004b6e29
pop ecx
xor edi, edi
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x497a01
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push 4
pop eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 4]
push eax
push 0x20019
mov esi, ecx
push 0
lea eax, [esi + 8]
push eax
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [esi + 0x408], eax
test eax, eax
je 0x497a40
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp + 0xc]
jmp 0x497a7d
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [esi + 0x408], eax
test eax, eax
je 0x497a71
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
pop esi
leave
ret 8

Function at 0x497b08
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push 4
pop eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 4]
push eax
push 0x20019
mov esi, ecx
push 0
lea eax, [esi + 8]
push eax
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [esi + 0x408], eax
test eax, eax
je 0x497b47
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp + 0xc]
jmp 0x497b84
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [esi + 0x408], eax
test eax, eax
je 0x497b78
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
pop esi
leave
ret 8

Function at 0x497b89
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
lea eax, [ebp - 4]
push eax
push 0x20019
mov esi, ecx
push 0
lea eax, [esi + 8]
push eax
push dword [esi]
xor edi, edi
mov dword [ebp - 8], 3
inc edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [esi + 0x408], eax
test eax, eax
je 0x497bc8
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x497bff
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 8]
push eax
push 0
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [esi + 0x408], eax
test eax, eax
je 0x497bf4
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor edi, edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
leave
ret 0xc
Function at 0x497c05
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x590cec]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x10c]
push eax
push 0x20019
mov esi, ecx
push 0
lea eax, [esi + 8]
push eax
push dword [esi]
xor ebx, ebx
inc ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [esi + 0x408], eax
test eax, eax
je 0x497c52
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x497c9e
push 0x104
lea eax, [ebp - 0x108]
push eax
push dword [ebp + 0xc]
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov dword [esi + 0x408], eax
test eax, eax
jne 0x497c87
lea eax, [ebp - 0x108]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x497c90
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor ebx, ebx
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004f41b5
leave
ret 8

Function at 0x497caf
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x94]
sub esp, 0x114
mov eax, dword [0x590cec]
xor eax, ebp
mov dword [ebp + 0x90], eax
push ebx
mov ebx, dword [ebp + 0x9c]
push esi
push edi
lea eax, [ebp - 0x7c]
push eax
push 0x20019
mov esi, ecx
xor edi, edi
push edi
lea eax, [esi + 8]
push eax
push dword [esi]
mov dword [ebp - 0x80], 0x104
mov dword [ebp - 0x78], 1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [esi + 0x408], eax
cmp eax, edi
je 0x497d10
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x497d58
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x74]
push eax
push dword [ebp + 0xa0]
push dword [ebp - 0x7c]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
mov dword [esi + 0x408], eax
cmp eax, edi
jne 0x497d42
lea eax, [ebp - 0x74]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x497d4c
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 0x78], edi
push dword [ebp - 0x7c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x78]
mov ecx, dword [ebp + 0x90]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004f41b5
add ebp, 0x94
leave
ret 8
Function at 0x497d72
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
lea eax, [ebp - 4]
push eax
push 0x20006
mov esi, ecx
push 0
lea eax, [esi + 8]
push eax
push dword [esi]
xor ebx, ebx
inc ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [esi + 0x408], eax
test eax, eax
je 0x497da9
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x497dec
push 4
lea eax, [ebp + 0xc]
push eax
push 4
push 0
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [esi + 0x408], eax
test eax, eax
je 0x497dd2
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor ebx, ebx
cmp dword [esi + 4], 0
jne 0x497de1
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
pop esi
pop ebx
leave
ret 8

Function at 0x497df2
Capabilities:
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x590cec]
xor eax, ebp
mov dword [ebp + 0x88], eax
push ebx
mov ebx, dword [ebp + 0x94]
push esi
push edi
mov edi, dword [ebp + 0x98]
push edi
mov esi, ecx
mov dword [ebp - 0x80], 1
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 0xfe
jle 0x497e3a
xor eax, eax
jmp 0x497ebb
push edi
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x7c]
push eax
push 0x20006
xor edi, edi
push edi
lea eax, [esi + 8]
push eax
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [esi + 0x408], eax
cmp eax, edi
je 0x497e70
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x497e33
lea eax, [ebp - 0x78]
push eax
call fcn.004f3730
pop ecx
inc eax
push eax
lea eax, [ebp - 0x78]
push eax
push 1
push edi
push ebx
push dword [ebp - 0x7c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [esi + 0x408], eax
cmp eax, edi
je 0x497ea1
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 0x80], edi
cmp dword [esi + 4], edi
jne 0x497eaf
push dword [ebp - 0x7c]
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
push dword [ebp - 0x7c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x80]
mov ecx, dword [ebp + 0x88]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004f41b5
add ebp, 0x8c
leave
ret 8
Function at 0x497ed5
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
lea eax, [ebp - 4]
push eax
push 0x20006
mov esi, ecx
push 0
lea eax, [esi + 8]
push eax
push dword [esi]
xor ebx, ebx
inc ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [esi + 0x408], eax
test eax, eax
je 0x497f0c
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x497f57
push dword [ebp + 0xc]
call fcn.004f3730
pop ecx
inc eax
push eax
push dword [ebp + 0xc]
push 1
push 0
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [esi + 0x408], eax
test eax, eax
je 0x497f3d
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor ebx, ebx
cmp dword [esi + 4], 0
jne 0x497f4c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
pop esi
pop ebx
leave
ret 8

Function at 0x49805d
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
lea eax, [ebp - 4]
push eax
push 0x20006
mov esi, ecx
push 0
lea eax, [esi + 8]
push eax
push dword [esi]
xor ebx, ebx
inc ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [esi + 0x408], eax
test eax, eax
je 0x498094
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x4980d7
push 4
lea eax, [ebp + 0xc]
push eax
push 4
push 0
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [esi + 0x408], eax
test eax, eax
je 0x4980bd
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor ebx, ebx
cmp dword [esi + 4], 0
jne 0x4980cc
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
pop esi
pop ebx
leave
ret 8

Function at 0x4980dd
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
lea eax, [ebp - 4]
push eax
push 0x20006
mov esi, ecx
push 0
lea eax, [esi + 8]
push eax
push dword [esi]
xor ebx, ebx
inc ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [esi + 0x408], eax
test eax, eax
je 0x498114
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x498157
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 3
push 0
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [esi + 0x408], eax
test eax, eax
je 0x49813d
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor ebx, ebx
cmp dword [esi + 4], 0
jne 0x49814c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
pop esi
pop ebx
leave
ret 0xc
Function at 0x49815d
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
lea eax, [ebp - 4]
push eax
push 0x20019
mov esi, ecx
xor edi, edi
push edi
lea eax, [esi + 8]
push eax
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [esi + 0x408], eax
cmp eax, edi
je 0x498192
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x4981ca
push edi
push edi
push edi
push edi
push edi
lea eax, [ebp + 0xc]
push eax
push edi
push edi
push edi
push eax
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
push dword [ebp - 4]
mov dword [esi + 0x408], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [esi + 0x408]
cmp esi, edi
je 0x4981c7
push esi
jmp 0x498188
xor eax, eax
inc eax
pop edi
pop esi
leave
ret 8

Function at 0x498244
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
mov esi, ecx
push 0
lea eax, [esi + 8]
push eax
push dword [esi]
mov dword [ebp - 0xc], 3
mov dword [ebp - 8], 8
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [esi + 0x408], eax
test eax, eax
je 0x49828b
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4982d1
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [esi + 0x408], eax
test eax, eax
je 0x4982c2
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x10], eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
pop esi
leave
ret 0xc

Function at 0x4982d6
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
lea eax, [ebp - 4]
push eax
push 0x20006
mov esi, ecx
push 0
lea eax, [esi + 8]
push eax
push dword [esi]
xor ebx, ebx
inc ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [esi + 0x408], eax
test eax, eax
je 0x49830d
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x498350
push 8
lea eax, [ebp + 0xc]
push eax
push 3
push 0
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [esi + 0x408], eax
test eax, eax
je 0x498336
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor ebx, ebx
cmp dword [esi + 4], 0
jne 0x498345
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
pop esi
pop ebx
leave
ret 0xc
Function at 0x49835b
Capabilities:
Delete registry key

Disassembly:
push esi
push 0
push dword [esp + 0xc]
mov esi, ecx
call fcn.0049757e
test eax, eax
je 0x49838e
push dword [esp + 8]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov dword [esi + 0x408], eax
test eax, eax
je 0x49838e
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x498391
xor eax, eax
inc eax
pop esi
ret 4

Function at 0x49bfbe
Capabilities:
Read file on windows

Disassembly:
push dword [ecx]
push dword [esp + 0xc]
push 1
push dword [esp + 0x10]
call fcn.004fa88b
add esp, 0x10
ret 8

Function at 0x49bfd5
Capabilities:
Write file on windows

Disassembly:
push dword [ecx]
push dword [esp + 0xc]
push 1
push dword [esp + 0x10]
call fcn.004fb4e6
add esp, 0x10
ret 8

Function at 0x49c0c5
Capabilities:
Write file on windows

Disassembly:
push dword [ecx]
push 1
push dword [esp + 0x10]
push dword [esp + 0x10]
call fcn.004fb4e6
add esp, 0x10
ret 8

Function at 0x49c2ae
Capabilities:
Set file attributes

Disassembly:
push esi
mov esi, ecx
call fcn.0049bf42
test eax, eax
je 0x49c311
push dword [esi]
call fcn.004f586f
test byte [esi + 4], 1
pop ecx
je 0x49c2ea
lea eax, [esi + 0x28]
push eax
lea eax, [esi + 0x20]
push eax
lea eax, [esi + 0x18]
push eax
push dword [esi]
call fcn.004fd047
push eax
call fcn.004fd180
pop ecx
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push dword [esi]
call fcn.004f96f3
mov eax, dword [esi + 0x14]
pop ecx
test eax, eax
jne 0x49c2fe
mov eax, 0x80
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
and dword [esi], 0
xor eax, eax
inc eax
pop esi
ret
xor eax, eax
pop esi
ret

Function at 0x49c37f
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, dword [ebp + 8]
cmp byte [edi], 0
mov esi, ecx
jne 0x49c393
xor eax, eax
jmp 0x49c412
push ebx
call fcn.0049c2ae
lea ebx, [esi + 0x14]
push ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_FindFirstFileA]
call edi
push dword [ebp + 0xc]
mov dword [ebp - 4], eax
push dword [ebp + 8]
call fcn.004f9612
pop ecx
pop ecx
mov dword [esi], eax
test eax, eax
jne 0x49c3ec
call fcn.004fd5b0
cmp dword [eax], 0xd
jne 0x49c3e7
push 0x80
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
je 0x49c3e7
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004f9612
pop ecx
pop ecx
mov dword [esi], eax
cmp dword [esi], 0
je 0x49c3fb
cmp dword [ebp - 4], 0xffffffff
jne 0x49c401
push ebx
push dword [ebp + 8]
call edi
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
je 0x49c40a
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, esi
call fcn.0049bf42
pop ebx
pop edi
pop esi
leave
ret 8

Function at 0x49d698
Capabilities:
Hash data using sha1

Disassembly:
xor eax, eax
mov dword [ecx + 4], 0x67452301
mov dword [ecx + 8], 0xefcdab89
mov dword [ecx + 0xc], 0x98badcfe
mov dword [ecx + 0x10], 0x10325476
mov dword [ecx + 0x14], 0xc3d2e1f0
mov dword [ecx + 0x58], eax
mov dword [ecx + 0x60], eax
mov dword [ecx + 0x5c], eax
ret