joyce8/EMBER2024-capa huggingface dataset:
Function at 0x573054
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff0
mov esi, eax
mov byte [esp], 0
xor eax, eax
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 8], eax
mov edi, 1
jmp 0x573075
inc edi
mov eax, esi
call fcn.00405e00
cmp edi, eax
jg 0x573087
cmp byte [esi + edi - 1], 0x20
je 0x573074
mov eax, esi
test eax, eax
je 0x573092
sub eax, 4
mov eax, dword [eax]
cmp eax, edi
jl 0x573154
cmp byte [esi + edi - 1], 0x2e
je 0x573178
jmp 0x573154
cmp byte [esi + edi - 1], 0x2e
jne 0x5730fc
inc dword [esp + 4]
cmp dword [esp + 4], 3
jg 0x573178
cmp dword [esp + 8], 0xff
jg 0x573178
xor eax, eax
mov dword [esp + 8], eax
mov ebp, esi
test ebp, ebp
je 0x5730e0
sub ebp, 4
mov ebp, dword [ebp]
cmp ebp, edi
jg 0x5730e8
mov bl, 1
jmp 0x5730f6
movzx eax, byte [esi + edi]
add al, 0xd0
sub al, 0xa
setb bl
xor bl, 1
test bl, bl
jne 0x573178
jmp 0x573153
movzx eax, byte [esi + edi - 1]
add al, 0xd0
sub al, 0xa
jae 0x573121
mov eax, dword [esp + 8]
add eax, eax
lea eax, [eax + eax*4]
movzx edx, byte [esi + edi - 1]
add eax, edx
sub eax, 0x30
mov dword [esp + 8], eax
jmp 0x573153
inc edi
mov eax, esi
call fcn.00405e00
cmp edi, eax
jg 0x573133
cmp byte [esi + edi - 1], 0x20
je 0x573120
mov dword [esp + 0xc], esi
cmp dword [esp + 0xc], 0
je 0x57314b
mov eax, dword [esp + 0xc]
sub eax, 4
mov eax, dword [eax]
mov dword [esp + 0xc], eax
cmp edi, dword [esp + 0xc]
jle 0x573178
jmp 0x573163
inc edi
mov eax, esi
call fcn.00405e00
cmp edi, eax
jle 0x5730aa
cmp dword [esp + 4], 3
jne 0x573178
cmp dword [esp + 8], 0xff
jg 0x573178
mov byte [esp], 1
movzx eax, byte [esp]
add esp, 0x10
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x58d9ec
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffbc
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x58daf7
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [ebx + 0x69c], 0
je 0x58da3f
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
dec eax
test eax, eax
jl 0x58da3f
inc eax
xor edx, edx
mov ecx, dword [ebp - 0xc]
lea esi, [ecx + edx]
movzx ecx, byte [ebx + 0x69c]
xor byte [esi], cl
inc edx
dec eax
jne 0x58da2c
lea edx, [ebp - 4]
mov ecx, dword [ebp - 8]
mov eax, ebx
mov esi, dword [eax]
call dword [esi + 0xd8]
mov esi, eax
mov dl, 9
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x94]
test al, al
je 0x58dad9
inc dword [0x610e88]
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x44]
mov edx, 8
mov eax, ebx
call fcn.00470e8c
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x40], eax
mov byte [ebp - 0x3c], 0x11
mov eax, dword [ebx + 0x4b4]
mov dword [ebp - 0x38], eax
mov byte [ebp - 0x34], 0
mov eax, dword [ebp - 4]
mov dword [ebp - 0x30], eax
mov byte [ebp - 0x2c], 0
mov eax, dword [ebp - 8]
mov dword [ebp - 0x28], eax
mov byte [ebp - 0x24], 0
mov dword [ebp - 0x20], esi
mov byte [ebp - 0x1c], 0
mov eax, dword [0x610e88]
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x14], 0
lea edx, [ebp - 0x40]
mov ecx, 5
mov eax, 0x58db14
call fcn.00472498
mov ecx, dword [ebp - 0x10]
mov dl, 9
mov eax, ebx
mov ebx, dword [eax]
call dword [ebx + 0x90]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x58dafe
lea eax, [ebp - 0x44]
call fcn.004069f8
lea eax, [ebp - 0x10]
call fcn.004069f8
ret
Function at 0x5a4544
Capabilities:
Encode data using base64
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov byte [ebp - 1], al
mov esi, dword [ebp + 8]
mov eax, dword [ebp - 0xc]
add eax, eax
add eax, eax
mov ecx, 3
cdq
idiv ecx
mov edx, eax
add edx, 4
mov ecx, esi
xor eax, eax
call fcn.00406434
cmp byte [ebp - 1], 0
jne 0x5a45a4
mov eax, esi
call fcn.00406274
movzx edx, byte [ebp - 0xc]
dec edx
and dl, 0x3f
add dl, 0x21
mov byte [eax], dl
mov eax, dword [ebp - 0xc]
add eax, 2
mov ecx, 3
cdq
idiv ecx
lea eax, [eax + eax*2]
mov dword [ebp - 0xc], eax
mov edi, 2
xor eax, eax
mov dword [ebp - 0x10], eax
xor ebx, ebx
movzx eax, byte [ebp - 1]
sub al, 1
jb 0x5a45be
sub al, 2
jb 0x5a45c5
jmp 0x5a45ca
mov ebx, 2
jmp 0x5a45ca
mov ebx, 1
mov eax, esi
call fcn.00406274
mov byte [eax + ebx - 1], 0
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0xc]
jge 0x5a46ae
test edi, edi
jle 0x5a4626
mov eax, esi
call fcn.00406274
lea eax, [eax + ebx - 1]
push eax
mov ecx, edi
mov eax, 0x3f
shl eax, cl
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
movzx edx, byte [edx + ecx]
and eax, edx
mov ecx, edi
shr eax, cl
mov edx, dword [esi]
or al, byte [edx + ebx - 1]
pop edx
mov byte [edx], al
sub edi, 6
inc ebx
mov eax, esi
call fcn.00406274
mov byte [eax + ebx - 1], 0
jmp 0x5a46a2
test edi, edi
jge 0x5a466c
mov eax, edi
cdq
xor eax, edx
sub eax, edx
mov edi, eax
mov eax, esi
call fcn.00406274
lea eax, [eax + ebx - 1]
push eax
mov ecx, edi
mov eax, 0x3f
shr eax, cl
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
and al, byte [edx + ecx]
mov ecx, edi
shl al, cl
mov edx, dword [esi]
or al, byte [edx + ebx - 1]
pop edx
mov byte [edx], al
mov eax, 8
sub eax, edi
mov edi, eax
inc dword [ebp - 0x10]
jmp 0x5a46a2
mov eax, esi
call fcn.00406274
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
movzx edx, byte [edx + ecx]
and dl, 0x3f
mov ecx, dword [esi]
movzx ecx, byte [ecx + ebx - 1]
or dl, cl
mov byte [eax + ebx - 1], dl
inc ebx
inc dword [ebp - 0x10]
mov eax, esi
call fcn.00406274
mov byte [eax + ebx - 1], 0
mov edi, 2
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0xc]
jl 0x5a45e2
movzx eax, byte [ebp - 1]
sub al, 1
jb 0x5a46bf
sub al, 2
jb 0x5a46f9
jmp 0x5a4741
cmp edi, 2
jne 0x5a46c5
dec ebx
mov eax, ebx
sub eax, 2
jl 0x5a4741
inc eax
mov dword [ebp - 0x14], eax
mov edi, 2
mov eax, esi
call fcn.00406274
mov edx, dword [esi]
movzx edx, byte [edx + edi - 1]
mov ecx, dword [0x610eb8]
movzx edx, byte [ecx + edx]
mov byte [eax + edi - 1], dl
inc edi
dec dword [ebp - 0x14]
jne 0x5a46d5
jmp 0x5a4741
cmp edi, 2
jne 0x5a46ff
dec ebx
test ebx, ebx
jle 0x5a473c
mov dword [ebp - 0x14], ebx
mov edi, 1
mov eax, esi
call fcn.00406274
mov edx, dword [esi]
movzx edx, byte [edx + edi - 1]
mov ecx, dword [0x610ebc]
movzx edx, byte [ecx + edx]
mov byte [eax + edi - 1], dl
inc edi
dec dword [ebp - 0x14]
jne 0x5a470b
jmp 0x5a473c
inc ebx
mov eax, esi
call fcn.00406274
mov byte [eax + ebx - 1], 0x3d
test bl, 3
jne 0x5a472f
mov eax, esi
xor ecx, ecx
mov edx, ebx
call fcn.0040639c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x5bced0
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov esi, ecx
mov dword [ebp - 8], edx
mov edi, eax
xor eax, eax
push ebp
push 0x5bcff8
push dword fs:[eax]
mov dword fs:[eax], esp
movzx eax, word [ebp + 8]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 8]
mov eax, edi
call fcn.005bcdbc
mov eax, dword [esi]
call fcn.004082d0
add eax, 0x28
push eax
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x46e820]
call fcn.00408498
add esp, 4
mov edx, dword [ebp - 4]
lea eax, [ebp - 0x1c]
mov ecx, 0x1c
call fcn.004032cc
mov ebx, 0x1c
mov eax, dword [ebp - 4]
lea edx, [eax + ebx]
lea eax, [ebp - 0x2c]
mov ecx, 0x1c
call fcn.004032cc
add ebx, 0x1c
mov eax, dword [esi]
call fcn.004082d0
mov dword [ebp - 0xc], eax
mov eax, dword [0x61337c]
mov eax, dword [eax]
mov edx, dword [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x30]
lea edx, [ebp - 4]
mov ecx, ebx
call fcn.005add68
add ebx, 4
mov eax, dword [ebp - 4]
add eax, ebx
xor ecx, ecx
mov edx, 3
call fcn.00403a4c
add ebx, 3
mov eax, dword [ebp - 4]
mov byte [eax + ebx], 0x3a
inc ebx
mov eax, dword [esi]
mov byte [eax + 2], 0
mov eax, dword [esi]
mov byte [eax + 3], 0
push ebx
mov eax, dword [esi]
call fcn.004082d0
push eax
lea ecx, [ebp - 4]
mov eax, dword [esi]
xor edx, edx
call fcn.005adc58
mov edx, dword [ebp - 4]
mov eax, edi
mov ecx, dword [eax]
call dword [ecx + 0x98]
mov ebx, eax
mov eax, ebx
call fcn.005adc08
mov edx, esi
mov ecx, dword [ebp + 0x10]
call fcn.005add60
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5bcfff
lea eax, [ebp - 4]
mov edx, dword [0x46e820]
call fcn.004085b8
ret
Function at 0x5ed820
Capabilities:
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 4
push 0
push 0
dec ecx
jne 0x5ed829
push ecx
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004069f0
mov eax, dword [ebp + 0x10]
call fcn.004069f0
xor eax, eax
push ebp
push 0x5ed9dc
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0xd], 0
lea eax, [ebp - 8]
call fcn.0051ae98
cmp dword [ebp - 8], 0
jne 0x5ed8c1
lea edx, [ebp - 0x18]
xor eax, eax
call fcn.004034e8
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x14]
call fcn.004718f0
mov edx, dword [ebp - 0x14]
lea eax, [ebp - 8]
mov ecx, 0x5ed9fc
call fcn.00406edc
mov eax, dword [ebp - 8]
call fcn.0047141c
test al, al
jne 0x5ed8a7
mov eax, dword [ebp - 8]
call fcn.00471440
mov eax, dword [ebp - 8]
call fcn.00406a94
mov ebx, eax
push ebx
call sub.kernel32.dll_GetFileAttributesW
or eax, 2
push eax
push ebx
call sub.kernel32.dll_SetFileAttributesW
lea edx, [ebp - 0x1c]
mov eax, dword [ebp - 8]
call fcn.00479630
push dword [ebp - 0x1c]
lea edx, [ebp - 0x20]
mov eax, 0x10
call fcn.005ed794
push dword [ebp - 0x20]
push 0x5eda14
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00406fc0
mov eax, dword [ebp - 0xc]
call fcn.004713d4
test al, al
jne 0x5ed8c1
xor eax, eax
push ebp
push 0x5ed9a5
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 0x18]
push eax
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp + 0x14]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
mov ecx, edi
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.005c1da8
test al, al
jne 0x5ed935
call fcn.00405308
jmp 0x5ed9ac
mov edx, dword [ebp - 0xc]
mov eax, esi
call fcn.0048dc94
mov byte [ebp - 0xd], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5ed9ac
mov eax, dword [ebp - 0xc]
call fcn.004713d4
test al, al
je 0x5ed96a
mov eax, dword [ebp - 0xc]
call fcn.00406a94
push eax
call sub.kernel32.dll_DeleteFileW
lea eax, [ebp - 0x24]
mov ecx, 0x5eda2c
mov edx, dword [ebp - 0xc]
call fcn.00406edc
mov eax, dword [ebp - 0x24]
call fcn.004713d4
test al, al
je 0x5ed9a4
lea eax, [ebp - 0x28]
mov ecx, 0x5eda2c
mov edx, dword [ebp - 0xc]
call fcn.00406edc
mov eax, dword [ebp - 0x28]
call fcn.00406a94
push eax
call sub.kernel32.dll_DeleteFileW
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5ed9e3
lea eax, [ebp - 0x28]
mov edx, 6
call fcn.00406a00
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00406a00
lea eax, [ebp + 0x10]
call fcn.004069f8
ret
Function at 0x5f5d74
Capabilities:
Get common file path

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov ebx, ecx
mov edi, edx
mov esi, eax
mov eax, ebx
xor edx, edx
call fcn.00406a08
push 0
push edi
lea eax, [esp + 8]
push eax
push esi
call sub.shell32.dll_SHGetSpecialFolderPathW
mov eax, ebx
mov edx, esp
mov ecx, 0x105
call fcn.00406c08
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x5f63b4
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004069f0
xor eax, eax
push ebp
push 0x5f64fa
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x48743c]
call fcn.0048d374
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x5f64d0
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
call fcn.00527020
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx + 0x14]
mov esi, eax
dec esi
test esi, esi
jl 0x5f64ba
inc esi
xor ebx, ebx
lea ecx, [ebp - 0xc]
mov edx, ebx
mov eax, dword [ebp - 8]
call fcn.0048c9b4
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.00470308
test al, al
jne 0x5f645c
lea ecx, [ebp - 0x10]
mov edx, ebx
mov eax, dword [ebp - 8]
call fcn.0048c9b4
mov eax, dword [ebp - 0x10]
push eax
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 4]
call fcn.00471bc4
mov eax, dword [ebp - 0x14]
pop edx
call fcn.00470308
test al, al
je 0x5f64b2
lea ecx, [ebp - 0x18]
mov edx, ebx
mov eax, dword [ebp - 8]
call fcn.0048b904
mov eax, dword [ebp - 0x18]
xor edx, edx
call fcn.00470f20
mov edi, eax
call sub.kernel32.dll_GetCurrentProcessId
cmp edi, eax
je 0x5f64b2
lea ecx, [ebp - 0x1c]
mov edx, ebx
mov eax, dword [ebp - 8]
call fcn.0048b904
mov eax, dword [ebp - 0x1c]
xor edx, edx
call fcn.00470f20
push eax
push 0
push 0x401
call sub.kernel32.dll_OpenProcess
mov edi, eax
push 0
push edi
call sub.kernel32.dll_TerminateProcess
push edi
call sub.kernel32.dll_CloseHandle_1
inc ebx
dec esi
jne 0x5f6417
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5f64d7
mov eax, dword [ebp - 8]
call fcn.0040437c
ret

Function at 0x5f77b0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0
xor eax, eax
push ebp
push 0x5f77f6
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
mov edx, 0x5f780c
call fcn.00405aec
push 0
mov eax, dword [ebp - 4]
call fcn.004061fc
push eax
call sub.kernel32.dll_WinExec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5f77fd
lea eax, [ebp - 4]
call fcn.00405a3c
ret
Function at 0x5f7bb4
Capabilities:
Create service
Persist via windows service

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push ebx
xor eax, eax
push ebp
push 0x5f7ca4
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
xor edx, edx
mov eax, 0x5f7cc0
call fcn.0051eae8
lea edx, [ebp - 4]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.00479630
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 8]
add eax, 0xfffffff8
mov ecx, 0x5f7d00
call fcn.00406edc
mov eax, dword [ebp + 8]
push eax
call fcn.005f7a98
pop ecx
xor edx, edx
mov eax, 0x5f7d34
call fcn.0051eae8
push 0
push 0
push 0
push 0
push 0x5f7d5c
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
call fcn.00406a94
push eax
push 1
push 2
push 0x10
push 0xf01ff
push 0x5f7d60
push 0x5f7d78
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
push eax
call sub.advapi32.dll_CreateServiceW
mov edx, dword [ebp + 8]
mov dword [edx - 0x10], eax
mov eax, dword [ebp + 8]
cmp dword [eax - 0x10], 0
jne 0x5f7c87
call sub.kernel32.dll_GetLastError_1
xor edx, edx
push edx
push eax
lea eax, [ebp - 0xc]
call fcn.00470e64
mov ecx, dword [ebp - 0xc]
lea eax, [ebp - 8]
mov edx, 0x5f7da0
call fcn.00406edc
mov eax, dword [ebp - 8]
xor edx, edx
call fcn.0051eae8
jmp 0x5f7c89
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5f7cab
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00406a00
ret
Function at 0x5f8344
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
xor edx, edx
mov dword [ebp - 0x24], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x5f83cf
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x1e]
xor ecx, ecx
mov edx, 0x1e
call fcn.00403a4c
xor eax, eax
mov dword [ebp - 0x1e], eax
mov dword [ebp - 0x1a], 3
lea edx, [ebp - 0x24]
mov eax, ebx
call fcn.00479680
lea eax, [ebp - 0x24]
mov edx, 0x5f83ec
call fcn.00406e1c
mov eax, dword [ebp - 0x24]
call fcn.00406a94
mov dword [ebp - 0x16], eax
mov eax, 0x5f83f0
mov dword [ebp - 0x12], eax
mov word [ebp - 0xe], 0x14
lea eax, [ebp - 0x1e]
push eax
call sub.shell32.dll_SHFileOperationW
test eax, eax
sete bl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5f83d6
lea eax, [ebp - 0x24]
call fcn.004069f8
ret

Function at 0x5f83f8
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004069f0
xor eax, eax
push ebp
push 0x5f84c9
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x48743c]
call fcn.0048d374
mov dword [ebp - 8], eax
xor edx, edx
push ebp
push 0x5f849c
push dword fs:[edx]
mov dword fs:[edx], esp
mov cl, 1
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.005f60f8
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx + 0x14]
mov ebx, eax
dec ebx
test ebx, ebx
jl 0x5f8486
inc ebx
xor esi, esi
lea ecx, [ebp - 0xc]
mov edx, esi
mov eax, dword [ebp - 8]
mov edi, dword [eax]
call dword [edi + 0xc]
mov edi, dword [ebp - 0xc]
mov dword [ebp - 0x10], edi
mov eax, dword [ebp - 0x10]
call fcn.00406a94
push eax
call sub.kernel32.dll_DeleteFileW
cmp eax, 1
sbb eax, eax
inc eax
inc esi
dec ebx
jne 0x5f845b
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5f84a3
mov eax, dword [ebp - 8]
call fcn.0040437c
ret
Function at 0x5f84d8
Capabilities:
Create process on windows
Delete service

Disassembly:
push ebp
mov ebp, esp
mov ecx, 8
push 0
push 0
dec ecx
jne 0x5f84e0
push ebx
xor eax, eax
push ebp
push 0x5f8893
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
push 0
push 0x5f88a4
call sub.kernel32.dll_WinExec
push 0xf003f
push 0
push 0
call sub.advapi32.dll_OpenSCManagerW
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x5f8870
mov byte [ebp - 0x1d], 1
lea eax, [ebp - 4]
xor edx, edx
call fcn.00406a5c
xor eax, eax
push ebp
push 0x5f8866
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xf01ff
push 0x5f88bc
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_OpenServiceW
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x5f856b
mov byte [ebp - 0x1d], 0
mov byte [ebp - 5], 1
call fcn.00405308
jmp 0x5f8870
xor eax, eax
push ebp
push 0x5f862f
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x1c]
push eax
push 0
push 0
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_QueryServiceConfigW
cmp dword [ebp - 0x1c], 0x24
jb 0x5f8606
mov eax, dword [ebp - 0x1c]
push eax
call fcn.00408ec0
pop ecx
mov dword [ebp - 0x18], eax
xor eax, eax
push ebp
push 0x5f85ff
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x18]
xor ecx, ecx
mov edx, dword [ebp - 0x1c]
call fcn.00403a4c
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_QueryServiceConfigW
test eax, eax
je 0x5f85e7
mov eax, dword [ebp - 4]
call fcn.005f63b4
lea eax, [ebp - 4]
mov edx, dword [ebp - 0x18]
mov edx, dword [edx + 0xc]
call fcn.00406bb4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5f8606
mov eax, dword [ebp - 0x18]
push eax
call fcn.00408ed0
pop ecx
ret
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_DeleteService
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 5], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5f8636
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_CloseServiceHandle
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5f889a
lea eax, [ebp - 0x40]
mov edx, 8
call fcn.00406a00
lea eax, [ebp - 4]
call fcn.004069f8
ret
Function at 0x5fb04c
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004069f0
xor eax, eax
push ebp
push 0x5fb19b
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 4]
call fcn.00406a94
mov ebx, eax
push ebx
call sub.version.dll_GetFileVersionInfoSizeW
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x5fb178
mov eax, dword [ebp - 0xc]
call fcn.004030e4
mov dword [ebp - 0x18], eax
xor edx, edx
push ebp
push 0x5fb171
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 0
push ebx
call sub.version.dll_GetFileVersionInfoW
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x1c]
push eax
push 0x5fb1ac
mov eax, dword [ebp - 0x18]
push eax
call sub.version.dll_VerQueryValueW
mov eax, dword [ebp - 0x1c]
mov ebx, dword [eax + 8]
shr ebx, 0x10
movzx esi, word [eax + 8]
and si, 0xffff
mov edi, dword [eax + 0xc]
shr edi, 0x10
movzx eax, word [eax + 0xc]
and ax, 0xffff
mov word [ebp - 0x1e], ax
lea edx, [ebp - 0x24]
movzx eax, bx
call fcn.00470c58
push dword [ebp - 0x24]
push 0x5fb1bc
lea edx, [ebp - 0x28]
movzx eax, si
call fcn.00470c58
push dword [ebp - 0x28]
push 0x5fb1bc
lea edx, [ebp - 0x2c]
movzx eax, di
call fcn.00470c58
push dword [ebp - 0x2c]
push 0x5fb1bc
lea edx, [ebp - 0x30]
movzx eax, word [ebp - 0x1e]
call fcn.00470c58
push dword [ebp - 0x30]
mov eax, dword [ebp - 8]
mov edx, 7
call fcn.00406fc0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5fb178
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x18]
call fcn.00403100
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5fb1a2
lea eax, [ebp - 0x30]
mov edx, 4
call fcn.00406a00
lea eax, [ebp - 4]
call fcn.004069f8
ret
Function at 0x994cdc
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x994d03
call fcn.00937288
mov dword [eax], esi
call fcn.00937275
push 0x16
pop esi
mov dword [eax], esi
call fcn.00937eca
mov eax, esi
jmp 0x994d58
test dword [ebp + 0xc], 0xfffffff9
jne 0x994ce9
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x994d30
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0093729b
pop ecx
call fcn.00937275
mov eax, dword [eax]
jmp 0x994d58
test al, 0x10
jne 0x994d56
test al, 1
je 0x994d56
test byte [ebp + 0xc], 2
je 0x994d56
call fcn.00937288
mov dword [eax], 5
call fcn.00937275
mov dword [eax], 0xd
jmp 0x994d27
xor eax, eax
pop esi
pop ebp
ret

Function at 0x80217b
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
pushal
push ebp
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add dl, dl
jne 0x802198
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x802189
add dl, dl
jne 0x8021a3
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x8021ef
xor eax, eax
add dl, dl
jne 0x8021b0
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x80228c
add dl, dl
jne 0x8021bf
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8021ca
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8021d5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8021e0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x8021ea
push edi
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
jmp 0x80218f
mov eax, 1
add dl, dl
jne 0x8021fd
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x802208
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x8021f4
sub eax, 2
jne 0x802237
mov ecx, 1
add dl, dl
jne 0x80221d
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x802228
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x802214
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x80218f
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x80224e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x802259
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x802245
cmp eax, 0x7d00
jae 0x80227c
cmp eax, 0x500
jb 0x802277
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x80218f
cmp eax, 0x7f
ja 0x80227f
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x80218f
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x8022a8
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x80218f
pop ebp
sub edi, dword [ebp + 0xc]
mov dword [ebp - 4], edi
popal
pop ebp
ret