joyce8/EMBER2024-capa huggingface dataset:
Function at 0x550838
Capabilities:
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov dword [ebp - 4], edx
lea eax, [ebp - 0x100]
xor ecx, ecx
mov edx, 0x80
call fcn.00403818
mov dword [ebp - 8], 0x38
mov eax, 0x652ad4
lea edx, [ebp - 0x48]
movzx ebx, byte [eax]
mov ecx, ebx
and cl, 7
mov esi, 0x80
shr esi, cl
movzx ecx, bl
shr ecx, 3
mov ebx, dword [ebp - 4]
movzx ecx, byte [ebx + ecx]
and esi, ecx
je 0x55088c
mov byte [edx], 1
jmp 0x55088f
mov byte [edx], 0
inc edx
inc eax
dec dword [ebp - 8]
jne 0x550867
xor eax, eax
mov dword [ebp - 8], eax
mov esi, 0x65345c
cmp byte [ebp + 8], 0
je 0x5508b5
mov eax, 0xf
sub eax, dword [ebp - 8]
add eax, eax
mov dword [ebp - 0xc], eax
jmp 0x5508bd
mov eax, dword [ebp - 8]
add eax, eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
inc eax
mov dword [ebp - 0x10], eax
xor eax, eax
lea edx, [ebp - 0x80]
movzx ecx, byte [esi]
add ecx, eax
cmp ecx, 0x1c
jae 0x5508dc
movzx ecx, byte [ebp + ecx - 0x48]
mov byte [edx], cl
jmp 0x5508e3
movzx ecx, byte [ebp + ecx - 0x64]
mov byte [edx], cl
inc eax
inc edx
cmp eax, 0x1c
jne 0x5508c9
mov eax, 0x1c
lea edx, [ebp - 0x64]
movzx ecx, byte [esi]
add ecx, eax
cmp ecx, 0x38
jae 0x550905
movzx ecx, byte [ebp + ecx - 0x48]
mov byte [edx], cl
jmp 0x55090c
movzx ecx, byte [ebp + ecx - 0x64]
mov byte [edx], cl
inc eax
inc edx
cmp eax, 0x38
jne 0x5508f2
mov ecx, 0x1000000
mov eax, 0x18
mov edx, 0x652b0c
shr ecx, 1
movzx ebx, byte [edx]
cmp byte [ebp + ebx - 0x80], 0
je 0x550938
mov ebx, dword [ebp - 0xc]
or dword [ebp + ebx*4 - 0x100], ecx
movzx ebx, byte [edx + 0x18]
cmp byte [ebp + ebx - 0x80], 0
je 0x55094d
mov ebx, dword [ebp - 0x10]
or dword [ebp + ebx*4 - 0x100], ecx
inc edx
dec eax
jne 0x550922
inc dword [ebp - 8]
inc esi
cmp dword [ebp - 8], 0x10
jne 0x5508a0
xor eax, eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
add eax, eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
inc eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [ebp + eax*4 - 0x100]
mov ecx, eax
and ecx, 0xfc0000
shl ecx, 6
and eax, 0xfc0
shl eax, 0xa
or ecx, eax
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp + eax*4 - 0x100]
mov eax, edx
and eax, 0xfc0000
shr eax, 0xa
or ecx, eax
and edx, 0xfc0
shr edx, 6
or ecx, edx
mov eax, dword [ebp + 0xc]
mov dword [eax], ecx
add dword [ebp + 0xc], 4
mov eax, dword [ebp - 0xc]
mov eax, dword [ebp + eax*4 - 0x100]
mov ecx, eax
and ecx, 0x3f000
shl ecx, 0xc
and eax, 0x3f
shl eax, 0x10
or ecx, eax
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp + eax*4 - 0x100]
mov eax, edx
and eax, 0x3f000
shr eax, 4
or ecx, eax
and edx, 0x3f
or ecx, edx
mov eax, dword [ebp + 0xc]
mov dword [eax], ecx
add dword [ebp + 0xc], 4
inc dword [ebp - 8]
cmp dword [ebp - 8], 0x10
jne 0x550964
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x55131c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
mov esi, ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
add eax, eax
mov dword [ebp + 0xc], eax
lea edx, [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.005455a4
shr dword [ebp + 0xc], 1
lea eax, [ebp - 0xc]
xor ecx, ecx
mov edx, 8
call fcn.00403818
lea edx, [ebp - 0xc]
mov eax, ebx
mov ecx, dword [ebp + 0xc]
call fcn.00403218
lea eax, [ebp - 0x14]
xor ecx, ecx
mov edx, 8
call fcn.00403818
lea edx, [ebp - 0x14]
mov eax, esi
mov ecx, dword [ebp + 0xc]
call fcn.00403218
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x38]
push eax
push 0
lea edx, [ebp - 0xc]
mov ecx, 7
mov eax, dword [ebp - 4]
call fcn.00550838
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x38]
add eax, 0x80
push eax
push 1
lea edx, [ebp - 0xc]
mov ecx, 7
mov eax, dword [ebp - 4]
call fcn.00550838
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x38]
lea edx, [eax + 0x100]
lea eax, [ebp - 0x14]
mov ecx, 8
call fcn.00403218
lea eax, [ebp - 0x1c]
xor ecx, ecx
mov edx, 8
call fcn.00403818
mov edi, 8
lea esi, [ebp - 0xc]
movzx ebx, byte [ebp - 0x1c]
xor bl, byte [ebp - 0x1b]
lea edx, [ebp - 0x1c]
lea eax, [ebp - 0x1b]
mov ecx, 7
call fcn.00403218
movzx eax, bl
movzx eax, byte [eax + 0x65346c]
xor al, byte [esi]
mov byte [ebp - 0x15], al
inc esi
dec edi
jne 0x5513e1
mov edi, 8
lea esi, [ebp - 0x14]
movzx ebx, byte [ebp - 0x1c]
xor bl, byte [ebp - 0x1b]
lea edx, [ebp - 0x1c]
lea eax, [ebp - 0x1b]
mov ecx, 7
call fcn.00403218
movzx eax, bl
movzx eax, byte [eax + 0x65346c]
xor al, byte [esi]
mov byte [ebp - 0x15], al
inc esi
dec edi
jne 0x551413
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x38]
lea edx, [eax + 0x108]
lea eax, [ebp - 0x1c]
mov ecx, 8
call fcn.00403218
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x20]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x552cbc
Capabilities:
Create new key via cryptacquirecontext
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], ecx
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405658
xor eax, eax
push ebp
push 0x552e7a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, edi
call fcn.004051d8
mov dword [ebp - 0x10], 4
mov eax, dword [ebp - 4]
call fcn.00405498
push eax
lea eax, [ebp - 8]
mov ecx, 1
mov edx, dword [0x552c64]
call fcn.00406714
add esp, 4
mov eax, dword [ebp - 4]
call fcn.00405498
mov esi, eax
test esi, esi
jle 0x552d3e
mov ebx, 1
mov eax, dword [ebp - 4]
movzx eax, byte [eax + ebx - 1]
mov edx, dword [ebp - 8]
mov byte [edx + ebx - 1], al
inc ebx
dec esi
jne 0x552d2b
push 0
push 0x18
push 0
push 0
lea eax, [ebp - 0x1c]
push eax
call sub.advapi32.dll_CryptAcquireContextA
test eax, eax
jne 0x552d7c
call sub.kernel32.dll_GetLastError
cmp eax, 0x80090016
jne 0x552e49
push 8
push 0x18
push 0
push 0
lea eax, [ebp - 0x1c]
push eax
call sub.advapi32.dll_CryptAcquireContextA
test eax, eax
je 0x552e49
lea eax, [ebp - 0x18]
push eax
push 0
push 0
push 0x800c
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_CryptCreateHash
test eax, eax
je 0x552e49
push 0
mov eax, dword [ebp - 8]
call fcn.00406558
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0x18]
push eax
call sub.advapi32.dll_CryptHashData
test eax, eax
je 0x552e49
push 0
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
push 4
mov eax, dword [ebp - 0x18]
push eax
call sub.advapi32.dll_CryptGetHashParam
test eax, eax
je 0x552e49
mov eax, dword [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
mov ecx, 1
mov edx, dword [0x552c64]
call fcn.00406714
add esp, 4
push 0
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 2
mov eax, dword [ebp - 0x18]
push eax
call sub.advapi32.dll_CryptGetHashParam
test eax, eax
je 0x552e49
mov eax, dword [ebp - 0xc]
call fcn.00406558
mov esi, eax
dec esi
test esi, esi
jl 0x552e35
inc esi
xor ebx, ebx
lea eax, [ebp - 0x20]
mov edx, dword [ebp - 0xc]
movzx edx, byte [edx + ebx]
call fcn.004053c0
mov edx, dword [ebp - 0x20]
mov eax, edi
call fcn.004054a4
inc ebx
dec esi
jne 0x552e18
mov eax, dword [ebp - 0x18]
push eax
call sub.advapi32.dll_CryptDestroyHash
push 0
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_CryptReleaseContext
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x552e81
lea eax, [ebp - 0x20]
call fcn.004051d8
lea eax, [ebp - 0xc]
mov edx, dword [0x552c64]
mov ecx, 2
call fcn.00405d84
lea eax, [ebp - 4]
call fcn.004051d8
ret

Function at 0x559f14
Capabilities:
Get hostname

Disassembly:
push ebx
add esp, 0xffffffec
mov ebx, eax
mov eax, ebx
call fcn.004051d8
mov dword [esp], 0xf
push esp
lea eax, [esp + 8]
push eax
call sub.kernel32.dll_GetComputerNameA
test eax, eax
je 0x559f45
lea edx, [esp + 4]
mov eax, ebx
mov ecx, dword [esp]
call fcn.004052c8
add esp, 0x14
pop ebx
ret
Function at 0x5781e8
Capabilities:
Hash data with crc32

Disassembly:
push ebx
push esi
xor esi, esi
mov ecx, 0x663dac
mov eax, esi
mov edx, 8
mov ebx, eax
and ebx, 1
test bl, bl
je 0x57820a
shr eax, 1
xor eax, 0xedb88320
jmp 0x57820c
shr eax, 1
dec edx
jne 0x5781f8
mov dword [ecx], eax
inc esi
add ecx, 4
cmp esi, 0x100
jne 0x5781f1
mov byte [0x6641ac], 1
pop esi
pop ebx
ret

Function at 0x578228
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
cmp byte [0x6641ac], 0
jne 0x57823f
call fcn.005781e8
mov eax, edi
dec eax
test eax, eax
jl 0x578267
inc eax
xor edx, edx
movzx ecx, byte [esi + edx]
xor ecx, ebx
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x663dac]
shr ebx, 8
xor ecx, ebx
mov ebx, ecx
inc edx
dec eax
jne 0x578249
mov eax, ebx
pop edi
pop esi
pop ebx
ret
Function at 0x57ab58
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov ebx, eax
xor eax, eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebx + 0x14]
movzx edx, byte [eax + 0x461]
movzx ecx, dl
cmp ecx, 6
ja case.0x57abf2.0
jmp dword [ecx*4 + 0x57ab8b]
movzx edx, byte [eax + 0x460]
sub dl, 8
je 0x57abbd
sub dl, 8
je 0x57abcc
jmp case.0x57abf2.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x57a804
jmp case.0x57abf2.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x57a85c
jmp case.0x57abf2.0
movzx ecx, byte [eax + 0x460]
cmp ecx, 0x10
ja case.0x57abf2.0
movzx ecx, byte [ecx + 0x57abf9]
jmp dword [ecx*4 + 0x57ac0a]
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x57a908
jmp case.0x57abf2.0
cmp dl, 3
jne 0x57ac37
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x57a95c
jmp case.0x57abf2.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x57a918
jmp case.0x57abf2.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x57a9a0
jmp case.0x57abf2.0
movzx edx, byte [eax + 0x460]
sub dl, 8
je 0x57ac62
sub dl, 8
je 0x57ac6e
jmp case.0x57abf2.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x57a9cc
jmp case.0x57abf2.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x57aa38
jmp case.0x57abf2.0
movzx edx, byte [eax + 0x460]
sub dl, 8
je 0x57ac8d
sub dl, 8
je 0x57ac99
jmp case.0x57abf2.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x57aaf4
jmp case.0x57abf2.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x57ab1c
mov edx, dword [eax + 0x468]
mov ecx, dword [ebx + 0x1c]
dec ecx
imul edx, ecx
mov esi, edx
add esi, dword [eax + 0x450]
mov dword [ebp - 0xc], esi
mov esi, dword [eax + 0x454]
mov dword [ebp - 8], esi
mov esi, edx
add esi, dword [eax + 0x44c]
mov dword [ebp - 0x10], esi
mov esi, ecx
test esi, esi
jb 0x57ad3d
inc esi
mov eax, dword [ebx + 0x20]
inc eax
push eax
lea eax, [ebx + 0x4c]
push eax
mov eax, dword [ebp + 8]
push eax
movzx eax, byte [ebx + 0x48]
mov ecx, dword [ebx + eax*4 + 0x40]
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.00579d10
test eax, eax
je 0x57ad3d
mov eax, ebx
call fcn.0057ad48
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0x10]
push eax
movzx eax, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
lea edx, [eax + 1]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x14]
call dword [ebp - 0x18]
movzx eax, byte [ebx + 0x48]
xor al, 1
mov byte [ebx + 0x48], al
mov eax, dword [ebx + 0x14]
mov eax, dword [eax + 0x468]
sub dword [ebp - 0xc], eax
sub dword [ebp - 0x10], eax
mov eax, dword [ebx + 0x18]
add dword [ebp - 8], eax
dec esi
jne 0x57acd6
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x57ad48
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff8
mov ebx, eax
movzx eax, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
movzx eax, byte [eax]
dec al
je 0x57ad79
dec al
je 0x57adb4
dec al
je 0x57adf9
dec al
je 0x57ae62
jmp 0x57aeec
mov esi, dword [ebx + 0x24]
inc esi
mov edi, dword [ebx + 0x20]
sub edi, esi
jb 0x57aeec
inc edi
mov edx, esi
sub edx, dword [ebx + 0x24]
movzx ecx, byte [ebx + 0x48]
mov ecx, dword [ebx + ecx*4 + 0x40]
movzx edx, byte [ecx + edx]
movzx eax, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
add dl, byte [eax + esi]
and dl, 0xff
mov byte [eax + esi], dl
inc esi
dec edi
jne 0x57ad89
jmp 0x57aeec
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x57aeec
mov esi, 1
movzx eax, byte [ebx + 0x48]
mov edx, eax
xor dl, 1
and edx, 0x7f
mov edx, dword [ebx + edx*4 + 0x40]
movzx edx, byte [edx + esi]
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
add dl, byte [eax + esi]
and dl, 0xff
movzx eax, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
mov byte [eax + esi], dl
inc esi
dec edi
jne 0x57adc4
jmp 0x57aeec
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x57aeec
mov esi, 1
movzx eax, byte [ebx + 0x48]
xor al, 1
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
movzx eax, byte [eax + esi]
mov ecx, esi
dec ecx
mov edx, dword [ebx + 0x24]
cmp ecx, edx
jae 0x57ae28
xor ebp, ebp
jmp 0x57ae38
mov ecx, esi
sub ecx, edx
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
movzx ebp, byte [edx + ecx]
add eax, ebp
sar eax, 1
jns 0x57ae41
adc eax, 0
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
add al, byte [edx + esi]
and al, 0xff
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
mov byte [edx + esi], al
inc esi
dec edi
jne 0x57ae09
jmp 0x57aeec
xor ebp, ebp
xor eax, eax
mov dword [esp + 4], eax
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x57aeec
mov esi, 1
movzx eax, byte [ebx + 0x48]
xor al, 1
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
movzx eax, byte [eax + esi]
mov edx, esi
dec edx
cmp edx, dword [ebx + 0x24]
jb 0x57aebb
mov edx, esi
sub edx, dword [ebx + 0x24]
movzx ecx, byte [ebx + 0x48]
mov ecx, dword [ebx + ecx*4 + 0x40]
movzx ebp, byte [ecx + edx]
movzx edx, byte [ebx + 0x48]
xor dl, 1
and edx, 0x7f
mov edx, dword [ebx + edx*4 + 0x40]
mov ecx, esi
sub ecx, dword [ebx + 0x24]
movzx edx, byte [edx + ecx]
mov dword [esp + 4], edx
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
movzx edx, byte [edx + esi]
mov dword [esp], edx
movzx ecx, byte [esp + 4]
push eax
mov eax, ebp
pop edx
call fcn.00578270
add al, byte [esp]
and al, 0xff
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
mov byte [edx + esi], al
inc esi
dec edi
jne 0x57ae76
pop ecx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x581680
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x5816ae
mov eax, ebx
call fcn.00582134
cmp dword [ebx + 0x40], 0
je 0x5816a7
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x58171f
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x581711
cmp dword [ebx + 8], 0
je 0x5816d0
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x5816e2
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x581711
cmp dword [ebx + 8], 0
je 0x5816c3
cmp eax, 3
je 0x5816f5
dec eax
jne 0x5816c3
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x5816c3
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x5816c3
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x58173d
cmp dword [ebx + 0x14], 0xcc
je 0x58173d
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.00581748
pop ebx
ret

Function at 0x5935e8
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
dec ecx
js 0x593639
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x593620
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x593610
jmp 0x593639
push ebx
xor ebx, ebx
mov eax, dword [edx + ecx*4]
mov bh, al
mov bl, ah
shr eax, 0x10
shl ebx, 8
mov bl, al
mov dword [edx + ecx*4], ebx
dec ecx
jns 0x593621
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x5cc308
Capabilities:
Link many functions at runtime
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff50
mov dword [ebp - 0xb0], 0x94
lea eax, [ebp - 0xb0]
push eax
call sub.kernel32.dll_GetVersionExA
cmp dword [ebp - 0xac], 3
ja 0x5cc342
cmp dword [ebp - 0xac], 3
jne 0x5cc3ae
cmp dword [ebp - 0xa8], 0x33
jbe 0x5cc3ae
lea eax, [ebp - 8]
push eax
push 0x20019
push 0
push 0x5cc534
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x5cc52d
mov dword [ebp - 0x18], 9
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x11]
push eax
lea eax, [ebp - 0x1c]
push eax
push 0
push 0x5cc564
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x5cc52d
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey_1
cmp byte [ebp - 0x11], 0x31
jne 0x5cc52d
cmp byte [ebp - 0x10], 0
jne 0x5cc52d
jmp 0x5cc3c7
push 0
push 0x5cc564
push 0x5cc56c
call sub.kernel32.dll_GetProfileIntA
test eax, eax
je 0x5cc52d
push 0x8001
call sub.kernel32.dll_SetErrorMode
mov word [ebp - 2], ax
push 0x5cc574
call sub.kernel32.dll_LoadLibraryA
mov dword [0x664490], eax
movzx eax, word [ebp - 2]
push eax
call sub.kernel32.dll_SetErrorMode
cmp dword [0x664490], 0
jne 0x5cc454
push 0x8001
call sub.kernel32.dll_SetErrorMode
mov word [ebp - 2], ax
xor eax, eax
push ebp
push 0x5cc44d
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x5cc57c
call sub.kernel32.dll_LoadLibraryA
mov dword [0x664490], eax
cmp dword [0x664490], 0
jne 0x5cc435
call fcn.00404bdc
jmp 0x5cc52d
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5cc454
movzx eax, word [ebp - 2]
push eax
call sub.kernel32.dll_SetErrorMode
ret
mov byte [0x66448c], 1
push 0x5cc588
mov eax, dword [0x664490]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x664494], eax
push 0x5cc598
mov eax, dword [0x664490]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x664498], eax
push 0x5cc5a4
mov eax, dword [0x664490]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x66449c], eax
push 0x5cc5b0
mov eax, dword [0x664490]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x6644a0], eax
push 0x5cc5c0
mov eax, dword [0x664490]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x6644a4], eax
push 0x5cc5d0
mov eax, dword [0x664490]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x6644a8], eax
push 0x5cc5e0
mov eax, dword [0x664490]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x6644ac], eax
push 0x5cc5f0
mov eax, dword [0x664490]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x6644b0], eax
push 0x5cc600
mov eax, dword [0x664490]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x6644b4], eax
push 0x5cc60c
mov eax, dword [0x664490]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x6644b8], eax
mov esp, ebp
pop ebp
ret
Function at 0x5ce92c
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
add esp, 0xffffffc8
mov esi, ecx
mov dword [esp + 4], edx
mov dword [esp], eax
lea edx, [esp + 8]
mov eax, dword [esp]
mov ecx, 0x10
call fcn.00403218
lea edx, [esp + 0x18]
mov eax, esi
mov ecx, 0x10
call fcn.00403218
xor ecx, ecx
mov eax, dword [esp]
lea edx, [esp + 0x28]
movzx ebx, byte [esi + ecx]
xor bl, byte [eax]
mov byte [edx], bl
inc ecx
inc edx
inc eax
cmp ecx, 0x10
jne 0x5ce965
xor edx, edx
xor ecx, ecx
mov edi, 0x30
lea eax, [esp + 8]
movzx edx, byte [edx + str._.C]
xor byte [eax], dl
movzx edx, byte [eax]
inc eax
dec edi
jne 0x5ce982
lea eax, [ecx + edx]
and eax, 0xff
mov edx, eax
inc ecx
cmp ecx, 0x12
jne 0x5ce979
mov edx, dword [esp]
lea eax, [esp + 8]
mov ecx, 0x10
call fcn.00403218
mov edx, dword [esp + 4]
movzx edx, byte [edx + 0xf]
xor ecx, ecx
mov eax, dword [esp + 4]
movzx ebx, byte [esi + ecx]
xor edx, ebx
movzx edx, byte [edx + str._.C]
xor byte [eax], dl
movzx edx, byte [eax]
inc ecx
inc eax
cmp ecx, 0x10
jne 0x5ce9c1
add esp, 0x38
pop edi
pop esi
pop ebx
ret

Function at 0x5cf078
Capabilities:
Hash data with md5

Disassembly:
xor edx, edx
mov dword [eax], edx
xor edx, edx
mov dword [eax + 4], edx
mov dword [eax + 8], 0x67452301
mov dword [eax + 0xc], 0xefcdab89
mov dword [eax + 0x10], 0x98badcfe
mov dword [eax + 0x14], 0x10325476
ret

Function at 0x5cfa98
Capabilities:
Hash data with md5

Disassembly:
xor edx, edx
mov dword [eax + 0x10], edx
xor edx, edx
mov dword [eax + 0x14], edx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret

Function at 0x60a384
Capabilities:
Query service configuration

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0xc], ecx
mov ebx, edx
mov edi, eax
xor eax, eax
push ebp
push 0x60a464
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.004051d8
push 0x15
push 0
push 0
call sub.advapi32.dll_OpenSCManagerA
mov esi, eax
test esi, esi
je 0x60a433
push 5
mov eax, edi
call fcn.00405668
push eax
push esi
call sub.advapi32.dll_OpenServiceA
mov edi, eax
test edi, edi
je 0x60a42d
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push edi
call sub.advapi32.dll_QueryServiceConfigA
cmp dword [ebp - 8], 0
jbe 0x60a427
add dword [ebp - 8], 0x10
mov eax, dword [ebp - 8]
call fcn.00402fb0
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
push edi
call sub.advapi32.dll_QueryServiceConfigA
test eax, eax
je 0x60a41f
mov eax, ebx
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0xc]
call fcn.004053d0
mov eax, dword [ebp - 4]
call fcn.00402fcc
push edi
call sub.advapi32.dll_CloseServiceHandle
push esi
call sub.advapi32.dll_CloseServiceHandle
cmp dword [ebx], 0
je 0x60a44e
lea ecx, [ebp - 0xc]
mov eax, dword [ebx]
mov dl, 0x22
call fcn.0040a2b4
mov edx, dword [ebp - 0xc]
mov eax, ebx
call fcn.0040522c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x60a46b
lea eax, [ebp - 0xc]
call fcn.004051d8
ret