joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4248e3
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.004318aa
pop ecx
xor ecx, ecx
mov dword [ebp - 4], eax
cmp eax, ecx
jne 0x42490f
push ecx
call fcn.004318b5
pop ecx
push 3
jmp 0x424a62
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 0x424947
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 0x42496c
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x424a1c
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 0x424a59
cmp dword [ebp - 0x14], ebx
jne 0x424a59
add esi, 0x3f6
jmp 0x4249ae
push 0xa
push str.ADVINSTSFX
push esi
call fcn.00432e88
add esp, 0xc
test eax, eax
je 0x424a17
dec esi
cmp esi, dword [ebp - 4]
jae 0x424999
or esi, 0xffffffff
test esi, esi
jl 0x424927
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 0x424a1c
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 0x424a49
cmp dword [ebp - 0x14], 0
je 0x424a49
push 0xa
lea eax, [esi + 0x40]
push str.ADVINSTSFX
push eax
call fcn.00432e88
add esp, 0xc
test eax, eax
je 0x424a21
push 5
jmp 0x424a4b
sub esi, dword [ebp - 4]
jmp 0x4249b6
push dword [ebp - 4]
jmp 0x424a5a
cmp dword [esi + 0xc], 0x64
jne 0x424a13
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.004318b5
pop ecx
xor eax, eax
jmp 0x424a63
push 2
pop esi
push dword [ebp - 4]
call fcn.004318b5
pop ecx
mov eax, esi
jmp 0x424a63
push esi
call fcn.004318b5
pop ecx
push 2
pop eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x424ac3
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 0x424b55
cmp ebx, edi
je 0x424b00
push edi
push edi
push edi
push edi
lea esi, [eax + 0x14]
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov edi, eax
call fcn.00408e61
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 0x424b5e
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
cmp ebx, edi
je 0x424b20
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 0x424b4a
mov ebx, dword [ebp - 4]
cmp esi, edi
je 0x424b46
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
jmp 0x424b57
cmp esi, edi
je 0x424b55
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x4250a4
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push 0x2e
mov esi, edi
mov ebx, eax
call fcn.00408c75
test eax, eax
jg 0x4250c6
mov al, 1
jmp 0x42522a
mov ecx, eax
lea edx, [ebp - 8]
mov eax, edi
call fcn.00408d82
mov eax, dword [0x45a140]
mov esi, 0x45a140
mov ecx, esi
call dword [eax + 0xc]
push dword [ebp - 8]
add eax, 0x10
push dword [edi]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0xc]
push dword [eax]
lea eax, [ebp - 0x10]
push 0x454088
push eax
call fcn.004097a8
add esp, 0x14
cmp dword [ebx + 0x10], 0
je 0x425111
mov ecx, dword [ebx + 0x10]
mov eax, dword [ecx]
push edi
call dword [eax + 0x14]
push 0
push 0x8000008
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebx + 0xc]
push eax
call fcn.0040f96d
add esp, 0x14
lea edi, [ebp - 0x20]
lea ecx, [ebp - 8]
mov byte [ebp - 1], 1
call fcn.0040a492
test al, al
je 0x42514f
mov eax, dword [ebp + 8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x4251f3
mov eax, dword [0x45a140]
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.00410225
mov eax, dword [0x45a140]
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.00422ebe
mov eax, dword [ebp - 8]
mov edi, dword [eax - 0xc]
pop ecx
push 0x5c
lea esi, [ebp - 8]
call fcn.00408c75
mov ecx, edi
sub ecx, eax
lea eax, [ebp - 0x1c]
push eax
mov eax, esi
call fcn.004107b1
mov esi, dword [ebp - 0x14]
mov edi, dword [ebp - 0x18]
push esi
push dword [eax]
lea eax, [ebp - 0xc]
push edi
push eax
call fcn.004097a8
mov eax, dword [ebp - 0x1c]
add esp, 0x10
add eax, 0xfffffff0
call fcn.00404644
push 0
lea eax, [ebp - 0xc]
call fcn.00416f0e
pop ecx
lea eax, [edi - 0x10]
mov byte [ebp - 1], 0
call fcn.00404644
mov eax, dword [ebp - 0xc]
add eax, 0xfffffff0
call fcn.00404644
lea eax, [esi - 0x10]
call fcn.00404644
mov eax, dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [ebx + 0x10], 0
je 0x425211
mov ebx, dword [ebx + 0x10]
push dword [ebp + 8]
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x18]
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00404644
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.00404644
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x425311
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 0x425348
push edi
push edi
push edi
push edi
lea esi, [ebx + 0x14]
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov edi, eax
call fcn.00408e61
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 0x425570
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 0x42539e
mov edi, ebx
call fcn.004253dc
mov ebx, dword [ebx + 4]
mov esi, eax
mov eax, dword [edi]
mov dword [ebp - 0xc], edx
call fcn.0040c15b
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 0x4253c8
mov ebx, dword [ebp - 4]
cmp esi, edi
je 0x4253c4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
jmp 0x4253d5
cmp esi, edi
je 0x4253d3
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x4258e5
Capabilities:
Get geographical location

Disassembly:
push ebp
push esi
push edi
push 0
push 0x44d00e
movzx ebx, bx
push 0x1001
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov ebp, eax
mov ecx, 0x45a140
lea edi, [ebp - 1]
call fcn.004020bf
test edi, edi
jle 0x42592e
push edi
call fcn.004020da
push edi
push 0x78
push eax
call fcn.004318c0
add esp, 0xc
mov eax, edi
mov edx, esi
call fcn.00402100
mov eax, dword [esi]
sub eax, 0x10
cmp dword [eax + 0xc], 1
jle 0x425942
push dword [eax + 4]
push esi
call fcn.004021f4
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 0x425b89
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.004318c0
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 0x425bd3
mov ecx, 0x45a140
call fcn.004020bf
jmp 0x425be0
push dword [ebp - 0x2c]
mov edi, dword [ebp - 0x28]
mov eax, esi
call fcn.0041079a
pop edi
mov eax, esi
pop esi
leave
ret
Function at 0x425ff2
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.00410aa0
pop ecx
push esi
call fcn.0040ec90
mov eax, dword [edi + 0x28]
push dword [eax]
mov ebx, dword [sym.imp.USER32.dll_SetWindowTextW]
push dword [esi]
call ebx
mov eax, dword [0x45a140]
mov ecx, 0x45a140
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 4], eax
push 0xdc
lea eax, [ebp - 4]
push eax
call fcn.00404387
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.00428cdd
push dword [esi]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
lea eax, [ebp - 8]
push eax
xor eax, eax
push eax
push edi
push 0x4260ce
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.00404644
pop esi
xor eax, eax
pop ebx
leave
ret

Function at 0x426258
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 0x4262e5
mov dword [ebp - 4], esi
cmp dword [ebp - 8], esi
jbe 0x4262dd
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.0040456b
lea eax, [ebp + 0xc]
push eax
call fcn.00426880
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
call fcn.00404644
push ebx
push ecx
mov eax, esp
push esi
call fcn.0040456b
mov ecx, dword [ebp - 0x14]
call fcn.00426258
add edi, 0xc
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
jb 0x42629e
push dword [ebp - 0xc]
call sub.NETAPI32.dll_NetApiBufferFree
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.00404644
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x4262f7
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 0x426365
push edi
mov edi, dword [ebp - 8]
cmp dword [ebp - 4], esi
jbe 0x42635c
push ebx
push dword [edi]
lea eax, [ebp - 0xc]
call fcn.0040456b
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.00426880
mov eax, dword [ebp - 0xc]
add eax, 0xfffffff0
call fcn.00404644
add edi, 4
inc esi
cmp esi, dword [ebp - 4]
jb 0x426331
pop ebx
push dword [ebp - 8]
call sub.NETAPI32.dll_NetApiBufferFree
pop edi
pop esi
leave
ret 4
Function at 0x42636a
Capabilities:
Get session user name

Disassembly:
push ebp
lea ebp, [esp - 0x1b8]
sub esp, 0x238
mov eax, dword [0x458090]
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.0040456b
mov ecx, edi
call fcn.00426258
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.0040456b
mov edi, dword [ebp - 0x58]
lea eax, [edi - 0x10]
mov dword [ebp - 0x5c], eax
call fcn.00409cf1
mov ebx, eax
add ebx, 0x10
push 0x44b8d0
xor ecx, ecx
lea esi, [ebp - 0x58]
mov dword [ebp - 0x60], ebx
call fcn.00408c44
test eax, eax
jl 0x42642d
mov ecx, dword [edi - 0xc]
sub ecx, eax
lea eax, [ebp - 0x80]
push eax
dec ecx
mov eax, esi
call fcn.004107b1
lea edi, [ebp - 0x60]
call fcn.00408901
mov eax, dword [ebp - 0x80]
add eax, 0xfffffff0
call fcn.00404644
mov ebx, dword [ebp - 0x60]
mov edi, dword [ebp - 0x58]
mov esi, dword [ebp - 0x6c]
jmp 0x42644b
push edi
push esi
call fcn.004090d9
test eax, eax
je 0x426482
push ebx
push esi
call fcn.004090d9
test eax, eax
je 0x426482
mov esi, dword [esi + 4]
test esi, esi
jne 0x426432
push 0x44aabc
lea eax, [ebp - 0x58]
push eax
call fcn.0040ab93
test eax, eax
je 0x426482
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.004262f7
mov edi, dword [ebp - 0x7c]
cmp edi, esi
je 0x4264ce
mov esi, dword [ebp - 0x6c]
jmp 0x4264c3
lea eax, [ebx - 0x10]
call fcn.00404644
mov eax, dword [ebp - 0x5c]
call fcn.00404644
lea edi, [ebp - 0x6c]
call fcn.00426850
mov al, 1
mov ecx, dword [ebp + 0x1b4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043189b
add ebp, 0x1b8
leave
ret
push dword [esi]
push edi
call fcn.004090d9
test eax, eax
je 0x4264d4
mov esi, dword [esi + 4]
test esi, esi
jne 0x4264b4
mov edi, dword [edi + 4]
test edi, edi
jne 0x42647d
mov byte [ebp - 0x51], 0
jmp 0x4264d8
mov byte [ebp - 0x51], 1
lea edi, [ebp - 0x7c]
call fcn.00426850
lea eax, [ebx - 0x10]
call fcn.00404644
mov eax, dword [ebp - 0x5c]
call fcn.00404644
lea edi, [ebp - 0x6c]
call fcn.00426850
mov al, byte [ebp - 0x51]
jmp 0x42649c

Function at 0x42674d
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 0x42676e
xor al, al
jmp 0x42678b
lea ecx, [ebp - 0x1c]
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x42676a
cmp dword [ebp - 0x18], 4
je 0x426789
cmp dword [ebp - 0x18], 2
jne 0x42676a
mov al, 1
leave
ret 4
Function at 0x4275e2
Capabilities:
Create process on windows
Query service status
Start service

Disassembly:
push ebp
lea ebp, [esp - 0x304]
sub esp, 0x384
mov eax, dword [0x458090]
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 0x4276ad
push str.SYSTEM_AGENT_COM_WINDOW
push str.SAGEWINDOWCLASS
call dword [sym.imp.USER32.dll_FindWindowW]
test eax, eax
je 0x427635
xor eax, eax
jmp 0x427710
push 0x44
pop esi
push esi
xor edi, edi
lea eax, [ebp - 0x80]
push edi
push eax
call fcn.004318c0
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 0x427677
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x427710
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 0x42766c
push dword [ebp - 0x30]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x2c]
call esi
jmp 0x42762e
push 1
xor edi, edi
push edi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
cmp esi, edi
je 0x42766c
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 0x427702
lea eax, [ebp - 0x3c]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x4276ff
cmp dword [ebp - 0x38], 4
je 0x42770a
push edi
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x42770a
push ebx
call esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x42770f
push ebx
call esi
xor eax, eax
pop ebx
mov ecx, dword [ebp + 0x300]
pop edi
xor ecx, ebp
pop esi
call fcn.0043189b
add ebp, 0x304
leave
ret
Function at 0x427da9
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 0x427dbd
add edi, 0xffffffc0
jmp 0x427dbf
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.00408e40
test eax, eax
je 0x427e0c
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.00409cd3
mov eax, dword [ebp - 4]
cmp dword [ebp - 8], eax
jge 0x427e3d
and dword [ebp - 0xc], 0
push 0xffffffffffffffff
add edi, 0x40
call dword [sym.imp.USER32.dll_MessageBeep]
test edi, edi
je 0x427e2c
lea eax, [edi - 0x40]
jmp 0x427e2e
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 0x428aec
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
call fcn.0041031e
test eax, eax
je 0x428b74
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 0x428b2d
cmp dword [ebp - 8], esi
je 0x428b29
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x428b86
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 0x428b1b
cmp dword [ebp - 8], esi
je 0x428b74
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 0x42a673
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.0040ec64
pop edi
pop esi
pop ebx
leave
ret
Function at 0x42d3d1
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x45a140]
push ebx
push esi
push edi
mov ecx, 0x45a140
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.004129bb
add eax, 0x24
mov eax, dword [eax]
sub eax, 0x10
call fcn.00409cf1
mov esi, eax
add esi, 0x10
cmp dword [esi - 0xc], 0
mov dword [ebp - 4], esi
je 0x42d4db
xor bl, bl
mov esi, edi
call fcn.0042d5a0
push 0x8a
lea esi, [ebp - 8]
call fcn.00422ebe
pop ecx
push dword [ebp - 8]
push 2
push dword [edi + 0xfc]
push dword [ebp + 0xc]
call fcn.00420d96
push 0
push dword [ebp - 4]
lea esi, [edi + 0x17c]
mov ecx, dword [esi]
call fcn.0042330e
mov bl, al
pop ecx
pop ecx
test bl, bl
jne 0x42d4c9
cmp byte [0x45ae9c], al
je 0x42d49b
push str.MD5_of_downloaded_file_is_invalid.
lea eax, [ebp - 0xc]
call fcn.00416d25
push eax
call fcn.00416d36
push eax
mov eax, 0x45ae6c
call fcn.004160b3
mov eax, dword [ebp - 0xc]
add eax, 0xfffffff0
call fcn.00404644
push dword [esi]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0x5c
call fcn.00408c75
mov ecx, eax
lea edx, [ebp - 0xc]
mov eax, esi
call fcn.00408d82
push dword [eax]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov eax, dword [ebp - 0xc]
add eax, 0xfffffff0
call fcn.00404644
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.00404644
test bl, bl
je 0x42d504
mov esi, dword [ebp - 4]
push dword [edi + 0xfc]
push dword [ebp + 0xc]
call fcn.0042162d
mov ecx, dword [edi + 0x88]
mov ecx, dword [ecx + 0xc]
add ecx, 4
call fcn.004129bb
mov byte [eax + 0x68], 1
mov byte [ebp + 0xf], 1
jmp 0x42d571
inc dword [edi + 0x188]
mov eax, dword [0x45a140]
mov ecx, 0x45a140
call dword [eax + 0xc]
add eax, 0x10
push 0x8b
lea esi, [ebp - 0xc]
mov dword [ebp - 8], eax
call fcn.00422ebe
pop ecx
lea edi, [ebp - 8]
call fcn.00408901
mov eax, dword [ebp - 0xc]
add eax, 0xfffffff0
call fcn.00404644
mov esi, dword [ebp - 8]
mov eax, dword [ebp + 8]
push esi
push 2
push dword [eax + 0xfc]
push dword [ebp + 0xc]
call fcn.00420d96
mov eax, dword [ebp + 0x10]
mov dword [eax + 0xc], 1
lea eax, [esi - 0x10]
mov byte [ebp + 0xf], 0
call fcn.00404644
mov edi, dword [ebp + 8]
mov esi, dword [ebp - 4]
cmp dword [esi - 0xc], 0
je 0x42d583
mov bl, 1
mov esi, edi
call fcn.0042d5a0
mov esi, dword [ebp - 4]
lea eax, [esi - 0x10]
call fcn.00404644
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00404644
mov al, byte [ebp + 0xf]
pop edi
pop esi
pop ebx
leave
ret 0xc