joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4087f0
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x448f3d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x464
push ebx
push esi
push edi
mov dword [ebp - 4], 0
push dword [ebp + 8]
push ecx
mov esi, esp
mov dword [ebp - 0x18], esi
call fcn.00401620
mov ecx, eax
test ecx, ecx
je 0x4089a0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi], eax
push str.V2g0GdHIfVRyh9QRh4
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.004038c0
test al, al
jne 0x40885c
push 0x13
push str.V2g0GdHIfVRyh9QRh4
mov ecx, esi
call fcn.00403de0
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call fcn.004023d0
add esp, 4
push dword [eax]
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
mov edx, dword [ebp - 0x14]
or ebx, 0xffffffff
add esp, 0xc
add edx, 0xfffffff0
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40889a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x46c]
push eax
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x408970
lea esp, [esp]
lea eax, [ebp - 0x440]
push eax
push dword [ebp + 8]
push ecx
mov esi, esp
mov dword [ebp - 0x18], esi
call fcn.00401620
test eax, eax
je 0x4089a0
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esi], eax
push str.dFNWXTlEkzJRJRpJCU
mov ecx, esi
mov byte [ebp - 4], 2
call fcn.004038c0
test al, al
jne 0x40890b
push 0x13
push str.dFNWXTlEkzJRJRpJCU
mov ecx, esi
call fcn.00403de0
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call fcn.004023d0
add esp, 4
push dword [eax]
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
mov edx, dword [ebp - 0x14]
add esp, 0x10
add edx, 0xfffffff0
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x408946
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x46c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4088c0
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x40898f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.004013f0
int3
Function at 0x402410
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 [0x42f55c], 3
mov dword [0x42f564], esi
mov dword [0x42f570], 0x3e8
mov dword [0x42f560], esi
mov eax, dword [0x42e8d0]
lea ecx, [eax + 1]
mov dword [0x42e8d0], ecx
mov dword [0x42f56c], eax
push 0x42f558
push dword [0x42f574]
call edi
push 0x64
push dword [0x42f578]
call ebx
cmp eax, 0x102
je 0x402424
push dword [0x42f578]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
mov dword [0x42f578], esi
mov dword [0x42f55c], 1
mov dword [0x42f564], esi
mov dword [0x42f570], esi
mov dword [0x42f560], 5
mov dword [0x42f56c], esi
push 0x42f558
push dword [0x42f574]
call dword [sym.imp.ADVAPI32.dll_SetServiceStatus]
push esi
push esi
push esi
push 0x402360
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x4024db
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop esi
pop edi
pop ebx
pop ebp
ret 4
Function at 0x402520
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.0041caf0
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [0x42e00c]
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 [0x4273e0]
movups xmmword [esp + 4], xmm0
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp eax, 0xffffffff
je 0x402734
mov eax, dword [ebp + 0xc]
sub esp, 0x1c
xor ebx, ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], ebx
movaps xmm0, xmmword [0x4273e0]
movups xmmword [esp + 4], xmm0
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ecx, eax
cmp eax, 0xffffffff
je 0x402725
xor ebx, ebx
push ebx
mov dword [ebp - 0x1001c], esi
push esi
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
push ebx
mov dword [ebp - 0x10018], edi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp esi, 0xffffffff
je 0x402714
mov edi, esi
cmp eax, 0xffffffff
mov ecx, dword [ebp - 0x10018]
mov esi, dword [ebp - 0x1001c]
je 0x402725
cmp edi, eax
jne 0x402722
mov dword [ebp - 0x10020], edi
shr edi, 0xf
je 0x402695
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 0x402714
cmp dword [ebp - 0x10014], 0x8000
jne 0x402714
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 0x402714
cmp dword [ebp - 0x10014], 0x8000
jne 0x402714
push 0x8000
lea eax, [ebp - 0x10010]
push eax
mov ebx, esi
push esi
call fcn.0040bd37
add esp, 0xc
test eax, eax
jne 0x402711
dec edi
jne 0x4025ff
mov esi, dword [ebp - 0x10020]
and esi, 0x7fff
je 0x402708
lea edi, [ebp - 0x10014]
lea eax, [ebp - 0x8010]
push 0
push edi
push esi
push eax
push dword [ebp - 0x1001c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
xor ebx, ebx
test eax, eax
je 0x402714
cmp dword [ebp - 0x10014], esi
jne 0x402714
lea ecx, [ebp - 0x10010]
push 0
push edi
mov edi, ecx
push esi
push ecx
push dword [ebp - 0x10018]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x402714
cmp dword [ebp - 0x10014], esi
jne 0x402714
push esi
push edi
lea eax, [ebp - 0x8010]
push eax
call fcn.0040bd37
add esp, 0xc
test eax, eax
jne 0x402711
mov eax, dword [ebp + 0x10]
mov dword [eax], 1
xor ebx, ebx
inc ebx
mov ecx, dword [ebp - 0x10018]
mov esi, dword [ebp - 0x1001c]
jmp 0x402725
xor ebx, ebx
inc ebx
mov eax, ecx
inc eax
cmp eax, 2
jb 0x402734
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
inc eax
cmp eax, 2
jb 0x402743
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040add1
mov eax, ebx
add esp, 0x10014
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x404280
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 [0x42e00c]
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.0040a2b7
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 0x404302
lea eax, [ebp - 0x14]
mov dword [eax], esi
lea ecx, [ebp - 0x18]
push ecx
push eax
push 0x429f20
push esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x40432d
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 0x404365
mov eax, dword [0x42f78c]
mov ecx, dword [0x42ea44]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x404382
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Could_not_obtain_file_info_of_old_service.____d_
jmp 0x404356
mov eax, dword [0x42f78c]
mov ecx, dword [0x42ea44]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x4043c1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Could_not_query_file_version_info_of_old_service.____d_
push 0x42f580
call fcn.004087d0
add esp, 0xc
xor edi, edi
push esi
call fcn.0040a5c8
add esp, 4
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040add1
mov eax, edi
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x42f78c
call fcn.0040a6d7
add esp, 4
cmp dword [0x42f78c], 0xffffffff
jne 0x40431f
mov dword [0x42f580], 0
push 0x4024f0
call fcn.0040a94c
add esp, 4
push 0x42f78c
call fcn.0040a729
add esp, 4
jmp 0x40431f
push 0x42f78c
call fcn.0040a6d7
add esp, 4
cmp dword [0x42f78c], 0xffffffff
jne 0x40434a
mov dword [0x42f580], 0
push 0x4024f0
call fcn.0040a94c
add esp, 4
push 0x42f78c
call fcn.0040a729
add esp, 4
jmp 0x40434a
Function at 0x404410
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 [0x42e00c]
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 0x4044c6
mov esi, eax
push 0xf01ff
push str.MozillaMaintenance
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
test eax, eax
je 0x404500
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 0x40449d
xor esi, esi
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
push dword [ebp - 0x14]
call ebx
cmp dword [ebp - 0x28], 1
je 0x40449d
mov eax, dword [ebp - 0x14]
add esi, eax
add esi, 0xa
cmp esi, 0xea60
ja 0x40449d
lea eax, [ebp - 0x2c]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x404473
push edi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
mov ebx, eax
test eax, eax
jne 0x4044ba
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 0x404538
mov eax, dword [0x42f78c]
mov ecx, dword [0x42ea44]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x404553
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Could_not_open_service_manager.____d_
push 0x42f580
call fcn.004087d0
add esp, 0xc
xor ebx, ebx
jmp 0x40453f
mov eax, dword [0x42f78c]
mov ecx, dword [0x42ea44]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x404596
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Could_not_open_service.____d_
push 0x42f580
call fcn.004087d0
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.0040add1
mov eax, ebx
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x42f78c
call fcn.0040a6d7
add esp, 4
cmp dword [0x42f78c], 0xffffffff
jne 0x4044e3
mov dword [0x42f580], 0
push 0x4024f0
call fcn.0040a94c
add esp, 4
push 0x42f78c
call fcn.0040a729
add esp, 4
jmp 0x4044e3
push 0x42f78c
call fcn.0040a6d7
add esp, 4
cmp dword [0x42f78c], 0xffffffff
jne 0x40451d
mov dword [0x42f580], 0
push 0x4024f0
call fcn.0040a94c
add esp, 4
push 0x42f78c
call fcn.0040a729
add esp, 4
jmp 0x40451d
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 [0x42e00c]
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 [0x42f78c]
mov ecx, dword [0x42ea44]
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 0x42f580
call fcn.004087d0
add esp, 0xc
lea edi, [ebp - 0x216]
push 0x20a
push 0
push edi
call fcn.0040cce0
add esp, 0xc
push str.updater.ini
push esi
push edi
call fcn.00408dd0
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 [0x42f78c]
mov ecx, dword [0x42ea44]
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 0x42f580
call fcn.004087d0
add esp, 0xc
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.0040add1
add esp, 0x210
pop esi
pop edi
pop ebp
ret
push 0x42f78c
call fcn.0040a6d7
add esp, 4
cmp dword [0x42f78c], 0xffffffff
jne 0x405833
mov dword [0x42f580], 0
push 0x4024f0
call fcn.0040a94c
add esp, 4
push 0x42f78c
call fcn.0040a729
add esp, 4
jmp 0x405833
push 0x42f78c
call fcn.0040a6d7
add esp, 4
cmp dword [0x42f78c], 0xffffffff
jne 0x4058ad
mov dword [0x42f580], 0
push 0x4024f0
call fcn.0040a94c
add esp, 4
push 0x42f78c
call fcn.0040a729
add esp, 4
jmp 0x4058ad
Function at 0x408e20
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 [0x42e00c]
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 0x408e6a
mov ebx, dword [ebp - 0x14]
push ebx
call fcn.0040a3f7
add esp, 4
cmp eax, 0x105
jb 0x408e7e
push ebx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040add1
mov eax, esi
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x105
push ebx
push edi
call fcn.0040a5cd
add esp, 0xc
push dword [ebp - 0x14]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
push str.Mozilla_Maintenance_Service
push edi
call fcn.00423980
add esp, 8
test eax, eax
je 0x408e6a
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x408ec2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x408e6a
push str.UpdateLogs
push edi
call fcn.00423980
add esp, 8
test eax, eax
je 0x408e6a
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x408ef2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x408e6a
xor esi, esi
inc esi
jmp 0x408e6a
Function at 0x409510
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x34
mov eax, dword [0x42e00c]
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 0x4095d7
mov ebx, eax
push 4
push dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
test eax, eax
je 0x4095fd
mov edi, eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x30], 0xcf
imul esi, eax, 0x3e8
test esi, esi
je 0x409625
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 0x40958e
cmp dword [ebp - 0x30], 1
jne 0x4095ba
jmp 0x409661
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7b
jle 0x409648
lea ecx, [eax - 0x41c]
cmp ecx, 0xa
ja 0x409692
mov edx, 0x601
bt edx, ecx
jae 0x409692
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
add ebx, 0x32
cmp ebx, esi
jb 0x40956c
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x40], eax
mov ebx, dword [ebp - 0x3c]
jmp 0x4096cb
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 0x4096da
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp edi, 0x7a
jg 0x409631
cmp edi, 5
je 0x409669
cmp edi, 6
jne 0x409677
mov esi, 0xec
jmp 0x4096da
mov dword [ebp - 0x40], 0xcf
jmp 0x4096cb
cmp edi, 0x7b
je 0x409670
cmp edi, 0x424
jne 0x409677
mov esi, 0xee
jmp 0x4096da
cmp eax, 0x56
jg 0x40967e
cmp eax, 5
mov ebx, dword [ebp - 0x3c]
je 0x4096a8
cmp eax, 6
jne 0x4096b6
mov eax, 0xd9
jmp 0x4096c5
mov ebx, dword [ebp - 0x3c]
xor eax, eax
inc eax
jmp 0x4096c8
mov esi, 0xeb
jmp 0x4096da
mov esi, 0xed
jmp 0x4096da
mov esi, 0xef
jmp 0x4096da
cmp eax, 0x57
mov ebx, dword [ebp - 0x3c]
je 0x4096af
cmp eax, 0x7a
jne 0x4096b6
mov eax, 0xdb
jmp 0x4096c5
cmp eax, 0x7c
je 0x4096bd
cmp eax, 0x45b
mov ebx, dword [ebp - 0x3c]
jne 0x4096b6
mov eax, 0xde
jmp 0x4096c5
mov eax, 0xda
jmp 0x4096c5
mov eax, 0xdc
jmp 0x4096c5
mov eax, 0xdf
jmp 0x4096c5
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.0040add1
mov eax, esi
add esp, 0x34
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4096f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x41c
mov eax, dword [0x42e00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
lea edi, [ebp - 0x424]
push 0x20a
push 0
push edi
call fcn.0040cce0
add esp, 0xc
mov ecx, edi
call fcn.00408e20
xor esi, esi
test eax, eax
je 0x409754
lea ebx, [ebp - 0x21a]
push 0x20a
push 0
push ebx
call fcn.0040cce0
add esp, 0xc
mov ecx, dword [ebp + 8]
mov edx, str..status
push ebx
call fcn.00408f00
add esp, 4
test eax, eax
jne 0x40976b
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040add1
mov eax, esi
add esp, 0x41c
pop esi
pop edi
pop ebx
pop ebp
ret
push ebx
push edi
call fcn.00423980
add esp, 8
test eax, eax
je 0x409754
sub esp, 0x1c
xor esi, esi
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], esi
movaps xmm0, xmmword [0x427460]
movups xmmword [esp + 4], xmm0
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x409754
mov edi, eax
mov eax, dword [ebp + 0xc]
sub esp, 0xc
mov dword [esp + 8], eax
mov dword [esp], ebx
call fcn.00423930
add esp, 0xc
push ebx
call fcn.00413300
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 0x409754

Function at 0x409800
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x230
mov eax, dword [0x42e00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov esi, 0x102
cmp dword [ebp + 0xc], 0
je 0x4098c7
mov ebx, dword [ebp + 8]
xor esi, esi
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
cmp eax, 0xffffffff
je 0x409881
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 0x40988b
lea eax, [ebp - 0x218]
push eax
push ebx
call fcn.00411b11
add esp, 8
test eax, eax
je 0x409895
lea eax, [ebp - 0x23c]
push eax
push edi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x409855
mov ebx, 0x490
jmp 0x409897
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x40989e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x409897
xor ebx, ebx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebx, 0x490
je 0x4098c5
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
jne 0x40982a
mov esi, 0x102
jmp 0x4098c7
xor esi, esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040add1
mov eax, esi
add esp, 0x230
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x409930
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 [0x42e00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
lea edi, [ebp - 0x21a]
push 0x20a
push 0
push edi
call fcn.0040cce0
add esp, 0xc
push ebx
call fcn.0040a3f7
add esp, 4
xor esi, esi
cmp eax, 0x104
ja 0x40999e
mov esi, dword [ebp + 0xc]
push 0x104
push ebx
push edi
call fcn.0040a5cd
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.0040add1
mov eax, esi
add esp, 0x210
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x419ed9
Capabilities:
Set environment variable

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

Function at 0x41c6f9
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041c704
Function at 0x10005560
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
pushal
call 0x1000556f
pop dword [ebp - 0x3c]
mov eax, 0x1000556f
sub dword [ebp - 0x3c], eax
mov dword [ebp - 0x4c], 0xb04ec924
add dword [ebp - 0x4c], 0x9e037c27
mov dword [ebp - 0x48], 0x36ec20b8
add dword [ebp - 0x48], 0xfb472b8d
mov dword [ebp - 0x44], 0x6ec9b842
add dword [ebp - 0x44], 0xdd828bec
mov dword [ebp - 0x40], 0xeea7a23c
add dword [ebp - 0x40], 0x11585dc4
lea eax, [ebp - 0x4c]
push eax
mov eax, 0xe0e5591f
add eax, 0x2f1b9791
add eax, dword [ebp - 0x3c]
call dword [eax]
mov dword [ebp - 0x4c], 0x9e83fbc2
sub dword [ebp - 0x4c], 0x2a11926c
mov dword [ebp - 0x48], 0x5456ee6d
add dword [ebp - 0x48], 0xed157308
mov dword [ebp - 0x44], 0xe3eea139
sub dword [ebp - 0x44], 0x807f34cd
mov dword [ebp - 0x40], 0xac7aee9c
add dword [ebp - 0x40], 0x53851164
lea ebx, [ebp - 0x4c]
push ebx
push eax
mov eax, 0xb1a191bf
sub eax, 0xa1a0a117
add eax, dword [ebp - 0x3c]
call dword [eax]
push 0x40
push 0x1000
push 0x37c17
push 0
call eax
mov ecx, 0x43da
mov edx, eax
mov ebx, 0x10023600
add ebx, dword [ebp - 0x3c]
mov esi, 0x8f3bb19d
sub esi, 0x75e72203
add dword [ebp - 0x2c], 0xf5548edb
mov edi, dword [ebx]
add edi, esi
xor dword [ebp - 0x1c], edx
mov dword [edx], edi
xor dword [ebp - 0x1c], 0x61a68e4b
add edx, 0xd000104e
sub edx, 0xd000104a
add ebx, 4
loop 0x10005680
add eax, 0x5106ac87
add eax, 0xaefa55b4
mov ebx, eax
add eax, 0xfedff308
sub eax, 0xfedff303
mov ecx, 0x897eb343
add ecx, 0x86814cbd
add ecx, dword [ebp - 0x3c]
call ebx
leave
ret