joyce8/EMBER2024-capa huggingface dataset:
Function at 0x549930
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x59fd30
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
push edi
push 0x5fd02c
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_4
push 0x5fd02c
lea ecx, [esp + 0xc]
mov dword [esp + 0x1c], 0
call sub.MFC42.DLL_CString::CString_4
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0xc]
push eax
push 0x5e2418
push ecx
mov byte [esp + 0x24], 1
call sub.MFC42.DLL_CString::Format
mov eax, dword [esi + 0x10]
mov edi, dword [esp + 0x18]
mov esi, dword [esi + 8]
add esp, 0xc
lea ecx, [esp + 8]
push eax
push 0x104
push 0x104
call sub.MFC42.DLL_CString::GetBuffer
push eax
push 0x5edaa0
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.MSVCRT.dll_atoi]
add esp, 4
lea ecx, [esp + 8]
mov esi, eax
mov byte [esp + 0x18], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
mov dword [esp + 0x18], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret 4

Function at 0x549a00
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x59fd48
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
push 0x5fd02c
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::CString_4
mov eax, dword [esi + 0x10]
mov edi, dword [esi + 0xc]
mov esi, dword [esi + 4]
push eax
push 0x104
push 0x104
lea ecx, [esp + 0x14]
mov dword [esp + 0x20], 0
call sub.MFC42.DLL_CString::GetBuffer
push eax
push 0x5e2414
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.MSVCRT.dll_atoi]
add esp, 4
lea ecx, [esp + 8]
mov esi, eax
mov dword [esp + 0x14], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x552ed0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
sub esp, 0x97c
mov ecx, 0x107
xor eax, eax
push ebp
push esi
push edi
lea edi, [esp + 0x154]
rep stosd dword es:[edi], eax
mov ecx, 0x10
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
push eax
call sub.MSVCRT.dll_time
push eax
call sub.MSVCRT.dll_srand
add esp, 8
xor esi, esi
call sub.MSVCRT.dll_rand
cdq
mov ecx, 0xff
idiv ecx
inc esi
cmp esi, 0x40
mov byte [esp + esi + 0xf], dl
jl 0x552f05
mov ecx, 0x10
lea esi, [esp + 0x10]
lea edi, [esp + 0x160]
lea edx, [esp + 0x50]
rep movsd dword es:[edi], dword [esi]
mov ecx, 0x41
mov esi, 0x602ff0
lea edi, [esp + 0x50]
push edx
rep movsd dword es:[edi], dword [esi]
mov edi, 0x80
lea eax, [esp + 0x160]
push edi
lea ecx, [esp + 0x14]
push eax
lea edx, [esp + 0x168]
push ecx
push edx
call fcn.005583d0
mov ebp, dword [esp + 0x9a0]
mov byte [esp + 0x168], 0
push ebp
mov byte [esp + 0x16d], 0x10
mov word [esp + 0x16e], 0
mov word [esp + 0x170], 0
mov word [esp + 0x172], di
mov word [esp + 0x584], 0x88
mov dword [esp + 0x24], 0x418
call fcn.00552ac0
mov edx, dword [esp + 0x584]
add esp, 0x18
lea eax, [esp + 0xc]
lea ecx, [esp + 0x570]
push eax
push ecx
mov ecx, dword [sym.imp.WinSCard.dll_g_rgSCardT1Pci]
and edx, 0xffff
push 0
lea eax, [esp + 0x160]
push edx
mov edx, dword [ebp + 6]
push eax
push ecx
push edx
call sub.WinSCard.dll_SCardTransmit
push ebp
mov esi, eax
call fcn.00552af0
add esp, 4
test esi, esi
jne 0x5530c4
cmp dword [esp + 0xc], 0x82
jne 0x5530c4
movzx ax, byte [esp + 0x5f0]
push eax
mov dword [esp + 0x10], edi
call fcn.00552b10
push eax
call fcn.00552ce0
add esp, 8
test eax, eax
jne 0x5530c9
lea ecx, [esp + 0x50]
lea edx, [esp + 0x570]
push ecx
push edi
lea eax, [esp + 0x14]
push edx
lea ecx, [esp + 0x57c]
push eax
push ecx
call fcn.005583d0
mov eax, dword [esp + 0x20]
add esp, 0x14
cmp eax, edi
jne 0x5530c4
mov eax, dword [esp + 0x570]
test eax, eax
jne 0x5530c4
mov ecx, 0x10
lea edi, [esp + 0x574]
lea esi, [esp + 0x10]
xor edx, edx
repe cmpsd dword [esi], dword es:[edi]
jne 0x5530c4
mov eax, dword [esp + 0x990]
mov edx, dword [esp + 0x5b8]
lea edi, [ebp + 0x112]
mov ecx, 0xa
lea esi, [esp + 0x5bc]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x5b4]
pop edi
mov dword [eax], ecx
mov dword [eax + 4], edx
and word [ebp + 0x114], 0xff
mov dword [ebp + 0x136], 1
pop esi
xor eax, eax
pop ebp
add esp, 0x97c
ret
mov eax, 0xf0000004
pop edi
pop esi
pop ebp
add esp, 0x97c
ret

Function at 0x5530e0
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 0x10]
test esi, esi
jle 0x553102
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
push ebx
sub ecx, eax
mov dl, byte [ecx + eax]
mov bl, byte [eax]
xor bl, dl
mov byte [eax], bl
inc eax
dec esi
jne 0x5530f4
pop ebx
pop esi
ret
Function at 0x553820
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
sub esp, 0x460
push ebx
push ebp
push esi
xor ebx, ebx
push edi
push ebx
call sub.MSVCRT.dll_time
push eax
call sub.MSVCRT.dll_srand
add esp, 8
xor esi, esi
call sub.MSVCRT.dll_rand
cdq
mov ecx, 0xff
idiv ecx
inc esi
cmp esi, 0x40
mov byte [esp + esi + 0x13], dl
jl 0x55383d
mov ecx, 0x107
xor eax, eax
lea edi, [esp + 0x54]
lea esi, [esp + 0x14]
rep stosd dword es:[edi], eax
mov ecx, 0x10
lea edi, [esp + 0x60]
rep movsd dword es:[edi], dword [esi]
push 0x602ff0
lea edx, [esp + 0x60]
push 0x80
lea eax, [esp + 0x18]
push edx
lea ecx, [esp + 0x68]
push eax
push ecx
call fcn.005583d0
mov ebp, dword [esp + 0x488]
lea edx, [esp + 0x68]
push edx
push ebp
mov byte [esp + 0x70], bl
mov byte [esp + 0x71], 0x10
mov word [esp + 0x72], bx
mov word [esp + 0x74], bx
mov word [esp + 0x76], 0x80
mov word [esp + 0x488], 0x88
call fcn.00553450
push 0x602ff0
lea eax, [esp + 0x7c]
push 0x80
lea ecx, [esp + 0x34]
push eax
lea edx, [esp + 0x84]
push ecx
push edx
call fcn.005583d0
mov eax, dword [esp + 0x8c]
add esp, 0x30
cmp eax, ebx
je 0x553903
pop edi
pop esi
pop ebp
mov eax, 0xf0000004
pop ebx
add esp, 0x460
ret
mov ecx, 0x10
lea edi, [esp + 0x60]
lea esi, [esp + 0x14]
xor eax, eax
repe cmpsd dword [esi], dword es:[edi]
je 0x553926
pop edi
pop esi
pop ebp
mov eax, 0xf0000004
pop ebx
add esp, 0x460
ret
mov eax, dword [esp + 0x478]
mov edx, dword [esp + 0xa4]
lea edi, [ebp + 0x112]
mov ecx, 0xa
lea esi, [esp + 0xa8]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0xa0]
pop edi
mov dword [eax], ecx
mov dword [eax + 4], edx
and word [ebp + 0x114], 0xff
mov dword [ebp + 0x136], ebx
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x460
ret
Function at 0x558cf0
Capabilities:
Encrypt data using des

Disassembly:
sub esp, 0xc
xor eax, eax
xor ecx, ecx
mov cl, byte [eax + str.80_]
inc eax
cmp eax, 0x38
mov dl, byte [ecx + 0x603490]
mov byte [eax + 0x603457], dl
jl 0x558cf5
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x10], 0
mov dword [esp + 0x18], 0x603158
mov eax, dword [esp + 0x10]
mov ecx, dword [0x603458]
and ecx, 0xff
xor edx, edx
mov al, byte [eax + 0x5f386c]
mov dl, byte [0x603459]
mov ebp, eax
xor esi, esi
and ebp, 0xff
mov eax, ebp
neg eax
lea edi, [eax + 0x1c]
test edi, edi
jle 0x558d7a
lea ebx, [ebp + 0x603458]
mov dword [esp + 0x14], ebx
mov ebx, dword [esp + 0x14]
inc esi
mov bl, byte [ebx]
mov byte [esi + 0x603457], bl
mov ebx, dword [esp + 0x14]
inc ebx
cmp esi, edi
mov dword [esp + 0x14], ebx
jl 0x558d60
mov esi, dword [esp + 0x10]
cmp byte [esi + 0x5f386c], 2
jne 0x558d95
mov byte [0x603472], cl
mov byte [0x603473], dl
jmp 0x558d9b
mov byte [0x603473], cl
mov edx, dword [0x603474]
mov ecx, 0x1c
lea esi, [eax + 0x38]
and edx, 0xff
xor ebx, ebx
cmp esi, ecx
mov bl, byte [0x603475]
jle 0x558dd0
lea ebp, [ebp + 0x603474]
mov al, byte [ebp]
mov byte [ecx + 0x603458], al
inc ecx
inc ebp
cmp ecx, esi
jl 0x558dc1
mov ecx, dword [esp + 0x10]
cmp byte [ecx + 0x5f386c], 2
jne 0x558deb
mov byte [0x60348e], dl
mov byte [0x60348f], bl
jmp 0x558df1
mov byte [0x60348f], dl
mov ecx, dword [esp + 0x18]
xor eax, eax
xor edx, edx
mov dl, byte [eax + 0x5f38b4]
inc eax
cmp eax, 0x30
mov dl, byte [edx + 0x603458]
mov byte [ecx + eax - 1], dl
jl 0x558df7
mov esi, dword [esp + 0x10]
add ecx, 0x30
inc esi
cmp ecx, 0x603458
mov dword [esp + 0x10], esi
mov dword [esp + 0x18], ecx
jl 0x558d23
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret

Function at 0x55b3b0
Capabilities:
Hash data with md5

Disassembly:
xor eax, eax
push 0x40
push eax
push 0x603574
mov dword [0x603560], eax
mov dword [0x60355c], eax
mov dword [0x603564], 0x67452301
mov dword [0x603568], 0xefcdab89
mov dword [0x60356c], 0x98badcfe
mov dword [0x603570], 0x10325476
call fcn.0055bf40
add esp, 0xc
mov byte [0x603574], 0x80
ret

Function at 0x55bf70
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 8
xor edx, edx
xor eax, eax
push ebx
push ebp
push esi
push edi
lea ebp, [ecx + 2]
mov byte [eax + ebp], al
inc eax
cmp eax, 0x100
jl 0x55bf82
mov byte [ecx], dl
mov byte [ecx + 1], dl
mov byte [esp + 0x1c], dl
xor esi, esi
mov ebx, ebp
mov dword [esp + 0x10], pe_nt_image_headers32
mov edi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x24]
and edi, 0xff
xor eax, eax
xor edx, edx
mov al, byte [edi + ecx]
mov dl, byte [ebx]
add esi, eax
add edx, esi
and edx, 0x800000ff
jns 0x55bfcd
dec edx
or edx, 0xffffff00
inc edx
mov byte [esp + 0x14], dl
mov esi, dword [esp + 0x14]
and esi, 0xff
lea eax, [esi + ebp]
push eax
push ebx
call fcn.0055c140
lea eax, [edi + 1]
add esp, 8
cdq
idiv dword [esp + 0x20]
mov eax, dword [esp + 0x10]
inc ebx
dec eax
mov dword [esp + 0x10], eax
mov byte [esp + 0x1c], dl
jne 0x55bfa2
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
Function at 0x55c010
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x14]
push ebx
mov ecx, eax
push ebp
push esi
mov esi, dword [esp + 0x24]
mov edx, ecx
push edi
mov edi, dword [esp + 0x2c]
mov ebp, dword [esp + 0x20]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
xor ebx, ebx
and ecx, 3
cmp eax, ebx
rep movsb byte es:[edi], byte [esi]
mov cl, byte [ebp]
mov dl, byte [ebp + 1]
mov byte [esp + 0x28], cl
mov byte [esp + 0x20], dl
mov dword [esp + 0x10], ebx
jle 0x55c12c
mov esi, dword [esp + 0x28]
mov edi, dword [esp + 0x20]
and esi, 0xff
and edi, 0xff
lea eax, [esi + 1]
and eax, 0x800000ff
jns 0x55c078
dec eax
or eax, 0xffffff00
inc eax
mov byte [esp + 0x28], al
xor ecx, ecx
mov esi, dword [esp + 0x28]
and esi, 0xff
mov cl, byte [esi + ebp + 2]
lea eax, [esi + ebp + 2]
add ecx, edi
mov dword [esp + 0x14], eax
and ecx, 0x800000ff
jns 0x55c0a6
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x20], cl
mov edi, dword [esp + 0x20]
and edi, 0xff
lea ecx, [edi + ebp + 2]
push ecx
push eax
mov dword [esp + 0x20], ecx
call fcn.0055c140
mov eax, dword [esp + 0x1c]
xor edx, edx
xor ecx, ecx
add esp, 8
mov dl, byte [eax]
mov eax, dword [esp + 0x18]
mov cl, byte [eax]
add edx, ecx
and edx, 0x800000ff
jns 0x55c0e8
dec edx
or edx, 0xffffff00
inc edx
mov eax, dword [esp + 0x2c]
and edx, 0xff
mov cl, byte [edx + ebp + 2]
mov dl, byte [ebx + eax]
xor dl, cl
mov byte [ebx + eax], dl
mov eax, dword [esp + 0x10]
inc eax
movsx ebx, ax
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x24]
cmp ebx, eax
jl 0x55c067
mov dl, byte [esp + 0x28]
mov al, byte [esp + 0x20]
pop edi
mov byte [ebp], dl
mov byte [ebp + 1], al
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
pop edi
mov byte [ebp], cl
mov byte [ebp + 1], dl
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x55e4b0
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x104
call fcn.0054f4c0
push ebx
push esi
push edi
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
test eax, eax
je 0x55e4f9
push eax
call dword [sym.imp.KERNEL32.dll_GetFileType]
test eax, eax
je 0x55e4f9
mov ecx, dword [ebp + 8]
lea eax, [ebp + 0xc]
push eax
push ecx
push sym.imp.MSVCRT.dll_ftell
call sub.MSVCRT.dll_vfprintf
add esp, 0xc
lea esp, [ebp - 0x110]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
lea edx, [ebp + 0xc]
push edx
push eax
lea ecx, [ebp - 0x104]
push 0xff
push ecx
call sub.MSVCRT.dll__vsnprintf
add esp, 0x10
mov byte [ebp - 5], 0
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x55e60b
call dword [sym.imp.USER32.dll_GetDesktopWindow]
call dword [sym.imp.USER32.dll_GetProcessWindowStation]
mov ebx, eax
test ebx, ebx
je 0x55e60b
lea edx, [ebp - 4]
push edx
push 0
push 0
push 2
push ebx
call dword [sym.imp.USER32.dll_GetUserObjectInformationW]
test eax, eax
jne 0x55e60b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x55e60b
mov eax, dword [ebp - 4]
cmp eax, 0x200
ja 0x55e60b
lea esi, [eax + 1]
and esi, 0xfffffffe
mov dword [ebp - 4], esi
lea eax, [esi + 2]
add eax, 3
and al, 0xfc
call fcn.0054f4c0
lea eax, [ebp - 4]
mov edi, esp
push eax
push esi
push edi
push 2
push ebx
call dword [sym.imp.USER32.dll_GetUserObjectInformationW]
test eax, eax
je 0x55e60b
mov ecx, dword [ebp - 4]
push str.Service_0x
push edi
lea eax, [ecx + 1]
and al, 0xfe
mov dword [ebp - 4], eax
shr eax, 1
mov word [edi + eax*2], 0
call sub.MSVCRT.dll_wcsstr
add esp, 8
test eax, eax
je 0x55e60b
push str.OPENSSL
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
mov esi, eax
lea eax, [ebp - 4]
push 0
push eax
push 0
push 1
push 0
push 0
push 0
lea edx, [ebp - 0x104]
push 1
push esi
mov dword [ebp - 4], edx
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
lea esp, [ebp - 0x110]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x10
lea ecx, [ebp - 0x104]
push str.OpenSSL:_FATAL
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
lea esp, [ebp - 0x110]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401a50
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
mov eax, dword [esp + 0x10]
push edi
push 0
push 0x20
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
je 0x401ae2
mov eax, dword [esp + 0x10]
push ebx
mov ebx, 1
push ebp
cmp eax, ebx
push esi
mov dword [esp + 0x10], ebx
jle 0x401ad4
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
lea esi, [esp + 0x2c]
mov eax, dword [esi]
lea edx, [esp + 0x14]
push 0
push edx
lea ecx, [eax + 8]
mov eax, dword [eax + 4]
push eax
push ecx
push edi
call ebp
test eax, eax
je 0x401acc
mov eax, dword [esp + 0x1c]
inc ebx
add esi, 0xc
cmp ebx, eax
jl 0x401a95
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret
mov dword [esp + 0x10], 0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret
Function at 0x401d40
Capabilities:
Delete directory

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
jne 0x401d4d
xor eax, eax
pop esi
ret
push edi
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
pop edi
jne 0x401d5f
pop esi
ret
cmp ecx, 1
jne 0x401d6d
cmp byte [esi], 0x5c
jne 0x401d6d
xor eax, eax
pop esi
ret
push esi
call fcn.00401af0
add esp, 4
test eax, eax
je 0x401d81
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
pop esi
ret
Function at 0x409910
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push edi
mov edi, dword [ebp + 0x14]
test edi, edi
jle 0x409a1a
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
sub eax, 0xffffff80
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
lea esi, [ecx + 2]
sub ecx, eax
lea edx, [eax + 2]
add ecx, 0xfffffffe
lea eax, [edi - 1]
mov dword [ebp + 0x14], edx
shr eax, 3
inc eax
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
nop
movzx eax, byte [edx - 2]
add ecx, edx
push ecx
push ecx
push dword [ebp - 0xc]
mov byte [ecx], al
movzx eax, byte [edx - 1]
mov byte [esi - 1], al
movzx eax, byte [edx]
mov byte [esi], al
movzx eax, byte [edx + 1]
mov byte [esi + 1], al
movzx eax, byte [edx + 2]
mov byte [esi + 2], al
movzx eax, byte [edx + 3]
mov byte [esi + 3], al
movzx eax, byte [edx + 4]
mov byte [esi + 4], al
movzx eax, byte [edx + 5]
mov byte [esi + 5], al
mov edi, dword [edx - 2]
mov ebx, dword [edx + 2]
call fcn.00408bb0
mov ecx, dword [ebp + 8]
lea esi, [esi + 8]
mov edx, dword [ebp + 0x14]
add esp, 0xc
movzx eax, byte [ecx + 0x100]
mov ecx, dword [ebp - 8]
xor byte [edx + ecx], al
add edx, 8
mov ecx, dword [ebp + 8]
mov dword [ebp + 0x14], edx
movzx eax, byte [ecx + 0x101]
xor byte [esi - 9], al
movzx eax, byte [ecx + 0x102]
xor byte [esi - 8], al
movzx eax, byte [ecx + 0x103]
xor byte [esi - 7], al
movzx eax, byte [ecx + 0x104]
xor byte [esi - 6], al
movzx eax, byte [ecx + 0x105]
xor byte [esi - 5], al
movzx eax, byte [ecx + 0x106]
xor byte [esi - 4], al
movzx eax, byte [ecx + 0x107]
xor byte [esi - 3], al
sub dword [ebp - 4], 1
mov dword [ecx + 0x100], edi
mov dword [ecx + 0x104], ebx
mov ecx, dword [ebp - 8]
jne 0x409950
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x413a90
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5dd5e6
mov eax, dword fs:[0]
push eax
sub esp, 0x834
mov eax, dword [0x67432c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [ebp + 0x10]
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
cdq
push edx
push eax
lea eax, [ebp - 0x840]
push eax
call fcn.0045524b
add esp, 0xc
xor eax, eax
mov dword [ebp - 4], 0
push 0xffffffffffffffff
push eax
mov word [ebp - 0x828], ax
lea ecx, [ebp - 0x828]
lea eax, [ebp - 0x840]
mov dword [ebp - 0x814], 7
push eax
mov dword [ebp - 0x818], 0
call fcn.004029b0
push 0x800
lea eax, [ebp - 0x810]
mov byte [ebp - 4], 1
push 0
push eax
call fcn.00480640
add esp, 0xc
cmp dword [esi + 0x14], 8
jb 0x413b36
mov esi, dword [esi]
cmp dword [ebp - 0x82c], 8
lea ecx, [ebp - 0x810]
push esi
push 0x400
push ecx
lea eax, [ebp - 0x840]
cmovae eax, dword [ebp - 0x840]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp word [ebp - 0x810], 0
jne 0x413b6e
xor ecx, ecx
jmp 0x413b86
lea ecx, [ebp - 0x810]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x413b77
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x810]
push eax
lea ecx, [ebp - 0x828]
call fcn.00402ad0
cmp dword [ebp - 0x814], 8
lea eax, [ebp - 0x828]
cmovae eax, dword [ebp - 0x828]
push eax
call fcn.00483eb3
mov ecx, dword [ebp - 0x814]
add esp, 4
mov esi, eax
cmp ecx, 8
jb 0x413bd6
inc ecx
push ecx
push dword [ebp - 0x828]
lea ecx, [ebp - 0x828]
call fcn.00402c20
xor eax, eax
mov dword [ebp - 0x814], 7
mov word [ebp - 0x828], ax
mov eax, dword [ebp - 0x82c]
mov dword [ebp - 0x818], 0
cmp eax, 8
jb 0x413c11
inc eax
lea ecx, [ebp - 0x840]
push eax
push dword [ebp - 0x840]
call fcn.00402c20
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0046d81d
mov esp, ebp
pop ebp
ret 0xc
Function at 0x413da0
Capabilities:
Delete service
Encode data using xor
Query service status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x67432c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0xf003f
push 0
push 0
mov dword [ebp - 0x24], eax
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0x28], eax
test eax, eax
jne 0x413de4
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046d81d
mov esp, ebp
pop ebp
ret 4
call fcn.004521f8
test al, al
je 0x413e08
mov ebx, 0x7733b63
invalid
call fcn.0045209f
test al, al
je 0x413e2f
scasd eax, dword es:[edi]
invalid
push 0xf01ff
push dword [ebp - 0x24]
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
mov dword [ebp - 0x24], esi
test esi, esi
je 0x413dcf
call fcn.0045209f
test al, al
je 0x413e71
invalid
lea eax, [ebp - 0x20]
push eax
loopne 0x413ec5
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
adc eax, sym.imp.ADVAPI32.dll_DeleteService
test eax, eax
je 0x413dcf
call fcn.00452351
test al, al
je 0x413eab
push edx
xor byte [ebp + 0x65], dl
mov esp, 0x293cbfea
push ebp
jne 0x413e7e
inc ebx
imul esp, dword [edi], 0xffffffe3
arpl word [ebx - 0x6711564d], bp
jle 0x413e94
call fcn.004520e4
xor al, 0xe2
add eax, dword [eax]
test al, al
je 0x413ecc
xchg edi, eax
invalid
push ds
clc
inc ecx
ficom word [ecx + 0x24274949]
scasd eax, dword es:[edi]
xchg esi, eax
cmp bl, bl
adc esi, esp
cmp al, byte [edi]
jecxz 0x413eb5
call fcn.0045216e
test al, al
popfd
loop 0x413ed3
add byte [eax + eax*8 - 0x5a46e78c], al
loop 0x413eee
je 0x413eed
mov ecx, 0x6c15e2a5
insb byte es:[edi], dx
jb 0x413e73
sub al, byte [ecx]
wait
jbe 0x413eba
xchg byte [ebp - 0x14], al
cmp cl, byte [ecx - 0x38]
fnstsw word [edi + 0x7d]
inc edi
add eax, 0xdc75fff5
push dword [ebp - 0x24]
jne 0x413ecc
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test eax, eax
je 0x413dcf
call fcn.0045230c
test al, al
je 0x413f19
in eax, dx
pop ebp
mov bl, 0x92
mov esp, dword [eax - 0x38]
mov eax, dword [0x51765bc4]
pop ebp
test dword [edi - 0x80], ebp
push 0xd875ff58
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0046d81d
mov esp, ebp
pop ebp
ret 4
Function at 0x414560
Capabilities:
Query service status
Stop service

Disassembly:
lea esp, [eax - 0x17000003]
salc
int1
invalid
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x67432c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
call fcn.004523db
test al, al
je 0x41459a
add byte [eax + eax*8 - 0x5088e48c], al
ja 0x414530
jns 0x414536
jbe 0x41457a
int1
add ah, byte [edx]
wait
and eax, 0xe3f6f80c
dec edi
adc esp, dword [eax]
invalid
call fcn.0045223d
test al, al
je 0x4145b8
fadd qword [ebx]
add byte [eax + eax*8 + 0x49b91574], al
jg 0x414615
mov ecx, 0xb06e7f49
stc
mov al, 0xf9
ficomp dword [edi + 0x24ab156f]
dec edx
stosd dword es:[edi], eax
and al, 0x4a
adc al, 0xec
adc eax, dword [edi + edx*8 - 9]
jne 0x4145ad
call fcn.00452396
test al, al
je 0x4145d3
and dword [edi], edi
insb byte es:[edi], dx
insd dword es:[edi], dx
loop 0x41459c
aad 0xc5
push 0xb66ac6fe
mov dword [0x11267ba1], eax
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0x28], eax
test eax, eax
jne 0x4145fe
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046d81d
mov esp, ebp
pop ebp
ret 4
push 0xf01ff
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebx, eax
mov dword [ebp - 0x24], ebx
test ebx, ebx
je 0x4145e9
call fcn.004524aa
test al, al
je 0x414632
xchg ecx, eax
fiadd word [ebx]
add byte [eax + eax*8 + 0x60461574], al
inc esi
pushal
out dx, al
mov al, byte [0xf61a0d3b]
or dword [edx], ecx
mov bh, 0xe8
jle 0x41465d
push ss
dec esi
invalid
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
cmp dword [ebp - 0x1c], 1
je 0x414650
lea eax, [ebp - 0x20]
push eax
push 1
push ebx
call dword [sym.imp.ADVAPI32.dll_ControlService]
call fcn.004521f8
test al, al
je 0x414674
jbe 0x4146b3
mov esp, 0x10186bb8
imul ebx, dword [eax], 0x10
and byte [ecx + 0x34], bl
loop 0x41468c
and dword [ebp - 0x5c126f56], edx
cmp al, ah
test dword [esi], eax
call 0x7bd9edd2
call fcn.0045209f
test al, al
je 0x41469b
leave
aad 0x72
push edi
retf 0x4754
pop ebp
pop edi
mov edi, dword [edi + 0x34c3b6]
push ebp
pop eax
and eax, 0xa4b7c796
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0046d81d
mov esp, ebp
pop ebp
ret 4