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

Disassembly:
sub esp, 0x214
mov eax, dword [0x1004f860]
xor eax, esp
mov dword [esp + 0x210], eax
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 4]
push ecx
push 0
push 0x2021f
push 0
push 0
push 0
push str.SOFTWAREJavaSoftJava_UpdatePolicy
push SysReAllocStringLen
mov dword [esp + 0x30], 0
mov dword [esp + 0x28], 0x64
mov dword [esp + 0x2c], 0x200
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1002822a
call fcn.10027cf0
test eax, eax
je 0x100281fb
lea edx, [esp + 8]
push edx
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0xc]
push 4
push ecx
call fcn.10028240
add esp, 0x10
jmp 0x10028203
mov edx, dword [esp + 4]
mov dword [esp + 0x10], edx
mov eax, dword [esp + 8]
mov edx, dword [esp]
push eax
lea ecx, [esp + 0x14]
push ecx
push 3
push 0
push str.EnableAutoUpdateCheck
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [esp]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.1003779c
add esp, 0x214
ret

Function at 0x10028240
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
pushal
call 0x1002824f
pop dword [ebp - 0x1c]
mov eax, 0xce934f70
sub eax, 0xbe90cd21
sub dword [ebp - 0x1c], eax
mov dword [ebp - 0x2c], 0xebd9b35d
sub dword [ebp - 0x2c], 0x9d876e12
mov dword [ebp - 0x28], 0x6f215cd1
sub dword [ebp - 0x28], 0x3cee108c
mov dword [ebp - 0x24], 0xefc1db26
add dword [ebp - 0x24], 0x5c8a6908
mov dword [ebp - 0x20], 0xe7c99aa8
add dword [ebp - 0x20], 0x18366558
lea eax, [ebp - 0x2c]
push eax
mov eax, 0x4d9ad45a
add eax, 0xc268cc22
add eax, dword [ebp - 0x1c]
call dword [eax]
mov dword [ebp - 0x2c], 0xb37a8310
sub dword [ebp - 0x2c], 0x3f0819ba
mov dword [ebp - 0x28], 0xf2aac47c
sub dword [ebp - 0x28], 0xb13e6307
mov dword [ebp - 0x24], 0xfc524954
add dword [ebp - 0x24], 0x671d2318
mov dword [ebp - 0x20], 0xbd06e258
add dword [ebp - 0x20], 0x42f91da8
lea ebx, [ebp - 0x2c]
push ebx
push eax
mov eax, 0xca6e131b
sub eax, 0xba6a72bb
add eax, dword [ebp - 0x1c]
call dword [eax]
push 0x40
push 0x1000
push 0x3869f
push 0
call eax
mov ecx, 0x6ce1ae33
sub ecx, 0x6ce16906
mov esi, eax
mov edx, 0xf6dc0465
sub edx, 0xe6d50e65
add edx, dword [ebp - 0x1c]
mov ebx, 0xc0bfa4ff
sub ebx, 0x8e528bbf
mov dword [ebp - 0x10], 0xf24d375
mov edi, dword [edx]
xor dword [ebp - 0x18], 0xc5848e4b
add edi, ebx
add dword [ebp - 4], 0x51fd41f7
mov dword [esi], edi
mov dword [ebp - 0x14], 0x7fef4e8f
add esi, 0xdd312921
sub esi, 0xdd31291d
add edx, 4
loop 0x10028371
add eax, 0x10787
xor ebx, ebx
add ebx, eax
add eax, 0x75789ec6
add eax, 0x8a87613f
mov ecx, 0xe2fa09fd
sub ecx, 0xd2fa09fd
add ecx, dword [ebp - 0x1c]
call ebx
leave
ret
Function at 0x41ef52
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x43f572
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push ebx
push esi
push edi
mov eax, dword [0x459624]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
xor ebx, ebx
lea esi, [esp + 0x14]
mov dword [esp + 0x14], ebx
call fcn.0041b766
mov cl, byte [eax + 4]
mov edi, dword [eax]
mov byte [esp + 0x10], cl
mov dword [esp + 0x1c], edi
mov byte [eax + 4], bl
mov dword [esp + 0x2c], edi
mov byte [esp + 0x30], cl
mov dword [esp + 0x50], ebx
cmp byte [esp + 0x18], bl
je 0x41efbd
push dword [esp + 0x14]
mov byte [esp + 0x1c], bl
call fcn.004243b3
pop ecx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov esi, 0x100001
lea eax, [esp + 0x34]
mov byte [esp + 0x50], 1
call fcn.0040792f
push edi
mov edi, dword [esp + 0x38]
dec esi
push esi
push 1
push edi
call fcn.0042b15b
add esp, 0x10
mov dword [esp + 0x14], eax
cmp eax, esi
jbe 0x41f011
push 0xc8
lea esi, [esp + 0x20]
call fcn.004162fc
push 0x4509f4
mov eax, esi
push eax
call fcn.0042b9e4
push dword [esp + 0x1c]
call fcn.0042aee9
pop ecx
test eax, eax
je 0x41f036
push 0x133
lea esi, [esp + 0x20]
call fcn.004162fc
push 0x4509f4
mov eax, esi
jmp 0x41f00b
push dword [esp + 0x1c]
call fcn.0042aec1
pop ecx
test eax, eax
jne 0x41f05b
push 0x13b
lea esi, [esp + 0x20]
call fcn.004162fc
push 0x4509f4
mov eax, esi
jmp 0x41f00b
mov esi, dword [esp + 0x14]
mov ecx, esi
mov eax, edi
call fcn.0041ef1e
lea eax, [edi + esi]
mov esi, dword [ebp + 8]
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
mov byte [esi], bl
cmp edi, eax
je 0x41f089
sub eax, edi
push eax
push edi
mov ecx, esi
call fcn.00402f4d
cmp edi, ebx
je 0x41f094
push edi
call fcn.00425436
pop ecx
cmp byte [esp + 0x10], bl
je 0x41f0a4
push dword [esp + 0x1c]
call fcn.004243b3
pop ecx
mov eax, esi
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x41f2eb
Capabilities:
Get common file path

Disassembly:
push ebp
sub esp, 0x240
lea ebp, [esp - 4]
mov eax, dword [0x459624]
xor eax, ebp
mov dword [ebp + 0x240], eax
push 0x14
mov eax, 0x43ee95
call fcn.0042be14
xor esi, esi
lea eax, [ebp + 0x38]
push eax
push esi
push esi
push 0x2c
push esi
mov dword [ebp - 0x10], esi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
cmp eax, esi
je 0x41f341
push 0xc8
lea esi, [ebp - 0x20]
call fcn.004162fc
push 0x4509f4
mov eax, esi
push eax
call fcn.0042b9e4
lea eax, [ebp + 0x38]
push eax
lea eax, [ebp]
call fcn.00406e41
push 0x44d2c0
push eax
lea eax, [ebp + 0x1c]
mov dword [ebp - 4], esi
call fcn.00411029
push ebx
mov ecx, eax
mov byte [ebp - 4], 1
call fcn.0041df63
add esp, 0xc
push 1
xor edi, edi
lea esi, [ebp + 0x1c]
call fcn.00406fdc
push 1
lea esi, [ebp]
call fcn.00406fdc
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x240]
xor ecx, ebp
call fcn.00425441
add ebp, 0x244
leave
ret
Function at 0x420605
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [ebp + 0x10]
mov ebx, eax
xor ecx, ecx
cmp dword [ebp + 0x14], ecx
jl 0x420685
jg 0x420631
cmp esi, ecx
jbe 0x420685
cmp dword [ebp + 0x14], ecx
jg 0x420631
jl 0x42062d
cmp esi, 0x7fffffff
jae 0x420631
mov eax, esi
jmp 0x420636
mov eax, 0x7fffffff
cmp dword [ebp + 8], 0xffffffff
mov dword [ebp - 4], ecx
je 0x420676
push ecx
lea ecx, [ebp - 4]
push ecx
push eax
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x420660
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
je 0x420680
jmp 0x420676
mov eax, dword [ebp - 4]
test eax, eax
jle 0x420671
add ebx, eax
cdq
sub esi, eax
sbb dword [ebp + 0x14], edx
jmp 0x420611
cmp eax, 0xffffffff
jne 0x420680
call fcn.0042a08a
cmp dword [eax], 4
je 0x420611
or eax, 0xffffffff
jmp 0x420687
xor eax, eax
pop esi
pop ebx
leave
ret
Function at 0x450d9b
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ebx
je 0x450dd8
cmp dword [ebp + 0x14], edi
je 0x450dd8
cmp ecx, edi
jne 0x450ddf
call fcn.0042a98b
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.00429974
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x450df3
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x450e14
cmp ebx, 0xffffffff
je 0x450e03
push ebx
push edi
push ecx
call fcn.00428c40
add esp, 0xc
cmp esi, edi
je 0x450dc0
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x450dc0
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x450e30
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x450e37
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x450f28
test word [esi + 0xc], 0x10c
je 0x450e8b
mov eax, dword [esi + 4]
test eax, eax
je 0x450e8b
jl 0x450f89
cmp ebx, eax
mov edi, ebx
jb 0x450e5c
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x450f30
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.00428b60
sub dword [esi + 4], edi
add dword [esi], edi
add dword [ebp - 8], edi
sub ebx, edi
add esp, 0x10
sub dword [ebp - 4], edi
mov edi, dword [ebp - 0x10]
jmp 0x450f20
cmp ebx, dword [ebp - 0xc]
jb 0x450ef8
cmp dword [ebp - 0xc], 0
je 0x450eb5
mov ecx, 0x7fffffff
xor edx, edx
cmp ebx, ecx
jbe 0x450eaa
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x450eb1
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x450ec0
mov eax, 0x7fffffff
cmp ebx, eax
ja 0x450ec0
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x450f5c
push eax
push dword [ebp - 8]
push esi
call fcn.004326ea
pop ecx
push eax
call fcn.0045487d
add esp, 0xc
test eax, eax
je 0x450f9b
cmp eax, 0xffffffff
je 0x450f89
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x450f20
push esi
call fcn.0045419c
cmp eax, 0xffffffff
pop ecx
je 0x450f8d
cmp dword [ebp - 4], 0
je 0x450f5c
mov ecx, dword [ebp - 8]
inc dword [ebp - 8]
mov byte [ecx], al
mov eax, dword [esi + 0x18]
dec ebx
dec dword [ebp - 4]
mov dword [ebp - 0xc], eax
test ebx, ebx
jne 0x450e3f
mov eax, dword [ebp + 0x14]
jmp 0x450dda
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x450f47
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.00428c40
add esp, 0xc
call fcn.0042a98b
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x450dd0
cmp dword [ebp + 0xc], 0xffffffff
je 0x450f72
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.00428c40
add esp, 0xc
call fcn.0042a98b
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x450dd0
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x450dda
or dword [esi + 0xc], 0x10
jmp 0x450f8d
Function at 0x42e003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
mov eax, section..text
nop
nop
nop
push 4
nop
pop edi
nop
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
je 0x42e072
nop
nop
nop
mov ebx, 0x407ef8
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0xe884cf2
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x42e060
nop
nop
mov eax, section..data
nop
nop
cmp eax, 0
nop
nop
nop
je 0x42e0d2
nop
nop
nop
mov ebx, 0x42cd70
nop
nop
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
push eax
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
mov esi, 0x43792a53
nop
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x42e0c0
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x10001360
Capabilities:
Set registry value

Disassembly:
push ecx
lea eax, [esp]
push 0
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push str.SOFTWARECNNICCdnClientRestore
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x100013c4
mov edx, dword [esp + 8]
push esi
push edi
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
mov ecx, dword [esp + 0x18]
push edx
mov edx, dword [esp + 0x10]
push 1
push eax
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop edi
pop esi
sete al
pop ecx
ret
xor al, al
pop ecx
ret

Function at 0x100013d0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x208
lea eax, [esp]
mov dword [esp + 4], 0x200
push eax
push 0x2001f
push 0
push str.SOFTWARECNNICCdnClientRestore
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10001455
push esi
lea ecx, [esp + 8]
push edi
lea edx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0xc]
push edx
push eax
push eax
mov eax, dword [esp + 0x228]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, eax
lea edi, [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0x214]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
test edx, edx
pop edi
pop esi
sete al
add esp, 0x208
ret
xor al, al
add esp, 0x208
ret

Function at 0x10001460
Capabilities:
Get common file path

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x100014b5
push edi
mov ecx, 0x41
xor eax, eax
mov edi, esi
push 0x104
push esi
rep stosd dword es:[edi], eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea edx, [esi + 1]
mov ecx, 0x40
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, str.:Program_FilesCNNICCdn_
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
ret
Function at 0x100014c0
Capabilities:
Create shortcut via ishelllink

Disassembly:
sub esp, 0x210
push esi
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
jge 0x100014dd
xor eax, eax
pop esi
add esp, 0x210
ret
lea eax, [esp + 4]
push eax
push 0x100060f0
push 1
push 0
push 0x100060e0
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jge 0x10001504
xor eax, eax
pop esi
add esp, 0x210
ret
mov eax, dword [esp + 4]
lea edx, [esp + 8]
push edx
push 0x10006120
mov ecx, dword [eax]
push eax
call dword [ecx]
mov esi, eax
test esi, esi
jl 0x100015ce
mov eax, dword [esp + 4]
mov edx, dword [esp + 0x218]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x50]
test eax, eax
jge 0x10001541
xor eax, eax
pop esi
add esp, 0x210
ret
mov ecx, dword [esp + 0x224]
test ecx, ecx
je 0x10001565
mov eax, dword [esp + 4]
push ecx
push eax
mov edx, dword [eax]
call dword [edx + 0x2c]
test eax, eax
jge 0x10001565
xor eax, eax
pop esi
add esp, 0x210
ret
mov eax, dword [esp + 4]
mov edx, dword [esp + 0x220]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
test eax, eax
jge 0x10001585
xor eax, eax
pop esi
add esp, 0x210
ret
mov ecx, dword [esp + 0x21c]
lea eax, [esp + 0xc]
push 0x104
push eax
push 0xffffffffffffffff
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [esp + 8]
lea ecx, [esp + 0xc]
push 1
push ecx
mov edx, dword [eax]
push eax
call dword [edx + 0x18]
mov esi, eax
test esi, esi
jge 0x100015c4
xor eax, eax
pop esi
add esp, 0x210
ret
mov eax, dword [esp + 8]
push eax
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [esp + 4]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, esi
pop esi
add esp, 0x210
ret
Function at 0x100015f0
Capabilities:
Delete file
Get common file path

Disassembly:
sub esp, 0x208
mov ecx, 0x41
xor eax, eax
xor edx, edx
push edi
lea edi, [esp + 4]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x21c]
test eax, eax
jne 0x1000161a
push eax
push eax
lea eax, [esp + 0xc]
push eax
jmp 0x1000162c
cmp eax, 1
jne 0x100016fa
push 0
lea ecx, [esp + 8]
push 0x19
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
mov edx, eax
cmp edx, 1
jne 0x100016fa
mov edi, 0x10007414
or ecx, 0xffffffff
xor eax, eax
push ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push esi
lea edx, [esp + 0xc]
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
lea edx, [esp + 0xc]
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x21c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x220]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop esi
pop ebx
test eax, eax
jne 0x100016bd
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop edi
add esp, 0x208
ret
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x108]
lea edx, [esp + 0x108]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x220]
lea eax, [esp + 4]
push ecx
mov ecx, dword [esp + 0x214]
push edx
push eax
push ecx
call fcn.100014c0
add esp, 0x10
pop edi
add esp, 0x208
ret
mov eax, edx
pop edi
add esp, 0x208
ret
Function at 0x10001710
Capabilities:
Create directory
Delete directory
Delete file
Get common file path

Disassembly:
sub esp, 0x30c
mov ecx, 0x41
xor eax, eax
xor edx, edx
push edi
lea edi, [esp + 4]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x324]
test eax, eax
jne 0x1000173b
push eax
lea eax, [esp + 8]
push 2
push eax
jmp 0x1000174d
cmp eax, 1
jne 0x100018cc
push 0
lea ecx, [esp + 8]
push 0x17
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
mov edx, eax
cmp edx, 1
jne 0x100018cc
mov edi, 0x10007414
or ecx, 0xffffffff
xor eax, eax
push ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push esi
lea edx, [esp + 0xc]
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
lea edx, [esp + 0xc]
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
push eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x320]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x10]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x110]
lea edx, [esp + 0x110]
rep stosd dword es:[edi], eax
lea edi, [esp + 0xc]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0xc]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x10007414
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0xc]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x324]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x328]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop esi
pop ebx
test eax, eax
jne 0x1000188f
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x108]
push ecx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov eax, 1
pop edi
add esp, 0x30c
ret
mov edx, dword [esp + 0x328]
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x20c]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x20c]
push edx
mov edx, dword [esp + 0x31c]
lea ecx, [esp + 8]
push eax
push ecx
push edx
call fcn.100014c0
add esp, 0x10
pop edi
add esp, 0x30c
ret
mov eax, edx
pop edi
add esp, 0x30c
ret
Function at 0x100019f0
Capabilities:
Create directory
Delete directory
Delete file
Get common file path

Disassembly:
sub esp, 0x30c
mov ecx, 0x41
xor eax, eax
xor edx, edx
push edi
lea edi, [esp + 4]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x324]
test eax, eax
jne 0x10001a1b
push eax
lea eax, [esp + 8]
push 2
push eax
jmp 0x10001a2d
cmp eax, 1
jne 0x10001ba7
push 0
lea ecx, [esp + 8]
push 0x17
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
mov edx, eax
cmp edx, 1
jne 0x10001ba7
mov edi, 0x10007414
or ecx, 0xffffffff
xor eax, eax
push ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push esi
lea edx, [esp + 0xc]
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
lea edx, [esp + 0xc]
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
push eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x320]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x10]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x110]
lea edx, [esp + 0x110]
rep stosd dword es:[edi], eax
lea edi, [esp + 0xc]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0xc]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x10007414
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0xc]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x324]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x328]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop esi
pop ebx
test eax, eax
jne 0x10001b6f
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x108]
push ecx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov eax, 1
pop edi
add esp, 0x30c
ret
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x20c]
push 0xffffffffffffffff
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x31c]
push eax
lea edx, [esp + 0x214]
lea eax, [esp + 0xc]
push edx
push eax
push ecx
call fcn.100018e0
add esp, 0x14
pop edi
add esp, 0x30c
ret
mov eax, edx
pop edi
add esp, 0x30c
ret
Function at 0x10001bc0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
lea eax, [esp]
mov dword [esp + 4], 0x1e
push eax
push 1
push 0
push str.SOFTWARECNNICCdnClientCommon
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10001c1c
mov edx, dword [esp + 0xc]
lea ecx, [esp + 4]
push ecx
push edx
push eax
push eax
mov eax, dword [esp + 0x10]
push str.Version
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x10001c1c
mov ecx, dword [esp]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
add esp, 8
ret
xor eax, eax
add esp, 8
ret
Function at 0x10001eb0
Capabilities:
Delete registry key

Disassembly:
push ecx
lea eax, [esp]
push eax
push 0xf003f
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionUninstallCdnClient
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10001ef3
push str.SoftwareMicrosoftWindowsCurrentVersionUninstallCdnClient
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov ecx, dword [esp]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
pop ecx
ret
xor eax, eax
pop ecx
ret