joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41b314
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x2004
call fcn.0041ec50
mov ecx, dword [esp + 0x2014]
push ebx
xor ebx, ebx
push esi
test ecx, ecx
je 0x41b32f
mov byte [ecx], bl
mov edx, dword [esp + 0x2020]
test edx, edx
je 0x41b33c
mov byte [edx], bl
mov esi, dword [esp + 0x2010]
test esi, esi
je 0x41b418
movzx eax, word [esi]
test ax, ax
je 0x41b418
push ebp
mov ebp, dword [esp + 0x201c]
push edi
mov dword [esp + 0x10], ebx
mov edi, eax
add esi, 2
cmp di, 0x3d
jne 0x41b387
test ebp, ebp
je 0x41b393
test ebx, ebx
jne 0x41b393
test ecx, ecx
je 0x41b37e
mov byte [ecx], 1
mov ebx, dword [esp + 0x201c]
jmp 0x41b3b7
cmp di, 0xd
je 0x41b3cc
cmp di, 0xa
je 0x41b3cf
mov eax, dword [esp + 0x201c]
mov word [eax], di
add eax, 2
mov edi, dword [esp + 0x202c]
mov dword [esp + 0x201c], eax
lea eax, [edi - 2]
cmp dword [esp + 0x10], eax
jge 0x41b3c7
movzx eax, word [esi]
inc dword [esp + 0x10]
mov edi, eax
test ax, ax
jne 0x41b366
jmp 0x41b3cf
mov byte [edx], 1
jmp 0x41b3d6
add esi, 2
mov edi, dword [esp + 0x202c]
mov eax, dword [esp + 0x201c]
xor ecx, ecx
mov word [eax], cx
test ebp, ebp
je 0x41b412
xor eax, eax
mov word [ebp], ax
test ebx, ebx
je 0x41b412
push 0x1000
lea eax, [esp + 0x18]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push edi
lea eax, [esp + 0x18]
push eax
push ebp
call fcn.00410602
xor eax, eax
mov word [ebx], ax
pop edi
mov eax, esi
pop ebp
jmp 0x41b41a
xor eax, eax
pop esi
pop ebx
add esp, 0x2004
ret 0x18
Function at 0x41d9f3
Capabilities:
Hide graphical window

Disassembly:
and dword [0x44844c], 0
push 1
push dword [esp + 8]
mov byte [0x448455], 1
mov byte [0x448456], 1
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 2
push dword [esp + 0xc]
call fcn.004012d3
cmp dword [0x45fca0], 0
jne 0x41da33
cmp byte [0x448463], 0
je 0x41da3c
cmp dword [0x44845c], 0
jne 0x41da4f
push 0
push 1
push 0x111
push dword [esp + 0x10]
call dword [sym.imp.USER32.dll_SendMessageW]
ret 4

Function at 0x41db4b
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1008
call fcn.0041ec50
cmp byte [0x44a470], 0
je 0x41dbda
cmp word [0x44a472], 0
je 0x41dbda
push esi
push 0x800
lea eax, [ebp - 0x1008]
push eax
push 0x44a472
call fcn.0041c6f0
lea eax, [ebp - 8]
xor esi, esi
push eax
lea eax, [ebp - 4]
push eax
push esi
push 0x20006
push esi
push esi
push esi
push str.SoftwareWinRAR_SFX
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x41dbd9
push dword [ebp + 8]
call fcn.00423e13
pop ecx
lea eax, [eax*2 + 2]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x1008]
push 1
push esi
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
leave
ret 4

Function at 0x41dbde
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2000
call fcn.0041ec50
push esi
push dword [ebp + 8]
push str.sfxcmd
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push 0x1000
lea eax, [ebp - 0x2000]
push eax
push dword [ebp + 8]
call fcn.00410371
mov esi, eax
test esi, esi
je 0x41dc36
movzx ecx, word [esi]
push ecx
jmp 0x41dc21
add esi, 2
movzx eax, word [esi]
push eax
call fcn.0041048d
test al, al
jne 0x41dc1a
push esi
push str.sfxpar
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
pop esi
leave
ret 4
Function at 0x41f993
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x41f9d2
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41f9d2
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41f9d2
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x41f9d2
cmp dword [ecx + 0x74], 0xe
jbe 0x41f9d2
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x432150
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x43217d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x43217d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x402420
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
xor esi, esi
mov edi, dword [sym.imp.ADVAPI32.dll_SetServiceStatus]
mov ebx, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [0x4327a4], 3
mov dword [0x4327ac], esi
mov dword [0x4327b8], 0x3e8
mov dword [0x4327a8], esi
mov eax, dword [0x431a60]
lea ecx, [eax + 1]
mov dword [0x431a60], ecx
mov dword [0x4327b4], eax
push 0x4327a0
push dword [0x4327bc]
call edi
push 0x64
push dword [0x4327c0]
call ebx
cmp eax, 0x102
je 0x402434
push dword [0x4327c0]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
mov dword [0x4327c0], esi
mov dword [0x4327a4], 1
mov dword [0x4327ac], esi
mov dword [0x4327b8], esi
mov dword [0x4327a8], 5
mov dword [0x4327b4], esi
push 0x4327a0
push dword [0x4327bc]
call dword [sym.imp.ADVAPI32.dll_SetServiceStatus]
push esi
push esi
push esi
push 0x402370
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x4024eb
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop esi
pop edi
pop ebx
pop ebp
ret 4
Function at 0x402530
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov eax, 0x10014
call fcn.0041d490
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [0x431014]
xor ecx, ebp
mov dword [ebp - 0x10], ecx
xor ebx, ebx
mov dword [edx], ebx
sub esp, 0x1c
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], ebx
movaps xmm0, xmmword [0x429a30]
movups xmmword [esp + 4], xmm0
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x1001c], eax
cmp eax, 0xffffffff
je 0x4026a2
mov eax, dword [ebp + 0xc]
sub esp, 0x1c
xor ebx, ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], ebx
movaps xmm0, xmmword [0x429a30]
movups xmmword [esp + 4], xmm0
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp eax, 0xffffffff
je 0x402693
xor ebx, ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetFileSize]
push ebx
push dword [ebp - 0x1001c]
call edi
mov ecx, edi
mov edi, eax
push ebx
mov dword [ebp - 0x10018], esi
push esi
call ecx
cmp edi, 0xffffffff
je 0x402688
cmp eax, 0xffffffff
mov esi, dword [ebp - 0x10018]
je 0x402693
cmp edi, eax
jne 0x402690
mov dword [ebp - 0x10020], edi
cmp edi, 0x8000
jae 0x4026d1
mov edi, dword [ebp - 0x10020]
and edi, 0x7fff
je 0x40267c
lea ecx, [ebp - 0x10014]
lea esi, [ebp - 0x8010]
push 0
push ecx
push edi
push esi
push dword [ebp - 0x1001c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
xor ebx, ebx
test eax, eax
je 0x402688
cmp dword [ebp - 0x10014], edi
jne 0x402688
lea edx, [ebp - 0x10010]
push 0
lea ecx, [ebp - 0x10014]
push ecx
push edi
push edx
push dword [ebp - 0x10018]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x402688
cmp dword [ebp - 0x10014], edi
jne 0x402688
push edi
lea eax, [ebp - 0x10010]
push eax
push esi
call fcn.0040b5ae
add esp, 0xc
test eax, eax
jne 0x402685
mov eax, dword [ebp + 0x10]
mov dword [eax], 1
xor ebx, ebx
inc ebx
mov esi, dword [ebp - 0x10018]
jmp 0x402693
xor ebx, ebx
inc ebx
mov eax, esi
inc eax
cmp eax, 2
jb 0x4026a2
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x1001c]
inc eax
cmp eax, 2
jb 0x4026ba
push dword [ebp - 0x1001c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040ac85
mov eax, ebx
add esp, 0x10014
pop esi
pop edi
pop ebx
pop ebp
ret
mov edi, dword [ebp - 0x10020]
shr edi, 0xf
lea ebx, [ebp - 0x8010]
push 0
lea eax, [ebp - 0x10014]
push eax
push 0x8000
mov esi, ebx
push ebx
push dword [ebp - 0x1001c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
xor ebx, ebx
test eax, eax
je 0x402688
cmp dword [ebp - 0x10014], 0x8000
jne 0x402688
push 0
lea eax, [ebp - 0x10014]
push eax
push 0x8000
lea eax, [ebp - 0x10010]
push eax
push dword [ebp - 0x10018]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x402688
cmp dword [ebp - 0x10014], 0x8000
jne 0x402688
push 0x8000
lea eax, [ebp - 0x10010]
push eax
mov ebx, esi
push esi
call fcn.0040b5ae
add esp, 0xc
test eax, eax
jne 0x402685
dec edi
jne 0x4026e0
jmp 0x402605
Function at 0x4042d0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x10
mov dword [ebp - 0x1c], edx
mov ebx, ecx
mov eax, dword [0x431014]
xor eax, ebp
mov dword [ebp - 0x10], eax
xor eax, eax
push eax
push ecx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
push eax
call fcn.00409f5e
add esp, 4
mov esi, eax
push eax
push edi
xor eax, eax
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x404352
lea eax, [ebp - 0x14]
mov dword [eax], esi
lea ecx, [ebp - 0x18]
push ecx
push eax
push 0x42c552
push esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x40437d
mov eax, dword [ebp - 0x14]
movzx ecx, word [eax + 0xa]
mov edx, dword [ebp - 0x1c]
mov dword [edx], ecx
mov ecx, dword [ebp + 8]
movzx edx, word [eax + 8]
mov dword [ecx], edx
mov ecx, dword [ebp + 0xc]
movzx edx, word [eax + 0xe]
mov dword [ecx], edx
mov ecx, dword [ebp + 0x10]
movzx eax, word [eax + 0xc]
mov dword [ecx], eax
xor edi, edi
inc edi
jmp 0x4043b5
mov eax, dword [0x4329d4]
mov ecx, dword [0x431bbc]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x4043d2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Could_not_obtain_file_info_of_old_service.____lu_
jmp 0x4043a6
mov eax, dword [0x4329d4]
mov ecx, dword [0x431bbc]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x404411
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Could_not_query_file_version_info_of_old_service.____lu_
push 0x4327c8
call fcn.004086b0
add esp, 0xc
xor edi, edi
push esi
call fcn.0040a1ea
add esp, 4
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040ac85
mov eax, edi
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x4329d4
call fcn.0040a2c7
add esp, 4
cmp dword [0x4329d4], 0xffffffff
jne 0x40436f
mov dword [0x4327c8], 0
push 0x402500
call fcn.0040a48c
add esp, 4
push 0x4329d4
call fcn.0040a319
add esp, 4
jmp 0x40436f
push 0x4329d4
call fcn.0040a2c7
add esp, 4
cmp dword [0x4329d4], 0xffffffff
jne 0x40439a
mov dword [0x4327c8], 0
push 0x402500
call fcn.0040a48c
add esp, 4
push 0x4329d4
call fcn.0040a319
add esp, 4
jmp 0x40439a
Function at 0x404460
Capabilities:
Delete service
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x24
mov eax, dword [0x431014]
xor eax, ebp
mov dword [ebp - 0x10], eax
xor eax, eax
push 0xf003f
push eax
push eax
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
test eax, eax
je 0x404516
mov esi, eax
push 0xf01ff
push str.MozillaMaintenance
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
test eax, eax
je 0x404550
mov edi, eax
mov dword [ebp - 0x30], esi
lea eax, [ebp - 0x2c]
push eax
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x4044ed
xor esi, esi
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
push dword [ebp - 0x14]
call ebx
cmp dword [ebp - 0x28], 1
je 0x4044ed
mov eax, dword [ebp - 0x14]
add esi, eax
add esi, 0xa
cmp esi, 0xea60
ja 0x4044ed
lea eax, [ebp - 0x2c]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x4044c3
push edi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
mov ebx, eax
test eax, eax
jne 0x40450a
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ebx, ebx
cmp eax, 0x430
sete bl
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, dword [ebp - 0x30]
jmp 0x404588
mov eax, dword [0x4329d4]
mov ecx, dword [0x431bbc]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x4045a3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Could_not_open_service_manager.____lu_
push 0x4327c8
call fcn.004086b0
add esp, 0xc
xor ebx, ebx
jmp 0x40458f
mov eax, dword [0x4329d4]
mov ecx, dword [0x431bbc]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x4045e6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Could_not_open_service.____lu_
push 0x4327c8
call fcn.004086b0
add esp, 0xc
xor ebx, ebx
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040ac85
mov eax, ebx
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x4329d4
call fcn.0040a2c7
add esp, 4
cmp dword [0x4329d4], 0xffffffff
jne 0x404533
mov dword [0x4327c8], 0
push 0x402500
call fcn.0040a48c
add esp, 4
push 0x4329d4
call fcn.0040a319
add esp, 4
jmp 0x404533
push 0x4329d4
call fcn.0040a2c7
add esp, 4
cmp dword [0x4329d4], 0xffffffff
jne 0x40456d
mov dword [0x4327c8], 0
push 0x402500
call fcn.0040a48c
add esp, 4
push 0x4329d4
call fcn.0040a319
add esp, 4
jmp 0x40456d
Function at 0x4057d0
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
sub esp, 0x210
mov eax, dword [0x431014]
xor eax, ebp
mov dword [ebp - 0xc], eax
cmp word [ecx], 0
je 0x4058c0
mov esi, ecx
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x405846
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
je 0x405846
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x405846
mov eax, dword [0x4329d4]
mov ecx, dword [0x431bbc]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x4058d4
push esi
push str.Could_not_delete_service_updater_path:__ls.
push 0x4327c8
call fcn.004086b0
add esp, 0xc
lea edi, [ebp - 0x216]
push 0x20a
push 0
push edi
call fcn.0040c4c0
add esp, 0xc
push str.updater.ini
push esi
push edi
call fcn.00407960
add esp, 0xc
test eax, eax
je 0x4058c0
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x4058c0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
je 0x4058c0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x4058c0
mov eax, dword [0x4329d4]
mov ecx, dword [0x431bbc]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x405917
push edi
push str.Could_not_delete_service_updater_INI_path:__ls.
push 0x4327c8
call fcn.004086b0
add esp, 0xc
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.0040ac85
add esp, 0x210
pop esi
pop edi
pop ebp
ret
push 0x4329d4
call fcn.0040a2c7
add esp, 4
cmp dword [0x4329d4], 0xffffffff
jne 0x405833
mov dword [0x4327c8], 0
push 0x402500
call fcn.0040a48c
add esp, 4
push 0x4329d4
call fcn.0040a319
add esp, 4
jmp 0x405833
push 0x4329d4
call fcn.0040a2c7
add esp, 4
cmp dword [0x4329d4], 0xffffffff
jne 0x4058ad
mov dword [0x4327c8], 0
push 0x402500
call fcn.0040a48c
add esp, 4
push 0x4329d4
call fcn.0040a319
add esp, 4
jmp 0x4058ad
Function at 0x4079b0
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 8
mov edi, ecx
mov eax, dword [0x431014]
xor eax, ebp
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x14]
push eax
push 0
push 0x8000
push section..rdata
call sub.SHELL32.dll_SHGetKnownFolderPath
xor esi, esi
test eax, eax
js 0x4079fa
mov ebx, dword [ebp - 0x14]
push ebx
call fcn.0040a09e
add esp, 4
cmp eax, 0x105
jb 0x407a0e
push ebx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040ac85
mov eax, esi
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x105
push ebx
push edi
call fcn.0040a1ef
add esp, 0xc
push dword [ebp - 0x14]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
push str.Mozilla_Maintenance_Service
push edi
call fcn.00424b70
add esp, 8
test eax, eax
je 0x4079fa
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x407a52
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4079fa
push str.UpdateLogs
push edi
call fcn.00424b70
add esp, 8
test eax, eax
je 0x4079fa
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x407a82
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4079fa
xor esi, esi
inc esi
jmp 0x4079fa
Function at 0x4080a0
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x34
mov eax, dword [0x431014]
xor eax, ebp
mov dword [ebp - 0x10], eax
xor eax, eax
push 5
push eax
push eax
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
test eax, eax
je 0x408167
mov ebx, eax
push 4
push dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
test eax, eax
je 0x40818d
mov edi, eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x30], 0xcf
imul esi, eax, 0x3e8
test esi, esi
je 0x4081b5
mov dword [ebp - 0x3c], ebx
xor ebx, ebx
lea eax, [ebp - 0x38]
push eax
push 0x24
lea eax, [ebp - 0x34]
push eax
push 0
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x40811e
cmp dword [ebp - 0x30], 1
jne 0x40814a
jmp 0x4081f1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7b
jle 0x4081d8
lea ecx, [eax - 0x41c]
cmp ecx, 0xa
ja 0x408222
mov edx, 0x601
bt edx, ecx
jae 0x408222
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
add ebx, 0x32
cmp ebx, esi
jb 0x4080fc
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x40], eax
mov ebx, dword [ebp - 0x3c]
jmp 0x40825b
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
cmp eax, 0x429
sete cl
xor ecx, 0xff
cmp eax, 5
mov esi, 0xfd
cmovne esi, ecx
jmp 0x40826a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp edi, 0x7a
jg 0x4081c1
cmp edi, 5
je 0x4081f9
cmp edi, 6
jne 0x408207
mov esi, 0xec
jmp 0x40826a
mov dword [ebp - 0x40], 0xcf
jmp 0x40825b
cmp edi, 0x7b
je 0x408200
cmp edi, 0x424
jne 0x408207
mov esi, 0xee
jmp 0x40826a
cmp eax, 0x56
jg 0x40820e
cmp eax, 5
mov ebx, dword [ebp - 0x3c]
je 0x408238
cmp eax, 6
jne 0x408246
mov eax, 0xd9
jmp 0x408255
mov ebx, dword [ebp - 0x3c]
xor eax, eax
inc eax
jmp 0x408258
mov esi, 0xeb
jmp 0x40826a
mov esi, 0xed
jmp 0x40826a
mov esi, 0xef
jmp 0x40826a
cmp eax, 0x57
mov ebx, dword [ebp - 0x3c]
je 0x40823f
cmp eax, 0x7a
jne 0x408246
mov eax, 0xdb
jmp 0x408255
cmp eax, 0x7c
je 0x40824d
cmp eax, 0x45b
mov ebx, dword [ebp - 0x3c]
jne 0x408246
mov eax, 0xde
jmp 0x408255
mov eax, 0xda
jmp 0x408255
mov eax, 0xdc
jmp 0x408255
mov eax, 0xdf
jmp 0x408255
mov eax, 0xdd
mov ebx, dword [ebp - 0x3c]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x40], eax
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
call esi
push ebx
call esi
mov esi, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040ac85
mov eax, esi
add esp, 0x34
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x408280
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x41c
mov eax, dword [0x431014]
xor eax, ebp
mov dword [ebp - 0x10], eax
lea edi, [ebp - 0x424]
push 0x20a
push 0
push edi
call fcn.0040c4c0
add esp, 0xc
mov ecx, edi
call fcn.004079b0
xor esi, esi
test eax, eax
je 0x4082e4
lea ebx, [ebp - 0x21a]
push 0x20a
push 0
push ebx
call fcn.0040c4c0
add esp, 0xc
mov ecx, dword [ebp + 8]
mov edx, str..status
push ebx
call fcn.00407a90
add esp, 4
test eax, eax
jne 0x4082fb
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040ac85
mov eax, esi
add esp, 0x41c
pop esi
pop edi
pop ebx
pop ebp
ret
push ebx
push edi
call fcn.00424b70
add esp, 8
test eax, eax
je 0x4082e4
sub esp, 0x1c
xor esi, esi
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], esi
movaps xmm0, xmmword [0x429a80]
movups xmmword [esp + 4], xmm0
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x4082e4
mov edi, eax
mov eax, dword [ebp + 0xc]
sub esp, 0xc
mov dword [esp + 8], eax
mov dword [esp], ebx
call fcn.00424c90
add esp, 0xc
push ebx
call fcn.00413b00
add esp, 4
mov esi, eax
lea eax, [ebp - 0x428]
push 0
push eax
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ebx, eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
setne al
lea ecx, [ebp - 0x428]
cmp dword [ecx], esi
sete cl
and cl, al
movzx esi, cl
jmp 0x4082e4

Function at 0x408390
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x230
mov eax, dword [0x431014]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov esi, 0x102
cmp dword [ebp + 0xc], 0
je 0x408457
mov ebx, dword [ebp + 8]
xor esi, esi
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
cmp eax, 0xffffffff
je 0x408411
mov edi, eax
mov dword [ebp - 0x23c], 0x22c
lea eax, [ebp - 0x23c]
push eax
push edi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x40841b
lea eax, [ebp - 0x218]
push eax
push ebx
call fcn.00411bcd
add esp, 8
test eax, eax
je 0x408425
lea eax, [ebp - 0x23c]
push eax
push edi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x4083e5
mov ebx, 0x490
jmp 0x408427
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x40842e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x408427
xor ebx, ebx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebx, 0x490
je 0x408455
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
jne 0x4083ba
mov esi, 0x102
jmp 0x408457
xor esi, esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040ac85
mov eax, esi
add esp, 0x230
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4084c0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x210
mov ebx, dword [ebp + 8]
mov eax, dword [0x431014]
xor eax, ebp
mov dword [ebp - 0x10], eax
lea edi, [ebp - 0x21a]
push 0x20a
push 0
push edi
call fcn.0040c4c0
add esp, 0xc
push ebx
call fcn.0040a09e
add esp, 4
xor esi, esi
cmp eax, 0x104
ja 0x40852e
mov esi, dword [ebp + 0xc]
push 0x104
push ebx
push edi
call fcn.0040a1ef
add esp, 0xc
push edi
call dword [sym.imp.SHLWAPI.dll_PathStripToRootW]
push edi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
xor ecx, ecx
cmp eax, 3
sete cl
mov dword [esi], ecx
xor esi, esi
inc esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040ac85
mov eax, esi
add esp, 0x210
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x4086b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 8
mov esi, dword [ebp + 8]
mov eax, dword [0x431014]
xor eax, ebp
mov dword [ebp - 0x10], eax
cmp dword [esi], 0
je 0x408719
lea eax, [ebp + 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
inc eax
push dword [esi]
push eax
push 0xd
push str._Warning:
call fcn.0041330b
add esp, 0x10
mov ebx, dword [ebp - 0x14]
mov edi, dword [esi]
call fcn.00401060
push ebx
push 0
push dword [ebp + 0xc]
push edi
push dword [eax + 4]
push dword [eax]
call fcn.0040cd57
add esp, 0x18
push dword [esi]
xor eax, eax
inc eax
push eax
push 4
push str._n
call fcn.0041330b
add esp, 0x10
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040ac85
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x419586
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004197cf

Function at 0x41d12f
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041d13a