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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x601f62
mov eax, dword fs:[0]
push eax
sub esp, 0x224
mov eax, dword [0x697bc0]
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, dword [ebp + 8]
xor ecx, ecx
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
mov esi, dword [ebp + 0x14]
mov dword [ebp - 4], 0
mov dword [ebp - 0x228], 0
push 0xffffffffffffffff
push ecx
mov dword [ebp - 0x21c], eax
mov eax, dword [ebp + 0x18]
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], 0
mov word [edi], cx
mov ecx, edi
push eax
mov dword [ebp - 0x230], edi
mov dword [ebp - 0x22c], eax
call fcn.004f19e0
mov dword [ebp - 4], 0
cmp dword [ebx + 0x14], 8
mov dword [ebp - 0x228], 1
jb 0x4eb509
mov eax, dword [ebx]
jmp 0x4eb50b
mov eax, ebx
lea ecx, [ebp - 0x224]
push ecx
push 0x20019
push 0
push eax
push dword [ebp - 0x21c]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4eb607
push 0x206
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
call fcn.005c63d0
add esp, 0xc
mov dword [ebp - 0x21c], 1
cmp dword [esi + 0x14], 8
jb 0x4eb55e
mov eax, dword [esi]
jmp 0x4eb560
mov eax, esi
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [ebp - 0x220]
push ecx
push 0
lea ecx, [ebp - 0x21c]
push ecx
push 0
push eax
push dword [ebp - 0x224]
call ebx
test eax, eax
jne 0x4eb5f6
cmp dword [esi + 0x14], 8
jb 0x4eb58d
mov esi, dword [esi]
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x21c]
push eax
push 0
push esi
push dword [ebp - 0x224]
call ebx
cmp word [ebp - 0x218], 0
jne 0x4eb5cd
xor ecx, ecx
lea eax, [ebp - 0x218]
push ecx
push eax
mov ecx, edi
call fcn.004ef630
jmp 0x4eb65f
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4eb5d6
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
mov ecx, edi
call fcn.004ef630
jmp 0x4eb65f
cmp byte [ebp + 0x1c], 0
je 0x4eb65f
mov eax, dword [ebp - 0x22c]
mov eax, dword [eax + 0x10]
jmp 0x4eb630
cmp byte [ebp + 0x1c], 0
je 0x4eb66b
cmp dword [ebx + 0x14], 8
jb 0x4eb615
mov ebx, dword [ebx]
lea eax, [ebp - 0x224]
push eax
push ebx
push dword [ebp - 0x21c]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x4eb66b
mov eax, dword [edi + 0x10]
add eax, eax
cmp dword [edi + 0x14], 8
mov dword [ebp - 0x220], eax
jb 0x4eb642
mov ecx, dword [edi]
jmp 0x4eb644
mov ecx, edi
cmp dword [esi + 0x14], 8
jb 0x4eb64c
mov esi, dword [esi]
push eax
push ecx
push 1
push 0
push esi
push dword [ebp - 0x224]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x224]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
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 - 0x10]
xor ecx, ebp
call fcn.005c6c09
mov esp, ebp
pop ebp
ret
Function at 0x4ebdd0
Capabilities:
Create process on windows
Get common file path
Get program files directory
Get startup folder

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x602043
mov eax, dword fs:[0]
push eax
sub esp, 0x80
mov eax, dword [0x697bc0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
mov dword [ebp - 4], 0
push 0x4a
push eax
mov word [ebp - 0x5c], ax
lea eax, [ebp - 0x5a]
push eax
call fcn.005c63d0
add esp, 0xc
lea eax, [ebp - 0x5c]
push 0
push 0x26
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
xor eax, eax
mov dword [ebp - 0x78], 7
mov dword [ebp - 0x7c], 0
mov word [ebp - 0x8c], ax
cmp word [ebp - 0x5c], ax
jne 0x4ebe4a
xor ecx, ecx
jmp 0x4ebe5f
lea ecx, [ebp - 0x5c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4ebe50
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x5c]
push eax
lea ecx, [ebp - 0x8c]
call fcn.004ef630
push str.Internet_Exploreriexplore.exe
lea eax, [ebp - 0x8c]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x74]
push eax
call fcn.004f47b0
add esp, 0xc
lea eax, [ebp - 0x74]
cmp dword [ebp - 0x60], 8
mov esi, 1
cmovae eax, dword [ebp - 0x74]
push 0
push 0
push 3
push 0
push esi
push connect
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
xor ecx, ecx
cmp eax, 0xffffffff
push eax
cmove esi, ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x4ebef0
cmp dword [ebp + 0x1c], 8
lea ecx, [ebp + 8]
push 1
cmovae ecx, dword [ebp + 8]
lea eax, [ebp - 0x74]
cmp dword [ebp - 0x60], 8
push 0
cmovae eax, dword [ebp - 0x74]
push ecx
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov bl, 1
jmp 0x4ebef2
xor bl, bl
cmp dword [ebp - 0x60], 8
jb 0x4ebf03
push dword [ebp - 0x74]
call fcn.005c4337
add esp, 4
xor eax, eax
mov dword [ebp - 0x60], 7
cmp dword [ebp - 0x78], 8
mov dword [ebp - 0x64], 0
mov word [ebp - 0x74], ax
jb 0x4ebf2b
push dword [ebp - 0x8c]
call fcn.005c4337
add esp, 4
xor eax, eax
mov dword [ebp - 0x78], 7
cmp dword [ebp + 0x1c], 8
mov dword [ebp - 0x7c], 0
mov word [ebp - 0x8c], ax
jb 0x4ebf53
push dword [ebp + 8]
call fcn.005c4337
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005c6c09
mov esp, ebp
pop ebp
ret
Function at 0x4ebf70
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x838
mov eax, dword [0x697bc0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x66ea58]
movdqu xmm0, xmmword [str.mshtml.dll]
mov dword [ebp - 0xc], eax
mov ax, word [0x66ea5c]
push ebx
push esi
mov esi, dword [ebp + 8]
mov word [ebp - 8], ax
lea eax, [ebp - 0x824]
push eax
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x838], 0
push eax
movdqu xmmword [ebp - 0x1c], xmm0
mov dword [ebp - 0x834], 0
mov dword [ebp - 0x82c], 0
mov dword [ebp - 0x830], 0
mov dword [ebp - 0x824], 0
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov ebx, eax
test ebx, ebx
je 0x4ec129
push edi
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
test edi, edi
je 0x4ec095
push edi
push ebx
push dword [ebp - 0x824]
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x4ec08a
lea eax, [ebp - 0x820]
mov dword [ebp - 0x828], 0
push eax
lea eax, [ebp - 0x828]
mov dword [ebp - 0x820], 0
push eax
push 0x66ddb0
push edi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x4ec08a
cmp dword [ebp - 0x820], 0
je 0x4ec08a
mov eax, dword [ebp - 0x828]
push edi
movzx ecx, word [eax + 8]
movzx ebx, word [eax + 0xa]
mov dword [ebp - 0x834], ecx
movzx ecx, word [eax + 0xe]
movzx eax, word [eax + 0xc]
mov dword [ebp - 0x82c], ecx
mov dword [ebp - 0x830], eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x4ec097
push edi
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x4ec097
xor ebx, ebx
xor eax, eax
push 0x7fe
push eax
mov word [ebp - 0x81c], ax
lea eax, [ebp - 0x81a]
push eax
call fcn.005c63d0
push dword [ebp - 0x830]
lea eax, [ebp - 0x81c]
push dword [ebp - 0x82c]
push dword [ebp - 0x834]
push ebx
push str._d._d._d._d
push 0x400
push eax
call fcn.004e2ce0
add esp, 0x28
mov dword [esi + 0x14], 7
xor eax, eax
mov dword [esi + 0x10], 0
mov word [esi], ax
pop edi
cmp word [ebp - 0x81c], ax
jne 0x4ec107
xor ecx, ecx
lea eax, [ebp - 0x81c]
push ecx
push eax
jmp 0x4ec142
lea ecx, [ebp - 0x81c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4ec110
sub ecx, edx
lea eax, [ebp - 0x81c]
sar ecx, 1
push ecx
push eax
jmp 0x4ec142
xor eax, eax
mov dword [esi + 0x14], 7
push eax
mov dword [esi + 0x10], 0
mov word [esi], ax
push 0x66dd94
mov ecx, esi
call fcn.004ef630
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.005c6c09
mov esp, ebp
pop ebp
ret
Function at 0x4ec160
Capabilities:
Reference http user-agent string

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40c
mov eax, dword [0x697bc0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x403]
push 0x3ff
push 0
push eax
mov dword [ebp - 0x40c], 0
mov byte [ebp - 0x404], 0
call fcn.005c63d0
add esp, 0xc
mov dword [ebp - 0x408], 0x400
lea eax, [ebp - 0x408]
push eax
lea eax, [ebp - 0x404]
push eax
push 0
call dword [sym.imp.urlmon.dll_ObtainUserAgentString]
test eax, eax
je 0x4ec1f3
xor eax, eax
mov dword [esi + 0x14], 7
push eax
mov dword [esi + 0x10], 0
mov ecx, esi
push 0x66dd94
mov word [esi], ax
call fcn.004ef630
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005c6c09
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x404]
push eax
push esi
call fcn.004e3070
mov ecx, dword [ebp - 4]
add esp, 8
mov eax, esi
xor ecx, ebp
pop esi
call fcn.005c6c09
mov esp, ebp
pop ebp
ret
Function at 0x4edaa0
Capabilities:
Get geographical location
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x697bc0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, edx
mov ebx, ecx
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx edi, ax
mov eax, 0x1400
cmp ax, di
je 0x4edb75
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x1c], edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4edad7
sub ecx, edx
lea eax, [ebp - 0x18]
sar ecx, 1
push ecx
push eax
push 0x59
push edi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
cmp eax, 1
jle 0x4edb75
dec eax
mov ecx, ebx
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.004ef630
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], 0
jb 0x4edb17
mov eax, dword [esi]
jmp 0x4edb19
mov eax, esi
xor ecx, ecx
and edi, 0xfc00
mov word [eax], cx
xor eax, eax
cmp ax, di
je 0x4edb62
lea ecx, [ebp - 0x18]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4edb31
sub ecx, edx
lea eax, [ebp - 0x18]
sar ecx, 1
push ecx
push eax
push 0x5a
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
cmp eax, 1
jle 0x4edb62
dec eax
mov ecx, esi
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.004ef630
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005c6c09
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005c6c09
mov esp, ebp
pop ebp
ret
Function at 0x4ede60
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x602398
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x697bc0]
xor eax, esp
mov dword [esp + 0x48], eax
push ebx
mov eax, dword [0x697bc0]
xor eax, esp
push eax
lea eax, [esp + 0x58]
mov dword fs:[0], eax
lea eax, [esp + 0x38]
push eax
call fcn.004e9430
add esp, 4
push 0x14
push str.Microsoft_Windows_XP
mov dword [esp + 0x68], 0
lea ecx, [esp + 0x40]
push dword [esp + 0x50]
push 0
call fcn.004f1ca0
test eax, eax
jne 0x4ededa
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
mov ecx, 0x804
cmp cx, ax
sete bl
jmp 0x4edf8f
push 5
xor eax, eax
mov dword [esp + 0x20], 7
push str.zh_CN
lea ecx, [esp + 0x10]
mov dword [esp + 0x20], 0
mov word [esp + 0x10], ax
call fcn.004ef630
lea ecx, [esp + 0x20]
mov byte [esp + 0x60], 1
call fcn.004ed9e0
mov byte [esp + 0x60], 2
lea eax, [esp + 0x20]
cmp dword [esp + 0x34], 8
lea ecx, [esp + 8]
push dword [esp + 0x30]
cmovae eax, dword [esp + 0x24]
push eax
push dword [esp + 0x20]
push 0
call fcn.004f1ca0
test eax, eax
sete bl
cmp dword [esp + 0x34], 8
jb 0x4edf4e
push dword [esp + 0x20]
call fcn.005c4337
add esp, 4
xor eax, eax
mov dword [esp + 0x34], 7
cmp dword [esp + 0x1c], 8
mov dword [esp + 0x30], 0
mov word [esp + 0x20], ax
jb 0x4edf78
push dword [esp + 8]
call fcn.005c4337
add esp, 4
xor eax, eax
mov dword [esp + 0x1c], 7
mov dword [esp + 0x18], 0
mov word [esp + 8], ax
cmp dword [esp + 0x4c], 8
jb 0x4edfa2
push dword [esp + 0x38]
call fcn.005c4337
add esp, 4
mov al, bl
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.005c6c09
mov esp, ebp
pop ebp
ret
Function at 0x4ee3d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x60243b
mov eax, dword fs:[0]
push eax
sub esp, 0x23c
mov eax, dword [0x697bc0]
xor eax, esp
mov dword [esp + 0x234], eax
push esi
push edi
mov eax, dword [0x697bc0]
xor eax, esp
push eax
lea eax, [esp + 0x248]
mov dword fs:[0], eax
xorps xmm0, xmm0
mov dword [esp + 0x18], 0
movq qword [esp + 0x10], xmm0
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x250], 0
lea ecx, [esp + 0x20]
push 0x18
xor eax, eax
mov dword [esp + 0x38], 7
push str.SOFTWAREHuorongSysdiag
mov dword [esp + 0x38], 0
mov word [esp + 0x28], ax
call fcn.004ef630
cmp dword [esp + 0x34], 8
lea eax, [esp + 0x20]
push 0x101
cmovae eax, dword [esp + 0x24]
lea ecx, [esp + 0x14]
push eax
push reloc.WS2_32.dll_bind
call fcn.004e2970
test eax, eax
je 0x4ee4d7
cmp dword [esp + 0x34], 8
lea eax, [esp + 0x20]
push 1
cmovae eax, dword [esp + 0x24]
lea ecx, [esp + 0x14]
push eax
push reloc.WS2_32.dll_bind
call fcn.004e2970
test eax, eax
je 0x4ee4d7
xor esi, esi
cmp dword [esp + 0x34], 8
jb 0x4ee4ce
push dword [esp + 0x20]
call fcn.005c4337
mov edi, dword [esp + 0x14]
jmp 0x4ee554
mov edi, dword [esp + 0x10]
jmp 0x4ee557
xor eax, eax
push 0x1fe
push eax
mov word [esp + 0x44], ax
lea eax, [esp + 0x46]
push eax
call fcn.005c63d0
mov edi, dword [esp + 0x1c]
lea eax, [esp + 0x28]
add esp, 0xc
mov dword [esp + 0x1c], 0x3fe
push eax
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x40]
push eax
push 0
push str.InstallPath
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4ee542
mov eax, dword [esp + 0x38]
cmp eax, 1
je 0x4ee52c
cmp eax, 2
jne 0x4ee542
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4ee587
test al, 1
jne 0x4ee542
shr eax, 1
cmp word [esp + eax*2 + 0x3a], 0
je 0x4ee58e
xor esi, esi
cmp dword [esp + 0x34], 8
jb 0x4ee557
push dword [esp + 0x20]
call fcn.005c4337
add esp, 4
test edi, edi
je 0x4ee562
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [esp + 0x248]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x234]
xor ecx, esp
call fcn.005c6c09
mov esp, ebp
pop ebp
ret
xor eax, eax
mov word [esp + 0x3c], ax
lea eax, [esp + 0x3c]
push 0x100
push eax
call fcn.005caf51
xor ecx, ecx
add esp, 8
cmp ecx, eax
sbb esi, esi
neg esi
jmp 0x4ee544
Function at 0x4f2470
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x602678
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x697bc0]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
push edi
mov eax, dword [0x697bc0]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [ebx + 0x40], 0
je 0x4f25c4
cmp byte [ebx + 0x45], 0
je 0x4f25c4
mov eax, dword [ebx]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
jne 0x4f24d0
xor al, al
jmp 0x4f25c6
mov ecx, 0xf
mov byte [esp + 0x18], 0
xorps xmm0, xmm0
mov dword [esp + 0x2c], ecx
cmp ecx, 0x10
movq qword [esp + 0x18], xmm0
lea eax, [esp + 0x18]
mov dword [esp + 0x28], 8
cmovae eax, dword [esp + 0x18]
mov byte [eax + 8], 0
mov dword [esp + 0x40], 0
jmp 0x4f2510
cmp dword [esp + 0x2c], 0x10
lea eax, [esp + 0x14]
mov ecx, dword [ebx + 0x40]
lea edi, [esp + 0x18]
cmovae edi, dword [esp + 0x18]
lea esi, [esp + 0x18]
cmovae esi, dword [esp + 0x18]
push eax
mov eax, dword [esp + 0x2c]
mov edx, dword [ecx]
add eax, edi
push eax
push esi
lea eax, [ebx + 0x48]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x4f2551
dec eax
je 0x4f2555
sub eax, 2
je 0x4f25ab
xor bl, bl
jmp 0x4f25ad
mov byte [ebx + 0x45], 0
mov ecx, dword [esp + 0x2c]
lea eax, [esp + 0x18]
mov edx, dword [esp + 0x18]
cmp ecx, 0x10
mov esi, dword [esp + 0x14]
cmovae eax, edx
sub esi, eax
je 0x4f258c
push dword [ebx + 0x50]
cmp ecx, 0x10
lea eax, [esp + 0x1c]
push esi
cmovae eax, edx
push 1
push eax
call fcn.005ca0a0
add esp, 0x10
cmp esi, eax
jne 0x4f254d
cmp byte [ebx + 0x45], 0
je 0x4f25ab
test esi, esi
jne 0x4f2510
push esi
push 8
lea ecx, [esp + 0x20]
call fcn.004f0ca0
jmp 0x4f2510
mov bl, 1
cmp dword [esp + 0x2c], 0x10
jb 0x4f25c0
push dword [esp + 0x18]
call fcn.005c4337
add esp, 4
mov al, bl
jmp 0x4f25c6
mov al, 1
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.005c6c09
mov esp, ebp
pop ebp
ret
Function at 0x4f48a0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x60284b
mov eax, dword fs:[0]
push eax
sub esp, 0x240
mov eax, dword [0x697bc0]
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
cmp dword [ecx + 0x18], 8
mov eax, dword [ebp + 8]
mov dword [ebp - 0x228], eax
lea eax, [ecx + 4]
mov dword [ebp - 0x224], 0
jb 0x4f48ec
mov eax, dword [eax]
lea edx, [ebp - 0x224]
push edx
push dword [ecx + 0x1c]
push 0
push eax
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4f4a19
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
xor esi, esi
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x21c], ax
lea eax, [ebp - 0x21a]
push eax
call fcn.005c63d0
add esp, 0xc
mov dword [ebp - 0x220], 0x104
lea eax, [ebp - 0x220]
push 0
push 0
push 0
push 0
push eax
lea eax, [ebp - 0x21c]
push eax
push esi
push dword [ebp - 0x224]
call ebx
mov edi, eax
xor eax, eax
test edi, edi
jne 0x4f4a02
inc esi
mov dword [ebp - 0x22c], 7
mov dword [ebp - 0x230], edi
mov word [ebp - 0x240], ax
cmp word [ebp - 0x21c], ax
je 0x4f499f
lea eax, [ebp - 0x21c]
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4f4990
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x240]
call fcn.004ef630
mov dword [ebp - 4], 0
movzx eax, byte [0x6a2b25]
push eax
lea eax, [ebp - 0x240]
push eax
push ecx
mov ecx, dword [ebp - 0x228]
lea eax, [ebp - 0x248]
push eax
call fcn.004f5840
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x22c], 8
jb 0x4f4911
push dword [ebp - 0x240]
call fcn.005c4337
add esp, 4
jmp 0x4f4911
push dword [ebp - 0x224]
cmp edi, 0x103
cmove edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
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.005c6c09
mov esp, ebp
pop ebp
ret 4

Function at 0x4f8af0
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x697bc0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0x10], 0
jne 0x4f8b1e
or eax, 0xffffffff
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005c6c09
mov esp, ebp
pop ebp
ret 4
cmp dword [ecx + 0x18], 8
lea eax, [ecx + 4]
mov dword [ebp - 8], 0
jb 0x4f8b30
mov eax, dword [eax]
lea edx, [ebp - 8]
push edx
push dword [ecx + 0x1c]
push 0
push eax
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4f8b65
cmp dword [esi + 0x14], 8
jb 0x4f8b4e
mov esi, dword [esi]
push esi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 8]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.005c6c09
mov esp, ebp
pop ebp
ret 4
Function at 0x4f8c20
Capabilities:
Access peb ldr_data
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
push 0xffffffffffffffff
push 0x602c68
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x697bc0]
xor eax, esp
mov dword [esp + 0x44], eax
push esi
push edi
mov eax, dword [0x697bc0]
xor eax, esp
push eax
lea eax, [esp + 0x58]
mov dword fs:[0], eax
mov dword [esp + 0xc], ecx
mov eax, dword [ebp + 0x10]
xorps xmm0, xmm0
mov edi, dword [ebp + 0xc]
xor ecx, ecx
push 0xffffffffffffffff
movdqa xmmword [esp + 0x18], xmm0
push ecx
movdqa xmmword [esp + 0x2c], xmm0
mov word [esp + 0x20], cx
lea ecx, [esp + 0x20]
push eax
movq qword [esp + 0x40], xmm0
mov dword [esp + 0x20], 1
mov dword [esp + 0x38], 7
mov dword [esp + 0x34], 0
call fcn.004f19e0
mov dword [esp + 0x30], 0x208
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
mov eax, dword [esp + 0xc]
mov dword [esp + 0x60], 0
lea esi, [eax + 4]
cmp dword [esi + 0x14], 8
mov dword [esp + 0x10], 0
jb 0x4f8cda
mov ecx, dword [esi]
jmp 0x4f8cdc
mov ecx, esi
lea edx, [esp + 0x10]
push edx
push dword [eax + 0x1c]
push 0
push ecx
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x4f8d27
cmp dword [esi + 0x14], 8
jb 0x4f8cfb
mov esi, dword [esi]
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x10]
push eax
push esi
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
je 0x4f8d27
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [esp + 0x10]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0
jmp 0x4f8d82
mov eax, dword [esp + 0x28]
add eax, eax
push eax
call fcn.005c286c
cmp dword [esp + 0x30], 8
lea edx, [esp + 0x1c]
mov ecx, dword [esp + 0x2c]
mov esi, eax
cmovae edx, dword [esp + 0x1c]
add ecx, ecx
push ecx
push edx
push esi
call fcn.005c5d80
add esp, 0x10
cmp dword [edi + 0x14], 8
jb 0x4f8d5c
mov edi, dword [edi]
mov eax, dword [esp + 0x28]
add eax, eax
push eax
push esi
push dword [esp + 0x1c]
push 0
push edi
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [esp + 0x10]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call fcn.005c736d
mov dword [esp + 0x64], 0xffffffff
add esp, 4
mov esi, dword [esp + 0x38]
test esi, esi
je 0x4f8dbf
lea ecx, [esi + 4]
or eax, 0xffffffff
lock xadd dword [ecx], eax
jne 0x4f8dbf
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lea eax, [esi + 8]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x4f8dbf
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
cmp dword [esp + 0x2c], 8
jb 0x4f8dd2
push dword [esp + 0x18]
call fcn.005c4337
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.005c6c09
mov esp, ebp
pop ebp
ret 0xc