joyce8/EMBER2024-capa huggingface dataset:
Function at 0x129fcbd
Capabilities:
Modify service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
xor esi, esi
push 0xf003f
push esi
push esi
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, eax
test ebx, ebx
jne 0x129fd15
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push str._AMPPL__Failed_to_OpenSCManager:__d
push str.MicroAgent::CMicroAgentService::EnableAmppl
push 0x6f8
push str.uAgentService.cpp
push 0x10
push 2
call fcn.012a4bb5
mov edi, dword [ebp - 0xc]
add esp, 0x1c
jmp 0x129fe4f
push 3
push str.ds_notifier
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
test edi, edi
jne 0x129fd5c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push str.ds_notifier
push str._AMPPL__OpenService__s__failed___d_
push str.MicroAgent::CMicroAgentService::EnableAmppl
push 0x701
push str.uAgentService.cpp
push 0x10
push 2
call fcn.012a4bb5
add esp, 0x20
jmp 0x129fe5a
lea eax, [ebp - 0xc]
push eax
push 4
lea eax, [ebp - 4]
push eax
push 0xc
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfig2W]
test eax, eax
jne 0x129fda1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push str._AMPPL__Failed_to_QueryServiceConfig2_SERVICE_CONFIG_LAUNCH_PROTECTED___error:__d
push str.MicroAgent::CMicroAgentService::EnableAmppl
push 0x709
push str.uAgentService.cpp
push 0x10
push 2
call fcn.012a4bb5
add esp, 0x1c
jmp 0x129fe4f
push dword [ebp - 4]
push str._AMPPL__Current_launch_protected_config___d
push str.MicroAgent::CMicroAgentService::EnableAmppl
push 0x70d
push str.uAgentService.cpp
push 0x10
push 8
call fcn.012a4bb5
add esp, 0x1c
cmp byte [ebp + 8], 0
je 0x129fdf9
push 3
pop eax
cmp dword [ebp - 4], eax
jne 0x129fdf4
push str._AMPPL__Already_amppl
push str.MicroAgent::CMicroAgentService::EnableAmppl
push 0x714
push str.uAgentService.cpp
push 0x10
push 8
call fcn.012a4bb5
add esp, 0x18
jmp 0x129fe4f
mov dword [ebp - 8], eax
jmp 0x129fe12
cmp dword [ebp - 4], esi
jne 0x129fe0f
push str._AMPPL__Already_not_amppl
push str.MicroAgent::CMicroAgentService::EnableAmppl
push 0x71f
jmp 0x129fde1
mov dword [ebp - 8], esi
lea eax, [ebp - 8]
push eax
push 0xc
push edi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
test eax, eax
jne 0x129fe4f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push dword [ebp - 8]
push str._AMPPL__Failed_to_ChangeServiceConfig2__d___error:__d_
push str.MicroAgent::CMicroAgentService::EnableAmppl
push 0x72a
push str.uAgentService.cpp
push 0x10
push 2
call fcn.012a4bb5
add esp, 0x20
test edi, edi
je 0x129fe5a
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test ebx, ebx
je 0x129fe65
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x12a2a01
Capabilities:
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
and dword [eax + 0x18], 0
and dword [eax + 0x1c], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
pop ebp
ret
Function at 0x12a426d
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
xor edi, edi
mov esi, ecx
push edi
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi], eax
test eax, eax
jne 0x12a42b4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Failed_to_CreateThread___d_
push str.MicroAgent::CThreadAdapter::CreateThread
push 0xe0
push str.uAgentUtilities.cpp
push 0x20
push 2
call fcn.012a4bb5
add esp, 0x1c
inc edi
mov eax, edi
pop edi
pop esi
pop ebp
ret 8

Function at 0x12a4b4b
Capabilities:
Print debug messages

Disassembly:
push 4
mov eax, 0x13213a6
call fcn.012b0d5c
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.012a4fee
pop ecx
pop ecx
test al, al
je 0x12a4baf
call fcn.0128662a
push eax
lea ecx, [ebp - 0x10]
call fcn.012a3ce1
and dword [ebp - 4], 0
lea eax, [ebp + 0x20]
push eax
push dword [ebp + 0x1c]
lea ecx, [ebp - 0x10]
call fcn.012a46b9
push dword [ebp + 0x18]
lea eax, [ebp - 0x10]
push str.___s__n
push eax
call fcn.012a3dc9
mov esi, dword [ebp - 0x10]
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea ecx, [esi - 0x10]
call fcn.012a4e78
call fcn.012b0d25
ret

Function at 0x12a4bb5
Capabilities:
Print debug messages

Disassembly:
push 4
mov eax, 0x13213c9
call fcn.012b0d5c
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.012a4fee
pop ecx
pop ecx
test al, al
je 0x12a4c19
call fcn.0128662a
push eax
lea ecx, [ebp - 0x10]
call fcn.012a3d0a
and dword [ebp - 4], 0
lea eax, [ebp + 0x20]
push eax
push dword [ebp + 0x1c]
lea ecx, [ebp - 0x10]
call fcn.012a4719
push dword [ebp + 0x18]
lea eax, [ebp - 0x10]
push str.___S__n
push eax
call fcn.012a3ddd
mov esi, dword [ebp - 0x10]
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea ecx, [esi - 0x10]
call fcn.012a4e78
call fcn.012b0d25
ret
Function at 0x12a71fc
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, ecx
push edi
mov edi, dword [ebp + 0x10]
cmp dword [esi + 0x3c], 0
jne 0x12a7277
lea eax, [esi + 0x10]
push eax
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x12a7303
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push 0x6d
pop eax
cmp ebx, eax
je 0x12a7305
cmp ebx, 0x3e5
je 0x12a7277
push dword [esi + 0x20]
push 0
push dword [ebp + 0xc]
push dword [esi + 0xc]
push ebx
push str.ReadFile_____unexpected_err
push 0x1331030
push 0xf9
push str.Win32PipeChannel.cpp
push 2
push 2
call fcn.012a4bb5
add esp, 0x2c
mov eax, ebx
jmp 0x12a7305
push 0x7d0
push dword [esi + 0x20]
mov dword [esi + 0x3c], 1
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x12a7297
mov eax, 0x102
jmp 0x12a7305
and dword [esi + 0x3c], 0
lea eax, [esi + 0x10]
push 0
push edi
push eax
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
jne 0x12a72de
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [edi]
mov esi, eax
push esi
push 0x1331058
push 0x1331030
push 0x10f
push str.Win32PipeChannel.cpp
push 2
push 2
call fcn.012a4bb5
add esp, 0x20
mov eax, esi
jmp 0x12a7305
push dword [ebp + 8]
push dword [edi]
push 0x13310e0
push 0x1331030
push 0x113
push str.Win32PipeChannel.cpp
push 4
push 8
call fcn.012a4bb5
add esp, 0x20
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x12a73ab
Capabilities:
Create pipe

Disassembly:
push 0x18
mov eax, 0x132165f
call fcn.012b0d5c
mov edi, ecx
push 2
pop ebx
mov dword [edi + 4], ebx
mov eax, dword [0x1351020]
mov dword [ebp - 0x10], eax
xor esi, esi
lea eax, [edi + 0x24]
cmp dword [eax + 0x14], 8
mov dword [ebp - 4], esi
jb 0x12a73d7
mov eax, dword [eax]
push eax
push dword [0x1351e6c]
lea eax, [ebp - 0x10]
push eax
call fcn.012a6d62
push dword [ebp - 0x10]
push str.Create_Pipe___s_
push str.MicroAgent::CWin32PipeChannel::Service
push 0x67
push str.Win32PipeChannel.cpp
push ebx
push 8
call fcn.012a4bb5
add esp, 0x28
mov dword [ebp - 0x18], 0x13306f4
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
mov eax, dword [edi]
lea ecx, [ebp - 0x24]
push ecx
mov ecx, edi
mov byte [ebp - 4], 1
call dword [eax + 0x28]
test al, al
jne 0x12a744d
push str.Failed_to_set_security_attributes.
push str.MicroAgent::CWin32PipeChannel::Service
push 0x6d
push str.Win32PipeChannel.cpp
push ebx
push 8
call fcn.012a4bb5
add esp, 0x18
push 0x57
pop esi
jmp 0x12a74a6
lea eax, [ebp - 0x24]
push eax
push esi
mov eax, 0x1000
push eax
push eax
push 0xff
push 6
push 0x40000003
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov dword [edi + 0xc], eax
cmp eax, 0xffffffff
jne 0x12a74a3
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
push eax
push dword [ebp - 0x10]
push str.Failed_to_create_a_named_pipe___s__Err_d_.
push str.MicroAgent::CWin32PipeChannel::Service
push 0x7d
push str.Win32PipeChannel.cpp
push ebx
push ebx
call fcn.012a4bb5
add esp, 0x20
call esi
mov esi, eax
jmp 0x12a74a6
mov dword [edi + 4], ebx
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], 0x13306f4
call fcn.012a6895
lea ecx, [ebp - 0x10]
call fcn.01288762
mov eax, esi
call fcn.012b0d25
ret
Function at 0x12a77da
Capabilities:
Check for time delay via gettickcount
Connect pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
add eax, dword [ebp + 8]
mov ebx, str.MicroAgent::CWin32PipeChannel::WaitForClient
mov ecx, dword [esi + 0xc]
mov dword [ebp - 0xc], eax
push 2
pop edi
cmp ecx, 0xffffffff
je 0x12a7879
lea eax, [esi + 0x10]
mov dword [ebp - 8], eax
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
jne 0x12a7964
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 0x217
je 0x12a7964
cmp esi, 0x3e5
jne 0x12a793c
mov eax, dword [ebp - 4]
push dword [ebp + 8]
push dword [eax + 0x20]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x12a78df
cmp eax, 0x102
jne 0x12a78c2
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebp - 0xc]
sub ecx, eax
mov dword [ebp + 8], ecx
cmp ecx, 0x64
jle 0x12a78be
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0xc]
mov eax, dword [ebp - 8]
cmp ecx, 0xffffffff
jne 0x12a780a
push 9
pop esi
mov eax, dword [ebp - 4]
cmp dword [eax + 0xc], 0xffffffff
je 0x12a78b3
push dword [eax + 0xc]
call dword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
test eax, eax
jne 0x12a78b3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Failed_to_disconnect_the_pipe_for_the_next_connection._Error_code___d_
push ebx
push 0xe0
push str.Win32PipeChannel.cpp
push edi
push edi
call fcn.012a4bb5
add esp, 0x1c
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 4
jmp 0x12a787b
push eax
push str.Failed_to_wait_for_client_connections_on_pipe_with_pending_IO._Error_code___d_
push ebx
push 0xd4
push str.Win32PipeChannel.cpp
push edi
push edi
call fcn.012a4bb5
add esp, 0x1c
jmp 0x12a787c
mov eax, dword [ebp - 4]
mov ebx, str.MicroAgent::CWin32PipeChannel::WaitForClient
push dword [eax + 0xc]
push str.A_client_is_connected__d.
push ebx
push 0xb9
push str.Win32PipeChannel.cpp
push 2
pop edi
push edi
push 8
call fcn.012a4bb5
add esp, 0x1c
lea eax, [ebp + 8]
xor esi, esi
mov dword [ebp + 8], esi
push esi
push eax
mov eax, dword [ebp - 4]
push dword [ebp - 8]
push dword [eax + 0xc]
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
jne 0x12a78b3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Failed_to_GetOverlappedResult___for_ConnectNamedPipe__but_its_fine._Lets_continue.___d_
push ebx
push 0xbd
jmp 0x12a78a4
push esi
push str.Failed_to_connect_the_pipe._Error_code___d_
push ebx
push 0xd9
push str.Win32PipeChannel.cpp
push edi
push edi
call fcn.012a4bb5
add esp, 0x1c
test esi, esi
je 0x12a78b3
jmp 0x12a787c
xor esi, esi
jmp 0x12a78b3
Function at 0x12a79aa
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
lea ebx, [edi + 0x10]
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x12a7a1f
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
mov dword [ebp + 0xc], eax
call esi
cmp eax, 0x3e5
jne 0x12a7a1a
push 1
push dword [ebp + 0x10]
push ebx
push dword [edi + 0xc]
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
jne 0x12a7a1f
call esi
push eax
push 0x1331110
push 0x133117c
push 0x120
push str.Win32PipeChannel.cpp
push 2
push 2
call fcn.012a4bb5
add esp, 0x1c
call esi
jmp 0x12a7a21
mov eax, dword [ebp + 0xc]
jmp 0x12a7a21
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 0xc

Function at 0x131016b
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0130f945

Function at 0x1310176
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0130fb80

Function at 0x1310da3
Capabilities:
Create thread
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.01310b2a
Function at 0x40382f
Capabilities:
Get common file path

Disassembly:
mov eax, 0x1004
call fcn.004163d0
mov eax, dword [0x43565c]
xor eax, esp
mov dword [esp + 0x1000], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x1014]
push edi
mov edi, dword [esp + 0x101c]
cmp word [esi], 0
je 0x4039c8
push esi
call fcn.004039e5
push esi
call fcn.0041b003
pop ecx
push esi
mov ebx, eax
call fcn.00403a10
test al, al
je 0x403908
push esi
call fcn.004039e5
test al, al
je 0x4038c1
lea eax, [ebx + 4]
cmp dword [esp + 0x1020], eax
jbe 0x4039c8
push dword [esp + 0x1020]
push str.__
push edi
call fcn.00406d8c
push dword [esp + 0x1020]
push esi
push edi
call fcn.00406d64
mov al, 1
jmp 0x4039ca
push 0x5c
pop eax
cmp word [esi], ax
jne 0x4039c8
lea ebp, [esi + 2]
cmp word [ebp], ax
jne 0x4039c8
mov esi, dword [esp + 0x1020]
lea eax, [ebx + 6]
cmp esi, eax
jbe 0x4039c8
push esi
push str.__
push edi
call fcn.00406d8c
push esi
push 0x42a5f4
push edi
call fcn.00406d64
push esi
push ebp
jmp 0x4038b4
lea eax, [esp + 0x10]
mov ebp, 0x7ff
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x4039c8
cmp eax, ebp
ja 0x4039c8
movzx eax, word [esi]
push eax
call fcn.00403a45
test al, al
je 0x40396d
lea eax, [ebx + 6]
mov ebx, dword [esp + 0x1020]
cmp ebx, eax
jbe 0x4039c8
push ebx
push str.__
push edi
call fcn.00406d8c
xor eax, eax
mov word [esp + 0x14], ax
lea eax, [esp + 0x10]
push ebx
push eax
push edi
call fcn.00406d64
push ebx
jmp 0x4038b3
push 0x800
lea eax, [esp + 0x14]
push eax
call fcn.004033cf
lea eax, [esp + 0x10]
push eax
call fcn.0041b003
add ebx, 4
add eax, ebx
mov ebx, dword [esp + 0x1024]
pop ecx
cmp ebx, eax
jbe 0x4039c8
push ebx
push str.__
push edi
call fcn.00406d8c
push ebx
lea eax, [esp + 0x14]
push eax
push edi
call fcn.00406d64
cmp word [esi], 0x2e
jne 0x403967
movzx eax, word [esi + 2]
push eax
call fcn.00403a45
test al, al
je 0x403967
add esi, 4
jmp 0x403967
xor al, al
mov ecx, dword [esp + 0x1010]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00416329
add esp, 0x1004
ret 0xc
Function at 0x408898
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x42b7a4], 0
push ebp
mov ebp, esp
push esi
push ebx
mov edx, dword [ebp + 0xc]
je 0x4088b5
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0x10]
not eax
add ebx, edx
jmp 0x4088e3
xor ecx, ecx
mov eax, ecx
mov ebx, 8
mov esi, eax
and eax, 1
neg eax
shr esi, 1
and eax, 0xedb88320
xor eax, esi
dec ebx
jne 0x4088be
mov dword [ecx*4 + 0x42b7a0], eax
inc ecx
cmp ecx, 0x100
jne 0x4088b7
jmp 0x4088a9
cmp edx, ebx
je 0x4088fc
inc edx
mov cl, al
shr eax, 8
xor cl, byte [edx - 1]
movzx ecx, cl
xor eax, dword [ecx*4 + 0x42b7a0]
jmp 0x4088e3
pop ebx
not eax
pop esi
pop ebp
ret 0xc

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 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 0x4d2de0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x8b000]
push edi
or ebp, 0xffffffff
jmp 0x4d2e02
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4d2e09
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4d2df8
mov eax, 1
add ebx, ebx
jne 0x4d2e1b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4d2e2c
jne 0x4d2e4b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4d2e4b
dec eax
add ebx, ebx
jne 0x4d2e38
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4d2e10
add ebx, ebx
jne 0x4d2e47
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4d2e9d
xor ecx, ecx
sub eax, 3
jb 0x4d2e63
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4d2ed2
sar eax, 1
mov ebp, eax
jmp 0x4d2e6e
add ebx, ebx
jne 0x4d2e6e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4d2e3c
inc ecx
add ebx, ebx
jne 0x4d2e7c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4d2e3c
add ebx, ebx
jne 0x4d2e89
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4d2e7e
jne 0x4d2e9a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4d2e7e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4d2ebc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4d2eae
jmp 0x4d2dfe
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4d2ebc
add edi, ecx
jmp 0x4d2dfe
pop esi
lea edi, [esi + 0xce000]
mov ecx, 4
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4d2ede
mov eax, dword [edi]
mov bl, byte [edi + 4]
xchg ah, al
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x4d2ee3
lea edi, [esi + 0xcf000]
mov eax, dword [edi]
or eax, eax
je 0x4d2f4b
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xd2be4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xd2cd8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4d2f09
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xd2ce0]
or eax, eax
je 0x4d2f45
mov dword [ebx], eax
add ebx, 4
jmp 0x4d2f26
call dword [esi + 0xd2cdc]
mov ebp, dword [esi + 0xd2ce4]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x207]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4d2f7f
sub esp, 0xffffff80
jmp 0x422f50
Function at 0x40644e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
pushal
call 0x40645d
pop dword [ebp - 0x10]
mov eax, 0x40645d
sub dword [ebp - 0x10], eax
mov dword [ebp - 0x20], 0x6d37923
sub dword [ebp - 0x20], 0xb88133d8
mov dword [ebp - 0x1c], 0xad69beb6
sub dword [ebp - 0x1c], 0x7b367271
mov dword [ebp - 0x18], 0x6965d866
sub dword [ebp - 0x18], 0x1d199438
mov dword [ebp - 0x14], 0x5f7a228d
add dword [ebp - 0x14], 0xa085dd73
lea eax, [ebp - 0x20]
push eax
mov eax, 0x592913ab
sub eax, 0x58e89333
add eax, dword [ebp - 0x10]
call dword [eax]
mov dword [ebp - 0x20], 0xb4ab6212
add dword [ebp - 0x20], 0xbfc70744
mov dword [ebp - 0x1c], 0x6a0d676b
add dword [ebp - 0x1c], 0xd75efa0a
mov dword [ebp - 0x18], 0x5a44afa8
add dword [ebp - 0x18], 0x92abcc4
mov dword [ebp - 0x14], 0x95bd1199
add dword [ebp - 0x14], 0x6a42ee67
lea ebx, [ebp - 0x20]
push ebx
push eax
mov eax, 0x3ec855ec
sub eax, 0x3e87d570
add eax, dword [ebp - 0x10]
call dword [eax]
push 0x40
push 0x1000
push 0x3ab8b
push 0
call eax
mov ecx, 0x95187717
sub ecx, 0x9518206a
xor esi, esi
add esi, eax
mov edx, 0x6ad27abb
sub edx, 0x6a8ce8bb
add edx, dword [ebp - 0x10]
mov ebx, 0x7e18bc46
sub dword [ebp - 4], edi
mov edi, dword [edx]
xor dword [ebp - 8], edi
sub edi, ebx
xor dword [ebp - 0xc], esi
mov dword [esi], edi
sub dword [ebp - 4], 0x5f7ed9e7
add esi, 0x32ed2158
sub esi, 0x32ed2154
add edx, 0x9f4f959d
sub edx, 0x9f4f9599
loop 0x406576
add eax, 0xb79da619
add eax, 0x4863a76e
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0xff9a58cc
sub ecx, 0xff5a58cc
add ecx, dword [ebp - 0x10]
call ebx
leave
ret

Function at 0x4068f3
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x43190c], 0
push esi
jne 0x40692a
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406904
mov dword [ecx*4 + 0x431908], eax
inc ecx
cmp ecx, 0x100
jl 0x4068ff
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x40695b
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x431908]
xor eax, esi
inc ecx
dec edx
jne 0x40693d
pop edi
not eax
pop esi
ret 0xc
Function at 0x401390
Capabilities:
Create service
Get common file path

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x254
mov dword [esp + 8], 2
mov dword [esp + 4], str.ServicesActive
mov dword [esp], 0
call dword [sym.imp.advapi32.dll_OpenSCManagerW]
sub esp, 0xc
test eax, eax
je 0x4014d8
lea esi, [ebp - 0x22c]
mov dword [esp + 4], 0x104
mov ebx, eax
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_GetSystemDirectoryW]
mov edx, 0x5c
lea ecx, [esi + eax*2]
sub esp, 8
xor eax, eax
jmp 0x4013f7
movzx edx, word [eax + str.msiexec__V]
mov word [ecx + eax], dx
add eax, 2
test dx, dx
jne 0x4013f0
mov dword [esp + 0x30], 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], esi
mov dword [esp + 0x18], 1
mov dword [esp + 0x14], 3
mov dword [esp + 0x10], 0x20
mov dword [esp + 0xc], 0x10000000
mov dword [esp + 8], 0x4071d2
mov dword [esp + 4], 0x4071d2
mov dword [esp], ebx
call dword [sym.imp.advapi32.dll_CreateServiceW]
sub esp, 0x34
test eax, eax
je 0x401498
mov dword [esp], eax
mov esi, dword [sym.imp.advapi32.dll_CloseServiceHandle]
xor edi, edi
call esi
sub esp, 4
mov dword [esp], ebx
call esi
mov eax, edi
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword fs:[0x18]
cmp dword [eax + 0x34], 0x431
jne 0x4014b8
mov esi, dword [sym.imp.advapi32.dll_CloseServiceHandle]
xor edi, edi
jmp 0x40147f
mov dword [esp], str.Failed_to_create_MSI_service_n
mov edi, 1
call sym._report_error
mov esi, dword [sym.imp.advapi32.dll_CloseServiceHandle]
jmp 0x40147f
mov dword [esp], str.Failed_to_open_the_service_control_manager._n
mov edi, 1
call sym._report_error
lea esp, [ebp - 0xc]
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x4015a0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, edx
push esi
mov esi, ecx
push ebx
mov ebx, eax
sub esp, 0xc
mov dword [esp + 8], 8
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_LoadLibraryExW]
mov dword [esi], eax
sub esp, 0xc
test eax, eax
je 0x4015ed
mov dword [esp + 4], edi
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
sub esp, 8
test eax, eax
je 0x401611
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, ebx
call sym._wine_dbgstr_wn.constprop.0
mov dword [esp], str.Unable_to_load_dll__s_n
mov dword [esp + 4], eax
call sym._report_error
mov dword [esp], 1
call dword [sym.imp.kernel32.dll_ExitProcess]
mov eax, ebx
call sym._wine_dbgstr_wn.constprop.0
mov dword [esp + 8], edi
mov dword [esp + 4], eax
mov dword [esp], str.Dll__s_does_not_implement_function__s_n
call sym._report_error
mov eax, dword [esi]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_FreeLibrary]
push eax
mov dword [esp], 1
call dword [sym.imp.kernel32.dll_ExitProcess]