joyce8/EMBER2024-capa huggingface dataset:
Function at 0x411180
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x214
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x11]
mov byte [esp + 0x10], 0
mov byte [esp + 0x114], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x115]
mov dword [esp + 8], 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esp + 0x21c]
lea ecx, [esp + 0x10]
push eax
push str.CLSID_sInprocServer32
push 0x103
push ecx
call sub.MSVCRT.dll__snprintf
add esp, 0x10
lea edx, [esp + 4]
lea eax, [esp + 0x10]
push edx
push eax
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x411201
xor al, al
pop edi
add esp, 0x214
ret
lea ecx, [esp + 8]
lea edx, [esp + 0x114]
push ecx
mov ecx, dword [esp + 8]
lea eax, [esp + 0x10]
push edx
push eax
push 0
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x41123b
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
pop edi
add esp, 0x214
ret
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edi, [esp + 0x114]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
pop edi
cmp ecx, 4
setae al
add esp, 0x214
ret

Function at 0x411310
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x110
lea eax, [esp]
mov ecx, 0x422ca8
push ebx
push eax
xor ebx, ebx
call fcn.00404910
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x411388
push edi
mov ecx, 0x40
lea edi, [esp + 0x15]
mov byte [esp + 0x14], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0xc]
lea edx, [esp + 0x14]
stosb byte es:[edi], al
push ecx
mov ecx, dword [esp + 0x120]
lea eax, [esp + 0x14]
push edx
mov edx, dword [esp + 0x10]
push eax
push ebx
push ecx
push edx
mov dword [esp + 0x24], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
pop edi
jne 0x41137d
mov bl, 1
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop ebx
add esp, 0x110
ret

Function at 0x4113a0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x110
lea eax, [esp]
mov ecx, 0x422c98
push ebx
push eax
xor ebx, ebx
call fcn.00404910
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x411418
push edi
mov ecx, 0x40
lea edi, [esp + 0x15]
mov byte [esp + 0x14], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0xc]
lea edx, [esp + 0x14]
stosb byte es:[edi], al
push ecx
mov ecx, dword [esp + 0x120]
lea eax, [esp + 0x14]
push edx
mov edx, dword [esp + 0x10]
push eax
push ebx
push ecx
push edx
mov dword [esp + 0x24], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
pop edi
jne 0x41140d
mov bl, 1
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop ebx
add esp, 0x110
ret
Function at 0x411ab0
Capabilities:
Delete file

Disassembly:
sub esp, 0x104
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 5]
mov byte [esp + 4], 0
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x420fb4
push 0
stosb byte es:[edi], al
call sub.MSVCRT.dll__tempnam
add esp, 8
push eax
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
lea ecx, [esp + 4]
push ecx
call fcn.00411aa0
add esp, 4
test eax, eax
pop edi
jne 0x411b05
add esp, 0x104
ret
lea edx, [esp]
push esi
push edx
call fcn.004130a0
add esp, 4
mov esi, eax
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, esi
pop esi
add esp, 0x104
ret

Function at 0x411cd0
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x419d8b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x558
push ebp
mov ebp, dword [esp + 0x56c]
lea eax, [esp + 0x10]
push esi
mov esi, dword [esp + 0x574]
push eax
lea ecx, [esp + 0x1c]
push ebp
push ecx
push str.Version
push str.SOFTWARESogouComponentsDOWNLOAD
push 0x80000002
mov dword [esp + 0x2c], esi
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
test eax, eax
jne 0x411d3f
pop esi
mov eax, 1
pop ebp
mov ecx, dword [esp + 0x558]
mov dword fs:[0], ecx
add esp, 0x564
ret
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x21]
mov byte [esp + 0x20], 0
lea edx, [esp + 0x20]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x104
push edx
stosb byte es:[edi], al
call fcn.00411ed0
add esp, 8
lea eax, [esp + 0x20]
push str.DlgHandler.dll
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
lea ecx, [esp + 0x20]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
pop edi
je 0x411e25
lea edx, [esp + 0x1c]
lea ecx, [esp + 0x120]
push edx
call fcn.0040a7f0
lea eax, [esp + 8]
lea ecx, [esp + 0x120]
push eax
mov dword [esp + 0x56c], 0
call fcn.0040a950
mov ecx, dword [esp + 0xe]
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 0xa]
and ecx, 0xffff
push ecx
mov ecx, dword [esp + 0xc]
and edx, 0xffff
and eax, 0xffff
push edx
and ecx, 0xffff
push eax
push ecx
push str._d._d._d._d
push esi
push ebp
call sub.MSVCRT.dll__snprintf
add esp, 0x1c
lea ecx, [esp + 0x120]
mov dword [esp + 0x568], 0xffffffff
call fcn.0040a8a0
pop esi
mov eax, 1
pop ebp
mov ecx, dword [esp + 0x558]
mov dword fs:[0], ecx
add esp, 0x564
ret
mov ecx, dword [esp + 0x560]
pop esi
xor eax, eax
pop ebp
mov dword fs:[0], ecx
add esp, 0x564
ret

Function at 0x411ed0
Capabilities:
Query environment variable

Disassembly:
push esi
mov esi, dword [esp + 8]
push 0x104
push esi
push str.PROGRAMFILES
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov eax, dword [esp + 0xc]
push str.SogouDownLoad
push esi
push str._s_s
push eax
push esi
call sub.MSVCRT.dll__snprintf
add esp, 0x14
mov eax, 1
pop esi
ret
Function at 0x411f70
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword [esp + 8]
push esi
mov esi, dword [esp + 8]
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0xc]
push esi
push edx
push 0x42103c
push str.SOFTWARESogouComponentsDOWNLOAD
push 0x80000002
mov dword [esp + 0x24], eax
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
test eax, eax
jne 0x411fa8
mov eax, 1
pop esi
ret
push str.x400443_18
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
xor eax, eax
pop esi
ret

Function at 0x412120
Capabilities:
Delete service

Disassembly:
push ebx
push esi
xor ebx, ebx
push 0xf003f
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov esi, eax
test esi, esi
je 0x412173
mov eax, dword [esp + 0xc]
push ebp
push edi
push 0x10000
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebp, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edi, eax
test edi, edi
je 0x412169
push edi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
je 0x412166
mov ebx, 1
push edi
call ebp
push esi
call ebp
pop edi
pop ebp
mov eax, ebx
pop esi
pop ebx
ret
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x412180
Capabilities:
Check for time delay via gettickcount
Query service status
Start service

Disassembly:
sub esp, 0x24
push esi
push edi
xor edi, edi
push 0xf003f
push edi
push edi
mov dword [esp + 0x14], edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov esi, eax
test esi, esi
mov dword [esp + 0xc], esi
je 0x4122a7
mov eax, dword [esp + 0x30]
push ebx
push 0xf01ff
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebx, eax
test ebx, ebx
je 0x412280
push edi
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
je 0x412290
lea ecx, [esp + 0x14]
push ecx
push ebx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x412275
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
push ebp
call edi
mov ebp, dword [esp + 0x2c]
mov esi, eax
cmp dword [esp + 0x1c], 2
jne 0x41225f
mov eax, 0xcccccccd
mul dword [esp + 0x30]
shr edx, 3
cmp edx, 0x3e8
jae 0x412218
mov edx, 0x3e8
jmp 0x412225
cmp edx, 0x2710
jbe 0x412225
mov edx, 0x2710
push edx
call dword [sym.imp.KERNEL32.dll_Sleep]
lea edx, [esp + 0x18]
push edx
push ebx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x41225f
cmp dword [esp + 0x2c], ebp
jbe 0x41224c
call edi
mov ebp, dword [esp + 0x2c]
mov esi, eax
jmp 0x412258
call edi
mov ecx, dword [esp + 0x30]
sub eax, esi
cmp eax, ecx
ja 0x41225f
cmp dword [esp + 0x1c], 2
je 0x4121fd
mov eax, dword [esp + 0x1c]
pop ebp
cmp eax, 4
jne 0x412271
mov dword [esp + 0xc], 1
mov esi, dword [esp + 0x10]
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edi, dword [esp + 0xc]
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, edi
pop ebx
pop edi
pop esi
add esp, 0x24
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x420
jne 0x412275
mov dword [esp + 0xc], 1
jmp 0x412275
mov eax, edi
pop edi
pop esi
add esp, 0x24
ret
Function at 0x4122b0
Capabilities:
Stop service

Disassembly:
sub esp, 0x1c
push ebx
push edi
xor ebx, ebx
push 0xf003f
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
je 0x412317
mov eax, dword [esp + 0x28]
push ebp
push esi
push 0x20
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebp, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
test esi, esi
je 0x41230a
lea ecx, [esp + 0x10]
push ecx
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
mov eax, dword [esp + 0x14]
cmp eax, 1
je 0x412302
cmp eax, 3
jne 0x412307
mov ebx, 1
push esi
call ebp
push edi
call ebp
pop esi
pop ebp
mov eax, ebx
pop edi
pop ebx
add esp, 0x1c
ret
mov eax, ebx
pop edi
pop ebx
add esp, 0x1c
ret

Function at 0x412370
Capabilities:
Query service status

Disassembly:
sub esp, 0x1c
push ebx
push esi
xor ebx, ebx
push 0xf003f
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov esi, eax
test esi, esi
je 0x4123db
push ebp
push edi
push 0xf01ff
mov ecx, 0x422e40
call fcn.00404910
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebp, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edi, eax
test edi, edi
je 0x4123ce
lea eax, [esp + 0x10]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x4123cb
cmp dword [esp + 0x14], 4
jne 0x4123cb
mov ebx, 1
push edi
call ebp
push esi
call ebp
pop edi
pop ebp
mov eax, ebx
pop esi
pop ebx
add esp, 0x1c
ret
mov eax, ebx
pop esi
pop ebx
add esp, 0x1c
ret

Function at 0x412520
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
sub esp, 0x2a0
lea eax, [esp + 0x110]
push eax
push 0x101
call sub.WS2_32.dll_WSAStartup
test eax, eax
je 0x412545
xor eax, eax
add esp, 0x2a0
ret
lea ecx, [esp + 0x10]
push pe_nt_image_headers32
push ecx
call sub.WS2_32.dll_gethostname
test eax, eax
je 0x412561
xor eax, eax
add esp, 0x2a0
ret
lea edx, [esp + 0x10]
push edx
call sub.WS2_32.dll_gethostbyname
test eax, eax
jne 0x412576
add esp, 0x2a0
ret
movsx ecx, word [eax + 0xa]
mov eax, dword [eax + 0xc]
push esi
mov edx, ecx
push edi
mov esi, dword [eax]
lea edi, [esp + 0xc]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0xc]
mov ecx, 0x1a
and eax, 0xff
cdq
idiv ecx
mov eax, dword [esp + 0x2ac]
add dl, 0x41
mov byte [eax], dl
mov eax, dword [esp + 0xd]
and eax, 0xff
cdq
idiv ecx
mov eax, dword [esp + 0x2b0]
add dl, 0x41
mov byte [eax], dl
call sub.WS2_32.dll_WSACleanup
pop edi
mov eax, 1
pop esi
add esp, 0x2a0
ret
Function at 0x412680
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov eax, 0x500c
call fcn.00418cf0
push ebx
push ebp
push esi
push edi
mov ecx, 0x9ff
xor eax, eax
lea edi, [esp + 0x1d]
mov byte [esp + 0x1c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x18]
lea ecx, [esp + 0x1c]
push eax
mov eax, dword [str.List]
lea edx, [esp + 0x14]
push ecx
mov ecx, dword [str.SYSTEMCurrentControlSetControlServiceGroupOrder]
push edx
push eax
push ecx
push 0x80000002
mov dword [esp + 0x28], 7
mov dword [esp + 0x30], 0x2800
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
test eax, eax
jne 0x41283f
lea edi, [esp + 0x1c]
or ecx, 0xffffffff
xor edx, edx
lea ebp, [esp + 0x1c]
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x412752
cmp edx, 0xa
jae 0x412752
mov esi, dword [esp + 0x5020]
mov eax, ebp
mov bl, byte [eax]
mov cl, bl
cmp bl, byte [esi]
jne 0x412728
test cl, cl
je 0x412724
mov bl, byte [eax + 1]
mov cl, bl
cmp bl, byte [esi + 1]
jne 0x412728
add eax, 2
add esi, 2
test cl, cl
jne 0x412704
xor eax, eax
jmp 0x41272d
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x41283f
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
inc edx
lea ebp, [ecx + ebp + 1]
or ecx, 0xffffffff
mov edi, ebp
repne scasb al, byte es:[edi]
not ecx
dec ecx
jne 0x4126f6
mov ecx, 0x9ff
xor eax, eax
lea edi, [esp + 0x281d]
mov byte [esp + 0x281c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, dword [esp + 0x5020]
push 0x2800
lea edx, [esp + 0x2820]
push edi
push edx
lea esi, [esp + 0x28]
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
push edi
call ebx
mov ebp, eax
lea eax, [esp + 0x1c]
push eax
inc ebp
call ebx
test eax, eax
je 0x412817
mov dword [esp + 0x14], 0
mov edi, 0x421050
mov ecx, dword [edi]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x4127cf
add edi, 4
cmp edi, 0x421064
jl 0x4127b0
mov edi, dword [esp + 0x14]
jmp 0x4127d4
mov edi, 1
mov edx, dword [esp + 0x5020]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x412809
test edi, edi
jne 0x412809
mov eax, 0x2800
lea ecx, [esp + ebp + 0x281c]
sub eax, ebp
push eax
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
push esi
call ebx
lea ebp, [eax + ebp + 1]
push esi
call ebx
lea esi, [esi + eax + 1]
push esi
call ebx
test eax, eax
jne 0x4127a3
mov eax, dword [esp + 0x10]
mov ecx, dword [str.List]
inc ebp
lea edx, [esp + 0x281c]
push ebp
push edx
mov edx, dword [str.SYSTEMCurrentControlSetControlServiceGroupOrder]
push eax
push ecx
push edx
push 0x80000002
call dword [sym.imp.SHLWAPI.dll_SHSetValueA]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x500c
ret
Function at 0x412850
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov eax, 0x5008
call fcn.00418cf0
push edi
mov ecx, 0x9ff
xor eax, eax
lea edi, [esp + 0xd]
mov byte [esp + 0xc], 0
lea edx, [esp + 4]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
mov eax, dword [str.List]
push ecx
mov ecx, dword [str.SYSTEMCurrentControlSetControlServiceGroupOrder]
push edx
push eax
push ecx
push 0x80000002
mov dword [esp + 0x1c], 7
mov dword [esp + 0x20], 0x2800
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
test eax, eax
jne 0x412981
push ebx
xor ebx, ebx
mov ecx, 0x9ff
lea edi, [esp + 0x2811]
mov byte [esp + 0x2810], bl
lea edx, [esp + 0x10]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push ebp
push edx
lea ebp, [esp + 0x18]
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x412958
push esi
xor edi, edi
mov esi, 0x421050
mov eax, dword [esi]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x412901
add esi, 4
cmp esi, 0x421064
jl 0x4128e6
jmp 0x412906
mov edi, 1
mov ecx, dword [esp + 0x501c]
push ecx
push ebp
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x412943
test edi, edi
jne 0x412943
mov edx, 0x2800
lea eax, [esp + ebx + 0x2818]
sub edx, ebx
push edx
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push ebp
call esi
lea ebx, [ebx + eax + 1]
jmp 0x412949
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push ebp
call esi
lea ebp, [eax + ebp + 1]
push ebp
call esi
test eax, eax
jne 0x4128df
pop esi
mov edx, dword [esp + 0xc]
mov eax, dword [str.List]
inc ebx
lea ecx, [esp + 0x2814]
push ebx
push ecx
mov ecx, dword [str.SYSTEMCurrentControlSetControlServiceGroupOrder]
push edx
push eax
push ecx
push 0x80000002
call dword [sym.imp.SHLWAPI.dll_SHSetValueA]
pop ebp
pop ebx
pop edi
add esp, 0x5008
ret

Function at 0x412ae0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x12c
push esi
push edi
xor dl, dl
mov ecx, 7
xor eax, eax
lea edi, [esp + 0x11]
mov byte [esp + 0x10], dl
mov byte [esp + 0x30], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x31]
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x422de0
mov dword [esp + 0x10], 0x20
mov dword [esp + 0xc], 1
stosb byte es:[edi], al
call fcn.00404910
push eax
lea eax, [esp + 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov esi, dword [esp + 0x138]
push 0x104
lea ecx, [esp + 0x34]
push esi
push ecx
call fcn.00404560
add esp, 0xc
lea edx, [esp + 0xc]
lea eax, [esp + 0x10]
lea ecx, [esp + 8]
push edx
push eax
push ecx
lea edx, [esp + 0x3c]
push str.Group
push edx
push 0x80000002
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
test eax, eax
jne 0x412b8c
lea eax, [esp + 0x10]
push eax
call fcn.00412850
add esp, 4
push esi
call fcn.00412120
add esp, 4
mov eax, 1
pop edi
pop esi
add esp, 0x12c
ret
Function at 0x412c50
Capabilities:
Copy file
Get common file path

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x324
push ebx
xor ebx, ebx
cmp eax, ebx
je 0x412e48
cmp dword [esp + 0x330], ebx
je 0x412e48
cmp dword [esp + 0x334], ebx
je 0x412e48
push ebp
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x231]
mov byte [esp + 0x230], bl
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x234]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendA]
lea ecx, [esp + 0x230]
push str.Drivers
push ecx
call esi
xor edx, edx
lea ecx, [esp + 0x18]
mov dword [esp + 0x11], edx
mov byte [esp + 0x10], bl
mov word [esp + 0x15], dx
call fcn.004194a0
lea eax, [esp + 0x10]
push 6
push eax
lea ecx, [esp + 0x20]
call fcn.004196e0
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcpynA]
test eax, eax
jne 0x412d04
push 7
lea ecx, [esp + 0x14]
push str.123456
push ecx
call ebp
call fcn.00410f40
test al, al
je 0x412d3d
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor edx, edx
and eax, 0xffff
mov dword [esp + 0x10], edx
push eax
push 0x421124
lea eax, [esp + 0x18]
mov word [esp + 0x1c], dx
push 6
push eax
mov byte [esp + 0x26], dl
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0x10
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x29]
mov byte [esp + 0x28], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x230]
push 0x104
lea edx, [esp + 0x2c]
push ecx
push edx
stosb byte es:[edi], al
call ebp
lea eax, [esp + 0x10]
lea ecx, [esp + 0x28]
push eax
push ecx
call esi
push 0x104
lea edx, [esp + 0x2c]
push str..sys
push edx
call fcn.00404560
mov ecx, dword [esp + 0x344]
add esp, 0xc
lea eax, [esp + 0x28]
push ebx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov esi, eax
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x12d]
mov byte [esp + 0x12c], bl
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x422e30
stosb byte es:[edi], al
call fcn.00404910
lea edx, [esp + 0x130]
push eax
push edx
call ebp
lea eax, [esp + 0x10]
push 0x104
lea ecx, [esp + 0x130]
push eax
push ecx
call fcn.00404560
push 0x104
lea edx, [esp + 0x13c]
push str..sys
push edx
call fcn.00404560
add esp, 0x18
cmp esi, ebx
je 0x412e24
push ebx
push ebx
push 3
lea eax, [esp + 0x138]
push 1
lea ecx, [esp + 0x20]
push eax
push ecx
call fcn.00412090
add esp, 0x18
mov esi, eax
mov edx, dword [esp + 0x340]
mov ecx, dword [esp + 0x33c]
lea eax, [esp + 0x10]
push edx
push eax
push ecx
call ebp
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x324
ret
xor eax, eax
pop ebx
add esp, 0x324
ret
Function at 0x413010
Capabilities:
Delete file
Get common file path

Disassembly:
sub esp, 0x104
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 9]
mov byte [esp + 8], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 8]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0x104
lea ecx, [esp + 0xc]
push str.drivers_
push ecx
call fcn.00404560
mov esi, dword [esp + 0x11c]
push 0x104
lea edx, [esp + 0x18]
push esi
push edx
call fcn.00404560
push 0x104
lea eax, [esp + 0x24]
push str..sys
push eax
call fcn.00404560
add esp, 0x24
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push esi
call fcn.00412120
add esp, 4
pop edi
pop esi
add esp, 0x104
ret
Function at 0x413ea0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x314
push ebx
push ebp
push esi
mov esi, dword [esp + 0x324]
xor ebx, ebx
cmp esi, ebx
jne 0x413ec2
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x314
ret
cmp dword [0x423684], ebx
jne 0x413f16
push 5
push 0x41cbd8
push 6
push 0x423654
push 0x2b
call fcn.00416710
push 3
push 0x41cbe0
push 4
push 0x42365c
push 0x14
call fcn.00416710
push 0x22
push 0x41cbe4
push 0x23
push 0x423660
push 0x10
call fcn.00416710
add esp, 0x3c
mov dword [0x423684], 1
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x221]
mov byte [esp + 0x220], bl
mov byte [esp + 0x11c], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x11d]
mov byte [esp + 0x18], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x19]
xor ebp, ebp
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
mov dword [esp + 0x10], 0x104
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0x18]
push ecx
push esi
mov esi, dword [sym.imp.MSVCRT.dll_strncpy]
push eax
mov dword [esp + 0x20], ebx
call esi
add esp, 0xc
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRemoveExtensionA]
mov edi, 0x423660
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x11c]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x423660
push edx
call esi
lea edi, [esp + 0x24]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0x24]
push ecx
lea ecx, [esp + 0x12c]
push eax
push ecx
call dword [sym.imp.MSVCRT.dll_strncat]
add esp, 0x18
lea edx, [esp + 0x10]
lea eax, [esp + 0x220]
lea ecx, [esp + 0x14]
push edx
push eax
push ecx
lea edx, [esp + 0x128]
push 0x423654
push edx
push 0x80000002
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
test eax, eax
pop edi
je 0x414015
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x314
ret
mov esi, 0x42365c
lea eax, [esp + 0x21c]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x414045
cmp cl, bl
je 0x414041
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x414045
add eax, 2
add esi, 2
cmp cl, bl
jne 0x414021
xor eax, eax
jmp 0x41404a
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x414053
mov ebp, 0x10001
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x314
ret