joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46d600
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x663a90]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x218]
push eax
mov dword [ebp - 0x21c], 0
mov dword [ebp - 0x218], 0
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
js 0x46d6e0
lea eax, [ebp - 0x214]
mov dword [ebp - 0x214], 0
push eax
push dword [ebp + 0xc]
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
js 0x46d6ca
push 0x20a
lea eax, [ebp - 0x210]
push 0
push eax
call fcn.005a2d80
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 0x214]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x46d6ae
lea eax, [ebp - 0x210]
mov ecx, esi
push eax
call fcn.004069d0
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00589cd3
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp - 0x218]
push dword [ebp - 0x214]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
mov dword [ebp - 0x214], 0
mov eax, dword [ebp - 0x218]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov dword [ebp - 0x218], 0
xor eax, eax
mov dword [esi + 0x14], 7
push eax
mov dword [esi + 0x10], 0
mov ecx, esi
push 0x6363e4
mov word [esi], ax
call fcn.00406f90
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00589cd3
mov esp, ebp
pop ebp
ret 8
Function at 0x46df80
Capabilities:
Encode data using xor
Encrypt data using blowfish
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp byte [0x6819e4], 0
jne 0x46e1c4
push 0x48
call fcn.005a65e9
add esp, 4
mov dword [0x6819d8], eax
test eax, eax
je 0x46dfd4
push 0x1000
call fcn.005a65e9
add esp, 4
mov dword [0x6819dc], eax
test eax, eax
jne 0x46dfdc
push dword [0x6819d8]
call fcn.005a65e4
add esp, 4
mov dword [0x6819d8], 0
xor al, al
mov esp, ebp
pop ebp
ret 0xc
push ebx
push esi
mov eax, 0x10
mov dword [0x6819e0], 0
sub eax, 0x632bbc
mov ebx, 0xc
push edi
mov dword [ebp - 8], eax
mov edi, 8
mov eax, 0x14
xor esi, esi
sub edi, 0x632bbc
sub ebx, 0x632bbc
sub eax, 0x632bbc
mov dword [ebp - 4], eax
nop dword [eax + eax]
mov eax, dword [0x6819d8]
lea edx, [edi + 0x632bbc]
mov ecx, dword [esi + 0x632bb8]
add edx, esi
mov dword [esi + eax], ecx
mov eax, dword [0x6819d8]
mov ecx, dword [esi + 0x632bbc]
mov dword [esi + eax + 4], ecx
mov eax, dword [0x6819d8]
mov ecx, dword [esi + 0x632bc0]
mov dword [edx + eax], ecx
lea edx, [ebx + 0x632bbc]
mov eax, dword [0x6819d8]
add edx, esi
mov ecx, dword [esi + 0x632bc4]
mov dword [edx + eax], ecx
mov eax, dword [ebp - 8]
mov ecx, dword [esi + 0x632bc8]
lea edx, [eax + 0x632bbc]
mov eax, dword [0x6819d8]
add edx, esi
mov dword [edx + eax], ecx
mov eax, dword [ebp - 4]
mov ecx, dword [esi + 0x632bcc]
lea edx, [eax + 0x632bbc]
mov eax, dword [0x6819d8]
add edx, esi
add esi, 0x18
mov dword [edx + eax], ecx
cmp esi, 0x48
jl 0x46e020
xor eax, eax
nop dword [eax]
mov esi, 0x100
nop word [eax + eax]
mov ecx, dword [0x6819dc]
mov edx, dword [eax + 0x632c00]
mov dword [eax + ecx], edx
add eax, 4
sub esi, 1
jne 0x46e0c0
cmp eax, 0x1000
jl 0x46e0b0
xor edi, edi
lea ebx, [esi + 0x24]
movzx eax, byte [esi + str.a7b863b0_61b0_4825_a7d4_d93c6a2fad6e]
mov byte [ebp - 1], al
lea eax, [esi + 1]
cdq
idiv ebx
mov ecx, dword [0x6819d8]
movzx eax, byte [edx + str.a7b863b0_61b0_4825_a7d4_d93c6a2fad6e]
mov byte [ebp - 2], al
lea eax, [esi + 2]
cdq
idiv ebx
movzx eax, byte [edx + str.a7b863b0_61b0_4825_a7d4_d93c6a2fad6e]
mov byte [ebp - 3], al
lea eax, [esi + 3]
cdq
idiv ebx
movzx eax, byte [edx + str.a7b863b0_61b0_4825_a7d4_d93c6a2fad6e]
mov byte [ebp - 4], al
mov eax, dword [ebp - 4]
xor dword [ecx + edi], eax
lea eax, [esi + 4]
cdq
add edi, 4
idiv ebx
mov esi, edx
cmp edi, 0x48
jl 0x46e0e3
mov dword [ebp - 8], 0
xor esi, esi
mov dword [ebp - 4], 0
nop dword [eax]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
call fcn.0046da90
mov ecx, dword [0x6819d8]
mov eax, dword [ebp - 4]
mov dword [esi + ecx], eax
mov eax, dword [0x6819d8]
mov ecx, dword [ebp - 8]
mov dword [esi + eax + 4], ecx
add esi, 8
cmp esi, 0x48
jl 0x46e150
xor esi, esi
nop
mov edi, 0x80
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
call fcn.0046da90
mov ecx, dword [0x6819dc]
mov eax, dword [ebp - 4]
mov dword [esi + ecx], eax
mov eax, dword [0x6819dc]
mov ecx, dword [ebp - 8]
mov dword [esi + eax + 4], ecx
add esi, 8
sub edi, 1
jne 0x46e185
cmp esi, 0x1000
jl 0x46e180
pop edi
pop esi
mov byte [0x6819e4], 1
pop ebx
mov al, 1
mov esp, ebp
pop ebp
ret 0xc
Function at 0x46e800
Capabilities:
Get session user name
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x663a90]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x100
lea eax, [ebp - 0x308]
mov dword [ebp - 0x41c], ecx
push 0
push eax
call fcn.005a2d80
add esp, 0xc
lea eax, [ebp - 0x108]
push 0x100
push 0
push eax
call fcn.005a2d80
add esp, 0xc
mov dword [ebp - 0x40c], 0x100
lea eax, [ebp - 0x40c]
push eax
lea eax, [ebp - 0x308]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
push 0x100
lea eax, [ebp - 0x208]
push 0
push eax
call fcn.005a2d80
add esp, 0xc
lea eax, [ebp - 0x408]
push 0x100
push 0
push eax
call fcn.005a2d80
add esp, 0xc
mov dword [ebp - 0x418], 0x100
lea eax, [ebp - 0x414]
mov dword [ebp - 0x410], 0x100
push eax
lea eax, [ebp - 0x410]
push eax
lea eax, [ebp - 0x408]
push eax
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x308]
push eax
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.ADVAPI32.dll_GetSidIdentifierAuthority]
push 1
push str.S__lu_
mov esi, eax
lea eax, [ebp - 0x108]
push 0x100
push eax
call fcn.0046eb40
lea ecx, [ebp - 0x108]
mov dword [ebp - 0x418], eax
add esp, 0x10
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x46e911
movzx eax, byte [esi + 5]
sub ecx, edx
push eax
mov eax, 0x100
sub eax, ecx
push 0x640e74
push eax
lea eax, [ebp - 0x108]
add eax, ecx
push eax
call fcn.0046eb40
add dword [ebp - 0x418], eax
add esp, 0x10
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.ADVAPI32.dll_GetSidSubAuthorityCount]
xor esi, esi
movzx ebx, byte [eax]
test ebx, ebx
je 0x46e99b
mov edi, dword [sym.imp.ADVAPI32.dll_GetSidSubAuthority]
nop
push esi
lea eax, [ebp - 0x208]
push eax
call edi
mov ecx, dword [ebp - 0x418]
push dword [eax]
mov eax, 0x100
sub eax, ecx
push str.__lu
push eax
lea eax, [ebp - 0x108]
add eax, ecx
push eax
call fcn.0046eb40
add dword [ebp - 0x418], eax
inc esi
add esp, 0x10
cmp esi, ebx
jl 0x46e960
push ecx
lea eax, [ebp - 0x108]
push eax
push ecx
mov ecx, dword [ebp - 0x41c]
call fcn.0046da30
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00589cd3
mov esp, ebp
pop ebp
ret
Function at 0x46eb80
Capabilities:
Delete service
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x663a90]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
test esi, esi
je 0x46ebc4
push 0xf01ff
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
test edi, edi
jne 0x46ebd8
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00589cd3
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x20]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
cmp dword [ebp - 0x1c], 1
je 0x46ec01
lea eax, [ebp - 0x20]
push eax
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push ecx
push dword [ebp - 0x1c]
push ecx
push edi
call fcn.0046ec30
push edi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
xor ecx, ebp
pop esi
call fcn.00589cd3
mov esp, ebp
pop ebp
ret 4

Function at 0x46ec30
Capabilities:
Check os version
Query service status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x13c
mov eax, dword [0x663a90]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
xorps xmm0, xmm0
push esi
push edi
mov dword [ebp - 0x20], 0
xor esi, esi
movups xmmword [ebp - 0x1c], xmm0
movq qword [ebp - 0xc], xmm0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x11c
lea eax, [ebp - 0x13c]
push esi
push eax
call fcn.005a2d80
add esp, 0xc
mov dword [ebp - 0x13c], 0x11c
lea eax, [ebp - 0x13c]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x138], 6
jae 0x46ecfb
mov edi, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
lea eax, [ebp - 0x20]
push eax
push ebx
call edi
mov eax, dword [ebp - 0x1c]
cmp eax, 1
je 0x46ecfb
mov ecx, 0x2710
cmp dword [ebp + 0x10], eax
jne 0x46ed13
cmp esi, 5
ja 0x46ed13
mov eax, 0xaaaaaaab
mul dword [ebp - 8]
shr edx, 1
cmp edx, 0x3e8
jae 0x46ecd6
mov edx, 0x3e8
jmp 0x46ecdf
cmp edx, 0x2710
cmova edx, ecx
push edx
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x20]
inc esi
push eax
push ebx
call edi
mov eax, dword [ebp - 0x1c]
mov ecx, 0x2710
cmp eax, 1
jne 0x46ecb3
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00589cd3
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00589cd3
mov esp, ebp
pop ebp
ret 0x10
Function at 0x472ac0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d1aa6
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x663a90]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 8
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.0058a1e0
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.00587c19
mov dword [esi + 4], eax
lea ecx, [edi + 8]
lea eax, [edi + 4]
mov dword [edi + 0x34], esi
mov dword [edi + 0xc], eax
add esp, 8
lea eax, [edi + 0x14]
mov dword [edi + 0x10], ecx
mov dword [edi + 0x1c], eax
lea eax, [edi + 0x18]
mov dword [edi + 0x20], eax
lea eax, [edi + 0x24]
mov dword [edi + 0x2c], eax
lea eax, [edi + 0x28]
mov dword [edi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [edi + 0x20]
mov dword [eax], 0
mov eax, dword [edi + 0x30]
mov dword [eax], 0
mov eax, dword [edi + 0xc]
mov dword [eax], 0
mov eax, dword [edi + 0x1c]
mov dword [eax], 0
mov eax, dword [edi + 0x2c]
mov dword [eax], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x475a90
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d7f53
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x663a90]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi + 8], 0xffffffff
mov dword [esi + 4], 0xffffffff
mov dword [esi + 0xc], 0
mov dword [esi + 0x20], 0x6813b4
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [ebp - 4], 0
lea ecx, [esi + 0x34]
mov dword [esi], vtable.TiXmlDocument.0
mov dword [ecx], 0x6813b4
mov byte [ebp - 4], 1
mov dword [esi + 0x40], 0xffffffff
mov dword [esi + 0x3c], 0xffffffff
push 0
push 0x639d9e
mov dword [esi + 0x38], 4
mov byte [esi + 0x44], 0
mov byte [esi + 0x2c], 0
mov dword [esi + 0x30], 0
call fcn.004769d0
mov dword [esi + 0x40], 0
mov eax, esi
mov dword [esi + 0x3c], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x475d10
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
push edi
test ebx, ebx
jne 0x475d6a
cmp byte [esi + 0x2c], bl
jne 0x475d61
mov edx, dword [str.Failed_to_open_file]
mov ecx, edx
mov byte [esi + 0x2c], 1
mov dword [esi + 0x30], 2
lea edi, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x475d40
sub ecx, edi
push ecx
push edx
lea ecx, [esi + 0x34]
call fcn.004769d0
mov dword [esi + 0x40], 0xffffffff
mov dword [esi + 0x3c], 0xffffffff
pop edi
pop esi
xor al, al
pop ebx
pop ebp
ret 8
mov edi, dword [esi + 0x18]
test edi, edi
je 0x475d80
mov ecx, edi
mov edi, dword [edi + 0x28]
push 1
mov eax, dword [ecx]
call dword [eax]
test edi, edi
jne 0x475d71
push 2
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
push 0
push ebx
mov dword [esi + 8], 0xffffffff
mov dword [esi + 4], 0xffffffff
call fcn.005b64b2
push ebx
call fcn.005b6aab
push 0
mov edi, eax
push 0
push ebx
mov dword [ebp + 8], edi
call fcn.005b64b2
add esp, 0x1c
test edi, edi
jg 0x475dec
cmp byte [esi + 0x2c], 0
jne 0x475d61
mov edx, dword [str.Error_document_empty.]
mov ecx, edx
mov byte [esi + 0x2c], 1
mov dword [esi + 0x30], 0xc
lea edi, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x475de0
jmp 0x475d47
lea eax, [edi + 1]
push eax
call fcn.0058a1a1
push ebx
mov ebx, dword [ebp + 8]
mov edi, eax
push 1
push ebx
push edi
mov byte [edi], 0
call fcn.005b6c82
add esp, 0x14
cmp eax, 1
je 0x475e44
push edi
call fcn.0058a1aa
add esp, 4
cmp byte [esi + 0x2c], 0
jne 0x475d61
mov edx, dword [str.Failed_to_open_file]
mov ecx, edx
mov byte [esi + 0x2c], 1
mov dword [esi + 0x30], 2
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x475e38
jmp 0x475d47
mov byte [edi + ebx], 0
mov eax, edi
cmp byte [edi], 0
mov ecx, edi
je 0x475e6f
mov dl, byte [eax]
mov ebx, eax
cmp dl, 0xd
jne 0x475e66
inc eax
mov byte [ecx], 0xa
cmp byte [eax], 0xa
cmovne eax, ebx
jmp 0x475e68
mov byte [ecx], dl
inc eax
inc ecx
cmp byte [eax], 0
jne 0x475e51
mov byte [ecx], 0
mov ecx, esi
mov eax, dword [esi]
push 0
push 0
push edi
call dword [eax + 8]
push edi
call fcn.0058a1aa
add esp, 4
cmp byte [esi + 0x2c], 0
sete al
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x47b750
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, edx
mov dword [ebp - 4], ecx
mov esi, dword [edi]
test esi, esi
je 0x47b7af
mov dword [edi], 0
mov edx, 0x400000
push 0
lea eax, [ebp + 8]
mov dword [ebp + 8], 0
push eax
cmp esi, 0x400000
mov eax, esi
cmova eax, edx
push eax
push ebx
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp + 8]
add ebx, ecx
add dword [edi], ecx
sub esi, ecx
test eax, eax
je 0x47b7b8
test ecx, ecx
je 0x47b7af
mov ecx, dword [ebp - 4]
mov edx, 0x400000
test esi, esi
jne 0x47b770
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x47ba00
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
xor eax, eax
push esi
push edi
nop word [eax + eax]
mov edx, eax
mov ecx, eax
and edx, 1
shr ecx, 1
dec edx
not edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
xor ecx, edx
mov edx, ecx
shr ecx, 1
and edx, 1
dec edx
not edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
xor ecx, edx
mov edx, ecx
shr ecx, 1
and edx, 1
dec edx
not edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
xor ecx, edx
mov edx, ecx
shr ecx, 1
and edx, 1
dec edx
not edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
xor ecx, edx
mov dword [eax*4 + 0x682580], ecx
inc eax
cmp eax, 0x100
jb 0x47ba10
cmp eax, 0x800
jae 0x47bae3
nop dword [eax]
mov edx, dword [eax*4 + 0x682180]
movzx ecx, dl
shr edx, 8
xor edx, dword [ecx*4 + 0x682580]
mov dword [eax*4 + 0x682580], edx
inc eax
cmp eax, 0x800
jb 0x47bac0
lea ecx, [ebp - 0x20]
mov dword [0x681a38], 0x47c790
call fcn.0047c890
test eax, eax
je 0x47bb6d
mov edi, dword [ebp - 0x10]
lea ecx, [ebp - 0x20]
mov esi, edi
shr edi, 4
shr esi, 8
and edi, 0xf00f
and esi, 0xff00f
call fcn.0047c920
sub eax, 0
je 0x47bb54
sub eax, 1
je 0x47bb43
sub eax, 1
jne 0x47bb6d
cmp esi, 6
jb 0x47bb6d
jne 0x47bb63
cmp edi, 0xf
jb 0x47bb6d
mov dword [0x681a38], 0x47c830
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp esi, 5
jb 0x47bb6d
jne 0x47bb63
cmp edi, 6
jb 0x47bb6d
cmp edi, 0xa
jmp 0x47bb61
cmp esi, 6
jb 0x47bb6d
jne 0x47bb63
cmp edi, 0x100c
je 0x47bb6d
mov dword [0x681a38], 0x47c830
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x47e4d0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0xc]
push edi
xor edi, edi
mov dword [ebp - 4], ecx
mov eax, dword [eax]
and eax, 7
cmp edx, 5
jae 0x47e4f0
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
push ebx
add edx, 0xfffffffc
or ebx, 0xffffffff
add edx, ecx
push esi
mov dword [ebp - 8], edx
nop dword [eax]
lea esi, [edi + ecx]
cmp esi, edx
jae 0x47e519
mov cl, byte [esi]
and cl, 0xfe
cmp cl, 0xe8
je 0x47e516
inc esi
cmp esi, edx
jb 0x47e507
mov ecx, dword [ebp - 4]
mov edi, esi
sub edi, ecx
mov ecx, edi
sub ecx, ebx
cmp esi, edx
jae 0x47e629
cmp ecx, 3
jbe 0x47e558
xor eax, eax
mov cl, byte [esi + 4]
mov ebx, edi
mov dword [ebp - 0x10], ebx
test cl, cl
je 0x47e596
cmp cl, 0xff
je 0x47e596
mov edx, dword [ebp - 8]
and eax, 3
add eax, eax
mov ecx, 1
or eax, 1
add edi, ecx
mov ecx, dword [ebp - 4]
jmp 0x47e500
dec ecx
shl eax, cl
and eax, 7
je 0x47e530
movzx ecx, byte [eax + 0x6363c0]
mov edx, esi
sub edx, ecx
cmp byte [eax + 0x6363b8], 0
mov cl, byte [edx + 4]
je 0x47e580
test cl, cl
je 0x47e580
cmp cl, 0xff
jne 0x47e530
mov edx, dword [ebp - 8]
and eax, 3
mov ecx, dword [ebp - 4]
add eax, eax
mov ebx, edi
or eax, 1
inc edi
jmp 0x47e500
movzx edx, cl
movzx ecx, byte [esi + 3]
shl edx, 8
or edx, ecx
movzx ecx, byte [esi + 2]
shl edx, 8
or edx, ecx
movzx ecx, byte [esi + 1]
shl edx, 8
or edx, ecx
sub edx, edi
lea ebx, [edx - 5]
test eax, eax
je 0x47e5f2
movzx edx, byte [eax + 0x6363c0]
mov ecx, 0x18
shl edx, 3
sub ecx, edx
mov dword [ebp - 0xc], edx
mov edx, ebx
shr edx, cl
test dl, dl
je 0x47e5de
cmp dl, 0xff
jne 0x47e5f2
mov ecx, 0x20
mov edx, 1
sub ecx, dword [ebp - 0xc]
shl edx, cl
dec edx
xor edx, ebx
jmp 0x47e5b4
mov edx, dword [ebp - 8]
mov ecx, ebx
shr ecx, 0x18
and cl, 1
mov byte [esi + 1], bl
dec cl
not cl
mov byte [esi + 4], cl
mov ecx, ebx
shr ecx, 0x10
mov byte [esi + 3], cl
mov ecx, ebx
mov ebx, dword [ebp - 0x10]
shr ecx, 8
mov byte [esi + 2], cl
mov ecx, 5
add edi, ecx
mov ecx, dword [ebp - 4]
jmp 0x47e500
pop esi
pop ebx
cmp ecx, 3
jbe 0x47e63e
mov ecx, dword [ebp + 0xc]
xor eax, eax
mov dword [ecx], eax
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret
dec ecx
shl eax, cl
mov ecx, dword [ebp + 0xc]
and eax, 7
mov dword [ecx], eax
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x47e980
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x663a90]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
mov dword [ebp - 0x21c], 0
mov dword [ebp - 0x218], esi
mov eax, dword [0x68212c]
test al, 1
jne 0x47e9e0
or eax, 1
mov dword [0x68212c], eax
call fcn.00402f90
mov ecx, eax
test ecx, ecx
je 0x47eadb
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
push 0x5dc2f0
mov dword [0x682130], eax
call fcn.0058a18c
add esp, 4
mov eax, dword [0x682130]
cmp dword [eax - 0xc], 0
jne 0x47eab7
lea eax, [ebp - 0x210]
mov dword [ebp - 0x210], 0
push eax
push 1
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionUninstallMasterPDF
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x214], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x47eab7
push 0x208
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.005a2d80
add esp, 0xc
mov dword [ebp - 0x214], 1
lea eax, [ebp - 0x218]
mov dword [ebp - 0x218], 0x208
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push str.DisplayVersion
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x20c]
mov dword [ebp - 0x210], 0
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x47ea96
sub ecx, edx
lea eax, [ebp - 0x20c]
sar ecx, 1
push ecx
push eax
mov ecx, 0x682130
call fcn.004034d0
mov ecx, dword [0x682130]
add ecx, 0xfffffff0
call fcn.00403880
mov ecx, dword [ebp - 4]
add eax, 0x10
mov dword [esi], eax
xor ecx, ebp
mov eax, esi
pop esi
call fcn.00589cd3
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.004037b0
int3

Function at 0x47f330
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d8290
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x663a90]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push str.MasterPDF
lea ecx, [ebp - 0x10]
call fcn.004035d0
mov dword [ebp - 4], 0
call fcn.00402f90
mov ecx, eax
test ecx, ecx
jne 0x47f382
push 0x80004005
call fcn.004037b0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 1
lea eax, [ebp - 0x14]
push dword [ebp - 0x10]
push str.SoftwareClients_s
push eax
call fcn.00407e20
mov esi, dword [ebp - 0x14]
add esp, 8
mov edx, esi
mov ecx, edi
call fcn.0047f850
add esp, 4
push dword [ebp - 0x10]
push str.SOFTWARERegisteredApplications
push edi
call dword [sym.imp.SHLWAPI.dll_SHDeleteValueW]
lea edx, [esi - 0x10]
mov byte [ebp - 4], 0
or esi, 0xffffffff
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x47f3e1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x47f400
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret