joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40a269
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
mov byte [ebp - 1], bl
cmp dword [edi + 0x44], ebx
je 0x40a286
xor esi, esi
inc esi
jmp 0x40a458
mov ecx, dword [ebp + 8]
test ecx, ecx
jne 0x40a2d4
mov eax, dword [edi + 0xc]
lea edx, [ebp - 0xc]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x40]
mov esi, eax
test esi, esi
js 0x40a458
lea eax, [ebp + 8]
push eax
push 2
push ebx
push dword [edi + 0x14]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x40a458
mov ecx, dword [ebp + 8]
mov byte [ebp - 1], 1
mov eax, dword [edi + 0x48]
push 4
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push 4
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push str.Size
push ecx
call ebx
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x40a449
mov eax, dword [edi + 0x50]
push 4
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push 4
push 0
push str.Progress
push dword [ebp + 8]
call ebx
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x40a449
push 4
lea eax, [edi + 0x74]
push eax
push 4
push 0
push str.LastAttemptHigh
push dword [ebp + 8]
call ebx
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x40a449
push 4
lea eax, [edi + 0x70]
push eax
push 4
push 0
push str.LastAttemptLow
push dword [ebp + 8]
call ebx
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x40a449
push 4
lea eax, [edi + 0x6c]
push eax
push 4
push 0
push str.LastError
push dword [ebp + 8]
call ebx
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x40a449
push 4
lea eax, [edi + 0x5c]
push eax
push 4
push 0
push str.StateCache
push dword [ebp + 8]
call ebx
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x40a449
push 4
lea eax, [edi + 0x60]
push eax
push 4
push 0
push str.StateExtract
push dword [ebp + 8]
call ebx
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x40a449
push 4
lea eax, [edi + 0x64]
push eax
push 4
push 0
push str.StateVerify
push dword [ebp + 8]
call ebx
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x40a449
push 4
lea eax, [edi + 0x68]
push eax
push 4
push 0
push str.StateAvailable
push dword [ebp + 8]
call ebx
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
cmp byte [ebp - 1], 0
je 0x40a458
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x40c647
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
xor ecx, ecx
cmp dword [esi + 0xc], ecx
jne 0x40c65f
mov eax, 0x80004001
jmp 0x40c7d1
mov eax, dword [ebp + 0xc]
push ebx
push edi
test byte [eax + 4], 2
je 0x40c7b2
push 0xffffffffffffffff
add eax, 0x108
lea ecx, [esi + 0x115c]
push eax
push 0x824
push ecx
call fcn.00414d54
add esp, 0x10
cmp eax, 0x50
jne 0x40c699
mov edi, 0x8007007a
jmp 0x40c7cd
push 0x824
lea ebx, [esi + 0x114]
xor edi, edi
push ebx
lea eax, [esi + 0x115c]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
jne 0x40c6d4
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
test edi, edi
js 0x40c7cd
movzx eax, word [ebx]
push 0x68
pop ecx
push 0x74
pop edx
cmp cx, ax
jne 0x40c74d
cmp dx, word [esi + 0x116]
jne 0x40c712
cmp dx, word [esi + 0x118]
jne 0x40c712
push 0x70
pop ecx
cmp cx, word [esi + 0x11a]
push 0x68
pop ecx
jne 0x40c712
push 0x3a
pop edx
cmp dx, word [esi + 0x11c]
push 0x74
pop edx
je 0x40c776
cmp cx, ax
jne 0x40c74d
cmp dx, word [esi + 0x116]
jne 0x40c74d
cmp dx, word [esi + 0x118]
jne 0x40c74d
push 0x70
pop ecx
cmp cx, word [esi + 0x11a]
jne 0x40c74d
push 0x73
pop ecx
cmp cx, word [esi + 0x11c]
jne 0x40c74d
push 0x3a
pop ecx
cmp cx, word [esi + 0x11e]
je 0x40c776
push 0x66
pop ecx
cmp cx, ax
jne 0x40c796
cmp dx, word [esi + 0x116]
jne 0x40c796
push 0x70
pop eax
cmp ax, word [esi + 0x118]
jne 0x40c796
push 0x3a
pop eax
cmp ax, word [esi + 0x11a]
jne 0x40c796
xor ecx, ecx
jmp 0x40c77d
add ebx, 2
cmp word [ebx], cx
jne 0x40c77a
push 0x2f
pop eax
cmp ax, word [ebx - 2]
je 0x40c7a5
mov word [ebx], ax
xor eax, eax
mov word [ebx + 2], ax
jmp 0x40c7a5
mov ecx, ebx
call 0x40eca8
mov edi, eax
test edi, edi
js 0x40c7cd
xor ecx, ecx
mov dword [esi + 0x21a4], ecx
test edi, edi
js 0x40c7c4
mov eax, dword [ebp + 0xc]
test byte [eax + 4], 4
je 0x40c7c4
mov eax, dword [eax + 0x1150]
mov dword [esi + 0x21a8], eax
push ecx
push esi
call fcn.0040c7d6
mov edi, eax
mov eax, edi
pop edi
pop ebx
pop esi
pop ebp
ret 0xc
Function at 0x40c7d6
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [ebp + 8]
lea edx, [ebp - 8]
push esi
push edi
xor edi, edi
mov eax, dword [ebx + 0xc]
mov dword [ebp - 8], edi
mov dword [ebp - 4], edi
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x60]
mov esi, eax
test esi, esi
js 0x40c8c9
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push edi
push 0x2001f
push edi
push edi
push edi
lea eax, [ebx + 0x14]
push eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x40c8c9
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [ebx + 0x115c]
push eax
call edi
push eax
lea ecx, [ebx + 0x115c]
mov dword [ebp + 8], eax
push ecx
lea esi, [ebx + 0x114]
push esi
call edi
push eax
push esi
push 1
push 0x7f
call dword [sym.imp.KERNEL32.dll_CompareStringW]
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
mov eax, dword [ebp + 8]
lea eax, [eax*2 + 2]
push eax
lea eax, [ebx + 0x115c]
push eax
je 0x40c884
push 2
jmp 0x40c886
push 1
push 0
push str.Path
push dword [ebp - 4]
call edi
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x40c8c9
push 4
lea eax, [ebx + 0x21a8]
push eax
push 4
push 0
push str.Priority
push dword [ebp - 4]
call edi
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
cmp dword [ebp - 4], 0
je 0x40c8d8
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x40c9a3
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4251c8
mov eax, dword fs:[0]
push eax
mov eax, 0x1168
call fcn.00422fc9
mov eax, dword [0x42f058]
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 dword [ebp - 0x1170], edx
mov esi, ecx
mov eax, dword [ebp + 8]
xor edi, edi
mov ebx, dword [ebp + 0x10]
push 0x1154
mov dword [ebp - 0x1174], eax
lea eax, [ebp - 0x1164]
push edi
push eax
mov dword [ebp - 0x116c], edi
mov dword [ebx], edi
call fcn.004130e9
push 0xffffffffffffffff
push esi
lea eax, [ebp - 0x115c]
mov dword [ebp - 0x1164], 0x1154
push 0x80
push eax
mov dword [ebp - 0x1160], 7
call fcn.00414d54
add esp, 0x1c
mov dword [ebp - 0x1168], 0x1048
lea eax, [ebp - 0x1168]
push eax
lea eax, [ebp - 0x105c]
push eax
push edi
push edi
push str.Path
push dword [ebp - 0x1170]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x40caf3
lea eax, [ebp - 0x1168]
mov dword [ebp - 0x1168], 4
push eax
lea eax, [ebp - 0x14]
push eax
push edi
push edi
push str.Priority
push dword [ebp - 0x1170]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x40caf3
mov ecx, dword [ebp - 0x1174]
lea eax, [ebp - 0x116c]
push eax
push dword [ebp + 0xc]
lea edx, [ebp - 0x1164]
call fcn.0040c912
mov esi, eax
test esi, esi
js 0x40cad8
mov eax, dword [ebp - 0x116c]
mov esi, edi
mov dword [ebx], eax
jmp 0x40cade
mov edi, dword [ebp - 0x116c]
test edi, edi
je 0x40caf3
mov eax, dword [edi + 4]
mov eax, dword [eax + 4]
add eax, 4
add eax, edi
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, esi
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.0041195e
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40d6b3
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x42f058]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x20], esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0
push dword [esi + 0x1c]
mov dword [0x43021c], eax
mov eax, dword [0x430218]
push dword [esi + 0x18]
push eax
mov edx, dword [eax]
call dword [edx + 0x30]
mov ebx, eax
test ebx, ebx
js 0x40d913
xor edx, edx
lea edi, [esi + 0x28]
cmp dword [esi + 0x14], edx
mov ecx, 0x28000080
push edx
mov eax, 0x8000080
mov dword [ebp - 0x28], edi
cmove eax, ecx
mov ebx, edx
push eax
push 4
push edx
push edx
push 0x40000000
push edi
mov dword [ebp - 0x2c], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 0x250], eax
cmp eax, 0xffffffff
jne 0x40d7a3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
jne 0x40d78d
mov ecx, edi
call fcn.0040e528
mov ecx, dword [ebp - 0x28]
mov edi, eax
xor eax, eax
xor edx, edx
movzx esi, word [edi]
mov word [edi], ax
call 0x40e47a
mov ebx, eax
mov word [edi], si
test ebx, ebx
js 0x40d913
mov edi, dword [ebp - 0x28]
xor eax, eax
push eax
push dword [ebp - 0x2c]
push 4
push eax
push eax
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, dword [ebp - 0x20]
mov dword [esi + 0x250], eax
cmp eax, 0xffffffff
jne 0x40d79b
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x40d913
push edi
push str.opened_cache_file:__S
push 3
call fcn.00410e8c
add esp, 0xc
cmp dword [ebp + 8], 0
je 0x40d89a
mov edx, dword [esi + 0x240]
xor eax, eax
mov edi, dword [esi + 0x244]
cmp dword [esi + 0x14], eax
jne 0x40d7ee
mov ecx, dword [0x430224]
add edx, ecx
adc edi, eax
sub edx, 1
sbb edi, eax
sub ecx, 1
not ecx
sbb eax, eax
and edx, ecx
not eax
and edi, eax
xor eax, eax
push eax
push eax
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
push edx
push dword [esi + 0x250]
call edi
test eax, eax
jne 0x40d820
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x40d913
push dword [esi + 0x250]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x40d84c
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x40d913
mov ecx, dword [esi + 0x23c]
mov eax, dword [esi - 0x74aafdc8]
push ebp
mov ebp, esp
add byte [eax], al
jl 0x40d8a0
neg eax
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
pop edi
pop esi
leave
ret
sbb esi, esi
rol dword [ebx + ebx*8 + 0x3741988], cl

Function at 0x40d928
Capabilities:
Enumerate pe sections

Disassembly:
or byte [esi + 0x57], dl
xor edi, edi
movzx eax, word [ecx + 0x14]
movzx esi, word [ecx + 6]
test esi, esi
lea eax, [eax + ecx + 0x18]
jbe 0x40d960
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x40d947
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp dword [esp + 0xc], edx
jb 0x40d958
add edx, ecx
cmp dword [esp + 0xc], edx
jb 0x40d962
inc edi
add eax, 0x28
cmp edi, esi
jb 0x40d93d
xor eax, eax
pop edi
pop esi
ret
Function at 0x40dc2f
Capabilities:
Contain obfuscated stackstrings

Disassembly:
call dword [eax + 0x56]
push dword [ebp + 8]
call fcn.0040d8aa
add esp, 0x10
mov dword [ebp - 0x88], eax
call fcn.0040d8e5
outsb dx, byte [esi]
daa
scasb al, byte es:[edi]
out dx, eax
lea eax, [ebp - 0x18]
mov byte [ebp - 0x18], bl
push eax
mov byte [ebp - 0x17], bl
mov byte [ebp - 0x16], 0x40
mov byte [ebp - 0x15], bl
mov byte [ebp - 0x14], 0xe9
mov byte [ebp - 0x13], 0xd6
mov byte [ebp - 0x12], 0xcd
mov byte [ebp - 0x11], 0xcb
mov byte [ebp - 0x10], 0xca
mov byte [ebp - 0xf], 0xde
mov byte [ebp - 0xe], 0xd3
mov byte [ebp - 0xd], 0xf9
mov byte [ebp - 0xc], 0xcd
mov byte [ebp - 0xb], 0xda
mov byte [ebp - 0xa], 0xda
mov byte [ebp - 9], 0xbf
call fcn.0040d8f5
push eax
push esi
push dword [ebp + 8]
call fcn.0040d8aa
mov dword [ebp - 8], eax
lea eax, [ebp - 0x6c]
push eax
mov byte [ebp - 0x6c], bl
mov byte [ebp - 0x6b], bl
mov byte [ebp - 0x6a], 0xbe
mov byte [ebp - 0x69], bl
mov byte [ebp - 0x68], 0x17
invalid
inc ebp
cdq

Function at 0x40de7c
Capabilities:
Inspect section memory permissions

Disassembly:
cmp dword [eax + 4], ebx
jne 0x40de8a
cmp dword [eax + 0xc], ebx
je 0x40df2d
mov edi, dword [eax + 0xc]
add edi, esi
push edi
call dword [ebp - 0xc0]
mov dword [ebp + 0xc], eax
call fcn.0040d8e5
jbe 0x40dece
salc
jns 0x40dedc
pop ebp
or al, 0x75
adc dl, byte [edi - 1]
xchg ebp, eax
dec eax
invalid
invalid
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
cmp eax, ebx
je 0x40df1b
inc ebp
adc byte [ebx + 0x74c33b00], cl
aaa
test eax, 0x80000000
lea ecx, [eax + esi]
je 0x40def6
and eax, 0xffff
push eax
jmp 0x40defa
add ecx, 2
push ecx
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040d8aa
add esp, 0xc
cmp edi, ebx
mov dword [edi], eax
je 0x40e0d4
add edi, 4
invalid
inc ebp
Function at 0x40e1f0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
inc dword [eax]
mov byte [ebp - 0x3c0], 0x21
mov byte [ebp - 0x3bf], 3
mov byte [ebp - 0x3be], 0x12
mov byte [ebp - 0x3bd], 0x2b
mov byte [ebp - 0x3bc], 9
mov byte [ebp - 0x3bb], 2
mov byte [ebp - 0x3ba], 0x13
mov byte [ebp - 0x3b9], 0xa
mov byte [ebp - 0x3b8], 3
mov byte [ebp - 0x3b7], 0x20
mov byte [ebp - 0x3b6], 0xf
mov byte [ebp - 0x3b5], 0xa
mov byte [ebp - 0x3b4], 3
mov byte [ebp - 0x3b3], 0x28
mov byte [ebp - 0x3b2], 7
mov byte [ebp - 0x3b1], 0xb
mov byte [ebp - 0x3b0], 3
mov byte [ebp - 0x3af], 0x27
mov byte [ebp - 0x3ae], 0x66
lea eax, [ebp - 0x3c4]
push eax
call fcn.0040d8f5
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.0040d8aa
add esp, 0xc
mov dword [ebp - 0x538], eax
and byte [ebp - 0x3ec], 0
and byte [ebp - 0x3eb], 0
mov byte [ebp - 0x3ea], 0x11
and byte [ebp - 0x3e9], 0
mov byte [ebp - 0x3e8], 0xa9
mov byte [ebp - 0x3e7], 0x8b
mov byte [ebp - 0x3e6], 0x9a
mov byte [ebp - 0x3e5], 0xa3
mov byte [ebp - 0x3e4], 0x81
mov byte [ebp - 0x3e3], 0x8a
mov byte [ebp - 0x3e2], 0x9b
mov byte [ebp - 0x3e1], 0x82
mov byte [ebp - 0x3e0], 0x8b
mov byte [ebp - 0x3df], 0xa6
mov byte [ebp - 0x3de], 0x8f
mov byte [ebp - 0x3dd], 0x80
mov byte [ebp - 0x3dc], 0x8a
mov byte [ebp - 0x3db], 0x82
mov byte [ebp - 0x3da], 0x8b
mov byte [ebp - 0x3d9], 0xaf
mov byte [ebp - 0x3d8], 0xee
lea eax, [ebp - 0x3ec]
push eax
call fcn.0040d8f5
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.0040d8aa
add esp, 0xc
mov dword [ebp - 0x340], eax
call fcn.0040d8e5
invalid

Function at 0x411091
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
xor ebx, ebx
lea eax, [ebp + 8]
push eax
push ebx
lea eax, [ebp - 4]
mov dword [ebp - 4], ebx
push eax
push ebx
push edx
push ecx
push 0x900
mov esi, ebx
mov dword [ebp - 8], ebx
mov edi, ebx
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
mov ebx, eax
test ebx, ebx
jne 0x4110de
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x41114f
test ebx, ebx
je 0x41111e
push 0
lea eax, [ebp - 8]
push eax
mov eax, ebx
sub eax, edi
push eax
mov eax, dword [ebp - 4]
add eax, edi
push eax
push dword [0x42f794]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x411117
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x41114f
add edi, dword [ebp - 8]
cmp edi, ebx
jb 0x4110de
push 0
lea eax, [ebp - 8]
push eax
push 2
push 0x42c03c
push dword [0x42f794]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x41114f
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
cmp dword [ebp - 4], 0
je 0x41115e
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x41125b
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x218
mov eax, dword [0x42f058]
xor eax, esp
mov dword [esp + 0x214], eax
push ebx
mov ebx, ecx
xor ecx, ecx
push esi
mov dword [esp + 8], ecx
lea eax, [esp + 0x10]
mov dword [esp + 0xc], 0x100
push eax
push ecx
push ecx
push ecx
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x2c]
push eax
push ecx
push ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
jne 0x411326
lea eax, [esp + 8]
push eax
push 0x2001f
push esi
lea eax, [esp + 0x24]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x41133b
mov ecx, dword [esp + 8]
call fcn.0041125b
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x41133b
push dword [esp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
and dword [esp + 8], 0
lea eax, [esp + 0x18]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x41133b
jmp 0x41132e
cmp esi, 0x80070103
je 0x411339
test esi, esi
jne 0x41133b
xor ecx, ecx
jmp 0x41127f
xor esi, esi
cmp dword [esp + 8], 0
je 0x41134c
push dword [esp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x21c]
mov eax, esi
pop esi
pop ebx
xor ecx, esp
call fcn.0041195e
mov esp, ebp
pop ebp
ret

Function at 0x411362
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x42f058]
xor eax, ebp
mov dword [ebp - 4], eax
push 0xffffffffffffffff
push str.SOFTWAREMicrosoftOfficeDeliverySourceEngineDownloads
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.00414d54
add esp, 0x10
cmp eax, 0x50
jne 0x41139c
mov eax, 0x8007007a
jmp 0x4113e3
lea eax, [ebp - 0x20c]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov ecx, eax
test ecx, ecx
jne 0x4113f1
lea eax, [ebp - 0x20c]
push 0x5c
push eax
call fcn.00412e34
pop ecx
pop ecx
test eax, eax
je 0x4113d3
xor ecx, ecx
mov word [eax], cx
cmp cx, word [eax + 2]
je 0x4113b4
cmp word [ebp - 0x20c], 0
je 0x4113e1
test eax, eax
jne 0x41139c
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041195e
mov esp, ebp
pop ebp
ret
cmp ecx, 2
je 0x41140a
cmp ecx, 3
je 0x41140a
movzx eax, cx
or eax, 0x80070000
test ecx, ecx
cmovle eax, ecx
jmp 0x41140c
xor eax, eax
cmp eax, 1
je 0x41139c
jmp 0x4113e3
Function at 0x411413
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 4], 0
mov eax, ecx
push ebx
push esi
lea ecx, [ebp - 4]
mov dword [ebp - 8], eax
push ecx
push 0x2001f
push 0
mov ebx, edx
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, 2
jne 0x411442
xor esi, esi
inc esi
jmp 0x411487
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x411487
mov ecx, dword [ebp - 4]
call fcn.0041125b
mov esi, eax
test esi, esi
js 0x411487
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
and dword [ebp - 4], 0
push ebx
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
cmp dword [ebp - 4], 0
je 0x411496
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x414447
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
push esi
push str.FlsAlloc
push 0x426460
push str.FlsAlloc
push 0
call fcn.004143c0
mov esi, eax
add esp, 0x10
test esi, esi
je 0x414479
push dword [ebp + 8]
mov ecx, esi
call fcn.00412097
call esi
pop esi
pop ebp
ret
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsAlloc]

Function at 0x4144bb
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
push str.FlsGetValue
push 0x426484
push str.FlsGetValue
push 2
call fcn.004143c0
add esp, 0x10
mov esi, eax
push dword [ebp + 8]
test esi, esi
je 0x4144ec
mov ecx, esi
call fcn.00412097
call esi
jmp 0x4144f2
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
pop esi
pop ebp
ret

Function at 0x4144f5
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
push str.FlsSetValue
push 0x426498
push str.FlsSetValue
push 3
call fcn.004143c0
add esp, 0x10
mov esi, eax
push dword [ebp + 0xc]
push dword [ebp + 8]
test esi, esi
je 0x414529
mov ecx, esi
call fcn.00412097
call esi
jmp 0x41452f
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop esi
pop ebp
ret
Function at 0x408390
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov ecx, dword [ebp - 0x2a8]
mov edx, dword [ecx + 0x18]
mov dword [ebp - 0x304], edx
push eax
push esi
add esp, 4
add eax, 0xe1b4
pop eax
push edi
push edx
add esp, 4
xor edi, 0x17476
pop edi
push edx
xor edx, 0x1d79
and edx, 0x12098
and edx, 0x2d21
add edx, 0x96ae
pop edx
mov dword [ebp - 0x730], 0
mov eax, dword [ebp - 0x304]
mov dword [ebp - 0x1580], eax
cmp dword [ebp - 0x1580], 0
jne 0x408401
mov ecx, dword [ebp - 0x730]
mov dword [ebp - 0x4f0], ecx
jmp 0x4086f2
mov edx, dword [ebp - 0x1580]
mov eax, dword [ebp - 0x304]
add eax, dword [edx + 0x3c]
mov dword [ebp - 0x1584], eax
jne 0x408429
mov ecx, dword [ebp - 0x730]
mov dword [ebp - 0x4f0], ecx
jmp 0x4086f2
mov edx, 8
imul eax, edx, 0
mov ecx, dword [ebp - 0x1584]
mov edx, dword [ecx + eax + 0x78]
mov dword [ebp - 0x1588], edx
cmp dword [ebp - 0x1588], 0
jne 0x40845b
mov eax, dword [ebp - 0x730]
mov dword [ebp - 0x4f0], eax
jmp 0x4086f2
mov ecx, dword [ebp - 0x304]
add ecx, dword [ebp - 0x1588]
mov dword [ebp - 0x724], ecx
jne 0x408480
mov edx, dword [ebp - 0x730]
mov dword [ebp - 0x4f0], edx
jmp 0x4086f2
mov eax, dword [ebp - 0x724]
mov ecx, dword [ebp - 0x304]
add ecx, dword [eax + 0x20]
mov dword [ebp - 0x1900], ecx
mov edx, dword [ebp - 0x724]
mov eax, dword [ebp - 0x304]
add eax, dword [edx + 0x24]
mov dword [ebp - 0x1904], eax
mov ecx, dword [ebp - 0x724]
mov edx, dword [ebp - 0x304]
add edx, dword [ecx + 0x1c]
mov dword [ebp - 0x1908], edx
mov dword [ebp - 0x728], 0
jmp 0x4084da