joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100246d8
Capabilities:
Print debug messages

Disassembly:
push esi
push str.sftldr.dll
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
test eax, eax
jne 0x1002473d
push str.sftldr_wow64.dll
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
test eax, eax
jne 0x1002473d
push ebx
push str.AppVEntSubsystems32.dll
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
test eax, eax
setne bl
cmp byte [0x1003cde0], 0
je 0x10024738
movzx eax, bl
mov esi, 0x1003e190
push eax
push str._ACTWinBrowser__IsRunningInAppV_isAppV5___d
push esi
call fcn.10025a83
add esp, 0xc
cmp byte [0x1003cde0], 0
je 0x10024738
push esi
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
mov al, bl
pop ebx
pop esi
ret
cmp byte [0x1003cde0], 0
je 0x10024768
push str._ACTWinBrowser__IsRunningInAppV_isAppV4OrEarlier
mov esi, 0x1003e190
push esi
call fcn.10025a83
cmp byte [0x1003cde0], 0
pop ecx
pop ecx
je 0x10024768
push esi
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
mov al, 1
pop esi
ret

Function at 0x10025a83
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
pushal
call 0x10025a92
pop dword [ebp - 0x2c]
mov eax, 0x65c7d82e
sub eax, 0x55c57d9c
sub dword [ebp - 0x2c], eax
mov dword [ebp - 0x3c], 0x541d3643
sub dword [ebp - 0x3c], 0x5caf0f8
mov dword [ebp - 0x38], 0xf0c588a5
add dword [ebp - 0x38], 0x416dc3a0
mov dword [ebp - 0x34], 0x7e3e4e2a
sub dword [ebp - 0x34], 0x31f209fc
mov dword [ebp - 0x30], 0x9c70967a
add dword [ebp - 0x30], 0x638f6986
lea eax, [ebp - 0x3c]
push eax
mov eax, 0x6d3b630c
add eax, 0xa2c77de4
add eax, dword [ebp - 0x2c]
call dword [eax]
mov dword [ebp - 0x3c], 0xe1e5c709
sub dword [ebp - 0x3c], 0x6d735db3
mov dword [ebp - 0x38], 0x19b7093b
add dword [ebp - 0x38], 0x27b5583a
mov dword [ebp - 0x34], 0x452bd5af
add dword [ebp - 0x34], 0x1e4396bd
mov dword [ebp - 0x30], 0x83e0d2eb
add dword [ebp - 0x30], 0x7c1f2d15
lea ebx, [ebp - 0x3c]
push ebx
push eax
mov eax, 0x90e6a5f0
add eax, 0x7f1c3a78
add eax, dword [ebp - 0x2c]
call dword [eax]
push 0x40
push 0x1000
push 0x413ec
push 0
call eax
mov ecx, 0xaaee0d30
sub ecx, 0xaaedd4f8
xor edx, edx
add edx, eax
mov edi, 0x10046200
add edi, dword [ebp - 0x2c]
mov esi, 0x6a7b9c3a
sub esi, 0x68122d78
mov ebx, dword [edi]
sub dword [ebp - 0x28], 0xabfcde84
xor ebx, esi
add dword [ebp - 0x28], 0xc06908ed
mov dword [edx], ebx
mov dword [ebp - 4], 0x33a91c89
add edx, 0x97115124
sub edx, 0x97115120
add edi, 0xb4a088cd
sub edi, 0xb4a088c9
loop 0x10025bb0
add eax, 0x58d1f29
add eax, 0xfa73b48a
mov ebx, eax
add eax, 0xdc9903ef
add eax, 0x2366fc16
mov ecx, 0xbf20c942
add ecx, 0x50df36be
add ecx, dword [ebp - 0x2c]
call ebx
leave
ret
Function at 0x10025de4
Capabilities:
Print debug messages

Disassembly:
push 0xac4
mov eax, 0x1002ce82
call fcn.1002a0fc
cmp byte [0x1003cde0], 0
mov ebx, 0x1003e190
mov eax, dword [ebp + 0x18]
mov esi, dword [ebp + 8]
mov dword [ebp - 0xacc], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0xad0], eax
je 0x10025e33
push str._ACTWinBrowser__SendAcroIPCMessage
push ebx
call fcn.10025a83
cmp byte [0x1003cde0], 0
pop ecx
pop ecx
je 0x10025e33
push ebx
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
push 0x208
xor ebx, ebx
lea eax, [ebp - 0x218]
push ebx
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea ecx, [ebp - 0xac8]
call fcn.10025dc7
mov eax, dword [ebp - 0xacc]
lea edi, [ebp - 0xac8]
test eax, eax
cmovne edi, eax
test esi, esi
je 0x1002602b
cmp dword [esi + 0x400], ebx
jne 0x10025e8a
push ebx
push ebx
push ebx
push ebx
call fcn.10022610
add esp, 0x10
test eax, eax
je 0x1002602b
push dword [esi + 0x400]
call dword [sym.imp.kernel32.dll_GetCurrentProcessId]
push eax
push str.AcroSBL
push str._s__lu__lu
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.10025a83
add esp, 0x18
test eax, eax
jle 0x1002602b
lea ecx, [ebp - 0x6bc]
call fcn.10025da7
push dword [ebp + 0x14]
lea eax, [ebp - 0x6bc]
push dword [ebp - 0xad0]
push 1
push 1
push dword [ebp + 0xc]
push eax
call fcn.10025a83
add esp, 0x18
test eax, eax
jne 0x10026002
push ebx
lea eax, [ebp - 0x218]
push eax
push 1
lea ecx, [ebp - 0x2ac]
call fcn.10029305
push dword [esi + 0x400]
lea eax, [ebp - 0x6bc]
mov dword [ebp - 4], ebx
push 0x1388
push edi
push eax
lea ecx, [ebp - 0x2ac]
call fcn.1002952a
test eax, eax
jne 0x10025f6a
cmp dword [edi + 4], eax
sete bl
cmp byte [0x1003cde0], al
je 0x10025ff5
push dword [edi + 4]
mov esi, 0x1003e190
push str._ACTWinBrowser__SendAcroIPCMessage_IPC_call_success_status___lu
push esi
call fcn.10025a83
add esp, 0xc
cmp byte [0x1003cde0], 0
je 0x10025ff5
push esi
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
jmp 0x10025ff5
cmp byte [0x1003cde0], 0
mov esi, 0x1003e190
je 0x10025f95
push str.IPC_Error:_AIPC_ERR
push esi
call fcn.10025a83
cmp byte [0x1003cde0], 0
pop ecx
pop ecx
je 0x10025f95
push esi
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
call dword [sym.imp.kernel32.dll_GetLastError]
push ebx
push ebx
lea ecx, [ebp - 0xacc]
mov dword [ebp - 0xacc], ebx
push ecx
push 0x400
push eax
push ebx
push 0x1300
call dword [sym.imp.kernel32.dll_FormatMessageA]
cmp byte [0x1003cde0], 0
je 0x10025fe9
push dword [ebp - 0xacc]
push str._ACTWinBrowser__IPC_Error_:__s
push esi
call fcn.10025a83
add esp, 0xc
cmp byte [0x1003cde0], 0
je 0x10025fe9
push esi
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
push dword [ebp - 0xacc]
call dword [sym.imp.kernel32.dll_LocalFree]
lea ecx, [ebp - 0x2ac]
call fcn.10025a83
jmp 0x1002602b
cmp byte [0x1003cde0], bl
je 0x1002602b
push str.IPC_CreateMessage_Error:_CreateMessage_failed
mov esi, 0x1003e190
push esi
call fcn.10025a83
pop ecx
pop ecx
cmp byte [0x1003cde0], bl
je 0x1002602b
push esi
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
mov al, bl
call fcn.1002a0a6
ret
Function at 0x100277eb
Capabilities:
Print debug messages

Disassembly:
push esi
push 8
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov esi, eax
pop ecx
test esi, esi
je 0x10027808
push 8
push 0
push esi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
cmp byte [0x1003cde0], 0
je 0x100278ec
push edi
push 0x64
push str.sizeof__t_ASMBlock____d
mov edi, 0x1003e5e0
push edi
call fcn.10025a83
add esp, 0xc
cmp byte [0x1003cde0], 0
je 0x100278eb
push edi
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
cmp byte [0x1003cde0], 0
je 0x100278eb
push 4
push str.sizeof_Uns32____d
push edi
call fcn.10025a83
add esp, 0xc
cmp byte [0x1003cde0], 0
je 0x100278eb
push edi
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
cmp byte [0x1003cde0], 0
je 0x100278eb
push 4
push str.sizeof_HANDLE____d
push edi
call fcn.10025a83
add esp, 0xc
cmp byte [0x1003cde0], 0
je 0x100278eb
push edi
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
cmp byte [0x1003cde0], 0
je 0x100278eb
push 4
push str.sizeof_Handle32____d
push edi
call fcn.10025a83
add esp, 0xc
cmp byte [0x1003cde0], 0
je 0x100278eb
push edi
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
cmp byte [0x1003cde0], 0
je 0x100278eb
push 4
push str.sizeof_void____d
push edi
call fcn.10025a83
add esp, 0xc
cmp byte [0x1003cde0], 0
je 0x100278eb
push edi
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
pop edi
mov eax, esi
pop esi
ret

Function at 0x1002795e
Capabilities:
Print debug messages

Disassembly:
push 0x1c
mov eax, 0x1002cf70
call fcn.1002a0fc
cmp byte [0x1003cde0], 0
mov edi, dword [ebp + 8]
je 0x1002799d
lea eax, [edi + 4]
mov esi, 0x1003e5e0
push eax
push str.ASM_Release__s
push esi
call fcn.10025a83
add esp, 0xc
cmp byte [0x1003cde0], 0
je 0x1002799d
push esi
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
lea eax, [edi + 4]
push eax
lea ecx, [ebp - 0x28]
call fcn.10001b12
push dword [edi + 0x48]
and dword [ebp - 4], 0
lea eax, [ebp - 0x28]
push eax
call fcn.1000276d
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
je 0x100279d3
mov ecx, dword [ebx]
push 1
mov esi, dword [ecx]
mov ecx, esi
call dword [0x1002e5c4]
mov ecx, ebx
call esi
lea ecx, [ebp - 0x28]
call fcn.10025a83
and dword [edi + 0x4c], 0
and dword [edi + 0x44], 0
call fcn.1002a0a6
ret
Function at 0x100279e9
Capabilities:
Print debug messages

Disassembly:
push 0x24
mov eax, 0x1002cf9d
call fcn.1002a0fc
cmp byte [0x1003cde0], 0
mov ebx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], esi
je 0x10027a48
call fcn.10025a83
test al, al
mov edx, 0x1002ea51
mov ecx, str._in_AppContaner
cmove ecx, edx
push ecx
push str.ASM_Retrieve_retrieving_shared_memory_in_Plug_in_s
push 0x1003e5e0
call fcn.10025a83
add esp, 0xc
cmp byte [0x1003cde0], 0
je 0x10027a48
push 0x1003e5e0
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
and dword [esi], 0
lea eax, [edi + 4]
and dword [ebx], 0
lea ecx, [ebp - 0x28]
push eax
call fcn.10001b12
push dword [edi + 0x48]
and dword [ebp - 4], 0
lea eax, [ebp - 0x28]
push eax
call fcn.1000276d
or dword [ebp - 4], 0xffffffff
mov ebx, eax
pop ecx
pop ecx
lea ecx, [ebp - 0x28]
call fcn.10025a83
test ebx, ebx
jne 0x10027aae
cmp byte [0x1003cde0], bl
je 0x10027b0f
push str.ASM_Retrieve_ERROR__finding_memory_mapped_file_
mov ebx, 0x1003e5e0
push ebx
call fcn.10025a83
cmp byte [0x1003cde0], 0
pop ecx
pop ecx
je 0x10027b0f
push ebx
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
jmp 0x10027b0f
mov eax, dword [ebx]
mov esi, dword [eax + 0x20]
mov ecx, esi
call dword [0x1002e5c4]
mov ecx, ebx
call esi
mov dword [edi + 0x44], eax
test eax, eax
jne 0x10027ad5
cmp byte [0x1003cde0], al
je 0x10027b0f
push str.ASM_Retrieve_ERROR__getting_memory_mapped_file_handle_
jmp 0x10027a8f
mov eax, dword [ebx]
push dword [edi + 0x48]
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x1002e5c4]
mov ecx, ebx
call esi
mov dword [edi + 0x4c], eax
test eax, eax
jne 0x10027aff
cmp byte [0x1003cde0], al
je 0x10027b0f
push str.ASM_Retrieve_ERROR__mapping_for_writing_
jmp 0x10027a8f
mov ecx, dword [ebp - 0x2c]
mov eax, dword [edi + 0x48]
mov dword [ecx], eax
mov ecx, dword [ebp - 0x30]
mov eax, dword [edi + 0x4c]
mov dword [ecx], eax
call fcn.1002a0a6
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x403288
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
pushal
mov esi, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov edi, 0x4041fc
sub eax, eax
test esi, esi
je 0x403360
sub eax, 1
test ecx, ecx
je 0x40335e
test esi, 3
je 0x4032c6
xor al, byte [esi]
inc esi
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
dec ecx
jne 0x4032ab
mov edx, ecx
and edx, 7
shr ecx, 3
je 0x403345
xor eax, dword [esi]
add esi, 4
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
xor eax, dword [esi]
add esi, 4
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
dec ecx
jne 0x4032d0
mov ecx, edx
test ecx, ecx
je 0x40335e
xor al, byte [esi]
inc esi
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
dec ecx
jne 0x40334b
not eax
mov dword [esp + 0x1c], eax
popal
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x401130
Capabilities:
Persist via run registry key
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov eax, 0x110
call fcn.00401e50
lea eax, [esp]
push ebx
push ebp
push esi
push edi
push eax
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x40123c
push eax
push eax
mov edx, dword [esp + 0x18]
push eax
lea ecx, [esp + 0x20]
push eax
push ecx
push eax
push eax
push eax
push eax
push eax
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
je 0x4011a4
mov eax, dword [0x40a6c4]
push str.IsInstalled:_RegQueryInfoKey_Failed_
push eax
call fcn.004010e0
mov ecx, dword [esp + 0x18]
add esp, 8
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x110
ret
mov eax, dword [esp + 0x14]
xor ebx, ebx
test eax, eax
jbe 0x401224
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
mov ecx, dword [esp + 0x10]
push 0
push 0
push 0
lea edx, [esp + 0x24]
push 0
lea eax, [esp + 0x2c]
push edx
push eax
push ebx
push ecx
mov dword [esp + 0x38], 0x104
call ebp
test eax, eax
jne 0x401207
mov edi, 0x4081c8
lea esi, [esp + 0x1c]
mov ecx, 0x15
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x4011f3
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x40121b
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x110
ret
mov edx, dword [0x40a6c4]
push str.IsInstalled:_RegEnumValue_Failed_
push edx
call fcn.004010e0
add esp, 8
mov eax, dword [esp + 0x14]
inc ebx
cmp ebx, eax
jb 0x4011b4
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x110
ret
mov ecx, dword [0x40a6c4]
push str.IsInstalled:_RegOpenKey_Failed_
push ecx
call fcn.004010e0
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x110
ret
Function at 0x401260
Capabilities:
Delete registry key
Delete registry value
Persist via run registry key
Query or enumerate registry value

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
lea eax, [esp + 0xc]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
push eax
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push 0x80000002
mov esi, ecx
mov dword [esp + 0x20], 4
xor ebx, ebx
call edi
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x4012cd
mov ecx, dword [esp + 0x10]
push 0x4081c8
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
jne 0x4012b6
mov edx, dword [esp + 0x10]
mov ebx, 1
push edx
call ebp
jmp 0x4012db
push str.Uninstall:_RegDeleteValue__SERVICE__Failed_
push esi
call fcn.004010e0
mov edx, dword [esp + 0x18]
add esp, 8
push edx
call ebp
jmp 0x4012db
push str.Uninstall:_RegOpenKey__SERVICE__Failed_
push esi
call fcn.004010e0
add esp, 8
lea eax, [esp + 0x10]
mov dword [esi + 0xc], 0
push eax
push str.SoftwareTallyLicServer
push 0x80000001
call edi
test eax, eax
jne 0x4013ad
lea ecx, [esp + 0x14]
lea edx, [esp + 0x18]
push ecx
push edx
push eax
push eax
mov eax, dword [esp + 0x20]
push 0x4083b4
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40136c
mov ecx, dword [esp + 0x18]
push 0x3a98
push ecx
call fcn.00401d90
cmp eax, 3
ja case.default.0x40132f
jmp dword [eax*4 + 0x4013c8]
push str.Uninstall:_TerminateApp_had_to_forcibly_kill_running_process_
push esi
call fcn.004010e0
add esp, 8
mov dword [esi + 0xc], 1
jmp 0x40137a
push str.Uninstall:_TerminateApp_failed_in_OpenProcess_
jmp 0x401371
push str.Uninstall:_TerminateApp_failed_to_shutdown_or_kill_running_process_
jmp 0x401371
push eax
push str.Uninstall:_TerminateApp_failed_with_Unknown_Error_Code__d
push esi
call fcn.004010e0
add esp, 0xc
jmp 0x40137a
push str.Uninstall:_RegQueryValueEx__PROCESS_ID__Failed_
push esi
call fcn.004010e0
add esp, 8
mov edx, dword [esp + 0x10]
push edx
call ebp
push str.SoftwareTallyLicServer
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
je 0x4013bb
push str.Uninstall:_RegDeleteKey__PROCESS_ID__Failed_
push esi
call fcn.004010e0
add esp, 8
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
push str.Uninstall:_RegOpenKey__PROCESS_ID__Failed_
push esi
call fcn.004010e0
add esp, 8
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x4013e0
Capabilities:
Delete registry key
Delete registry value
Persist via run registry key
Query or enumerate registry value

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
lea eax, [esp + 0xc]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
push eax
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push 0x80000002
mov ebx, ecx
mov dword [esp + 0x20], 4
mov esi, 1
call edi
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x40142e
mov ecx, dword [esp + 0x10]
push 0x4081c8
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov edx, dword [esp + 0x10]
push edx
call ebp
lea eax, [esp + 0x10]
push eax
push str.SoftwareTallyLicServer
push 0x80000001
call edi
test eax, eax
jne 0x4014a9
lea ecx, [esp + 0x14]
lea edx, [esp + 0x18]
push ecx
push edx
push eax
push eax
mov eax, dword [esp + 0x20]
push 0x4083b4
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x401479
mov ecx, dword [esp + 0x18]
push 0x3a98
push ecx
call fcn.00401d90
cmp eax, 1
jbe 0x401479
xor esi, esi
mov edx, dword [esp + 0x10]
push edx
call ebp
push str.SoftwareTallyLicServer
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
je 0x4014b3
xor esi, esi
push str.Tally_License_Server__9x_
push str._s_Failed_to_clean_older_version_
push ebx
call fcn.004010e0
add esp, 0xc
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
cmp esi, 1
jne 0x401496
push str.Tally_License_Server__9x_
push str._s_Cleaned_older_version_Successfully_
push ebx
call fcn.004010e0
add esp, 0xc
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x4014e0
Capabilities:
Create process on windows
Delete registry key
Set registry value

Disassembly:
mov eax, 0x60
call fcn.00401e50
push esi
push edi
mov esi, ecx
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x24]
rep stosd dword es:[edi], eax
mov word [esp + 0x54], ax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
lea ecx, [esp + 0x14]
lea edx, [esp + 0x24]
mov dword [esp + 0x1c], eax
push ecx
push edx
push eax
push eax
push eax
push eax
push eax
push eax
push str.Tally72.exe
push eax
mov dword [esp + 0x4c], 0x44
mov dword [esp + 0x78], 1
mov dword [esp + 0x48], eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x401562
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Tally72.exe
push str.StartService:_CreateProcess___s__Failed__Error_Code:__d
push esi
call fcn.004010e0
add esp, 0x10
xor eax, eax
pop edi
pop esi
add esp, 0x60
ret
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 8]
push ecx
push str.SoftwareTallyLicServer
push 0x80000001
mov dword [esp + 0x18], eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
je 0x4015ad
push str.StartService:_RegCreateKey_Failed_
push esi
call fcn.004010e0
mov edx, dword [esp + 0x1c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
add esp, 8
push edx
call esi
mov eax, dword [esp + 0x18]
push eax
call esi
pop edi
xor eax, eax
pop esi
add esp, 0x60
ret
mov edx, dword [esp + 8]
lea ecx, [esp + 0xc]
push 4
push ecx
push 4
push 0
push 0x4083b4
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x401601
push str.StartService:_RegSetValueEx_Failed_
push esi
call fcn.004010e0
mov eax, dword [esp + 0x10]
add esp, 8
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
mov edx, dword [esp + 0x18]
push edx
call esi
pop edi
xor eax, eax
pop esi
add esp, 0x60
ret
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x10]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
cmp dword [esp + 0x10], 0x103
je 0x401670
push str.Tally72.exe
push str.StartService:_Process_Exe___s__has_shutdown_
push esi
call fcn.004010e0
add esp, 0xc
push str.SoftwareTallyLicServer
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov eax, dword [esp + 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
mov ecx, dword [esp + 0x18]
push ecx
call esi
pop edi
xor eax, eax
pop esi
add esp, 0x60
ret
mov edx, dword [esp + 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [esp + 0x18]
push eax
call esi
pop edi
mov eax, 1
pop esi
add esp, 0x60
ret
Function at 0x401690
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
mov eax, 0x108
call fcn.00401e50
push ebx
lea eax, [esp + 4]
push esi
push eax
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push 0x80000002
mov esi, ecx
xor ebx, ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x401778
push edi
lea ecx, [esp + 0x10]
push 0x104
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edi, [esp + 0x10]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4016d4
mov edx, dword [0x4085b4]
lea eax, [esp + 0x10]
mov dword [edi], edx
pop edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4016ec
mov ecx, dword [esp + 8]
sub eax, edx
push eax
lea eax, [esp + 0x10]
push eax
push 1
push 0
push 0x4081c8
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x40174a
mov ecx, esi
call fcn.004014e0
test eax, eax
je 0x401739
mov ecx, dword [esp + 8]
mov ebx, 1
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
pop esi
pop ebx
add esp, 0x108
ret
lea edx, [esp + 0xc]
push edx
push 0x4081c8
push str.Install:_StartService___s:_s__Failed_
jmp 0x401759
lea eax, [esp + 0xc]
push eax
push 0x4081c8
push str.Install:_RegSetValueEx___s:_s__Failed_
push esi
call fcn.004010e0
mov ecx, dword [esp + 0x18]
add esp, 0x10
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
pop esi
pop ebx
add esp, 0x108
ret
push str.Install:_RegOpenKey_Failed_
push esi
call fcn.004010e0
add esp, 8
mov eax, ebx
pop esi
pop ebx
add esp, 0x108
ret

Function at 0x401d90
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 0x401db4
pop edi
mov eax, 2
pop esi
ret 8
push esi
push 0x401d50
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 0x401df3
push 0
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov esi, eax
push edi
neg esi
sbb esi, esi
and esi, 0xfffffffe
add esi, 3
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop edi
pop esi
ret 8
push edi
xor esi, esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop edi
pop esi
ret 8