joyce8/EMBER2024-capa huggingface dataset:
Function at 0x50d2b0
Capabilities:
Get keyboard layout

Disassembly:
sub esp, 0x14
push ebp
mov ebp, dword [sym.imp.USER32.dll_GetKeyboardLayoutList]
push esi
push 0
push 0
call ebp
mov esi, eax
test esi, esi
je 0x50d3fd
mov al, byte [esp + 0x20]
mov dword [esp + 8], 0
mov byte [esp + 0xc], al
mov eax, esi
jge 0x50d2e1
xor eax, eax
lea ecx, [eax*4]
push edi
push ecx
call fcn.00672b70
add esp, 4
mov dword [esp + 0x14], eax
test esi, esi
mov edi, eax
jbe 0x50d318
push ebx
mov ebx, esi
lea edx, [esp + 0x10]
push edx
push edi
call fcn.0050ff50
add esp, 8
add edi, 4
dec ebx
jne 0x50d2ff
mov eax, dword [esp + 0x18]
pop ebx
lea edx, [eax + esi*4]
mov dword [esp + 0xc], 0
test eax, eax
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], edx
jne 0x50d333
xor ecx, ecx
jmp 0x50d33a
mov ecx, edx
sub ecx, eax
sar ecx, 2
cmp ecx, esi
jae 0x50d35f
lea eax, [esp + 0xc]
lea ecx, [esp + 0x10]
push eax
mov edi, edx
call fcn.0050f260
mov ecx, esi
sub ecx, eax
push ecx
push edi
lea ecx, [esp + 0x1c]
call fcn.0050f280
jmp 0x50d382
lea ecx, [esp + 0x10]
call fcn.0050f260
cmp esi, eax
jae 0x50d382
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
push edx
lea ecx, [eax + esi*4]
push ecx
lea ecx, [esp + 0x18]
call fcn.0050f490
mov edx, dword [esp + 0x14]
push edx
push esi
call ebp
mov esi, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov eax, esi
cmp eax, ecx
je 0x50d3a7
mov edx, dword [esp + 0x24]
cmp dword [eax], edx
je 0x50d3a7
add eax, 4
cmp eax, ecx
jne 0x50d39c
cmp eax, ecx
pop edi
je 0x50d3f4
cmp esi, eax
je 0x50d3cb
cmp eax, ecx
je 0x50d3cb
push 0
push 0
push ecx
push eax
push esi
call fcn.0050ff90
mov ecx, dword [esp + 0x28]
mov esi, dword [esp + 0x24]
add esp, 0x14
cmp esi, ecx
je 0x50d3f4
mov eax, dword [esi]
push 4
push eax
call sub.IMM32.dll_ImmGetProperty
and eax, 0x30000
cmp eax, 0x30000
jne 0x50d407
mov eax, dword [esp + 0x14]
add esi, 4
cmp esi, eax
jne 0x50d3cf
mov esi, dword [esp + 0x10]
push esi
call fcn.00672c80
add esp, 4
pop esi
xor eax, eax
pop ebp
add esp, 0x14
ret 4
mov ecx, dword [esp + 0x10]
mov esi, dword [esi]
push ecx
call fcn.00672c80
add esp, 4
mov eax, esi
pop esi
pop ebp
add esp, 0x14
ret 4
Function at 0x50d420
Capabilities:
Get geographical location

Disassembly:
sub esp, 0x10
lea eax, [esp + 8]
push ebx
push esi
push edi
mov edi, dword [esp + 0x20]
mov esi, ecx
push 8
mov ecx, edi
push eax
and ecx, 0xffff
push 0x1004
push ecx
mov word [esi + 0x6c], di
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
lea edx, [esp + 0x14]
push edx
call fcn.0078cee7
add esp, 4
mov dword [esi + 0x70], eax
push 4
push edi
call sub.IMM32.dll_ImmGetProperty
mov ecx, eax
mov dword [esi + 0x78], eax
and ecx, 0x40000
cmp ecx, 0x40000
mov cl, byte [esi + 0x7e]
sete dl
test cl, cl
mov byte [esi + 0x7d], dl
je 0x50d48f
test eax, 0x80000
je 0x50d48f
mov eax, 1
jmp 0x50d491
xor eax, eax
test al, al
mov byte [esi + 0x7f], al
je 0x50d4bf
push ebp
push 0
push 0
push edi
call sub.IMM32.dll_ImmGetDescriptionW
mov ebx, eax
lea ebp, [esi + 0x74]
inc ebx
mov ecx, ebp
push ebx
call fcn.005dd910
mov eax, dword [ebp]
push ebx
push eax
push edi
call sub.IMM32.dll_ImmGetDescriptionW
pop ebp
jmp 0x50d519
push 0
push 0
push edi
call sub.IMM32.dll_ImmGetDescriptionA
mov ecx, dword [0x809d38]
mov ebx, eax
inc ebx
mov dword [esp + 0x20], ecx
push 1
push ebx
lea ecx, [esp + 0x28]
call fcn.005dcfa0
mov edx, dword [esp + 0x20]
mov al, byte [0x83ec0c]
push ebx
lea ecx, [esp + 0x24]
mov byte [edx], al
call fcn.005dd330
mov ecx, dword [esp + 0x20]
push ebx
push ecx
push edi
call sub.IMM32.dll_ImmGetDescriptionA
mov edx, dword [esp + 0x20]
lea ecx, [esi + 0x74]
push edx
call fcn.005ddc50
lea ecx, [esp + 0x20]
call fcn.005dd410
mov eax, dword [esi + 8]
lea ecx, [esi + 8]
lea edx, [esp + 0xc]
mov dword [esp + 0xc], esi
push edx
mov dword [esp + 0x14], 3
call dword [eax + 4]
pop edi
pop esi
pop ebx
add esp, 0x10
ret 4
Function at 0x50da00
Capabilities:
Log keystrokes via input method manager

Disassembly:
sub esp, 0x100
push esi
mov esi, ecx
mov al, byte [esi + 0x7f]
test al, al
je 0x50da5e
mov eax, dword [esp + 0x114]
mov esi, dword [esp + 0x110]
mov ecx, dword [esp + 0x10c]
mov edx, dword [esp + 0x108]
push eax
push esi
push ecx
push edx
call sub.IMM32.dll_ImmGetCompositionStringW
test eax, eax
jge 0x50da4a
mov word [esi], 0
xor al, al
pop esi
add esp, 0x100
ret 0x10
shr eax, 1
mov word [esi + eax*2], 0
mov al, 1
pop esi
add esp, 0x100
ret 0x10
mov ecx, dword [esp + 0x10c]
mov edx, dword [esp + 0x108]
lea eax, [esp + 4]
push 0xff
push eax
push ecx
push edx
call sub.IMM32.dll_ImmGetCompositionStringA
test eax, eax
jge 0x50da99
mov eax, dword [esp + 0x110]
pop esi
mov word [eax], 0
xor al, al
add esp, 0x100
ret 0x10
mov ecx, dword [esp + 0x114]
mov edx, dword [esp + 0x110]
shr ecx, 1
mov byte [esp + eax + 4], 0
push ecx
mov ecx, dword [esi + 0x70]
push edx
lea eax, [esp + 0xc]
push 0xffffffffffffffff
push eax
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov al, 1
pop esi
add esp, 0x100
ret 0x10

Function at 0x50ded0
Capabilities:
Log keystrokes via input method manager

Disassembly:
mov al, byte [ecx + 0x7f]
sub esp, 0x100
test al, al
push esi
je 0x50df03
mov eax, dword [esp + 0x108]
push 0
push 0
push 0x80
push eax
call sub.IMM32.dll_ImmGetCompositionStringW
and eax, 0xffff
pop esi
add esp, 0x100
ret 4
mov esi, dword [esp + 0x108]
lea ecx, [esp + 4]
push 0xff
push ecx
push 8
push esi
call sub.IMM32.dll_ImmGetCompositionStringA
test eax, eax
jge 0x50df2c
xor eax, eax
pop esi
add esp, 0x100
ret 4
push 0
push 0
push 0x80
push esi
mov byte [esp + eax + 0x14], 0
call sub.IMM32.dll_ImmGetCompositionStringA
and eax, 0xffff
lea edx, [esp + 4]
push eax
push edx
call fcn.0078f9bc
add esp, 8
pop esi
add esp, 0x100
ret 4
Function at 0x51c5b0
Capabilities:
Create thread

Disassembly:
push ecx
mov al, byte [0x8302f0]
test al, al
je 0x51c5d9
mov ecx, dword [esp + 8]
test ecx, ecx
je 0x51c694
mov eax, dword [ecx + 4]
dec eax
mov dword [ecx + 4], eax
jne 0x51c694
mov eax, dword [ecx]
call dword [eax]
pop ecx
ret
cmp dword [0x7fd5c8], 0xffffffff
jne 0x51c60b
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
push 0
push 0
push 0x51c710
mov dword [0x7fd5cc], eax
call fcn.0078fa0a
add esp, 0xc
mov dword [0x7fd5c8], eax
push esi
push 0x8302d8
lea ecx, [esp + 8]
call fcn.005e6fa0
push 0x10
call fcn.00672b70
mov ecx, dword [esp + 0x10]
mov esi, eax
add esp, 4
mov dword [esi], ecx
mov al, byte [0x81c644]
test al, al
jne 0x51c646
mov ecx, 0x83f450
call fcn.005ddd50
mov byte [0x81c644], 1
call dword [sym.imp.WINMM.dll_timeGetTime]
mov ecx, dword [0x83f450]
cmp eax, ecx
jbe 0x51c65a
sub eax, ecx
jmp 0x51c662
mov edx, dword [0x83f454]
add eax, edx
mov ecx, dword [esp + 0x10]
add eax, ecx
mov dword [esi + 4], eax
mov edx, dword [0x8302ec]
mov eax, edx
mov dword [esi + 8], edx
test eax, eax
mov dword [esi + 0xc], 0
je 0x51c684
mov dword [eax + 0xc], esi
lea ecx, [esp + 4]
mov dword [0x8302ec], esi
call fcn.005e6fd0
pop esi
pop ecx
ret
Function at 0x57ecc0
Capabilities:
Print debug messages

Disassembly:
mov eax, dword [ecx + 0xc]
sub esp, 0x100
cmp eax, 1
jne 0x57ed1b
mov eax, dword [ecx + 0x10]
push 0
push 0
push 0x10
lea edx, [eax + 1]
mov dword [ecx + 0x10], edx
mov edx, dword [ecx + 0xc0]
push edx
mov edx, dword [esp + 0x114]
push edx
push 1
push eax
mov eax, dword [ecx + 0x1c]
push eax
call sub.AVIFIL32.dll_AVIStreamWrite
test eax, eax
je 0x57ed1b
push eax
push eax
lea ecx, [esp + 8]
push str.avi_write_error__x__d_n
push ecx
call fcn.0078cdc6
add esp, 0x10
lea edx, [esp]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
add esp, 0x100
ret 4
Function at 0x597e80
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x64
push ebx
push ebp
mov ebp, ecx
push esi
push edi
mov byte [esp + 0x13], 0
mov ecx, dword [ebp + 0x30]
mov dword [esp + 0x14], 0x3f800000
test ecx, ecx
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0x3f800000
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0x3f800000
mov dword [esp + 0x40], 0
je 0x597eff
lea eax, [esp + 0x14]
push eax
call fcn.005564d0
lea ecx, [esp + 0x14]
push ebp
lea edx, [esp + 0x48]
push ecx
push edx
call fcn.004e7c80
mov ecx, dword [eax]
lea esi, [ebp + 0x34]
mov ebx, dword [esp + 0x88]
add esp, 0xc
mov dword [esi], ecx
mov edx, dword [eax + 4]
mov dword [esi + 4], edx
mov ecx, dword [eax + 8]
mov dword [esi + 8], ecx
mov edx, dword [eax + 0xc]
mov dword [esi + 0xc], edx
mov ecx, dword [eax + 0x10]
mov dword [esi + 0x10], ecx
mov edx, dword [eax + 0x14]
mov dword [esi + 0x14], edx
mov ecx, dword [eax + 0x18]
mov dword [esi + 0x18], ecx
mov edx, dword [eax + 0x1c]
mov dword [esi + 0x1c], edx
mov ecx, dword [eax + 0x20]
mov dword [esi + 0x20], ecx
mov edx, dword [eax + 0x24]
mov dword [esi + 0x24], edx
mov ecx, dword [eax + 0x28]
mov dword [esi + 0x28], ecx
mov edx, dword [eax + 0x2c]
lea ecx, [ebp + 0x8c]
mov dword [esi + 0x2c], edx
push ebx
mov eax, dword [ecx]
call dword [eax + 8]
mov ecx, dword [esp + 0x78]
mov edi, dword [ebp + 0x90]
push ebx
push esi
push ecx
push edi
call fcn.006005b0
add esp, 0x10
test ebx, ebx
jle 0x597f9a
mov esi, edi
mov ecx, dword [ebp + 0x30]
push esi
push esi
call fcn.00555430
add esi, 0xc
dec ebx
jne 0x597f8a
mov eax, dword [esp + 0x84]
mov dword [esp + 0x7c], 0
test eax, eax
jle 0x598010
mov edx, dword [esp + 0x80]
lea ebx, [ebp + 0x64]
lea esi, [edx + 2]
xor eax, eax
mov ax, word [esi + 2]
lea eax, [eax + eax*2]
lea ecx, [edi + eax*4]
xor eax, eax
mov ax, word [esi]
push ecx
lea edx, [eax + eax*2]
lea eax, [edi + edx*4]
push eax
xor eax, eax
mov ax, word [esi - 2]
lea ecx, [eax + eax*2]
lea edx, [edi + ecx*4]
mov ecx, ebx
push edx
call fcn.005985c0
mov cl, byte [esp + 0x13]
or cl, al
mov byte [esp + 0x13], cl
je 0x597ff9
cmp dword [ebp + 0x74], 1
je 0x59801e
mov eax, dword [esp + 0x7c]
mov ecx, dword [esp + 0x84]
inc eax
add esi, 6
cmp eax, ecx
mov dword [esp + 0x7c], eax
jl 0x597fba
mov al, byte [esp + 0x13]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x64
ret 0x10
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x64
ret 0x10
Function at 0x5daea0
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
push edi
mov dword [esi], 0x7de8c8
mov byte [esi + 4], 0
mov al, byte [0x81c644]
test al, al
jne 0x5daec8
mov ecx, 0x83f450
call fcn.005ddd50
mov byte [0x81c644], 1
call dword [sym.imp.WINMM.dll_timeGetTime]
mov ecx, dword [0x83f450]
cmp eax, ecx
jbe 0x5daede
sub eax, ecx
mov edi, eax
jmp 0x5daee7
mov ecx, dword [0x83f454]
lea edi, [ecx + eax]
mov eax, dword [esi + 0x50]
test eax, eax
je 0x5daf57
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_TerminateThread]
mov al, byte [0x81c644]
test al, al
jne 0x5daf16
mov ecx, 0x83f450
call fcn.005ddd50
mov byte [0x81c644], 1
call dword [sym.imp.WINMM.dll_timeGetTime]
mov ecx, dword [0x83f450]
cmp eax, ecx
jbe 0x5daf2a
sub eax, ecx
jmp 0x5daf32
mov edx, dword [0x83f454]
add eax, edx
sub eax, edi
cmp eax, 0xbb8
jbe 0x5daf4a
push 0
mov eax, dword [esi + 0x50]
push eax
call ebp
mov dword [esi + 0x50], 0
push 0
call ebx
mov eax, dword [esi + 0x50]
test eax, eax
jne 0x5daefc
pop ebp
pop ebx
pop edi
pop esi
ret

Function at 0x5db010
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
push esi
push 0
push 0x5daf60
call fcn.0078fa0a
add esp, 0xc
mov dword [esi + 0x50], eax
mov eax, dword [esi + 0x54]
push eax
mov ecx, dword [esi + 0x50]
push ecx
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
pop esi
ret

Function at 0x5db060
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
push edi
mov byte [esi + 4], 0
mov al, byte [0x81c644]
test al, al
jne 0x5db082
mov ecx, 0x83f450
call fcn.005ddd50
mov byte [0x81c644], 1
call dword [sym.imp.WINMM.dll_timeGetTime]
mov ecx, dword [0x83f450]
cmp eax, ecx
jbe 0x5db098
sub eax, ecx
mov edi, eax
jmp 0x5db0a1
mov ecx, dword [0x83f454]
lea edi, [ecx + eax]
mov eax, dword [esi + 0x50]
test eax, eax
je 0x5db110
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_TerminateThread]
push ebp
mov ebp, dword [esp + 0x14]
mov al, byte [0x81c644]
test al, al
jne 0x5db0ce
mov ecx, 0x83f450
call fcn.005ddd50
mov byte [0x81c644], 1
call dword [sym.imp.WINMM.dll_timeGetTime]
mov ecx, dword [0x83f450]
cmp eax, ecx
jbe 0x5db0e2
sub eax, ecx
jmp 0x5db0ea
mov edx, dword [0x83f454]
add eax, edx
sub eax, edi
cmp eax, ebp
jbe 0x5db0ff
push 0
mov eax, dword [esi + 0x50]
push eax
call ebx
mov dword [esi + 0x50], 0
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esi + 0x50]
test eax, eax
jne 0x5db0b4
pop ebp
pop ebx
pop edi
pop esi
ret 4

Function at 0x5dbd50
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
lea eax, [esp + 4]
lea edx, [esp]
push eax
lea eax, [esp + 0x10]
push edx
mov edx, dword [esp + 0x14]
push eax
mov eax, dword [ecx]
push 0
push edx
push eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x5dbd8d
cmp dword [esp + 0xc], 4
je 0x5dbd97
mov eax, dword [esp + 0x10]
add esp, 8
ret 8
mov eax, dword [esp]
add esp, 8
ret 8
Function at 0x5dbde0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
lea eax, [esp + 4]
lea edx, [esp]
push eax
lea eax, [esp + 0x10]
push edx
mov edx, dword [esp + 0x14]
push eax
mov eax, dword [ecx]
push 0
push edx
push eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x5dbe1d
cmp dword [esp + 0xc], 4
je 0x5dbe35
mov eax, dword [esp + 0x10]
xor ecx, ecx
and eax, 0xff
test eax, eax
setne cl
mov al, cl
add esp, 8
ret 8
mov eax, dword [esp]
xor ecx, ecx
test eax, eax
setne cl
mov al, cl
add esp, 8
ret 8

Function at 0x5dbe90
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
lea eax, [esp + 4]
lea edx, [esp]
push eax
lea eax, [esp + 0x10]
push edx
mov edx, dword [esp + 0x14]
push eax
mov eax, dword [ecx]
push 0
push edx
push eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x5dbecd
cmp dword [esp + 0xc], 4
je 0x5dbed7
fld dword [esp + 0x10]
add esp, 8
ret 8
fld dword [esp]
add esp, 8
ret 8

Function at 0x5dbfb0
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x1c]
mov ebp, ecx
push edi
test esi, esi
mov dword [esp + 0x10], ebp
jne 0x5dbfca
mov esi, 0x81c668
test esi, esi
mov ebx, dword [esp + 0x1c]
je 0x5dc00e
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, ecx
mov ecx, ebx
lea ebp, [edi + 1]
push ebp
call fcn.005dd330
mov eax, dword [ebx]
mov ecx, dword [0x809d38]
cmp eax, ecx
je 0x5dbff8
mov dword [eax - 4], edi
mov edi, dword [ebx]
mov ecx, ebp
mov eax, ecx
mov ebp, dword [esp + 0x10]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x18]
lea ecx, [esp + 0x20]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
xor eax, eax
push ecx
lea edx, [esp + 0x20]
push eax
push edx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], eax
push eax
mov eax, dword [ebp]
push esi
push eax
call edi
test eax, eax
jne 0x5dc062
cmp dword [esp + 0x1c], 1
jne 0x5dc062
mov ecx, dword [esp + 0x20]
push ecx
mov ecx, ebx
call fcn.005dd330
mov eax, dword [ebx]
lea edx, [esp + 0x20]
push edx
mov edx, dword [ebp]
lea ecx, [esp + 0x20]
push eax
push ecx
push 0
push esi
push edx
call edi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0xc
Function at 0x5dc070
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov ecx, dword [ecx]
push ebx
mov ebx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push edi
push eax
mov eax, dword [esp + 0x14]
lea edx, [esp + 0xc]
push ebx
push edx
push 0
push eax
push ecx
mov dword [esp + 0x20], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x5dc0a5
cmp dword [esp + 8], 1
je 0x5dc0b0
mov edi, dword [esp + 0x1c]
test edi, edi
jne 0x5dc0b8
mov byte [ebx], 0
mov eax, ebx
pop edi
pop ebx
pop ecx
ret 0x10
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push esi
mov edx, ecx
mov esi, edi
mov edi, ebx
mov eax, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop esi
pop edi
pop ebx
pop ecx
ret 0x10

Function at 0x5dc0e0
Capabilities:
Set registry value

Disassembly:
mov al, byte [0x83dc04]
push esi
test al, al
mov esi, ecx
jne 0x5dc110
mov edx, dword [esp + 0xc]
push edi
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
mov ecx, dword [esi]
push edx
push 1
push eax
mov eax, dword [esp + 0x1c]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
ret 8
Function at 0x5dc120
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x90
push 0
push 0
push 0
lea eax, [esp + 0x10]
push 0
lea edx, [esp + 0x20]
push eax
mov eax, dword [ecx]
push edx
push 0
push eax
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x24], 0x80
mov dword [esp + 0x28], 1
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
jne 0x5dc2bf
push ebx
mov ebx, dword [esp + 0x98]
push ebp
push esi
push edi
mov edx, dword [0x809d38]
lea ecx, [esp + 0x20]
test ecx, ecx
mov dword [esp + 0x14], 0x80
mov dword [esp + 0x10], edx
je 0x5dc1eb
lea edi, [esp + 0x20]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
test ecx, ecx
jle 0x5dc1a2
inc ecx
push eax
push ecx
lea ecx, [esp + 0x18]
call fcn.005dcfa0
lea edi, [esp + 0x20]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
lea ecx, [esp + 0x10]
lea esi, [ebp + 1]
push esi
call fcn.005dd330
mov edi, dword [esp + 0x10]
mov eax, dword [0x809d38]
cmp edi, eax
je 0x5dc1d3
mov dword [edi - 4], ebp
mov edi, dword [esp + 0x10]
mov ecx, esi
lea esi, [esp + 0x20]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edx, dword [esp + 0x10]
mov ecx, dword [ebx + 8]
mov eax, dword [ebx + 0x10]
cmp eax, ecx
jl 0x5dc21b
mov al, byte [ebx + 0xd]
test al, al
jne 0x5dc200
test ecx, ecx
jne 0x5dc27f
mov eax, dword [ebx + 0x14]
test eax, eax
jle 0x5dc27f
mov edx, dword [ebx]
add eax, ecx
push 0
push eax
mov ecx, ebx
call dword [edx + 8]
test al, al
je 0x5dc27f
mov edx, dword [esp + 0x10]
mov eax, dword [ebx + 0x10]
xor esi, esi
lea ecx, [eax + 1]
mov dword [ebx + 0x10], ecx
mov ecx, dword [ebx + 4]
lea ebp, [ecx + eax*4]
mov eax, dword [0x809d38]
cmp edx, eax
je 0x5dc24d
mov esi, dword [edx - 4]
test esi, esi
jne 0x5dc24d
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
mov dword [edx - 4], esi
lea edi, [esi + 1]
mov ecx, ebp
push edi
call fcn.005dd330
mov eax, dword [ebp]
mov ecx, dword [0x809d38]
cmp eax, ecx
je 0x5dc268
mov dword [eax - 4], esi
mov esi, dword [esp + 0x10]
mov ecx, edi
mov edi, dword [ebp]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x10]
call fcn.005dd410
mov ecx, dword [esp + 0x18]
push 0
mov eax, ecx
inc ecx
mov dword [esp + 0x1c], ecx
push 0
push 0
lea ecx, [esp + 0x20]
push 0
lea edx, [esp + 0x30]
push ecx
push edx
push eax
mov eax, dword [esp + 0x38]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
je 0x5dc16a
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x90
ret 4
Function at 0x5dc2f0
Capabilities:
Delete registry value
Query or enumerate registry value

Disassembly:
mov al, byte [0x83dc04]
sub esp, 0xa0
test al, al
push ebx
push esi
push edi
mov ebx, ecx
jne 0x5dc44a
push ebp
push 0
push 0
lea ecx, [esp + 0x20]
call fcn.00420d90
mov edx, dword [ebx]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
push 0
push 0
push 0
lea eax, [esp + 0x20]
push 0
lea ecx, [esp + 0x40]
push eax
push ecx
push 0
push edx
mov dword [esp + 0x38], 0x7cdfe8
mov dword [esp + 0x4c], 0xa
mov dword [esp + 0x48], 0
mov dword [esp + 0x34], 0x80
mov esi, 1
call ebp
test eax, eax
jne 0x5dc3d9
mov eax, dword [0x809d38]
lea ecx, [esp + 0x30]
test ecx, ecx
mov dword [esp + 0x14], 0x80
mov dword [esp + 0x10], eax
je 0x5dc395
lea edi, [esp + 0x30]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
test ecx, ecx
jle 0x5dc395
inc ecx
push eax
push ecx
lea ecx, [esp + 0x18]
call fcn.005dcfa0
lea edx, [esp + 0x30]
lea ecx, [esp + 0x10]
push edx
call fcn.00409020
lea eax, [esp + 0x10]
lea ecx, [esp + 0x18]
push eax
call fcn.00572400
lea ecx, [esp + 0x10]
call fcn.005dd410
push 0
push 0
push 0
lea ecx, [esp + 0x20]
push 0
lea edx, [esp + 0x40]
mov eax, esi
push ecx
push edx
push eax
mov eax, dword [ebx]
inc esi
push eax
call ebp
test eax, eax
je 0x5dc35e
mov eax, dword [esp + 0x28]
xor esi, esi
test eax, eax
pop ebp
jle 0x5dc409
mov edi, dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov al, byte [0x83dc04]
test al, al
jne 0x5dc400
mov ecx, dword [esp + 0x18]
mov eax, dword [ebx]
mov edx, dword [ecx + esi*4]
push edx
push eax
call edi
mov eax, dword [esp + 0x24]
inc esi
cmp esi, eax
jl 0x5dc3ea
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x14], 0x7ce000
test ecx, ecx
je 0x5dc44a
mov al, byte [esp + 0x21]
test al, al
je 0x5dc44a
test ecx, ecx
je 0x5dc44a
mov eax, dword [ecx - 4]
lea ebx, [ecx - 4]
lea esi, [ecx + eax*4]
dec eax
js 0x5dc441
lea edi, [eax + 1]
sub esi, 4
mov ecx, esi
call fcn.005dd410
dec edi
jne 0x5dc434
push ebx
call fcn.00672c80
add esp, 4
pop edi
pop esi
pop ebx
add esp, 0xa0
ret