joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401d10
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x54
mov edi, edx
mov esi, ecx
mov eax, dword [0x43300c]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov eax, dword [ecx + 8]
lea ecx, [eax + 1]
cmp ecx, 2
jae 0x401e25
mov eax, dword [ebp + 8]
mov dword [esi + 8], 0xffffffff
mov dword [esi + 0xc], 0
mov ecx, dword [esi + 0x10]
test ecx, ecx
jne 0x401e36
mov edx, dword [edi + 4]
test eax, eax
je 0x401e40
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
sub esp, 4
mov dword [esi + 4], eax
mov dword [esi], 2
mov eax, dword [esi + 8]
cmp eax, 0xffffffff
jne 0x401e4c
mov eax, dword [edi + 4]
movaps xmm0, xmmword [0x42b490]
movups xmmword [esp + 4], xmm0
mov dword [esp], eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x2000000
call dword [sym.imp.KERNEL32.dll_CreateFileW]
sub esp, 0x1c
mov ebx, eax
cmp eax, 0xffffffff
je 0x401e5d
lea edi, [ebp - 0x44]
mov dword [esp + 4], edi
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
sub esp, 8
xor ecx, ecx
cmp dword [edi + 0x28], 1
seta cl
test eax, eax
mov eax, 2
cmovne eax, ecx
mov edx, 2
mov dword [esi], edx
mov edi, dword [esi + 4]
mov ecx, edi
shr ecx, 0xa
and ecx, 1
cmp edi, 0xffffffff
cmove ecx, edx
xor edx, edx
test eax, eax
je 0x401dfd
cmp ecx, 1
jne 0x401e6a
mov dword [esi], edx
lea eax, [ebx + 1]
cmp eax, 2
jb 0x401e13
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040dac1
add esp, 0x54
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
jmp 0x401d36
mov word [ecx], 0
jmp 0x401d52
mov ecx, esi
call fcn.00426850
jmp 0x401d6c
xor ebx, ebx
test byte [esi + 4], 0x10
jne 0x401d7e
jmp 0x401db4
mov eax, 2
xor ebx, ebx
dec ebx
jmp 0x401dda
cmp eax, 1
jne 0x401dff
test ecx, ecx
jne 0x401dff
xor edx, edx
inc edx
jmp 0x401dfd
Function at 0x4036e0
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 [0x43455c], 3
mov dword [0x434564], esi
mov dword [0x434570], 0x3e8
mov dword [0x434560], esi
mov eax, dword [0x4338d0]
lea ecx, [eax + 1]
mov dword [0x4338d0], ecx
mov dword [0x43456c], eax
push 0x434558
push dword [0x434574]
call edi
push 0x64
push dword [0x434578]
call ebx
cmp eax, 0x102
je 0x4036f4
push dword [0x434578]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
mov dword [0x434578], esi
mov dword [0x43455c], 1
mov dword [0x434564], esi
mov dword [0x434570], esi
mov dword [0x434560], 5
mov dword [0x43456c], esi
push 0x434558
push dword [0x434574]
call dword [sym.imp.ADVAPI32.dll_SetServiceStatus]
push esi
push esi
push esi
push 0x403630
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x4037ab
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop esi
pop edi
pop ebx
pop ebp
ret 4
Function at 0x4037f0
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.0041f770
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [0x43300c]
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 [0x42b400]
movups xmmword [esp + 4], xmm0
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp eax, 0xffffffff
je 0x403a04
mov eax, dword [ebp + 0xc]
sub esp, 0x1c
xor ebx, ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], ebx
movaps xmm0, xmmword [0x42b400]
movups xmmword [esp + 4], xmm0
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ecx, eax
cmp eax, 0xffffffff
je 0x4039f5
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 0x4039e4
mov edi, esi
cmp eax, 0xffffffff
mov ecx, dword [ebp - 0x10018]
mov esi, dword [ebp - 0x1001c]
je 0x4039f5
cmp edi, eax
jne 0x4039f2
mov dword [ebp - 0x10020], edi
shr edi, 0xf
je 0x403965
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 0x4039e4
cmp dword [ebp - 0x10014], 0x8000
jne 0x4039e4
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 0x4039e4
cmp dword [ebp - 0x10014], 0x8000
jne 0x4039e4
push 0x8000
lea eax, [ebp - 0x10010]
push eax
mov ebx, esi
push esi
call fcn.0040ea27
add esp, 0xc
test eax, eax
jne 0x4039e1
dec edi
jne 0x4038cf
mov esi, dword [ebp - 0x10020]
and esi, 0x7fff
je 0x4039d8
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 0x4039e4
cmp dword [ebp - 0x10014], esi
jne 0x4039e4
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 0x4039e4
cmp dword [ebp - 0x10014], esi
jne 0x4039e4
push esi
push edi
lea eax, [ebp - 0x8010]
push eax
call fcn.0040ea27
add esp, 0xc
test eax, eax
jne 0x4039e1
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 0x4039f5
xor ebx, ebx
inc ebx
mov eax, ecx
inc eax
cmp eax, 2
jb 0x403a04
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
inc eax
cmp eax, 2
jb 0x403a13
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040dac1
mov eax, ebx
add esp, 0x10014
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x405550
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 [0x43300c]
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.0040cf57
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 0x4055d2
lea eax, [ebp - 0x14]
mov dword [eax], esi
lea ecx, [ebp - 0x18]
push ecx
push eax
push 0x42e110
push esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x4055fd
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 0x405635
mov eax, dword [0x43478c]
mov ecx, dword [0x433a44]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x405652
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Could_not_obtain_file_info_of_old_service.____d_
jmp 0x405626
mov eax, dword [0x43478c]
mov ecx, dword [0x433a44]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x405691
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Could_not_query_file_version_info_of_old_service.____d_
push 0x434580
call fcn.0040b470
add esp, 0xc
xor edi, edi
push esi
call fcn.0040d268
add esp, 4
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040dac1
mov eax, edi
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x43478c
call fcn.0040d3c7
add esp, 4
cmp dword [0x43478c], 0xffffffff
jne 0x4055ef
mov dword [0x434580], 0
push 0x4037c0
call fcn.0040d63c
add esp, 4
push 0x43478c
call fcn.0040d419
add esp, 4
jmp 0x4055ef
push 0x43478c
call fcn.0040d3c7
add esp, 4
cmp dword [0x43478c], 0xffffffff
jne 0x40561a
mov dword [0x434580], 0
push 0x4037c0
call fcn.0040d63c
add esp, 4
push 0x43478c
call fcn.0040d419
add esp, 4
jmp 0x40561a
Function at 0x4056e0
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 [0x43300c]
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 0x405796
mov esi, eax
push 0xf01ff
push str.MozillaMaintenance
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
test eax, eax
je 0x4057d0
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 0x40576d
xor esi, esi
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
push dword [ebp - 0x14]
call ebx
cmp dword [ebp - 0x28], 1
je 0x40576d
mov eax, dword [ebp - 0x14]
add esi, eax
add esi, 0xa
cmp esi, 0xea60
ja 0x40576d
lea eax, [ebp - 0x2c]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x405743
push edi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
mov ebx, eax
test eax, eax
jne 0x40578a
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 0x405808
mov eax, dword [0x43478c]
mov ecx, dword [0x433a44]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x405823
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Could_not_open_service_manager.____d_
push 0x434580
call fcn.0040b470
add esp, 0xc
xor ebx, ebx
jmp 0x40580f
mov eax, dword [0x43478c]
mov ecx, dword [0x433a44]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x405866
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Could_not_open_service.____d_
push 0x434580
call fcn.0040b470
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.0040dac1
mov eax, ebx
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x43478c
call fcn.0040d3c7
add esp, 4
cmp dword [0x43478c], 0xffffffff
jne 0x4057b3
mov dword [0x434580], 0
push 0x4037c0
call fcn.0040d63c
add esp, 4
push 0x43478c
call fcn.0040d419
add esp, 4
jmp 0x4057b3
push 0x43478c
call fcn.0040d3c7
add esp, 4
cmp dword [0x43478c], 0xffffffff
jne 0x4057ed
mov dword [0x434580], 0
push 0x4037c0
call fcn.0040d63c
add esp, 4
push 0x43478c
call fcn.0040d419
add esp, 4
jmp 0x4057ed
Function at 0x406aa0
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
sub esp, 0x210
mov eax, dword [0x43300c]
xor eax, ebp
mov dword [ebp - 0xc], eax
cmp word [ecx], 0
je 0x406b90
mov esi, ecx
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x406b16
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
je 0x406b16
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x406b16
mov eax, dword [0x43478c]
mov ecx, dword [0x433a44]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x406ba4
push esi
push str.Could_not_delete_service_updater_path:__ls.
push 0x434580
call fcn.0040b470
add esp, 0xc
lea edi, [ebp - 0x216]
push 0x20a
push 0
push edi
call fcn.0040f9d0
add esp, 0xc
push str.updater.ini
push esi
push edi
call fcn.0040ba70
add esp, 0xc
test eax, eax
je 0x406b90
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x406b90
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
je 0x406b90
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x406b90
mov eax, dword [0x43478c]
mov ecx, dword [0x433a44]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x406be7
push edi
push str.Could_not_delete_service_updater_INI_path:__ls.
push 0x434580
call fcn.0040b470
add esp, 0xc
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.0040dac1
add esp, 0x210
pop esi
pop edi
pop ebp
ret
push 0x43478c
call fcn.0040d3c7
add esp, 4
cmp dword [0x43478c], 0xffffffff
jne 0x406b03
mov dword [0x434580], 0
push 0x4037c0
call fcn.0040d63c
add esp, 4
push 0x43478c
call fcn.0040d419
add esp, 4
jmp 0x406b03
push 0x43478c
call fcn.0040d3c7
add esp, 4
cmp dword [0x43478c], 0xffffffff
jne 0x406b7d
mov dword [0x434580], 0
push 0x4037c0
call fcn.0040d63c
add esp, 4
push 0x43478c
call fcn.0040d419
add esp, 4
jmp 0x406b7d
Function at 0x40a170
Capabilities:
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x2c
mov esi, edx
mov edi, ecx
mov eax, dword [0x43300c]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov eax, dword [edx + 8]
lea ecx, [eax + 1]
cmp ecx, 2
jb 0x40a199
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 8], 0xffffffff
mov eax, dword [esi + 4]
test al, 1
je 0x40a1c1
mov ecx, eax
and ecx, 0xfffffffe
cmp eax, 0xffffffff
mov eax, 0x80
cmovne eax, ecx
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor esi, esi
lea ebx, [ebp - 0x18]
mov dword [ebx], esi
mov dword [ebx + 4], esi
mov eax, dword [edi]
inc eax
push dword [edi + 4]
push 0x42e202
push eax
push ebx
call section..text
add esp, 0x10
lea eax, [ebp - 0x38]
mov dword [eax], esi
mov dword [eax + 4], 3
mov ebx, dword [ebx + 4]
mov dword [eax + 8], ebx
mov dword [eax + 0xc], esi
mov word [eax + 0x10], 0x654
mov dword [eax + 0x1a], esi
push eax
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
test eax, 0xfffffffd
je 0x40a22d
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x40a22d
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test ebx, ebx
je 0x40a23a
push ebx
call fcn.0040d268
add esp, 4
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040dac1
mov eax, esi
add esp, 0x2c
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x40bac0
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 [0x43300c]
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 0x40bb0a
mov ebx, dword [ebp - 0x14]
push ebx
call fcn.0040d0bb
add esp, 4
cmp eax, 0x105
jb 0x40bb1e
push ebx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040dac1
mov eax, esi
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x105
push ebx
push edi
call fcn.0040d26d
add esp, 0xc
push dword [ebp - 0x14]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
push str.Mozilla_Maintenance_Service
push edi
call fcn.00426d10
add esp, 8
test eax, eax
je 0x40bb0a
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40bb62
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40bb0a
push str.UpdateLogs
push edi
call fcn.00426d10
add esp, 8
test eax, eax
je 0x40bb0a
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40bb92
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40bb0a
xor esi, esi
inc esi
jmp 0x40bb0a
Function at 0x40c1b0
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x34
mov eax, dword [0x43300c]
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 0x40c277
mov ebx, eax
push 4
push dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
test eax, eax
je 0x40c29d
mov edi, eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x30], 0xcf
imul esi, eax, 0x3e8
test esi, esi
je 0x40c2c5
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 0x40c22e
cmp dword [ebp - 0x30], 1
jne 0x40c25a
jmp 0x40c301
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7b
jle 0x40c2e8
lea ecx, [eax - 0x41c]
cmp ecx, 0xa
ja 0x40c332
mov edx, 0x601
bt edx, ecx
jae 0x40c332
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
add ebx, 0x32
cmp ebx, esi
jb 0x40c20c
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x40], eax
mov ebx, dword [ebp - 0x3c]
jmp 0x40c36b
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 0x40c37a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp edi, 0x7a
jg 0x40c2d1
cmp edi, 5
je 0x40c309
cmp edi, 6
jne 0x40c317
mov esi, 0xec
jmp 0x40c37a
mov dword [ebp - 0x40], 0xcf
jmp 0x40c36b
cmp edi, 0x7b
je 0x40c310
cmp edi, 0x424
jne 0x40c317
mov esi, 0xee
jmp 0x40c37a
cmp eax, 0x56
jg 0x40c31e
cmp eax, 5
mov ebx, dword [ebp - 0x3c]
je 0x40c348
cmp eax, 6
jne 0x40c356
mov eax, 0xd9
jmp 0x40c365
mov ebx, dword [ebp - 0x3c]
xor eax, eax
inc eax
jmp 0x40c368
mov esi, 0xeb
jmp 0x40c37a
mov esi, 0xed
jmp 0x40c37a
mov esi, 0xef
jmp 0x40c37a
cmp eax, 0x57
mov ebx, dword [ebp - 0x3c]
je 0x40c34f
cmp eax, 0x7a
jne 0x40c356
mov eax, 0xdb
jmp 0x40c365
cmp eax, 0x7c
je 0x40c35d
cmp eax, 0x45b
mov ebx, dword [ebp - 0x3c]
jne 0x40c356
mov eax, 0xde
jmp 0x40c365
mov eax, 0xda
jmp 0x40c365
mov eax, 0xdc
jmp 0x40c365
mov eax, 0xdf
jmp 0x40c365
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.0040dac1
mov eax, esi
add esp, 0x34
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x40c390
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x41c
mov eax, dword [0x43300c]
xor eax, ebp
mov dword [ebp - 0x10], eax
lea edi, [ebp - 0x424]
push 0x20a
push 0
push edi
call fcn.0040f9d0
add esp, 0xc
mov ecx, edi
call fcn.0040bac0
xor esi, esi
test eax, eax
je 0x40c3f4
lea ebx, [ebp - 0x21a]
push 0x20a
push 0
push ebx
call fcn.0040f9d0
add esp, 0xc
mov ecx, dword [ebp + 8]
mov edx, str..status
push ebx
call fcn.0040bba0
add esp, 4
test eax, eax
jne 0x40c40b
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040dac1
mov eax, esi
add esp, 0x41c
pop esi
pop edi
pop ebx
pop ebp
ret
push ebx
push edi
call fcn.00426d10
add esp, 8
test eax, eax
je 0x40c3f4
sub esp, 0x1c
xor esi, esi
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], esi
movaps xmm0, xmmword [0x42b550]
movups xmmword [esp + 4], xmm0
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x40c3f4
mov edi, eax
mov eax, dword [ebp + 0xc]
sub esp, 0xc
mov dword [esp + 8], eax
mov dword [esp], ebx
call fcn.00426b90
add esp, 0xc
push ebx
call fcn.00415fd0
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 0x40c3f4

Function at 0x40c4a0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x230
mov eax, dword [0x43300c]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov esi, 0x102
cmp dword [ebp + 0xc], 0
je 0x40c567
mov ebx, dword [ebp + 8]
xor esi, esi
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
cmp eax, 0xffffffff
je 0x40c521
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 0x40c52b
lea eax, [ebp - 0x218]
push eax
push ebx
call fcn.004147e1
add esp, 8
test eax, eax
je 0x40c535
lea eax, [ebp - 0x23c]
push eax
push edi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x40c4f5
mov ebx, 0x490
jmp 0x40c537
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x40c53e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x40c537
xor ebx, ebx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebx, 0x490
je 0x40c565
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
jne 0x40c4ca
mov esi, 0x102
jmp 0x40c567
xor esi, esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040dac1
mov eax, esi
add esp, 0x230
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x40c5d0
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 [0x43300c]
xor eax, ebp
mov dword [ebp - 0x10], eax
lea edi, [ebp - 0x21a]
push 0x20a
push 0
push edi
call fcn.0040f9d0
add esp, 0xc
push ebx
call fcn.0040d0bb
add esp, 4
xor esi, esi
cmp eax, 0x104
ja 0x40c63e
mov esi, dword [ebp + 0xc]
push 0x104
push ebx
push edi
call fcn.0040d26d
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.0040dac1
mov eax, esi
add esp, 0x210
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x41cb59
Capabilities:
Set environment variable

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

Function at 0x41f379
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041f384
Function at 0x426850
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
mov ebx, edx
mov esi, ecx
mov eax, dword [0x43300c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [esi + 4], eax
mov ecx, eax
shr ecx, 4
and ecx, 1
cmp eax, 0xffffffff
mov edi, 2
cmovne edi, ecx
cmp edi, 2
je 0x4269f8
cmp edi, 1
mov dword [ebp - 0x24], ebx
jne 0x426965
mov dword [ebp - 0x20], esi
push 0x20a
call fcn.0040cf57
add esp, 4
mov esi, ebx
mov ebx, eax
add eax, 2
push 0x208
push 0
push eax
call fcn.0040f9d0
add esp, 0xc
mov dword [ebp - 0x14], ebx
mov word [ebx], 0
push ebx
push str.mozlock.
push esi
call fcn.00426a90
add esp, 0xc
test eax, eax
je 0x4269ef
push ebx
call fcn.0040d0bb
add esp, 4
lea ecx, [ebp - 0x18]
mov dword [ecx], eax
mov esi, dword [ebp - 0x20]
lea ebx, [esi + 0xc]
mov edx, ebx
call fcn.00401e80
test eax, eax
js 0x4269e8
cmp dword [ebx], 0
je 0x4269e8
mov eax, dword [ebp - 0x14]
sub esp, 0x1c
movaps xmm0, xmmword [0x42b4c0]
movups xmmword [esp + 4], xmm0
mov dword [ebp - 0x1c], eax
mov dword [esp], eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x4000000
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
mov eax, dword [esi + 8]
lea ecx, [eax + 1]
cmp ecx, 2
jb 0x42694d
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 8], ebx
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4269a4
push eax
call fcn.0040d268
add esp, 4
mov ebx, dword [esi + 8]
jmp 0x4269a4
sub esp, 0x1c
movaps xmm0, xmmword [0x42b4d0]
movups xmmword [esp + 4], xmm0
mov dword [esp], ebx
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x80
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
mov eax, dword [esi + 8]
lea ecx, [eax + 1]
cmp ecx, 2
jb 0x4269a1
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 8], ebx
cmp ebx, 0xffffffff
mov eax, dword [ebp - 0x24]
je 0x4269f8
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [esi + 4], eax
mov ecx, eax
shr ecx, 4
and ecx, 1
cmp eax, 0xffffffff
mov eax, 2
cmovne eax, ecx
cmp edi, eax
je 0x4269f8
mov eax, dword [esi + 8]
lea ecx, [eax + 1]
cmp ecx, 2
jb 0x4269df
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 8], 0xffffffff
jmp 0x4269f8
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x4269f8
push ebx
call fcn.0040d268
add esp, 4
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040dac1
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret