joyce8/EMBER2024-capa huggingface dataset:
Function at 0x431a26
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x308
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
push esi
push edi
je 0x431a9a
lea eax, [ebp - 0x108]
push 0x104
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x431abe
lea eax, [ebp - 0x308]
push eax
lea eax, [ebp - 0x208]
push eax
push ebx
lea eax, [ebp - 0x108]
push ebx
push eax
call fcn.00446d24
lea eax, [ebp - 0x308]
push eax
lea eax, [ebp - 0x208]
push eax
call fcn.00448220
push dword [ebp + 8]
lea eax, [ebp - 0x208]
push eax
call fcn.0044f010
add esp, 0x24
test eax, eax
jne 0x431abe
cmp dword [ebp + 0xc], ebx
jne 0x431a9e
mov al, 1
jmp 0x431b02
lea eax, [ebp - 0x108]
push ebx
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov edi, eax
cmp edi, ebx
je 0x431abe
push edi
call fcn.00445e46
mov esi, eax
pop ecx
cmp esi, ebx
jne 0x431ac2
xor al, al
jmp 0x431b02
push esi
push edi
lea eax, [ebp - 0x108]
push ebx
push eax
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x431af9
lea eax, [ebp - 4]
push eax
lea eax, [ebp + 8]
push eax
push 0x48d760
push esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x431af9
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
cmp dword [eax + 0x10], ecx
sbb bl, bl
inc bl
push esi
call fcn.00445dfe
pop ecx
mov al, bl
pop edi
pop esi
pop ebx
leave
ret

Function at 0x431b77
Capabilities:
Check os version

Disassembly:
mov eax, dword [esp + 4]
cmp eax, 1
je 0x431bb0
cmp eax, 2
je 0x431bb0
cmp eax, 3
je 0x431ba5
cmp eax, 4
je 0x431b9e
cmp eax, 5
je 0x431b97
xor al, al
ret
call fcn.00436a16
jmp 0x431baa
call fcn.004369b5
jmp 0x431baa
call fcn.004369ec
test eax, eax
setne al
ret
mov al, 1
ret

Function at 0x4361ac
Capabilities:
Encode data using xor

Disassembly:
push edi
mov edi, dword [esp + 0xc]
test edi, edi
je 0x436208
cmp edi, 2
jae 0x4361be
xor al, al
pop edi
ret
cmp byte [esp + 0x10], 0
push esi
je 0x4361cf
mov esi, dword [esp + 0xc]
mov ax, word [esi]
jmp 0x4361ea
push 0
call fcn.00447f17
push eax
call fcn.00448300
pop ecx
pop ecx
call fcn.0044830d
mov esi, dword [esp + 0xc]
mov word [esi], ax
inc esi
movzx eax, ax
inc esi
dec edi
push eax
dec edi
call fcn.00448300
test edi, edi
pop ecx
je 0x436207
call fcn.0044830d
xor byte [esi], al
inc esi
dec edi
jne 0x4361fc
pop esi
mov al, 1
pop edi
ret
Function at 0x44ee55
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4a5ae0
cmp edx, dword [eax]
je 0x44ee77
add eax, 8
inc ecx
cmp eax, str.__t__r_
jl 0x44ee68
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4a5ae0]
jne 0x44efa5
mov eax, dword [0x4aa1ac]
cmp eax, 1
je 0x44ef7f
test eax, eax
jne 0x44eea8
cmp dword [0x4a4fb4], 1
je 0x44ef7f
cmp edx, 0xfc
je 0x44efa5
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x44eedf
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00448210
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00446f00
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x44ef22
lea eax, [ebp - 0x1a4]
push eax
call fcn.00446f00
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x47a1f0
push edi
call fcn.004460d0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00448210
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00448220
lea eax, [ebp - 0xa0]
push 0x49cc60
push eax
call fcn.00448220
push dword [esi + 0x4a5ae4]
lea eax, [ebp - 0xa0]
push eax
call fcn.00448220
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00453a48
add esp, 0x2c
pop edi
jmp 0x44efa5
lea eax, [ebp + 8]
lea esi, [esi + 0x4a5ae4]
push 0
push eax
push dword [esi]
call fcn.00446f00
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x45afb0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.00445ff0
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x45b07b
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x45b07b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x45b02e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x45b039
or bh, 8
and edi, 0x8000000
je 0x45b054
mov eax, dword [0x4abe7c]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x45b07b
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45b450
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x45b47b
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x45b49f
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x45b4ba
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20

Function at 0x4605ad
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4605e5
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00463294
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0046326c
jmp 0x4605f1
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4
Function at 0x461be4
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x461c26
call fcn.00469255
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x461c26
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x461c1d
xor eax, eax
jmp 0x461c2e
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00461c34
pop edi
pop esi
pop ebx
ret 4

Function at 0x46a906
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0x46a9b6
mov ecx, 0x4aa118
call fcn.0046a4d5
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov esi, eax
cmp word [esi + 8], 0
jne 0x46a994
push str.COMCTL32.DLL
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
mov dword [ebp + 0xc], eax
je 0x46a972
mov ecx, dword [ebp + 0x10]
push 5
neg ecx
sbb ecx, ecx
and ecx, 0xe
add ecx, 0x3ee
movzx ecx, cx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x46a972
push ebx
push edi
push eax
call fcn.004648c7
add esp, 0xc
mov eax, dword [edi]
mov eax, dword [eax - 8]
inc eax
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [esi + 4], eax
push dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ax, word [ebx]
mov word [esi + 8], ax
push dword [esi + 4]
mov ecx, edi
call fcn.00462f76
mov si, word [esi + 8]
xor eax, eax
mov word [ebx], si
cmp si, 0xffff
pop edi
pop esi
setne al
pop ebx
pop ebp
ret 0xc
Function at 0x4010c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4010d9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401114
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x401110
lea ebx, [ebx]
cmp esi, eax
jae 0x401114
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401100
cmp esi, eax
jb 0x40111a
pop esi
pop edi
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x401fd0
Capabilities:
Stop service

Disassembly:
sub esp, 0x9c
mov eax, dword [0x417078]
xor eax, esp
mov dword [esp + 0x98], eax
push ebx
push esi
mov esi, dword [esp + 0xa8]
push edi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
jne 0x402030
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esp + 0x2c]
push str.OpenSCManager_failed__error_code___d_n
push eax
call fcn.0040436f
lea ecx, [esp + 0x34]
push ecx
push 0x418880
call fcn.00401f50
add esp, 0x14
jmp 0x4020dc
push 0xf01ff
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
test esi, esi
jne 0x402073
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea edx, [esp + 0x2c]
push str.OpenService_failed__error_code___d_n
push edx
call fcn.0040436f
lea eax, [esp + 0x34]
push eax
push 0x418880
call fcn.00401f50
add esp, 0x14
jmp 0x4020d9
lea ecx, [esp + 0xc]
push ecx
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x4020ae
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x98]
xor ecx, esp
call fcn.004036c2
add esp, 0x9c
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea edx, [esp + 0x2c]
push str.ControlService_failed__error_code___d_n
push edx
call fcn.0040436f
lea eax, [esp + 0x34]
push eax
push 0x418880
call fcn.00401f50
add esp, 0x14
push esi
call ebx
push edi
call ebx
mov ecx, dword [esp + 0xa4]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.004036c2
add esp, 0x9c
ret
Function at 0x402100
Capabilities:
Start service

Disassembly:
sub esp, 0x80
mov eax, dword [0x417078]
xor eax, esp
mov dword [esp + 0x7c], eax
push ebx
push esi
mov esi, dword [esp + 0x8c]
push edi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
jne 0x40215d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esp + 0x10]
push str.OpenSCManager_failed__error_code___d_n
push eax
call fcn.0040436f
lea ecx, [esp + 0x18]
push ecx
push 0x418880
call fcn.00401f50
add esp, 0x14
jmp 0x402203
push 0xf01ff
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
test esi, esi
jne 0x4021a0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea edx, [esp + 0x10]
push str.OpenService_failed__error_code___d_n
push edx
call fcn.0040436f
lea eax, [esp + 0x18]
push eax
push 0x418880
call fcn.00401f50
add esp, 0x14
jmp 0x402200
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
je 0x4021d5
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x7c]
xor ecx, esp
call fcn.004036c2
add esp, 0x80
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [esp + 0x10]
push str.StartService_failed__error_code___d_n
push ecx
call fcn.0040436f
lea edx, [esp + 0x18]
push edx
push 0x418880
call fcn.00401f50
add esp, 0x14
push esi
call ebx
push edi
call ebx
mov ecx, dword [esp + 0x88]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.004036c2
add esp, 0x80
ret

Function at 0x402290
Capabilities:
Create service
Persist via windows service

Disassembly:
sub esp, 0x80
mov eax, dword [0x417078]
xor eax, esp
mov dword [esp + 0x7c], eax
push ebx
push esi
mov esi, dword [esp + 0x90]
push edi
mov edi, dword [esp + 0x90]
push 2
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebx, eax
test ebx, ebx
jne 0x402301
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esp + 0x10]
push str.OpenSCManager_failed__error_code___d_n
push eax
call fcn.0040436f
lea ecx, [esp + 0x18]
push ecx
push 0x418880
call fcn.00401f50
add esp, 0x14
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x7c]
xor ecx, esp
call fcn.004036c2
add esp, 0x80
ret
push ebp
push 0
push 0
push 0
push 0
push 0
push edi
push 1
push 2
push 0x110
push 0xf01ff
push esi
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov ebp, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edi, eax
test edi, edi
jne 0x40235b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
lea edx, [esp + 0x18]
push str.Failed_to_create_service__s__error_code___d_n
push edx
call fcn.0040436f
lea eax, [esp + 0x20]
push eax
push 0x418880
call fcn.00401f50
add esp, 0x18
jmp 0x402380
push esi
lea ecx, [esp + 0x14]
push str.Service__s_installed_n
push ecx
call fcn.0040436f
lea edx, [esp + 0x1c]
push edx
push 0x418880
call fcn.00401f50
add esp, 0x14
push edi
call ebp
push ebx
call ebp
mov ecx, dword [esp + 0x8c]
pop ebp
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004036c2
add esp, 0x80
ret
Function at 0x4023a0
Capabilities:
Delete file
Delete service

Disassembly:
sub esp, 0x80
mov eax, dword [0x417078]
xor eax, esp
mov dword [esp + 0x7c], eax
push ebx
push esi
mov esi, dword [esp + 0x8c]
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebx, eax
test ebx, ebx
jne 0x4023fc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esp + 0xc]
push str.OpenSCManager_failed__error_code___d_n
push eax
call fcn.0040436f
lea ecx, [esp + 0x14]
push ecx
push 0x418880
call fcn.00401f50
add esp, 0x14
jmp 0x40248c
push ebp
push edi
push 0xf01ff
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebp, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edi, eax
test edi, edi
jne 0x402441
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea edx, [esp + 0x14]
push str.OpenService_failed__error_code___d_n
push edx
call fcn.0040436f
lea eax, [esp + 0x1c]
push eax
push 0x418880
call fcn.00401f50
add esp, 0x14
jmp 0x402487
push edi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
test eax, eax
jne 0x402463
lea ecx, [esp + 0x14]
push str.Failed_to_delete_service__s_n
push ecx
call fcn.0040436f
lea edx, [esp + 0x1c]
push edx
jmp 0x402477
lea eax, [esp + 0x14]
push str.Service__s_removed_n
push eax
call fcn.0040436f
lea ecx, [esp + 0x1c]
push ecx
push 0x418880
call fcn.00401f50
add esp, 0x14
push edi
call ebp
push ebx
call ebp
pop edi
pop ebp
push 0x418880
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [esp + 0x84]
pop esi
pop ebx
xor ecx, esp
call fcn.004036c2
add esp, 0x80
ret

Function at 0x4036c2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x417078]
jne 0x4036cc
repz ret
jmp fcn.00406285
Function at 0x40f337
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004055e4
and dword [ebp - 4], 0
cmp dword [0x4196bc], 0
mov ebx, eax
jne 0x40f3e8
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40f499
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x40f499
push eax
call fcn.00405572
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4196bc], eax
call esi
push eax
call fcn.00405572
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4196c0], eax
call esi
push eax
call fcn.00405572
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4196c4], eax
call esi
push eax
call fcn.00405572
pop ecx
mov dword [0x4196cc], eax
test eax, eax
je 0x40f3e8
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00405572
pop ecx
mov dword [0x4196c8], eax
mov eax, dword [0x4196c8]
cmp eax, ebx
je 0x40f440
cmp dword [0x4196cc], ebx
je 0x40f440
push eax
call fcn.004055ed
push dword [0x4196cc]
mov esi, eax
call fcn.004055ed
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40f440
test edi, edi
je 0x40f440
call esi
test eax, eax
je 0x40f437
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40f437
test byte [ebp - 0xc], 1
jne 0x40f440
or dword [ebp + 0x10], 0x200000
jmp 0x40f479
mov eax, dword [0x4196c0]
cmp eax, ebx
je 0x40f479
push eax
call fcn.004055ed
pop ecx
test eax, eax
je 0x40f479
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40f479
mov eax, dword [0x4196c4]
cmp eax, ebx
je 0x40f479
push eax
call fcn.004055ed
pop ecx
test eax, eax
je 0x40f479
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4196bc]
call fcn.004055ed
pop ecx
test eax, eax
je 0x40f499
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40f49b
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x460beb
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
jb 0x460bf9
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne al
pop ebp
ret

Function at 0x4c6489
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004c6070

Function at 0x4c6494
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004c61fa

Function at 0x4cbb6a
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004cb522

Function at 0x4cbf04
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004cbdd8

Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..rsrc
nop
nop
mov ebx, 0x407ef8
mov ecx, 0xd057b19
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x42e04e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x42e024
nop
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42cd70
nop
mov ecx, 0x70696686
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x42e084
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x42e06c
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x4035ac
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x543008], 0x8088405
inc edx
mov dword [ebx + 0x543008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x41cd64
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push ebp
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
cld
mov dl, 0x80
mov al, byte [esi]
add esi, 1
mov byte [edi], al
add edi, 1
mov ebx, 2
add dl, dl
jne 0x41cd95
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cd7d
add dl, dl
jne 0x41cda0
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cdf1
xor eax, eax
add dl, dl
jne 0x41cdad
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41ce8e
add dl, dl
jne 0x41cdbc
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cdc7
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cdd2
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cddd
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x41cde7
mov ebx, edi
sub ebx, eax
mov al, byte [ebx]
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x41cd8c
mov eax, 1
add dl, dl
jne 0x41cdff
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41ce0a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cdf6
sub eax, ebx
mov ebx, 1
jne 0x41ce3d
mov ecx, 1
add dl, dl
jne 0x41ce23
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41ce2e
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41ce1a
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41cd8c
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x41ce54
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41ce5f
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41ce4b
cmp eax, 0x7d00
sbb ecx, 0xffffffff
cmp eax, 0x500
sbb ecx, 0xffffffff
cmp eax, 0x80
adc ecx, 0
cmp eax, 0x80
adc ecx, 0
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41cd8c
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x41ceaf
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x41cd8c
pop ebp
sub edi, dword [ebp - 8]
mov dword [ebp - 0xc], edi
pop edi
pop esi
pop ebx
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret