joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42abd3
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
test ebx, 0xffff0000
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
jne 0x42abf3
cmp dword [edi + 0x54], 0
jne 0x42abf3
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.00435133
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [esp + 0x18]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.0042ab9a
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
ret 8

Function at 0x42e5b5
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x42e5ee
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0040d5fb
push eax
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0040548c
pop esi
ret 4
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
pop esi
jmp dword [eax + 0x8c]

Function at 0x42fb06
Capabilities:
Get graphical window text

Disassembly:
push esi
push edi
mov edi, dword [esp + 0x10]
mov esi, ecx
push 0x465e5c
mov ecx, edi
call fcn.004015a9
cmp dword [esi + 0x4c], 0
push dword [esp + 0xc]
jne 0x42fb59
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, eax
test esi, esi
je 0x42fb6c
push esi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
push eax
mov ecx, edi
call fcn.0040d5fb
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0xffffffffffffffff
mov ecx, edi
call fcn.0040548c
jmp 0x42fb6c
mov ecx, esi
call fcn.0042ac9e
test eax, eax
je 0x42fb6c
push edi
mov ecx, eax
call fcn.0042e5b5
mov eax, dword [edi]
mov eax, dword [eax - 0xc]
pop edi
pop esi
ret 8

Function at 0x430050
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x430093
call fcn.00435133
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x430093
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x4300ae
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.0042fc0a
test ebx, ebx
mov esi, eax
je 0x4300ac
test edi, edi
je 0x4300ac
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x437093
Capabilities:
Get geographical location

Disassembly:
push ebp
lea ebp, [esp - 0x1f4]
sub esp, 0x274
mov eax, dword [0x47b038]
xor eax, ebp
mov dword [ebp + 0x1f0], eax
cmp dword [ebp + 0x200], 0x800
mov eax, dword [ebp + 0x1fc]
push esi
mov dword [ebp - 0x40], eax
mov esi, ecx
lea eax, [ebp + 0x1e8]
jne 0x437131
push 0x4627f4
push 4
push eax
call fcn.0043d395
push eax
call fcn.00401555
add esp, 0x10
push ebx
push edi
call fcn.0043f706
mov edi, dword [eax]
call fcn.0043f706
xor ebx, ebx
mov dword [eax], ebx
lea eax, [ebp + 0x1e8]
push eax
push dword [ebp - 0x40]
lea eax, [ebp - 0x3c]
push esi
push 0x111
mov esi, 0x112
push esi
push eax
call fcn.0043f6ac
add esp, 0x18
mov dword [ebp - 0x40], eax
call fcn.0043f706
cmp dword [eax], ebx
je 0x437148
call fcn.0043f706
push dword [eax]
call fcn.004257d0
pop ecx
jmp 0x43714f
push 4
push eax
push 3
push dword [ebp + 0x200]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x4370e2
jmp 0x4371c1
call fcn.0043f706
mov dword [eax], edi
cmp dword [ebp - 0x40], 0xffffffff
je 0x4371bd
cmp dword [ebp - 0x40], esi
jae 0x4371bd
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push 0x3c
mov esi, eax
lea eax, [ebp - 0x7c]
push ebx
push eax
mov dword [ebp - 0x80], 0x40
call fcn.0043f390
add esp, 0xc
push 0x461df8
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp eax, ebx
je 0x4371af
push str.FindActCtxSectionStringW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x4371af
lea ecx, [ebp - 0x80]
push ecx
push esi
push 2
push ebx
push ebx
call eax
test eax, eax
je 0x4371af
push ebx
push ebx
push esi
jmp 0x4371b5
push ebx
push ebx
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
jmp 0x4371bf
xor eax, eax
pop edi
pop ebx
mov ecx, dword [ebp + 0x1f0]
xor ecx, ebp
pop esi
call fcn.0043af43
add ebp, 0x1f4
leave
ret
Function at 0x43af43
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x47b038]
jne 0x43af4d
repz ret
jmp fcn.004432e3
Function at 0x43e74a
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ebx
je 0x43e787
cmp dword [ebp + 0x14], edi
je 0x43e787
cmp ecx, edi
jne 0x43e78e
call fcn.0043f706
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.0043e075
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x43e7a2
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x43e7c3
cmp ebx, 0xffffffff
je 0x43e7b2
push ebx
push edi
push ecx
call fcn.0043f390
add esp, 0xc
cmp esi, edi
je 0x43e76f
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x43e76f
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x43e7df
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x43e7e6
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x43e8d7
test word [esi + 0xc], 0x10c
je 0x43e83a
mov eax, dword [esi + 4]
test eax, eax
je 0x43e83a
jl 0x43e938
cmp ebx, eax
mov edi, ebx
jb 0x43e80b
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x43e8df
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.0043af52
sub dword [esi + 4], edi
add dword [esi], edi
add dword [ebp - 8], edi
sub ebx, edi
add esp, 0x10
sub dword [ebp - 4], edi
mov edi, dword [ebp - 0x10]
jmp 0x43e8cf
cmp ebx, dword [ebp - 0xc]
jb 0x43e8a7
cmp dword [ebp - 0xc], 0
je 0x43e864
mov ecx, SysReAllocString
xor edx, edx
cmp ebx, ecx
jbe 0x43e859
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x43e860
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x43e86f
mov eax, SysReAllocString
cmp ebx, eax
ja 0x43e86f
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x43e90b
push eax
push dword [ebp - 8]
push esi
call fcn.004412b5
pop ecx
push eax
call fcn.0044cdd4
add esp, 0xc
test eax, eax
je 0x43e94a
cmp eax, 0xffffffff
je 0x43e938
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x43e8cf
push esi
call fcn.0044b605
cmp eax, 0xffffffff
pop ecx
je 0x43e93c
cmp dword [ebp - 4], 0
je 0x43e90b
mov ecx, dword [ebp - 8]
inc dword [ebp - 8]
mov byte [ecx], al
mov eax, dword [esi + 0x18]
dec ebx
dec dword [ebp - 4]
mov dword [ebp - 0xc], eax
test ebx, ebx
jne 0x43e7ee
mov eax, dword [ebp + 0x14]
jmp 0x43e789
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x43e8f6
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.0043f390
add esp, 0xc
call fcn.0043f706
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x43e77f
cmp dword [ebp + 0xc], 0xffffffff
je 0x43e921
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.0043f390
add esp, 0xc
call fcn.0043f706
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x43e77f
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x43e789
or dword [esi + 0xc], 0x10
jmp 0x43e93c
Function at 0x442057
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x47b1c0]
je 0x442072
inc edi
cmp edi, 0x17
jb 0x442063
cmp edi, 0x17
jae 0x4421f2
push ebp
push 3
call fcn.0044fd52
cmp eax, 1
pop ecx
je 0x4421be
push 3
call fcn.0044fd52
test eax, eax
pop ecx
jne 0x4420a6
cmp dword [0x47ad84], 1
je 0x4421be
cmp ebx, 0xfc
je 0x4421f1
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x4801c8
push ebp
call fcn.0044aab1
add esp, 0xc
test eax, eax
je 0x4420dc
push esi
push esi
push esi
push esi
push esi
call fcn.0043df79
add esp, 0x14
push 0x104
mov esi, 0x4801e1
push esi
push 0
mov byte [0x4802e5], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x442120
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.0044aab1
add esp, 0xc
test eax, eax
je 0x442120
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0043df79
add esp, 0x14
push esi
call fcn.00441af0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x442165
push esi
call fcn.00441af0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x4804dc
push 0x463c1c
sub ecx, eax
push ecx
push eax
call fcn.0044fc9f
add esp, 0x14
test eax, eax
je 0x442165
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0043df79
add esp, 0x14
jmp 0x442167
xor esi, esi
push 0x463c18
push ebx
push ebp
call fcn.0044fc2e
add esp, 0xc
test eax, eax
je 0x442187
push esi
push esi
push esi
push esi
push esi
call fcn.0043df79
add esp, 0x14
push dword [edi*8 + 0x47b1c4]
push ebx
push ebp
call fcn.0044fc2e
add esp, 0xc
test eax, eax
je 0x4421a9
push esi
push esi
push esi
push esi
push esi
call fcn.0043df79
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0044fa71
add esp, 0xc
jmp 0x4421f1
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x4421f1
cmp ebp, 0xffffffff
je 0x4421f1
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x47b1c4]
push dword [esi]
call fcn.00441af0
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x44fa71
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00442c1b
xor ebx, ebx
cmp dword [0x480ccc], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x44fb47
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x44fc27
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x44fc27
push eax
call fcn.00442bad
mov dword [esp], 0x464128
push edi
mov dword [0x480ccc], eax
call esi
push eax
call fcn.00442bad
mov dword [esp], 0x464114
push edi
mov dword [0x480cd0], eax
call esi
push eax
call fcn.00442bad
mov dword [0x480cd4], eax
lea eax, [ebp - 0xc]
push eax
call fcn.0043dcfc
test eax, eax
pop ecx
pop ecx
je 0x44fb15
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0043df79
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x44fb47
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00442bad
cmp eax, ebx
pop ecx
mov dword [0x480cdc], eax
je 0x44fb47
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00442bad
pop ecx
mov dword [0x480cd8], eax
mov eax, dword [0x480cd8]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x44fbcc
cmp dword [0x480cdc], ecx
je 0x44fbcc
push eax
call fcn.00442c24
push dword [0x480cdc]
mov esi, eax
call fcn.00442c24
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x44fbcc
cmp edi, ebx
je 0x44fbcc
call esi
cmp eax, ebx
je 0x44fb99
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x44fb99
test byte [ebp - 0x18], 1
jne 0x44fbcc
lea eax, [ebp - 0x10]
push eax
call fcn.0043dd33
test eax, eax
pop ecx
je 0x44fbb4
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0043df79
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x44fbc3
or dword [ebp + 0x10], 0x200000
jmp 0x44fc07
or dword [ebp + 0x10], 0x40000
jmp 0x44fc07
mov eax, dword [0x480cd0]
cmp eax, dword [ebp - 8]
je 0x44fc07
push eax
call fcn.00442c24
cmp eax, ebx
pop ecx
je 0x44fc07
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x44fc07
mov eax, dword [0x480cd4]
cmp eax, dword [ebp - 8]
je 0x44fc07
push eax
call fcn.00442c24
cmp eax, ebx
pop ecx
je 0x44fc07
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x480ccc]
call fcn.00442c24
cmp eax, ebx
pop ecx
je 0x44fc27
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x44fc29
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4096c0
Capabilities:
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x450
mov eax, dword [0x40d018]
xor eax, ebp
mov dword [ebp - 0x40], eax
xor eax, eax
mov word [ebp - 0x248], ax
push 0x206
push 0
lea ecx, [ebp - 0x246]
push ecx
call sub.MSVCR90.dll_memset
add esp, 0xc
xor edx, edx
mov word [ebp - 0x450], dx
push 0x206
push 0
lea eax, [ebp - 0x44e]
push eax
call sub.MSVCR90.dll_memset
add esp, 0xc
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.MSVCR90.dll_wcslen]
add esp, 4
test eax, eax
jbe 0x40974f
mov edx, dword [ebp + 0xc]
push edx
push 0x104
lea eax, [ebp - 0x450]
push eax
call fcn.004062c0
push 0x40b3b4
push 0x104
lea ecx, [ebp - 0x450]
push ecx
call fcn.00406310
jmp 0x40979e
lea edx, [ebp - 0x450]
push edx
push 0
push 0
push 0x2b
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jl 0x409780
push 0x40b3b8
push 0x104
lea eax, [ebp - 0x450]
push eax
call fcn.00406310
jmp 0x40979e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x40b3d8
push str.SHGetFolderPath_failed
call fcn.004080a0
add esp, 0xc
jmp 0x409874
lea ecx, [ebp - 0x450]
push ecx
push 0x104
lea edx, [ebp - 0x248]
push edx
call fcn.004062c0
push str.AdobeARMHelper.exe
push 0x104
lea eax, [ebp - 0x248]
push eax
call fcn.00406310
push 0xffffffffffffffff
lea ecx, [ebp - 0x248]
push ecx
call fcn.004095f0
add esp, 8
test eax, eax
jne 0x4097fc
push 0x357
lea edx, [ebp - 0x248]
push edx
push str.Service_workflow_failed__file_not_valid:
call fcn.004080a0
add esp, 0xc
jmp 0x409874
mov dword [ebp - 0x3c], 0
push 0x38
push 0
lea eax, [ebp - 0x38]
push eax
call sub.MSVCR90.dll_memset
add esp, 0xc
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x38], 0x540
mov dword [ebp - 0x20], 5
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x28], ecx
lea edx, [ebp - 0x248]
mov dword [ebp - 0x2c], edx
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x40985b
push 0
push 0x40b48c
push str.ShellExecuteEx_succeeded
call fcn.004080a0
add esp, 0xc
jmp 0x409874
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x40b4c4
push str.ShellExecuteEx_failed
call fcn.004080a0
add esp, 0xc
mov ecx, dword [ebp - 0x40]
xor ecx, ebp
call fcn.00407458
mov esp, ebp
pop ebp
ret

Function at 0x408932
Capabilities:
Encode data using xor

Disassembly:
mov ecx, 0x4085d8
sub eax, ebx
call fcn.00408964
sub eax, ebx
xor dword [edx], ecx
add ebx, 0x5106c7dc
sub eax, 0xaaa37cf2
inc edx
and ebx, eax
sub eax, 0x5e54227b
cmp edx, edi
jne fcn.00408932
add ebx, 1
or eax, eax
ret
Function at 0x401000
Capabilities:
Accept command line arguments
Check os version

Disassembly:
mov eax, 0x30
call fcn.00401ed0
lea ecx, [esp + 4]
call fcn.00401090
mov eax, dword [esp + 0x34]
mov dword [0x40a6c0], eax
call dword [sym.imp.KERNEL32.dll_GetVersion]
test ah, ah
je 0x40104f
cmp al, 5
je 0x40104f
push 0
push 0x4081bc
push str.This_application_cannot_run_on_this_OS._n_Use_tallylic9xserver.exe
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
lea ecx, [esp + 4]
call fcn.00401110
xor eax, eax
add esp, 0x30
ret 0x10
push esi
lea ecx, [esp + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov edx, dword [esp + 4]
push eax
push edx
lea ecx, [esp + 0x10]
call fcn.00401c70
lea ecx, [esp + 8]
mov esi, eax
call fcn.00401110
mov eax, esi
pop esi
add esp, 0x30
ret 0x10

Function at 0x4011d0
Capabilities:
Create service
Persist via windows service
Start service

Disassembly:
mov eax, 0x104
call fcn.00401ed0
push ebx
push ebp
push 0xf003f
push 0
push 0
mov ebp, ecx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebx, eax
test ebx, ebx
jne 0x401213
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Install:_OpenSCManager_Failed__Error_Code:__d
push ebp
call fcn.00401120
add esp, 0xc
pop ebp
xor eax, eax
pop ebx
add esp, 0x104
ret
push esi
push edi
push 0x104
lea eax, [esp + 0x14]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edi, [esp + 0x10]
dec edi
lea esp, [esp]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x401230
push 0
mov ecx, dword [0x4082a8]
push 0
push 0
push 0
push 0
lea edx, [esp + 0x24]
push edx
push 1
push 2
push 0x10
push 0xf01ff
push str.Tally_License_Server__NT_
push 0x4081bc
push ebx
mov dword [edi], ecx
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov esi, eax
test esi, esi
jne 0x40129f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esp + 0x14]
push eax
push str.Install:_CreateService___s__Failed__Error_Code:__d
push ebp
call fcn.00401120
add esp, 0x10
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x104
ret
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
jne 0x4012c8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [esp + 0x14]
push ecx
push str.Install:_StartService___s__Failed__Error_Code:__d
push ebp
call fcn.00401120
add esp, 0x10
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push ebx
call esi
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x104
ret
Function at 0x4012f0
Capabilities:
Delete service
Stop service

Disassembly:
sub esp, 0x1c
push ebx
push ebp
push edi
push 0xf003f
xor ebx, ebx
push ebx
push ebx
mov ebp, ecx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
jne 0x40132b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Uninstall:_OpenSCManager_Failed__Error_Code:__d
push ebp
call fcn.00401120
add esp, 0xc
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1c
ret
push esi
push 0xf01ff
push 0x4081bc
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
je 0x4013ab
lea eax, [esp + 0x10]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
je 0x401379
push esi
mov ebx, 1
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop esi
pop edi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x1c
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Tally_License_Server__NT_
push str.Uninstall:_DeleteService___s__Failed__Error_Code:__d
push ebp
call fcn.00401120
add esp, 0x10
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop esi
pop edi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x1c
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Tally_License_Server__NT_
push str.Uninstall:_OpenService___s__Failed__Error_Code:__d
push ebp
call fcn.00401120
add esp, 0x10
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop esi
pop edi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x1c
ret

Function at 0x4013e0
Capabilities:
Delete service
Stop service

Disassembly:
mov eax, 0x20
call fcn.00401ed0
push ebx
push esi
push edi
push 0xf003f
push 0
mov esi, ecx
push 0
mov dword [esp + 0x18], esi
mov ebx, 1
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
jne 0x40142b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Clean:_OpenSCManager_Failed__Error_Code:__d
push esi
call fcn.00401120
add esp, 0xc
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x20
ret
push ebp
push 0xf01ff
push 0x4081bc
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebp, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
test esi, esi
je 0x401483
lea eax, [esp + 0x14]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x401464
xor ebx, ebx
push esi
call ebp
cmp ebx, 1
jne 0x401483
mov ecx, dword [esp + 0x10]
push str.Tally_License_Server__NT_
push str._s_Cleaned_older_version_Successfully_
push ecx
call fcn.00401120
add esp, 0xc
push edi
call ebp
pop ebp
pop edi
pop esi
mov eax, ebx
pop ebx
add esp, 0x20
ret
Function at 0x401490
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x58
call fcn.00401ed0
push esi
push edi
xor eax, eax
mov esi, ecx
mov ecx, 0x11
lea edi, [esp + 0x1c]
rep stosd dword es:[edi], eax
mov dword [esp + 0x20], eax
mov word [esp + 0x4c], ax
mov dword [esp + 0xc], eax
lea ecx, [esp + 0xc]
push ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
lea edx, [esp + 0x20]
push edx
push eax
push eax
push eax
push eax
push eax
push eax
push str.Tally9.exe
push eax
mov dword [esp + 0x44], 0x44
mov dword [esp + 0x70], 1
mov dword [esp + 0x40], eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x401516
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Tally9.exe
push str.Run:_CreateProcess___s__Failed__Error_Code:__d
push esi
call fcn.00401120
add esp, 0x10
pop edi
xor eax, eax
pop esi
add esp, 0x58
ret
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0xbb8
call edi
mov ecx, dword [esp + 0xc]
lea eax, [esp + 8]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
cmp dword [esp + 8], 0x103
je 0x40156c
push str.Tally9.exe
push str.Run:_Process_Exe___s__has_shutdown_
push esi
call fcn.00401120
mov edx, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
add esp, 0xc
push edx
call esi
mov eax, dword [esp + 0x10]
push eax
call esi
pop edi
xor eax, eax
pop esi
add esp, 0x58
ret
mov edx, dword [esp + 0xc]
mov ecx, dword [esp + 0x14]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
mov dword [0x40a6c4], ecx
call ebx
mov eax, dword [esp + 0x14]
push eax
call ebx
mov eax, dword [esi + 0x24]
test eax, eax
pop ebx
je 0x4015a1
push 0x3e8
call edi
mov eax, dword [esi + 0x24]
test eax, eax
jne 0x401593
pop edi
mov eax, 1
pop esi
add esp, 0x58
ret

Function at 0x401db0
Capabilities:
Enumerate gui resources
Terminate process

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push esi
push 0
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
jne 0x401dd4
pop edi
mov eax, 2
pop esi
ret 8
push esi
push 0x401d70
call dword [sym.imp.USER32.dll_EnumWindows]
mov eax, dword [esp + 0x10]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x401e13
push 0
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov esi, eax
neg esi
sbb esi, esi
and esi, 0xfffffffe
push edi
add esi, 3
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
ret 8
push edi
xor esi, esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
ret 8