joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43d990
Capabilities:
Get keyboard layout
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
xor eax, eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x43db08
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
push eax
call sub.user32.dll_GetKeyState
mov dword [ebp - 0xc], eax
mov byte [ebp - 8], 0
lea edx, [ebp - 0xc]
xor ecx, ecx
mov eax, 0x43db1c
call fcn.0040a084
mov edx, dword [ebp - 4]
mov eax, 0x4a0b24
call fcn.004048c0
mov eax, dword [0x4a0b24]
call fcn.00404d2c
push eax
call sub.user32.dll_GetWindowThreadProcessId
mov word [0x4a0b20], ax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [0x4a0664]
mov dword [ebp - 0x20], eax
mov byte [ebp - 0x1c], 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x14], 0
lea edx, [ebp - 0x20]
mov ecx, 1
mov eax, 0x43db30
call fcn.0040a084
mov edx, dword [ebp - 0x10]
mov eax, 0x4a0b28
call fcn.004048c0
mov eax, dword [0x4a0b28]
call fcn.00404d2c
push eax
call sub.user32.dll_GetWindowThreadProcessId
mov word [0x4a0b22], ax
mov eax, dword [0x4a0b28]
call fcn.00404d2c
push eax
call fcn.004075c0
mov dword [0x4a0b2c], eax
mov dl, 1
mov eax, dword [0x412f20]
call fcn.004157e0
mov dword [0x4a0b64], eax
call fcn.0043d594
mov dl, 1
mov eax, dword [0x42f588]
call fcn.0043d3bc
mov dword [0x4a0b14], eax
xor ecx, ecx
mov dl, 1
mov eax, dword [0x4487d4]
call fcn.0044f440
mov edx, dword [0x49f2d8]
mov dword [edx], eax
xor ecx, ecx
mov dl, 1
mov eax, dword [0x4488ac]
call fcn.00450524
mov edx, dword [0x49f098]
mov dword [edx], eax
mov eax, dword [0x49f098]
mov eax, dword [eax]
mov dl, 1
call fcn.00452124
mov ecx, 0x42f8e8
mov edx, 0x42f8f8
mov eax, dword [0x42d7ec]
call fcn.00414f3c
push 0x43db44
call sub.user32.dll_GetScrollInfo
mov ebx, eax
test ebx, ebx
je 0x43daea
push 0x43db4c
push ebx
call sub.user32.dll_GetScrollPos
mov dword [0x49ba18], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43db0f
lea eax, [ebp - 0x10]
call fcn.0040486c
lea eax, [ebp - 4]
call fcn.0040486c
ret

Function at 0x448a78
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 4], edx
mov edx, dword [0x49bc70]
mov dword [ebp - 8], edx
mov edx, dword [0x49bc7c]
mov dword [ebp - 0xc], edx
mov dword [0x49bc70], eax
xor eax, eax
mov dword [0x49bc7c], eax
xor eax, eax
push ebp
push 0x448b1b
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x448ae4
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0x448a28
call sub.user32.dll_GetKeyboardLayout
push eax
call fcn.00407308
mov eax, dword [0x49bc7c]
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x448afd
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x448b22
mov eax, dword [ebp - 0xc]
mov dword [0x49bc7c], eax
mov eax, dword [ebp - 8]
mov dword [0x49bc70], eax
ret
Function at 0x448c44
Capabilities:
Get keyboard layout

Disassembly:
add esp, 0xfffffff8
call fcn.00407340
mov dword [esp], eax
mov byte [esp + 4], 0
mov eax, esp
push eax
push 0x448c24
call sub.user32.dll_GetKeyboardLayout
push eax
call fcn.00407308
mov al, byte [esp + 4]
pop ecx
pop edx
ret

Function at 0x44fb8c
Capabilities:
Get keyboard layout

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff8
mov esi, edx
mov ebx, eax
cmp si, word [ebx + 0x44]
je 0x44fc10
mov word [ebx + 0x44], si
test si, si
jne 0x44fc00
push esp
call fcn.00407378
push dword [esp + 4]
push dword [esp + 4]
call fcn.00407710
mov edi, eax
test edi, edi
je 0x44fc00
push 0
push edi
call fcn.004074a0
mov ebp, eax
call sub.user32.dll_GetKeyboardLayout
cmp ebp, eax
jne 0x44fc00
mov eax, esp
call fcn.004077b4
push eax
push 0
push 0x84
push edi
call fcn.004075f8
mov ebx, eax
mov dx, 0x200
mov eax, ebx
call fcn.00407728
push eax
push edi
push 0x20
push edi
call fcn.004075f8
jmp 0x44fc13
movsx edx, si
mov eax, ebx
call fcn.0044fb64
push eax
call fcn.00407620
inc dword [ebx + 0x48]
pop ecx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x452250
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x452360
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004521d8
mov ebx, eax
mov eax, dword [ebp - 4]
cmp byte [eax + 0x88], 0
je 0x452299
mov eax, dword [ebp - 4]
cmp dword [eax + 0x48], 0
jne 0x452299
mov eax, dword [ebp - 4]
call fcn.004527a8
lea edx, [ebp - 0x10]
mov eax, ebx
call fcn.00450270
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0xc]
call fcn.0042f94c
mov edx, dword [ebp - 0xc]
mov eax, dword [0x4a0bb4]
call fcn.00452410
mov byte [ebp - 5], 1
xor eax, eax
push ebp
push 0x452307
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp word [eax + 0x102], 0
je 0x4522ef
lea ecx, [ebp - 5]
mov ebx, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0x104]
call dword [ebx + 0x100]
cmp byte [ebp - 5], 0
je 0x4522fd
mov eax, dword [ebp - 4]
call fcn.00452174
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x45231c
call sub.user32.dll_GetKeyboardLayout
mov edx, dword [0x49f30c]
cmp eax, dword [edx]
jne 0x45233a
xor eax, eax
call fcn.0041ba24
test al, al
je 0x45233a
mov byte [ebp - 5], 0
cmp byte [ebp - 5], 0
je 0x452345
call fcn.00407700
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x452367
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.00404890
ret
Function at 0x461f20
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
mov ecx, 8
push 0
push 0
dec ecx
jne 0x461f28
push ecx
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x46211a
push dword fs:[eax]
mov dword fs:[eax], esp
mov esi, dword [ebx + 8]
lea ecx, [ebp - 0xc]
mov edx, 0x462130
mov eax, esi
call fcn.0045fdac
mov edx, dword [ebp - 0xc]
lea eax, [ebx + 0xc]
call fcn.004048c0
lea ecx, [ebp - 0x10]
mov edx, 0x462144
mov eax, esi
call fcn.0045fdac
mov edx, dword [ebp - 0x10]
lea eax, [ebx + 0x28]
call fcn.004048c0
lea ecx, [ebp - 0x14]
mov edx, 0x46215c
mov eax, esi
call fcn.0045fdac
mov edx, dword [ebp - 0x14]
lea eax, [ebx + 0x10]
call fcn.004048c0
lea ecx, [ebp - 0x18]
mov edx, 0x462178
mov eax, esi
call fcn.0045fdac
mov edx, dword [ebp - 0x18]
lea eax, [ebx + 0x14]
call fcn.004048c0
lea ecx, [ebp - 0x1c]
mov edx, 0x462194
mov eax, esi
call fcn.0045fdac
mov edx, dword [ebp - 0x1c]
lea eax, [ebx + 0x24]
call fcn.004048c0
lea ecx, [ebp - 0x24]
mov edx, 0x4621ac
mov eax, esi
call fcn.0045fdac
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 0x20]
call fcn.00408c68
mov eax, dword [ebp - 0x20]
or edx, 0xffffffff
call fcn.00409078
mov edi, eax
mov dword [ebx + 0x18], edi
test edi, edi
setge al
mov byte [ebx + 0x4c], al
lea ecx, [ebp - 0x28]
mov edx, 0x4621c4
mov eax, esi
call fcn.0045fdac
mov eax, dword [ebp - 0x28]
call fcn.00459884
fstp qword [ebx + 0x30]
wait
lea ecx, [ebp - 0x2c]
mov edx, 0x4621d4
mov eax, esi
call fcn.0045fdac
mov eax, dword [ebp - 0x2c]
call fcn.00459884
fstp qword [ebx + 0x40]
wait
lea ecx, [ebp - 0x30]
mov edx, 0x4621ec
mov eax, esi
call fcn.0045fdac
mov eax, dword [ebp - 0x30]
or edx, 0xffffffff
call fcn.00409078
inc eax
je 0x4620bd
lea ecx, [ebp - 0x34]
mov edx, 0x4621ec
mov eax, esi
call fcn.0045fdac
mov eax, dword [ebp - 0x34]
call fcn.0040903c
mov edi, eax
mov eax, edi
mov ecx, 0xe10
cdq
idiv ecx
mov dword [ebp - 8], eax
mov eax, edi
mov ecx, 0xe10
cdq
idiv ecx
mov ecx, edx
mov eax, ecx
push ecx
mov ecx, 0x3c
cdq
idiv ecx
pop ecx
mov dword [ebp - 4], eax
mov eax, ecx
mov ecx, 0x3c
cdq
idiv ecx
mov edi, edx
push 0
mov ecx, edi
mov dx, word [ebp - 4]
mov ax, word [ebp - 8]
call fcn.0040a954
fstp qword [ebp - 0x3c]
wait
call fcn.0040ad28
fadd qword [ebp - 0x3c]
fstp qword [ebx + 0x38]
wait
jmp 0x4620d8
lea ecx, [ebp - 0x40]
mov edx, 0x4621ec
mov eax, esi
call fcn.0045fdac
mov eax, dword [ebp - 0x40]
call fcn.00459884
fstp qword [ebx + 0x38]
wait
lea ecx, [ebp - 0x44]
mov edx, 0x4621fc
mov eax, esi
call fcn.0045fdac
mov edx, dword [ebp - 0x44]
lea eax, [ebx + 0x48]
call fcn.004048c0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x462121
lea eax, [ebp - 0x44]
mov edx, 2
call fcn.00404890
lea eax, [ebp - 0x34]
mov edx, 0xb
call fcn.00404890
ret
Function at 0x46c378
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov esi, dword [eax]
mov edi, dword [ecx]
mov eax, ebx
mov ecx, 3
xor edx, edx
div ecx
mov dword [ebp - 4], eax
mov dword [ebp - 8], edx
lea ecx, [0x49d03c]
xor eax, eax
xor ebx, ebx
xor edx, edx
cmp dword [ebp - 4], 0
je 0x46c3df
lodsw ax, word [esi]
mov bl, al
shr bl, 2
mov dl, byte [ebx + ecx]
mov bh, ah
and bh, 0xf
rol ax, 4
and ax, 0x3f
mov dh, byte [eax + ecx]
mov ax, dx
stosw word es:[edi], ax
lodsb al, byte [esi]
mov bl, al
shr bx, 6
mov dl, byte [ebx + ecx]
and al, 0x3f
xor ah, ah
mov dh, byte [eax + ecx]
mov ax, dx
stosw word es:[edi], ax
dec dword [ebp - 4]
jne 0x46c3a5
cmp dword [ebp - 8], 0
je 0x46c42f
xor eax, eax
xor ebx, ebx
xor edx, edx
lodsb al, byte [esi]
shl ax, 6
mov bl, ah
mov dl, byte [ebx + ecx]
dec dword [ebp - 8]
je 0x46c41a
shl ax, 2
and ah, 3
lodsb al, byte [esi]
shl ax, 4
mov bl, ah
mov dh, byte [ebx + ecx]
shl edx, 0x10
shr al, 2
mov bl, al
mov dl, byte [ebx + ecx]
mov dh, 0x3d
jmp 0x46c429
shr al, 2
mov bl, al
mov dh, byte [ebx + ecx]
shl edx, 0x10
mov dh, 0x3d
mov dl, 0x3d
mov eax, edx
ror eax, 0x10
stosd dword es:[edi], eax
pop ecx
pop ecx
pop ebp
ret
Function at 0x472ab4
Capabilities:
Capture microphone audio

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 0x30], 0
je 0x472bf3
mov eax, dword [ebp - 8]
mov ebx, dword [eax + 8]
mov eax, dword [ebp - 4]
cmp word [eax + 0xca], 0
je 0x472b3b
mov eax, ebx
call fcn.0040272c
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x472b34
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov ecx, ebx
call fcn.004029d8
push ebx
mov ebx, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0xcc]
call dword [ebx + 0xc8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x472b3b
mov eax, dword [ebp - 0xc]
call fcn.0040274c
ret
push 0x20
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xd0]
push eax
call sub.winmm.dll_waveInUnprepareHeader
test eax, eax
je 0x472b63
mov ecx, eax
mov edx, 0x472c14
mov eax, dword [ebp - 4]
call fcn.00472dbc
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x38]
mov edx, dword [ebp - 8]
mov dword [edx + 4], eax
mov eax, dword [ebp - 8]
xor edx, edx
mov dword [eax + 8], edx
mov eax, dword [ebp - 8]
xor edx, edx
mov dword [eax + 0xc], edx
mov eax, dword [ebp - 8]
xor edx, edx
mov dword [eax + 0x10], edx
mov eax, dword [ebp - 8]
xor edx, edx
mov dword [eax + 0x14], edx
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x38]
mov eax, dword [ebp - 8]
mov eax, dword [eax]
xor ecx, ecx
call fcn.0040773c
push 0x20
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xd0]
push eax
call sub.winmm.dll_waveInPrepareHeader
test eax, eax
je 0x472bc9
mov ecx, eax
mov edx, 0x472c34
mov eax, dword [ebp - 4]
call fcn.00472dbc
push 0x20
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xd0]
push eax
call sub.winmm.dll_waveInAddBuffer
test eax, eax
je 0x472c07
mov ecx, eax
mov edx, 0x472c54
mov eax, dword [ebp - 4]
call fcn.00472dbc
jmp 0x472c07
mov eax, dword [ebp - 4]
test byte [eax + 0x1c], 8
jne 0x472c07
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.004734e8
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x472c64
Capabilities:
Capture microphone audio

Disassembly:
push ebx
push esi
push edi
add esp, 0xffffff7c
mov esi, edx
lea edi, [esp]
mov ecx, 0x20
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov ebx, eax
cmp byte [ebx + 0x30], 0
jne 0x472d3b
xor eax, eax
mov dword [ebx + 0xd0], eax
mov esi, esp
lea edi, [ebx + 0x3c]
mov ecx, 0x20
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
cmp word [ebx + 0x3c], 1
jne 0x472ca7
or eax, 0xffffffff
jmp 0x472ca9
xor eax, eax
cmp word [esp], 1
jne 0x472cd2
push 0x10000
push 0
mov edx, dword [ebx + 0xc0]
push edx
lea edx, [esp + 0xc]
push edx
push eax
lea eax, [ebx + 0xd0]
push eax
call sub.winmm.dll_waveInOpen
jmp 0x472cf2
push 0x10004
push 0
mov edx, dword [ebx + 0xc0]
push edx
lea edx, [esp + 0xc]
push edx
push eax
lea eax, [ebx + 0xd0]
push eax
call sub.winmm.dll_waveInOpen
test eax, eax
je 0x472d04
mov ecx, eax
mov edx, 0x472d50
mov eax, ebx
call fcn.00472dbc
movzx esi, byte [ebx + 0xbd]
test esi, esi
jle 0x472d19
mov eax, ebx
call fcn.00473418
dec esi
jne 0x472d0f
mov eax, dword [ebx + 0xd0]
push eax
call sub.winmm.dll_waveInStart
test eax, eax
je 0x472d37
mov ecx, eax
mov edx, 0x472d64
mov eax, ebx
call fcn.00472dbc
mov byte [ebx + 0x30], 1
add esp, 0x84
pop edi
pop esi
pop ebx
ret

Function at 0x473768
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 8], ecx
mov esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404d1c
xor eax, eax
push ebp
push 0x473843
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
push 0xf003f
push 0
mov eax, dword [ebp - 4]
call fcn.00404d2c
push eax
call sub.advapi32.dll_RegFlushKey
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jbe 0x473825
xor eax, eax
mov dword [ebp - 0x18], eax
mov eax, 0x24024
call fcn.0040272c
mov edi, eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x24024
push edi
mov eax, dword [ebp - 8]
push eax
push esi
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegEnumKeyExA
mov ebx, dword [ebp - 0x14]
dec ebx
test ebx, ebx
jl 0x47380e
inc ebx
xor esi, esi
lea eax, [esi + esi*8]
mov eax, dword [edi + eax*4 + 4]
lea edx, [ebp - 0x1c]
call fcn.00409b94
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
call dword [ecx + 0x38]
inc esi
dec ebx
jne 0x4737f0
mov bl, 1
mov edx, 0x24024
mov eax, edi
call fcn.0040274c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47384a
lea eax, [ebp - 0x1c]
call fcn.0040486c
lea eax, [ebp - 4]
call fcn.0040486c
ret
Function at 0x473858
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404d1c
mov eax, dword [ebp - 8]
call fcn.00404d1c
xor eax, eax
push ebp
push 0x47390c
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, edi
call fcn.0040486c
mov dword [ebp - 0xc], 0xff
push 1
push 0
mov eax, dword [ebp - 4]
call fcn.00404d2c
push eax
call sub.advapi32.dll_RegFlushKey
mov ebx, eax
test ebx, ebx
jbe 0x4738f1
mov eax, dword [ebp - 0xc]
inc eax
call fcn.00409ba8
mov esi, eax
test esi, esi
je 0x4738eb
lea eax, [ebp - 0xc]
push eax
push esi
mov eax, dword [ebp - 8]
call fcn.00404d2c
push eax
push ebx
call sub.advapi32.dll_RegEnumValueA
test eax, eax
je 0x4738e4
mov eax, dword [ebp - 0xc]
mov byte [esi + eax], 0
mov edx, edi
mov eax, esi
call fcn.00409b94
mov eax, esi
call fcn.00409bf4
push ebx
call sub.advapi32.dll_RegCloseKey
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x473913
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404890
ret

Function at 0x47391c
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404d1c
mov eax, dword [ebp - 8]
call fcn.00404d1c
xor eax, eax
push ebp
push 0x473a30
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, edi
call fcn.0040486c
push 0xf003f
push 0
mov eax, dword [ebp - 4]
call fcn.00404d2c
push eax
call sub.advapi32.dll_RegFlushKey
mov ebx, eax
test ebx, ebx
je case.default.0x4739b6
push 0xf01ff
mov eax, dword [ebp - 8]
call fcn.00404d2c
push eax
push ebx
call sub.advapi32.dll_RegOpenKeyExA
mov ebx, eax
lea eax, [ebp - 0xc]
push eax
push 0
push 0
push ebx
call sub.advapi32.dll_RegQueryInfoKeyA
mov eax, dword [ebp - 0xc]
call fcn.00408994
mov esi, eax
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0xc]
push eax
push esi
push ebx
call sub.advapi32.dll_RegQueryInfoKeyA
mov eax, dword [esi + 4]
cmp eax, 4
ja case.default.0x4739b6
jmp dword [eax*4 + 0x4739bd]
mov eax, edi
mov edx, 0x473a48
call fcn.004048c0
jmp case.default.0x4739b6
mov eax, edi
mov edx, 0x473a54
call fcn.004048c0
jmp case.default.0x4739b6
mov eax, edi
mov edx, 0x473a60
call fcn.004048c0
jmp case.default.0x4739b6
mov eax, edi
mov edx, 0x473a6c
call fcn.004048c0
jmp case.default.0x4739b6
mov eax, edi
mov edx, 0x473a78
call fcn.004048c0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x473a37
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404890
ret
Function at 0x473a7c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404d1c
mov eax, dword [ebp - 8]
call fcn.00404d1c
xor eax, eax
push ebp
push 0x473b1b
push dword fs:[eax]
mov dword fs:[eax], esp
xor esi, esi
push 1
push 0
mov eax, dword [ebp - 4]
call fcn.00404d2c
push eax
call sub.advapi32.dll_RegFlushKey
mov ebx, eax
test ebx, ebx
jbe 0x473afb
push 4
mov eax, dword [ebp - 8]
call fcn.00404d2c
push eax
push ebx
call sub.advapi32.dll_RegOpenKeyExA
mov edi, eax
test edi, edi
jbe 0x473af1
lea eax, [ebp - 0x24]
push eax
push edi
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x473aeb
mov esi, dword [ebp - 0x20]
push edi
call sub.advapi32.dll_RegCloseKey
push ebx
call sub.advapi32.dll_RegCloseKey
mov ebx, esi
jmp 0x473b00
mov ebx, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x473b22
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404890
ret

Function at 0x473b94
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404d1c
mov eax, dword [ebp - 8]
call fcn.00404d1c
xor eax, eax
push ebp
push 0x473c6d
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x24], eax
push 1
push 0
mov eax, dword [ebp - 4]
call fcn.00404d2c
push eax
call sub.advapi32.dll_RegFlushKey
mov ebx, eax
test ebx, ebx
jbe 0x473c4b
push 0x14
mov eax, dword [ebp - 8]
call fcn.00404d2c
push eax
push ebx
call sub.advapi32.dll_RegOpenKeyExA
mov esi, eax
test esi, esi
jbe 0x473c45
xor eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push 0
push esi
call sub.advapi32.dll_RegSetValueExA
test eax, eax
je 0x473c3f
lea eax, [ebp - 0x28]
push eax
push esi
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x473c3f
jmp 0x473c39
mov edi, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
push eax
call fcn.0040e060
lea eax, [ebp - 0x28]
push eax
push esi
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x473c3f
cmp edi, dword [ebp - 0x14]
ja 0x473c3f
cmp dword [ebp - 0x24], 4
jne 0x473c1a
push esi
call sub.advapi32.dll_RegCloseKey
push ebx
call sub.advapi32.dll_RegCloseKey
cmp dword [ebp - 0x24], 4
sete bl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x473c74
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404890
ret
Function at 0x473c80
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404d1c
mov eax, dword [ebp - 8]
call fcn.00404d1c
xor eax, eax
push ebp
push 0x473d4f
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
push 0
mov eax, dword [ebp - 4]
call fcn.00404d2c
push eax
call sub.advapi32.dll_RegFlushKey
mov ebx, eax
test ebx, ebx
jbe 0x473d2d
push 0x24
mov eax, dword [ebp - 8]
call fcn.00404d2c
push eax
push ebx
call sub.advapi32.dll_RegOpenKeyExA
mov esi, eax
test esi, esi
jbe 0x473d27
lea eax, [ebp - 0x24]
push eax
push 1
push esi
call sub.advapi32.dll_RegCreateKeyExA
test eax, eax
je 0x473d21
lea eax, [ebp - 0x24]
push eax
push esi
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x473d21
jmp 0x473d1b
mov edi, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
push eax
call fcn.0040e060
lea eax, [ebp - 0x24]
push eax
push esi
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x473d21
cmp edi, dword [ebp - 0x10]
ja 0x473d21
cmp dword [ebp - 0x20], 1
jne 0x473cfc
push esi
call sub.advapi32.dll_RegCloseKey
push ebx
call sub.advapi32.dll_RegCloseKey
cmp dword [ebp - 0x20], 1
sete bl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x473d56
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404890
ret
Function at 0x473d60
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404d1c
mov eax, dword [ebp - 8]
call fcn.00404d1c
mov eax, dword [ebp - 0xc]
call fcn.00404d1c
mov eax, dword [ebp + 8]
call fcn.00404d1c
xor eax, eax
push ebp
push 0x473eb2
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xf003f
push 0
push 0x473ec4
call sub.advapi32.dll_RegFlushKey
mov ebx, eax
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 0xc]
call fcn.00404d2c
push eax
push 0
push 2
push 0x110
push 0xf01ff
mov eax, dword [ebp - 8]
call fcn.00404d2c
push eax
mov eax, dword [ebp - 4]
call fcn.00404d2c
push eax
push ebx
call sub.advapi32.dll_RegDeleteKeyA
mov ebx, eax
mov eax, dword [0x49f294]
cmp dword [eax], 0
je 0x473e87
lea eax, [ebp - 0x18]
push eax
mov ecx, 0x400
mov edx, 1
mov eax, dword [ebp + 8]
call fcn.00404d8c
mov eax, 4
call fcn.0040272c
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x18]
call fcn.00404b2c
inc eax
call fcn.0040272c
mov esi, eax
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
xor eax, eax
push ebp
push 0x473e80
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
mov edx, dword [ebp - 0x18]
call fcn.00409a40
mov eax, dword [ebp - 0x14]
push eax
push 1
push ebx
mov eax, dword [0x49f294]
mov eax, dword [eax]
call eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x473e87
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.0040274c
mov eax, dword [ebp - 0x14]
call fcn.0040274c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x473eb9
lea eax, [ebp - 0x18]
call fcn.0040486c
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404890
lea eax, [ebp + 8]
call fcn.0040486c
ret

Function at 0x473ec8
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404d1c
xor eax, eax
push ebp
push 0x473f7a
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x473f5a
push dword fs:[eax]
mov dword fs:[eax], esp
xor esi, esi
push 0xf003f
push 0
push 0x473f8c
call sub.advapi32.dll_RegFlushKey
mov ebx, eax
test ebx, ebx
je 0x473f42
push 0xf01ff
mov eax, dword [ebp - 4]
call fcn.00404d2c
push eax
push ebx
call sub.advapi32.dll_RegOpenKeyExA
mov edi, eax
test edi, edi
je 0x473f3c
push edi
call sub.advapi32.dll_RegDeleteValueA
mov esi, 1
push edi
call sub.advapi32.dll_RegCloseKey
push ebx
call sub.advapi32.dll_RegCloseKey
test esi, esi
jle 0x473f4c
mov byte [ebp - 5], 1
jmp 0x473f50
mov byte [ebp - 5], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x473f64
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x473f81
lea eax, [ebp - 4]
call fcn.0040486c
ret