joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47f2a2
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00476593
and dword [ebp - 4], 0
cmp dword [0x4b4008], 0
mov ebx, eax
jne 0x47f353
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x47f404
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x47f404
push eax
call fcn.00476521
mov dword [esp], 0x498c4c
push edi
mov dword [0x4b4008], eax
call esi
push eax
call fcn.00476521
mov dword [esp], 0x498c38
push edi
mov dword [0x4b400c], eax
call esi
push eax
call fcn.00476521
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4b4010], eax
call esi
push eax
call fcn.00476521
pop ecx
mov dword [0x4b4018], eax
test eax, eax
je 0x47f353
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00476521
pop ecx
mov dword [0x4b4014], eax
mov eax, dword [0x4b4014]
cmp eax, ebx
je 0x47f3ab
cmp dword [0x4b4018], ebx
je 0x47f3ab
push eax
call fcn.0047659c
push dword [0x4b4018]
mov esi, eax
call fcn.0047659c
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x47f3ab
test edi, edi
je 0x47f3ab
call esi
test eax, eax
je 0x47f3a2
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x47f3a2
test byte [ebp - 0xc], 1
jne 0x47f3ab
or dword [ebp + 0x10], 0x200000
jmp 0x47f3e4
mov eax, dword [0x4b400c]
cmp eax, ebx
je 0x47f3e4
push eax
call fcn.0047659c
pop ecx
test eax, eax
je 0x47f3e4
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x47f3e4
mov eax, dword [0x4b4010]
cmp eax, ebx
je 0x47f3e4
push eax
call fcn.0047659c
pop ecx
test eax, eax
je 0x47f3e4
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4b4008]
call fcn.0047659c
pop ecx
test eax, eax
je 0x47f404
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x47f406
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x414da0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb8
mov eax, dword [0x4ceb90]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov dword [0x4d05ac], 0
push 0x4d0650
push 0xffffffffffffffff
push 0
call dword [sym.imp.USER32.dll_EnumDisplaySettingsA]
mov ecx, 0x27
mov esi, 0x4d0650
mov edi, 0x4d05b0
rep movsd dword es:[edi], dword [esi]
cmp dword [0x4d06bc], 0x500
jb 0x414df7
cmp dword [0x4d06c0], 0x2d0
jae 0x414e18
push 0
mov ecx, 0x47c64f8
call fcn.00411310
push eax
push 0x4c1930
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0
call fcn.0049eddc
mov dword [ebp - 0xa8], 0
lea eax, [ebp - 0xa0]
push eax
mov ecx, dword [ebp - 0xa8]
push ecx
push 0
call dword [sym.imp.USER32.dll_EnumDisplaySettingsA]
test eax, eax
je 0x414e4d
mov edx, dword [ebp - 0xa8]
add edx, 1
mov dword [ebp - 0xa8], edx
jmp 0x414e22
mov eax, dword [ebp - 0xa8]
add eax, 1
xor ecx, ecx
mov edx, 0x9c
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0049b000
add esp, 4
mov dword [ebp - 0xb0], eax
mov eax, dword [ebp - 0xb0]
mov dword [ebp - 0xa4], eax
mov dword [ebp - 0xa8], 0
imul ecx, dword [ebp - 0xa8], 0x9c
add ecx, dword [ebp - 0xa4]
push ecx
mov edx, dword [ebp - 0xa8]
push edx
push 0
call dword [sym.imp.USER32.dll_EnumDisplaySettingsA]
test eax, eax
je 0x414ec0
mov eax, dword [ebp - 0xa8]
add eax, 1
mov dword [ebp - 0xa8], eax
jmp 0x414e8b
mov dword [ebp - 0xac], 0
mov dword [ebp - 0xac], 0
jmp 0x414ee5
mov ecx, dword [ebp - 0xac]
add ecx, 1
mov dword [ebp - 0xac], ecx
mov edx, dword [ebp - 0xac]
cmp edx, dword [ebp - 0xa8]
jge 0x414fe6
imul eax, dword [ebp - 0xac], 0x9c
mov ecx, dword [ebp - 0xa4]
cmp dword [ecx + eax + 0x6c], 0x500
jne 0x414fe1
imul edx, dword [ebp - 0xac], 0x9c
mov eax, dword [ebp - 0xa4]
cmp dword [eax + edx + 0x70], 0x2d0
jne 0x414fe1
imul ecx, dword [ebp - 0xac], 0x9c
mov edx, dword [ebp - 0xa4]
cmp dword [edx + ecx + 0x68], 0x20
jne 0x414fe1
push 0x4d0650
imul eax, dword [ebp - 0xac], 0x9c
add eax, dword [ebp - 0xa4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x414fe1
push 2
imul ecx, dword [ebp - 0xac], 0x9c
add ecx, dword [ebp - 0xa4]
push ecx
call dword [sym.imp.USER32.dll_ChangeDisplaySettingsA]
test eax, eax
jne 0x414fe1
imul esi, dword [ebp - 0xac], 0x9c
add esi, dword [ebp - 0xa4]
mov ecx, 0x27
mov edi, 0x4d0650
rep movsd dword es:[edi], dword [esi]
mov dword [0x4d064c], 1
cmp dword [ebp - 0xa4], 0
je 0x414fdf
mov edx, dword [ebp - 0xa4]
mov dword [ebp - 0xb4], edx
mov eax, dword [ebp - 0xb4]
push eax
call fcn.0049affb
add esp, 4
mov dword [ebp - 0xa4], 0
jmp 0x415014
jmp 0x414ed6
cmp dword [ebp - 0xa4], 0
je 0x415014
mov ecx, dword [ebp - 0xa4]
mov dword [ebp - 0xb8], ecx
mov edx, dword [ebp - 0xb8]
push edx
call fcn.0049affb
add esp, 4
mov dword [ebp - 0xa4], 0
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049ad38
mov esp, ebp
pop ebp
ret
Function at 0x45e660
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x4ceb90]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x110], ecx
mov eax, dword [0x4c3ec8]
mov dword [ebp - 0x114], eax
mov byte [ebp - 0x109], 0x61
jmp 0x45e69c
mov cl, byte [ebp - 0x109]
add cl, 1
mov byte [ebp - 0x109], cl
movsx edx, byte [ebp - 0x109]
cmp edx, 0x7a
jg 0x45e737
push 5
movzx eax, byte [ebp - 0x109]
push eax
mov ecx, dword [ebp - 0x110]
call fcn.0045e750
movzx ecx, al
cmp ecx, 1
jne 0x45e732
mov edx, 1
imul eax, edx, 0
mov cl, byte [ebp - 0x109]
mov byte [ebp + eax - 0x114], cl
push 0
push 0
push 0
push 0
push 0
push 0x104
lea edx, [ebp - 0x108]
push edx
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
lea ecx, [ebp - 0x108]
push ecx
mov ecx, dword [ebp - 0x110]
add ecx, 0x38
mov edx, dword [ebp - 0x110]
mov eax, dword [edx + 0x38]
mov edx, dword [eax + 0xc]
call edx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x45e732
mov al, byte [ebp - 0x109]
jmp 0x45e739
jmp 0x45e68d
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049ad38
mov esp, ebp
pop ebp
ret

Function at 0x45e750
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov eax, dword [0x4c3ecc]
mov dword [ebp - 4], eax
mov ecx, 1
imul edx, ecx, 0
mov al, byte [ebp + 8]
mov byte [ebp + edx - 4], al
lea ecx, [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, dword [ebp + 0xc]
jne 0x45e783
mov al, 1
jmp 0x45e785
xor al, al
mov esp, ebp
pop ebp
ret 8
Function at 0x45fb60
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [0x4ceb90]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x410], ecx
mov eax, dword [ebp - 0x410]
mov ecx, dword [ebp + 8]
mov dword [eax + 0x5a4], ecx
mov edx, dword [ebp - 0x410]
mov eax, dword [ebp + 0xc]
mov dword [edx + 0x5a8], eax
mov ecx, dword [ebp - 0x410]
cmp dword [ecx + 0x5a4], 9
je 0x45fbb5
mov edx, dword [ebp - 0x410]
cmp dword [edx + 0x5a4], 0xe
jne 0x45fbf9
mov eax, dword [ebp - 0x410]
mov ecx, dword [eax + 0x5a8]
mov dword [ebp - 0x414], ecx
cmp dword [ebp - 0x414], 9
jl 0x45fbdd
cmp dword [ebp - 0x414], 0x12
jle 0x45fbdb
jmp 0x45fbdd
jmp 0x45fbf7
mov edx, dword [ebp - 0x410]
cmp dword [edx + 0x5a8], 1
je 0x45fbf7
mov ecx, dword [ebp - 0x410]
call fcn.0045f6f0
jmp 0x45fc23
mov ecx, dword [ebp - 0x410]
call fcn.0045fb30
push str.cgpSaveThumbChange.png
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [ebp - 0x108]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
movzx edx, byte [ebp + 0x10]
cmp edx, 1
jne 0x45fc3c
mov ecx, dword [ebp - 0x410]
call fcn.0045fd80
jmp 0x45fd66
lea ecx, [ebp - 0x40c]
call fcn.004122b0
push 0x304
push 0
lea eax, [ebp - 0x40c]
push eax
call fcn.0049c5e0
add esp, 0xc
mov dword [ebp - 0x40c], 0x1964
xorps xmm0, xmm0
movss dword [ebp - 0x3f0], xmm0
xorps xmm0, xmm0
movss dword [ebp - 0x3ec], xmm0
xorps xmm0, xmm0
movss dword [ebp - 0x3e8], xmm0
mov dword [ebp - 0x3d0], 0x500
mov dword [ebp - 0x3cc], 0x2d0
mov dword [ebp - 0x3c8], 0
mov dword [ebp - 0x3c4], 0
mov dword [ebp - 0x3c0], 0x500
mov dword [ebp - 0x3bc], 0x2d0
push ecx
xorps xmm0, xmm0
movss dword [esp], xmm0
push ecx
xorps xmm0, xmm0
movss dword [esp], xmm0
push ecx
xorps xmm0, xmm0
movss dword [esp], xmm0
push ecx
xorps xmm0, xmm0
movss dword [esp], xmm0
lea ecx, [ebp - 0x424]
call fcn.00411280
mov ecx, dword [eax]
mov dword [ebp - 0x3e0], ecx
mov edx, dword [eax + 4]
mov dword [ebp - 0x3dc], edx
mov ecx, dword [eax + 8]
mov dword [ebp - 0x3d8], ecx
mov edx, dword [eax + 0xc]
mov dword [ebp - 0x3d4], edx
mov dword [ebp - 0x234], 0
mov dword [ebp - 0x408], 0x6d
mov byte [ebp - 0x3fc], 1
lea eax, [ebp - 0x40c]
push eax
mov ecx, 0x484d928
call fcn.004404d0
push ecx
movss xmm0, dword [0x4c736c]
movss dword [esp], xmm0
push 0xc8
mov ecx, dword [ebp - 0x40c]
push ecx
mov ecx, 0x484d928
call fcn.00444ea0
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049ad38
mov esp, ebp
pop ebp
ret 0xc
Function at 0x46f630
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x4ceb90]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x1c], ecx
xor eax, eax
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
mov dword [ecx + 0x10], eax
xor edx, edx
mov word [ebp - 0x14], dx
mov eax, 1
mov word [ebp - 0x12], ax
xor ecx, ecx
mov word [ebp - 0x10], cx
xor edx, edx
mov word [ebp - 0xe], dx
xor eax, eax
mov word [ebp - 0xc], ax
xor ecx, ecx
mov word [ebp - 0xa], cx
xor edx, edx
mov word [ebp - 8], dx
mov eax, 1
mov word [ebp - 6], ax
cmp dword [ebp + 0x18], 0
jne 0x46f696
xor eax, eax
jmp 0x46f6fb
mov ecx, dword [ebp + 0x18]
push ecx
call fcn.0049b000
add esp, 4
mov dword [ebp - 0x18], eax
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp - 0x18]
mov dword [edx], eax
mov ecx, dword [ebp + 0x10]
cmp dword [ecx], 0
jne 0x46f6d6
push 0x30
mov ecx, 0x47c64f8
call fcn.00411310
push eax
push 0x4c4890
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0
call fcn.0049eddc
lea edx, [ebp - 0x14]
push edx
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
push ecx
mov edx, dword [ebp + 0x18]
push edx
mov eax, dword [ebp + 0xc]
push eax
push 6
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp + 0x14]
push edx
call dword [sym.imp.GDI32.dll_GetGlyphOutlineA]
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049ad38
mov esp, ebp
pop ebp
ret 0x14
Function at 0x42a4ff
Capabilities:
Terminate process

Disassembly:
jmp 0x45bb94
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x45bba5
push 5
pop ecx
int 0x29
push esi
push 1
mov esi, 0xc0000417
push esi
push 2
call fcn.0042b922
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop esi
ret

Function at 0x42a595
Capabilities:
Query environment variable

Disassembly:
jmp 0x45fc9f
mov edi, edi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x45fcb3
xor edi, edi
jmp 0x45fcea
push ebx
push esi
call fcn.0045fba9
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0042aac2
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x45fcda
push ebx
push esi
push edi
call fcn.0042b7c4
add esp, 0xc
push 0
call fcn.0042be27
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
pop ebx
mov eax, edi
pop edi
pop esi
ret

Function at 0x42b84b
Capabilities:
Parse pe header

Disassembly:
jmp 0x430e25
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x430e65
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x430e65
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x430e65
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x430e65
cmp dword [ecx + 0x74], 0xe
jbe 0x430e65
cmp dword [ecx + 0xe8], 0
je 0x430e65
mov al, 1
ret
xor al, al
ret
Function at 0x401ad0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44e0b6
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x4703d0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
lea edi, [esi + 0x10]
xor eax, eax
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov dword [edi + 0xc], eax
lea ebx, [esi + 0x20]
mov dword [ebp - 4], eax
mov dword [ebx + 4], eax
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], eax
mov eax, dword [ebp + 8]
push esi
push eax
mov byte [ebp - 4], 1
call fcn.00401390
mov ecx, dword [ebp + 0xc]
push ecx
mov ecx, edi
call fcn.00401980
mov edx, dword [ebp + 8]
push edx
mov ecx, ebx
call fcn.00401980
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x30], eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x401dd0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44e0f6
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x4703d0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
lea ecx, [esi + 0x10]
xor eax, eax
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
lea ebx, [esi + 0x20]
mov dword [ebp - 4], eax
mov dword [ebx + 4], eax
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], eax
mov edi, dword [ebp + 8]
mov edx, dword [edi]
mov dword [esi], edx
mov edx, dword [edi + 4]
mov dword [esi + 4], edx
mov edx, dword [edi + 8]
push 0xffffffffffffffff
push eax
mov dword [esi + 8], edx
mov edx, dword [edi + 0xc]
lea eax, [edi + 0x10]
push eax
mov byte [ebp - 4], 1
mov dword [esi + 0xc], edx
call fcn.00401ba0
push 0xffffffffffffffff
push 0
lea ecx, [edi + 0x20]
push ecx
mov ecx, ebx
call fcn.00401ba0
mov edx, dword [edi + 0x30]
mov dword [esi + 0x30], edx
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4035f0
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40360a
xor al, al
pop esi
pop ebp
ret 4
test al, 1
je 0x403632
and eax, 0xfffffffe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x403632
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.ERROR:_MakeWritable:_Unable_to_set_attribs__S__u._n
call fcn.0040ef30
add esp, 0xc
mov al, 1
pop esi
pop ebp
ret 4

Function at 0x403660
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x403685
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x403685
push 5
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
neg eax
sbb eax, eax
neg eax
pop ebp
ret 8
push str.ERROR:_InstallScheduleFileRename:_NULL_ptr_n
call fcn.0040ef30
add esp, 4
xor al, al
pop ebp
ret 8
Function at 0x4036a0
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push 4
push 0
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
neg eax
sbb eax, eax
neg eax
pop ebp
ret 4

Function at 0x403f00
Capabilities:
Get file version info
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe4
mov eax, dword [0x4703d0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
mov dword [ebp - 0xd4], eax
je 0x4040d7
test eax, eax
je 0x4040d7
push edi
push 0x50
push 0
push eax
mov byte [ebp - 0xcd], 0
call fcn.0043c140
push ebx
call fcn.0042ae00
mov edi, eax
add esp, 0x10
test edi, edi
je 0x4040bf
cmp edi, 0xffffffff
je 0x4040bf
push esi
push 0x1000
call fcn.0043c073
mov esi, eax
add esp, 4
test esi, esi
je 0x403fec
push 0x1000
push 0
push esi
call fcn.0043c140
push 0
push 0x1000
push esi
push edi
call fcn.0042ae30
add esp, 0x1c
cmp word [esi], 0x5a4d
mov eax, esi
jne 0x403fad
mov ecx, dword [esi + 0x3c]
lea edx, [ecx + 0xf8]
cmp edx, 0x1000
ja 0x403fad
lea eax, [ecx + esi]
cmp dword [eax], 0x4550
jne 0x403fe3
movzx ecx, word [eax + 0x18]
cmp ecx, 0x10b
je 0x403fc9
cmp ecx, 0x20b
jne 0x403fe3
add eax, 4
test eax, eax
je 0x403fe3
mov eax, dword [eax + 4]
mov ecx, dword [ebp - 0xd4]
mov byte [ebp - 0xcd], 1
mov dword [ecx + 0x10], eax
push esi
call fcn.0043c1ba
add esp, 4
push edi
call fcn.0042ade0
add esp, 4
cmp byte [ebp - 0xcd], 0
je 0x4040be
lea edx, [ebp - 0xe4]
push edx
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
test edi, edi
je 0x4040be
push edi
call fcn.0043c073
mov esi, eax
add esp, 4
test esi, esi
je 0x4040b5
push esi
push edi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x4040b5
lea eax, [ebp - 0xd8]
push eax
lea ecx, [ebp - 0xdc]
push ecx
push str.VarFileInfoTranslation
push esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x4040b5
mov eax, dword [ebp - 0xdc]
movzx edx, word [eax + 2]
movzx eax, word [eax]
push edx
push eax
push str.StringFileInfo_04X_04XFileVersion
lea ecx, [ebp - 0xcc]
push 0x64
push ecx
call fcn.0043ca7b
add esp, 0x14
lea edx, [ebp - 0xd8]
push edx
lea eax, [ebp - 0xe0]
push eax
lea ecx, [ebp - 0xcc]
push ecx
push esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x4040b5
mov edx, dword [ebp - 0xd4]
mov eax, dword [ebp - 0xd8]
mov ecx, dword [ebp - 0xe0]
push edx
push eax
push ecx
call fcn.00403e80
push esi
call fcn.0043c1ba
add esp, 4
pop esi
mov al, byte [ebp - 0xcd]
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043c015
mov esp, ebp
pop ebp
ret 8
push str.ERROR:_InstallGetFileVersion:_NULL_ptr_n
call fcn.0040ef30
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
xor al, al
pop ebx
call fcn.0043c015
mov esp, ebp
pop ebp
ret 8
Function at 0x404ae0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push esi
push 0x44
lea eax, [ebp - 0x54]
push 0
push eax
xor bl, bl
call fcn.0043c140
mov esi, dword [ebp + 8]
xor eax, eax
push esi
push str.Running__S..._n
mov dword [ebp - 0x54], 0x44
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
call fcn.0040ef30
add esp, 0x14
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 0x54]
push edx
push 0
push 0
push 8
push 0
push 0
push 0
push esi
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x404b5d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.Could_not_launch__S:__u_n
call fcn.0040ef30
add esp, 0xc
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 8
cmp byte [ebp + 0xc], 0
je 0x404b7d
push esi
push str.Waiting_for__S_to_complete..._n
call fcn.0040ef30
mov eax, dword [ebp - 0x10]
add esp, 8
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [ebp - 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
mov edx, dword [ebp - 0xc]
push edx
call esi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x404ba0
Capabilities:
Modify service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
push 0
xor bl, bl
call fcn.0042d5c0
mov esi, dword [ebp + 8]
push esi
mov dword [ebp - 0xc], eax
call fcn.0042c770
add esp, 8
push 0
push esi
mov byte [ebp - 4], al
call fcn.0041b220
mov eax, dword [ebp + 0xc]
push esi
push eax
push str.Setting_start_value_to__u_for_service__S_n
call fcn.0040ef30
add esp, 0xc
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
mov dword [ebp + 8], edi
jne 0x404c15
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ERROR__ConfigureServiceStart:_Cannot_OpenSCManager._GetLastError_d_n
call fcn.0040ef30
add esp, 8
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 8
push 2
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
test eax, eax
mov dword [ebp - 0x10], eax
jne 0x404c3f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ERROR__ConfigureServiceStart:_Failed_to_get_handle_to_service._GetLastError_d_n
call fcn.0040ef30
add esp, 8
jmp 0x404d01
mov edi, dword [ebp + 0xc]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push edi
push 0xffffffffffffffff
push eax
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
test eax, eax
setne bl
test bl, bl
jne 0x404c7a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push str.ERROR__ConfigureServiceStart:_Failed_to_set_start_value_to__u._GetLastError_d_n
call fcn.0040ef30
add esp, 0xc
call fcn.00402fe0
test eax, eax
mov dword [ebp - 8], eax
je 0x404ca5
cmp eax, 0xffffffff
je 0x404ca5
push 0
lea ecx, [ebp - 0x14]
push ecx
push 0
push 0
push 0
push 0
push 0x9edb6510
push eax
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push esi
call fcn.0042c6f0
mov edi, eax
add esp, 4
test edi, edi
je 0x404ceb
test bl, bl
je 0x404cce
lea edx, [ebp - 0x14]
push edx
push str.Start
push edi
call fcn.0042c3b0
add esp, 0xc
test al, al
jne 0x404ce2
mov eax, dword [ebp + 0xc]
push eax
push str.Start
push edi
call fcn.0042c2f0
add esp, 0xc
mov bl, al
push edi
call fcn.0042a5f0
add esp, 4
mov eax, dword [ebp - 8]
test eax, eax
je 0x404cfe
cmp eax, 0xffffffff
je 0x404cfe
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.0042d5c0
add esp, 4
cmp byte [ebp - 4], 0
je 0x404d1d
mov edx, dword [ebp - 4]
push edx
push esi
call fcn.0041b220
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
call esi
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x404d30
push eax
call esi
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 8