joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40da80
Capabilities:
Check if file exists

Disassembly:
sub esp, 0x61c
push ebx
push ebp
push esi
push edi
xor ebx, ebx
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x119]
mov byte [esp + 0x118], bl
mov byte [esp + 0x21c], 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 + 0x21d]
mov esi, dword [esp + 0x630]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x21c]
push 0x104
push eax
push esi
call fcn.004131e0
add esp, 0xc
test eax, eax
je 0x40dc0d
mov ecx, dword [esp + 0x638]
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x11c]
push 0x104
push eax
push esi
mov dword [esp + 0x20], ecx
call fcn.00410570
add esp, 0x10
test eax, eax
je 0x40dc0d
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x15]
mov byte [esp + 0x14], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x14]
push 0x104
push ecx
stosb byte es:[edi], al
call fcn.0040b130
push esi
call fcn.00413190
add esp, 0xc
lea edx, [esp + 0x14]
push eax
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
mov ebp, dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
lea eax, [esp + 0x14]
push eax
call ebp
test eax, eax
je 0x40dbe1
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x425]
mov byte [esp + 0x424], 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 + 0x529]
mov byte [esp + 0x528], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x424]
push 0x104
lea edx, [esp + 0x220]
push ecx
push edx
stosb byte es:[edi], al
call fcn.0040b8f0
lea eax, [esp + 0x534]
push 0x104
lea ecx, [esp + 0x24]
push eax
push ecx
call fcn.0040b8f0
lea edx, [esp + 0x43c]
lea eax, [esp + 0x540]
push edx
push eax
call fcn.0040bb20
add esp, 0x20
test eax, eax
jg 0x40dbf3
lea ecx, [esp + 0x118]
lea edx, [esp + 0x21c]
push ecx
push edx
jmp 0x40dc00
lea eax, [esp + 0x118]
lea ecx, [esp + 0x14]
push eax
push ecx
push esi
call fcn.0040f140
add esp, 0xc
test eax, eax
jne 0x40dc1a
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x61c
ret
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x321]
mov byte [esp + 0x320], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea edx, [esp + 0x320]
push 0x104
push edx
push esi
stosb byte es:[edi], al
call fcn.00413260
add esp, 0xc
lea eax, [esp + 0x320]
push eax
call ebp
test eax, eax
je 0x40dc85
lea ecx, [esp + 0x21c]
lea edx, [esp + 0x320]
push ecx
push edx
call sub.MSVCRT.dll__mbsicmp
add esp, 8
test eax, eax
je 0x40dc85
lea eax, [esp + 0x320]
push ebx
push eax
call fcn.00402400
add esp, 8
lea ecx, [esp + 0x118]
push ecx
push esi
call fcn.00413230
mov eax, dword [esp + 0x63c]
add esp, 8
lea edx, [esp + 0x118]
push 0x104
push edx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x61c
ret
Function at 0x40dd30
Capabilities:
Check if file exists

Disassembly:
sub esp, 0x208
push ebp
push esi
push edi
call fcn.00403a50
test eax, eax
je 0x40de27
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0xd]
mov byte [esp + 0xc], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esp + 0x21c]
test eax, eax
je 0x40dd82
call fcn.004079e0
test al, al
je 0x40dd82
lea eax, [esp + 0xc]
push 2
push eax
push 9
call fcn.0040d9b0
add esp, 0xc
jmp 0x40dd91
lea ecx, [esp + 0xc]
push ecx
push 9
call fcn.0040d8e0
add esp, 8
lea edx, [esp + 0xc]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x40df9f
mov ebp, dword [esp + 0x218]
cmp ebp, 1
jne 0x40ddde
mov esi, 0x420f08
xor edi, edi
call fcn.00403a50
test eax, eax
je 0x40dded
call fcn.0040dfb0
test eax, eax
jne 0x40dfa1
push eax
lea eax, [esp + 0x10]
push esi
push eax
call fcn.00410f50
jmp 0x40df75
cmp ebp, 2
jne 0x40ddf9
mov esi, 0x420f04
mov edi, 0x1388
push edi
lea ecx, [esp + 0x10]
push esi
push ecx
jmp 0x40df70
cmp ebp, 4
jne 0x40de14
mov edi, 0x1388
mov esi, 0x420f00
push edi
lea ecx, [esp + 0x10]
push esi
push ecx
jmp 0x40df70
xor edi, edi
mov esi, 0x422b68
push edi
lea ecx, [esp + 0x10]
push esi
push ecx
jmp 0x40df70
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0xd]
mov byte [esp + 0xc], 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 + 0x111]
mov byte [esp + 0x110], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esp + 0x21c]
test eax, eax
je 0x40de7e
call fcn.004079e0
test al, al
je 0x40de7e
lea edx, [esp + 0xc]
push 4
push edx
push 1
call fcn.0040d9b0
add esp, 0xc
jmp 0x40de8d
lea eax, [esp + 0xc]
push eax
push 1
call fcn.0040d8e0
add esp, 8
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x40df9f
lea edx, [esp + 0xc]
push 0x104
lea eax, [esp + 0x10]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
test eax, eax
je 0x40df9f
mov ebp, dword [esp + 0x218]
cmp ebp, 3
jne 0x40deda
lea ecx, [esp + 0xc]
mov ebp, 1
push ecx
push str._s_Rundll32_R
jmp 0x40df4b
cmp ebp, 1
jne 0x40deeb
lea ecx, [esp + 0xc]
push ecx
push str._s_Rundll32_R
jmp 0x40df4b
cmp ebp, 2
jne 0x40df16
lea eax, [esp + 0xc]
lea ecx, [esp + 0x110]
push eax
push str._s_Rundll32_I
push 0x103
push ecx
call sub.MSVCRT.dll__snprintf
add esp, 0x10
mov eax, 0x1388
jmp 0x40df62
cmp ebp, 4
jne 0x40df41
lea edx, [esp + 0xc]
lea eax, [esp + 0x110]
push edx
push str._s_Rundll32_E
push 0x103
push eax
call sub.MSVCRT.dll__snprintf
add esp, 0x10
mov eax, 0x1388
jmp 0x40df62
lea ecx, [esp + 0xc]
push ecx
push str._s_Rundll32
lea edx, [esp + 0x118]
push 0x103
push edx
call sub.MSVCRT.dll__snprintf
add esp, 0x10
xor eax, eax
push eax
lea eax, [esp + 0x114]
push eax
push str.rundll32.exe
call fcn.004046d0
add esp, 0xc
test eax, eax
jne 0x40dfa1
cmp dword [esp + 0x21c], 1
jne 0x40dfa1
cmp ebp, 3
jne 0x40dfa1
push eax
push ebp
call fcn.0040dd30
add esp, 8
pop edi
pop esi
pop ebp
add esp, 0x208
ret
xor eax, eax
pop edi
pop esi
pop ebp
add esp, 0x208
ret
Function at 0x40f140
Capabilities:
Copy file
Delete file
Move file

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
mov esi, dword [esp + 0x118]
push 0x104
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0xc]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
push 0x104
lea ecx, [esp + 0xc]
push str..tmp
push ecx
call fcn.00404550
mov eax, dword [esp + 0x120]
add esp, 0xc
lea edx, [esp + 8]
push 1
push edx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x40f1ae
pop edi
pop esi
add esp, 0x104
ret
lea ecx, [esp + 8]
push esi
push ecx
call sub.MSVCRT.dll_rename
add esp, 8
test eax, eax
je 0x40f1d6
lea edx, [esp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop edi
xor eax, eax
pop esi
add esp, 0x104
ret
pop edi
mov eax, 1
pop esi
add esp, 0x104
ret
Function at 0x4101b0
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
sub esp, 0x478
push ebx
push ebp
push esi
mov esi, dword [esp + 0x488]
xor ebx, ebx
push edi
cmp esi, ebx
je 0x410375
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
test eax, eax
je 0x410375
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x17d]
mov byte [esp + 0x17c], bl
rep stosd dword es:[edi], eax
mov ebp, dword [sym.imp.SHLWAPI.dll_wnsprintfA]
push esi
stosw word es:[edi], ax
stosb byte es:[edi], al
push str._s
lea eax, [esp + 0x184]
push 0x103
push eax
call ebp
mov ecx, 0x4f
xor eax, eax
lea edi, [esp + 0x50]
mov dword [esp + 0x4c], ebx
rep stosd dword es:[edi], eax
add esp, 0x10
lea ecx, [esp + 0x3c]
lea edx, [esp + 0x17c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0x14], eax
je 0x410375
mov dword [esp + 0x10], ebx
test byte [esp + 0x3c], 0x10
jne 0x4102c2
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x385]
mov byte [esp + 0x384], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x68]
lea ecx, [esp + 0x384]
push eax
push esi
push str._s_s
push 0x103
push ecx
call ebp
add esp, 0x14
mov ecx, 8
xor eax, eax
lea edi, [esp + 0x1c]
mov dword [esp + 0x18], ebx
lea edx, [esp + 0x18]
rep stosd dword es:[edi], eax
push edx
lea eax, [esp + 0x388]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExA]
test eax, eax
je 0x410336
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x10]
add eax, ecx
mov dword [esp + 0x10], eax
jmp 0x410336
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
lea edx, [esp + 0x68]
push 0x420568
push edx
call edi
test eax, eax
je 0x410336
lea eax, [esp + 0x68]
push 0x420564
push eax
call edi
test eax, eax
je 0x410336
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x281]
mov byte [esp + 0x280], bl
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x68]
lea edx, [esp + 0x280]
push ecx
push esi
stosw word es:[edi], ax
push str._s_s
push 0x103
push edx
stosb byte es:[edi], al
call ebp
lea eax, [esp + 0x294]
push eax
call fcn.004101b0
mov ecx, dword [esp + 0x28]
add esp, 0x18
add ecx, eax
mov dword [esp + 0x10], ecx
mov edx, dword [esp + 0x14]
mov ecx, 0x50
xor eax, eax
lea edi, [esp + 0x3c]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x3c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x410247
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x478
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x478
ret

Function at 0x410520
Capabilities:
Check if file exists

Disassembly:
push esi
push edi
push 0
call sub.MSVCRT.dll_time
push eax
call sub.MSVCRT.dll_srand
call sub.MSVCRT.dll_rand
cdq
mov ecx, 9
mov edi, dword [esp + 0x18]
idiv ecx
mov esi, edx
mov edx, dword [esp + 0x1c]
push edx
push edi
push esi
call fcn.00410b30
add esp, 0x14
test eax, eax
jne 0x410558
pop edi
pop esi
ret
mov eax, dword [esp + 0x18]
push edi
mov dword [eax], esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
pop edi
pop esi
ret
Function at 0x410570
Capabilities:
Check if file exists

Disassembly:
sub esp, 0x23c
push ebx
push edi
xor ebx, ebx
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x141]
mov byte [esp + 0x140], bl
mov byte [esp + 0x3c], 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 + 0x3d]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
call fcn.00403a50
test eax, eax
je 0x4105bc
pop edi
xor eax, eax
pop ebx
add esp, 0x23c
ret
mov ecx, dword [esp + 0x254]
mov eax, dword [ecx]
cmp eax, 9
jl 0x4105f5
push ecx
mov ecx, dword [esp + 0x24c]
lea eax, [esp + 0x144]
push 0x104
push eax
push ecx
call fcn.00410520
add esp, 0x10
test eax, eax
jne 0x41060e
pop edi
pop ebx
add esp, 0x23c
ret
mov edx, dword [esp + 0x250]
lea ecx, [esp + 0x140]
push edx
push ecx
push eax
call fcn.00410b30
add esp, 0xc
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov ebx, dword [sym.imp.SHLWAPI.dll_PathAppendA]
push ebp
mov ebp, dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
push esi
xor esi, esi
mov eax, esi
lea edx, [esp + 0x10]
push eax
mov eax, dword [esp + 0x254]
push edx
push eax
inc esi
call fcn.00410a80
add esp, 0xc
lea ecx, [esp + 0x148]
lea edx, [esp + 0x44]
push 0x104
push ecx
push edx
call edi
lea eax, [esp + 0x10]
lea ecx, [esp + 0x44]
push eax
push ecx
call ebx
lea edx, [esp + 0x44]
push edx
call ebp
test eax, eax
je 0x410670
cmp esi, 0x3e8
jl 0x410624
mov eax, dword [esp + 0x258]
mov edx, dword [esp + 0x254]
lea ecx, [esp + 0x44]
push eax
push ecx
push edx
call edi
pop esi
pop ebp
pop edi
mov eax, 1
pop ebx
add esp, 0x23c
ret
Function at 0x410b30
Capabilities:
Get common file path

Disassembly:
mov eax, dword [esp + 4]
push esi
cmp eax, 0x64
push edi
ja case.0x410b47.10
xor ecx, ecx
mov cl, byte [eax + 0x410cf8]
jmp dword [ecx*4 + 0x410ccc]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
push edx
push eax
call fcn.00410e30
add esp, 8
mov eax, 1
pop edi
pop esi
ret
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push ecx
push edx
call fcn.00402190
add esp, 8
mov eax, 1
pop edi
pop esi
ret
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
pop edi
mov eax, 1
pop esi
ret
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
pop edi
mov eax, 1
pop esi
ret
mov ecx, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
push ecx
push esi
call fcn.00402190
add esp, 8
mov ecx, 0x422ce8
jmp 0x410cb2
mov edx, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push str.drivers
push esi
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
pop edi
mov eax, 1
pop esi
ret
mov eax, dword [esp + 0x14]
push eax
push 0x10
call fcn.00413150
mov ecx, dword [esp + 0x18]
add esp, 4
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
pop edi
mov eax, 1
pop esi
ret
mov esi, dword [esp + 0x10]
push 1
push 0x1a
push esi
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
je case.0x410b47.10
push esi
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
mov edi, dword [sym.imp.SHLWAPI.dll_PathAppendA]
push str.LocalLow
push esi
call edi
mov ecx, 0x422cc8
call fcn.00404900
push eax
push esi
call edi
pop edi
mov eax, 1
pop esi
ret
mov esi, dword [esp + 0x10]
push 1
push 0x1a
push esi
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
je case.0x410b47.10
mov ecx, 0x422cd8
call fcn.00404900
mov edi, dword [sym.imp.SHLWAPI.dll_PathAppendA]
push eax
push esi
call edi
mov ecx, 0x422cc8
call fcn.00404900
push eax
push esi
call edi
pop edi
mov eax, 1
pop esi
ret
mov esi, dword [esp + 0x10]
push 1
push 0x1a
push esi
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
je case.0x410b47.10
mov ecx, 0x422cc8
call fcn.00404900
push eax
push esi
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
pop edi
mov eax, 1
pop esi
ret
pop edi
xor eax, eax
pop esi
ret

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

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
lea eax, [esp + 0x10]
push edi
mov edi, dword [esp + 0x14]
push eax
lea ecx, [esp + 0xc]
push esi
push ecx
push str.Install
push str.SOFTWARETencentTBH
push 0x80000002
mov dword [esp + 0x20], 1
mov dword [esp + 0x2c], edi
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
test eax, eax
jne 0x410e7f
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x410e7f
pop edi
mov eax, 1
pop esi
pop ecx
ret
push edi
push 0x10
call fcn.00413150
add esp, 4
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
neg eax
sbb eax, eax
pop edi
neg eax
pop esi
pop ecx
ret
Function at 0x4110d0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x478
lea eax, [esp + 8]
push ebx
xor ebx, ebx
push eax
push 0x2000000
mov dword [esp + 0x10], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x411283
mov edx, dword [esp + 0xc]
lea ecx, [esp + 4]
push esi
push ecx
push 1
push 2
push ebx
push 0x2000000
push edx
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x411271
push ebp
push str.advapi32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebp, eax
push str.ConvertStringSidToSidW
push ebp
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x411262
mov edx, dword [esp + 0x488]
lea ecx, [esp + 0x10]
push ecx
push edx
call eax
test eax, eax
je 0x411262
mov eax, dword [esp + 0x10]
mov dword [esp + 0x1c], 0x20
push eax
mov dword [esp + 0x1c], eax
call dword [sym.imp.ADVAPI32.dll_GetLengthSid]
mov ecx, dword [esp + 0xc]
add eax, 8
push eax
lea eax, [esp + 0x1c]
push eax
push 0x19
push ecx
call dword [sym.imp.ADVAPI32.dll_SetTokenInformation]
test eax, eax
je 0x411257
push edi
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x38]
mov dword [esp + 0x34], 0x44
mov word [esp + 0x78], bx
rep stosd dword es:[edi], eax
mov ecx, 0x103
lea edi, [esp + 0x7a]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x490]
xor edx, edx
mov dword [esp + 0x28], edx
mov dword [esp + 0x24], ebx
stosw word es:[edi], ax
mov eax, dword [esp + 0x494]
mov dword [esp + 0x2c], edx
push eax
mov dword [esp + 0x34], edx
push ecx
push str.__s___s
lea edx, [esp + 0x84]
push 0x207
push edx
call sub.MSVCRT.dll__snwprintf
add esp, 0x14
lea eax, [esp + 0x24]
lea ecx, [esp + 0x34]
lea edx, [esp + 0x78]
push eax
mov eax, dword [esp + 0x14]
push ecx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push edx
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
pop edi
je 0x411251
mov eax, dword [esp + 0x494]
cmp eax, ebx
jbe 0x41123c
mov ecx, dword [esp + 0x20]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [esp + 0x20]
push edx
call esi
mov eax, dword [esp + 0x24]
push eax
call esi
mov ebx, 1
jmp 0x411257
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
push ebp
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov edx, dword [esp + 0xc]
push edx
call esi
pop ebp
mov eax, dword [esp + 0x10]
push eax
call esi
mov eax, ebx
pop esi
pop ebx
add esp, 0x478
ret
mov eax, ebx
pop ebx
add esp, 0x478
ret
Function at 0x411980
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 0x420fa4
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.00411970
add esp, 4
test eax, eax
pop edi
jne 0x4119d5
add esp, 0x104
ret
lea edx, [esp]
push esi
push edx
call fcn.00412f20
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 0x411ba0
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x419bfb
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 0x411c0f
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.00411da0
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 0x411cf5
lea edx, [esp + 0x1c]
lea ecx, [esp + 0x120]
push edx
call fcn.0040b3c0
lea eax, [esp + 8]
lea ecx, [esp + 0x120]
push eax
mov dword [esp + 0x56c], 0
call fcn.0040b520
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.0040b470
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 0x411da0
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 0x411fa0
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 0x411ff3
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 0x411fe9
push edi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
je 0x411fe6
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 0x412000
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 0x412127
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 0x412100
push edi
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
je 0x412110
lea ecx, [esp + 0x14]
push ecx
push ebx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x4120f5
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 0x4120df
mov eax, 0xcccccccd
mul dword [esp + 0x30]
shr edx, 3
cmp edx, 0x3e8
jae 0x412098
mov edx, 0x3e8
jmp 0x4120a5
cmp edx, 0x2710
jbe 0x4120a5
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 0x4120df
cmp dword [esp + 0x2c], ebp
jbe 0x4120cc
call edi
mov ebp, dword [esp + 0x2c]
mov esi, eax
jmp 0x4120d8
call edi
mov ecx, dword [esp + 0x30]
sub eax, esi
cmp eax, ecx
ja 0x4120df
cmp dword [esp + 0x1c], 2
je 0x41207d
mov eax, dword [esp + 0x1c]
pop ebp
cmp eax, 4
jne 0x4120f1
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 0x4120f5
mov dword [esp + 0xc], 1
jmp 0x4120f5
mov eax, edi
pop edi
pop esi
add esp, 0x24
ret