joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40f935
Capabilities:
Write file on windows

Disassembly:
push 0xc
mov eax, 0x4411b9
call fcn.004266a4
xor ebx, ebx
mov byte [ebp - 0x11], bl
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x40f9c0
mov esi, dword [ebp + 8]
cmp esi, ebx
je 0x40f9b9
cmp dword [esi + 8], ebx
je 0x40f9b2
push ebx
push 0x80
push 2
push ebx
push 1
push 0x40000000
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x40f9ab
mov eax, dword [esi + 8]
mov esi, dword [esi]
push ebx
lea ecx, [ebp - 0x18]
push ecx
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40f997
mov byte [ebp - 0x11], 1
jmp 0x40f9a2
push str.BufferToFile__BufferToFile_Error:_writting_file
call fcn.00414978
pop ecx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40f9cb
push str.BufferToFile__BufferToFile_Error:_creating_file
jmp 0x40f9c5
push str.BufferToFile__BufferToFile_Error:_sbBuffer__Length____0
jmp 0x40f9c5
push str.BufferToFile__BufferToFile_sbBuffer__NULL
jmp 0x40f9c5
push str.BufferToFile__BufferToFile_szFile__NULL
call fcn.00414978
pop ecx
or dword [ebp - 4], 0xffffffff
mov al, byte [ebp - 0x11]
call fcn.00426749
ret

Function at 0x40f9f1
Capabilities:
Write file on windows

Disassembly:
push 0xc
mov eax, 0x4411d4
call fcn.004266a4
xor ebx, ebx
mov byte [ebp - 0x11], bl
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x40fa7d
mov edi, dword [ebp + 8]
cmp edi, ebx
je 0x40fa76
cmp byte [edi], bl
je 0x40fa6f
push ebx
push 0x80
push 2
push ebx
push 1
push 0x40000000
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x40fa68
push ebx
lea eax, [ebp - 0x18]
push eax
push edi
call fcn.00427e00
pop ecx
push eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40fa54
mov byte [ebp - 0x11], 1
jmp 0x40fa5f
push str.BufferToFile__BufferToFile2_Error:_writting_file
call fcn.00414978
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40fa88
push str.BufferToFile__BufferToFile2_Error:_creating_file
jmp 0x40fa82
push str.BufferToFile__BufferToFile2_Error:_szBuffer__NULL
jmp 0x40fa82
push str.BufferToFile__BufferToFile2_szBuffer__NULL
jmp 0x40fa82
push str.BufferToFile__BufferToFile2_szFile__NULL
call fcn.00414978
pop ecx
or dword [ebp - 4], 0xffffffff
mov al, byte [ebp - 0x11]
call fcn.00426749
ret
Function at 0x40faae
Capabilities:
Read file on windows

Disassembly:
push ebp
sub esp, 0x200
lea ebp, [esp - 4]
mov eax, dword [0x46c054]
xor eax, ebp
mov dword [ebp + 0x200], eax
push 0x18
mov eax, 0x4411f7
call fcn.004266a4
mov edi, dword [ebp + 0x20c]
mov esi, dword [ebp + 0x210]
xor ebx, ebx
mov byte [ebp - 0x11], bl
lea ecx, [ebp - 0x24]
call fcn.00403913
mov dword [ebp - 4], ebx
mov byte [ebp - 4], 1
cmp esi, ebx
je 0x40fb8e
cmp edi, ebx
je 0x40fb87
lea ecx, [ebp - 0x24]
call fcn.004039a6
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x40fb80
push ebx
lea eax, [ebp - 0x18]
push eax
push 0x200
lea eax, [ebp]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40fb6a
cmp dword [ebp - 0x18], ebx
je 0x40fb6a
push dword [ebp - 0x18]
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x24]
call fcn.00403943
mov byte [ebp - 0x11], 1
push ebx
push ebx
push dword [ebp - 0x1c]
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x40fb28
push ebx
push dword [ebp - 0x24]
push edi
call fcn.00413e68
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40fb99
push str.FileToBuffer__FileToBuffer_Error:_creating_file
jmp 0x40fb93
push str.FileToBuffer__FileToBuffer_Error:_szBuffer__NULL
jmp 0x40fb93
push str.FileToBuffer__FileToBuffer_Error:_szFile__NULL
call fcn.00414978
pop ecx
mov dword [ebp - 4], ebx
or dword [ebp - 4], 0xffffffff
push dword [ebp - 0x24]
call fcn.00427f66
pop ecx
mov al, byte [ebp - 0x11]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x200]
xor ecx, ebp
call fcn.00425c6b
add ebp, 0x204
leave
ret
Function at 0x4107c4
Capabilities:
Create process on windows

Disassembly:
push 4
mov eax, 0x4412ed
call fcn.004266a4
xor esi, esi
mov dword [ebp - 4], esi
push str.ShowQuest__ShowQuest_Initialized
call fcn.00414978
pop ecx
call fcn.004130cc
test eax, eax
je 0x410806
push str.ShowQuest__ShowQuest_Current_User_Is_Local_Administrator
call fcn.00414978
pop ecx
push 5
push esi
push dword [ebp + 8]
push str.iexplore
push str.open
jmp 0x410821
push str.ShowQuest__ShowQuest_Current_User_Is_NOT_Local_Administrator
call fcn.00414978
pop ecx
push 5
push esi
push dword [ebp + 8]
push str.iexplore
push str.runas
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ShowQuest__ShowQuest_Finished__ld
call fcn.00414978
pop ecx
pop ecx
or dword [ebp - 4], 0xffffffff
call fcn.00426749
ret
Function at 0x411ae8
Capabilities:
Initialize winsock library
Resolve dns

Disassembly:
push ebp
lea ebp, [esp - 0x11c]
sub esp, 0x19c
mov eax, dword [0x46c054]
xor eax, ebp
mov dword [ebp + 0x118], eax
mov eax, dword [ebp + 0x124]
and dword [ebp - 0x7c], 0
push ebx
mov ebx, dword [sym.imp.WSOCK32.dll_WSAStartup]
push esi
mov esi, dword [ebp + 0x12c]
push edi
mov edi, dword [ebp + 0x128]
mov dword [ebp - 0x80], eax
lea eax, [ebp - 0x78]
push eax
mov byte [edi], 0
and dword [esi], 0
push 0x202
call ebx
test eax, eax
je 0x411b56
lea eax, [ebp - 0x78]
push eax
push 0x101
call ebx
test eax, eax
je 0x411b56
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
test eax, eax
mov dword [ebp - 0x7c], eax
jne 0x411b8d
push dword [ebp - 0x80]
call dword [sym.imp.WSOCK32.dll_gethostbyname]
test eax, eax
je 0x411b84
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
push dword [eax]
call dword [sym.imp.WSOCK32.dll_inet_ntoa]
push eax
push edi
call fcn.00429180
push edi
call fcn.00427e00
add esp, 0xc
mov dword [esi], eax
jmp 0x411b8d
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
mov dword [ebp - 0x7c], eax
mov ecx, dword [ebp + 0x118]
mov eax, dword [ebp - 0x7c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00425c6b
add ebp, 0x11c
leave
ret 0xc
Function at 0x412062
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x928
mov eax, dword [0x46c054]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
test eax, eax
mov ecx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov byte [ebp - 0x10], 0
mov byte [esi], 0
jne 0x4120b0
test ecx, ecx
je 0x412093
mov eax, ecx
jmp 0x41209b
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push 0x104
lea ecx, [ebp - 0x114]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
jmp 0x4120c5
push 0x104
push eax
lea eax, [ebp - 0x114]
push eax
call fcn.00428a70
add esp, 0xc
lea eax, [ebp - 0x928]
push eax
lea eax, [ebp - 0x114]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov edi, eax
test edi, edi
jne 0x4120e8
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor al, al
jmp 0x412133
push ebx
push edi
call fcn.0041530a
pop ecx
mov ebx, eax
push ebx
push edi
push 0
lea eax, [ebp - 0x114]
push eax
mov dword [ebp - 0x920], ebx
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x412129
lea eax, [ebp - 0x91c]
push eax
lea eax, [ebp - 0x924]
push eax
push str.VarFileInfoTranslation
push ebx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
jne 0x412141
push ebx
call fcn.00427f61
pop ecx
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00425c6b
leave
ret
mov eax, dword [ebp - 0x924]
mov eax, dword [eax]
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
rol eax, 0x10
push eax
lea eax, [ebp - 0x10]
push str._08X
push eax
call edi
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x914]
push str.StringFileInfo_sFileVersion
push eax
call edi
add esp, 0x18
lea eax, [ebp - 0x91c]
push eax
lea eax, [ebp - 0x918]
push eax
lea eax, [ebp - 0x914]
push eax
push ebx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
jne 0x4121a4
xor bl, bl
push dword [ebp - 0x920]
call fcn.00427f61
pop ecx
mov al, bl
jmp 0x412132
push 0x19
push dword [ebp - 0x918]
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
cmp byte [ebp + 0x14], 0
je 0x4121da
xor edx, edx
xor ecx, ecx
mov al, byte [esi + edx]
test al, al
je 0x4121d6
cmp al, 0x30
jl 0x4121d0
cmp al, 0x39
jg 0x4121d0
mov byte [esi + ecx], al
inc ecx
inc edx
cmp edx, 0x19
jl 0x4121bd
mov byte [esi + ecx], 0
mov bl, 1
jmp 0x412194

Function at 0x4121fc
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40c
mov eax, dword [0x46c054]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
lea edx, [ebp - 0x40c]
push edx
lea edx, [ebp - 0x404]
push edx
lea edx, [ebp - 0x408]
push edx
push 0
push ecx
push eax
mov dword [ebp - 0x408], 1
mov dword [ebp - 0x40c], 0x400
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x41226a
push eax
lea eax, [ebp - 0x404]
push eax
push esi
call fcn.00413e68
xor eax, eax
add esp, 0xc
cmp dword [esi], eax
setne al
jmp 0x41226c
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00425c6b
leave
ret
Function at 0x412279
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x38c]
sub esp, 0x40c
mov eax, dword [0x46c054]
xor eax, ebp
mov dword [ebp + 0x388], eax
mov ecx, dword [ebp + 0x398]
mov eax, dword [ebp + 0x394]
push esi
mov esi, dword [ebp + 0x39c]
lea edx, [ebp - 0x7c]
push edx
lea edx, [ebp - 0x78]
push edx
lea edx, [ebp - 0x80]
push edx
push 0
push ecx
push eax
mov dword [ebp - 0x80], 3
mov dword [ebp - 0x7c], 0x400
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x412303
push esi
call fcn.00413de9
mov eax, dword [ebp - 0x7c]
inc eax
push eax
call fcn.00428043
push dword [ebp - 0x7c]
lea ecx, [ebp - 0x78]
push ecx
push eax
mov dword [esi], eax
call fcn.00425d00
mov eax, dword [esi]
mov ecx, dword [ebp - 0x7c]
mov byte [ecx + eax], 0
xor eax, eax
add esp, 0x14
cmp dword [esi], eax
setne al
jmp 0x412305
xor al, al
mov ecx, dword [ebp + 0x388]
xor ecx, ebp
pop esi
call fcn.00425c6b
add ebp, 0x38c
leave
ret
Function at 0x412bb6
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
je 0x412c11
push esi
mov esi, dword [ebp + 8]
cmp esi, ebx
je 0x412c10
cmp dword [esi + 8], ebx
je 0x412c10
push edi
push ebx
push 0x80
push 2
push ebx
push 1
push 0x40000000
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x412c0f
mov eax, dword [esi + 8]
mov esi, dword [esi]
push ebx
lea ecx, [ebp + 0xc]
push ecx
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x412c08
mov bl, 1
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov al, bl
pop ebx
pop ebp
ret

Function at 0x412c48
Capabilities:
Get disk information

Disassembly:
push ebp
lea ebp, [esp - 0xe4]
sub esp, 0x164
mov eax, dword [0x46c054]
xor eax, ebp
mov dword [ebp + 0xe0], eax
push esi
push 0x50
lea eax, [ebp + 0x90]
push eax
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x78]
push eax
push 0x104
lea eax, [ebp - 0x74]
push eax
push 0x44b228
mov esi, 0x55555555
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
je 0x412c9f
mov esi, dword [ebp - 0x78]
xor esi, 0x55555555
call dword [sym.imp.KERNEL32.dll_GetVersion]
xor esi, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebp + 0xe0]
and eax, 0xffff0000
xor eax, esi
xor ecx, ebp
pop esi
call fcn.00425c6b
add ebp, 0xe4
leave
ret
Function at 0x412d7e
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0xa0
mov eax, dword [0x46c054]
xor eax, ebp
mov dword [ebp + 0x74], eax
push ebx
xor ebx, ebx
cmp dword [0x46d490], ebx
push esi
jne 0x412edf
push 0x98
lea eax, [ebp - 0x24]
push ebx
push eax
call fcn.00425c80
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
add esp, 0xc
lea eax, [ebp - 0x28]
push eax
mov dword [ebp - 0x28], 0x9c
call esi
test eax, eax
jne 0x412df0
lea eax, [ebp - 0x28]
push eax
mov dword [ebp - 0x28], 0x94
call esi
test eax, eax
jne 0x412df0
call fcn.00412cca
test al, al
je 0x412e1e
mov dword [0x46d490], 0x50
mov eax, dword [ebp - 0x18]
dec eax
je 0x412ea6
dec eax
jne 0x412edf
cmp dword [ebp - 0x24], 6
jne 0x412e47
cmp dword [ebp - 0x20], 1
jne 0x412e25
mov al, byte [ebp + 0x72]
dec al
neg al
sbb eax, eax
and eax, 0xa
add eax, 0x64
jmp 0x412e3d
xor eax, eax
jmp 0x412ee4
cmp dword [ebp - 0x20], ebx
jne 0x412edf
mov al, byte [ebp + 0x72]
dec al
neg al
sbb eax, eax
and eax, 0xa
add eax, 0x50
mov dword [0x46d490], eax
jmp 0x412edf
cmp dword [ebp - 0x24], 5
jne 0x412e94
cmp dword [ebp - 0x20], 2
jne 0x412e71
cmp byte [ebp + 0x72], 1
je 0x412e77
cmp byte [ebp + 0x72], 3
je 0x412e65
cmp byte [ebp + 0x72], 2
jne 0x412edf
mov dword [0x46d490], 0x46
jmp 0x412edf
cmp dword [ebp - 0x20], 1
jne 0x412e83
mov dword [0x46d490], 0x3c
jmp 0x412edf
cmp dword [ebp - 0x20], ebx
jne 0x412edf
mov dword [0x46d490], 0x32
jmp 0x412edf
cmp dword [ebp - 0x24], 4
ja 0x412edf
mov dword [0x46d490], 0x29
jmp 0x412edf
cmp dword [ebp - 0x24], 4
jne 0x412edf
cmp dword [ebp - 0x20], ebx
jne 0x412ebd
mov dword [0x46d490], 0xa
jmp 0x412edf
cmp dword [ebp - 0x20], 0xa
jne 0x412ecf
mov dword [0x46d490], 0x14
jmp 0x412edf
cmp dword [ebp - 0x20], 0x5a
jne 0x412edf
mov dword [0x46d490], 0x1e
mov eax, dword [0x46d490]
mov ecx, dword [ebp + 0x74]
pop esi
xor ecx, ebp
pop ebx
call fcn.00425c6b
add ebp, 0x78
leave
ret
Function at 0x4132d9
Capabilities:
Create directory
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x19c]
sub esp, 0x21c
mov eax, dword [0x46c054]
xor eax, ebp
mov dword [ebp + 0x198], eax
mov eax, dword [ebp + 0x1a8]
mov ecx, dword [ebp + 0x1ac]
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_FindResourceA]
push edi
mov edi, dword [ebp + 0x1a4]
push 0x104
mov dword [ebp - 0x7c], ecx
mov ecx, dword [ebp + 0x1b0]
push eax
push edi
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x78], ecx
call esi
mov ebx, eax
test ebx, ebx
jne 0x41333f
push 0xa
push dword [ebp - 0x74]
push edi
call esi
mov ebx, eax
test ebx, ebx
je 0x4133e9
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
xor esi, esi
cmp eax, esi
je 0x4133e9
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
cmp eax, esi
mov dword [ebp - 0x74], eax
je 0x4133e9
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push dword [ebp - 0x7c]
mov ebx, eax
push dword [ebp - 0x78]
lea eax, [ebp - 0x70]
push 0x4482e0
push 0x208
push eax
call fcn.004290c4
add esp, 0x14
push esi
push dword [ebp - 0x78]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push esi
push 0x80
push 4
push esi
push 1
push 0x40000000
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x4133e9
push esi
lea eax, [ebp - 0x80]
push eax
add ebx, 0xfffffffe
push ebx
push dword [ebp - 0x74]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4133de
push 0x30
push str.Installation_error
push str.Cant_create_file__Disk_Full_
push esi
call dword [sym.imp.USER32.dll_MessageBoxA]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x4133eb
xor al, al
mov ecx, dword [ebp + 0x198]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00425c6b
add ebp, 0x19c
leave
ret
Function at 0x413461
Capabilities:
Create service
Delete service
Persist via windows service
Start service

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
xor ebx, ebx
cmp byte [ebp + 0x1c], bl
push 0x10
mov byte [ebp - 1], bl
pop esi
je 0x41347a
mov esi, 0x110
push 0xf003f
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
cmp eax, ebx
mov dword [ebp - 8], eax
je 0x413547
push edi
push ebx
push ebx
push 0x444954
push ebx
push ebx
push dword [ebp + 8]
push 1
push 2
push esi
mov esi, dword [ebp + 0xc]
push 0xf01ff
push esi
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov edi, eax
cmp edi, ebx
je 0x413515
cmp byte [ebp + 0x14], bl
je 0x413508
mov eax, dword [ebp + 0x10]
mov dword [ebp + 0x1c], eax
lea eax, [ebp + 0x1c]
push eax
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
je 0x4134dd
mov byte [ebp - 1], 1
jmp 0x4134fa
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.true
push esi
push dword [ebp + 8]
push str.InstallService___s_____s____s__StartService___Error__d_
call fcn.00414978
add esp, 0x14
cmp byte [ebp + 0x18], bl
je 0x41350c
push edi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
jmp 0x41350c
mov byte [ebp - 1], 1
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x41353d
cmp byte [ebp + 0x14], bl
mov edi, str.true
jne 0x413524
mov edi, str.false
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push esi
push dword [ebp + 8]
push str.InstallService___s_____s____s__CreateService___Error__d_
call fcn.00414978
add esp, 0x14
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
mov al, byte [ebp - 1]
pop esi
pop ebx
leave
ret

Function at 0x414386
Capabilities:
Delete file

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0
mov ebp, 0x80
push ebp
push 4
push 0
push 1
mov ebx, 0xc0000000
push ebx
push dword [0x46b4f8]
call edi
mov esi, eax
cmp esi, 0xffffffff
je 0x4143ee
push 2
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0x16e360
jbe 0x4143ee
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [0x46b4f8]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
push ebp
push 4
push 0
push 1
push ebx
push dword [0x46b4f8]
call edi
mov esi, eax
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret

Function at 0x4145ad
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
push edi
xor edi, edi
cmp ebx, 0xffffffff
mov dword [ebp - 4], edi
je 0x4145ed
push esi
mov esi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 2
push edi
push 0xffffffffffffffde
push ebx
call esi
cmp eax, 0xffffffff
je 0x4145ec
push edi
lea eax, [ebp - 4]
push eax
push 0x20
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 2
push edi
push edi
push ebx
call esi
pop esi
pop edi
pop ebx
leave
ret
Function at 0x4146ad
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
mov eax, dword [0x46c054]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
call fcn.00412d7e
cmp eax, 0x29
mov eax, 0x44b618
jg 0x4146db
mov eax, 0x444954
push dword [0x46b4f8]
push eax
lea eax, [ebp - 0x128]
push 0x448da8
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x128]
push eax
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
cmp eax, ebx
mov dword [esi], eax
je 0x414730
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x41472e
push 0xfa
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x414730
mov bl, 1
mov ecx, dword [ebp - 4]
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.00425c6b
leave
ret

Function at 0x414978
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x46c054]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
mov dword [ebp - 0x2c], ebx
cmp byte [eax], bl
mov dword [ebp - 0x30], ebx
je 0x414a15
lea eax, [ebp - 0x30]
push eax
call fcn.004146ad
test al, al
pop ecx
je 0x414a15
push esi
call fcn.00414386
push 0x21
mov esi, eax
lea eax, [ebp - 0x28]
push ebx
push eax
call fcn.00425c80
lea eax, [ebp - 0x28]
push eax
push esi
call fcn.004145ad
add esp, 0x14
cmp esi, 0xffffffff
je 0x414a0b
push ebx
push 1
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x28]
push eax
push ebx
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
call fcn.00414759
add esp, 0x1c
test al, al
je 0x414a04
push ebx
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 0x2c]
call fcn.00427e00
pop ecx
push eax
push dword [ebp - 0x2c]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x30]
call fcn.00414740
pop ecx
pop esi
lea eax, [ebp - 0x2c]
push eax
call fcn.00413de9
pop ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00425c6b
leave
ret

Function at 0x425c6b
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x46c054]
jne 0x425c75
repz ret
jmp fcn.0042fbf8
Function at 0x438b7b
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00430028
xor ebx, ebx
cmp dword [0x46e2c4], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x438c50
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x438bbb
xor eax, eax
jmp 0x438d14
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x44e010
push edi
call esi
cmp eax, ebx
je 0x438bb4
push eax
call fcn.0042ffc5
mov dword [esp], 0x44e000
push edi
mov dword [0x46e2c4], eax
call esi
push eax
call fcn.0042ffc5
mov dword [esp], 0x44dfec
push edi
mov dword [0x46e2c8], eax
call esi
push eax
call fcn.0042ffc5
mov dword [0x46e2cc], eax
lea eax, [ebp - 8]
push eax
call fcn.00429e0d
test eax, eax
pop ecx
pop ecx
je 0x438c1e
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004286fc
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x438c50
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0042ffc5
cmp eax, ebx
pop ecx
mov dword [0x46e2d4], eax
je 0x438c50
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0042ffc5
pop ecx
mov dword [0x46e2d0], eax
mov eax, dword [0x46e2d0]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x438cc9
cmp dword [0x46e2d4], esi
je 0x438cc9
push eax
call fcn.00430031
pop ecx
call eax
cmp eax, ebx
je 0x438c96
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x46e2d4]
call fcn.00430031
pop ecx
call eax
test eax, eax
je 0x438c96
test byte [ebp - 0x18], 1
jne 0x438cc9
lea eax, [ebp - 0xc]
push eax
call fcn.00429e44
test eax, eax
pop ecx
je 0x438cb1
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004286fc
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x438cc0
or dword [ebp + 0x10], 0x200000
jmp 0x438cfa
or dword [ebp + 0x10], 0x40000
jmp 0x438cfa
mov eax, dword [0x46e2c8]
cmp eax, esi
je 0x438cfa
push eax
call fcn.00430031
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x438cfa
mov eax, dword [0x46e2cc]
cmp eax, esi
je 0x438cfa
push dword [ebp - 4]
push eax
call fcn.00430031
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x46e2c4]
call fcn.00430031
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret