joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4e2ed0
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, dword [esp + 0x10]
test ebp, ebp
jne 0x4e2edd
xor eax, eax
pop ebp
ret
cmp word [0x74ac10], 0
jne 0x4e2eec
call fcn.004da280
mov eax, 0xaaaaaaab
mul ebp
shr edx, 1
lea eax, [edx + edx*2]
cmp eax, ebp
je 0x4e2efd
inc edx
mov ecx, dword [esp + 0xc]
lea eax, [edx*4]
push esi
mov esi, dword [esp + 0xc]
mov dword [esp + 0x14], eax
mov byte [eax + ecx], 0
test edx, edx
je 0x4e2fb1
push ebx
push edi
xor edi, edi
movzx eax, byte [esi]
sar al, 2
and al, 0x3f
movzx eax, al
movzx eax, byte [eax + 0x74a790]
mov byte [ecx], al
mov bl, byte [esi]
and bl, 3
inc edi
dec edx
inc ecx
shl bl, 4
inc esi
cmp edi, ebp
jae 0x4e2f4e
mov al, byte [esi]
sar al, 4
and al, 0xf
or bl, al
movzx eax, bl
mov al, byte [eax + 0x74a790]
mov byte [ecx], al
inc ecx
cmp edi, ebp
jae 0x4e2f83
mov bl, byte [esi]
and bl, 0xf
add bl, bl
inc edi
add bl, bl
inc esi
cmp edi, ebp
jae 0x4e2f76
mov al, byte [esi]
sar al, 6
and al, 3
or bl, al
movzx eax, bl
mov al, byte [eax + 0x74a790]
mov byte [ecx], al
jmp 0x4e2f86
mov byte [ecx], 0x3d
inc ecx
cmp edi, ebp
jae 0x4e2f9f
mov bl, byte [esi]
and bl, 0x3f
movzx eax, bl
mov al, byte [eax + 0x74a790]
inc esi
inc edi
mov byte [ecx], al
jmp 0x4e2fa2
mov byte [ecx], 0x3d
inc ecx
test edx, edx
jne 0x4e2f21
mov eax, dword [esp + 0x1c]
pop edi
pop ebx
pop esi
pop ebp
ret
Function at 0x4e3a20
Capabilities:
Create directory

Disassembly:
mov eax, dword [esp + 8]
push esi
mov esi, dword [esp + 8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp eax, 1
je 0x4e3a5d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4e3a6f
push esi
call fcn.004e1070
add esp, 4
cmp eax, 0xffffffff
je 0x4e3a64
test al, 0x10
je 0x4e3a64
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, 1
pop esi
ret
push 0xb7
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop esi
ret

Function at 0x4e4160
Capabilities:
Persist via windows service
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x21c
mov eax, dword [0x6aae14]
xor eax, esp
mov dword [esp + 0x218], eax
push esi
mov esi, dword [esp + 0x228]
push edi
mov edi, dword [esp + 0x228]
push 0x207
lea eax, [esp + 0x1d]
push 0
push eax
mov dword [esp + 0x18], esi
mov byte [esp + 0x24], 0
call fcn.005dfd60
add esp, 0xc
test edi, edi
je 0x4e42ea
cmp byte [edi], 0
je 0x4e42ea
test esi, esi
je 0x4e42ea
cmp byte [esi], 0
je 0x4e42ea
push ebx
push ebp
push edi
lea ecx, [esp + 0x24]
push 0x628b4c
push ecx
call fcn.005dfb23
mov ebp, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
add esp, 0xc
lea edx, [esp + 0x10]
push edx
push 1
push 0
lea eax, [esp + 0x2c]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call ebp
mov ebx, dword [sym.imp.KERNEL32.dll_SetLastError]
mov esi, eax
push esi
call ebx
test esi, esi
jne 0x4e42e6
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x24]
push eax
push esi
push str.Description
push ecx
mov byte [esp + 0x38], 0
mov dword [esp + 0x30], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4e424d
mov edx, dword [esp + 0x14]
push edx
lea eax, [esp + 0x24]
push eax
call fcn.004dd620
add esp, 8
test eax, eax
je 0x4e42b2
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
lea eax, [esp + 0x24]
push 0x628b4c
push eax
call fcn.005dfb23
add esp, 0xc
lea ecx, [esp + 0x10]
push ecx
push 0xf003f
push 0
lea edx, [esp + 0x2c]
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call ebp
mov esi, eax
push esi
call ebx
test esi, esi
jne 0x4e42e6
mov esi, dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
mov eax, dword [esp + 0x14]
push esi
push 1
push 0
push str.Description
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x4e42db
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
pop ebp
pop ebx
pop edi
pop esi
mov ecx, dword [esp + 0x218]
xor ecx, esp
call fcn.005dfbbe
add esp, 0x21c
ret
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x4e42c2
mov ecx, dword [esp + 0x220]
pop edi
pop esi
xor ecx, esp
xor eax, eax
call fcn.005dfbbe
add esp, 0x21c
ret
Function at 0x4e4500
Capabilities:
Check for time delay via gettickcount
Terminate process

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, 0x103
mov dword [esp + 8], edi
test esi, esi
je 0x4e453b
lea eax, [esp + 8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
cmp dword [esp + 8], edi
je 0x4e453b
mov ecx, dword [esp + 0x14]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop edi
mov eax, 1
pop esi
pop ecx
ret
push ebx
push ebp
mov ebp, dword [esp + 0x1c]
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0x10], eax
call edi
mov ebx, eax
call edi
sub eax, ebx
cmp eax, 0x2710
jae 0x4e45b1
mov dword [esp + 0x18], 0x103
test esi, esi
je 0x4e4584
lea edx, [esp + 0x18]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
cmp dword [esp + 0x18], 0x103
jne 0x4e45a9
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
call edi
sub eax, ebx
cmp eax, 0x2710
jb 0x4e4562
mov eax, dword [esp + 0x10]
pop ebp
pop ebx
pop edi
pop esi
pop ecx
ret
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esp + 0x10]
pop ebp
pop ebx
pop edi
pop esi
pop ecx
ret
Function at 0x4e45c0
Capabilities:
Acquire debug privileges
Check os version

Disassembly:
sub esp, 0xc4
mov eax, dword [0x6aae14]
xor eax, esp
mov dword [esp + 0xc0], eax
push ebp
mov ebp, dword [esp + 0xd4]
cmp ebp, 4
jbe 0x4e47a2
cmp ebp, 0xffffffff
je 0x4e47a2
mov eax, dword [esp + 0xd0]
mov ecx, dword [esp + 0xcc]
push ebx
push esi
push edi
push ebp
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
jne 0x4e479b
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
mov ebx, eax
mov dword [esp + 0x14], ebx
cmp ebx, 5
jne 0x4e476a
push 0x90
lea edx, [esp + 0x44]
push esi
push edx
call fcn.005dfd60
add esp, 0xc
lea eax, [esp + 0x3c]
push eax
mov dword [esp + 0x40], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov esi, 2
cmp dword [esp + 0x4c], esi
je 0x4e4660
push ebx
jmp 0x4e46eb
lea ecx, [esp + 0x10]
push ecx
push 0
push 0x28
mov dword [esp + 0x24], 0x10
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenThreadToken]
test eax, eax
jne 0x4e469a
lea edx, [esp + 0x10]
push edx
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x4e46f1
lea eax, [esp + 0x20]
push eax
push 0x643ce8
push 0
mov dword [esp + 0x28], 1
mov dword [esp + 0x34], esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov ebx, dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x30]
push edx
push 0x10
lea eax, [esp + 0x28]
push eax
push 0
push ecx
call ebx
test eax, eax
jne 0x4e470c
call edi
lea edx, [esp + 0x10]
mov esi, eax
push edx
call fcn.004dca10
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
mov ecx, dword [esp + 0xc0]
xor ecx, esp
call fcn.005dfbbe
add esp, 0xc4
ret
call edi
cmp eax, 0x514
jne 0x4e4720
call edi
mov esi, eax
lea eax, [esp + 0x10]
push eax
jmp 0x4e46e5
mov ecx, dword [esp + 0xdc]
mov edx, dword [esp + 0xd8]
push ebp
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
call edi
mov ecx, dword [esp + 0x10]
push 0
push 0
push 0x10
mov edi, eax
lea eax, [esp + 0x38]
push eax
push 0
push ecx
call ebx
lea edx, [esp + 0x10]
push edx
call fcn.004dca10
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
test esi, esi
jne 0x4e479b
mov ebx, dword [esp + 0x14]
call fcn.004d9b00
test eax, eax
je 0x4e479b
cmp ebx, 5
jne 0x4e479b
test dword [esp + 0xd8], 0xfffdfbef
jne 0x4e479b
mov eax, dword [esp + 0xdc]
push ebp
push eax
push 0x1000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
mov eax, esi
jmp 0x4e46f3
mov ecx, dword [esp + 0xc4]
pop ebp
xor ecx, esp
xor eax, eax
call fcn.005dfbbe
add esp, 0xc4
ret
Function at 0x4e51b0
Capabilities:
Get memory capacity

Disassembly:
sub esp, 0x170
mov eax, dword [0x6aae14]
xor eax, esp
mov dword [esp + 0x16c], eax
push ebx
push ebp
push edi
mov edi, dword [esp + 0x188]
xor ebx, ebx
mov dword [esp + 0xc], ebx
cmp edi, ebx
je 0x4e51da
mov byte [edi], bl
cmp dword [0x6905b4], 0xffffffff
mov ebp, 1
jne 0x4e5207
push 0x6905b4
push 0x61a64c
push 0x6111b8
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [0x6905b4], ebp
call fcn.004d5820
cmp dword [0x6905b4], ebx
jne 0x4e5216
xor eax, eax
jmp 0x4e53b4
push esi
push 0x3c
lea eax, [esp + 0x40]
push ebx
push eax
call fcn.005dfd60
add esp, 0xc
lea ecx, [esp + 0x38]
push ecx
mov dword [esp + 0x3c], 0x40
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
test eax, eax
je 0x4e524f
mov esi, dword [esp + 0x40]
mov edx, dword [esp + 0x44]
shrd esi, edx, 0xa
shr edx, 0xa
jmp 0x4e5283
xor eax, eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov esi, dword [esp + 0x20]
shr esi, 0xa
call fcn.004d99e0
test eax, eax
jne 0x4e529e
call fcn.004d8f30
cmp eax, 2
jg 0x4e529e
cmp esi, 0x180000
jb 0x4e52b4
cmp dword [0x6905b4], 4
je 0x4e52b4
mov dword [0x6905b4], ebx
xor eax, eax
jmp 0x4e53b3
mov eax, dword [esp + 0x184]
cmp eax, ebx
jne 0x4e52c5
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push ebx
push 0x510
call fcn.004e45c0
add esp, 0xc
mov dword [esp + 0x14], eax
cmp eax, ebx
je 0x4e535b
cmp dword [esp + 0x188], ebp
jne 0x4e52eb
push 0xffffffffffffffff
push 0xffffffffffffffff
jmp 0x4e52ed
push ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetProcessWorkingSetSize]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x10], eax
call esi
mov ebp, eax
cmp dword [esp + 0x10], ebx
jne 0x4e53a5
cmp edi, ebx
je 0x4e5352
push 0x103
lea ecx, [esp + 0x7d]
push ebx
push ecx
mov byte [esp + 0x84], bl
call fcn.005dfd60
add esp, 0xc
call esi
push eax
lea edx, [esp + 0x7c]
push 0x104
push edx
call fcn.004d8b50
lea eax, [esp + 0x84]
push eax
push str.SETSIZE:_Error__s.
push edi
call fcn.005dfb23
add esp, 0x18
push ebp
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x4e53a5
cmp edi, ebx
je 0x4e53a5
push 0x103
lea ecx, [esp + 0x7d]
push ebx
push ecx
mov byte [esp + 0x84], bl
call fcn.005dfd60
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea edx, [esp + 0x7c]
push 0x104
push edx
call fcn.004d8b50
lea eax, [esp + 0x84]
push eax
push str.SETSIZE:_Unable_to_Open_Process__Reason:__s
push edi
call fcn.005dfb23
add esp, 0x18
lea ecx, [esp + 0x14]
push ecx
call fcn.004dca10
mov eax, dword [esp + 0x10]
pop esi
mov ecx, dword [esp + 0x178]
pop edi
pop ebp
pop ebx
xor ecx, esp
call fcn.005dfbbe
add esp, 0x170
ret 0xc
Function at 0x4e53d0
Capabilities:
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x4e5412
cmp byte [esi], 0
je 0x4e5412
push esi
call fcn.004e0fb0
add esp, 4
cmp eax, 0xffffffff
je 0x4e5412
cmp dword [esp + 0xc], 1
jne 0x4e53fe
movzx eax, al
shr eax, 5
and eax, 1
pop esi
ret
test al, 0x20
je 0x4e540b
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, 1
pop esi
ret
xor eax, eax
pop esi
ret

Function at 0x4e5420
Capabilities:
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push esi
call fcn.004e0fb0
add esp, 4
cmp eax, 0xffffffff
jne 0x4e5437
xor eax, eax
pop esi
ret
test al, 7
je 0x4e544b
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
je 0x4e5433
mov eax, 1
pop esi
ret
Function at 0x4e6480
Capabilities:
Encode data using xor

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x10]
xor ebx, ebx
push edi
xor edi, edi
mov dword [esi + 0x6af80], 2
lea ebp, [ebx + 1]
cmp dword [esi + 0x6af90], ebx
je 0x4e6692
cmp dword [esi + 0x6af90], 3
jb 0x4e64f9
mov ecx, dword [esi + 0x6af84]
movzx eax, byte [ecx + esi + 0x1af72]
mov edx, dword [esi + 0x6af7c]
shl edx, 5
xor eax, edx
and eax, 0x7fff
mov dword [esi + 0x6af7c], eax
mov ebx, dword [esi + eax*4 + 0x4af70]
and ecx, 0x7fff
mov dword [esi + ecx*4 + 0x2af70], ebx
mov eax, dword [esi + 0x6af7c]
mov ecx, dword [esi + 0x6af84]
mov dword [esi + eax*4 + 0x4af70], ecx
test ebx, ebx
je 0x4e6539
mov edx, dword [esi + 0x6af84]
sub edx, ebx
cmp edx, 0x7efa
ja 0x4e6539
mov eax, dword [esi + 0x6af90]
cmp dword [esi + 0x6afa0], eax
jbe 0x4e6521
mov dword [esi + 0x6afa0], eax
push ebx
push esi
call fcn.004d1cd0
mov edi, eax
mov eax, dword [esi + 0x6af90]
add esp, 8
cmp edi, eax
jbe 0x4e6539
mov edi, eax
cmp edi, 3
jb 0x4e6610
mov ecx, dword [esi + 0x6af84]
sub ecx, dword [esi + 0x6af88]
lea eax, [edi - 3]
push eax
push ecx
push esi
call fcn.004d1740
sub dword [esi + 0x6af90], edi
mov ecx, dword [esi + 0x6af90]
add esp, 0xc
cmp edi, dword [esi + 0x6af98]
ja 0x4e65d8
cmp ecx, 3
jb 0x4e65d8
sub edi, ebp
jmp 0x4e6580
add dword [esi + 0x6af84], ebp
mov edx, dword [esi + 0x6af84]
movzx ecx, byte [esi + edx + 0x1af72]
mov ebx, dword [esi + 0x6af7c]
shl ebx, 5
xor ecx, ebx
and ecx, 0x7fff
mov dword [esi + 0x6af7c], ecx
mov ebx, dword [esi + ecx*4 + 0x4af70]
and edx, 0x7fff
sub edi, ebp
mov dword [esi + edx*4 + 0x2af70], ebx
mov edx, dword [esi + 0x6af7c]
mov ecx, dword [esi + 0x6af84]
mov dword [esi + edx*4 + 0x4af70], ecx
jne 0x4e6580
jmp 0x4e6630
add dword [esi + 0x6af84], edi
mov edx, dword [esi + 0x6af84]
movzx ecx, byte [edx + esi + 0x1af70]
add edx, esi
mov dword [esi + 0x6af7c], ecx
movzx edx, byte [edx + 0x1af71]
shl ecx, 5
xor edx, ecx
xor edi, edi
and edx, 0x7fff
mov dword [esi + 0x6af7c], edx
jmp 0x4e6636
mov eax, dword [esi + 0x6af84]
movzx ecx, byte [eax + esi + 0x1af70]
push ecx
push 0
push esi
call fcn.004d1740
add esp, 0xc
dec dword [esi + 0x6af90]
add dword [esi + 0x6af84], ebp
test eax, eax
je 0x4e6670
mov eax, dword [esi + 0x6af74]
test eax, eax
jl 0x4e664d
lea ecx, [eax + esi + 0x1af70]
jmp 0x4e664f
xor ecx, ecx
mov edx, dword [esi + 0x6af84]
push 0
sub edx, eax
push edx
push ecx
push esi
call fcn.004e62c0
mov eax, dword [esi + 0x6af84]
add esp, 0x10
mov dword [esi + 0x6af74], eax
cmp dword [esi + 0x6af90], 0x106
jae 0x4e6685
push esi
call fcn.004d1e70
add esp, 4
cmp dword [esi + 0x6af90], 0
jne 0x4e64a5
mov eax, dword [esi + 0x6af74]
test eax, eax
jl 0x4e66a5
lea ecx, [eax + esi + 0x1af70]
jmp 0x4e66a7
xor ecx, ecx
mov edx, dword [esi + 0x6af84]
push ebp
sub edx, eax
push edx
push ecx
push esi
call fcn.004e62c0
add esp, 0x10
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x4e7720
Capabilities:
Set registry value

Disassembly:
sub esp, 0x424
mov eax, dword [0x6aae14]
xor eax, esp
mov dword [esp + 0x420], eax
mov eax, dword [esp + 0x42c]
mov ecx, dword [esp + 0x430]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push ebp
mov ebp, dword [esp + 0x430]
push esi
mov esi, dword [esp + 0x440]
push edi
mov dword [esp + 0x18], ecx
mov dword [esp + 0x10], 0
mov edi, eax
test eax, eax
je 0x4e777e
push eax
lea edx, [esp + 0x22c]
push edx
call ebx
lea edi, [esp + 0x228]
push 0x64850c
lea eax, [esp + 0x24]
push eax
mov dword [esp + 0x1c], 0x208
call ebx
mov ebx, dword [esp + 0x18]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x24]
push edx
push ebx
push edi
push ebp
call fcn.004d5770
cmp al, 1
jne 0x4e77c2
lea eax, [esp + 0x20]
push esi
push eax
call fcn.005f095a
add esp, 8
test eax, eax
je 0x4e7892
test esi, esi
je 0x4e77f3
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x14]
push edx
push 0
push 0x20006
push 0
push 0x648504
push 0
push edi
push ebp
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x4e77fa
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor al, al
jmp 0x4e7894
cmp byte [esi], 0x25
mov edi, 1
jne 0x4e7816
lea eax, [esi + 1]
push 0x25
push eax
call fcn.005e0940
add esp, 8
test eax, eax
jne 0x4e7833
cmp byte [esi], 0x22
jne 0x4e7838
cmp byte [esi + 1], 0x25
jne 0x4e7838
lea ecx, [esi + 2]
push 0x25
push ecx
call fcn.005e0940
add esp, 8
test eax, eax
je 0x4e7838
mov edi, 2
mov eax, esi
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4e7840
sub eax, edx
mov edx, dword [esp + 0x10]
inc eax
push eax
push esi
push edi
push 0
push ebx
push edx
mov dword [esp + 0x2c], eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
mov eax, dword [esp + 0x10]
test esi, esi
je 0x4e7887
test eax, eax
je 0x4e787c
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x10], 0
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor al, al
jmp 0x4e7894
test eax, eax
je 0x4e7892
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
mov ecx, dword [esp + 0x430]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.005dfbbe
add esp, 0x424
ret 0x10
Function at 0x4e7f20
Capabilities:
Modify service
Query service configuration

Disassembly:
sub esp, 0x314
mov eax, dword [0x6aae14]
xor eax, esp
mov dword [esp + 0x310], eax
push ebp
push edi
mov edi, dword [esp + 0x324]
push edi
call fcn.004e7d70
add esp, 4
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebp, eax
test ebp, ebp
je 0x4e8016
push ebx
push esi
push 0x30b
lea eax, [esp + 0x19]
push 0
push eax
or esi, 0xffffffff
mov byte [esp + 0x20], 0
call fcn.005dfd60
add esp, 0xc
push 0xf01ff
push edi
push ebp
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebx, dword [esp + 0x330]
mov edi, eax
test ebx, ebx
jne 0x4e7f9c
or esi, 0xffffffff
jmp 0x4e7fd1
test edi, edi
je 0x4e800d
lea ecx, [esp + 0x10]
push ecx
push 0x30c
lea edx, [esp + 0x1c]
push edx
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfigA]
test eax, eax
je 0x4e7fd1
mov esi, dword [esp + 0x14]
cmp ebx, 1
jne 0x4e7fcb
and esi, 0xfffffeff
jmp 0x4e7fd1
or esi, 0x100
test edi, edi
je 0x4e800d
mov eax, dword [esp + 0x328]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
test eax, eax
jne 0x4e7ff4
push 4
jmp 0x4e7ffe
cmp eax, 3
jne 0x4e7ffc
push eax
jmp 0x4e7ffe
push 2
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigA]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ebp
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop esi
pop ebx
mov ecx, dword [esp + 0x318]
pop edi
pop ebp
xor ecx, esp
call fcn.005dfbbe
add esp, 0x314
ret

Function at 0x4e8400
Capabilities:
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push esi
call fcn.004e0fb0
add esp, 4
cmp eax, 0xffffffff
je 0x4e842b
test al, 7
je 0x4e8427
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
je 0x4e842b
xor eax, eax
pop esi
ret
mov eax, 1
pop esi
ret
Function at 0x4e8440
Capabilities:
Check os version
Get common file path

Disassembly:
sub esp, 0x108
mov eax, dword [0x6aae14]
xor eax, esp
mov dword [esp + 0x104], eax
cmp dword [0x74aff0], 0
jne 0x4e8481
mov dword [0x74aff0], 1
call dword [sym.imp.KERNEL32.dll_GetVersion]
test eax, eax
js 0x4e8481
cmp al, 6
jb 0x4e8481
mov dword [0x74afec], 1
jmp 0x4e848e
cmp dword [0x74afec], 0
je 0x4e8549
push 0x103
lea eax, [esp + 5]
push 0
push eax
mov byte [esp + 0xc], 0
call fcn.005dfd60
add esp, 0xc
cmp byte [0x74b270], 0
jne 0x4e84c0
push 0x74b270
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
xor eax, eax
mov cl, byte [eax + 0x74b270]
mov byte [esp + eax], cl
inc eax
test cl, cl
jne 0x4e84c2
cmp byte [esp], cl
je 0x4e84fa
lea eax, [esp]
inc eax
cmp byte [eax], 0
jne 0x4e84d8
lea ecx, [esp]
sub eax, ecx
je 0x4e84fa
cmp byte [esp + eax - 1], 0x5c
je 0x4e84fa
push 0x66da34
mov edx, ecx
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp]
dec eax
mov edi, edi
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4e8500
mov ecx, dword [0x648568]
mov edx, dword [0x64856c]
mov dword [eax], ecx
mov ecx, dword [0x648570]
mov dword [eax + 4], edx
mov dl, byte [0x648574]
mov dword [eax + 8], ecx
mov byte [eax + 0xc], dl
lea eax, [esp]
push 0x60cf08
push eax
call fcn.005e00ad
add esp, 8
test eax, eax
je 0x4e8549
push eax
call fcn.005dff6d
add esp, 4
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.005dfbbe
add esp, 0x108
ret

Function at 0x4e8560
Capabilities:
Check os version
Read .ini file

Disassembly:
sub esp, 0x210
mov eax, dword [0x6aae14]
xor eax, esp
mov dword [esp + 0x20c], eax
mov eax, dword [esp + 0x220]
push ebx
mov ebx, dword [esp + 0x21c]
push ebp
mov ebp, dword [esp + 0x224]
push esi
mov esi, dword [esp + 0x234]
push edi
mov edi, dword [esp + 0x224]
push 0x207
lea ecx, [esp + 0x19]
push 0
push ecx
mov dword [esp + 0x1c], eax
mov byte [esp + 0x20], 0
call fcn.005dfd60
add esp, 0xc
call fcn.004e8440
push esi
lea edx, [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
cmp dword [0x74aff0], 0
jne 0x4e85f3
mov esi, 1
mov dword [0x74aff0], esi
call dword [sym.imp.KERNEL32.dll_GetVersion]
test eax, eax
js 0x4e85f3
cmp al, 6
jb 0x4e85f3
mov dword [0x74afec], esi
jmp 0x4e85fc
cmp dword [0x74afec], 0
je 0x4e861b
mov ecx, dword [esp + 0x234]
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push eax
push ecx
push edx
push ebp
push ebx
push edi
call fcn.004d8300
add esp, 0x18
jmp 0x4e8636
mov ecx, dword [esp + 0x234]
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push eax
push ecx
push edx
push ebp
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov ecx, dword [esp + 0x21c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.005dfbbe
add esp, 0x210
ret
Function at 0x4e8ee0
Capabilities:
Persist via run registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x110
mov eax, dword [0x6aae14]
xor eax, esp
mov dword [esp + 0x10c], eax
push esi
push edi
mov edi, dword [esp + 0x11c]
push 0x103
lea eax, [esp + 0x15]
push 0
push eax
mov byte [esp + 0x1c], 0
call fcn.005dfd60
add esp, 0xc
mov byte [edi], 0
cmp dword [0x68fed4], 0xffffffff
jne 0x4e8f43
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0x68fed4
call fcn.004d9f10
add esp, 0x2c
cmp dword [0x68fed4], 0
jne 0x4e8f81
lea ecx, [esp + 8]
push ecx
push 0xf003f
push 0
push 0x612808
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
test esi, esi
jne 0x4e8ff0
push 0x631eb0
lea edx, [esp + 0x14]
push edx
jmp 0x4e8fb4
lea eax, [esp + 8]
push eax
push 0xf003f
push 0
push 0x612808
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
test esi, esi
jne 0x4e8ff0
push 0x648578
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ecx, dword [esp + 8]
lea edx, [esp + 0xc]
push edx
push edi
push 0
push 0
lea eax, [esp + 0x20]
push eax
push ecx
mov dword [esp + 0x24], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push edi
call fcn.004e2520
mov edx, dword [esp + 0xc]
add esp, 4
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x114]
pop edi
pop esi
xor ecx, esp
call fcn.005dfbbe
add esp, 0x110
ret

Function at 0x4e9430
Capabilities:
Check if file exists

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
push esi
mov esi, dword [esp + 0x10]
push esi
push eax
push ecx
call fcn.004d58d0
cmp al, 1
je 0x4e9467
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x4e9470
push esi
call fcn.004e5120
cmp eax, 1
jne 0x4e9470
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, 1
pop esi
ret 0xc
xor eax, eax
pop esi
ret 0xc