joyce8/EMBER2024-capa huggingface dataset:
Function at 0x424805
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
push edi
mov ebx, 0x400
push ebx
call fcn.0043140a
pop ecx
xor ecx, ecx
mov dword [ebp - 4], eax
cmp eax, ecx
jne 0x424831
push ecx
call fcn.00431415
pop ecx
push 3
jmp 0x424984
xor eax, eax
lea edi, [ebp - 0x24]
mov dword [ebp - 0x28], ecx
stosd dword es:[edi], eax
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], ecx
sub dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
inc dword [ebp - 0xc]
add dword [ebp - 0x10], 0xa
cmp dword [ebp - 0xc], 1
cdq
mov esi, eax
mov ecx, edx
jle 0x424869
mov eax, dword [ebp - 0x10]
cdq
add esi, eax
adc ecx, edx
push 2
lea eax, [ebp - 0x18]
push eax
push esi
push dword [ebp + 0xc]
mov dword [ebp - 0x18], ecx
call edi
mov dword [ebp - 0x1c], eax
cmp eax, 0xffffffff
jne 0x42488e
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x42493e
mov esi, dword [ebp - 4]
push 0
lea eax, [ebp - 0x14]
push eax
push ebx
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x42497b
cmp dword [ebp - 0x14], ebx
jne 0x42497b
add esi, 0x3f6
jmp 0x4248d0
push 0xa
push str.ADVINSTSFX
push esi
call fcn.004329e8
add esp, 0xc
test eax, eax
je 0x424939
dec esi
cmp esi, dword [ebp - 4]
jae 0x4248bb
or esi, 0xffffffff
test esi, esi
jl 0x424849
mov eax, dword [ebp - 0x1c]
and dword [ebp - 0x24], 0
push 0
lea ecx, [ebp - 0x24]
lea eax, [esi + eax - 0x40]
push ecx
push eax
push dword [ebp + 0xc]
mov dword [ebp - 0x28], eax
call edi
cmp eax, 0xffffffff
je 0x42493e
mov esi, dword [ebp + 8]
push 0
lea eax, [ebp - 0x14]
push eax
push 0x4a
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x42496b
cmp dword [ebp - 0x14], 0
je 0x42496b
push 0xa
lea eax, [esi + 0x40]
push str.ADVINSTSFX
push eax
call fcn.004329e8
add esp, 0xc
test eax, eax
je 0x424943
push 5
jmp 0x42496d
sub esi, dword [ebp - 4]
jmp 0x4248d8
push dword [ebp - 4]
jmp 0x42497c
cmp dword [esi + 0xc], 0x64
jne 0x424935
mov eax, dword [esi + 0x10]
mov edx, dword [ebp - 0x28]
push dword [ebp - 4]
xor ecx, ecx
sub edx, eax
mov eax, dword [ebp - 0x24]
sbb eax, ecx
mov dword [esi + 0x50], edx
mov dword [esi + 0x54], eax
call fcn.00431415
pop ecx
xor eax, eax
jmp 0x424985
push 2
pop esi
push dword [ebp - 4]
call fcn.00431415
pop ecx
mov eax, esi
jmp 0x424985
push esi
call fcn.00431415
pop ecx
push 2
pop eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x4249e5
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov ebx, eax
mov eax, dword [ebp + 8]
push edi
xor edi, edi
mov dword [eax + 0x10], ebx
cmp dword [eax + 4], edi
je 0x424a77
cmp ebx, edi
je 0x424a22
push edi
push edi
push edi
push edi
lea esi, [eax + 0x14]
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov edi, eax
call fcn.00408e41
push dword [esi]
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x20]
mov eax, dword [ebp + 8]
xor edi, edi
lea ecx, [ebp - 4]
push ecx
push edi
push eax
push 0x424a80
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
cmp ebx, edi
je 0x424a42
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 4]
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 4]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x424a6c
mov ebx, dword [ebp - 4]
cmp esi, edi
je 0x424a68
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
jmp 0x424a79
cmp esi, edi
je 0x424a77
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x424fc6
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 0x2e
mov esi, ebx
mov edi, eax
call fcn.00408c55
test eax, eax
jg 0x424fe8
mov al, 1
jmp 0x425147
mov ecx, eax
lea edx, [ebp - 8]
mov eax, ebx
call fcn.00408d62
mov eax, dword [0x459100]
mov esi, 0x459100
mov ecx, esi
call dword [eax + 0xc]
push dword [ebp - 8]
add eax, 0x10
push dword [ebx]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0xc]
push dword [eax]
lea eax, [ebp - 0x10]
push str.__verbose___log_file__s____remove_pack_file___s____s_
push eax
call fcn.0040971d
add esp, 0x14
cmp dword [edi + 0x10], 0
je 0x425033
mov ecx, dword [edi + 0x10]
mov eax, dword [ecx]
push ebx
call dword [eax + 0x14]
push 0
push 0x8000008
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [edi + 0xc]
push eax
call fcn.0040f8a6
add esp, 0x14
lea ecx, [ebp - 8]
mov byte [ebp - 1], 1
call fcn.0040a3f5
test al, al
je 0x42506b
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x425112
mov eax, dword [0x459100]
mov ecx, esi
call dword [eax + 0xc]
push dword [ebp + 0xc]
add eax, 0x10
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], eax
call fcn.00410150
mov eax, dword [0x459100]
pop ecx
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
push 0xca
lea esi, [ebp - 0x18]
mov dword [ebp - 0xc], eax
call fcn.00422de0
mov eax, dword [ebp - 8]
mov ebx, dword [eax - 0xc]
pop ecx
push 0x5c
lea esi, [ebp - 8]
call fcn.00408c55
mov ecx, ebx
sub ecx, eax
lea eax, [ebp - 0x1c]
push eax
mov eax, esi
call fcn.004106dc
mov esi, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x18]
push esi
push dword [eax]
lea eax, [ebp - 0xc]
push ebx
push eax
call fcn.0040971d
mov eax, dword [ebp - 0x1c]
add esp, 0x10
add eax, 0xfffffff0
call fcn.0040464c
push 0
lea eax, [ebp - 0xc]
call fcn.00416e60
pop ecx
lea eax, [ebx - 0x10]
mov byte [ebp - 1], 0
call fcn.0040464c
mov eax, dword [ebp - 0xc]
add eax, 0xfffffff0
call fcn.0040464c
lea eax, [esi - 0x10]
call fcn.0040464c
mov ebx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [edi + 0x10], 0
je 0x42512e
mov edi, dword [edi + 0x10]
mov eax, dword [edi]
push ebx
mov ecx, edi
call dword [eax + 0x18]
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.0040464c
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.0040464c
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x42522e
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor edi, edi
mov dword [ebx + 0x10], eax
cmp dword [eax], edi
je 0x425265
push edi
push edi
push edi
push edi
lea esi, [ebx + 0x14]
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov edi, eax
call fcn.00408e41
mov eax, dword [ebx + 0x10]
mov ecx, dword [eax]
push dword [esi]
mov eax, dword [ecx]
call dword [eax + 0x10]
xor edi, edi
lea eax, [ebp - 4]
push eax
push edi
push ebx
push 0x42548d
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
mov eax, dword [ebx + 0x10]
mov dword [ebp - 0x18], esi
cmp dword [eax], edi
je 0x4252bb
mov edi, ebx
call fcn.004252f9
mov ebx, dword [ebx + 4]
mov esi, eax
mov eax, dword [edi]
mov dword [ebp - 0xc], edx
call fcn.0040c0b5
add esi, eax
adc dword [ebp - 0xc], edx
mov eax, dword [edi + 0x10]
push dword [ebp - 0xc]
mov ecx, dword [eax]
mov eax, dword [ecx]
push esi
call dword [eax]
mov eax, dword [edi + 0x10]
mov ecx, dword [eax]
mov eax, dword [ecx]
call dword [eax + 8]
mov esi, dword [ebp - 0x18]
xor edi, edi
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 4]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x4252e5
mov ebx, dword [ebp - 4]
cmp esi, edi
je 0x4252e1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
jmp 0x4252f2
cmp esi, edi
je 0x4252f0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x425802
Capabilities:
Get geographical location

Disassembly:
push ebp
push esi
push edi
push 0
push 0x44bfc6
movzx ebx, bx
push 0x1001
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov ebp, eax
mov ecx, 0x459100
lea edi, [ebp - 1]
call fcn.00404631
test edi, edi
jle 0x42584b
push edi
call fcn.004020bf
push edi
push 0x78
push eax
call fcn.00431420
add esp, 0xc
mov eax, edi
mov edx, esi
call fcn.004020e5
mov eax, dword [esi]
sub eax, 0x10
cmp dword [eax + 0xc], 1
jle 0x42585f
push dword [eax + 4]
push esi
call fcn.004021d9
mov eax, dword [esi]
push ebp
push eax
push 0x1001
push ebx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
pop edi
mov eax, esi
pop esi
pop ebp
ret

Function at 0x425aa6
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push esi
push edi
push 0x3c
pop edi
push edi
mov esi, eax
lea eax, [ebp - 0x3c]
push 0
push eax
call fcn.00431420
mov eax, dword [ebp + 8]
mov eax, dword [eax]
add esp, 0xc
lea ecx, [ebp - 0x3c]
push ecx
push 0
push 0
push eax
mov dword [ebp - 0x28], 0x64
mov dword [ebp - 0x3c], edi
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
jne 0x425af0
mov ecx, 0x459100
call fcn.00404631
jmp 0x425afd
push dword [ebp - 0x2c]
mov edi, dword [ebp - 0x28]
mov eax, esi
call fcn.004106c5
pop edi
mov eax, esi
pop esi
leave
ret
Function at 0x425f0c
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
lea esi, [edi + 4]
push dword [esi]
call fcn.00410998
pop ecx
push esi
call fcn.0040ebc9
mov eax, dword [edi + 0x28]
push dword [eax]
mov ebx, dword [sym.imp.USER32.dll_SetWindowTextW]
push dword [esi]
call ebx
mov eax, dword [0x459100]
mov ecx, 0x459100
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 4], eax
push 0xdc
lea eax, [ebp - 4]
push eax
call fcn.00404374
push 0x40a
push dword [esi]
call dword [sym.imp.USER32.dll_GetDlgItem]
push dword [ebp - 4]
push eax
call ebx
lea eax, [edi + 0x40]
push eax
mov eax, dword [esi]
call fcn.0042884f
push dword [esi]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
lea eax, [ebp - 8]
push eax
xor eax, eax
push eax
push edi
push 0x425fe8
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [edi + 0x30], eax
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.0040464c
pop esi
xor eax, eax
pop ebx
leave
ret

Function at 0x426172
Capabilities:
List user accounts for group

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
xor esi, esi
push esi
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0xc]
push eax
push 1
push dword [ebp + 8]
mov dword [ebp - 0x14], ecx
push esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
mov dword [ebp - 0x10], esi
call sub.NETAPI32.dll_NetLocalGroupGetMembers
test eax, eax
jne 0x4261ff
mov dword [ebp - 4], esi
cmp dword [ebp - 8], esi
jbe 0x4261f7
mov edi, dword [ebp - 0xc]
mov ebx, dword [ebp + 0xc]
add edi, 8
mov esi, dword [edi]
push esi
lea eax, [ebp + 0xc]
call fcn.00404558
lea eax, [ebp + 0xc]
push eax
call fcn.0042679a
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
call fcn.0040464c
push ebx
push ecx
mov eax, esp
push esi
call fcn.00404558
mov ecx, dword [ebp - 0x14]
call fcn.00426172
add edi, 0xc
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
jb 0x4261b8
push dword [ebp - 0xc]
call sub.NETAPI32.dll_NetApiBufferFree
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.0040464c
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x426211
Capabilities:
List groups for user account

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [eax]
push esi
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 4]
push ecx
push 0xffffffffffffffff
lea ecx, [ebp - 8]
push ecx
xor esi, esi
push 1
push esi
push eax
push esi
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x10], esi
call sub.NETAPI32.dll_NetUserGetLocalGroups
test eax, eax
jne 0x42627f
push edi
mov edi, dword [ebp - 8]
cmp dword [ebp - 4], esi
jbe 0x426276
push ebx
push dword [edi]
lea eax, [ebp - 0xc]
call fcn.00404558
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.0042679a
mov eax, dword [ebp - 0xc]
add eax, 0xfffffff0
call fcn.0040464c
add edi, 4
inc esi
cmp esi, dword [ebp - 4]
jb 0x42624b
pop ebx
push dword [ebp - 8]
call sub.NETAPI32.dll_NetApiBufferFree
pop edi
pop esi
leave
ret 4
Function at 0x426284
Capabilities:
Get session user name

Disassembly:
push ebp
lea ebp, [esp - 0x1b8]
sub esp, 0x238
mov eax, dword [0x457090]
xor eax, ebp
mov dword [ebp + 0x1b4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x6c]
push eax
push ecx
xor esi, esi
mov eax, esp
push str.WSS_ADMIN_WPG
mov edi, ecx
mov dword [ebp - 0x6c], esi
mov dword [ebp - 0x68], esi
mov dword [ebp - 0x64], esi
call fcn.00404558
mov ecx, edi
call fcn.00426172
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x50]
push eax
push 2
mov dword [ebp - 0x70], esi
call sub.Secur32.dll_GetUserNameExW
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x50]
push eax
push 2
call sub.Secur32.dll_GetUserNameExW
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x58]
call fcn.00404558
mov edi, dword [ebp - 0x58]
lea eax, [edi - 0x10]
mov dword [ebp - 0x5c], eax
call fcn.00409c66
mov ebx, eax
add ebx, 0x10
push 0x44a8d0
xor ecx, ecx
lea esi, [ebp - 0x58]
mov dword [ebp - 0x60], ebx
call fcn.00408c24
test eax, eax
jl 0x426347
mov ecx, dword [edi - 0xc]
sub ecx, eax
lea eax, [ebp - 0x80]
push eax
dec ecx
mov eax, esi
call fcn.004106dc
lea edi, [ebp - 0x60]
call fcn.004088e1
mov eax, dword [ebp - 0x80]
add eax, 0xfffffff0
call fcn.0040464c
mov ebx, dword [ebp - 0x60]
mov edi, dword [ebp - 0x58]
mov esi, dword [ebp - 0x6c]
jmp 0x426365
push edi
push esi
call fcn.0040904e
test eax, eax
je 0x42639c
push ebx
push esi
call fcn.0040904e
test eax, eax
je 0x42639c
mov esi, dword [esi + 4]
test esi, esi
jne 0x42634c
push 0x449abc
lea eax, [ebp - 0x58]
push eax
call fcn.0040aaed
test eax, eax
je 0x42639c
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x58]
mov dword [ebp - 0x7c], esi
mov dword [ebp - 0x78], esi
mov dword [ebp - 0x74], esi
call fcn.00426211
mov edi, dword [ebp - 0x7c]
cmp edi, esi
je 0x4263e8
mov esi, dword [ebp - 0x6c]
jmp 0x4263dd
lea eax, [ebx - 0x10]
call fcn.0040464c
mov eax, dword [ebp - 0x5c]
call fcn.0040464c
lea edi, [ebp - 0x6c]
call fcn.0042676a
mov al, 1
mov ecx, dword [ebp + 0x1b4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004313fb
add ebp, 0x1b8
leave
ret
push dword [esi]
push edi
call fcn.0040904e
test eax, eax
je 0x4263ee
mov esi, dword [esi + 4]
test esi, esi
jne 0x4263ce
mov edi, dword [edi + 4]
test edi, edi
jne 0x426397
mov byte [ebp - 0x51], 0
jmp 0x4263f2
mov byte [ebp - 0x51], 1
lea edi, [ebp - 0x7c]
call fcn.0042676a
lea eax, [ebx - 0x10]
call fcn.0040464c
mov eax, dword [ebp - 0x5c]
call fcn.0040464c
lea edi, [ebp - 0x6c]
call fcn.0042676a
mov al, byte [ebp - 0x51]
jmp 0x4263b6

Function at 0x426667
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [eax]
sub esp, 0x1c
push 0x80000000
push eax
mov eax, dword [ebp + 8]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
test eax, eax
jne 0x426688
xor al, al
jmp 0x4266a5
lea ecx, [ebp - 0x1c]
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x426684
cmp dword [ebp - 0x18], 4
je 0x4266a3
cmp dword [ebp - 0x18], 2
jne 0x426684
mov al, 1
leave
ret 4
Function at 0x4274fc
Capabilities:
Create process on windows
Query service status
Start service

Disassembly:
push ebp
lea ebp, [esp - 0x304]
sub esp, 0x384
mov eax, dword [0x457090]
xor eax, ebp
mov dword [ebp + 0x300], eax
push esi
push edi
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 0x1c], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0xc], 1
jne 0x4275c7
push str.SYSTEM_AGENT_COM_WINDOW
push str.SAGEWINDOWCLASS
call dword [sym.imp.USER32.dll_FindWindowW]
test eax, eax
je 0x42754f
xor eax, eax
jmp 0x42762a
push 0x44
pop esi
push esi
xor edi, edi
lea eax, [ebp - 0x80]
push edi
push eax
call fcn.00431420
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp + 0xf8]
push eax
push 0x104
push edi
push str.mstask.exe
push edi
mov dword [ebp - 0x80], esi
call dword [sym.imp.KERNEL32.dll_SearchPathW]
test eax, eax
jne 0x427591
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x42762a
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x80]
push eax
push edi
push edi
push 0x210
push edi
push edi
push edi
push edi
lea eax, [ebp + 0xf8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x427586
push dword [ebp - 0x30]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x2c]
call esi
jmp 0x427548
push 1
xor edi, edi
push edi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
cmp esi, edi
je 0x427586
push ebx
push 0x14
push str.Schedule
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ebx, eax
call esi
cmp ebx, edi
je 0x42761c
lea eax, [ebp - 0x3c]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x427619
cmp dword [ebp - 0x38], 4
je 0x427624
push edi
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x427624
push ebx
call esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x427629
push ebx
call esi
xor eax, eax
pop ebx
mov ecx, dword [ebp + 0x300]
pop edi
xor ecx, ebp
pop esi
call fcn.004313fb
add ebp, 0x304
leave
ret
Function at 0x427c33
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, eax
test edi, edi
je 0x427c47
add edi, 0xffffffc0
jmp 0x427c49
xor edi, edi
push dword [ebp + 8]
mov ebx, dword [sym.imp.USER32.dll_GetDlgItem]
push dword [edi + 4]
mov dword [ebp - 0xc], 1
call ebx
mov esi, eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
or dword [ebp - 8], 0xffffffff
mov dword [ebp - 4], eax
push eax
mov eax, dword [ebp + 0xc]
call fcn.00408e20
test eax, eax
je 0x427c96
mov ecx, dword [ebp - 4]
inc ecx
push ecx
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 8], eax
or eax, 0xffffffff
call fcn.00409c48
mov eax, dword [ebp - 4]
cmp dword [ebp - 8], eax
jge 0x427cc7
and dword [ebp - 0xc], 0
push 0xffffffffffffffff
add edi, 0x40
call dword [sym.imp.USER32.dll_MessageBeep]
test edi, edi
je 0x427cb6
lea eax, [edi - 0x40]
jmp 0x427cb8
xor eax, eax
push dword [ebp + 8]
push dword [eax + 4]
call ebx
push eax
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x42863d
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
call fcn.00410249
test eax, eax
je 0x4286c5
lea eax, [ebp - 8]
push eax
xor esi, esi
push 0x28
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x42867e
cmp dword [ebp - 8], esi
je 0x42867a
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x4286d7
lea eax, [ebp - 0x14]
push eax
push str.SeShutdownPrivilege
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
push esi
push esi
push esi
lea eax, [ebp - 0x18]
push eax
push esi
push dword [ebp - 8]
mov dword [ebp - 0x18], 1
mov dword [ebp - 0xc], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x42866c
cmp dword [ebp - 8], esi
je 0x4286c5
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x80040002
push 6
call dword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
setne al
pop esi
leave
ret
Function at 0x42a2b0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, eax
push 0x3f7
push dword [esi + 4]
call edi
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
push 0
push eax
call ebx
push 0x3eb
push dword [esi + 4]
call edi
push 0
push eax
mov dword [ebp - 4], eax
call ebx
push 0x3ec
push dword [esi + 4]
call edi
xor edi, edi
push edi
push eax
call ebx
mov ebx, dword [sym.imp.USER32.dll_GetWindowRect]
lea eax, [ebp - 0x14]
push eax
add esi, 0x88
push dword [esi]
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], edi
call ebx
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 4]
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], edi
call ebx
mov eax, dword [ebp - 0x18]
push 0x222
push edi
mov dword [ebp - 8], eax
push esi
lea eax, [ebp - 0x14]
call fcn.0040eb9d
pop edi
pop esi
pop ebx
leave
ret
Function at 0x42cab1
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x459100]
push ebx
push esi
push edi
mov ecx, 0x459100
call dword [eax + 0xc]
mov edi, dword [ebp + 8]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov eax, dword [edi + 0x88]
mov ecx, dword [eax + 0xc]
mov eax, dword [ebp + 0x10]
mov eax, dword [eax + 0x10]
add ecx, 4
call fcn.0041290e
add eax, 0x24
mov eax, dword [eax]
sub eax, 0x10
call fcn.00409c66
mov esi, eax
add esi, 0x10
cmp dword [esi - 0xc], 0
mov dword [ebp - 4], esi
je 0x42cbbb
xor bl, bl
mov esi, edi
call fcn.0042cc80
push 0x8a
lea esi, [ebp - 8]
call fcn.00422de0
pop ecx
push dword [ebp - 8]
push 2
push dword [edi + 0xfc]
push dword [ebp + 0xc]
call fcn.00420b30
push 0
push dword [ebp - 4]
lea esi, [edi + 0x17c]
mov ecx, dword [esi]
call fcn.00423230
mov bl, al
pop ecx
pop ecx
test bl, bl
jne 0x42cba9
cmp byte [0x459e5c], al
je 0x42cb7b
push str.MD5_of_downloaded_file_is_invalid.
lea eax, [ebp - 0xc]
call fcn.00416c77
push eax
call fcn.00416c88
push eax
mov eax, 0x459e2c
call fcn.00416005
mov eax, dword [ebp - 0xc]
add eax, 0xfffffff0
call fcn.0040464c
push dword [esi]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0x5c
call fcn.00408c55
mov ecx, eax
lea edx, [ebp - 0xc]
mov eax, esi
call fcn.00408d62
push dword [eax]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov eax, dword [ebp - 0xc]
add eax, 0xfffffff0
call fcn.0040464c
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.0040464c
test bl, bl
je 0x42cbe4
mov esi, dword [ebp - 4]
push dword [edi + 0xfc]
push dword [ebp + 0xc]
call fcn.004215ff
mov ecx, dword [edi + 0x88]
mov ecx, dword [ecx + 0xc]
add ecx, 4
call fcn.0041290e
mov byte [eax + 0x68], 1
mov byte [ebp + 0xf], 1
jmp 0x42cc51
inc dword [edi + 0x188]
mov eax, dword [0x459100]
mov ecx, 0x459100
call dword [eax + 0xc]
add eax, 0x10
push 0x8b
lea esi, [ebp - 0xc]
mov dword [ebp - 8], eax
call fcn.00422de0
pop ecx
lea edi, [ebp - 8]
call fcn.004088e1
mov eax, dword [ebp - 0xc]
add eax, 0xfffffff0
call fcn.0040464c
mov esi, dword [ebp - 8]
mov eax, dword [ebp + 8]
push esi
push 2
push dword [eax + 0xfc]
push dword [ebp + 0xc]
call fcn.00420b30
mov eax, dword [ebp + 0x10]
mov dword [eax + 0xc], 1
lea eax, [esi - 0x10]
mov byte [ebp + 0xf], 0
call fcn.0040464c
mov edi, dword [ebp + 8]
mov esi, dword [ebp - 4]
cmp dword [esi - 0xc], 0
je 0x42cc63
mov bl, 1
mov esi, edi
call fcn.0042cc80
mov esi, dword [ebp - 4]
lea eax, [esi - 0x10]
call fcn.0040464c
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.0040464c
mov al, byte [ebp + 0xf]
pop edi
pop esi
pop ebx
leave
ret 0xc