joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41c5c0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
mov eax, dword [0x443674]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov dword [ebp - 0x50], eax
mov eax, dword [ebp + 0x10]
push edi
mov dword [ebp - 0x54], eax
lea eax, [ebp - 0x38]
mov esi, ecx
push eax
push esi
mov ebx, edx
call dword [0x44643c]
test eax, eax
jne 0x41c602
mov eax, 0x200
jmp 0x41c786
mov ecx, dword [ebp - 0x38]
xor eax, eax
xor edi, edi
inc eax
mov dword [ebp - 0x40], ecx
and dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], edi
je 0x41c618
mov dword [ebp - 0x3c], eax
test cl, 2
je 0x41c621
or dword [ebp - 0x3c], 2
test cl, 4
je 0x41c62a
or dword [ebp - 0x3c], 4
mov eax, ecx
and eax, 0x10
je 0x41c635
or dword [ebp - 0x3c], 0x10
test cl, 0x20
je 0x41c63e
or dword [ebp - 0x3c], 0x20
cmp eax, edi
je 0x41c64b
or dword [ebp - 0x3c], 0x40000000
jmp 0x41c652
or dword [ebp - 0x3c], 0x80000000
or dword [ebp - 0x3c], 0x1000000
cmp dword [ebp - 0x40], edi
jne 0x41c665
or dword [ebp - 0x3c], 0x800000
push edi
push esi
call dword [0x44651c]
mov dword [ebp - 0x48], eax
cmp eax, 0x28
jbe 0x41c70a
push edi
push edi
push edi
push esi
call dword [0x44635c]
push edi
lea eax, [ebp - 0x44]
push eax
push 2
lea eax, [ebp - 0x40]
push eax
push esi
call dword [0x446468]
push edi
push edi
push 0x24
push esi
call dword [0x44635c]
push edi
lea eax, [ebp - 0x44]
push eax
push 4
lea eax, [ebp - 0x4c]
push eax
push esi
call dword [0x446468]
mov eax, 0x54ad
cmp word [ebp - 0x40], ax
jne 0x41c70a
mov eax, dword [ebp - 0x4c]
lea ecx, [eax + 0x34]
cmp dword [ebp - 0x48], ecx
jbe 0x41c70a
push edi
push edi
push eax
push esi
call dword [0x44635c]
push edi
lea eax, [ebp - 0x44]
push eax
push 4
lea eax, [ebp - 0x5c]
push eax
push esi
call dword [0x446468]
mov eax, dword [ebp - 0x5c]
cmp eax, 0x5a4d
je 0x41c703
cmp eax, 0x454e
je 0x41c703
cmp eax, 0x454c
je 0x41c703
cmp eax, 0x4550
jne 0x41c70a
or dword [ebp - 0x3c], 0x400000
mov eax, dword [ebp - 0x58]
cmp eax, edi
je 0x41c716
mov ecx, dword [ebp - 0x3c]
mov dword [eax], ecx
mov eax, dword [ebp - 0x50]
cmp eax, edi
je 0x41c722
mov ecx, dword [ebp - 0x48]
mov dword [eax], ecx
cmp ebx, edi
je 0x41c75b
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
call fcn.0041c537
push dword [ebp - 0x20]
mov dword [ebx], eax
push dword [ebp - 0x24]
mov dword [ebx + 4], edx
call fcn.0041c537
push dword [ebp - 0x30]
mov dword [ebx + 8], eax
push dword [ebp - 0x34]
mov dword [ebx + 0xc], edx
call fcn.0041c537
add esp, 0x18
mov dword [ebx + 0x10], eax
mov dword [ebx + 0x14], edx
mov ebx, dword [ebp - 0x54]
cmp ebx, edi
je 0x41c784
push dword [ebp - 0x20]
lea edi, [ebp - 0x3c]
push dword [ebp - 0x24]
lea esi, [ebp - 0x40]
call fcn.0041c559
movzx eax, word [ebp - 0x40]
pop ecx
pop ecx
movzx ecx, word [ebp - 0x3c]
shl eax, 0x10
or eax, ecx
mov dword [ebx], eax
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041e255
leave
ret

Function at 0x41e255
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x443674]
jne 0x41e25f
repz ret
jmp fcn.004231d4
Function at 0x42c0fc
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x443674]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.004253c8
and dword [ebp - 0x14], 0
cmp dword [0x4459d8], 0
mov dword [ebp - 0x18], eax
jne 0x42c1af
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x42c257
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x42c257
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x4459d8], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x4459dc], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x4459e0], eax
call edi
push eax
call esi
mov dword [0x4459e8], eax
test eax, eax
je 0x42c1af
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x4459e4], eax
mov eax, dword [0x4459e4]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x42c208
cmp dword [0x4459e8], ecx
je 0x42c208
push eax
call esi
push dword [0x4459e8]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x42c208
test ebx, ebx
je 0x42c208
call edi
test eax, eax
je 0x42c1ff
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x42c1ff
test byte [ebp - 8], 1
jne 0x42c208
or dword [ebp + 0x10], 0x200000
jmp 0x42c23b
mov eax, dword [0x4459dc]
cmp eax, dword [ebp - 0x18]
je 0x42c23b
push eax
call esi
test eax, eax
je 0x42c23b
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x42c23b
mov eax, dword [0x4459e0]
cmp eax, dword [ebp - 0x18]
je 0x42c23b
push eax
call esi
test eax, eax
je 0x42c23b
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4459d8]
call esi
test eax, eax
je 0x42c257
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x42c259
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041e255
leave
ret
Function at 0x45dfd0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x58000]
push edi
jmp 0x45dfea
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x45dff1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x45dfe0
mov eax, 1
add ebx, ebx
jne 0x45e003
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x45dff8
jne 0x45e014
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x45dff8
xor ecx, ecx
sub eax, 3
jb 0x45e028
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x45e09a
mov ebp, eax
add ebx, ebx
jne 0x45e033
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x45e040
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x45e064
inc ecx
add ebx, ebx
jne 0x45e050
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x45e045
jne 0x45e061
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x45e045
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x45e084
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x45e075
jmp 0x45dfe6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x45e084
add edi, ecx
jmp 0x45dfe6
pop esi
mov edi, esi
mov ecx, 0x6800
jmp 0x45e0d5
mov al, byte [edi]
inc edi
cmp al, 0x80
jb 0x45e0b5
cmp al, 0x8f
ja 0x45e0b5
cmp byte [edi - 2], 0xf
je 0x45e0bb
sub al, 0xe8
cmp al, 1
ja 0x45e0df
cmp ecx, 4
jb 0x45e0e4
mov eax, dword [edi]
sub al, 1
jne 0x45e0df
xchg ah, al
rol eax, 0x10
xchg ah, al
sub eax, edi
add eax, esi
sub ecx, 4
stosd dword es:[edi], eax
sub ecx, 1
jb 0x45e0e4
mov al, byte [edi]
inc edi
jmp 0x45e0b5
sub ecx, 1
jae 0x45e0a4
lea edi, [esi + 0x5b000]
mov eax, dword [edi]
or eax, eax
je 0x45e135
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x624dc]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x62594]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x45e0ea
mov ecx, edi
jns 0x45e119
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x6259c]
or eax, eax
je 0x45e12f
mov dword [ebx], eax
add ebx, 4
jmp 0x45e107
call dword [esi + 0x62598]
mov ebp, dword [esi + 0x625a0]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1f7]
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 0x45e169
sub esp, 0xffffff80
jmp 0x403645
Function at 0x4016bf
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
xor ebx, ebx
push edi
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
add eax, eax
mov dword [edi], ebx
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push esi
lea eax, [ebp - 4]
push eax
push ebx
push str.LocalService
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40172a
cmp dword [ebp - 4], 1
je 0x4016ff
cmp dword [ebp - 4], 2
jne 0x40171a
mov ecx, dword [ebp - 8]
test esi, esi
je 0x401724
test ecx, ecx
je 0x40171f
test cl, 1
jne 0x40171a
mov eax, ecx
shr eax, 1
cmp word [esi + eax*2 - 2], bx
je 0x401724
push 0xd
pop eax
jmp 0x40172a
xor eax, eax
mov word [esi], ax
shr ecx, 1
xor eax, eax
mov dword [edi], ecx
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x401ba0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x424
mov eax, 0x41a386
call fcn.0041994c
mov eax, dword [ebp + 0xc]
xor esi, esi
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x420], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x430], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], esi
mov dword [ebp - 0x418], esi
push 0x60
push esi
push ebx
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x424], edi
test edi, edi
jne 0x401c1d
push 2
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x424], eax
test edi, edi
jne 0x401c1d
call fcn.00401225
mov esi, eax
jmp 0x401d23
push dword [ebp - 0x41c]
push dword [ebp - 0x420]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
jne 0x401c40
call fcn.00401225
jmp 0x401d16
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x41c], eax
test eax, eax
je 0x401c36
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
mov dword [ebp - 0x420], ebx
lea eax, [ebx + 1]
cmp eax, ebx
jae 0x401c73
mov esi, 0x8007000e
jmp 0x401d18
push 2
pop ecx
mul ecx
mov byte [ebp - 4], cl
cmp edx, esi
ja 0x401d46
jb 0x401c8e
cmp eax, 0xffffffff
ja 0x401d46
cmp eax, 0x400
jbe 0x401ca3
push eax
lea ecx, [ebp - 0x418]
call fcn.00405fa3
jmp 0x401cc5
lea eax, [ebp - 0x414]
mov dword [ebp - 0x418], eax
jmp 0x401cc5
mov dword [ebp - 4], 1
cmp dword [ebp - 0x418], 0
je 0x401c69
push ebx
push dword [ebp - 0x418]
push ebx
push dword [ebp - 0x41c]
push esi
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
je 0x401c36
mov eax, dword [ebp - 0x418]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x42c]
push dword [ebp - 0x418]
call fcn.00402758
mov esi, eax
test edi, edi
je 0x401d23
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x401d3c
lea ecx, [ebp - 0x418]
call fcn.00405f9a
mov eax, esi
call fcn.00419899
ret 0x10
push 0x80070216
call fcn.004011a5
int3
Function at 0x404298
Capabilities:
Delete registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x42600c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push esi
push edx
mov edx, ecx
call fcn.00406bdf
cmp dword [ebp + 0xc], 0
pop ecx
pop ecx
je 0x40448f
push ebx
push 0x2001f
xor ebx, ebx
lea ecx, [ebp - 0x220]
push 0x4214e0
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x220], ebx
mov dword [ebp - 0x21c], ebx
mov dword [ebp - 0x218], ebx
call fcn.004015f0
test eax, eax
je 0x404319
push eax
push 0x421398
mov edx, str.failed_to_open_arm_registry
call fcn.00406bdf
pop ecx
pop ecx
lea ecx, [ebp - 0x220]
call fcn.00401531
jmp 0x40448e
push edi
test esi, esi
jne 0x40438c
mov esi, dword [ebp - 0x220]
push str.iLastSvcFailure
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push str.iLastSvcErrorCode
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push str.iSvcErrorCount
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
call dword [sym.imp.KERNEL32.dll_GetTickCount64]
push 4
pop edi
push edi
mov dword [ebp - 0x210], eax
lea eax, [ebp - 0x210]
push eax
push edi
push ebx
push str.iLastSvcSuccess
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x404477
push eax
push 0x421398
mov edx, str.SetDWORDValue_failed_to_register_success_time
call fcn.00406bdf
pop ecx
pop ecx
jmp 0x404477
lea eax, [ebp - 0x228]
push eax
call fcn.0040d3d4
mov dword [esp], 0x208
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.004095e0
push 0xa
push 0x104
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x228]
call fcn.0040cf72
lea eax, [ebp - 0x20c]
mov edx, str.current_error_time:
push ebx
push eax
call fcn.00406bdf
mov eax, dword [ebp - 0x228]
add esp, 0x24
mov dword [ebp - 0x214], eax
lea eax, [ebp - 0x214]
push 4
pop edi
push edi
push eax
push edi
push ebx
push str.iLastSvcFailure
push dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push edi
lea eax, [ebp - 0x214]
mov dword [ebp - 0x214], esi
push eax
push edi
push ebx
push str.iLastSvcErrorCode
push dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea eax, [ebp - 0x210]
mov dword [ebp - 0x210], ebx
push eax
push str.iSvcErrorCount
lea ecx, [ebp - 0x220]
call fcn.00401689
mov eax, dword [ebp - 0x210]
cmp eax, 0x7d00
jae 0x404477
inc eax
mov dword [ebp - 0x214], esi
push edi
mov dword [ebp - 0x210], eax
lea eax, [ebp - 0x214]
push eax
push edi
push ebx
push str.iSvcErrorCount
push dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea ecx, [ebp - 0x220]
call fcn.00401531
lea ecx, [ebp - 0x220]
call fcn.00401531
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0040797f
leave
ret
Function at 0x40449c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x25c
mov eax, dword [0x42600c]
xor eax, esp
mov dword [esp + 0x258], eax
push esi
mov esi, ecx
test esi, esi
jne 0x4044c1
push 0xd
jmp 0x404516
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x404514
push 0x250
lea eax, [esp + 0xc]
push 0
push eax
call fcn.004095e0
add esp, 0xc
lea eax, [esp + 8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x404514
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
push ecx
xor edx, edx
mov ecx, esi
call fcn.00403c3e
neg eax
pop ecx
sbb eax, eax
and eax, 0xfffffc12
add eax, 0x3ee
jmp 0x404517
push 2
pop eax
mov ecx, dword [esp + 0x25c]
pop esi
xor ecx, esp
call fcn.0040797f
mov esp, ebp
pop ebp
ret

Function at 0x4045e3
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
xor esi, esi
mov dword [ebp - 0xc], ecx
push esi
push 0x80
push 1
push esi
push 1
push 0x40000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x404697
mov eax, 0x100000
mov dword [ebp - 8], esi
push eax
mov dword [ebp - 4], eax
mov edi, esi
call fcn.0040d559
pop ecx
mov esi, eax
push 0
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
push esi
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x404687
cmp dword [ebp - 8], 0
jbe 0x404687
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push 0
push eax
push dword [ebp - 8]
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x404667
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
and dword [ebp - 8], 0
mov eax, 0x100000
mov dword [ebp - 4], eax
test esi, esi
je 0x404683
push eax
push 0
push esi
call fcn.004095e0
add esp, 0xc
test edi, edi
je 0x404629
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call fcn.0040d414
pop ecx
jmp 0x40469f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4046a6
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x66c
mov eax, dword [0x42600c]
xor eax, esp
mov dword [esp + 0x668], eax
push ebx
push esi
push edi
mov esi, ecx
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, 0x104
cmp word [esi + eax*2 - 2], 0x5c
je 0x4046ef
push 0x421014
mov edx, ebx
mov ecx, esi
call fcn.00403aa0
test eax, eax
js 0x40480e
push 0x208
lea eax, [esp + 0x46c]
push 0
push eax
call fcn.004095e0
pop ecx
pop ecx
push esi
push ecx
mov edx, 0x82
lea ecx, [esp + 0x474]
call fcn.00403b0e
test eax, eax
js 0x40480e
push 0x421668
mov edx, ebx
lea ecx, [esp + 0x46c]
call fcn.00403aa0
test eax, eax
js 0x40480e
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x46c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x404800
push 0x208
lea eax, [esp + 0x264]
push 0
push eax
call fcn.004095e0
pop ecx
pop ecx
push esi
push ecx
mov edx, 0x82
lea ecx, [esp + 0x26c]
call fcn.00403b0e
test eax, eax
js 0x40480e
lea eax, [esp + 0x3c]
mov edx, ebx
push eax
lea ecx, [esp + 0x264]
call fcn.00403aa0
test eax, eax
js 0x40480e
test byte [esp + 0x10], 0x10
je 0x4047de
push 0x42166c
lea eax, [esp + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x4047ec
push 0x421670
lea eax, [esp + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x4047ec
lea ecx, [esp + 0x260]
call fcn.004046a6
jmp 0x4047ec
lea eax, [esp + 0x260]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [esp + 0x10]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x404750
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov ecx, dword [esp + 0x674]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040797f
mov esp, ebp
pop ebp
ret

Function at 0x404823
Capabilities:
Get common file path

Disassembly:
push 0x41c
mov eax, 0x41a46b
call fcn.004198de
mov esi, dword [ebp + 8]
push 1
push dword [ebp + 0xc]
call fcn.00404298
pop ecx
pop ecx
lea ecx, [ebp - 0x424]
call fcn.00406594
lea eax, [ebp - 0x425]
xor ebx, ebx
push eax
push dword [ebp + 0xc]
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x424]
push esi
mov byte [ebp - 0x425], bl
call fcn.0040692b
push 0x208
lea eax, [ebp - 0x218]
push ebx
push eax
call fcn.004095e0
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push ebx
push ebx
push 0x2b
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x4048bc
push str.AdobeARM1.0Temp
mov edx, 0x104
lea ecx, [ebp - 0x218]
call fcn.00403aa0
test eax, eax
js 0x4048bc
lea ecx, [ebp - 0x218]
call fcn.004046a6
call fcn.00419888
ret
Function at 0x405848
Capabilities:
Delete service
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x42600c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, ecx
call fcn.00405767
test eax, eax
je 0x4058c7
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
je 0x40589b
push 0x10020
lea eax, [esi + 0x230]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebx, eax
test ebx, ebx
jne 0x40589f
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
jmp 0x4058ca
lea eax, [ebp - 0x20]
push eax
push 1
push ebx
call dword [sym.imp.ADVAPI32.dll_ControlService]
push ebx
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push ebx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test esi, esi
je 0x40589b
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040797f
leave
ret

Function at 0x4058d9
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
mov eax, dword [0x42600c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp + 0x10]
push edi
push eax
xor edi, edi
lea eax, [ebp - 0x204]
push edi
push dword [ebp + 0xc]
push 0x100
push eax
call fcn.0040117c
push dword [eax + 4]
push dword [eax]
call fcn.0040cd7e
add esp, 0x1c
lea eax, [ebp - 0x204]
mov dword [ebp - 0x208], eax
cmp dword [esi + 0x454], edi
je 0x405961
lea eax, [esi + 0x230]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov esi, eax
test esi, esi
je 0x40596e
push edi
lea eax, [ebp - 0x208]
push eax
push edi
push 1
push edi
push edi
push edi
push 4
push esi
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
jmp 0x40596e
lea eax, [ebp - 0x204]
push eax
call fcn.0040d501
pop ecx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0040797f
leave
ret
Function at 0x40597c
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
lea eax, [ebp - 0xc]
push esi
push edi
push eax
lea eax, [ebp - 4]
xor edi, edi
push eax
push edi
push 0xf003f
push edi
push edi
push edi
push 0x4214e0
push reloc.OLEAUT32.dll_SysReAllocString
mov esi, ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x4059d6
call dword [sym.imp.KERNEL32.dll_GetTickCount64]
push 4
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push 4
push edi
push str.iLastSvcSuccess
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esi + 0x230]
mov dword [ebp - 0x18], 0x405b40
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], edi
cmp dword [esi + 0x454], edi
je 0x405a16
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherW]
test eax, eax
jne 0x405a0e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x454], edi
cmp dword [esi + 0x454], edi
jne 0x405a1d
mov ecx, esi
call fcn.00405bdd
pop edi
pop esi
leave
ret

Function at 0x406594
Capabilities:
Get common file path

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
xor ebx, ebx
push 0x104
push ebx
lea edi, [esi + 4]
mov dword [esi], vtable.CArmReport.0
push edi
call fcn.004095e0
add esp, 0xc
push edi
push ebx
push ebx
push 0x24
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x4065e4
mov ebx, 0x104
mov ecx, edi
push str.Temp_
mov edx, ebx
call fcn.00403aa0
push str.ArmReport.ini
mov edx, ebx
mov ecx, edi
call fcn.00403aa0
pop edi
mov eax, esi
pop esi
pop ebx
ret