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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f830c
mov eax, dword fs:[0]
push eax
sub esp, 0x224
mov eax, dword [0x68da90]
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
cmp dword [esi + 0x10], 0
jne 0x47cff9
push 0x10
lea eax, [ebp - 0x230]
push eax
call fcn.0047d120
mov edi, eax
cmp esi, edi
je 0x47cfd4
mov eax, dword [esi + 0x14]
cmp eax, 8
jb 0x47cfad
inc eax
mov ecx, esi
push eax
push dword [esi]
call fcn.00409d50
mov dword [esi + 0x14], 7
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], 0
jb 0x47cfc5
mov eax, dword [esi]
jmp 0x47cfc7
mov eax, esi
xor ecx, ecx
mov word [eax], cx
mov ecx, esi
push edi
call fcn.00410ec0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x21c]
cmp eax, 8
jb 0x47cff9
inc eax
lea ecx, [ebp - 0x230]
push eax
push dword [ebp - 0x230]
call fcn.00409d50
cmp dword [esi + 0x28], 0
jne 0x47d075
push 2
lea eax, [ebp - 0x230]
push eax
call fcn.0047d120
mov ebx, eax
lea edi, [esi + 0x18]
cmp edi, ebx
je 0x47d050
mov eax, dword [edi + 0x14]
cmp eax, 8
jb 0x47d029
inc eax
mov ecx, edi
push eax
push dword [edi]
call fcn.00409d50
mov dword [edi + 0x14], 7
cmp dword [edi + 0x14], 8
mov dword [edi + 0x10], 0
jb 0x47d041
mov eax, dword [edi]
jmp 0x47d043
mov eax, edi
xor ecx, ecx
mov word [eax], cx
mov ecx, edi
push ebx
call fcn.00410ec0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x21c]
cmp eax, 8
jb 0x47d075
inc eax
lea ecx, [ebp - 0x230]
push eax
push dword [ebp - 0x230]
call fcn.00409d50
cmp dword [esi + 0x40], 0
jne 0x47d0ef
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.005c1b40
add esp, 0xc
lea eax, [ebp - 0x218]
push 0
push 0x1a
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push str.MicrosoftInternet_ExplorerQuick_LaunchUser_PinnedTaskBar
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
cmp word [ebp - 0x218], 0
jne 0x47d0c4
xor ecx, ecx
jmp 0x47d0df
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x47d0d0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
push eax
lea ecx, [esi + 0x30]
call fcn.004090e0
cmp dword [esi + 0x28], 0
je 0x47d0ff
cmp dword [esi + 0x10], 0
je 0x47d0ff
xor eax, eax
jmp 0x47d104
mov eax, 0x80004005
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.005a8a55
mov esp, ebp
pop ebp
ret
Function at 0x47d120
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x68da90]
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 0x47d200
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 0x47d1ea
push 0x20a
lea eax, [ebp - 0x210]
push 0
push eax
call fcn.005c1b40
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 0x214]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x47d1ce
lea eax, [ebp - 0x210]
mov ecx, esi
push eax
call fcn.00408ad0
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005a8a55
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 0x658bf4
mov word [esi], ax
call fcn.004090e0
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.005a8a55
mov esp, ebp
pop ebp
ret 8
Function at 0x47da90
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 [0x6acf14], 0
jne 0x47dcd4
push 0x48
call fcn.005c53a9
add esp, 4
mov dword [0x6acf08], eax
test eax, eax
je 0x47dae4
push 0x1000
call fcn.005c53a9
add esp, 4
mov dword [0x6acf0c], eax
test eax, eax
jne 0x47daec
push dword [0x6acf08]
call fcn.005c53a4
add esp, 4
mov dword [0x6acf08], 0
xor al, al
mov esp, ebp
pop ebp
ret 0xc
push ebx
push esi
mov eax, 0x10
mov dword [0x6acf10], 0
sub eax, 0x656254
mov ebx, 0xc
push edi
mov dword [ebp - 8], eax
mov edi, 8
mov eax, 0x14
xor esi, esi
sub edi, 0x656254
sub ebx, 0x656254
sub eax, 0x656254
mov dword [ebp - 4], eax
nop dword [eax + eax]
mov eax, dword [0x6acf08]
lea edx, [edi + 0x656254]
mov ecx, dword [esi + 0x656250]
add edx, esi
mov dword [esi + eax], ecx
mov eax, dword [0x6acf08]
mov ecx, dword [esi + 0x656254]
mov dword [esi + eax + 4], ecx
mov eax, dword [0x6acf08]
mov ecx, dword [esi + 0x656258]
mov dword [edx + eax], ecx
lea edx, [ebx + 0x656254]
mov eax, dword [0x6acf08]
add edx, esi
mov ecx, dword [esi + 0x65625c]
mov dword [edx + eax], ecx
mov eax, dword [ebp - 8]
mov ecx, dword [esi + 0x656260]
lea edx, [eax + 0x656254]
mov eax, dword [0x6acf08]
add edx, esi
mov dword [edx + eax], ecx
mov eax, dword [ebp - 4]
mov ecx, dword [esi + 0x656264]
lea edx, [eax + 0x656254]
mov eax, dword [0x6acf08]
add edx, esi
add esi, 0x18
mov dword [edx + eax], ecx
cmp esi, 0x48
jl 0x47db30
xor eax, eax
nop dword [eax]
mov esi, 0x100
nop word [eax + eax]
mov ecx, dword [0x6acf0c]
mov edx, dword [eax + 0x655250]
mov dword [eax + ecx], edx
add eax, 4
sub esi, 1
jne 0x47dbd0
cmp eax, 0x1000
jl 0x47dbc0
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 [0x6acf08]
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 0x47dbf3
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.0047d5b0
mov ecx, dword [0x6acf08]
mov eax, dword [ebp - 4]
mov dword [esi + ecx], eax
mov eax, dword [0x6acf08]
mov ecx, dword [ebp - 8]
mov dword [esi + eax + 4], ecx
add esi, 8
cmp esi, 0x48
jl 0x47dc60
xor esi, esi
nop
mov edi, 0x80
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
call fcn.0047d5b0
mov ecx, dword [0x6acf0c]
mov eax, dword [ebp - 4]
mov dword [esi + ecx], eax
mov eax, dword [0x6acf0c]
mov ecx, dword [ebp - 8]
mov dword [esi + eax + 4], ecx
add esi, 8
sub edi, 1
jne 0x47dc95
cmp esi, 0x1000
jl 0x47dc90
pop edi
pop esi
mov byte [0x6acf14], 1
pop ebx
mov al, 1
mov esp, ebp
pop ebp
ret 0xc
Function at 0x47e310
Capabilities:
Get session user name
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x68da90]
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.005c1b40
add esp, 0xc
lea eax, [ebp - 0x108]
push 0x100
push 0
push eax
call fcn.005c1b40
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.005c1b40
add esp, 0xc
lea eax, [ebp - 0x408]
push 0x100
push 0
push eax
call fcn.005c1b40
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.0047e650
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 0x47e421
movzx eax, byte [esi + 5]
sub ecx, edx
push eax
mov eax, 0x100
sub eax, ecx
push str.__lu
push eax
lea eax, [ebp - 0x108]
add eax, ecx
push eax
call fcn.0047e650
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 0x47e4ab
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 0x661dbc
push eax
lea eax, [ebp - 0x108]
add eax, ecx
push eax
call fcn.0047e650
add dword [ebp - 0x418], eax
inc esi
add esp, 0x10
cmp esi, ebx
jl 0x47e470
push ecx
lea eax, [ebp - 0x108]
push eax
push ecx
mov ecx, dword [ebp - 0x41c]
call fcn.0047d550
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005a8a55
mov esp, ebp
pop ebp
ret
Function at 0x47e690
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x68da90]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
add eax, eax
mov dword [edi], 0
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push esi
lea eax, [ebp - 8]
push eax
push 0
push edx
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x47e71b
mov eax, dword [ebp - 8]
cmp eax, 1
je 0x47e6dd
cmp eax, 2
jne 0x47e6f9
mov ecx, dword [ebp - 0xc]
test esi, esi
je 0x47e715
test ecx, ecx
je 0x47e710
test cl, 1
jne 0x47e6f9
mov eax, ecx
shr eax, 1
cmp word [esi + eax*2 - 2], 0
je 0x47e715
pop edi
mov eax, 0xd
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005a8a55
mov esp, ebp
pop ebp
ret 0xc
xor eax, eax
mov word [esi], ax
shr ecx, 1
xor eax, eax
mov dword [edi], ecx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.005a8a55
mov esp, ebp
pop ebp
ret 0xc

Function at 0x47e760
Capabilities:
Delete service
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x68da90]
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 0x47e7a4
push 0xf01ff
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
test edi, edi
jne 0x47e7b8
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.005a8a55
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 0x47e7e1
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.0047e810
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.005a8a55
mov esp, ebp
pop ebp
ret 4
Function at 0x47e810
Capabilities:
Check os version
Query service status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x13c
mov eax, dword [0x68da90]
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.005c1b40
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 0x47e8db
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 0x47e8db
mov ecx, 0x2710
cmp dword [ebp + 0x10], eax
jne 0x47e8f3
cmp esi, 5
ja 0x47e8f3
mov eax, 0xaaaaaaab
mul dword [ebp - 8]
shr edx, 1
cmp edx, 0x3e8
jae 0x47e8b6
mov edx, 0x3e8
jmp 0x47e8bf
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 0x47e893
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005a8a55
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.005a8a55
mov esp, ebp
pop ebp
ret 0x10

Function at 0x4826a0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f1046
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x68da90]
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.005a8f62
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.005a699c
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 0x485710
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f89b3
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x68da90]
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], 0x69c8ac
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], 0x69c8ac
mov byte [ebp - 4], 1
mov dword [esi + 0x40], 0xffffffff
mov dword [esi + 0x3c], 0xffffffff
push 0
push 0x659d8e
mov dword [esi + 0x38], 4
mov byte [esi + 0x44], 0
mov byte [esi + 0x2c], 0
mov dword [esi + 0x30], 0
call fcn.00486600
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 0x485990
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 0x4859ea
cmp byte [esi + 0x2c], bl
jne 0x4859e1
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 0x4859c0
sub ecx, edi
push ecx
push edx
lea ecx, [esi + 0x34]
call fcn.00486600
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 0x485a00
mov ecx, edi
mov edi, dword [edi + 0x28]
push 1
mov eax, dword [ecx]
call dword [eax]
test edi, edi
jne 0x4859f1
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.005d4c8b
push ebx
call fcn.005d5284
push 0
mov edi, eax
push 0
push ebx
mov dword [ebp + 8], edi
call fcn.005d4c8b
add esp, 0x1c
test edi, edi
jg 0x485a6c
cmp byte [esi + 0x2c], 0
jne 0x4859e1
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 0x485a60
jmp 0x4859c7
lea eax, [edi + 1]
push eax
call fcn.005a8f23
push ebx
mov ebx, dword [ebp + 8]
mov edi, eax
push 1
push ebx
push edi
mov byte [edi], 0
call fcn.005d545b
add esp, 0x14
cmp eax, 1
je 0x485ac4
push edi
call fcn.005a8f2c
add esp, 4
cmp byte [esi + 0x2c], 0
jne 0x4859e1
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 0x485ab8
jmp 0x4859c7
mov byte [edi + ebx], 0
mov eax, edi
cmp byte [edi], 0
mov ecx, edi
je 0x485aef
mov dl, byte [eax]
mov ebx, eax
cmp dl, 0xd
jne 0x485ae6
inc eax
mov byte [ecx], 0xa
cmp byte [eax], 0xa
cmovne eax, ebx
jmp 0x485ae8
mov byte [ecx], dl
inc eax
inc ecx
cmp byte [eax], 0
jne 0x485ad1
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.005a8f2c
add esp, 4
cmp byte [esi + 0x2c], 0
sete al
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x48b380
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 0x48b3df
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 0x48b3e8
test ecx, ecx
je 0x48b3df
mov ecx, dword [ebp - 4]
mov edx, 0x400000
test esi, esi
jne 0x48b3a0
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 0x48b630
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 + 0x6adcc0], ecx
inc eax
cmp eax, 0x100
jb 0x48b640
cmp eax, 0x800
jae 0x48b713
nop dword [eax]
mov edx, dword [eax*4 + 0x6ad8c0]
movzx ecx, dl
shr edx, 8
xor edx, dword [ecx*4 + 0x6adcc0]
mov dword [eax*4 + 0x6adcc0], edx
inc eax
cmp eax, 0x800
jb 0x48b6f0
lea ecx, [ebp - 0x20]
mov dword [0x6acf68], 0x48c3c0
call fcn.0048c4c0
test eax, eax
je 0x48b79d
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.0048c550
sub eax, 0
je 0x48b784
sub eax, 1
je 0x48b773
sub eax, 1
jne 0x48b79d
cmp esi, 6
jb 0x48b79d
jne 0x48b793
cmp edi, 0xf
jb 0x48b79d
mov dword [0x6acf68], 0x48c460
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp esi, 5
jb 0x48b79d
jne 0x48b793
cmp edi, 6
jb 0x48b79d
cmp edi, 0xa
jmp 0x48b791
cmp esi, 6
jb 0x48b79d
jne 0x48b793
cmp edi, 0x100c
je 0x48b79d
mov dword [0x6acf68], 0x48c460
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x48e100
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 0x48e120
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 0x48e149
mov cl, byte [esi]
and cl, 0xfe
cmp cl, 0xe8
je 0x48e146
inc esi
cmp esi, edx
jb 0x48e137
mov ecx, dword [ebp - 4]
mov edi, esi
sub edi, ecx
mov ecx, edi
sub ecx, ebx
cmp esi, edx
jae 0x48e259
cmp ecx, 3
jbe 0x48e188
xor eax, eax
mov cl, byte [esi + 4]
mov ebx, edi
mov dword [ebp - 0x10], ebx
test cl, cl
je 0x48e1c6
cmp cl, 0xff
je 0x48e1c6
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 0x48e130
dec ecx
shl eax, cl
and eax, 7
je 0x48e160
movzx ecx, byte [eax + 0x658b58]
mov edx, esi
sub edx, ecx
cmp byte [eax + 0x658b50], 0
mov cl, byte [edx + 4]
je 0x48e1b0
test cl, cl
je 0x48e1b0
cmp cl, 0xff
jne 0x48e160
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 0x48e130
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 0x48e222
movzx edx, byte [eax + 0x658b58]
mov ecx, 0x18
shl edx, 3
sub ecx, edx
mov dword [ebp - 0xc], edx
mov edx, ebx
shr edx, cl
test dl, dl
je 0x48e20e
cmp dl, 0xff
jne 0x48e222
mov ecx, 0x20
mov edx, 1
sub ecx, dword [ebp - 0xc]
shl edx, cl
dec edx
xor edx, ebx
jmp 0x48e1e4
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 0x48e130
pop esi
pop ebx
cmp ecx, 3
jbe 0x48e26e
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 0x48ea10
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x68da90]
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 [0x6ad86c]
test al, 1
jne 0x48ea70
or eax, 1
mov dword [0x6ad86c], eax
call fcn.004039e0
mov ecx, eax
test ecx, ecx
je 0x48eb6b
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
push 0x5fe790
mov dword [0x6ad870], eax
call fcn.005a8f0e
add esp, 4
mov eax, dword [0x6ad870]
cmp dword [eax - 0xc], 0
jne 0x48eb47
lea eax, [ebp - 0x210]
mov dword [ebp - 0x210], 0
push eax
push 1
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionUninstallMasterPDF_LY
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x214], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x48eb47
push 0x208
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.005c1b40
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 0x48eb26
sub ecx, edx
lea eax, [ebp - 0x20c]
sar ecx, 1
push ecx
push eax
mov ecx, 0x6ad870
call fcn.00403f20
mov ecx, dword [0x6ad870]
add ecx, 0xfffffff0
call fcn.004042d0
mov ecx, dword [ebp - 4]
add eax, 0x10
mov dword [esi], eax
xor ecx, ebp
mov eax, esi
pop esi
call fcn.005a8a55
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00404200
int3