joyce8/EMBER2024-capa huggingface dataset:
Function at 0x459830
Capabilities:
Delete file
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x59ead8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x3c
push ebx
push ebp
mov ebp, ecx
push esi
push edi
xor ebx, ebx
mov edi, dword [ebp + 4]
mov dword [esp + 0x18], ebp
cmp edi, ebx
je 0x459916
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov esi, dword [edi + 8]
mov ecx, dword [esp + 0x18]
push esi
call fcn.00459670
cmp eax, ebx
je 0x45987c
mov dword [eax + 0x404], ebx
push esi
lea eax, [esp + 0x28]
push str.SoftwareDownloadManager_ld
push eax
call fcn.0056b4da
add esp, 0xc
lea ecx, [esp + 0x20]
lea edx, [esp + 0x14]
lea eax, [esp + 0x24]
push ecx
push edx
push ebx
push 0xf003f
push ebx
push 0x660ff8
push ebx
push eax
push reloc.WSOCK32.dll_accept
call ebp
test eax, eax
jne 0x4598df
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x1c]
push 4
push ecx
push 4
push ebx
push str.queueID
push edx
mov dword [esp + 0x34], ebx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [0x661608]
push ecx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x459908
mov edx, dword [0x661608]
push esi
push 0x139b
push 0x111
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, dword [edi]
cmp edi, ebx
jne 0x459865
mov ebp, dword [esp + 0x18]
mov eax, dword [0x65ca8c]
mov dword [esp + 0x10], eax
mov ecx, dword [ebp + 0x64]
mov edx, dword [0x6614c8]
push ecx
push edx
lea eax, [esp + 0x18]
push str._sScheduler_s__ld.dt
push eax
mov dword [esp + 0x64], ebx
call fcn.0057f8fb
mov ecx, dword [esp + 0x20]
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
add esp, 0x10
push ecx
call esi
mov edx, dword [ebp + 0x64]
mov eax, dword [0x6614c8]
push edx
push eax
lea ecx, [esp + 0x18]
push str._sSchedulerq__ld.dt
push ecx
call fcn.0057f8fb
mov edx, dword [esp + 0x20]
add esp, 0x10
push edx
call esi
lea ecx, [esp + 0x10]
mov dword [esp + 0x54], 0xffffffff
call fcn.00586b33
mov ecx, dword [esp + 0x4c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x48
ret

Function at 0x45cb00
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
mov edx, dword [0x6614e8]
lea eax, [esp]
lea ecx, [esp + 4]
push eax
push ecx
push 0
push 0
push str.dPrDtVis
push edx
mov dword [esp + 0x18], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x45cb3c
mov eax, dword [esp + 4]
test eax, eax
setne al
add esp, 8
ret
mov al, 1
add esp, 8
ret

Function at 0x45d900
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [0x661600]
test ecx, ecx
je 0x45d930
mov eax, dword [esi + 0xc]
push eax
call fcn.004eb140
mov ecx, dword [esi + 0xc]
push ecx
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x45d930
mov edx, dword [esi + 0xc]
push 0
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
ret
Function at 0x45f450
Capabilities:
Get geographical location

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
mov esi, dword [esp + 0x1c]
push edi
mov edi, dword [esp + 0x1c]
push 0
push 0x400
push esi
push edi
call fcn.0056c8d0
mov dword [esp + 0x10], eax
mov ecx, esi
cdq
mov ebp, eax
mov eax, edi
sub eax, ebp
push 0
sbb ecx, edx
push 0x400
push ecx
push eax
mov dword [esp + 0x30], edx
call fcn.0056c820
mov ebx, eax
and ebx, 0x800003ff
jns 0x45f4a0
dec ebx
or ebx, 0xfffffc00
inc ebx
mov eax, ebx
mov ecx, edi
shl eax, 0xa
cdq
sub ecx, eax
mov eax, esi
sbb eax, edx
sub ecx, ebp
mov ebp, dword [esp + 0x20]
push 0
sbb eax, ebp
push 0x100000
push eax
push ecx
call fcn.0056c820
mov ebp, eax
and ebp, 0x800003ff
jns 0x45f4d6
dec ebp
or ebp, 0xfffffc00
inc ebp
push 0
push 0x40000000
push esi
push edi
call fcn.0056c820
lea ecx, [esp + 0x1c]
push 3
push ecx
mov esi, eax
push 0xe
push 0x400
mov dword [esp + 0x24], esi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x45f52a
mov edi, 0x639ec4
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x1c]
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]
mov esi, dword [esp + 0x14]
test esi, esi
jne 0x45f5ca
cmp ebp, 0x3e7
jg 0x45f5ca
test ebp, ebp
jne 0x45f5a2
cmp ebx, 0x3e7
jg 0x45f5a2
test ebx, ebx
je 0x45f57a
mov eax, dword [esp + 0x10]
mov ecx, dword [0x661e50]
push ecx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
and edx, 0x3ff
add eax, edx
lea edx, [esp + 0x20]
sar eax, 0xa
push eax
push edx
push ebx
jmp 0x45f5f2
mov ecx, dword [0x661e4c]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x24]
push ecx
push edx
push str._d___s
push eax
call fcn.0056b4da
add esp, 0x10
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 0xc
lea eax, [ebx + ebx*4]
mov ecx, dword [0x661e54]
push ecx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
and edx, 0x3ff
add eax, edx
lea edx, [esp + 0x20]
sar eax, 0xa
push eax
push edx
push ebp
jmp 0x45f5f2
lea ebp, [ebp + ebp*4]
mov ecx, dword [0x661e58]
push ecx
lea eax, [ebp + ebp*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
and edx, 0x3ff
add eax, edx
lea edx, [esp + 0x20]
sar eax, 0xa
push eax
push edx
push esi
mov eax, dword [esp + 0x34]
push str._d_s_03d___s
push eax
call fcn.0056b4da
add esp, 0x18
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 0xc
Function at 0x45f880
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59f080
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
push ebx
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.USER32.dll_GetWindowRect]
lea eax, [ebp - 0x24]
mov ecx, dword [esi + 0xc]
mov dword [ebp - 0x10], esp
push eax
push ecx
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 0
call edi
mov eax, dword [esi + 0x160]
lea edx, [ebp - 0x34]
push edx
push eax
call edi
mov eax, dword [esi + 0x3a8]
push 0x20
test eax, eax
je 0x45f947
mov ecx, dword [0x6614d0]
mov eax, dword [ebp - 0x20]
neg ecx
mov edi, dword [ebp - 0x28]
mov edx, dword [ebp - 0x1c]
sbb ecx, ecx
and ecx, 5
add ecx, 9
sub ecx, eax
add ecx, edi
push ecx
mov ecx, dword [ebp - 0x24]
sub edx, ecx
push edx
push eax
mov eax, dword [esi + 0xc]
push ecx
push 0
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, dword [0x661fb8]
push ecx
lea ecx, [esi + 0x144]
call fcn.00586117
mov edx, dword [esi + 0xc]
push 0
push 0x519
push edx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [esi + 0x3a8]
xor eax, eax
test ecx, ecx
sete al
mov dword [esi + 0x3a8], eax
jmp 0x45f9b4
mov ecx, dword [esi + 0x388]
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x24]
push ecx
mov ecx, dword [ebp - 0x20]
sub edx, eax
push edx
mov edx, dword [esi + 0xc]
push ecx
push eax
push 0
push edx
call dword [sym.imp.USER32.dll_SetWindowPos]
mov eax, dword [0x661fb4]
lea ecx, [esi + 0x144]
push eax
call fcn.00586117
mov ecx, dword [esi + 0xc]
push 5
push 0x519
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [esi + 0x3a8]
mov eax, dword [esi]
xor edx, edx
test ecx, ecx
sete dl
mov dword [esi + 0x3a8], edx
mov ecx, dword [eax + 0x744]
test ecx, ecx
je 0x45f9b4
mov edx, dword [ecx]
call dword [edx]
mov edx, dword [esi + 0x3a8]
mov ecx, esi
test edx, edx
setne al
push eax
call fcn.0045cb50
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x460300
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x59f160
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov cl, byte [esp + 0x14]
mov edx, dword [0x6614e8]
xor eax, eax
push 4
test cl, cl
lea ecx, [esp + 0x18]
push ecx
push 4
push 0
push str.ShowDropTarget
setne al
push edx
mov dword [esp + 0x2c], eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret 4
Function at 0x462ea0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x28
mov eax, dword [esp + 0x30]
push ebx
push esi
push edi
mov edi, dword [esp + 0x38]
push 0
push 0
push 0
mov esi, ecx
push 0
push edi
push eax
push 1
lea ecx, [esi + 0x17c]
call fcn.00580c67
mov ebx, eax
mov eax, dword [esi + 0x1b8]
test eax, eax
je 0x462efc
lea ecx, [esp + 0x38]
lea edx, [esp + 0x3c]
push ecx
push edx
push 0
push 0
push edi
push eax
mov dword [esp + 0x50], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x462efc
cmp dword [esp + 0x3c], 2
je 0x462f24
mov ecx, dword [esi + 0x198]
lea eax, [esp + 0xc]
push eax
push ebx
push 0x102b
push ecx
mov dword [esp + 0x2c], 0xf000
mov dword [esp + 0x28], 0x2000
call dword [sym.imp.USER32.dll_SendMessageA]
pop edi
pop esi
pop ebx
add esp, 0x28
ret 8

Function at 0x462f30
Capabilities:
Set registry value

Disassembly:
sub esp, 8
push ebx
push ebp
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push esi
mov ebx, ecx
push edi
push 0
push 0
mov eax, dword [ebx + 0x15c]
push 0xf0
push eax
call ebp
mov esi, dword [esp + 0x1c]
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea ecx, [esp + 0x10]
push 4
neg eax
push ecx
push 4
sbb eax, eax
push 0
add eax, 2
push str.PanelView
push esi
mov dword [esp + 0x28], eax
call edi
mov edx, dword [ebx + 0x120]
push 0
push 0
push 0xf0
push edx
call ebp
neg eax
sbb eax, eax
push 4
add eax, 2
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
push eax
push 4
push 0
push str.DonlCaptWP
push esi
call edi
or esi, 0xffffffff
mov ecx, dword [ebx + 0x198]
push 0
push esi
push 0x100c
push ecx
call ebp
mov esi, eax
test esi, esi
jl 0x46302c
mov edx, dword [ebx + 0x198]
push 0xf000
push esi
push 0x102c
push edx
call ebp
shr eax, 0xc
dec eax
push 0
neg eax
sbb eax, eax
push esi
add eax, 2
lea ecx, [ebx + 0x17c]
mov dword [esp + 0x18], eax
lea eax, [esp + 0x1c]
push eax
call fcn.00580d8d
mov edx, dword [esp + 0x14]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x463021
lea ecx, [esp + 0x10]
push 4
push ecx
push 4
push eax
push edx
mov edx, dword [esp + 0x30]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea ecx, [esp + 0x14]
call fcn.00586b33
jmp 0x462fac
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 4
Function at 0x464c10
Capabilities:
Move file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x59f7f0
push eax
mov eax, dword [0x6614d0]
mov dword fs:[0], esp
push ebp
push esi
test eax, eax
push edi
je 0x464d48
mov eax, dword [0x661858]
test eax, eax
jne 0x464c60
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
add esp, 0xc
ret
mov eax, dword [0x66184c]
test eax, eax
jne 0x464c7d
call fcn.004646f0
mov dword [0x661848], eax
mov dword [0x66184c], 1
mov eax, dword [0x661848]
test eax, eax
je 0x464ca8
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
add esp, 0xc
ret
mov esi, dword [esp + 0x20]
push esi
call fcn.004647b0
mov edi, dword [esp + 0x20]
add esp, 4
test eax, eax
jne 0x464d06
push esi
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x464cef
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x464d06
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
add esp, 0xc
ret
mov eax, 1
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
add esp, 0xc
ret
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x464d2a
push 5
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
add esp, 0xc
ret
push 0
push esi
push edi
call fcn.00464410
add esp, 0xc
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
add esp, 0xc
ret
mov esi, dword [esp + 0x20]
mov edi, dword [esp + 0x1c]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileW]
mov ebp, eax
test ebp, ebp
jne 0x464e11
mov eax, dword [0x63a28c]
test eax, eax
jne 0x464e11
push edi
lea ecx, [esp + 0x20]
call fcn.00586bf3
push esi
lea ecx, [esp + 0x24]
mov dword [esp + 0x18], ebp
call fcn.00586bf3
mov ecx, dword [esp + 0x1c]
push 0x3f
push ecx
call fcn.0056aa70
add esp, 8
test eax, eax
jne 0x464df2
mov edx, dword [esp + 0x20]
push 0x3f
push edx
call fcn.0056aa70
add esp, 8
test eax, eax
jne 0x464df2
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileA]
lea ecx, [esp + 0x20]
mov esi, eax
mov byte [esp + 0x14], 0
call fcn.00586b33
lea ecx, [esp + 0x1c]
mov dword [esp + 0x14], 0xffffffff
call fcn.00586b33
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
add esp, 0xc
ret
lea ecx, [esp + 0x20]
mov byte [esp + 0x14], 0
call fcn.00586b33
lea ecx, [esp + 0x1c]
mov dword [esp + 0x14], 0xffffffff
call fcn.00586b33
mov ecx, dword [esp + 0xc]
pop edi
mov eax, ebp
pop esi
mov dword fs:[0], ecx
pop ebp
add esp, 0xc
ret
Function at 0x464e30
Capabilities:
Delete file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x59f808
push eax
mov eax, dword [0x6614d0]
mov dword fs:[0], esp
push esi
push edi
test eax, eax
je 0x464f4f
mov eax, dword [0x661858]
test eax, eax
jne 0x464e79
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop edi
pop esi
add esp, 0xc
ret
mov eax, dword [0x66184c]
test eax, eax
jne 0x464e96
call fcn.004646f0
mov dword [0x661848], eax
mov dword [0x66184c], 1
mov eax, dword [0x661848]
test eax, eax
je 0x464ebb
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop edi
pop esi
add esp, 0xc
ret
mov esi, dword [esp + 0x18]
push esi
call fcn.004647b0
add esp, 4
test eax, eax
jne 0x464f12
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x464efc
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x464f12
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop edi
pop esi
add esp, 0xc
ret
mov eax, 1
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop edi
pop esi
add esp, 0xc
ret
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x464f35
push 5
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop edi
pop esi
add esp, 0xc
ret
push esi
call fcn.004644e0
add esp, 4
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop edi
pop esi
add esp, 0xc
ret
mov edi, dword [esp + 0x18]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, eax
test esi, esi
jne 0x464fa4
mov eax, dword [0x63a28c]
test eax, eax
jne 0x464fa4
push edi
lea ecx, [esp + 0x1c]
call fcn.00586bf3
mov edx, dword [esp + 0x18]
push 0x3f
push edx
call fcn.0056aa70
add esp, 8
test eax, eax
jne 0x464f93
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov esi, eax
lea ecx, [esp + 0x18]
mov dword [esp + 0x10], 0xffffffff
call fcn.00586b33
mov ecx, dword [esp + 8]
mov eax, esi
pop edi
mov dword fs:[0], ecx
pop esi
add esp, 0xc
ret
Function at 0x464fc0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x59f828
push eax
mov eax, dword [0x6614d0]
mov dword fs:[0], esp
push esi
push edi
test eax, eax
je 0x465123
mov eax, dword [0x661858]
test eax, eax
jne 0x465013
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop edi
pop esi
add esp, 0xc
ret
mov eax, dword [0x66184c]
test eax, eax
jne 0x465030
call fcn.004646f0
mov dword [0x661848], eax
mov dword [0x66184c], 1
mov eax, dword [0x661848]
test eax, eax
je 0x465040
mov edx, dword [esp + 0x18]
push edx
jmp 0x464ff2
mov esi, dword [esp + 0x18]
push esi
call fcn.004647b0
add esp, 4
test eax, eax
jne 0x465082
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x46509e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x4650e6
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop edi
pop esi
add esp, 0xc
ret
mov eax, dword [0x661738]
test eax, eax
jne 0x465090
mov eax, 0x66173c
push eax
push esi
call fcn.0056cfcc
add esp, 8
test eax, eax
jne 0x4650b4
mov eax, 1
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop edi
pop esi
add esp, 0xc
ret
mov eax, dword [0x661628]
test eax, eax
jne 0x4650c2
mov eax, 0x66162c
push eax
push esi
call fcn.0056cfcc
add esp, 8
test eax, eax
jne 0x4650e6
mov eax, 1
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop edi
pop esi
add esp, 0xc
ret
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x465109
push 5
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop edi
pop esi
add esp, 0xc
ret
push esi
call fcn.00464590
add esp, 4
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop edi
pop esi
add esp, 0xc
ret
mov edi, dword [esp + 0x18]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor edx, edx
cmp eax, 0xffffffff
setne dl
mov esi, edx
test esi, esi
jne 0x465188
mov eax, dword [0x63a28c]
test eax, eax
jne 0x465188
push edi
lea ecx, [esp + 0x1c]
call fcn.00586bf3
mov eax, dword [esp + 0x18]
push 0x3f
push eax
call fcn.0056aa70
add esp, 8
test eax, eax
jne 0x465177
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor edx, edx
cmp eax, 0xffffffff
setne dl
mov esi, edx
lea ecx, [esp + 0x18]
mov dword [esp + 0x10], 0xffffffff
call fcn.00586b33
mov ecx, dword [esp + 8]
mov eax, esi
pop edi
mov dword fs:[0], ecx
pop esi
add esp, 0xc
ret
Function at 0x4651a0
Capabilities:
Create directory

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x59f848
push eax
mov eax, dword [0x6614d0]
mov dword fs:[0], esp
push esi
push edi
test eax, eax
je 0x4652c4
mov eax, dword [0x661858]
test eax, eax
jne 0x4651eb
mov eax, dword [esp + 0x18]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop edi
pop esi
add esp, 0xc
ret
mov eax, dword [0x66184c]
test eax, eax
jne 0x465208
call fcn.004646f0
mov dword [0x661848], eax
mov dword [0x66184c], 1
mov eax, dword [0x661848]
test eax, eax
je 0x46522f
mov ecx, dword [esp + 0x18]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop edi
pop esi
add esp, 0xc
ret
mov esi, dword [esp + 0x18]
push esi
call fcn.004647b0
add esp, 4
test eax, eax
jne 0x465287
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x465271
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x465287
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop edi
pop esi
add esp, 0xc
ret
mov eax, 1
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop edi
pop esi
add esp, 0xc
ret
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x4652aa
push 5
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop edi
pop esi
add esp, 0xc
ret
push esi
call fcn.00464640
add esp, 4
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop edi
pop esi
add esp, 0xc
ret
mov edi, dword [esp + 0x18]
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov esi, eax
test esi, esi
jne 0x46531c
mov eax, dword [0x63a28c]
test eax, eax
jne 0x46531c
push edi
lea ecx, [esp + 0x1c]
call fcn.00586bf3
mov edx, dword [esp + 0x18]
push 0x3f
push edx
call fcn.0056aa70
add esp, 8
test eax, eax
jne 0x46530b
push eax
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov esi, eax
lea ecx, [esp + 0x18]
mov dword [esp + 0x10], 0xffffffff
call fcn.00586b33
mov ecx, dword [esp + 8]
mov eax, esi
pop edi
mov dword fs:[0], ecx
pop esi
add esp, 0xc
ret
Function at 0x466760
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59f950
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x18], esi
mov eax, dword [esi + 4]
mov dword [ebp - 4], 0
test eax, eax
je 0x46679d
push eax
call fcn.00582ef5
add esp, 4
mov ebx, dword [ebp + 8]
or ecx, 0xffffffff
mov edi, ebx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
call fcn.00582ecc
mov edx, eax
add esp, 4
test edx, edx
mov dword [esi + 4], edx
je 0x46685a
mov edi, ebx
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
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push ecx
mov ecx, dword [ebp - 0x18]
push ebx
push 1
push eax
mov edx, dword [ecx + 8]
mov eax, dword [0x6614e8]
push edx
push eax
call esi
lea ecx, [ebp - 0x14]
push 0
push ecx
push 0
push 0xf003f
push 0
push 0x660ff8
push 0
push str.SoftwareDownloadManagerConfigTime
push reloc.WSOCK32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x46685a
lea edx, [ebp + 8]
push edx
call fcn.0056c001
mov ecx, dword [ebp - 0x14]
add esp, 4
lea eax, [ebp + 8]
push 4
push eax
push 4
push 0
push 0x660ff8
push ecx
call esi
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4669c0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59f980
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
push edi
xor esi, esi
mov ebx, ecx
mov dword [ebp - 0x10], esp
mov dword [ebp - 4], esi
call fcn.0042e9c0
mov ecx, dword [0x6614e8]
cmp ecx, esi
je 0x466a60
mov eax, dword [ebx + 8]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea edx, [ebp - 0x14]
push edx
push esi
push esi
push esi
push eax
push ecx
call edi
test eax, eax
jne 0x466a71
mov eax, dword [ebx + 4]
cmp eax, esi
je 0x466a1f
push eax
call fcn.00582ef5
add esp, 4
mov eax, dword [ebp - 0x14]
mov dword [ebx + 4], esi
cmp eax, esi
je 0x466a60
inc eax
push eax
call fcn.00582ecc
add esp, 4
cmp eax, esi
mov dword [ebx + 4], eax
je 0x466a60
mov ecx, dword [ebx + 8]
lea edx, [ebp - 0x14]
push edx
push eax
mov eax, dword [0x6614e8]
push esi
push esi
push ecx
push eax
call edi
test eax, eax
je 0x466a60
mov eax, dword [ebx + 4]
push eax
call fcn.00582ef5
add esp, 4
mov dword [ebx + 4], esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx + 8]
push str.ExceptionServers
push eax
call fcn.0056bf52
add esp, 8
test eax, eax
jne 0x466a60
mov edi, str..update.microsoft.com_download.windowsupdate.com_siteseal.thawte.com_ecom.cimetz.com_.voice2page.com
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
push ecx
call fcn.00582ecc
mov edx, eax
add esp, 4
cmp edx, esi
mov dword [ebx + 4], edx
je 0x466a60
mov edi, str..update.microsoft.com_download.windowsupdate.com_siteseal.thawte.com_ecom.cimetz.com_.voice2page.com
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
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edx, dword [ebx + 4]
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
not ecx
push ecx
mov ecx, dword [ebx + 8]
push edx
mov edx, dword [0x6614e8]
push 1
push eax
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret