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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10057f82
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0x34
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
movzx eax, byte [ebp + 0x14]
test eax, eax
je 0x100264db
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x2c], eax
push dword [ebp - 0x28]
push 0x4ad1
push 0xb89
push dword [ebp - 0x2c]
push 0x6e71
push 0
call fcn.10035d9f
add esp, 0x18
jmp 0x10026634
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x34], eax
lea eax, [ebp + 8]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
movzx eax, byte [eax]
test eax, eax
je 0x1002660f
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], 0x6fb4
mov dword [ebp - 0x3c], str.ryat_gpefk_nbgd_dsl_vfjnt_brgsyrlt_fdxbvdwuu
cmp dword [ebp - 0x24], 0x726e
jle 0x1002657f
and dword [ebp - 0x18], 0
jmp 0x10026525
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0x4727
jge 0x10026565
and dword [ebp - 0x1c], 0
jmp 0x1002653b
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0x4811
jge 0x10026563
mov eax, dword [ebp - 0x18]
or eax, dword [ebp - 0x1c]
cdq
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], edx
push dword [ebp - 0x40]
push dword [ebp - 0x44]
mov ecx, 0x10070b88
call fcn.1000e159
jmp 0x10026534
jmp 0x1002651e
push 0x226a
push 0x22c4
push 0xb14
push 0x13c9
call dword [sym.imp.GDI32.dll_CreateRectRgn]
mov eax, dword [ebp - 0x20]
mov dword [eax], 0
jmp 0x10026595
mov eax, dword [ebp - 0x20]
mov eax, dword [eax]
dec eax
mov ecx, dword [ebp - 0x20]
mov dword [ecx], eax
mov eax, dword [ebp - 0x20]
cmp dword [eax], 0xfffffffc
je 0x100265cd
mov byte [ebp - 0x11], 0
movzx eax, byte [ebp - 0x11]
test eax, eax
je 0x100265b1
push 0
call fcn.1002691b
pop ecx
mov byte [ebp - 0x12], 0
movzx eax, byte [ebp - 0x12]
test eax, eax
je 0x100265cb
push 0x6cd6
push 0
call fcn.10036139
pop ecx
pop ecx
jmp 0x1002658a
and dword [ebp - 4], 0
cmp dword [ebp - 0x24], 0x6c3c
jge 0x100265e7
mov edx, dword [ebp - 0x3c]
mov ecx, 0x10070b88
call fcn.10010f71
jmp 0x10026603
or dword [ebp - 4], 0xffffffff
jmp 0x1002660d
jmp 0x10026634
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0x1a61
push 0x4ae
push 0x1133
push 0
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10026d00
Capabilities:
Modify service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10057fa0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0x50
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x2c], 0x27dc
mov dword [ebp - 0x40], str.ttyyz_rzepbkgrv_jluq_vvinjjoqt_qtyfvwj_lmgjrqoje_ynpvdsfqr_hpzyfl
cmp dword [ebp - 0x2c], 0x2956
jle 0x10026de7
and dword [ebp - 0x20], 0
jmp 0x10026d4a
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0x9a4
jge 0x10026de7
and dword [ebp - 0x18], 0
jmp 0x10026d64
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0x10be
jge 0x10026de2
and dword [ebp - 0x1c], 0
jmp 0x10026d7a
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0x4491
jge 0x10026ddd
and dword [ebp - 0x24], 0
jmp 0x10026d90
mov eax, dword [ebp - 0x24]
inc eax
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0x4de1
jge 0x10026ddb
mov eax, dword [ebp - 0x18]
cdq
idiv dword [ebp - 0x1c]
and edx, dword [ebp - 0x20]
and edx, dword [ebp - 0x24]
mov eax, edx
cdq
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], edx
push dword [ebp - 0x44]
push dword [ebp - 0x48]
lea ecx, [ebp - 0x60]
call fcn.10002407
pop ecx
pop ecx
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x30]
call fcn.1000e139
push eax
call fcn.10039f03
pop ecx
lea ecx, [ebp - 0x60]
call fcn.1000e12f
jmp 0x10026d89
jmp 0x10026d73
jmp 0x10026d5d
jmp 0x10026d43
movzx eax, byte [ebp + 8]
test eax, eax
je 0x10026e05
push 0x631
push 0x2e34
push 1
call fcn.10026ed1
add esp, 0xc
jmp 0x10026e84
lea eax, [ebp + 0xc]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x34]
movzx eax, byte [eax]
test eax, eax
je 0x10026e42
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0x1a61
push 0x4ae
push 0x1133
push 0
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
jmp 0x10026e84
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
mov dword [eax], 0
jmp 0x10026e64
mov eax, dword [ebp - 0x28]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 0x28]
mov dword [ecx], eax
mov eax, dword [ebp - 0x28]
cmp dword [eax], 1
jg 0x10026e84
mov byte [ebp - 0x11], 0
movzx eax, byte [ebp - 0x11]
test eax, eax
je 0x10026e82
push 0
push 0
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
jmp 0x10026e59
and dword [ebp - 4], 0
cmp dword [ebp - 0x2c], 0x2699
jge 0x10026e9a
push dword [ebp - 0x40]
call fcn.10039f03
pop ecx
jmp 0x10026eb6
or dword [ebp - 4], 0xffffffff
jmp 0x10026ec0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0xa9f058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.00a9f1a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0xa9f07e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xa9f06a
add dl, dl
jne 0xa9f089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xa9f0dc
xor eax, eax
add dl, dl
jne 0xa9f096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xa9f17d
add dl, dl
jne 0xa9f0a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xa9f0b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xa9f0bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xa9f0c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0xa9f0d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0xa9f075
mov eax, 1
add dl, dl
jne 0xa9f0ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xa9f0f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xa9f0e1
sub eax, ebx
mov ebx, 1
jne 0xa9f128
mov ecx, 1
add dl, dl
jne 0xa9f10e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xa9f119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xa9f105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xa9f075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xa9f13f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xa9f14a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xa9f136
cmp eax, 0x7d00
jae 0xa9f16d
cmp eax, 0x500
jb 0xa9f168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xa9f075
cmp eax, 0x7f
ja 0xa9f170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xa9f075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0xa9f19e
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 0xa9f075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10

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

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x407ef8
nop
mov ecx, 0x46a04ff3
nop
test eax, eax
nop
nop
nop
je 0x42e04e
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x42e024
nop
nop
nop
mov eax, section..data_1
nop
mov ebx, 0x42cd70
nop
nop
mov ecx, 0x18be531e
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x42e084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x42e06c
nop
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x433006
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
mov eax, section..text
nop
nop
nop
nop
push 4
nop
pop edi
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
je 0x433072
nop
nop
nop
mov ebx, 0x40de38
nop
nop
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x5e4f08ad
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x433060
nop
nop
mov eax, section..data
nop
nop
nop
nop
cmp eax, 0
nop
je 0x4330d2
nop
nop
nop
nop
mov ebx, 0x4304d8
nop
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x128877e9
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x4330c0
nop
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x438c9d
Capabilities:
Encode data using xor

Disassembly:
push 0x438a14
mov edx, dword [esp]
add esp, 4
push ecx
mov ecx, dword [esp]
add esp, 4
call fcn.00438cd6
and ebx, ebx
xor dword [edi], edx
sub ebx, 0x603a4eb
and ecx, ebx
inc edi
or ebx, ecx
cmp edi, esi
jne fcn.00438c9d
sub ecx, 0x129bbb2f
and ebx, ecx
or ecx, ecx
ret

Function at 0x40194c
Capabilities:
Inspect section memory permissions

Disassembly:
test ecx, 0x40000000
je 0x401b8c
jmp 0x401b6c
or al, 0x10
ret
or al, 1
ret
test ecx, 0x80000000
je 0x4019ec
jmp 0x401d74
xor eax, eax
test ecx, 0x4000000
je 0x4019c2
jmp dword [0x4052d8]
test ecx, 0x20000000
je 0x401700
jmp 0x401c78
or al, 0x20
ret
or al, 2
ret
test ecx, 0x80000000
je 0x401b58
jmp dword [0x4052fc]
test ecx, 0x80000000
je 0x401794
jmp dword [0x405300]
test ecx, 0x40000000
je 0x401d78
jmp 0x4018a0
or al, 0x40
ret
test ecx, 0x80000000
je 0x40177c
jmp dword [0x4052d4]
Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x407ef8
nop
mov ecx, 0x6ae2520e
nop
test eax, eax
nop
nop
nop
nop
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
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
jne 0x42e024
nop
nop
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x42cd70
mov ecx, 0x7c527fa4
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x42e084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
jne 0x42e06c
nop
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x401460
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x468
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call fcn.00403910
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x4015a4
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sub.msvcrt.dll_remove
test eax, eax
jne 0x4014ae
mov eax, dword [ebp + 8]
mov dword [esp + 4], eax
mov dword [esp], str.Deleted_file:__s_n
call sub.msvcrt.dll_printf
jmp 0x401603
mov dword [esp], str.Error_deleting_file
call sub.msvcrt.dll_perror
jmp 0x401603
mov eax, dword [ebp - 0x10]
add eax, 0xc
mov dword [esp + 4], 0x40b08a
mov dword [esp], eax
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x4014de
jmp 0x4015a4
mov eax, dword [ebp - 0x10]
add eax, 0xc
mov dword [esp + 4], 0x40b08c
mov dword [esp], eax
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x4014fd
jmp 0x4015a4
mov eax, dword [ebp - 0x10]
add eax, 0xc
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], eax
mov dword [esp + 8], str._s__s
mov dword [esp + 4], 0x400
lea eax, [ebp - 0x41c]
mov dword [esp], eax
call fcn.00402260
lea eax, [ebp - 0x440]
mov dword [esp + 4], eax
lea eax, [ebp - 0x41c]
mov dword [esp], eax
call sub.msvcrt.dll__stat
test eax, eax
jne 0x4015a4
movzx eax, word [ebp - 0x43a]
movzx eax, ax
and eax, 0xf000
cmp eax, 0x4000
jne 0x40156e
lea eax, [ebp - 0x41c]
mov dword [esp], eax
call fcn.00401460
jmp 0x4015a4
lea eax, [ebp - 0x41c]
mov dword [esp], eax
call sub.msvcrt.dll_remove
test eax, eax
jne 0x401598
lea eax, [ebp - 0x41c]
mov dword [esp + 4], eax
mov dword [esp], str.Deleted_file:__s_n
call sub.msvcrt.dll_printf
jmp 0x4015a4
mov dword [esp], str.Error_deleting_file
call sub.msvcrt.dll_perror
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call fcn.00403ad0
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x4014bf
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call fcn.00403b20
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sub.msvcrt.dll__rmdir
test eax, eax
jne 0x4015f7
mov eax, dword [ebp + 8]
mov dword [esp + 4], eax
mov dword [esp], str.Deleted_directory:__s_n
call sub.msvcrt.dll_printf
jmp 0x401603
mov dword [esp], str.Error_deleting_directory
call sub.msvcrt.dll_perror
leave
ret
Function at 0x401c70
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x40e044
call sub.KERNEL32.dll_EnterCriticalSection
mov ebx, dword [0x40e03c]
sub esp, 4
test ebx, ebx
je 0x401cbb
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sub.KERNEL32.dll_TlsGetValue
sub esp, 4
mov esi, eax
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x401cb4
test esi, esi
je 0x401cb4
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x401c90
mov dword [esp], 0x40e044
call sub.KERNEL32.dll_LeaveCriticalSection
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x401ea0
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
lea esi, [esp + 0x24]
mov dword [esp], str.Mingw_runtime_failure:_n
lea ebx, [eax + 0x40]
mov dword [esp + 0xc], ebx
call sub.msvcrt.dll_fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
lea esi, [esi]

Function at 0x401ef0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
push ebx
mov ebx, eax
mov esi, edx
sub esp, 0x4c
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp], ebx
mov dword [esp + 4], eax
call sub.KERNEL32.dll_VirtualQuery
sub esp, 0xc
test eax, eax
je 0x401fc8
mov eax, dword [esp + 0x38]
cmp eax, 0x40
je 0x401f2e
cmp eax, 4
jne 0x401f50
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sub.msvcrt.dll_memcpy
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
sub esp, 0x10
mov edx, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 0x1c], edx
call sub.msvcrt.dll_memcpy
mov edx, dword [esp + 0x1c]
cmp edx, 0x40
je 0x401f3e
cmp edx, 4
je 0x401f3e
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
sub esp, 0x10
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.00401ea0
Function at 0x404a60
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [0x42b010]
push edi
push 0x4349f0
call esi
push 0x4349f0
call esi
push 0x4349f0
call esi
push 0x4349f0
call esi
push 0x4349f0
call esi
mov edi, dword [ebp + 0x10]
lea eax, [edi + 1]
push eax
push 0
call 0x2b002f9
nop
push eax
call 0x77f1296e
nop
mov ebx, eax
push 0x4349f0
mov dword [ebp - 4], ebx
call esi
push 0x4349f0
call esi
push 0x4349f0
call esi
push 0x4349f0
call esi
push 0x4349f0
call esi
push 0x4349f0
mov byte [ebx + edi], 0
call esi
push 0x4349f0
call esi
push 0x4349f0
call esi
push 0x4349f0
call esi
push 0x4349f0
call esi
xor edi, edi
cmp dword [ebp + 0x10], edi
jbe 0x404b7a
mov eax, dword [ebp + 8]
sub eax, ebx
mov dword [ebp - 8], eax
push 0x4349f0
call esi
push 0x4349f0
call esi
push 0x4349f0
call esi
push 0x4349f0
call esi
push 0x4349f0
call esi
mov ecx, dword [ebp + 0xc]
push ecx
add ebx, edi
nop
call 0x6ff643d3
mov ecx, eax
xor edx, edx
mov eax, edi
div ecx
mov eax, dword [ebp + 0xc]
add esp, 4
push 0x4349f0
mov cl, byte [edx + eax]
mov edx, dword [ebp - 8]
xor cl, byte [edx + ebx]
mov byte [ebx], cl
call esi
push 0x4349f0
call esi
push 0x4349f0
call esi
push 0x4349f0
call esi
push 0x4349f0
call esi
mov ebx, dword [ebp - 4]
inc edi
cmp edi, dword [ebp + 0x10]
jb 0x404b06
push 0x4349f0
call esi
push 0x4349f0
call esi
push 0x4349f0
call esi
push 0x4349f0
call esi
push 0x4349f0
call esi
lea eax, [ebp - 0xc]
push eax
push 0x100
push 4
push ebx
mov dword [ebp - 0xc], 0
call 0x2b002fe
nop
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x406ef0
Capabilities:
Parse pe header

Disassembly:
cmp dword [ebx + 4], 0x40
jb 0x406f91
mov eax, dword [ebx]
push 0x40
push eax
push esi
nop
call 0x6ff59910
mov ecx, 0x5a4d
add esp, 0xc
cmp word [esi], cx
jne 0x406fc0
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x406fc0
lea edx, [eax + 0xf8]
cmp edx, dword [ebx + 4]
ja 0x406f91
mov ecx, dword [ebx]
push edi
push 0xf8
add ecx, eax
push ecx
lea edi, [esi + 0x40]
push edi
nop
call 0x6ff59910
add esp, 0xc
cmp dword [edi], 0x4550
pop edi
jne 0x406fc0
mov edx, 0x10b
cmp word [esi + 0x58], dx
jne 0x406fc0
movzx eax, word [esi + 0x46]
test ax, ax
je 0x406fc0
lea eax, [eax + eax*4]
add eax, eax
add eax, eax
add eax, eax
push eax
push 8
mov dword [esi + 0x140], eax
call dword [fcn.006390f4]
push eax
call dword [fcn.00639088]
mov dword [esi + 0x138], eax
test eax, eax
jne 0x406f97
mov eax, 3
ret
mov eax, 1
ret
movzx ecx, word [esi + 0x54]
mov edx, dword [esi + 0x3c]
lea ecx, [ecx + edx + 0x18]
mov edx, dword [esi + 0x140]
push ebx
push edx
push ecx
push eax
mov dword [esi + 0x13c], ecx
call fcn.00407590
add esp, 0x10
neg eax
sbb eax, eax
inc eax
ret
mov eax, 2
ret
Function at 0x4014a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x4014fb
cmp byte [esi + ebx - 1], 0xa
je 0x4014cf
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x4060a4], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_fwrite]
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
Function at 0x401f40
Capabilities:
Get process heap force flags
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x10
mov dword [esp], 1
call sym.__configure_wide_argv
call sym.__initialize_wide_environment
call sym.___p___argc
mov esi, dword [eax]
call sym.___p___wargv
mov edi, dword [eax]
call sym.__get_initial_wide_environment
mov ebx, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x3c]
cmp word [eax + edx + 0x5c], 2
sete al
movzx eax, al
add eax, 1
mov dword [esp], eax
call sym.__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call dbg.wmain
mov dword [esp], eax
call sym._exit
Function at 0x402240
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xac
mov eax, dword [0x41c010]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor eax, eax
push 0x9e
push eax
mov word [ebp - 0xa4], ax
lea eax, [ebp - 0xa2]
push eax
call fcn.00406970
add esp, 0xc
push str.InpaintMAXSvc
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov esi, eax
test esi, esi
je 0x4022e3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.RegisterServiceCtrlHandler
push str._s_failed_with__d
lea eax, [ebp - 0xa4]
push 0x50
push eax
call fcn.00401fc0
add esp, 0x14
mov dword [ebp - 0xac], str.InpaintMAXSvc
lea eax, [ebp - 0xa4]
mov dword [ebp - 0xa8], eax
lea eax, [ebp - 0xac]
push 0
push eax
push 0
push 2
push 0
push 0xc0020100
push 0
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00404280
mov esp, ebp
pop ebp
ret

Function at 0x402350
Capabilities:
Create service
Delete service
Modify service
Persist via windows service
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41c010]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0xf003f
push 0
push 0
mov esi, ecx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
je 0x4023b0
test esi, esi
jne 0x4023d8
push esi
push esi
push esi
push esi
push esi
push 0x41e318
push 1
push 2
push 0x10
push 0xf01ff
push str.InpaintMAX_Service
push str.InpaintMAXSvc
push edi
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov esi, eax
test esi, esi
jne 0x4023c2
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00404280
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], str.InpaintMAX_Service
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
jmp 0x402414
push 0xf01ff
push str.InpaintMAXSvc
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
je 0x4023a9
lea eax, [ebp - 0x20]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
cmp dword [ebp - 0x1c], 1
je 0x40240d
lea eax, [ebp - 0x20]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
xor ecx, ebp
pop esi
call fcn.00404280
mov esp, ebp
pop ebp
ret