joyce8/EMBER2024-capa huggingface dataset:
Function at 0x420a90
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x60dbc0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov eax, dword [0x6e7b6c]
push esi
push edi
mov esi, ecx
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x34]
lea ecx, [esp + 8]
push eax
push 0x6bc090
push ecx
mov dword [esp + 0x34], 0
call fcn.005f368b
mov eax, dword [esp + 0x44]
add esp, 0xc
test eax, eax
je 0x420af3
push eax
lea edx, [esp + 0x10]
push 0x6bc090
push edx
call fcn.005f368b
add esp, 0xc
mov ecx, dword [esp + 0x30]
mov edi, dword [esi + 0x90]
mov eax, dword [esp + 0x3c]
mov edx, dword [esp + 0x44]
add esi, 0x88
mov dword [esp + 0x14], ecx
lea ecx, [edi + 1]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x40]
push 0xffffffffffffffff
push ecx
mov ecx, esi
mov dword [esp + 0x24], edx
mov dword [esp + 0x20], eax
call fcn.00421080
mov eax, dword [esi + 4]
lea edx, [edi + edi*2]
lea ecx, [esp + 8]
lea esi, [eax + edx*8]
push ecx
mov ecx, esi
call fcn.005fa992
lea edx, [esp + 0xc]
lea ecx, [esi + 4]
push edx
call fcn.005fa992
mov eax, dword [esp + 0x10]
mov dword [esi + 8], eax
mov ecx, dword [esp + 0x14]
mov dword [esi + 0xc], ecx
mov edx, dword [esp + 0x18]
mov dword [esi + 0x10], edx
mov eax, dword [esp + 0x1c]
mov dword [esi + 0x14], eax
lea ecx, [esp + 0xc]
mov dword [esp + 0x28], 1
call fcn.005fa859
lea ecx, [esp + 8]
mov dword [esp + 0x28], 0xffffffff
call fcn.005fa859
mov ecx, dword [esp + 0x20]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x24
ret 0x18

Function at 0x420bf0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
mov esi, dword [esp + 0x18]
lea ebx, [ecx + 8]
push esi
push ebp
mov ecx, ebx
call fcn.005cdb30
test eax, eax
je 0x420c82
mov al, byte [esp + 0x1c]
test al, al
je 0x420c1a
mov al, byte [esi + 0x30]
test al, al
jne 0x420c82
mov edx, dword [esp + 0x14]
test edx, edx
je 0x420c4b
push edi
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [esi]
pop edi
not ecx
dec ecx
mov ecx, dword [eax - 8]
je 0x420c47
test ecx, ecx
je 0x420c82
push edx
push eax
call fcn.005df8da
add esp, 8
jmp 0x420c50
test ecx, ecx
jmp 0x420c52
mov ecx, dword [esi]
mov eax, dword [ecx - 8]
test eax, eax
sete al
test al, al
je 0x420c82
mov eax, dword [esi + 4]
test eax, eax
jne 0x420c63
lea eax, [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x420c7a
pop esi
pop ebp
mov eax, 1
pop ebx
ret 0x10
push ebp
mov ecx, ebx
call fcn.0044dc60
pop esi
pop ebp
xor eax, eax
pop ebx
ret 0x10
Function at 0x42b1b0
Capabilities:
Access peb ldr_data
Get number of processors
Get process heap flags
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x60e6b6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
lea ecx, [esi + 0x6c]
mov dword [esp + 0x14], 0x1a
call fcn.005fa859
lea ecx, [esi + 0x68]
mov byte [esp + 0x14], 0x19
call fcn.005fa859
lea ecx, [esi + 0x64]
mov byte [esp + 0x14], 0x18
call fcn.005fa859
lea ecx, [esi + 0x60]
mov byte [esp + 0x14], 0x17
call fcn.005fa859
lea ecx, [esi + 0x5c]
mov byte [esp + 0x14], 0x16
call fcn.005fa859
lea ecx, [esi + 0x58]
mov byte [esp + 0x14], 0x15
call fcn.005fa859
lea ecx, [esi + 0x54]
mov byte [esp + 0x14], 0x14
call fcn.005fa859
lea ecx, [esi + 0x50]
mov byte [esp + 0x14], 0x13
call fcn.005fa859
lea ecx, [esi + 0x4c]
mov byte [esp + 0x14], 0x12
call fcn.005fa859
lea ecx, [esi + 0x48]
mov byte [esp + 0x14], 0x11
call fcn.005fa859
lea ecx, [esi + 0x44]
mov byte [esp + 0x14], 0x10
call fcn.005fa859
lea ecx, [esi + 0x40]
mov byte [esp + 0x14], 0xf
call fcn.005fa859
lea ecx, [esi + 0x3c]
mov byte [esp + 0x14], 0xe
call fcn.005fa859
lea ecx, [esi + 0x38]
mov byte [esp + 0x14], 0xd
call fcn.005fa859
lea ecx, [esi + 0x34]
mov byte [esp + 0x14], 0xc
call fcn.005fa859
lea ecx, [esi + 0x30]
mov byte [esp + 0x14], 0xb
call fcn.005fa859
mov byte [esp + 0x14], 0xa
lea ecx, [esi + 0x2c]
call fcn.005fa859
mov eax, dword [esi + 0x28]
mov edi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
push eax
call edi
mov ecx, dword [esi + 0x24]
push ecx
call edi
mov edx, dword [esi + 0x20]
push edx
call edi
mov eax, dword [esi + 0x1c]
push eax
call edi
lea ecx, [esi + 0x18]
mov byte [esp + 0x14], 5
call fcn.005fa859
lea ecx, [esi + 0x14]
mov byte [esp + 0x14], 4
call fcn.005fa859
lea ecx, [esi + 0x10]
mov byte [esp + 0x14], 3
call fcn.005fa859
lea ecx, [esi + 0xc]
mov byte [esp + 0x14], 2
call fcn.005fa859
lea ecx, [esi + 8]
mov byte [esp + 0x14], 1
call fcn.005fa859
lea ecx, [esi + 4]
mov byte [esp + 0x14], 0
call fcn.005fa859
mov ecx, esi
mov dword [esp + 0x14], 0xffffffff
call fcn.005fa859
mov ecx, dword [esp + 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x433db0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x60ef26
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x114
push ebx
push esi
mov esi, ecx
push edi
xor ebx, ebx
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], esi
mov dword [esi + 4], 0x631d84
mov dword [esi + 8], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0xc], ebx
mov eax, dword [0x6e7b6c]
lea edi, [esi + 0x1c]
mov dword [ebp - 4], ebx
mov dword [edi], eax
lea ecx, [ebp - 0x14]
lea edx, [ebp - 0x120]
push ecx
push edx
mov dword [esi], 0x631d80
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], 1
mov dword [esi + 0x28], ebx
mov eax, dword [0x6ec7a0]
push ebx
push ebx
push 0x6bfa24
push eax
mov byte [ebp - 4], 2
mov dword [ebp - 0x14], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x433e84
lea edi, [ebp - 0x120]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x433e63
lea ecx, [ebp - 0x120]
lea eax, [esi + 0x1c]
push ecx
push 0x6bc090
push eax
call fcn.005f368b
add esp, 0xc
lea edx, [ebp - 0x120]
push 0x6bfa18
push edx
call fcn.005de4a0
add esp, 8
test eax, eax
jne 0x433e92
mov dword [esi + 0x28], 1
jmp 0x433e92
push 0x6bfa0c
push edi
call fcn.005f368b
add esp, 8
mov edx, dword [0x6ec7a0]
lea eax, [ebp - 0x14]
lea ecx, [ebp - 0x18]
push eax
push ecx
push ebx
push ebx
push 0x6bf9fc
push edx
mov dword [ebp - 0x14], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x433ebf
mov eax, dword [ebp - 0x18]
mov dword [esi + 0x24], eax
mov ecx, esi
mov dword [esi + 0x18], ebx
call fcn.00434150
cmp dword [esi + 0x28], ebx
jne 0x433f18
cmp dword [esi + 0x20], ebx
jne 0x433f18
xor edi, edi
cmp edi, dword [esi + 0xc]
jge 0x433f18
mov edx, dword [esi + 8]
lea ecx, [edi + edi*4]
push 0x6bfa0c
mov eax, dword [edx + ecx*4]
push eax
call fcn.005df8da
add esp, 8
test eax, eax
jne 0x433f0c
inc edi
mov eax, esi
mov dword [esi + 0x20], edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
inc edi
jmp 0x433ed5
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x434010
Capabilities:
Delete registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x60ef60
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
mov edx, dword [0x6ec7a0]
push esi
push edi
mov esi, ecx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 0x10], esp
lea ecx, [ebp - 0x18]
mov eax, dword [esi + 0x24]
push 4
push ecx
push 4
push 0
push 0x6bf9fc
push edx
mov dword [ebp - 4], 0
mov dword [ebp - 0x18], eax
call ebx
mov eax, dword [esi + 0x20]
test eax, eax
je 0x4340cb
mov ecx, dword [esi + 8]
lea eax, [eax + eax*4]
lea edi, [esi + 0x1c]
mov edx, dword [ecx + eax*4 - 0x14]
push edx
push 0x6bc090
push edi
call fcn.005f368b
mov edx, dword [edi]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x4340bd
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
push ecx
push edx
push 1
push eax
mov eax, dword [0x6ec7a0]
push 0x6bfa24
push eax
call ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [0x6ec7a0]
push 0x6bfa24
push ecx
jmp 0x43412a
mov eax, dword [esi + 0x28]
test eax, eax
je 0x43411f
push 0x6bfa18
lea ecx, [ebp - 0x14]
call fcn.005fa8c7
mov edx, dword [ebp - 0x14]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
push edx
mov edx, dword [0x6ec7a0]
push 1
push eax
push 0x6bfa24
push edx
call ebx
lea ecx, [ebp - 0x14]
call fcn.005fa859
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [0x6ec7a0]
push 0x6bfa24
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4374a0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
mov edx, dword [0x6ec7a0]
push esi
mov esi, ecx
lea eax, [esp + 4]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0xc]
push eax
push ecx
push 0
push 0
push 0x6bfc0c
push edx
mov dword [esp + 0x20], 4
call edi
test eax, eax
je 0x4374de
mov dword [esi + 0x30], 0
jmp 0x4374ec
mov eax, dword [esp + 0xc]
mov dword [esi + 0x24], 1
mov dword [esi + 0x30], eax
mov eax, dword [0x6ec7a0]
lea ecx, [esp + 8]
lea edx, [esp + 0xc]
push ecx
push edx
push 0
push 0
push 0x6bfc00
push eax
mov dword [esp + 0x20], 4
call edi
test eax, eax
je 0x43751c
mov dword [esi + 0x2c], 0
jmp 0x437523
mov ecx, dword [esp + 0xc]
mov dword [esi + 0x2c], ecx
mov ecx, dword [0x6ec7a0]
lea edx, [esp + 8]
lea eax, [esp + 0xc]
push edx
push eax
push 0
push 0
push 0x6bfbf4
push ecx
mov dword [esp + 0x20], 4
call edi
test eax, eax
je 0x437558
mov dword [esi + 0x28], 0x1e
pop edi
pop esi
add esp, 8
ret
mov edx, dword [esp + 0xc]
pop edi
mov dword [esi + 0x28], edx
pop esi
add esp, 8
ret

Function at 0x437570
Capabilities:
Set registry value

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x30]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea eax, [esi + 0x30]
test ecx, ecx
jne 0x43758b
mov ecx, dword [esi + 0x24]
test ecx, ecx
je 0x43759f
push 4
push eax
mov eax, dword [0x6ec7a0]
push 4
push 0
push 0x6bfc0c
push eax
call edi
mov edx, dword [0x6ec7a0]
lea ecx, [esi + 0x2c]
push 4
push ecx
push 4
push 0
push 0x6bfc00
push edx
call edi
mov eax, dword [0x6ec7a0]
add esi, 0x28
push 4
push esi
push 4
push 0
push 0x6bfbf4
push eax
call edi
pop edi
pop esi
ret
Function at 0x438ed0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x60f650
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
mov eax, dword [0x6e7b6c]
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], eax
mov ebx, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
push ebx
push ecx
lea edx, [ebp - 0x14]
push 0x6bfd04
push edx
mov byte [ebp - 4], 1
call fcn.005f368b
add esp, 0x10
test bl, 8
je 0x438f9c
xor ebx, 8
mov eax, dword [0x6e7b6c]
mov dword [ebp + 0x10], eax
mov dword [ebp + 8], eax
mov esi, dword [ebp + 0xc]
mov ecx, dword [0x6ece9c]
push esi
push esi
lea edx, [ebp + 8]
push ecx
push edx
mov byte [ebp - 4], 3
call fcn.005f368b
add esp, 0x10
cmp ebx, 2
jne 0x438fee
mov eax, dword [0x6e7b6c]
mov dword [ebp + 0xc], eax
mov ecx, dword [0x6ece98]
push esi
lea edx, [ebp + 0xc]
push ecx
push edx
mov byte [ebp - 4], 4
call fcn.005f368b
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
add esp, 0xc
lea edx, [ebp + 0x10]
push eax
push ecx
push 0x6bd890
push edx
call fcn.005f368b
add esp, 0x10
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 3
call fcn.005fa859
jmp 0x439003
mov edx, dword [ebp - 0x14]
lea eax, [ebp - 0x1c]
lea ecx, [ebp - 0x18]
push eax
mov eax, dword [0x6ec7a0]
push ecx
push 0
push 0
push edx
push eax
mov dword [ebp - 0x1c], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x438f25
cmp dword [ebp - 0x18], 1
jne 0x438f25
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call fcn.005fa859
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
lea ecx, [ebp + 0x10]
push eax
push 0x6bc090
push ecx
call fcn.005f368b
add esp, 0xc
mov edx, dword [ebp + 0x10]
push 0x44
push 0x6bc018
push edx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 6
jne 0x43904f
mov eax, dword [ebp + 0x14]
push eax
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call fcn.0049d030
mov edx, dword [ebp - 0x14]
mov eax, dword [0x6ec7a0]
add esp, 8
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], 1
push 4
push ecx
push 4
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea ecx, [ebp + 8]
mov byte [ebp - 4], 2
call fcn.005fa859
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 1
call fcn.005fa859
jmp 0x438fd1
Function at 0x444af0
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x61046c
push eax
mov eax, dword [0x6ec7a0]
mov dword fs:[0], esp
sub esp, 0x46c
test eax, eax
push esi
jne 0x444b68
push 0x6ec7a0
push 0xf003f
push 0
push 0x6c0568
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x444b80
push 0
push 0x6ec7a0
push 0
push 0xf003f
push 0
push 0
push 0
push 0x6c0568
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov esi, eax
test esi, esi
jne 0x444c25
call fcn.00445cc0
mov al, 1
pop esi
mov ecx, dword [esp + 0x46c]
mov dword fs:[0], ecx
add esp, 0x478
ret
mov edx, dword [0x6ec7a0]
lea eax, [esp + 0xc]
lea ecx, [esp + 0x10]
push eax
push ecx
push 0
push 0
push 0x6c0560
push edx
mov dword [esp + 0x24], 0x40
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
test esi, esi
je 0x444b68
cmp esi, 2
je 0x444b63
mov eax, dword [0x6e7b6c]
mov dword [esp + 4], eax
lea ecx, [esp + 0x50]
mov dword [esp + 0x478], 0
call fcn.004ab420
push esi
lea ecx, [esp + 8]
push 0x6c0534
push ecx
mov byte [esp + 0x484], 1
call fcn.005f368b
mov edx, dword [esp + 0x10]
add esp, 0xc
lea ecx, [esp + 0x50]
push 1
push edx
call fcn.004ab540
lea ecx, [esp + 0x50]
mov byte [esp + 0x478], 0
call fcn.004ab530
lea ecx, [esp + 4]
mov dword [esp + 0x478], 0xffffffff
call fcn.005fa859
jmp 0x444b68
mov eax, dword [0x6e7b6c]
mov dword [esp + 8], eax
lea ecx, [esp + 0x260]
mov dword [esp + 0x478], 2
call fcn.004ab420
push esi
lea ecx, [esp + 0xc]
push 0x6c04ec
push ecx
mov byte [esp + 0x484], 3
call fcn.005f368b
mov edx, dword [esp + 0x14]
add esp, 0xc
lea ecx, [esp + 0x260]
push 1
push edx
call fcn.004ab540
lea ecx, [esp + 0x260]
mov byte [esp + 0x478], 2
call fcn.004ab530
lea ecx, [esp + 8]
mov dword [esp + 0x478], 0xffffffff
call fcn.005fa859
mov ecx, dword [esp + 0x470]
xor al, al
pop esi
mov dword fs:[0], ecx
add esp, 0x478
ret
Function at 0x444f80
Capabilities:
Check if file exists
Get file attributes
Query or enumerate registry value
Set registry value

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x6104cb
push eax
mov eax, dword [0x6ec7a0]
mov dword fs:[0], esp
sub esp, 0x10c
test eax, eax
push ebx
je 0x445008
lea ecx, [esp + 8]
lea edx, [esp + 0xc]
push ecx
push edx
push 0
push 0
push 0x6c05a0
push eax
mov dword [esp + 0x20], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x445008
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x445008
lea ecx, [esp + 0xc]
push ecx
push 0x6bc090
push 0x6ec758
call fcn.005f368b
add esp, 0xc
pop ebx
mov ecx, dword [esp + 0x10c]
mov dword fs:[0], ecx
add esp, 0x118
ret
push 0x6bced8
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, eax
test ebx, ebx
je 0x445112
push esi
push 0x6c058c
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x44510a
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
lea edx, [esp + 0x10]
push edx
push 0
push 0
push 0x23
push 0
call esi
test eax, eax
jne 0x445104
mov eax, dword [0x6e7b6c]
push edi
mov dword [esp + 0xc], eax
lea edi, [esp + 0x14]
or ecx, 0xffffffff
xor eax, eax
mov dword [esp + 0x120], 0
repne scasb al, byte es:[edi]
not ecx
add ecx, 0xfffffffe
mov al, byte [esp + ecx + 0x14]
cmp al, 0x5c
mov eax, 0x6ec0c8
je 0x44508a
mov eax, 0x6bd984
lea ecx, [esp + 0x14]
push eax
push ecx
lea edx, [esp + 0x14]
push 0x6c0584
push edx
call fcn.005f368b
mov eax, dword [esp + 0x1c]
push eax
call fcn.005e0142
mov ecx, dword [esp + 0x20]
add esp, 0x14
push ecx
push 0x6be8f4
push 0x6ec758
call fcn.005f368b
mov esi, dword [0x6ec7a0]
add esp, 0xc
test esi, esi
je 0x4450ef
mov edx, dword [0x6ec758]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
push edx
push 1
push eax
push 0x6c05a0
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea ecx, [esp + 0xc]
mov dword [esp + 0x120], 0xffffffff
call fcn.005fa859
pop edi
call dword [sym.imp.ole32.dll_CoUninitialize]
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop esi
mov ecx, dword [esp + 0x110]
pop ebx
mov dword fs:[0], ecx
add esp, 0x118
ret
Function at 0x446560
Capabilities:
Query or enumerate registry key
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6105d0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], esp
push ebx
lea eax, [ebp - 0x14]
push ebx
lea ecx, [ebp - 0x18]
mov edx, dword [ebp + 8]
push eax
push ecx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push edx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x44665e
mov eax, dword [ebp - 0x18]
mov esi, dword [ebp - 0x14]
inc eax
inc esi
push eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], esi
call fcn.005f6c5c
add esp, 4
mov esi, eax
mov eax, dword [ebp - 0x14]
push eax
call fcn.005f6c5c
add esp, 4
cmp esi, ebx
mov edi, eax
je 0x44665e
cmp edi, ebx
je 0x44665e
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x20], ecx
push eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x1c], edx
push edi
push ecx
lea edx, [ebp - 0x20]
push 0
push edx
push esi
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
cmp eax, 0x103
jne 0x446638
push esi
call fcn.005f6c85
add esp, 4
push edi
call fcn.005f6c85
add esp, 4
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test eax, eax
jne 0x44665e
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x24]
push ecx
push edi
push edx
push eax
mov eax, dword [ebp + 0xc]
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x44665e
inc ebx
jmp 0x4465e2
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
xor eax, eax
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x446680
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6105e0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x108
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
mov dword [ebp - 0x10], esp
mov dword [ebp - 4], esi
mov ebx, 0x104
lea eax, [ebp - 0x114]
push ebx
push eax
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
cmp eax, 0x103
jne 0x4466de
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test eax, eax
jne 0x446730
lea ecx, [ebp + 8]
push eax
push ecx
push eax
push 0xf003f
push eax
push eax
push eax
mov eax, dword [ebp + 0xc]
lea edx, [ebp - 0x114]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x446730
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp + 0xc]
lea eax, [ebp - 0x114]
push edx
push eax
push edi
call fcn.00446750
add esp, 0xc
test eax, eax
je 0x446730
inc esi
jmp 0x4466b1
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
xor eax, eax
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x446800
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6105f0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x31c
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
push 0x208
lea ecx, [ebp - 0x224]
push eax
push ecx
mov dword [ebp - 4], 0
call fcn.005de680
mov ebx, dword [ebp + 8]
add esp, 0xc
lea edx, [ebp - 0x224]
push edx
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x44686e
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp + 8]
lea ecx, [ebp - 0x224]
push eax
push 0x20019
push 0
push ecx
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4468a6
xor edx, edx
cmp eax, 2
sete dl
mov eax, edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [ebp + eax - 0x224]
mov al, byte [ebp + eax - 0x225]
cmp al, 0x5c
je 0x4468cc
mov byte [esi], 0x5c
inc esi
mov byte [esi], 0
lea ecx, [ebp - 0x18]
lea edx, [ebp + 0xc]
push ecx
mov ecx, dword [ebp + 8]
push 0
push 0
push 0
lea eax, [ebp - 0x328]
push edx
push eax
push 0
push ecx
mov dword [ebp + 0xc], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x44695d
lea edi, [ebp - 0x224]
or ecx, 0xffffffff
xor eax, eax
mov edx, 0x208
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [ebp - 0x328]
sub edx, ecx
push edx
push eax
push esi
call fcn.005de680
lea ecx, [ebp - 0x224]
push ecx
push ebx
call fcn.004469b0
add esp, 0x14
test eax, eax
je 0x44695d
lea edx, [ebp - 0x18]
lea eax, [ebp + 0xc]
push edx
mov edx, dword [ebp + 8]
push 0
push 0
push 0
lea ecx, [ebp - 0x328]
push eax
push ecx
push 0
push edx
mov dword [ebp + 0xc], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x4468f8
mov byte [esi - 1], 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x224]
push ecx
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
neg eax
sbb eax, eax
inc eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret