joyce8/EMBER2024-capa huggingface dataset:
Function at 0x519130
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0x5580f0
mov dword [ebp - 4], ecx
push eax
call dword [0x5234ec]
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x519276
mov edi, dword [0x523550]
push 2
push 0
push ebx
call edi
push ebx
call dword [0x52354c]
push 0
push 0
push ebx
mov esi, eax
call edi
add esp, 0x1c
cmp esi, 0x1a8
jle 0x51926c
lea edi, [esi + 1]
push edi
call fcn.0051c5a0
mov esi, eax
add esp, 4
test esi, esi
mov dword [ebp + 8], esi
je 0x51926c
mov ecx, edi
xor eax, eax
mov edx, ecx
mov edi, esi
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push ebx
and ecx, 3
push 1
push 0x1a8
push esi
rep stosb byte es:[edi], al
call dword [0x52351c]
add esp, 0x10
test eax, eax
je 0x519263
mov ecx, 0x41
xor eax, eax
lea edi, [ebp - 0x10b]
mov byte [ebp - 0x10c], 0
rep stosd dword es:[edi], eax
mov ecx, dword [ebp - 4]
lea eax, [ebp - 0x10c]
push 0x104
push eax
push 0x1a8
push esi
call fcn.00518e90
test eax, eax
je 0x519263
lea ecx, [ebp - 0x10c]
test ecx, ecx
jne 0x519210
xor edi, edi
jmp 0x51924c
lea edx, [ebp - 0x10c]
push edx
call dword [0x523308]
mov esi, eax
inc esi
lea eax, [esi + esi]
add eax, 3
and al, 0xfc
call fcn.0051c5b0
mov edi, esp
push esi
push edi
lea eax, [ebp - 0x10c]
push 0xffffffffffffffff
push eax
push 0
push 0
mov word [edi], 0
call dword [0x52330c]
mov esi, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
push edi
dec ecx
push 0x5384a4
push ecx
push edx
call fcn.0042dd50
add esp, 0x10
push esi
call fcn.0051c55a
add esp, 4
push ebx
call dword [0x5234e4]
add esp, 4
lea esp, [ebp - 0x118]
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x519290
Capabilities:
Check if file exists

Disassembly:
sub esp, 0x218
push ebx
push esi
mov ebx, ecx
push edi
xor esi, esi
mov ecx, 0x82
xor eax, eax
lea edi, [esp + 0x1a]
mov word [esp + 0x18], si
push str.ie8ver.dll
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x22c]
lea ecx, [esp + 0x1c]
push eax
push 0x53a058
push 0x104
push ecx
mov dword [esp + 0x24], esi
call fcn.0042dce0
add esp, 0x14
lea edx, [esp + 0x18]
push edx
call dword [0x523704]
test eax, eax
je 0x5193d7
lea eax, [esp + 0x18]
push eax
call fcn.004ad600
add esp, 4
test eax, eax
je 0x5193d7
lea ecx, [esp + 0x18]
push ecx
call dword [0x523398]
mov edi, eax
cmp edi, esi
mov dword [esp + 0xc], edi
je 0x5193d7
push ebp
push 0x56b634
push str.IE8VER.INI
push edi
call dword [0x5231c8]
mov ebp, eax
cmp ebp, esi
je 0x5193bf
push ebp
push edi
call dword [0x5231c4]
mov esi, eax
push ebp
push edi
mov dword [esp + 0x20], esi
call dword [0x5231c0]
test esi, esi
mov ebp, eax
je 0x5193bf
test ebp, ebp
je 0x5193bf
lea esi, [ebp + 1]
push esi
call fcn.0051c5a0
mov edi, eax
add esp, 4
test edi, edi
mov dword [ebx], edi
je 0x5193bb
mov ecx, esi
xor eax, eax
mov edx, ecx
mov esi, dword [esp + 0x18]
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push 0x1f21bc
and ecx, 3
push ebp
rep stosb byte es:[edi], al
mov edi, dword [ebx]
mov ecx, ebp
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx]
push ecx
call fcn.0041e270
mov edx, dword [ebx]
lea esi, [ebx + 4]
push edx
push esi
call fcn.00495490
mov eax, dword [esi]
add esp, 0x14
test eax, eax
je 0x5193bb
mov dword [esp + 0x14], 1
mov edi, dword [esp + 0x10]
push edi
call dword [0x5233a0]
mov eax, dword [esp + 0x14]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x218
ret 4
mov eax, esi
pop edi
pop esi
pop ebx
add esp, 0x218
ret 4
Function at 0x519f40
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x628
push ebx
push esi
push edi
xor ebx, ebx
mov ecx, 0x82
xor eax, eax
lea edi, [ebp - 0x20e]
mov word [ebp - 0x210], bx
rep stosd dword es:[edi], eax
mov ecx, 0x82
lea edi, [ebp - 0x626]
mov word [ebp - 0x628], bx
push ebx
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x210]
push 0x1a
push eax
push ebx
call dword [0x52364c]
test eax, eax
je 0x519fb0
lea ecx, [ebp - 0x210]
push str.360SEie8core_
push ecx
call dword [0x523708]
lea edx, [ebp - 0x210]
push edx
call dword [0x523704]
test eax, eax
jne 0x519fbf
xor eax, eax
lea esp, [ebp - 0x634]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x210]
test eax, eax
jne 0x519fcd
xor esi, esi
jmp 0x51a004
lea ecx, [ebp - 0x210]
push ecx
call dword [0x523394]
lea edi, [eax + eax + 2]
mov eax, edi
add eax, 3
and al, 0xfc
call fcn.0051c5b0
mov esi, esp
push ebx
push ebx
push edi
push esi
lea edx, [ebp - 0x210]
push 0xffffffffffffffff
push edx
push ebx
push ebx
mov byte [esi], 0
call dword [0x523334]
push 0x104
push esi
push 0x5908d4
call dword [0x523530]
lea eax, [ebp - 0x210]
push 0x104
push eax
push 0x5906c8
call dword [0x523498]
add esp, 0x18
lea ecx, [ebp - 0x628]
push ecx
push 0x104
call dword [0x523248]
lea edx, [ebp - 0x210]
push edx
call dword [0x5231e8]
mov esi, 0x595a08
mov ecx, esi
call fcn.0051a1e0
add esi, 0x474
cmp esi, 0x59aa30
jl 0x51a053
mov esi, 0x590c02
mov edi, esi
neg edi
mov dword [ebp - 4], edi
jmp 0x51a079
mov edi, dword [ebp - 4]
push esi
push 0x5585dc
call dword [0x523494]
add esp, 8
test eax, eax
jne 0x51a117
mov eax, dword [0x56b684]
mov edx, 0x104
cmp eax, 8
mov eax, esi
jne 0x51a0dc
lea edi, [edi + ebx + str.8eframe.dll]
lea ecx, [edx + 0x7ffffefa]
test ecx, ecx
je 0x51a0ce
mov cx, word [edi + eax]
test cx, cx
je 0x51a0ce
mov word [eax], cx
add eax, 2
dec edx
jne 0x51a0a8
sub eax, 2
mov word [eax], 0
jmp 0x51a123
test edx, edx
jne 0x51a0d5
sub eax, 2
mov word [eax], 0
jmp 0x51a123
lea edi, [edi + ebx + str.6hdocvw.dll]
lea ecx, [edx + 0x7ffffefa]
test ecx, ecx
je 0x51a109
mov cx, word [edi + eax]
test cx, cx
je 0x51a109
mov word [eax], cx
add eax, 2
dec edx
jne 0x51a0e3
sub eax, 2
mov word [eax], 0
jmp 0x51a123
test edx, edx
jne 0x51a110
sub eax, 2
mov word [eax], 0
jmp 0x51a123
mov edx, dword [0x56b684]
add edx, 0x30
mov word [esi], dx
mov ecx, 0x82
xor eax, eax
lea edi, [ebp - 0x41a]
mov word [ebp - 0x41c], 0
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x210]
lea ecx, [ebp - 0x41c]
push eax
push ecx
call dword [0x523488]
add esp, 8
lea edx, [ebp - 0x41c]
push esi
push edx
call dword [0x523708]
mov edi, dword [0x523398]
lea eax, [ebp - 0x41c]
push eax
call edi
test eax, eax
mov dword [esi - 0x20e], eax
je 0x51a182
lea ecx, [ebp - 0x41c]
push ecx
call edi
sub ebx, 0x474
add esi, 0x474
cmp ebx, 0xffffafd8
jg 0x51a076
mov esi, 0x5909e0
mov ecx, esi
call fcn.0051a1e0
add esi, 0x474
cmp esi, 0x595a08
jl 0x51a19f
lea edx, [ebp - 0x628]
push edx
call dword [0x5231e8]
lea esp, [ebp - 0x634]
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x51b5d8
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x529f50
push 0x51c61e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push 0x1c
lea eax, [ebp - 0x34]
push eax
push dword [ebp + 8]
call dword [0x523150]
and dword [ebp - 4], 0
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x38], ecx
cmp word [ecx], 0x5a4d
jne 0x51b65e
mov eax, dword [ecx + 0x3c]
add eax, ecx
mov dword [ebp - 0x3c], eax
cmp dword [eax], 0x4550
je 0x51b636
xor al, al
or dword [ebp - 4], 0xffffffff
jmp 0x51b664
mov edx, dword [eax + 0xd8]
lea esi, [edx + ecx]
cmp dword [ebp + 0xc], esi
jb 0x51b62e
mov eax, dword [eax + 0xdc]
add eax, edx
add eax, ecx
cmp dword [ebp + 0xc], eax
jae 0x51b62e
mov al, 1
jmp 0x51b630
or dword [ebp - 4], 0xffffffff
xor al, al
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x51bd5e
Capabilities:
Hook routines via microsoft detours

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
cmp esi, 0x7ff80000
mov ebx, 0x10000
jbe 0x51bd82
lea eax, [esi - 0x7ff80000]
mov dword [ebp + 8], eax
jmp 0x51bd85
mov dword [ebp + 8], ebx
cmp esi, 0x80000000
jae 0x51bd98
lea eax, [esi + 0x7ff80000]
mov dword [ebp - 4], eax
jmp 0x51bd9f
mov dword [ebp - 4], 0xfff80000
mov eax, dword [0x59aa38]
mov ecx, dword [0x59aa34]
test eax, eax
jne 0x51bdb9
test ecx, ecx
je 0x51bdce
mov eax, ecx
mov dword [0x59aa38], eax
mov edx, dword [eax + 8]
test edx, edx
je 0x51bdce
cmp edx, dword [ebp + 8]
jb 0x51bdce
cmp edx, dword [ebp - 4]
jbe 0x51bf27
mov eax, ecx
test ecx, ecx
mov dword [0x59aa38], eax
je 0x51bdfe
test eax, eax
je 0x51bdf2
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x51bdf2
cmp ecx, dword [ebp + 8]
jb 0x51bdf2
cmp ecx, dword [ebp - 4]
jbe 0x51bf27
mov eax, dword [eax + 4]
test eax, eax
mov dword [0x59aa38], eax
jne 0x51bddd
mov eax, esi
and eax, 0xffff
sub esi, eax
cmp esi, dword [ebp + 8]
mov edi, esi
jbe 0x51be66
cmp edi, 0x70000000
jb 0x51be23
cmp edi, 0x80000000
ja 0x51be23
mov edi, 0x6fff0000
lea eax, [ebp - 0x20]
push 0x1c
push eax
push edi
call dword [0x523150]
test eax, eax
je 0x51be66
cmp dword [ebp - 0x10], ebx
jne 0x51be3e
cmp dword [ebp - 0x14], ebx
jae 0x51be4e
mov eax, dword [ebp - 0x1c]
lea edi, [eax - 0x10000]
cmp edi, dword [ebp + 8]
ja 0x51be0e
jmp 0x51be66
push 0x40
push 0x3000
push ebx
push edi
call dword [0x5232d4]
test eax, eax
mov dword [0x59aa38], eax
jne 0x51bedd
cmp esi, dword [ebp - 4]
jae 0x51bf4e
cmp esi, 0x70000000
jb 0x51be84
cmp esi, 0x80000000
ja 0x51be84
mov esi, 0x80010000
lea eax, [ebp - 0x20]
push 0x1c
push eax
push esi
call dword [0x523150]
test eax, eax
je 0x51bf4e
cmp dword [ebp - 0x10], ebx
jne 0x51bed2
cmp dword [ebp - 0x14], ebx
jb 0x51bed2
mov ecx, esi
and ecx, 0xffff
je 0x51beba
mov eax, ebx
sub eax, ecx
sub dword [ebp - 0x14], eax
add dword [ebp - 0x20], eax
mov esi, dword [ebp - 0x20]
push 0x40
push 0x3000
push ebx
push esi
call dword [0x5232d4]
test eax, eax
mov dword [0x59aa38], eax
jne 0x51bedd
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x14]
lea esi, [eax + ecx]
jmp 0x51be66
mov dword [eax], 0x52727464
mov eax, dword [0x59aa38]
xor ecx, ecx
mov dword [eax + 8], ecx
mov eax, dword [0x59aa38]
mov edx, dword [0x59aa34]
mov dword [eax + 4], edx
mov eax, dword [0x59aa38]
mov dword [0x59aa34], eax
add eax, 0xffe0
mov edx, 0x7fd
mov dword [eax + 0x18], ecx
mov ecx, eax
sub eax, 0x20
dec edx
jne 0x51bf0f
mov eax, dword [0x59aa38]
mov dword [eax + 8], ecx
mov eax, dword [0x59aa38]
mov esi, dword [eax + 8]
cmp esi, dword [ebp + 8]
jb 0x51bf4e
cmp esi, dword [ebp - 4]
ja 0x51bf4e
mov ecx, dword [esi + 0x18]
push 0x20
push 0xcc
push esi
mov dword [eax + 8], ecx
call fcn.0051cabe
add esp, 0xc
mov eax, esi
jmp 0x51bf50
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x51bf55
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x529f60
push 0x51c61e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push 0x1c
lea eax, [ebp - 0x38]
push eax
push dword [ebp + 8]
call dword [0x523150]
test eax, eax
je 0x51bfca
and dword [ebp - 4], 0
mov ecx, dword [ebp - 0x34]
cmp word [ecx], 0x5a4d
jne 0x51bfc6
mov eax, dword [ecx + 0x3c]
add eax, ecx
mov dword [ebp - 0x3c], eax
cmp dword [eax], 0x4550
jne 0x51bfc6
cmp word [eax + 0x14], 0
jne 0x51bfbb
xor eax, eax
or dword [ebp - 4], 0xffffffff
jmp 0x51bfcc
mov eax, ecx
jmp 0x51bfb5
or dword [ebp - 4], 0xffffffff
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40cb08
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x820
mov dword [ebp - 0x820], ecx
mov dword [ebp - 0x818], 0
mov dword [ebp - 0x810], 0x800
mov dword [ebp - 0x814], 0
mov eax, dword [ebp - 0x820]
mov ecx, dword [eax + 0x874]
mov dword [ebp - 0x80c], ecx
mov edx, dword [ebp - 0x820]
mov eax, dword [edx + 0x878]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0
push 0
lea ecx, [ebp - 0x818]
push ecx
mov edx, dword [ebp - 0x820]
mov eax, dword [edx + 0x878]
push eax
mov ecx, dword [ebp - 0x820]
call fcn.0040d2ae
test eax, eax
jbe 0x40cc51
mov dword [ebp - 0x81c], 0
jmp 0x40cba1
mov ecx, dword [ebp - 0x81c]
add ecx, 1
mov dword [ebp - 0x81c], ecx
mov edx, dword [ebp - 0x81c]
cmp edx, dword [ebp - 0x818]
jae 0x40cc51
push 0x800
push 0
lea eax, [ebp - 0x808]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0xf003f
lea ecx, [ebp - 8]
push ecx
mov edx, dword [ebp - 0x81c]
push edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0x820]
call fcn.0040d1c5
test eax, eax
jne 0x40cbee
jmp 0x40cb92
mov ecx, dword [ebp - 8]
push ecx
mov ecx, dword [ebp - 0x820]
call fcn.0040d1a1
push 0xf003f
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp - 0x820]
add eax, 0x68
push eax
mov ecx, dword [ebp - 0x80c]
push ecx
mov ecx, dword [ebp - 0x820]
call fcn.0040d275
test eax, eax
je 0x40cc4c
mov edx, dword [ebp - 8]
push edx
mov ecx, dword [ebp - 0x820]
call fcn.0040d1a1
mov eax, dword [ebp - 0x820]
add eax, 0x68
push eax
mov ecx, dword [ebp - 0x80c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
jmp 0x40cb92
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x40cc5a
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4137ae
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4c
mov dword [ebp - 0x58], ecx
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x48], 0x800
mov dword [ebp - 0x44], 0x800
push 0
lea eax, [ebp - 0x38]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov ecx, dword [ebp - 0x58]
call fcn.0040d2ae
lea ecx, [ebp - 0x24]
call sub.MFC42u.DLL_CStringArray::CStringArray
mov dword [ebp - 4], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x28], 0
jmp 0x40ccea
mov edx, dword [ebp - 0x28]
add edx, 1
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 0x28]
cmp eax, dword [ebp - 0x38]
jae 0x40cdfd
push 0xf003f
lea ecx, [ebp - 0x34]
push ecx
mov edx, dword [ebp - 0x28]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x58]
call fcn.0040d1c5
test eax, eax
je 0x40cdc5
mov dword [ebp - 0x30], 4
lea ecx, [ebp - 0x30]
push ecx
lea edx, [ebp - 0x10]
push edx
push 0x4189d4
mov eax, dword [ebp - 0x34]
push eax
mov ecx, dword [ebp - 0x58]
call fcn.0040d378
test eax, eax
je 0x40cd49
mov ecx, dword [ebp - 0x34]
push ecx
mov ecx, dword [ebp - 0x58]
call fcn.0040d1a1
jmp 0x40cce1
push 0x20019
lea edx, [ebp - 0x2c]
push edx
mov eax, dword [ebp - 0x58]
add eax, 0x68
push eax
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x58]
call fcn.0040d275
test eax, eax
je 0x40cd93
mov edx, dword [ebp - 0x34]
push edx
mov eax, dword [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x58]
call fcn.0040cc5a
mov ecx, dword [ebp - 0x2c]
push ecx
mov ecx, dword [ebp - 0x58]
call fcn.0040d1a1
mov edx, dword [ebp - 0x34]
push edx
mov ecx, dword [ebp - 0x58]
call fcn.0040d1a1
jmp 0x40cdc3
mov eax, dword [ebp - 0x34]
push eax
mov ecx, dword [ebp - 0x58]
call fcn.0040d1a1
mov ecx, dword [ebp - 0x2c]
push ecx
mov ecx, dword [ebp - 0x58]
call fcn.0040d1a1
mov edx, dword [ebp - 0x58]
add edx, 0x68
push edx
lea ecx, [ebp - 0x24]
call fcn.0040f320
mov eax, dword [ebp - 0x40]
add eax, 1
mov dword [ebp - 0x40], eax
jmp 0x40cdf8
mov ecx, dword [ebp - 0x2c]
push ecx
mov ecx, dword [ebp - 0x58]
call fcn.0040d1a1
mov edx, dword [ebp - 0x34]
push edx
mov ecx, dword [ebp - 0x58]
call fcn.0040d1a1
mov dword [ebp - 0x50], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.00412790
mov eax, dword [ebp - 0x50]
jmp 0x40ce50
jmp 0x40cce1
mov dword [ebp - 0x3c], 0
jmp 0x40ce0f
mov eax, dword [ebp - 0x3c]
add eax, 1
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp - 0x3c]
cmp ecx, dword [ebp - 0x40]
jae 0x40ce37
mov edx, dword [ebp - 0x3c]
push edx
lea ecx, [ebp - 0x24]
call fcn.0040f350
mov ecx, eax
call fcn.00404130
push eax
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
jmp 0x40ce06
mov dword [ebp - 0x54], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.00412790
mov eax, dword [ebp - 0x54]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
Function at 0x40cf76
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00412970
mov dword [ebp - 0x101c], ecx
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 8], 0x800
mov dword [ebp - 0xc], 0x800
mov dword [ebp - 4], 0
lea eax, [ebp - 0x10]
push eax
push 0
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x101c]
call fcn.0040d2ae
mov dword [ebp - 0x14], 0
jmp 0x40cfd3
mov edx, dword [ebp - 0x14]
add edx, 1
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
jae 0x40d043
mov dword [ebp - 8], 0x800
mov dword [ebp - 0xc], 0x800
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 0x1018]
push edx
lea eax, [ebp - 4]
push eax
push 0
lea ecx, [ebp - 0xc]
push ecx
lea edx, [ebp - 0x818]
push edx
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x40d041
mov edx, dword [ebp - 8]
push edx
lea eax, [ebp - 0x1018]
push eax
mov ecx, dword [ebp - 4]
push ecx
push 0
lea edx, [ebp - 0x818]
push edx
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0x18], eax
jmp 0x40cfca
mov eax, 1
mov esp, ebp
pop ebp
ret 8

Function at 0x40d1c5
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], 0
cmp dword [ebp + 8], 0
jne 0x40d1e2
xor eax, eax
jmp 0x40d26f
cmp dword [ebp + 0x10], 0
jne 0x40d1ef
xor eax, eax
jmp 0x40d26f
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x64], 0x800
push 0x800
push 0
mov ecx, dword [ebp - 0x10]
add ecx, 0x68
push ecx
call sub.MSVCRT.dll_memset
add esp, 0xc
lea edx, [ebp - 8]
push edx
push 0
push 0
push 0
mov eax, dword [ebp - 0x10]
add eax, 0x64
push eax
mov ecx, dword [ebp - 0x10]
add ecx, 0x68
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x40d247
cmp dword [ebp - 0xc], 0xea
jne 0x40d26d
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 0x10]
add eax, 0x68
push eax
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x10]
call fcn.0040d275
test eax, eax
je 0x40d26d
mov eax, 1
jmp 0x40d26f
xor eax, eax
mov esp, ebp
pop ebp
ret 0x10

Function at 0x40d334
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov dword [ebp - 4], 0
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0x10]
push edx
push 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40d370
mov eax, 1
jmp 0x40d372
xor eax, eax
mov esp, ebp
pop ebp
ret 0x14
Function at 0x40d378
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
push 0
push 0
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40d3ab
mov eax, 1
jmp 0x40d3ad
xor eax, eax
mov esp, ebp
pop ebp
ret 0x10
Function at 0x410a80
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp + 8]
push ecx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x410aa6
mov eax, 1
jmp 0x410b4f
mov edx, dword [ebp - 8]
push edx
call sub.MFC42u.DLL_operatornew
add esp, 4
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 8]
push edx
push 0
mov eax, dword [ebp + 8]
push eax
call sub.VERSION.dll_GetFileVersionInfoW
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x410af0
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0x24]
push edx
call sub.MFC42u.DLL_operatordelete
add esp, 4
mov eax, 2
jmp 0x410b4f
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x18]
push ecx
push str.VarFileInfoTranslation
mov edx, dword [ebp - 0xc]
push edx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x410b38
cmp dword [ebp - 0x14], 4
jb 0x410b38
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp + 0xc]
mov ax, word [ebp - 0x1c]
mov word [edx], ax
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp - 0x28]
push edx
call sub.MFC42u.DLL_operatordelete
add esp, 4
xor eax, eax
jmp 0x410b4f
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x2c]
push ecx
call sub.MFC42u.DLL_operatordelete
add esp, 4
mov eax, 3
mov esp, ebp
pop ebp
ret
Function at 0x411141
Capabilities:
Get common file path
Query or enumerate registry value
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov dword [ebp - 0x420], ecx
mov eax, dword [ebp - 0x420]
cmp dword [eax + 4], 0
je 0x411161
jmp 0x4112e5
push str.CTThemeU.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ecx, dword [ebp - 0x420]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0x420]
cmp dword [edx + 4], 0
jne 0x4112ae
push 0x104
push 0
lea eax, [ebp - 0x410]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
mov word [ebp - 0x410], 0
lea ecx, [ebp - 0x41c]
push ecx
push 0x20019
push 0
push 0x41a234
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x418], eax
cmp dword [ebp - 0x418], 0
jne 0x4112ae
mov dword [ebp - 0x414], 0x208
lea edx, [ebp - 0x414]
push edx
lea eax, [ebp - 0x410]
push eax
push 0
push 0
push 0x41a284
mov ecx, dword [ebp - 0x41c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x418], eax
cmp dword [ebp - 0x418], 0
jne 0x4112a1
lea edx, [ebp - 0x410]
push edx
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
xor ecx, ecx
mov cx, word [ebp + eax*2 - 0x412]
cmp ecx, 0x5c
je 0x41124a
push 0x41a290
lea edx, [ebp - 0x410]
push edx
call dword [sym.imp.MSVCRT.dll_wcscat]
add esp, 8
lea eax, [ebp - 0x208]
push eax
push 0x208
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [ebp - 0x410]
push ecx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push 0x41a294
lea edx, [ebp - 0x410]
push edx
call dword [sym.imp.MSVCRT.dll_wcscat]
add esp, 8
lea eax, [ebp - 0x410]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ecx, dword [ebp - 0x420]
mov dword [ecx + 4], eax
lea edx, [ebp - 0x208]
push edx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov eax, dword [ebp - 0x41c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x420]
mov dword [ecx + 8], 0
mov edx, dword [ebp - 0x420]
cmp dword [edx + 4], 0
je 0x4112e5
push str.CallThemeEngine
mov eax, dword [ebp - 0x420]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, dword [ebp - 0x420]
mov dword [edx + 8], eax
mov esp, ebp
pop ebp
ret