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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc10
mov eax, dword [0x492110]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x14]
push edi
push 0x400
mov dword [ebp - 0xc10], eax
mov edi, ecx
lea eax, [ebp - 0x404]
push 0
push eax
call fcn.0042f1f0
push 0x800
lea eax, [ebp - 0xc04]
mov dword [ebp - 0xc0c], 0x400
push 0
push eax
call fcn.0042f1f0
add esp, 0x18
mov dword [ebp - 0xc08], 0x800
lea eax, [ebp - 0xc08]
push eax
lea eax, [ebp - 0xc04]
push eax
push esi
xor esi, esi
lea eax, [ebp - 0xc0c]
push esi
push eax
lea eax, [ebp - 0x404]
push eax
push dword [ebp + 8]
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
cmp eax, 0x103
jne 0x40ade6
xor al, al
jmp 0x40ae61
push eax
mov ecx, edi
call fcn.0040ad25
cmp byte [ebp - 0x404], 0
mov edi, 0x487527
je 0x40ae26
push esi
push edi
mov ecx, ebx
call fcn.00404230
lea edx, [ebp - 0x404]
lea ecx, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x40ae0e
sub edx, ecx
lea eax, [ebp - 0x404]
push edx
push eax
mov ecx, ebx
call fcn.0040ba2e
cmp byte [ebp - 0xc04], 0
je 0x40ae5f
push esi
push edi
mov edi, dword [ebp - 0xc10]
mov ecx, edi
call fcn.00404230
lea edx, [ebp - 0xc04]
lea esi, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x40ae47
sub edx, esi
lea eax, [ebp - 0xc04]
push edx
push eax
mov ecx, edi
call fcn.0040ba2e
mov al, 1
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042db8f
leave
ret 0x10
Function at 0x40c5b8
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
mov eax, dword [0x492110]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
mov esi, ecx
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x408], edi
sub eax, 1
je 0x40c637
sub eax, 1
je 0x40c630
sub eax, 1
je 0x40c629
sub eax, 1
je 0x40c61c
sub eax, 1
je 0x40c615
sub eax, 1
je 0x40c60e
sub eax, 1
je 0x40c607
mov eax, str._s_r_n
jmp 0x40c63c
mov eax, str.WINERR__s_r_n
jmp 0x40c63c
mov eax, str.ERROR__Internal_Error:_Memory_allocation_failure.__s_r_n
jmp 0x40c63c
mov eax, str.ERROR__Internal_Error.__s_r_n
jmp 0x40c63c
cmp byte [esi + 0xc], 0
je 0x40c68b
mov eax, str.DEBUG___s_r_n
jmp 0x40c63c
mov eax, str.FAIL____s_r_n
jmp 0x40c63c
mov eax, str.PASS____s_r_n
jmp 0x40c63c
mov eax, str.INFO____s_r_n
push ecx
push eax
lea eax, [ebp - 0x404]
push eax
call fcn.0040c55e
add esp, 0xc
cmp dword [esi], 0xffffffff
je 0x40c68b
push 2
push edi
push edi
push dword [esi]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [esi + 4], eax
cmp eax, 0xffffffff
je 0x40c68b
lea eax, [ebp - 0x404]
push eax
call fcn.00436130
pop ecx
push edi
lea ecx, [ebp - 0x408]
push ecx
push eax
lea eax, [ebp - 0x404]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0042db8f
leave
ret 8
Function at 0x40da30
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x492110]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
lea eax, [ebp - 0x210]
xor edi, edi
push eax
push 0x20119
push edi
push str.SOFTWAREMcAfeeAntiTheftSettingsAppInfo
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x210], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, 5
je 0x40dad7
test eax, eax
jne 0x40dad3
push esi
mov esi, 0x208
mov dword [ebp - 0x218], 1
push esi
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.0042f1f0
add esp, 0xc
mov dword [ebp - 0x214], esi
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x218]
push eax
push edi
push str.core_version
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0x210]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop esi
je 0x40dad7
xor al, al
jmp 0x40dad9
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.0042db8f
leave
ret

Function at 0x40dc21
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
and dword [eax + 4], 0
and dword [eax], 0
mov dword [eax + 8], 0x67452301
mov dword [eax + 0xc], 0xefcdab89
mov dword [eax + 0x10], 0x98badcfe
mov dword [eax + 0x14], 0x10325476
pop ebp
ret
Function at 0x40eb6c
Capabilities:
Set registry value

Disassembly:
push 0x2c
push 0x48aec0
call fcn.0042dce0
mov eax, ecx
mov dword [ebp - 0x30], eax
xor ebx, ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov esi, ebx
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x34], ebx
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x40eb9b
mov eax, ecx
jmp 0x40ed29
test dword [ebp + 0x18], 1
jne 0x40ebd2
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
cmp dword [ebp + 0x1c], ebx
je 0x40ebc1
push dword [ebp + 8]
mov ecx, eax
call fcn.0040f41b
jmp 0x40ed29
push ebx
push dword [ebp + 8]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
jmp 0x40ed29
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x40ed26
mov edx, dword [ebp + 0x14]
cmp edx, 1
jb 0x40ed26
cmp dword [ebp + 0x1c], ebx
je 0x40ec21
cmp dword [ebp + 0xc], 1
je 0x40ebfa
cmp dword [ebp + 0xc], 7
jne 0x40ec21
lea edi, [ebp - 0x24]
push edi
lea edi, [ebp - 0x20]
push edi
push dword [ebp + 0xc]
push edx
push ecx
mov ecx, eax
call fcn.0040f3be
mov edi, eax
test edi, edi
jne 0x40ecf7
mov dword [ebp - 0x34], 1
jmp 0x40ec27
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x24]
add eax, 0x20
mov dword [ebp - 0x2c], eax
mov dword [ebp - 4], ebx
lea ecx, [eax + 8]
cmp eax, ecx
sbb eax, eax
and eax, ecx
je 0x40ec86
cmp eax, 0x400
ja 0x40ec66
call fcn.0042dd40
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [ebp - 0x38], esi
push 8
pop edi
test esi, esi
je 0x40ec8b
mov dword [esi], 0xcccc
add esi, edi
mov dword [ebp - 0x38], esi
jmp 0x40ec8b
push eax
call fcn.00432c26
pop ecx
mov esi, eax
mov dword [ebp - 0x3c], esi
push 8
pop edi
test esi, esi
je 0x40ec8b
mov dword [esi], 0xdddd
add esi, edi
mov dword [ebp - 0x3c], esi
jmp 0x40ec8b
mov esi, ebx
push 8
pop edi
mov dword [ebp - 0x28], esi
mov dword [ebp - 4], 0xfffffffe
jmp 0x40ecc1
test esi, esi
je 0x40ed0d
push dword [ebp - 0x2c]
push esi
push dword [ebp + 0xc]
push dword [ebp - 0x24]
push dword [ebp - 0x20]
mov ecx, dword [ebp - 0x30]
call fcn.0040edcb
mov edi, eax
test edi, edi
jne 0x40ecf7
push dword [ebp - 0x2c]
push esi
push 3
push ebx
push dword [ebp + 8]
mov eax, dword [ebp - 0x30]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edi, eax
test esi, esi
je 0x40ed0d
add esi, 0xfffffff8
cmp dword [esi], 0xdddd
jne 0x40ed0d
push esi
call fcn.00432c0b
pop ecx
cmp dword [ebp - 0x34], 0
je 0x40ed22
cmp dword [ebp - 0x20], 0
je 0x40ed22
push dword [ebp - 0x20]
call fcn.00432c0b
pop ecx
mov eax, edi
jmp 0x40ed29
push 0x57
pop eax
lea esp, [ebp - 0x4c]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 0x18
Function at 0x40edcb
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x250
mov eax, dword [0x492110]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 0x14]
mov esi, str.E54C3DE0_9E70_4eea_94B6_D069D4E4A9BC
push 1
push esi
mov dword [ebp - 0x24c], edi
call fcn.00436130
pop ecx
push eax
push esi
lea ecx, [ebp - 0x240]
call fcn.0040ca78
mov eax, dword [ebp + 0xc]
lea esi, [edi + 0x20]
lea ecx, [eax + 0x20]
mov dword [ebp - 0x250], ecx
cmp dword [ebp + 0x18], ecx
jae 0x40ee21
push 0x7a
pop esi
jmp 0x40ef03
cmp dword [ebp + 8], 0
je 0x40eefe
test esi, esi
je 0x40eefe
cmp eax, 1
jb 0x40eefe
mov edi, dword [ebp + 8]
sub edi, esi
mov dword [ebp - 0x244], eax
mov dword [ebp + 8], edi
mov al, byte [edi + esi]
lea ecx, [ebp - 0x240]
xor byte [ebp - 0x1f], al
call fcn.0040de65
mov bl, al
lea ecx, [ebp - 0x240]
xor bl, byte [ebp - 0x1f]
call fcn.0040de65
mov bh, al
xor eax, eax
inc eax
add bh, bl
cmp dword [ebp - 0x30], eax
jle 0x40ee9f
mov edi, eax
lea ecx, [ebp - 0x240]
call fcn.0040de65
lea ecx, [ebp - 0x240]
xor bh, al
call fcn.0040de65
add bh, al
inc edi
cmp edi, dword [ebp - 0x30]
jl 0x40ee79
mov edi, dword [ebp + 8]
xor eax, eax
inc eax
mov byte [esi], bh
inc esi
sub dword [ebp - 0x244], 1
jne 0x40ee4a
mov edi, dword [ebp - 0x24c]
xor esi, esi
push 0x10
push esi
mov dword [edi + 4], eax
lea ebx, [edi + 0x10]
mov eax, dword [ebp + 0xc]
mov dword [edi + 8], eax
mov eax, dword [ebp + 0x10]
push ebx
mov dword [edi], 0x4752434d
mov dword [edi + 0xc], eax
call fcn.0042f1f0
push 0x10
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x250]
push edi
call fcn.0040d3d2
add esp, 0x1c
test eax, eax
jne 0x40eefe
push 0x10
lea eax, [ebp - 0x14]
push eax
push ebx
call fcn.0042ec70
add esp, 0xc
jmp 0x40ef03
mov esi, 0x1770
lea ecx, [ebp - 0x240]
call fcn.0040cc54
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042db8f
leave
ret 0x14
Function at 0x40ef79
Capabilities:
Set registry value

Disassembly:
push 0x20
push 0x48af08
call fcn.0042dce0
mov dword [ebp - 0x30], ecx
xor edi, edi
mov dword [ebp - 0x20], edi
lea eax, [ebp - 0x20]
push eax
push edi
push dword [ebp + 0x10]
push 3
call fcn.0040cff0
add esp, 0x10
test eax, eax
jne 0x40f09e
mov dword [ebp - 0x24], edi
mov dword [ebp - 4], edi
mov ebx, dword [ebp - 0x20]
lea ecx, [ebx + 8]
cmp ebx, ecx
sbb eax, eax
test ecx, eax
je 0x40f011
cmp ebx, ecx
sbb eax, eax
and eax, ecx
cmp eax, 0x400
ja 0x40efed
cmp ebx, ecx
sbb eax, eax
and eax, ecx
call fcn.0042dd40
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [ebp - 0x28], esi
test esi, esi
je 0x40f013
mov dword [esi], 0xcccc
add esi, 8
mov dword [ebp - 0x28], esi
jmp 0x40f013
cmp ebx, ecx
sbb eax, eax
and eax, ecx
push eax
call fcn.00432c26
pop ecx
mov esi, eax
mov dword [ebp - 0x2c], esi
test esi, esi
je 0x40f013
mov dword [esi], 0xdddd
add esi, 8
mov dword [ebp - 0x2c], esi
jmp 0x40f013
mov esi, edi
mov dword [ebp - 0x24], esi
mov dword [ebp - 4], 0xfffffffe
jmp 0x40f049
test esi, esi
jne 0x40f052
push 0xe
pop eax
jmp 0x40f09e
push ebx
push edi
push esi
call fcn.0042f1f0
lea eax, [ebp - 0x20]
push eax
push esi
push dword [ebp + 0x10]
push 3
call fcn.0040cff0
add esp, 0x1c
mov ebx, eax
test ebx, ebx
jne 0x40f08a
push dword [ebp - 0x20]
push esi
push dword [ebp + 0xc]
push edi
push dword [ebp + 8]
mov eax, dword [ebp - 0x30]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ebx, eax
add esi, 0xfffffff8
cmp dword [esi], 0xdddd
jne 0x40f09c
push esi
call fcn.00432c0b
pop ecx
mov eax, ebx
lea esp, [ebp - 0x40]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x40f0b3
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x492110]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0x14]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x11c], ecx
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x110], ecx
mov eax, dword [edi + 0x2c]
mov dword [ebp - 0x118], edx
test eax, eax
je 0x40f100
cmp dword [edi + 4], 0
je 0x40f100
push edx
push dword [ebp + 0x10]
push ecx
call eax
mov ecx, dword [ebp - 0x110]
jmp 0x40f103
xor eax, eax
inc eax
cmp dword [ebp + 0x18], 0
je 0x40f1bf
test eax, eax
jne 0x40f1bf
mov ebx, eax
push eax
push eax
push eax
push eax
mov byte [ebp - 0x108], al
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x108]
mov dword [ebp - 0x114], 0x104
push eax
push ebx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov esi, eax
test esi, esi
jne 0x40f19f
and dword [ebp - 0x10c], eax
lea eax, [ebp - 0x10c]
push eax
push 0xf003f
push esi
lea eax, [ebp - 0x108]
push eax
push dword [ebp - 0x110]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40f1a7
push dword [ebp + 0x18]
mov ecx, dword [ebp - 0x11c]
push dword [ebp - 0x118]
push dword [ebp + 0x10]
push dword [ebp - 0x10c]
push edi
call fcn.0040f0b3
push dword [ebp - 0x10c]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40f1a7
cmp esi, 0x103
je 0x40f1bd
mov ecx, dword [ebp - 0x110]
inc ebx
push 0
pop eax
test esi, esi
je 0x40f117
mov eax, esi
jmp 0x40f1bf
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042db8f
leave
ret 0x14

Function at 0x411718
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push 3
pop esi
call fcn.004117a9
mov ebx, eax
test ebx, ebx
je 0x4117a0
mov eax, dword [ebp + 0x14]
add eax, eax
cmp byte [ebp + 8], 0
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp - 8]
push eax
push 0
je 0x411751
push str.szInstallDir32
jmp 0x411756
push str.szInstallDir64
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
jne 0x411798
test edi, edi
je 0x411798
push 0x487c74
push dword [ebp + 0x14]
push edi
call fcn.00404b90
test eax, eax
js 0x41178e
cmp dword [ebp + 0xc], esi
je 0x411798
push dword [ebp + 0xc]
push dword [ebp + 0x14]
push edi
call fcn.00404b90
test eax, eax
jns 0x411798
push 0x6f
pop esi
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
test esi, esi
pop esi
sete al
pop ebx
leave
ret
Function at 0x411cb0
Capabilities:
Get common file path

Disassembly:
push 0x5c
mov eax, 0x46b048
call fcn.0042dbd7
xor ecx, ecx
mov eax, ecx
mov esi, ecx
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], eax
mov ebx, dword [ebp + 8]
mov dword [ebp - 4], ecx
cmp dword [ebx], ecx
je 0x411db2
cmp dword [ebx + 4], ecx
je 0x411db2
cmp dword [ebx + 4], 0x8000
ja 0x411db2
push ecx
push ecx
mov dword [ebx + 0xc], ecx
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov dword [ebp + 8], eax
test eax, eax
je 0x411d48
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00425070
mov esi, eax
pop ecx
test esi, esi
je 0x411d43
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov ecx, eax
test ecx, ecx
jne 0x411d53
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov edi, eax
call fcn.00425080
pop ecx
xor esi, esi
xor ecx, ecx
jmp 0x411d53
push 0xe
pop edi
jmp 0x411d50
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov ecx, dword [ebp - 0x10]
test esi, esi
je 0x411dc0
mov eax, dword [ebx + 4]
add eax, 2
add eax, ecx
push 0xe
mov dword [ebp + 8], eax
add eax, eax
pop edi
push eax
call fcn.00432c26
mov dword [ebx + 0xc], eax
pop ecx
test eax, eax
je 0x411db5
push dword [ebx]
push esi
push str._ls_ls
push dword [ebp + 8]
push eax
call fcn.00404c00
add esp, 0x14
test eax, eax
js 0x411dae
push dword [ebx + 0xc]
lea ecx, [ebp - 0x68]
call fcn.004067b0
push 0
lea ecx, [ebp - 0x68]
call fcn.00406610
lea ecx, [ebp - 0x68]
mov edi, eax
call fcn.00406750
jmp 0x411db5
push 0x6f
jmp 0x411db4
push 0x57
pop edi
test esi, esi
je 0x411dc0
push esi
call fcn.00425080
pop ecx
mov eax, edi
call fcn.0042dba0
ret

Function at 0x411e6c
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x492110]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, 0x104
lea eax, [ebp - 0x108]
push esi
xor edi, edi
mov ebx, ecx
push edi
push eax
call fcn.0042f1f0
push esi
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], 1
push edi
push eax
mov dword [ebp - 0x214], esi
call fcn.0042f1f0
push edi
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x210]
push eax
push 0x4718b8
push str.SOFTWAREMcAfeeSystemCore
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.0041166e
add esp, 0x34
test eax, eax
jne 0x411f26
cmp dword [ebp - 0x210], 1
jne 0x411f26
lea eax, [ebp - 0x20c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov esi, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea eax, [ebp - 0x108]
push eax
call esi
push edi
push ebx
call fcn.004116fb
pop ecx
mov edi, eax
lea eax, [ebp - 0x20c]
pop ecx
push eax
call esi
test edi, edi
jne 0x411f44
mov ecx, dword [ebx]
test ecx, ecx
je 0x411f44
mov eax, dword [ecx]
call dword [eax + 8]
mov dword [ebx + 4], eax
test eax, eax
je 0x411f3c
xor eax, eax
jmp 0x411f46
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042db8f
leave
ret
Function at 0x411f55
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x28
push 0x48b0b8
call fcn.0042dce0
mov dword [ebp - 0x24], ecx
xor ebx, ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x30], ebx
mov edi, dword [ebp + 0x14]
test edi, edi
je 0x411f78
mov eax, dword [edi]
mov dword [ebp - 0x30], eax
mov eax, dword [ecx + 4]
test eax, eax
jne 0x41213e
test dword [ebp + 0x18], 1
jne 0x411fb6
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
cmp dword [ebp + 0x1c], ebx
je 0x411fa5
push dword [ebp + 8]
call fcn.00412467
jmp 0x41213e
push ebx
push dword [ebp + 8]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
jmp 0x41213e
test edi, edi
jne 0x411fc7
cmp dword [ebp + 0xc], ebx
jne 0x411fc7
push 0x57
pop eax
jmp 0x41213e
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x20]
push eax
push ebx
push dword [ebp + 8]
call fcn.0041228e
mov edx, dword [ebp + 0xc]
test edx, edx
je 0x411fe4
mov ecx, dword [ebp - 0x28]
mov dword [edx], ecx
test eax, eax
jne 0x41213e
test edi, edi
je 0x41213e
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 4], ebx
mov edx, dword [ebp - 0x20]
lea ecx, [edx + 8]
cmp edx, ecx
sbb eax, eax
test ecx, eax
je 0x41205e
cmp edx, ecx
sbb eax, eax
and eax, ecx
cmp eax, 0x400
ja 0x41203a
cmp edx, ecx
sbb eax, eax
and eax, ecx
call fcn.0042dd40
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [ebp - 0x34], esi
test esi, esi
je 0x412060
mov dword [esi], 0xcccc
add esi, 8
mov dword [ebp - 0x34], esi
jmp 0x412060
cmp edx, ecx
sbb eax, eax
and eax, ecx
push eax
call fcn.00432c26
pop ecx
mov esi, eax
mov dword [ebp - 0x38], esi
test esi, esi
je 0x412060
mov dword [esi], 0xdddd
add esi, 8
mov dword [ebp - 0x38], esi
jmp 0x412060
mov esi, ebx
mov dword [ebp - 0x2c], esi
mov dword [ebp - 4], 0xfffffffe
jmp 0x412096
test esi, esi
jne 0x4120a1
push 0xe
jmp 0x411fc1
push dword [ebp - 0x20]
push ebx
push esi
call fcn.0042f1f0
add esp, 0xc
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x20]
push eax
push esi
push dword [ebp + 8]
mov ebx, dword [ebp - 0x24]
mov ecx, ebx
call fcn.0041228e
mov ecx, eax
mov dword [ebp - 0x24], ecx
test ecx, ecx
jne 0x412127
cmp dword [ebp + 0x1c], eax
je 0x4120f9
cmp dword [ebp - 0x28], 1
je 0x4120de
cmp dword [ebp - 0x28], 7
jne 0x4120f9
mov eax, dword [ebp - 0x30]
mov dword [edi], eax
push edi
push dword [ebp + 0x10]
push esi
push dword [ebp - 0x28]
mov ecx, ebx
call fcn.0041262b
mov ecx, eax
mov dword [ebp - 0x24], ecx
jmp 0x412127
cmp dword [ebp + 0x10], 0
je 0x412122
mov eax, dword [ebp - 0x20]
cmp eax, dword [edi]
jbe 0x412110
mov ecx, 0xea
mov dword [ebp - 0x24], ecx
jmp 0x412122
push dword [ebp - 0x20]
push esi
push dword [ebp + 0x10]
call fcn.0042ec70
add esp, 0xc
mov ecx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x20]
mov dword [edi], eax
add esi, 0xfffffff8
cmp dword [esi], 0xdddd
jne 0x41213c
push esi
call fcn.00432c0b
pop ecx
mov ecx, dword [ebp - 0x24]
mov eax, ecx
lea esp, [ebp - 0x48]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 0x18
Function at 0x41228e
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x28
push 0x48b0d8
call fcn.0042dce0
mov dword [ebp - 0x2c], ecx
mov ecx, dword [ebp + 0x14]
test ecx, ecx
je 0x4122a7
and dword [ecx], 0
and dword [ebp - 0x24], 0
mov dword [ebp - 0x28], 0x1f4
and dword [ebp - 0x20], 0
and dword [ebp - 4], 0
mov eax, 0x1fc
call fcn.0042dd40
mov dword [ebp - 0x18], esp
mov eax, esp
mov dword [ebp - 0x30], eax
test eax, eax
je 0x4122dc
mov dword [eax], 0xcccc
add eax, 8
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x20], eax
jmp 0x4122fc
push 0xfffffffffffffffe
pop ebx
mov dword [ebp - 4], ebx
mov edi, dword [ebp - 0x20]
test edi, edi
je 0x41244f
lea eax, [ebp - 0x28]
push eax
push edi
lea eax, [ebp - 0x24]
push eax
push 0
push dword [ebp + 8]
mov eax, dword [ebp - 0x2c]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
cmp esi, 0xea
jne 0x412401
add edi, 0xfffffff8
cmp dword [edi], 0xdddd
jne 0x412346
push edi
call fcn.00432c0b
pop ecx
and dword [ebp - 0x20], 0
mov dword [ebp - 4], 1
mov edx, dword [ebp - 0x28]
lea ecx, [edx + 8]
cmp edx, ecx
sbb eax, eax
test ecx, eax
je 0x4123b3
cmp edx, ecx
sbb eax, eax
and eax, ecx
cmp eax, 0x400
ja 0x412391
cmp edx, ecx
sbb eax, eax
and eax, ecx
call fcn.0042dd40
mov dword [ebp - 0x18], esp
mov eax, esp
mov dword [ebp - 0x34], eax
test eax, eax
je 0x4123b5
mov dword [eax], 0xcccc
add eax, 8
mov dword [ebp - 0x34], eax
jmp 0x4123b5
cmp edx, ecx
sbb eax, eax
and eax, ecx
push eax
call fcn.00432c26
pop ecx
mov dword [ebp - 0x38], eax
test eax, eax
je 0x4123b5
mov dword [eax], 0xdddd
add eax, 8
mov dword [ebp - 0x38], eax
jmp 0x4123b5
xor eax, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], ebx
jmp 0x4123df
mov edi, dword [ebp - 0x20]
test edi, edi
je 0x41244f
lea eax, [ebp - 0x28]
push eax
push edi
lea eax, [ebp - 0x24]
push eax
push 0
push dword [ebp + 8]
mov eax, dword [ebp - 0x2c]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
test esi, esi
jne 0x412436
cmp dword [ebp - 0x24], 3
je 0x412410
push 0xd
pop esi
jmp 0x412436
push dword [ebp + 0x10]
push dword [ebp + 0xc]
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x28]
push dword [ebp - 0x20]
mov ecx, dword [ebp - 0x2c]
call fcn.00412660
mov esi, eax
mov ecx, dword [ebp + 0x14]
test ecx, ecx
je 0x412436
mov eax, dword [ebp - 0x24]
mov dword [ecx], eax
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff8
cmp dword [eax], 0xdddd
jne 0x41244b
push eax
call fcn.00432c0b
pop ecx
mov eax, esi
jmp 0x412452
push 0xe
pop eax
lea esp, [ebp - 0x48]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 0x10