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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2014
call fcn.0041ebc0
push ebx
push esi
lea eax, [ebp - 0x2014]
push edi
mov esi, ecx
push eax
mov dword [ebp - 0x14], esi
call fcn.0040e549
xor edi, edi
cmp eax, edi
jl 0x40ef64
lea eax, [ebp - 0xa]
push eax
lea eax, [ebp - 0x2014]
push eax
call fcn.0040ef71
pop ecx
test eax, eax
pop ecx
jne 0x40edf7
mov eax, 0x80020009
jmp 0x40ef64
mov ecx, esi
call fcn.0040e521
lea eax, [ebp - 0x1014]
mov ecx, esi
push eax
call fcn.0040e549
cmp eax, edi
jl 0x40ef64
movzx eax, word [ebp - 0xa]
sub eax, 8
je 0x40ef2c
sub eax, 9
je 0x40ee91
dec eax
dec eax
jne 0x40ef53
lea eax, [ebp - 0x1014]
test eax, eax
jne 0x40ee3c
xor ebx, ebx
jmp 0x40ee71
lea eax, [ebp - 0x1014]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi]
add eax, 3
and al, 0xfc
call fcn.0041ebc0
mov ebx, esp
push esi
push ebx
lea eax, [ebp - 0x1014]
push 0xffffffffffffffff
push eax
push edi
push edi
mov word [ebx], di
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea eax, [ebp - 0x10]
push eax
push edi
push edi
push ebx
call dword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
mov eax, dword [ebp - 0x10]
push 4
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push 4
jmp 0x40ef44
lea eax, [ebp - 0x1014]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test al, 1
mov dword [ebp - 8], eax
jne 0x40eecd
cdq
sub eax, edx
mov ebx, eax
sar ebx, 1
mov eax, ebx
add eax, 3
and al, 0xfc
call fcn.0041ebc0
mov dword [ebp - 4], esp
push ebx
push edi
push dword [ebp - 4]
call fcn.0041f450
add esp, 0xc
cmp dword [ebp - 4], edi
jne 0x40eed7
mov eax, 0x80004005
jmp 0x40ef64
cmp dword [ebp - 8], 0
jle 0x40ef11
mov ecx, dword [ebp - 4]
mov eax, edi
cdq
sub eax, edx
sar eax, 1
lea esi, [eax + ecx]
mov al, byte [ebp + edi - 0x1014]
push eax
call fcn.0040eff8
pop ecx
mov ecx, edi
push 4
and ecx, 1
shl ecx, 2
mov edx, ecx
pop ecx
sub ecx, edx
shl al, cl
or byte [esi], al
inc edi
cmp edi, dword [ebp - 8]
jl 0x40eedd
mov eax, dword [ebp + 8]
push ebx
push dword [ebp - 4]
mov eax, dword [eax]
push 3
push 0
push dword [ebp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
xor edi, edi
jmp 0x40ef53
lea eax, [ebp - 0x1014]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
lea eax, [ebp - 0x1014]
push eax
push 1
mov eax, dword [ebp + 8]
push edi
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp + 0x10]
mov ecx, dword [ebp - 0x14]
call fcn.0040e549
cmp eax, edi
jl 0x40ef64
xor eax, eax
lea esp, [ebp - 0x2020]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x4118a2
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x428985
call fcn.0041eb94
sub esp, 0x130
and byte [ebp - 0x13c], 0
push ebx
push esi
push edi
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x13b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x14]
xor esi, esi
push eax
push str.SOFTWAREMicrosoftWindowsCurrentVersion
push 0x80000002
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x14], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
push 1
test eax, eax
pop ebx
jne 0x411925
cmp dword [ebp + 0xc], ebx
mov dword [ebp - 0x18], 0x104
mov eax, str.CommonFilesDir
je 0x411905
mov eax, str.ProgramFilesDir
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x13c]
push ecx
push esi
push esi
push eax
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [ebp - 0x13c], 0
lea eax, [ebp - 0x13c]
push eax
je 0x41195a
lea ecx, [ebp - 0x28]
call fcn.0040c6d4
mov esi, 0x42a4dc
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x28], esi
push 0x4331e8
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], ebx
call fcn.004119c2
jmp 0x411976
lea ecx, [ebp - 0x38]
call fcn.0040c6d4
push 2
mov esi, 0x42a4dc
pop ecx
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x10], ecx
lea eax, [ebp - 0x38]
mov dword [ebp - 4], ecx
mov edi, dword [ebp + 8]
push eax
mov ecx, edi
call fcn.0040c6fb
or dword [ebp - 0x10], 4
mov dword [edi], esi
test byte [ebp - 0x10], 2
mov dword [ebp - 4], ebx
je 0x41199c
and dword [ebp - 0x10], 0xfffffffd
lea ecx, [ebp - 0x38]
call fcn.0040c731
and dword [ebp - 4], 0
test byte [ebp - 0x10], bl
je 0x4119b1
and dword [ebp - 0x10], 0xfffffffe
lea ecx, [ebp - 0x28]
call fcn.0040c731
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov ecx, dword [ebp + 8]
call fcn.00413045
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x411c7e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x411c7a
cmp eax, 3
je 0x411c7a
push 1
push eax
push dword [ebp + 8]
lea ecx, [ebp - 0x48]
call fcn.00411dc4
lea eax, [ebp - 0x48]
push 0x42e618
push eax
call fcn.0041f184
xor al, al
leave
ret
test byte [ebp + 0xc], 4
je 0x411c88
test al, 0x10
je 0x411c92
test byte [ebp + 0xc], 8
je 0x411c97
test al, 0x10
je 0x411c97
push 1
pop eax
leave
ret
xor eax, eax
leave
ret
Function at 0x412081
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x428abc
call fcn.0041eb94
sub esp, 0x134
push ebx
push esi
xor ebx, ebx
push edi
mov edi, ecx
mov dword [ebp - 0x10], ebx
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], ebx
call fcn.004030c4
mov esi, 0x42a3b8
mov dword [ebp - 0x1c], esi
mov dword [ebp - 4], 1
mov dword [ebp - 0x30], ebx
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 2
call fcn.004030c4
mov dword [ebp - 0x3c], esi
mov eax, dword [0x434e60]
push 0x70
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 3
push dword [eax + 8]
call fcn.00401316
push 0x20019
mov ecx, edi
call fcn.00411ae1
lea eax, [edi + 0x14]
lea ecx, [ebp - 0x2c]
push eax
call fcn.00408837
mov esi, dword [ebp + 8]
mov byte [ebp - 4], 4
mov eax, dword [esi + 0xc]
cmp eax, ebx
mov ebx, dword [sym.imp.OLEAUT32.dll_VariantInit]
je 0x41213c
push eax
call ebx
test eax, eax
je 0x41213c
xor eax, eax
cmp dword [ebp - 0x30], eax
je 0x41211c
push dword [ebp - 0x30]
call ebx
push 0
push eax
push dword [ebp - 0x30]
mov ecx, esi
call fcn.0040a3cc
cmp eax, dword [0x42a4d4]
jne 0x41213c
push esi
lea ecx, [ebp - 0x2c]
call fcn.00412d6b
jmp 0x412149
push str.update
lea ecx, [ebp - 0x2c]
call fcn.0040f8f5
push str..ini
lea ecx, [ebp - 0x2c]
call fcn.0040f8f5
mov eax, dword [edi + 0x10]
test eax, eax
je 0x41216b
push eax
call ebx
test eax, eax
je 0x41216b
push 0x43329c
jmp 0x412170
push str.Main
lea ecx, [ebp - 0x1c]
call fcn.004088ab
push esi
mov ecx, edi
call fcn.004127e1
test al, al
jne 0x412190
and dword [ebp + 8], 0
lea ecx, [ebp + 8]
call fcn.004093cd
mov edi, dword [edi + 0x10]
test edi, edi
je 0x4121a5
push edi
call ebx
test eax, eax
je 0x4121a5
push 0x43329c
jmp 0x4121aa
push str.Main
lea ecx, [ebp - 0x1c]
call fcn.004088ab
lea ecx, [ebp - 0x2c]
call fcn.0040cb2c
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp - 0x28]
mov ecx, edi
call fcn.0040cb2c
mov edi, dword [edi + 4]
lea ecx, [ebp - 0x1c]
call fcn.0040cb2c
push esi
lea eax, [ebp - 0x140]
push 0x104
push eax
push 0x434e80
push edi
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
jne 0x412204
mov esi, dword [ebp + 0x10]
push dword [esi + 0xc]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
and dword [esi + 0xc], 0
jmp 0x412213
mov ecx, dword [ebp + 0x10]
lea eax, [ebp - 0x140]
push eax
call fcn.004088ab
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 3
call fcn.0040886d
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 1
call fcn.0040886d
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.0040886d
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0xc
Function at 0x41340b
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, 0x428c73
call fcn.0041eb94
sub esp, 0xf0
and dword [ebp - 0x10], 0
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x8c]
push eax
mov ecx, edi
call 0x413571
mov eax, dword [eax + 0xc]
mov esi, dword [ebp + 0x14]
and dword [ebp - 4], 0
push 1
cmp esi, eax
pop ebx
ja 0x413458
lea eax, [ebp - 0xb4]
mov ecx, edi
push eax
call 0x413571
mov esi, dword [eax + 0xc]
mov dword [ebp - 0x10], ebx
test byte [ebp - 0x10], bl
je 0x413468
lea ecx, [ebp - 0xb4]
call fcn.00411ba6
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x8c]
call fcn.00411ba6
inc esi
push ebx
lea eax, [ebp - 0x10]
push esi
lea ecx, [edi + 4]
push eax
mov dword [ebp - 0x10], 0x5c
call fcn.00413a2f
cmp eax, 0xffffffff
je 0x413526
mov edi, 0x42ab58
mov esi, 0x42ab50
lea ecx, [ebp + 0x17]
inc eax
push 0
push ecx
push eax
push 0
push dword [ebp + 8]
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x14], eax
call fcn.00413736
lea ecx, [ebp - 0x3c]
mov dword [ebp - 4], ebx
call fcn.00413045
push eax
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4134eb
test al, 0x10
je 0x4134eb
cmp dword [ebp + 0x10], 0
je 0x4134f7
push dword [ebp - 0x10]
call dword [ebp + 0x10]
pop ecx
jmp 0x4134f7
push 0
push dword [ebp - 0x10]
call dword [ebp + 0xc]
test eax, eax
je 0x413535
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.00411ba6
push ebx
lea eax, [ebp - 0x10]
push dword [ebp - 0x14]
mov dword [ebp - 0x10], 0x5c
push eax
mov eax, dword [ebp + 8]
lea ecx, [eax + 4]
call fcn.00413a2f
cmp eax, 0xffffffff
jne 0x4134a0
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
lea eax, [ebp + 0xb]
push 0
push eax
lea ecx, [ebp - 0x64]
push dword [ebp - 0x10]
mov dword [ebp - 0x64], edi
mov dword [ebp - 0x44], esi
call fcn.004137c9
lea eax, [ebp - 0x64]
push ebx
push eax
lea ecx, [ebp - 0xfc]
mov byte [ebp - 4], 2
call fcn.00413671
lea eax, [ebp - 0xfc]
push 0x42e618
push eax
call fcn.0041f184
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
mov edi, ecx
mov dword [ebp - 4], ebx
call fcn.0041361e
test al, al
je 0x4135c6
mov esi, 0x432dac
lea ebx, [edi + 4]
push esi
call fcn.0041f8ec
pop ecx
push eax
push 2
push esi
mov ecx, ebx
call fcn.00413af6
mov ebx, eax
cmp ebx, dword [0x42ab78]
je 0x4135c1
push esi
call fcn.0041f8ec
pop ecx
inc ebx
push eax
push ebx
push esi
lea ecx, [edi + 4]
call fcn.00413af6
mov ebx, eax
push ebx
push 0
jmp 0x41360a
mov ecx, edi
call fcn.0041364f
test al, al
je 0x4135eb
mov esi, 0x432dac
push esi
call fcn.0041f8ec
pop ecx
push eax
push 7
push esi
lea ecx, [edi + 4]
call fcn.00413af6
jmp 0x413608
mov eax, dword [edi + 8]
cmp eax, ebx
jne 0x4135f7
mov eax, 0x42ab8c
mov ax, word [eax + 2]
sub ax, 0x3a
neg ax
sbb eax, eax
and al, 0xfe
inc eax
inc eax
push eax
push ebx
push dword [ebp + 8]
mov ecx, edi
call fcn.00413974
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x414778
Capabilities:
Get common file path

Disassembly:
mov eax, 0x428eb5
call fcn.0041eb94
sub esp, 0x128
and byte [ebp - 0x134], 0
push ebx
push edi
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x133]
and dword [ebp - 0x10], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x134]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
cmp byte [ebp - 0x134], 0
push 1
pop ebx
lea eax, [ebp - 0x134]
push eax
je 0x4147ee
lea ecx, [ebp - 0x30]
call fcn.0040c6d4
mov dword [ebp - 0x30], 0x42a4dc
mov dword [ebp - 0x10], ebx
push 0x4331e8
lea ecx, [ebp - 0x30]
mov dword [ebp - 4], ebx
call fcn.004119c2
jmp 0x414809
lea ecx, [ebp - 0x20]
call fcn.0040c6d4
push 2
mov dword [ebp - 0x20], 0x42a4dc
pop ecx
mov dword [ebp - 0x10], ecx
lea eax, [ebp - 0x20]
mov dword [ebp - 4], ecx
mov edi, dword [ebp + 8]
push eax
mov ecx, edi
call fcn.0040c6fb
or dword [ebp - 0x10], 4
mov dword [edi], 0x42a4dc
test byte [ebp - 0x10], 2
mov dword [ebp - 4], ebx
je 0x414833
and dword [ebp - 0x10], 0xfffffffd
lea ecx, [ebp - 0x20]
call fcn.0040c731
and dword [ebp - 4], 0
test byte [ebp - 0x10], bl
je 0x414848
and dword [ebp - 0x10], 0xfffffffe
lea ecx, [ebp - 0x30]
call fcn.0040c731
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x418117
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x4293cf
call fcn.0041eb94
sub esp, 0x38
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x34], 0x42a3b8
cmp dword [ecx], edi
mov dword [ebp - 4], 1
je 0x418252
mov esi, dword [ebp + 0xc]
mov ebx, 0x200
mov ecx, esi
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], edi
call fcn.0040cb2c
mov ecx, dword [ebp - 0x18]
mov eax, dword [esi + 4]
lea edx, [ebp - 0x14]
mov ecx, dword [ecx]
push edx
lea edx, [ebp - 0x10]
push edi
push edx
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push eax
push ecx
call edi
cmp dword [ebp - 0x10], 1
je 0x41820a
cmp dword [ebp - 0x10], 7
je 0x41820a
cmp dword [ebp - 0x10], 2
je 0x41820a
xor ebx, ebx
mov ecx, esi
mov dword [ebp + 0xc], ebx
call fcn.0040cb2c
mov esi, dword [esi + 4]
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x18]
push ebx
push esi
push dword [eax]
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], 4
call edi
cmp eax, ebx
jne 0x418252
mov eax, dword [ebp + 0xc]
push 8
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x44]
push ebx
push eax
lea eax, [ebp - 0x44]
mov word [ebp - 0x44], 3
push eax
call dword [sym.imp.OLEAUT32.dll_VariantTimeToDosDateTime]
push dword [ebp - 0x28]
mov esi, dword [ebp - 0x3c]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
push esi
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
jmp 0x418252
mov ecx, esi
mov dword [ebp - 0x14], ebx
call fcn.0040cb2c
mov esi, dword [esi + 4]
lea eax, [ebp - 0x44]
push ebx
push eax
lea ecx, [ebp - 0x34]
call fcn.0040b14b
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.0040b24e
lea ecx, [ebp - 0x14]
and dword [ebp + 0xc], 0
push ecx
push eax
lea eax, [ebp + 0xc]
push eax
mov eax, dword [ebp - 0x18]
push 0
push esi
push dword [eax]
call edi
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 1
call fcn.0040b227
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x34]
push eax
call fcn.00408837
mov dword [ebp - 0x24], 1
and byte [ebp - 4], 0
lea ecx, [ebp - 0x34]
call fcn.0040886d
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8
Function at 0x418773
Capabilities:
Check for peb ntglobalflag flag

Disassembly:
mov eax, 0x4294b8
call fcn.0041eb94
sub esp, 0x44
push ebx
push esi
mov esi, ecx
lea ecx, [ebp - 0x50]
call fcn.0041176a
xor ebx, ebx
mov dword [ebp - 0x1c], 0x42a3b8
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
lea eax, [esi + 0x10]
mov ecx, esi
push eax
mov al, byte [esi + 0x68]
push eax
push 0x67
mov byte [ebp - 4], 1
call fcn.00418c7c
lea eax, [esi + 0x54]
mov ecx, esi
push eax
mov al, byte [esi + 0x6a]
push eax
push 0x69
call fcn.00418cfd
lea eax, [esi + 0x50]
mov ecx, esi
push eax
mov al, byte [esi + 0x69]
push eax
push 0x68
call fcn.00418cfd
lea eax, [esi + 0x60]
mov ecx, esi
push eax
mov al, byte [esi + 0x6b]
push eax
push 0x6a
call fcn.00418d80
lea eax, [esi + 0x30]
mov ecx, esi
push eax
mov al, byte [esi + 0x6c]
push eax
push 0x6e
call fcn.00418c7c
lea eax, [esi + 0x58]
mov ecx, esi
push eax
mov al, byte [esi + 0x6d]
push eax
push 0x6f
call fcn.00418cfd
lea eax, [esi + 0x70]
mov ecx, esi
push eax
mov al, byte [esi + 0x6e]
push eax
push 0x75
call fcn.00418cfd
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], bl
call fcn.0040886d
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x50]
call fcn.00411a96
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x4193a2
Capabilities:
Delete file

Disassembly:
mov dword [ecx], 0x42adc0
jmp fcn.00419431

Function at 0x419431
Capabilities:
Delete file

Disassembly:
mov eax, 0x4296ed
call fcn.0041eb94
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
mov dword [esi], 0x42adcc
mov eax, dword [esi + 0x10]
mov dword [ebp - 4], 2
test eax, eax
je 0x41948a
push eax
call dword [sym.imp.OLEAUT32.dll_VariantInit]
test eax, eax
je 0x41948a
xor ebx, ebx
lea edi, [esi + 4]
mov ecx, edi
call fcn.0040cb2c
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x41948a
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
inc ebx
cmp ebx, 0x64
jl 0x419468
lea ecx, [esi + 0x24]
mov byte [ebp - 4], 1
call fcn.0040886d
and byte [ebp - 4], 0
lea ecx, [esi + 0x14]
call fcn.0040886d
or dword [ebp - 4], 0xffffffff
lea ecx, [esi + 4]
call fcn.0040886d
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x419a2c
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x42980e
call fcn.0041eb94
sub esp, 0x94
push ebx
push esi
xor esi, esi
push edi
mov edi, ecx
mov dword [ebp - 0x10], esi
lea eax, [ebp - 0x14]
mov dword [ebp - 4], esi
push eax
push 0xf003f
push esi
push str.SOFTWAREInstallShieldUpdate_Service
push 0x80000001
mov dword [ebp - 0x14], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, esi
jne 0x419a78
lea ecx, [ebp - 0x10]
call fcn.00405fbf
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x2c], 0x42a3b8
mov eax, 0x104
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0x3c]
mov byte [ebp - 4], 1
push eax
call fcn.0040b14b
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.0040b24e
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x1c], esi
push ecx
push eax
lea eax, [ebp - 0x1c]
push eax
push esi
push str.HttpLogFile
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, esi
lea ecx, [ebp - 0x3c]
sete bl
mov byte [ebp - 4], 1
call fcn.0040b227
test bl, bl
je 0x419b9e
lea ecx, [ebp - 0xa0]
call fcn.00419bc7
lea eax, [ebp - 0x15]
push esi
push eax
lea ecx, [ebp - 0x64]
push dword [ebp - 0x20]
mov byte [ebp - 4], 3
mov dword [ebp - 0x64], 0x42ab58
mov dword [ebp - 0x44], 0x42ab50
call fcn.00412f0d
push esi
push esi
push 2
push 0x80
push 1
lea eax, [ebp - 0x64]
push 0x40000000
push eax
lea ecx, [ebp - 0xa0]
mov byte [ebp - 4], 4
call fcn.00419c6b
mov ebx, eax
lea ecx, [ebp - 0x64]
neg ebx
sbb bl, bl
mov byte [ebp - 4], 3
inc bl
call fcn.00411ba6
test bl, bl
je 0x419b76
mov eax, dword [edi + 0x20]
cmp eax, esi
jne 0x419b53
xor ebx, ebx
jmp 0x419b5c
push eax
call dword [sym.imp.OLEAUT32.dll_VariantInit]
mov ebx, eax
add edi, 0x14
mov ecx, edi
call fcn.0040cb2c
mov edi, dword [edi + 4]
push ebx
push edi
lea ecx, [ebp - 0xa0]
call fcn.0041a6eb
mov dword [ebp - 0xa0], 0x42add8
lea ecx, [ebp - 0xa0]
mov byte [ebp - 4], 5
call fcn.00419d5e
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 1
call fcn.00411ba6
and byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.0040886d
cmp dword [ebp - 0x10], esi
pop edi
pop esi
pop ebx
je 0x419bbb
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret

Function at 0x41a6eb
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
cmp dword [ebp + 0xc], 0xffffffff
push esi
mov esi, ecx
jne 0x41a701
mov dword [ebp + 0xc], 1
lea eax, [ebp + 0xc]
push 0
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x41a736
add esi, 0xc
push 1
push esi
lea ecx, [ebp - 0x48]
call fcn.00413671
lea eax, [ebp - 0x48]
push 0x42e618
push eax
call fcn.0041f184
mov eax, dword [ebp + 0xc]
pop esi
leave
ret 8

Function at 0x41a79e
Capabilities:
Delete file

Disassembly:
mov dword [ecx], 0x42adf4
jmp fcn.00419431
Function at 0x41a9d4
Capabilities:
Create thread

Disassembly:
mov eax, 0x4299d8
call fcn.0041eb94
sub esp, 0x18
push ebx
xor ebx, ebx
cmp byte [0x434fcb], bl
push esi
mov esi, ecx
je 0x41a9f3
push 7
jmp 0x41aa4b
cmp byte [0x434fc8], bl
jne 0x41a9ff
xor eax, eax
jmp 0x41aa69
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea eax, [ebp - 0x24]
mov dword [ebp - 4], ebx
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [ebp - 0x24]
mov byte [0x434fcb], 1
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp byte [ebp + 8], bl
je 0x41aa4e
lea eax, [ebp + 8]
push eax
push ebx
push esi
push 0x41b23c
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
push 6
pop eax
jmp 0x41aa69
mov ecx, esi
call fcn.0041ac34
mov esi, eax
lea eax, [ebp - 0x24]
push eax
mov byte [0x434fcb], bl
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4

Function at 0x41aa79
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
xor ebx, ebx
cmp byte [0x434fcc], bl
jne 0x41ab06
push 0xf003f
push str.SoftwareInstallShieldUpdate_Service
push 0x80000001
lea ecx, [ebp - 4]
mov byte [0x434fc8], 1
mov byte [0x434fcc], 1
mov dword [ebp - 4], ebx
call fcn.004061a4
test eax, eax
jne 0x41aaf8
lea eax, [ebp - 8]
mov dword [ebp - 8], 0xa
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0xc]
push eax
push ebx
push str.AllowSelfUpdate
mov dword [ebp - 0xc], ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x41aaf8
lea eax, [ebp - 0x18]
push 0x433848
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x41aaf8
mov byte [0x434fc8], bl
cmp dword [ebp - 4], ebx
je 0x41ab06
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
leave
ret
Function at 0x41c8b7
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x838
push ebx
push edi
mov edi, ecx
mov dword [ebp - 0x10], 1
call fcn.0041c9f6
xor ebx, ebx
mov dword [ebp - 0x14], eax
cmp eax, ebx
je 0x41c96b
lea eax, [ebp - 4]
mov dword [ebp - 4], ebx
push eax
push str.SoftwareMicrosoftWindowsCurrentVersionInternet_Settings
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x41c95d
lea eax, [ebp - 8]
push esi
push eax
lea eax, [ebp - 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push eax
push ebx
push ebx
push str.ProxyEnable
mov dword [ebp - 8], 4
push dword [ebp - 4]
call esi
test eax, eax
je 0x41c921
mov dword [ebp - 0xc], ebx
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x824
push eax
lea eax, [ebp - 0x838]
push eax
push ebx
push ebx
push str.AutoConfigURL
push dword [ebp - 4]
call esi
test eax, eax
pop esi
je 0x41c94a
mov byte [ebp - 0x838], bl
cmp dword [ebp - 0xc], ebx
jne 0x41c957
cmp byte [ebp - 0x838], bl
je 0x41c95d
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 4], ebx
je 0x41c96b
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp - 0x10]
push dword [ebp + 8]
call fcn.0041c4ff
add esp, 0x14
cmp dword [ebp + 0xc], ebx
mov dword [edi + 4], eax
je 0x41c990
cmp dword [ebp + 0xc], 4
jne 0x41c9aa
cmp dword [ebp - 0x14], ebx
jne 0x41c9aa
cmp word [edi + 0x14], 3
mov ecx, edi
jne 0x41c9a5
call fcn.0041cb6f
jmp 0x41c9aa
call fcn.0041cd9b
xor eax, eax
cmp dword [edi + 4], ebx
pop edi
pop ebx
setne al
leave
ret 0x14