joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40a070
Capabilities:
Get common file path
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x448750]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x44af50], 0
je 0x40a09c
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041bc45
mov esp, ebp
pop ebp
ret
push 0x104
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
xor eax, eax
lea ecx, [ebp - 0x20c]
cmp word [ebp - 0x20c], ax
je 0x40a0ca
nop
lea ecx, [ecx + 2]
inc eax
cmp word [ecx], 0
jne 0x40a0c0
cmp eax, 0x103
ja 0x40a0fd
jae 0x40a0f3
mov ecx, 0x43f3c4
movzx edx, word [ecx]
test dx, dx
je 0x40a0f3
mov word [ebp + eax*2 - 0x20c], dx
add ecx, 2
inc eax
cmp eax, 0x103
jb 0x40a0d8
xor ecx, ecx
mov word [ebp + eax*2 - 0x20c], cx
push ebx
push esi
push edi
push 0x43f3c8
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push str._s_s
push eax
call fcn.00409c80
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
lea eax, [ebp - 0x414]
add esp, 0x10
push eax
call esi
push str.rsaenh.dll
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push str._s_s
push eax
call fcn.00409c80
add esp, 0x10
lea eax, [ebp - 0x414]
push eax
call esi
push str.wintrust.dll
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push str._s_s
push eax
call fcn.00409c80
add esp, 0x10
lea eax, [ebp - 0x414]
push eax
call esi
mov ebx, eax
lea eax, [ebp - 0x20c]
push str.crypt32.dll
push eax
lea eax, [ebp - 0x414]
push str._s_s
push eax
call fcn.00409c80
add esp, 0x10
lea eax, [ebp - 0x414]
push eax
call esi
mov edi, eax
test ebx, ebx
je 0x40a2a7
test edi, edi
je 0x40a2a7
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.WinVerifyTrust
push ebx
call esi
mov dword [0x44af38], eax
test eax, eax
je 0x40a2a7
push str.CryptDecodeObject
push edi
call esi
mov dword [0x44af48], eax
test eax, eax
je 0x40a2a7
push str.CryptQueryObject
push edi
call esi
mov dword [0x44af30], eax
test eax, eax
je 0x40a2a7
push str.CryptMsgGetParam
push edi
call esi
mov dword [0x44af34], eax
test eax, eax
je 0x40a2a7
push str.CertEnumCertificatesInStore
push edi
call esi
mov dword [0x44af54], eax
test eax, eax
je 0x40a2a7
push str.CertFindCertificateInStore
push edi
call esi
mov dword [0x44af44], eax
test eax, eax
je 0x40a2a7
push str.CertGetNameStringW
push edi
call esi
mov dword [0x44af40], eax
test eax, eax
je 0x40a2a7
push str.CertFreeCertificateContext
push edi
call esi
mov dword [0x44af4c], eax
test eax, eax
je 0x40a2a7
push str.CertOpenSystemStoreW
push edi
call esi
mov dword [0x44af3c], eax
test eax, eax
je 0x40a2a7
push str.CertCloseStore
push edi
call esi
mov dword [0x44af58], eax
test eax, eax
je 0x40a2a7
push str.CryptMsgClose
push edi
call esi
mov dword [0x44af5c], eax
test eax, eax
je 0x40a2a7
pop edi
mov al, 1
pop esi
mov byte [0x44af50], al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041bc45
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, byte [0x44af50]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.0041bc45
mov esp, ebp
pop ebp
ret
Function at 0x40a2c0
Capabilities:
Check os version
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x29c
mov eax, dword [0x448750]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov ebx, ecx
mov esi, 1
call fcn.0040a070
test al, al
je 0x40a410
mov eax, dword fs:[0x30]
cmp dword [eax + 0xa4], 6
jae 0x40a304
push 0x43d977
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
test ebx, ebx
je 0x40a423
lea eax, [ebp - 0x258]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x40a32b
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp edi, 0xffffffff
setne al
test al, al
je 0x40a423
push 0x10
lea ecx, [ebp - 0x268]
call fcn.00409bd0
add esp, 4
mov dword [ebp - 0x268], 0x10
lea ecx, [ebp - 0x298]
mov dword [ebp - 0x264], ebx
push 0x30
call fcn.00409bd0
lea eax, [ebp - 0x268]
mov dword [ebp - 0x298], 0x30
mov dword [ebp - 0x280], eax
add esp, 4
mov eax, dword fs:[0x30]
mov dword [ebp - 0x284], esi
mov dword [ebp - 0x28c], 2
mov dword [ebp - 0x288], 0
mov dword [ebp - 0x270], 0x310
cmp dword [eax + 0xa4], 6
jb 0x40a3b9
mov dword [ebp - 0x270], 0x1310
lea eax, [ebp - 0x298]
push eax
push 0x4495d0
push 0xffffffffffffffff
call dword [0x44af38]
cmp eax, 0x800b0100
je 0x40a3f0
test eax, eax
jne 0x40a410
mov esi, 4
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041bc45
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x800b0100
je 0x40a40b
cmp eax, 0x800b0003
je 0x40a40b
cmp eax, 0x800b0001
jne 0x40a410
mov esi, 3
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041bc45
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 2
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041bc45
mov esp, ebp
pop ebp
ret
Function at 0x40a440
Capabilities:
Check os version
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa0
push ebx
push esi
push edi
mov dword [ebp - 0x1c], edx
mov esi, ecx
call fcn.0040a070
test al, al
jne 0x40a461
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword fs:[0x30]
cmp dword [eax + 0xa4], 6
jae 0x40a47b
push 0x43d977
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
xor bl, bl
mov dword [ebp - 0xc], 0
push 0x70
lea ecx, [ebp - 0x9c]
mov byte [ebp - 5], bl
mov dword [ebp - 0x10], 0
call fcn.00409bd0
add esp, 4
lea eax, [ebp - 0xc]
push 0
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x24]
push eax
push 0
push 2
push 0x400
push esi
push 1
call dword [0x44af30]
test eax, eax
je 0x40a5cf
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 6
push dword [ebp - 0xc]
call dword [0x44af34]
test eax, eax
je 0x40a5cf
push dword [ebp - 0x14]
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
je 0x40a5cf
lea eax, [ebp - 0x14]
push eax
push esi
push 0
push 6
push dword [ebp - 0xc]
call dword [0x44af34]
mov edi, dword [sym.imp.KERNEL32.dll_LocalFree]
test eax, eax
je 0x40a5cc
mov eax, dword [esi + 4]
mov dword [ebp - 0x84], eax
mov eax, dword [esi + 8]
mov dword [ebp - 0x80], eax
mov eax, dword [esi + 0xc]
mov dword [ebp - 0x98], eax
mov eax, dword [esi + 0x10]
push 0
mov dword [ebp - 0x94], eax
lea eax, [ebp - 0x9c]
push eax
push 0xb0000
push 0
push 0x10001
push dword [ebp - 0x10]
call dword [0x44af44]
mov ebx, eax
test ebx, ebx
je 0x40a5c9
push 0
push 0
push 0
push 0
push 4
push ebx
call dword [0x44af40]
mov dword [ebp - 0x18], eax
test eax, eax
je 0x40a5c2
add eax, eax
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
test edi, edi
je 0x40a5bc
push dword [ebp - 0x18]
push edi
push 0
push 0
push 4
push ebx
call dword [0x44af40]
test eax, eax
je 0x40a5b1
mov ecx, dword [ebp - 0x1c]
push edi
call fcn.00409c40
add esp, 4
mov byte [ebp - 5], 1
push edi
mov edi, dword [sym.imp.KERNEL32.dll_LocalFree]
call edi
jmp 0x40a5c2
mov edi, dword [sym.imp.KERNEL32.dll_LocalFree]
push ebx
call dword [0x44af4c]
mov bl, byte [ebp - 5]
push esi
call edi
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x40a5df
push 0
push eax
call dword [0x44af58]
mov ecx, dword [ebp - 0xc]
test ecx, ecx
je 0x40a5ed
push ecx
call dword [0x44af5c]
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40a8e0
Capabilities:
Delete file
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x624
mov eax, dword [0x448750]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov ecx, str.EasyAntiCheatSys
xor bl, bl
or esi, 0xffffffff
call fcn.00411af0
mov ecx, dword [0x44b058]
mov edi, dword [ecx]
test edi, edi
je 0x40aa90
cmp edi, 0x3ffffc
ja 0x40aa90
add ecx, 4
mov edx, edi
call fcn.0040a600
mov dl, 1
lea ecx, [ebp - 0x410]
call fcn.00411e30
test al, al
je 0x40aa73
lea eax, [ebp - 0x618]
push eax
push 0
push 0
push 0x25
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x40aa73
push 0x43f3c4
lea eax, [ebp - 0x618]
push 0x104
push eax
call fcn.0041d0ac
push str.driversEasyAntiCheat.sys
lea eax, [ebp - 0x410]
push 0x104
push eax
call fcn.0041d0ac
push str.driversEasyAntiCheat.sys
lea eax, [ebp - 0x618]
push 0x104
push eax
call fcn.0041d0ac
add esp, 0x24
lea eax, [ebp - 0x410]
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40a9ef
lea eax, [ebp - 0x410]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x208]
push str.CreateFile_failed___d_:__s
push eax
call fcn.0040ad20
add esp, 0x10
jmp 0x40aaa4
push 0
lea eax, [ebp - 0x61c]
push eax
mov eax, dword [0x44b058]
push edi
add eax, 4
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
test eax, eax
jne 0x40aa31
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x208]
push str.WriteFile_failed___d_
push eax
call fcn.0040ad20
add esp, 0xc
jmp 0x40aaa4
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x410]
push eax
call fcn.0040ab10
test al, al
je 0x40aaa4
push ecx
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x618]
push eax
call fcn.0040ac30
test eax, eax
mov dword [0x44b06c], eax
setne bl
test bl, bl
jne 0x40aaca
jmp 0x40aaa4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x208]
push str.GetServicePath_failed___d_
push eax
call fcn.0040ad20
add esp, 0xc
jmp 0x40aaa4
lea eax, [ebp - 0x208]
push str.Invalid_binary_size
push eax
call fcn.0040ad20
add esp, 8
push 0xffffffffffffffff
lea eax, [ebp - 0x208]
push eax
mov eax, dword [0x44b058]
add eax, 4
push pe_nt_image_headers32
push eax
lea eax, [ebp - 0x620]
push eax
call fcn.0041d08e
add esp, 0x14
mov eax, dword [0x44b058]
xor ecx, ecx
test bl, bl
setne cl
mov dword [eax], ecx
push dword [0x44b064]
call dword [sym.imp.KERNEL32.dll_SetEvent]
cmp esi, 0xffffffff
je 0x40aaf6
lea eax, [ebp - 0x410]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041bc45
mov esp, ebp
pop ebp
ret
Function at 0x40ab10
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x108
mov eax, dword [0x448750]
xor eax, esp
mov dword [esp + 0x104], eax
mov eax, dword fs:[0x30]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov ecx, dword [eax + 0xa4]
mov edi, dword [ebp + 8]
cmp ecx, 6
jb 0x40ac11
jne 0x40ab56
cmp dword [eax + 0xa8], 2
jb 0x40ac11
mov ecx, edi
call fcn.0040a2c0
cmp eax, 4
je 0x40ab8d
push str.Error_validating_the_driver_code_signing_certificate.
push pe_nt_image_headers32
push esi
call fcn.0041c9bd
add esp, 0xc
xor al, al
pop edi
pop esi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.0041bc45
mov esp, ebp
pop ebp
ret 0xc
push ecx
lea edx, [esp + 0xc]
mov ecx, edi
call fcn.0040a440
add esp, 4
test al, al
jne 0x40abcb
push str.Error_reading_the_driver_code_signing_certificate.
push pe_nt_image_headers32
push esi
call fcn.0041c9bd
add esp, 0xc
xor al, al
pop edi
pop esi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.0041bc45
mov esp, ebp
pop ebp
ret 0xc
lea eax, [esp + 8]
push str.EasyAntiCheat_Oy
push eax
call fcn.0041ca61
add esp, 8
test eax, eax
je 0x40ac11
lea eax, [esp + 8]
push eax
push str.Unknown_driver_certificate_signer:___s_.
push pe_nt_image_headers32
push esi
call fcn.0041c9bd
add esp, 0x10
xor al, al
pop edi
pop esi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.0041bc45
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [esp + 0x10c]
mov al, 1
pop edi
pop esi
xor ecx, esp
call fcn.0041bc45
mov esp, ebp
pop ebp
ret 0xc

Function at 0x40ac30
Capabilities:
Create service
Delete service
Start service

Disassembly:
push ebp
mov ebp, esp
push edi
push 2
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
je 0x40acef
push esi
push 0
push 0
push 0
push 0
push 0
push dword [ebp + 8]
push 0
push 3
push 1
push 0x10030
push str.EasyAntiCheatSys
push str.EasyAntiCheatSys
push edi
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov esi, eax
test esi, esi
je 0x40acc4
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x40ace0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.StartService_failed___d_
push pe_nt_image_headers32
push dword [ebp + 0xc]
call fcn.0041c9bd
add esp, 0x10
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
xor esi, esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, esi
pop esi
pop edi
pop ebp
ret 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CreateService_failed___d_
push pe_nt_image_headers32
push dword [ebp + 0xc]
call fcn.0041c9bd
add esp, 0x10
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, esi
pop esi
pop edi
pop ebp
ret 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.OpenSCManager_failed___d_
push pe_nt_image_headers32
push dword [ebp + 0xc]
call fcn.0041c9bd
add esp, 0x10
xor eax, eax
pop edi
pop ebp
ret 0xc
Function at 0x40b040
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push edi
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x40b054
mov eax, dword [ecx]
push 1
call dword [eax]
mov eax, dword [esi + 8]
mov dword [esi + 4], 0
test eax, eax
je 0x40b079
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [esi + 8], 0
push 0x43fc1c
push dword [ebp + 8]
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x40b097
pop edi
xor al, al
pop esi
pop ebp
ret 0xc
push ebx
push edi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
test ebx, ebx
je 0x40b168
push edi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x40b168
push ebx
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [esi + 8], eax
test eax, eax
je 0x40b168
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x40b158
push ebx
push edi
push eax
call fcn.00420450
add esp, 0xc
mov dword [ebp + 8], 0
lea eax, [ebp + 8]
push eax
push 0
push dword [esi + 8]
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x40b14f
mov ecx, dword [ebp + 8]
call fcn.0040ae00
mov dword [esi + 4], eax
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x40b14f
mov eax, dword [ecx + 8]
mov dword [ecx + 8], 0
test eax, eax
jne 0x40b13b
pop ebx
pop edi
mov al, 1
pop esi
pop ebp
ret 0xc
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x40b148
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [esi + 4], 0
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [esi + 8], 0
pop ebx
pop edi
xor al, al
pop esi
pop ebp
ret 0xc

Function at 0x40b960
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x448750]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
mov ebx, edx
push edi
call dword [sym.imp.USER32.dll_GetDC]
mov esi, eax
test ebx, ebx
je 0x40b98f
push ebx
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
push 0x200
lea eax, [ebp - 0x208]
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
test esi, esi
je 0x40b9fb
lea ecx, [ebp - 0x208]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40b9b0
sub ecx, edx
lea eax, [ebp - 0x210]
push eax
sar ecx, 1
lea eax, [ebp - 0x208]
push ecx
push eax
push esi
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
push 0x216
push dword [ebp - 0x20c]
push dword [ebp - 0x210]
push 0
push 0
push 0
push edi
call dword [sym.imp.USER32.dll_SetWindowPos]
push esi
push edi
call dword [sym.imp.USER32.dll_ReleaseDC]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041bc45
mov esp, ebp
pop ebp
ret
Function at 0x40ce70
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x435b78
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x448750]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0
push dword [esi + 0x40]
call dword [sym.imp.USER32.dll_EnableWindow]
mov eax, dword [ebp + 8]
cmp eax, 1
jne 0x40cf55
push 0xd
push str.Installing
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
call fcn.004014e0
sub esp, 0x18
mov dword [ebp - 4], 0
mov ecx, esp
push 0x16
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push str.setup.install_progress
mov byte [ecx], 0
call fcn.004014e0
mov ecx, dword [esi + 0x14]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.0040ffb0
cmp dword [eax + 0x14], 8
jb 0x40cf14
mov eax, dword [eax]
push eax
push dword [esi + 0x40]
call dword [sym.imp.USER32.dll_SetWindowTextW]
cmp dword [ebp - 0x30], 8
jb 0x40cf2f
push dword [ebp - 0x44]
call fcn.0041c406
add esp, 4
xor eax, eax
mov dword [ebp - 0x30], 7
cmp dword [ebp - 0x18], 0x10
mov dword [ebp - 0x34], 0
mov word [ebp - 0x44], ax
jb 0x40d086
push dword [ebp - 0x2c]
jmp 0x40d07e
cmp eax, 2
jne 0x40cfd0
push 5
push dword [esi + 0x44]
call dword [sym.imp.USER32.dll_ShowWindow]
push 0xf
push str.Uninstalling
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
call fcn.004014e0
sub esp, 0x18
mov dword [ebp - 4], 1
mov ecx, esp
push 0x18
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push str.setup.uninstall_progress
mov byte [ecx], 0
call fcn.004014e0
mov ecx, dword [esi + 0x14]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.0040ffb0
cmp dword [eax + 0x14], 8
jb 0x40cfc7
mov eax, dword [eax]
push eax
push dword [esi + 0x44]
jmp 0x40cf18
cmp eax, 3
jne 0x40d086
push 5
push dword [esi + 0x44]
call dword [sym.imp.USER32.dll_ShowWindow]
push 0xc
push str.Repairing
lea ecx, [ebp - 0x5c]
mov dword [ebp - 0x48], 0xf
mov dword [ebp - 0x4c], 0
mov byte [ebp - 0x5c], 0
call fcn.004014e0
sub esp, 0x18
mov dword [ebp - 4], 2
mov ecx, esp
push 0x15
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push str.setup.repair_progress
mov byte [ecx], 0
call fcn.004014e0
mov ecx, dword [esi + 0x14]
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x74]
push eax
call fcn.0040ffb0
cmp dword [eax + 0x14], 8
jb 0x40d046
mov eax, dword [eax]
push eax
push dword [esi + 0x44]
call dword [sym.imp.USER32.dll_SetWindowTextW]
cmp dword [ebp - 0x60], 8
jb 0x40d061
push dword [ebp - 0x74]
call fcn.0041c406
add esp, 4
xor eax, eax
mov dword [ebp - 0x60], 7
cmp dword [ebp - 0x48], 0x10
mov dword [ebp - 0x64], 0
mov word [ebp - 0x74], ax
jb 0x40d086
push dword [ebp - 0x5c]
call fcn.0041c406
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0041bc45
mov esp, ebp
pop ebp
ret 4
Function at 0x40ff60
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
push 0
push 0
mov esi, ecx
push esi
push 0x40ebd0
push 0
mov dword [esi], eax
mov eax, dword [ebp + 0xc]
push 0
mov dword [esi + 4], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x14], eax
test eax, eax
jne 0x40ffa8
mov dword [esi + 8], 7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CreateThread_failed_with__d
push esi
call fcn.00410570
add esp, 0xc
pop esi
pop ebp
ret 8
Function at 0x410c20
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x5c
mov eax, dword [0x448750]
xor eax, esp
mov dword [esp + 0x58], eax
push ebx
mov ebx, dword [ebp + 0x10]
lea eax, [esp + 0x10]
push esi
push edi
xor esi, esi
mov dword [esp + 0xc], 0
push eax
mov byte [esp + 0x14], 1
xor edi, edi
mov dword [esp + 0x1c], 0x43ffc0
mov dword [esp + 0x20], 0x410b00
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
call dword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherW]
test eax, eax
je 0x410c88
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.0041bc45
mov esp, ebp
pop ebp
ret 0x10
lea eax, [esp + 0x14]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
test eax, eax
jne 0x410cb1
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.0041bc45
mov esp, ebp
pop ebp
ret 0x10
sub esp, 8
mov dword [esp + 0x68], esi
lea ecx, [esp + 0x30]
push eax
push dword [esp + 0x20]
call fcn.00410d90
lea ecx, [esp + 0x28]
call fcn.00410e30
test al, al
je 0x410d38
cmp dword [esp + 0x5c], 0
jne case.default.0x410ceb
mov eax, dword [esp + 0x34]
cmp eax, 3
ja case.default.0x410ceb
jmp dword [eax*4 + 0x410d78]
push dword [esp + 0x4c]
mov edi, 1
call fcn.0041d229
add esp, 4
mov esi, eax
jmp 0x410d2b
push dword [esp + 0x4c]
mov edi, 2
call fcn.0041d229
add esp, 4
mov esi, eax
jmp 0x410d2b
mov eax, dword [esp + 0x4c]
mov dword [esp + 0xc], eax
jmp 0x410d2b
mov byte [esp + 0x10], 0
lea ecx, [esp + 0x28]
call fcn.00410e30
test al, al
jne 0x410cd3
push dword [esp + 0xc]
push dword [esp + 0x14]
push edi
push esi
call fcn.0040eed0
mov esi, eax
mov ecx, dword [esp + 0x60]
test ecx, ecx
je 0x410d5a
push ecx
call fcn.0041c801
add esp, 4
mov ecx, dword [esp + 0x64]
mov eax, esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0041bc45
mov esp, ebp
pop ebp
ret 0x10
mov esi, 1
jmp 0x410d49