joyce8/EMBER2024-capa huggingface dataset:
Function at 0x498dbc
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x14]
push esi
xor esi, esi
cmp eax, esi
mov dword [ebp - 4], esi
jne 0x498dd6
xor eax, eax
jmp 0x498f1a
push edi
push 0x10000
push esi
mov dword [eax], esi
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
cmp edi, esi
je 0x498f17
cmp dword [ebp + 0x10], esi
jbe 0x498f0d
mov esi, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, 0x10000
cmp dword [ebp + 0x10], eax
ja 0x498e0f
mov eax, dword [ebp + 0x10]
push 0
lea ecx, [ebp - 4]
push ecx
push eax
push edi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x498f0c
cmp dword [esi + 0x1c750], 1
jne 0x498e64
push 0x8d
push esi
call fcn.004a5917
cmp eax, 1
jne 0x498e50
cmp dword [ebp - 4], 9
jb 0x498e5d
push edi
push esi
call fcn.0049a15b
jmp 0x498e5d
cmp dword [ebp - 4], 9
jb 0x498e5d
push edi
push esi
call fcn.00499e25
and dword [esi + 0x1c750], 0
mov eax, dword [ebp - 4]
lea ecx, [ebp - 4]
push ecx
push 3
push dword [ebp + 0x18]
mov dword [ebp + 8], eax
push eax
push edi
push esi
call fcn.00498ca5
test byte [esi + 0xbc10], 1
je 0x498ea5
mov ecx, dword [ebp - 4]
lea eax, [esi + 0xfaa0]
add dword [eax], ecx
push 0
adc dword [eax + 4], 0
lea eax, [ebp - 4]
push eax
push ecx
push edi
push dword [esi + 0x13d38]
call ebx
jmp 0x498edd
mov eax, dword [esi + 0x10]
test al, 0x40
je 0x498ecf
test al, al
jns 0x498ecf
mov ecx, dword [ebp - 4]
lea eax, [esi + 0x3eb0]
add dword [eax], ecx
push 0
adc dword [eax + 4], 0
lea eax, [ebp - 4]
push eax
push ecx
push edi
push dword [esi + 0x8148]
jmp 0x498ea1
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push edi
push esi
call fcn.00498d71
mov eax, dword [ebp - 4]
sub eax, dword [ebp + 8]
push 1
cdq
push edx
push eax
push dword [ebp + 0xc]
call fcn.004809d9
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0x14]
sub dword [ebp + 0x10], eax
add dword [ecx], eax
cmp word [ebp + 0x18], 1
je 0x498f0c
cmp dword [ebp + 0x10], 0
ja 0x498e02
pop ebx
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
xor esi, esi
inc esi
mov eax, esi
pop edi
pop esi
leave
ret 0x14
Function at 0x498f24
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xaa0
mov eax, dword [0x4dd52c]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xaa0], eax
push ebx
xor eax, eax
push esi
push edi
xor ebx, ebx
mov edx, 0x81
mov word [ebp - 0x270], bx
mov ecx, edx
lea edi, [ebp - 0x26e]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
xor eax, eax
mov word [ebp - 0x680], bx
mov ecx, edx
lea edi, [ebp - 0x67e]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
xor eax, eax
mov word [ebp - 0x888], bx
mov ecx, edx
lea edi, [ebp - 0x886]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
xor eax, eax
mov word [ebp - 0xa90], bx
mov ecx, edx
lea edi, [ebp - 0xa8e]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov esi, dword [ebp + 8]
xor eax, eax
mov word [ebp - 0x478], bx
mov ecx, edx
lea edi, [ebp - 0x476]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x18
pop ecx
xor eax, eax
mov word [ebp - 0x68], bx
lea edi, [ebp - 0x66]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov edi, 0x405e8c
push edi
lea eax, [ebp - 0xa90]
push eax
lea eax, [ebp - 0x478]
push eax
push esi
mov dword [ebp - 0xa9c], ebx
mov dword [ebp - 0xa94], ebx
call fcn.00480395
mov esi, dword [sym.imp.msvcrt.dll_wcscpy]
lea eax, [ebp - 0x270]
push 0x414598
push eax
call esi
lea eax, [ebp - 0x478]
push eax
lea eax, [ebp - 0x680]
push 0x41457c
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [ebp - 0x680]
push eax
lea eax, [ebp - 0x270]
push eax
call dword [sym.imp.msvcrt.dll_wcscat]
lea eax, [ebp - 0x888]
push 0x41456c
push eax
call esi
add esp, 0x24
lea eax, [ebp - 0xa98]
push eax
push 0xf003f
push ebx
lea eax, [ebp - 0x270]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4990e7
lea eax, [ebp - 0xa9c]
push eax
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0xa94]
push eax
push ebx
lea eax, [ebp - 0x888]
push eax
push dword [ebp - 0xa98]
mov dword [ebp - 0xa94], 1
mov dword [ebp - 0xa9c], 0x64
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4990e7
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.msvcrt.dll__wcsupr]
lea eax, [ebp - 0x68]
push edi
push eax
call dword [sym.imp.msvcrt.dll_wcsstr]
add esp, 0xc
cmp eax, ebx
je 0x4990e0
lea ecx, [ebp - 0x68]
cmp eax, ecx
je 0x4990e0
push 0x405bd4
push eax
call esi
lea eax, [ebp - 0x68]
push eax
push dword [ebp - 0xaa0]
call esi
add esp, 0x10
inc ebx
jmp 0x4990e7
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
push dword [ebp - 0xa98]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov eax, ebx
pop ebx
call fcn.004a9585
leave
ret 8
Function at 0x4992c0
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
xor esi, esi
mov ebx, 0x10000
push ebx
push esi
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
cmp edi, esi
je 0x499348
mov dword [ebp - 4], ebx
mov ebx, dword [ebp + 0x10]
push esi
mov eax, ebx
cdq
push edx
push eax
push dword [ebp + 0xc]
call fcn.004809d9
push esi
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push edi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [ebp - 8]
push eax
push 3
push 1
push dword [ebp - 4]
push edi
push dword [ebp + 8]
call fcn.00498ca5
mov eax, dword [ebp - 8]
sub dword [ebp - 4], eax
lea ecx, [ebp - 8]
push ecx
push 3
push 1
push dword [ebp - 4]
lea esi, [eax + ebx]
add eax, edi
push eax
push dword [ebp + 8]
call fcn.00498ca5
add esi, dword [ebp - 8]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0xc
Function at 0x499356
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x14]
push edi
xor edi, edi
cmp eax, edi
mov dword [ebp - 4], edi
jne 0x499370
xor eax, eax
jmp 0x4994b1
push ebx
push esi
mov esi, 0x10000
push esi
push edi
mov dword [eax], edi
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
cmp ebx, edi
je 0x4994ad
cmp dword [ebp + 0x10], esi
ja 0x499393
mov esi, dword [ebp + 0x10]
push edi
lea eax, [ebp - 4]
push eax
push esi
push ebx
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov esi, dword [ebp + 0x1c]
test byte [esi], 1
mov eax, dword [ebp - 4]
mov dword [ebp + 0x10], eax
je 0x4993b8
movsx eax, word [esi + 4]
mov dword [ebx + 0x71], eax
test byte [esi], 2
je 0x4993c3
mov eax, dword [esi + 8]
mov dword [ebx + 0x7d], eax
test byte [esi], 4
je 0x4993ec
mov eax, dword [esi + 0xc]
push edi
mov dword [ebx + 0x75], eax
push edi
mov edi, dword [ebp + 8]
lea eax, [ebx + 0x1c9]
push eax
mov byte [eax], 0
xor eax, eax
mov ax, word [ebx + 0x75]
push eax
push edi
call fcn.004991ec
jmp 0x4993ef
mov edi, dword [ebp + 8]
test byte [esi], 8
je 0x49941d
mov eax, dword [esi + 0x10]
mov dword [ebx + 0xbdd], eax
mov ecx, dword [esi + 0x10]
mov eax, ecx
add esi, 0x14
shr ecx, 2
lea edi, [ebx + 0xbe1]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0x1c]
test byte [esi], 0x10
je 0x49942c
mov dword [ebx + 0x1c1], 0xb4
xor esi, esi
inc esi
cmp dword [edi + 0x1c750], esi
jne 0x499469
push 0x8d
push edi
call fcn.004a5917
cmp eax, esi
jne 0x499455
cmp dword [ebp - 4], 9
jb 0x499462
push ebx
push edi
call fcn.0049a15b
jmp 0x499462
cmp dword [ebp - 4], 9
jb 0x499462
push ebx
push edi
call fcn.00499e25
and dword [edi + 0x1c750], 0
lea eax, [ebp - 4]
push eax
push 3
push dword [ebp + 0x18]
push dword [ebp + 0x10]
push ebx
push edi
call fcn.00498ca5
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push ebx
push edi
call fcn.00498d71
mov eax, dword [ebp - 4]
sub eax, dword [ebp + 0x10]
push esi
cdq
push edx
push eax
push dword [ebp + 0xc]
call fcn.004809d9
mov ecx, dword [ebp - 4]
mov eax, dword [ebp + 0x14]
add dword [eax], ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov edi, esi
pop esi
mov eax, edi
pop ebx
pop edi
leave
ret 0x18
Function at 0x4994bb
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc34
mov eax, dword [0x4dd52c]
mov dword [ebp - 4], eax
xor eax, eax
push ebx
push esi
push edi
mov dword [ebp - 0xc34], eax
mov dword [ebp - 0xc30], eax
mov dword [ebp - 0xc2c], eax
mov edx, 0x81
mov esi, dword [ebp + 8]
mov word [ebp - 0x20c], 0x30
mov ecx, edx
lea edi, [ebp - 0x20a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
xor eax, eax
mov word [ebp - 0x61c], 0x30
mov ecx, edx
lea edi, [ebp - 0x61a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
xor eax, eax
mov word [ebp - 0x414], 0x30
mov ecx, edx
lea edi, [ebp - 0x412]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
xor eax, eax
mov ecx, 0x183
lea edi, [ebp - 0xc28]
rep stosd dword es:[edi], eax
mov edi, dword [sym.imp.msvcrt.dll_wcsncpy]
mov ebx, 0x80
push ebx
lea eax, [esi + 0x1c95c]
push eax
lea eax, [ebp - 0xc28]
push eax
call edi
push ebx
lea eax, [esi + 0x1cb64]
push eax
lea eax, [ebp - 0xb28]
push eax
call edi
add esp, 0x18
lea eax, [ebp - 0xc2c]
push eax
xor edi, edi
push edi
push edi
push 1
push dword [ebp + 0xc]
push dword [esi + 4]
call sub.WINSPOOL.DRV_GetJobW
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x499628
push dword [ebp - 0xc2c]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GlobalAlloc]
call edi
mov ebx, eax
lea eax, [ebp - 0xc2c]
push eax
push dword [ebp - 0xc2c]
push ebx
push 1
push dword [ebp + 0xc]
push dword [esi + 4]
call sub.WINSPOOL.DRV_GetJobW
test ebx, ebx
je 0x499628
mov eax, dword [ebx + 0x10]
test eax, eax
je 0x499621
push eax
call dword [sym.imp.msvcrt.dll_wcslen]
pop ecx
lea eax, [eax + eax + 2]
push eax
push 0
mov dword [ebp - 0xc2c], eax
call edi
mov edi, eax
test edi, edi
mov dword [ebp - 0xc30], edi
je 0x49961a
mov ecx, dword [ebp - 0xc2c]
mov edx, ecx
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
push dword [ebx + 0x10]
lea eax, [ebp - 0xa28]
push eax
call dword [sym.imp.msvcrt.dll_wcscpy]
pop ecx
pop ecx
jmp 0x499621
and dword [ebp - 0xc2c], 0
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
lea eax, [ebp - 0x20c]
push eax
push dword [esi + 4]
call fcn.00498f24
push 0x104
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x61c]
push 0x41460c
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0x828]
push eax
call dword [sym.imp.msvcrt.dll_wcscpy]
mov esi, dword [esi + 0x1beb0]
add esp, 0x18
test esi, esi
mov dword [ebp - 0x620], 0x7d0
je 0x4996b3
push 0x4145fc
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4996b3
lea ecx, [ebp - 0xc28]
push ecx
call eax
mov dword [ebp - 0xc34], eax
cmp dword [ebp - 0xc30], 0
pop edi
pop esi
pop ebx
je 0x4996cb
push dword [ebp - 0xc30]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0xc34]
call fcn.004a9585
leave
ret 0xc
Function at 0x49c169
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push edi
xor ebx, ebx
mov edi, 0x10000
push edi
push ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
cmp eax, ebx
mov dword [ebp - 8], eax
je 0x49c1e6
push esi
mov esi, dword [ebp + 8]
push ebx
push ebx
push ebx
push dword [esi + 0x8148]
call fcn.004809d9
mov eax, dword [esi + 0x3eb8]
cmp eax, edi
mov dword [ebp - 4], edi
jg 0x49c1b1
mov dword [ebp - 4], eax
push ebx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 8]
push dword [esi + 0x8148]
call dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [ebp - 0xc]
push eax
push 3
push 1
push dword [ebp - 4]
push dword [ebp - 8]
push esi
call fcn.00498ca5
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop esi
mov eax, dword [ebp - 0xc]
pop edi
pop ebx
leave
ret 4
Function at 0x4a53d4
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x4dd52c]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [ebp - 4], eax
xor eax, eax
mov word [ebp - 0x20c], ax
mov dword [ebp - 0x214], eax
mov dword [ebp - 0x218], eax
mov dword [ebp - 0x210], eax
mov ecx, 0x81
lea edi, [ebp - 0x20a]
rep stosd dword es:[edi], eax
lea esi, [esi + esi*2]
shl esi, 2
push dword [esi + 0x41474c]
stosw word es:[edi], ax
push dword [esi + 0x414748]
lea eax, [ebp - 0x20c]
push 0x416ab0
push eax
mov dword [ebp - 0x21c], 4
call dword [sym.imp.msvcrt.dll_swprintf]
add esp, 0x10
lea eax, [ebx + 0x19e44]
push eax
lea eax, [ebx + 0x19a24]
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.004805f0
xor edi, edi
test eax, eax
jne 0x4a54a8
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x214]
push eax
push edi
push edi
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4a549c
mov dword [ebp - 0x218], 1
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x218], edi
jne 0x4a557d
mov eax, dword [ebx + 0x19794]
cmp eax, edi
je 0x4a54e9
lea ecx, [ebp - 0x218]
push ecx
push dword [esi + 0x41474c]
push dword [esi + 0x414748]
push edi
push dword [ebx + 0x5010]
call eax
cmp dword [ebp - 0x218], 1
mov dword [ebp - 0x214], eax
je 0x4a54f5
mov eax, dword [esi + 0x414750]
mov dword [ebp - 0x214], eax
push dword [esi + 0x41474c]
mov dword [ebp - 0x210], edi
push dword [esi + 0x414748]
mov word [ebp - 0x20c], di
xor eax, eax
mov ecx, 0x81
lea edi, [ebp - 0x20a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x20c]
push 0x416ab0
push eax
call dword [sym.imp.msvcrt.dll_swprintf]
add esp, 0x10
lea eax, [ebx + 0x19e44]
push eax
lea eax, [ebp - 0x210]
push eax
push dword [ebx + 0x5010]
call fcn.0048045b
test eax, eax
jne 0x4a557d
push 4
lea eax, [ebp - 0x214]
push eax
push 4
push 0
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x214]
pop edi
pop esi
pop ebx
call fcn.004a9585
leave
ret 8
Function at 0x4a5597
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x4dd52c]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [ebp - 4], eax
xor eax, eax
mov word [ebp - 0x20c], ax
mov dword [ebp - 0x214], eax
mov dword [ebp - 0x218], eax
mov dword [ebp - 0x210], eax
mov ecx, 0x81
lea edi, [ebp - 0x20a]
rep stosd dword es:[edi], eax
lea esi, [esi + esi*2]
shl esi, 2
push dword [esi + 0x41474c]
stosw word es:[edi], ax
push dword [esi + 0x414748]
lea eax, [ebp - 0x20c]
push 0x416ab0
push eax
mov dword [ebp - 0x21c], 4
call dword [sym.imp.msvcrt.dll_swprintf]
add esp, 0x10
lea eax, [ebx + 0x1c340]
push eax
lea eax, [ebx + 0x1bf30]
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.004805f0
xor edi, edi
test eax, eax
jne 0x4a566b
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x214]
push eax
push edi
push edi
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4a565f
mov dword [ebp - 0x218], 1
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x218], edi
jne 0x4a573a
mov eax, dword [ebx + 0x1bee8]
cmp eax, edi
je 0x4a56a9
lea ecx, [ebp - 0x218]
push ecx
push dword [esi + 0x41474c]
push dword [esi + 0x414748]
push edi
push dword [ebx + 4]
call eax
cmp dword [ebp - 0x218], 1
mov dword [ebp - 0x214], eax
je 0x4a56b5
mov eax, dword [esi + 0x414750]
mov dword [ebp - 0x214], eax
push dword [esi + 0x41474c]
mov dword [ebp - 0x210], edi
push dword [esi + 0x414748]
mov word [ebp - 0x20c], di
xor eax, eax
mov ecx, 0x81
lea edi, [ebp - 0x20a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x20c]
push 0x416ab0
push eax
call dword [sym.imp.msvcrt.dll_swprintf]
add esp, 0x10
lea eax, [ebx + 0x1c340]
push eax
lea eax, [ebp - 0x210]
push eax
push dword [ebx + 4]
call fcn.0048045b
test eax, eax
jne 0x4a573a
push 4
lea eax, [ebp - 0x214]
push eax
push 4
push 0
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x214]
pop edi
pop esi
pop ebx
call fcn.004a9585
leave
ret 8
Function at 0x4a5754
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x4dd52c]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [ebp - 4], eax
xor eax, eax
mov word [ebp - 0x20c], ax
mov dword [ebp - 0x214], eax
mov dword [ebp - 0x218], eax
mov dword [ebp - 0x210], eax
mov ecx, 0x81
lea edi, [ebp - 0x20a]
rep stosd dword es:[edi], eax
lea esi, [esi + esi*2]
shl esi, 2
push dword [esi + 0x41474c]
stosw word es:[edi], ax
push dword [esi + 0x414748]
lea eax, [ebp - 0x20c]
push 0x416ab0
push eax
mov dword [ebp - 0x21c], 4
call dword [sym.imp.msvcrt.dll_swprintf]
add esp, 0x10
lea eax, [ebx + 0x19e44]
push eax
lea eax, [ebx + 0x19a24]
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.004805f0
xor edi, edi
test eax, eax
jne 0x4a5828
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x214]
push eax
push edi
push edi
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4a581c
mov dword [ebp - 0x218], 1
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x218], edi
jne 0x4a58fd
mov eax, dword [ebx + 0x19798]
cmp eax, edi
je 0x4a5869
lea ecx, [ebp - 0x218]
push ecx
push dword [esi + 0x41474c]
push dword [esi + 0x414748]
push edi
push dword [ebx + 0x5010]
call eax
cmp dword [ebp - 0x218], 1
mov dword [ebp - 0x214], eax
je 0x4a5875
mov eax, dword [esi + 0x414750]
mov dword [ebp - 0x214], eax
push dword [esi + 0x41474c]
mov dword [ebp - 0x210], edi
push dword [esi + 0x414748]
mov word [ebp - 0x20c], di
xor eax, eax
mov ecx, 0x81
lea edi, [ebp - 0x20a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x20c]
push 0x416ab0
push eax
call dword [sym.imp.msvcrt.dll_swprintf]
add esp, 0x10
lea eax, [ebx + 0x19e44]
push eax
lea eax, [ebp - 0x210]
push eax
push dword [ebx + 0x5010]
call fcn.0048045b
test eax, eax
jne 0x4a58fd
push 4
lea eax, [ebp - 0x214]
push eax
push 4
push 0
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x214]
pop edi
pop esi
pop ebx
call fcn.004a9585
leave
ret 8
Function at 0x4a5917
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x4dd52c]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [ebp - 4], eax
xor eax, eax
mov word [ebp - 0x20c], ax
mov dword [ebp - 0x214], eax
mov dword [ebp - 0x218], eax
mov dword [ebp - 0x210], eax
mov ecx, 0x81
lea edi, [ebp - 0x20a]
rep stosd dword es:[edi], eax
lea esi, [esi + esi*2]
shl esi, 2
push dword [esi + 0x41474c]
stosw word es:[edi], ax
push dword [esi + 0x414748]
lea eax, [ebp - 0x20c]
push 0x416ab0
push eax
mov dword [ebp - 0x21c], 4
call dword [sym.imp.msvcrt.dll_swprintf]
add esp, 0x10
lea eax, [ebx + 0x1c340]
push eax
lea eax, [ebx + 0x1bf30]
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.004805f0
xor edi, edi
test eax, eax
jne 0x4a59eb
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x214]
push eax
push edi
push edi
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4a59df
mov dword [ebp - 0x218], 1
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x218], edi
jne 0x4a5aba
mov eax, dword [ebx + 0x1beec]
cmp eax, edi
je 0x4a5a29
lea ecx, [ebp - 0x218]
push ecx
push dword [esi + 0x41474c]
push dword [esi + 0x414748]
push edi
push dword [ebx + 4]
call eax
cmp dword [ebp - 0x218], 1
mov dword [ebp - 0x214], eax
je 0x4a5a35
mov eax, dword [esi + 0x414750]
mov dword [ebp - 0x214], eax
push dword [esi + 0x41474c]
mov dword [ebp - 0x210], edi
push dword [esi + 0x414748]
mov word [ebp - 0x20c], di
xor eax, eax
mov ecx, 0x81
lea edi, [ebp - 0x20a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x20c]
push 0x416ab0
push eax
call dword [sym.imp.msvcrt.dll_swprintf]
add esp, 0x10
lea eax, [ebx + 0x1c340]
push eax
lea eax, [ebp - 0x210]
push eax
push dword [ebx + 4]
call fcn.0048045b
test eax, eax
jne 0x4a5aba
push 4
lea eax, [ebp - 0x214]
push eax
push 4
push 0
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x214]
pop edi
pop esi
pop ebx
call fcn.004a9585
leave
ret 8