joyce8/EMBER2024-capa huggingface dataset:
Function at 0x505500
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6aa5d6
mov eax, dword fs:[0]
push eax
sub esp, 0x24c
mov eax, dword [0x7ca00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
lea eax, [ebp - 0x224]
mov dword [ebp - 0x224], 0x80
push eax
lea eax, [ebp - 0x118]
mov esi, 1
push eax
push 6
call dword [sym.imp.Secur32.dll_GetUserNameExW]
test al, al
je 0x505604
lea ecx, [ebp - 0x118]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x505566
sub ecx, edx
lea eax, [ebp - 0x118]
sar ecx, 1
push ecx
push eax
mov ecx, edi
call fcn.00428800
xor eax, eax
mov dword [ebp - 0x230], 0
lea ecx, [ebp - 0x118]
mov dword [ebp - 0x22c], 7
mov word [ebp - 0x240], ax
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x5055b0
sub ecx, edx
lea eax, [ebp - 0x118]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x240]
call fcn.00428800
push edi
lea eax, [ebp - 0x240]
mov dword [ebp - 4], 0
push eax
push 1
call fcn.004dc440
lea ecx, [ebp - 0x240]
mov bl, al
call fcn.00428770
test bl, bl
je 0x50569c
xor eax, eax
jmp 0x50569e
lea eax, [ebp - 0x228]
mov dword [ebp - 0x228], 0x80
push eax
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
xor eax, eax
mov dword [ebp - 0x248], 0
lea ecx, [ebp - 0x220]
mov dword [ebp - 0x244], 7
mov word [ebp - 0x258], ax
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x505650
sub ecx, edx
lea eax, [ebp - 0x220]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x258]
call fcn.00428800
push edi
lea eax, [ebp - 0x258]
mov dword [ebp - 4], 1
push eax
push 1
call fcn.004dc440
lea ecx, [ebp - 0x258]
mov bl, al
call fcn.00428770
xor eax, eax
test bl, bl
cmovne esi, eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0063de71
mov esp, ebp
pop ebp
ret
Function at 0x506bf0
Capabilities:
Get common file path

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6aa7e8
mov eax, dword fs:[0]
push eax
push ecx
push ebx
sub esp, 0x38
mov eax, dword [0x7ca00c]
xor eax, ebp
mov dword [ebp - 0x1c], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [esi + 0x10], 0
mov eax, esi
cmp dword [esi + 0x14], 0x10
mov dword [ebp - 0x34], 0xff
jb 0x506c4c
mov eax, dword [esi]
mov byte [eax], 0
lea eax, [ebp - 0x30]
movups xmm0, xmmword [0x725060]
push eax
push 0
push 0
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x30], 0
push eax
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 4], 0
call dword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
test eax, eax
js 0x506d21
mov edx, dword [ebp - 0x30]
test edx, edx
je 0x506d21
mov ecx, edx
mov dword [ebp - 0x3c], 0
xor eax, eax
mov dword [ebp - 0x38], 7
mov word [ebp - 0x4c], ax
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x506ca6
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x4c]
call fcn.00428800
mov edx, esi
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x4c]
call fcn.004f5cb0
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 0
call fcn.00428770
push 1
push 0x723bc0
mov ecx, esi
call fcn.00439a20
push 5
push 0x724a80
mov ecx, esi
call fcn.00439a20
push 1
push 0x723bc0
mov ecx, esi
call fcn.00439a20
push dword [ebp - 0x30]
xor esi, esi
call dword [sym.imp.ole32.dll_CoTaskMemFree]
jmp 0x506d26
mov esi, 1
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.0063de71
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x506d50
Capabilities:
Get common file path

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6aa818
mov eax, dword fs:[0]
push eax
push ecx
push ebx
sub esp, 0x38
mov eax, dword [0x7ca00c]
xor eax, ebp
mov dword [ebp - 0x1c], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [esi + 0x10], 0
mov eax, esi
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x34], 0xff
jb 0x506dac
mov eax, dword [esi]
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x30]
movups xmm0, xmmword [0x7250a8]
push eax
push ecx
push ecx
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x30], ecx
push eax
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 4], ecx
call dword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
test eax, eax
js 0x506e53
mov edx, dword [ebp - 0x30]
test edx, edx
je 0x506e53
mov ecx, edx
mov dword [ebp - 0x3c], 0
xor eax, eax
mov dword [ebp - 0x38], 7
mov word [ebp - 0x4c], ax
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x506df6
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x4c]
call fcn.00428800
lea eax, [ebp - 0x4c]
mov byte [ebp - 4], 1
cmp esi, eax
je 0x506e2d
cmp dword [ebp - 0x38], 8
mov ecx, esi
push dword [ebp - 0x3c]
cmovae eax, dword [ebp - 0x4c]
push eax
call fcn.00428800
lea ecx, [ebp - 0x4c]
call fcn.00428770
push dword [ebp - 0x30]
xor esi, esi
call dword [sym.imp.ole32.dll_CoTaskMemFree]
jmp 0x506e58
mov esi, 1
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.0063de71
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x506e80
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6aa848
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x7ca00c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [esi + 0x10], 0
mov eax, esi
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x2c], 0xff
jb 0x506ec8
mov eax, dword [esi]
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x28]
movups xmm0, xmmword [0x725098]
push eax
push ecx
push ecx
lea eax, [ebp - 0x24]
mov dword [ebp - 0x28], ecx
push eax
movups xmmword [ebp - 0x24], xmm0
mov dword [ebp - 4], ecx
call dword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
test eax, eax
js 0x506f69
mov edx, dword [ebp - 0x28]
test edx, edx
je 0x506f69
mov ecx, edx
mov dword [ebp - 0x34], 0
xor eax, eax
mov dword [ebp - 0x30], 7
mov word [ebp - 0x44], ax
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x506f12
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x44]
call fcn.00428800
lea eax, [ebp - 0x44]
mov byte [ebp - 4], 1
cmp esi, eax
je 0x506f49
cmp dword [ebp - 0x30], 8
mov ecx, esi
push dword [ebp - 0x34]
cmovae eax, dword [ebp - 0x44]
push eax
call fcn.00428800
lea ecx, [ebp - 0x44]
call fcn.00428770
push dword [ebp - 0x28]
xor esi, esi
call dword [sym.imp.ole32.dll_CoTaskMemFree]
jmp 0x506f6e
mov esi, 1
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0063de71
mov esp, ebp
pop ebp
ret
Function at 0x506f90
Capabilities:
Get common file path

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6aa878
mov eax, dword fs:[0]
push eax
push ecx
push ebx
sub esp, 0x38
mov eax, dword [0x7ca00c]
xor eax, ebp
mov dword [ebp - 0x1c], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [esi + 0x10], 0
mov eax, esi
cmp dword [esi + 0x14], 0x10
mov dword [ebp - 0x34], 0xff
jb 0x506fec
mov eax, dword [esi]
mov byte [eax], 0
lea eax, [ebp - 0x30]
movups xmm0, xmmword [0x725088]
push eax
push 0
push 0
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x30], 0
push eax
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 4], 0
call dword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
test eax, eax
js 0x5070c1
mov edx, dword [ebp - 0x30]
test edx, edx
je 0x5070c1
mov ecx, edx
mov dword [ebp - 0x3c], 0
xor eax, eax
mov dword [ebp - 0x38], 7
mov word [ebp - 0x4c], ax
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x507046
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x4c]
call fcn.00428800
mov edx, esi
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x4c]
call fcn.004f5cb0
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 0
call fcn.00428770
push 1
push 0x723bc0
mov ecx, esi
call fcn.00439a20
push 5
push 0x724a80
mov ecx, esi
call fcn.00439a20
push 1
push 0x723bc0
mov ecx, esi
call fcn.00439a20
push dword [ebp - 0x30]
xor esi, esi
call dword [sym.imp.ole32.dll_CoTaskMemFree]
jmp 0x5070c6
mov esi, 1
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.0063de71
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x507930
Capabilities:
Encrypt data using dpapi

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6aa958
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x7ca00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ecx + 0x10]
mov esi, dword [ebp + 0xc]
test edi, edi
je 0x507a58
mov eax, dword [edx + 0x10]
test eax, eax
je 0x507a58
cmp byte [ebp + 8], 0
jne 0x507a4d
cmp dword [ecx + 0x14], 0x10
jb 0x507985
mov ecx, dword [ecx]
cmp dword [edx + 0x14], 0x10
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x40], edi
jb 0x507993
mov edx, dword [edx]
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x30]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x38]
mov dword [ebp - 0x34], edx
push eax
push 0
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.CRYPT32.dll_CryptProtectData]
test eax, eax
je 0x507a58
push dword [ebp - 0x30]
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
push dword [ebp - 0x2c]
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
call fcn.00428b60
mov dword [ebp - 4], 0
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.DLL_LocalFree]
mov dword [esi + 0x10], 0
mov eax, esi
cmp dword [esi + 0x14], 0x10
jb 0x5079fc
mov eax, dword [esi]
mov byte [eax], 0
lea eax, [ebp - 0x28]
cmp esi, eax
je 0x507a19
cmp dword [ebp - 0x14], 0x10
mov ecx, esi
push dword [ebp - 0x18]
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.00428b60
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x507a49
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x507a3f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x507a78
push edx
push ecx
call fcn.0063e103
add esp, 8
xor eax, eax
jmp 0x507a5d
push esi
call fcn.00507760
add esp, 4
jmp 0x507a5d
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0063de71
mov esp, ebp
pop ebp
ret
call fcn.006534c5
int3
Function at 0x507c50
Capabilities:
Encrypt data using dpapi

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6aa988
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x7ca00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ecx + 0x10]
mov esi, dword [ebp + 0xc]
test edi, edi
je 0x507d78
mov eax, dword [edx + 0x10]
test eax, eax
je 0x507d78
cmp byte [ebp + 8], 0
jne 0x507d6d
cmp dword [ecx + 0x14], 0x10
jb 0x507ca5
mov ecx, dword [ecx]
cmp dword [edx + 0x14], 0x10
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x40], edi
jb 0x507cb3
mov edx, dword [edx]
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x30]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x38]
mov dword [ebp - 0x34], edx
push eax
push 0
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.CRYPT32.dll_CryptUnprotectData]
test eax, eax
je 0x507d78
push dword [ebp - 0x30]
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
push dword [ebp - 0x2c]
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
call fcn.00428b60
mov dword [ebp - 4], 0
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.DLL_LocalFree]
mov dword [esi + 0x10], 0
mov eax, esi
cmp dword [esi + 0x14], 0x10
jb 0x507d1c
mov eax, dword [esi]
mov byte [eax], 0
lea eax, [ebp - 0x28]
cmp esi, eax
je 0x507d39
cmp dword [ebp - 0x14], 0x10
mov ecx, esi
push dword [ebp - 0x18]
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.00428b60
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x507d69
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x507d5f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x507d98
push edx
push ecx
call fcn.0063e103
add esp, 8
xor eax, eax
jmp 0x507d7d
push esi
call fcn.00507a80
add esp, 4
jmp 0x507d7d
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0063de71
mov esp, ebp
pop ebp
ret
call fcn.006534c5
int3
Function at 0x507f20
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6aa9eb
mov eax, dword fs:[0]
push eax
mov eax, 0x114c
call fcn.00691730
mov eax, dword [0x7ca00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push pe_nt_image_headers32
xor ebx, ebx
lea eax, [ebp - 0x112c]
push ebx
push eax
call fcn.006501e0
add esp, 0xc
mov dword [ebp - 0x1130], 0x11c
xor eax, eax
mov dword [ebp - 0x1148], ebx
lea ecx, [ebp - 0x1158]
mov dword [ebp - 0x1144], 7
mov word [ebp - 0x1158], ax
push 9
push str.ntdll.dll
call fcn.00428800
push 0x800
lea eax, [ebp - 0x810]
mov dword [ebp - 4], ebx
push ebx
push eax
mov dword [ebp - 0x1134], ebx
call fcn.006501e0
add esp, 0xc
lea eax, [ebp - 0x1010]
push 0x800
push ebx
push eax
call fcn.006501e0
add esp, 0xc
lea eax, [ebp - 0x1158]
mov dword [ebp - 0x113c], eax
lea eax, [ebp - 0x1134]
mov dword [ebp - 0x1138], eax
lea eax, [ebp - 0x810]
push 0x400
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryW]
test eax, eax
je 0x508017
lea eax, [ebp - 0x810]
push eax
lea ecx, [ebp - 0x113c]
call fcn.00507e30
test eax, eax
jne 0x50803f
push 0x400
lea eax, [ebp - 0x1010]
push eax
call dword [sym.imp.KERNEL32.DLL_GetWindowsDirectoryW]
test eax, eax
je 0x50803f
lea eax, [ebp - 0x1010]
push eax
lea ecx, [ebp - 0x113c]
call fcn.00507e30
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1158]
mov esi, dword [ebp - 0x1134]
call fcn.00428770
test esi, esi
je 0x508084
push str.RtlGetVersion
push esi
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
test eax, eax
je 0x508079
lea ecx, [ebp - 0x1130]
mov ebx, 1
push ecx
call eax
push esi
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
test ebx, ebx
jne 0x5080b5
mov esi, dword [sym.imp.KERNEL32.DLL_GetVersionExW]
lea eax, [ebp - 0x1130]
push eax
call esi
test eax, eax
jne 0x5080b5
lea eax, [ebp - 0x1130]
mov dword [ebp - 0x1130], 0x114
push eax
call esi
test eax, eax
jne 0x5080b5
mov eax, 1
jmp 0x5080db
mov eax, dword [ebp - 0x112c]
mov dword [edi], eax
mov eax, dword [ebp - 0x1128]
mov dword [edi + 4], eax
movzx eax, byte [ebp - 0x1016]
mov dword [edi + 8], eax
mov eax, dword [ebp - 0x1124]
mov dword [edi + 0xc], eax
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0063de71
mov esp, ebp
pop ebp
ret
Function at 0x508490
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
mov eax, dword [0x7ca00c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x800
lea eax, [ebp - 0x804]
mov esi, ecx
push 0
push eax
call fcn.006501e0
add esp, 0xc
lea eax, [ebp - 0x804]
push eax
push 0x400
call dword [sym.imp.KERNEL32.DLL_GetTempPathW]
dec eax
cmp eax, 0x3fe
ja 0x50850f
lea eax, [ebp - 0x804]
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x5084e0
sub eax, edx
mov ecx, esi
sar eax, 1
push eax
lea eax, [ebp - 0x804]
push eax
call fcn.00428800
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0063de71
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 1
xor ecx, ebp
pop esi
call fcn.0063de71
mov esp, ebp
pop ebp
ret

Function at 0x5086e0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6aaa68
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x7ca00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov dword [ebp - 4], eax
cmp dword [ecx + 0x14], 0x10
jb 0x508728
mov ecx, dword [ecx]
lea edx, [ebp - 0x28]
call fcn.004f5b10
test al, al
je 0x50876c
cmp dword [ebp - 0x18], 0
je 0x50876c
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x50876c
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
mov esi, eax
neg esi
sbb esi, esi
neg esi
jmp 0x508771
mov esi, 1
lea ecx, [ebp - 0x28]
call fcn.00428770
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0063de71
mov esp, ebp
pop ebp
ret
Function at 0x50b200
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x7ca00c]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ecx + 0x14], 8
push esi
mov esi, edx
jb 0x50b21b
mov ecx, dword [ecx]
lea eax, [ebp - 8]
push eax
push 0x2011f
push 0
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x50b270
cmp dword [esi + 0x14], 8
jb 0x50b23e
mov esi, dword [esi]
push 0
push 0x100
push esi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyExW]
push dword [ebp - 8]
neg eax
sbb esi, esi
and esi, 1
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0063de71
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 1
xor ecx, ebp
pop esi
call fcn.0063de71
mov esp, ebp
pop ebp
ret

Function at 0x50b290
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6aaf60
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x7ca00c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, edx
mov dword [ebp - 0x20], ecx
cmp dword [esi + 0x14], 8
mov edi, 1
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
mov eax, esi
jb 0x50b2d8
mov eax, dword [esi]
lea edx, [ebp - 0x18]
push edx
push 0
push 0
push 0
push eax
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x50b36d
mov dword [ebp - 4], eax
xor ecx, ecx
mov eax, dword [ebp - 0x18]
mov edx, 2
inc eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0063e329
add esp, 4
mov ebx, eax
cmp dword [esi + 0x14], 8
jb 0x50b319
mov esi, dword [esi]
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x20]
push ebx
push 0
push 0
push esi
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x50b352
mov edx, ebx
lea esi, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x50b337
mov ecx, dword [ebp - 0x1c]
sub edx, esi
sar edx, 1
push edx
push ebx
call fcn.00428800
xor edi, edi
push ebx
call fcn.0063e134
add esp, 4
jmp 0x50b36d
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0063de71
mov esp, ebp
pop ebp
ret
Function at 0x50b390
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6aafa0
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x7ca00c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x24], edx
mov eax, ecx
mov dword [ebp - 0x28], eax
xor ebx, ebx
mov dword [ebp - 4], 0
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x18], ebx
lea ecx, [ebp - 0x20]
mov esi, 2
push ecx
push 0
lea ecx, [ebp - 0x18]
push ecx
push 0
lea ecx, [ebp - 0x1c]
push ecx
push 0
push ebx
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x50b523
mov eax, dword [ebp - 0x1c]
xor ecx, ecx
inc eax
mul esi
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0063e329
add esp, 4
mov edi, eax
push dword [ebp - 0x20]
call fcn.0063e329
add esp, 4
mov esi, eax
lea eax, [ebp - 0x20]
push eax
push esi
lea eax, [ebp - 0x18]
push eax
push 0
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x28]
push edi
push ebx
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x50b4fb
mov eax, dword [ebp - 0x1c]
xor ecx, ecx
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x44], 7
mov word [edi + eax*2], cx
mov ecx, edi
xor eax, eax
mov word [ebp - 0x58], ax
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x50b470
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x58]
call fcn.00428800
mov byte [ebp - 4], 1
xor eax, eax
mov word [ebp - 0x40], ax
mov eax, esi
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x50b4a6
sub eax, edx
lea ecx, [ebp - 0x40]
sar eax, 1
push eax
push esi
call fcn.00428800
mov ecx, dword [ebp - 0x24]
lea eax, [ebp - 0x58]
push eax
mov byte [ebp - 4], 2
call fcn.004f4600
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0
call fcn.00428770
lea ecx, [ebp - 0x58]
call fcn.00428770
push edi
call fcn.0063e134
push esi
call fcn.0063e134
mov eax, dword [ebp - 0x28]
add esp, 8
inc ebx
jmp 0x50b3d8
push edi
call fcn.0063e134
push esi
call fcn.0063e134
add esp, 8
mov eax, 1
jmp 0x50b525
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0063de71
mov esp, ebp
pop ebp
ret
Function at 0x50b550
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6aafd8
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x7ca00c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x48], ecx
xor edi, edi
mov dword [ebp - 4], edi
mov esi, dword [edx]
mov ebx, dword [edx + 4]
nop dword [eax + eax]
cmp esi, ebx
je 0x50b61f
push esi
lea ecx, [ebp - 0x44]
call fcn.00428650
lea eax, [esi + 0x18]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x2c]
call fcn.00428650
mov byte [ebp - 4], 0
lea edx, [ebp - 0x2c]
cmp dword [ebp - 0x18], 8
lea ecx, [ebp - 0x44]
mov eax, dword [ebp - 0x1c]
cmovae edx, dword [ebp - 0x2c]
cmp dword [ebp - 0x30], 8
cmovae ecx, dword [ebp - 0x44]
add eax, eax
push eax
mov eax, dword [ebp - 0x48]
push edx
push 1
push 0
push ecx
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea ecx, [ebp - 0x2c]
test eax, eax
je 0x50b5fd
mov edi, 1
call fcn.00428770
lea ecx, [ebp - 0x44]
call fcn.00428770
jmp 0x50b61f
call fcn.00428770
lea ecx, [ebp - 0x44]
call fcn.00428770
add esi, 0x30
jmp 0x50b590
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0063de71
mov esp, ebp
pop ebp
ret