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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push edi
mov edi, edx
mov ebx, ecx
lea eax, [edi + 2]
test eax, eax
js 0x4bb1d4
push 3
cdq
pop ecx
idiv ecx
cmp eax, 0x40000000
jge 0x4bb1d4
mov edx, dword [ebp + 0xc]
shl eax, 2
cmp dword [edx], eax
jl 0x4bb1d4
push esi
mov esi, dword [ebp + 8]
cmp edi, 2
jle 0x4bb161
lea eax, [edi - 3]
xor edx, edx
div ecx
push 3
lea edx, [eax + 1]
imul ecx, edx, 0xfffffffd
add edi, ecx
mov dword [ebp - 4], edi
pop edi
movzx ecx, byte [ebx]
shr ecx, 2
mov al, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi], al
movzx ecx, byte [ebx]
movzx eax, byte [ebx + 1]
and ecx, edi
shr eax, 4
add ecx, ecx
mov al, byte [eax + ecx*8 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi + 1], al
movzx ecx, byte [ebx + 1]
movzx eax, byte [ebx + 2]
and ecx, 0xf
shr eax, 6
mov al, byte [eax + ecx*4 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi + 2], al
movzx eax, byte [ebx + 2]
add ebx, edi
and eax, 0x3f
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi + 3], al
add esi, 4
sub edx, 1
jne 0x4bb103
mov edi, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
test edi, edi
je 0x4bb1c5
movzx eax, byte [ebx]
shr eax, 2
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi], al
lea eax, [esi + 2]
movzx ecx, byte [ebx]
and ecx, 3
mov dword [ebp - 4], eax
shl ecx, 4
cmp edi, 1
jle 0x4bb1b1
movzx eax, byte [ebx + 1]
shr eax, 4
mov al, byte [eax + ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi + 1], al
movzx eax, byte [ebx + 1]
mov esi, dword [ebp - 4]
and eax, 0xf
mov al, byte [eax*4 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi], al
mov byte [esi + 1], 0x3d
jmp 0x4bb1c2
mov al, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi + 1], al
mov esi, dword [ebp - 4]
mov word [esi], 0x3d3d
add esi, 2
mov eax, esi
sub eax, dword [ebp + 8]
mov dword [edx], eax
xor eax, eax
mov byte [esi], 0
pop esi
jmp 0x4bb1d7
or eax, 0xffffffff
pop edi
pop ebx
leave
ret
Function at 0x4bbef2
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
xor edx, edx
mov esi, edx
test edi, edi
jle 0x4bbeea
movzx ecx, byte [esi + ebx]
movzx eax, dl
xor ecx, eax
shr edx, 8
xor edx, dword [ecx*4 + 0x5f5f80]
inc esi
cmp esi, edi
jl 0x4bbed2
pop edi
not edx
pop esi
mov eax, edx
pop ebx
ret
mov edx, ecx
push esi
lea esi, [edx + 2]
movzx eax, word [edx]
add edx, 2
test ax, ax
jne 0x4bbef8
sub edx, esi
sar edx, 1
add edx, edx
pop esi
jmp 0x4bbec3
Function at 0x4bbf0f
Capabilities:
Encrypt data using rc6

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x62a3b4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, edx
mov dword [ebp - 0x114], ecx
mov edx, dword [ebp + 8]
push edi
xor edi, edi
mov dword [ecx], 0xc
lea eax, [esi - 8]
mov dword [ebp - 0x110], esi
mov ebx, edi
mov ecx, edi
test eax, eax
js 0x4bbfc1
mov eax, esi
shr eax, 3
mov dword [ebp - 0x10c], eax
mov esi, eax
shl eax, 3
mov dword [ebp - 0x108], eax
movzx eax, byte [edx + 1]
movzx ecx, byte [edx]
shl eax, 8
or ecx, eax
movzx eax, byte [edx + 2]
shl eax, 0x10
or ecx, eax
movzx eax, byte [edx + 3]
shl eax, 0x18
or ecx, eax
movzx eax, byte [edx + 5]
mov dword [ebp + ebx*4 - 0x104], ecx
movzx ecx, byte [edx + 4]
shl eax, 8
or ecx, eax
movzx eax, byte [edx + 6]
shl eax, 0x10
or ecx, eax
movzx eax, byte [edx + 7]
shl eax, 0x18
add edx, 8
or ecx, eax
mov dword [ebp + ebx*4 - 0x100], ecx
add ebx, 2
sub esi, 1
jne 0x4bbf5f
mov esi, dword [ebp - 0x110]
mov ecx, dword [ebp - 0x108]
mov eax, esi
sub eax, ecx
je 0x4bc031
mov eax, esi
mov ecx, edi
and eax, 7
mov esi, edi
add edx, eax
dec eax
cmp eax, 7
ja case.default.0x4bbfd8
jmp dword [eax*4 + 0x4bc107]
dec edx
movzx ecx, byte [edx]
shl ecx, 0x18
dec edx
movzx eax, byte [edx]
shl eax, 0x10
or ecx, eax
dec edx
movzx eax, byte [edx]
shl eax, 8
or ecx, eax
dec edx
movzx eax, byte [edx]
or ecx, eax
dec edx
movzx esi, byte [edx]
shl esi, 0x18
dec edx
movzx eax, byte [edx]
shl eax, 0x10
or esi, eax
dec edx
movzx eax, byte [edx]
shl eax, 8
or esi, eax
movzx eax, byte [edx - 1]
or esi, eax
mov dword [ebp + ebx*4 - 0x104], esi
mov esi, dword [ebp - 0x110]
mov dword [ebp + ebx*4 - 0x100], ecx
mov ebx, dword [ebp - 0x114]
lea eax, [esi + 3]
cdq
xor ecx, ecx
and edx, 3
add edx, eax
push 0x1a
sar edx, 2
inc ecx
mov dword [ebx + 4], 0xb7e15163
pop esi
mov eax, dword [ebx + ecx*4]
sub eax, 0x61c88647
mov dword [ebx + ecx*4 + 4], eax
inc ecx
cmp ecx, esi
jl 0x4bc050
cmp edx, esi
mov dword [ebp - 0x10c], edi
mov eax, edx
mov dword [ebp - 0x108], edi
cmovl eax, esi
mov ecx, edi
imul esi, eax, 3
mov dword [ebp - 0x110], ecx
test esi, esi
jle 0x4bc0f7
mov eax, dword [ebx + ecx*4 + 4]
add eax, dword [ebp - 0x10c]
add eax, dword [ebp - 0x108]
rol eax, 3
mov dword [ebx + ecx*4 + 4], eax
mov ecx, eax
add ecx, dword [ebp - 0x10c]
mov dword [ebp - 0x108], eax
and ecx, 0x1f
mov eax, dword [ebp + edi*4 - 0x104]
add eax, dword [ebp - 0x10c]
add eax, dword [ebp - 0x108]
rol eax, cl
lea ecx, [edi + 1]
mov dword [ebp + edi*4 - 0x104], eax
xor edi, edi
mov dword [ebp - 0x10c], eax
mov eax, dword [ebp - 0x110]
inc eax
cmp eax, 0x1a
cmovl edi, eax
mov dword [ebp - 0x110], edi
xor edi, edi
cmp ecx, edx
cmovl edi, ecx
mov ecx, dword [ebp - 0x110]
sub esi, 1
jne 0x4bc083
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00542357
leave
ret
Function at 0x4bc3d2
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x62a3b4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov edx, dword [edx]
push ebx
push esi
mov esi, dword [eax]
mov ebx, ecx
push edi
lea edi, [ebp - 0x14]
sub edx, esi
push 0x10
sub edi, esi
pop ecx
mov al, byte [edx + esi]
xor al, byte [esi]
mov byte [edi + esi], al
inc esi
sub ecx, 1
jne 0x4bc3f8
mov edi, dword [ebx]
xor eax, eax
xor esi, esi
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov ecx, esi
call fcn.004bc39e
and eax, reloc.WS2_32.dll_ntohs
jns 0x4bc423
dec eax
or eax, 0xfffffff0
inc eax
mov cl, byte [ebp + eax - 0x14]
mov eax, dword [ebx]
xor cl, byte [ebp + esi - 0x14]
mov byte [esi + eax], cl
inc esi
cmp esi, 0x10
jl 0x4bc410
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00542357
leave
ret

Function at 0x4bd7e0
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
cmp dword [eax], 0
je 0x4bd83f
push 0x5ffb14
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x4bd80c
mov eax, 1
jmp 0x4bd85d
push str.RegDeleteKeyTransactedW
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4bd83d
push 0
mov edx, dword [ebp - 4]
mov eax, dword [edx]
push eax
push 0
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [ebp - 0xc]
jmp 0x4bd85d
jmp 0x4bd858
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
je 0x4bd858
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
jmp 0x4bd85d
mov eax, 1
mov esp, ebp
pop ebp
ret 8
Function at 0x4f4e81
Capabilities:
Copy file
Delete file
Get file size
Read file on windows

Disassembly:
push 0x38
mov eax, 0x5c8904
call fcn.00542a1f
mov edi, ecx
xor dl, dl
lea ecx, [ebp - 0x40]
xor ebx, ebx
call fcn.004f50a9
push ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x40]
cmp dword [ebp - 0x2c], 8
push ebx
cmovae eax, dword [ebp - 0x40]
xor ecx, ecx
push 3
push ebx
inc ecx
push ecx
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4f4f50
xor eax, eax
lea ecx, [ebp - 0x28]
lea edx, [eax + 1]
call fcn.004f50a9
lea ecx, [ebp - 0x40]
call fcn.004f587e
test al, al
jne 0x4f4f23
lea ecx, [ebp - 0x28]
call fcn.004f587e
test al, al
je 0x4f4f23
cmp dword [ebp - 0x2c], 8
lea ecx, [ebp - 0x40]
push ebx
cmovae ecx, dword [ebp - 0x40]
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
push ecx
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x4f4f23
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push ebx
cmovae eax, dword [ebp - 0x28]
push ebx
push 3
push ebx
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
lea ecx, [ebp - 0x28]
mov esi, eax
call fcn.00403f80
cmp esi, 0xffffffff
je 0x4f4f87
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0x10
jb 0x4f4f80
push ebx
lea eax, [ebp - 0x44]
mov dword [ebp - 0x44], ebx
push eax
push 0x10
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4f4f80
cmp dword [ebp - 0x44], 0x10
push 1
movzx ebx, bl
pop ecx
cmove ebx, ecx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x40]
call fcn.00403f80
mov al, bl
call fcn.005429ce
ret

Function at 0x4f4f97
Capabilities:
Write file on windows

Disassembly:
push 0x38
mov eax, 0x5c8938
call fcn.00542a1f
mov edi, ecx
xor dl, dl
lea ecx, [ebp - 0x40]
xor ebx, ebx
call fcn.004f50a9
push ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x40]
cmp dword [ebp - 0x2c], 8
push ebx
cmovae eax, dword [ebp - 0x40]
xor ecx, ecx
push 2
push ebx
inc ecx
push ecx
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4f5015
xor eax, eax
lea ecx, [ebp - 0x28]
lea edx, [eax + 1]
call fcn.004f50a9
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push ebx
cmovae eax, dword [ebp - 0x28]
push ebx
push 2
push ebx
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
lea ecx, [ebp - 0x28]
mov esi, eax
call fcn.00403f80
cmp esi, 0xffffffff
je 0x4f503c
push ebx
lea eax, [ebp - 0x44]
push eax
push 0x10
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4f5035
cmp dword [ebp - 0x44], 0x10
push 1
movzx ebx, bl
pop ecx
cmove ebx, ecx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x40]
call fcn.00403f80
mov al, bl
call fcn.005429ce
ret
Function at 0x4f50a9
Capabilities:
Get common file path
Get startup folder

Disassembly:
push 0x234
mov eax, 0x5c8991
call fcn.00542a1f
mov bl, dl
mov esi, ecx
mov dword [ebp - 0x234], esi
mov dword [ebp - 0x240], esi
xor ecx, ecx
mov dword [ebp - 0x23c], ecx
xor eax, eax
mov dword [esi], ecx
mov dword [esi + 0x10], ecx
mov dword [esi + 0x14], 7
mov word [esi], ax
push 0x208
xor edi, edi
mov dword [ebp - 4], ecx
push ecx
lea eax, [ebp - 0x218]
inc edi
push eax
mov dword [ebp - 0x23c], edi
call fcn.00548bf0
add esp, 0xc
test bl, bl
push edi
push 0x23
pop eax
push 0x1a
pop ecx
cmovne eax, ecx
push eax
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x4f51f8
and dword [ebp - 0x230], 0
lea ecx, [ebp - 0x230]
and dword [ebp - 0x220], 0
xor eax, eax
mov word [ebp - 0x230], ax
lea eax, [ebp - 0x218]
push eax
mov dword [ebp - 0x21c], 7
call fcn.00409240
lea eax, [ebp - 0x230]
mov dword [ebp - 4], edi
push eax
mov ecx, esi
call fcn.00447068
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x21c]
cmp eax, 8
jb 0x4f51c3
mov ecx, dword [ebp - 0x230]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x238], eax
mov dword [ebp - 0x234], ecx
cmp eax, 0x1000
jb 0x4f51ba
lea eax, [ebp - 0x238]
push eax
lea eax, [ebp - 0x234]
push eax
call fcn.00403fef
mov eax, dword [ebp - 0x238]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x234]
push eax
push ecx
call fcn.00541c01
pop ecx
pop ecx
mov ecx, esi
test bl, bl
je 0x4f51d0
push str.TencentDeskUpdate
jmp 0x4f51d5
push str.TencentDesktop
call fcn.00409b6d
mov ecx, esi
call fcn.004f5200
test al, al
jne 0x4f51ec
mov ecx, esi
call fcn.004f52ed
push str.Global.db
mov ecx, esi
call fcn.00409b6d
mov eax, esi
call fcn.005429ce
ret
Function at 0x4f775f
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x62a3b4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
xor eax, eax
push 3
pop esi
inc eax
mov dword [ebp - 0x10c], 0x104
mov dword [ebp - 0x110], eax
mov ebx, ecx
lea eax, [ebp - 0x11c]
xor ecx, ecx
push eax
push 0x20019
push ecx
push str.SystemCurrentControlSetControlNetwork4D36E972_E325_11CE_BFC1_08002BE10318
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x11c], ecx
mov dword [ebp - 0x118], ecx
mov dword [ebp - 0x114], ecx
call edi
test eax, eax
jne 0x4f790d
push ebx
push str._sConnection
lea eax, [ebp - 0x108]
push 0x103
push eax
call fcn.004f7d7c
add esp, 0x10
lea eax, [ebp - 0x118]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x108]
push eax
push dword [ebp - 0x11c]
call edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x4f7905
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push 4
pop eax
mov dword [ebp - 0x110], eax
mov dword [ebp - 0x10c], eax
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x110]
push eax
push 0
push str.MediaSubType
push dword [ebp - 0x118]
call ebx
test eax, eax
jne 0x4f78fd
push 0x104
push eax
lea eax, [ebp - 0x108]
mov dword [ebp - 0x110], 1
push eax
mov dword [ebp - 0x10c], 0x103
call fcn.00548bf0
add esp, 0xc
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x110]
push eax
push 0
push str.PnpInstanceID
push dword [ebp - 0x118]
call ebx
test eax, eax
jne 0x4f78fd
mov eax, dword [ebp - 0x114]
xor ebx, ebx
inc ebx
cmp eax, ebx
jne 0x4f78f7
push esi
lea eax, [ebp - 0x108]
push 0x6099d8
push eax
call fcn.00579cb0
add esp, 0xc
test eax, eax
jne 0x4f78c9
xor esi, esi
jmp 0x4f78fd
mov eax, dword [ebp - 0x114]
cmp eax, ebx
jne 0x4f78f7
push esi
lea eax, [ebp - 0x108]
push 0x6099d8
push eax
call fcn.00579cb0
add esp, 0xc
test eax, eax
je 0x4f78f1
push 2
pop esi
jmp 0x4f78fd
mov eax, dword [ebp - 0x114]
cmp eax, 2
cmove esi, ebx
push dword [ebp - 0x118]
call edi
push dword [ebp - 0x11c]
call edi
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00542357
leave
ret
Function at 0x4f7b65
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2aa0
call fcn.00542080
mov eax, dword [0x62a3b4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, 0x208
lea eax, [ebp - 0x20c]
push esi
xor ebx, ebx
mov edi, ecx
push ebx
push eax
call fcn.00548bf0
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x4f7bb4
sub ecx, edx
sar ecx, 1
test ecx, ecx
jle 0x4f7bf5
push 0x5c
pop eax
cmp ax, word [ebp + ecx*2 - 0x20e]
je 0x4f7bf5
mov word [ebp + ecx*2 - 0x20c], ax
lea ecx, [ecx*2 + 2]
cmp ecx, esi
jae 0x4f7d4e
xor eax, eax
mov word [ebp + ecx - 0x20c], ax
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x4f7bfe
sub ecx, edx
mov edx, 0x104
sar ecx, 1
mov eax, edx
sub eax, ecx
push eax
push str.iphlpapi.dll
push edx
lea eax, [ebp - 0x20c]
push eax
call fcn.005819a5
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x2aa0], eax
test eax, eax
jne 0x4f7c4a
xor al, al
jmp 0x4f7d3f
push str.GetAdaptersInfo
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4f7d16
lea ecx, [ebp - 0x2a9c]
mov dword [ebp - 0x2a9c], 0x2880
push ecx
lea ecx, [ebp - 0x2a8c]
push ecx
call eax
test eax, eax
jne 0x4f7d16
push 3
lea esi, [ebp - 0x2a8c]
pop ebx
lea ecx, [esi + 8]
call fcn.004f775f
mov dword [ebp - 0x2a98], eax
mov ecx, edi
xor eax, eax
mov dword [ebp - 0x2a94], eax
mov word [ebp - 0x2a90], ax
lea eax, [ebp - 0x2a94]
push eax
call fcn.004f772a
test al, al
jne 0x4f7ccd
cmp dword [esi + 0x1a0], 6
jne 0x4f7d0a
mov ecx, dword [ebp - 0x2a98]
cmp ebx, ecx
jle 0x4f7d0a
jmp 0x4f7cd3
mov ecx, dword [ebp - 0x2a98]
mov al, byte [esi + 0x194]
mov ebx, ecx
mov byte [edi], al
mov al, byte [esi + 0x195]
mov byte [edi + 1], al
mov al, byte [esi + 0x196]
mov byte [edi + 2], al
mov al, byte [esi + 0x197]
mov byte [edi + 3], al
mov al, byte [esi + 0x198]
mov byte [edi + 4], al
mov al, byte [esi + 0x199]
mov byte [edi + 5], al
mov esi, dword [esi]
test esi, esi
jne 0x4f7c89
xor ebx, ebx
push dword [ebp - 0x2aa0]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x2a94]
mov dword [ebp - 0x2a94], ebx
push eax
mov ecx, edi
mov word [ebp - 0x2a90], bx
call fcn.004f772a
xor al, 1
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00542357
leave
ret
call fcn.00542649
int3
Function at 0x4f8c10
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
mov eax, dword [0x62a3b4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor ebx, ebx
call fcn.00463137
cmp eax, 5
jle 0x4f8cad
push 0x1d
pop ecx
mov esi, str.SOFTWAREMicrosoftWindowsCurrentVersionPoliciesSystem_
lea edi, [ebp - 0x80]
rep movsd dword es:[edi], dword [esi]
push 4
pop eax
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0x88], eax
lea eax, [ebp - 0x84]
push eax
push 0x20019
push ebx
lea eax, [ebp - 0x80]
movsw word es:[edi], word [esi]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4f8cad
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x90]
push eax
lea eax, [ebp - 0x8c]
push eax
push ebx
push str.EnableLUA
push dword [ebp - 0x84]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [ebp - 0x90], 1
push dword [ebp - 0x84]
sete bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00542357
leave
ret
Function at 0x4fa165
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ecx]
lea edx, [ebp - 0x18]
push ebx
push edx
call dword [eax + 0x10]
cmp dword [ebp - 8], 0
je 0x4fa195
cmp dword [ebp - 4], 8
lea eax, [ebp - 0x18]
cmovae eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4fa195
mov bl, 1
jmp 0x4fa197
xor bl, bl
lea ecx, [ebp - 0x18]
call fcn.00403f80
mov al, bl
pop ebx
leave
ret

Function at 0x4fa1a9
Capabilities:
Check if file exists
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [ecx]
lea edx, [ebp - 0x38]
push ebx
push esi
push edi
push edx
call dword [eax + 0x10]
cmp dword [ebp - 0x28], 0
je 0x4fa2fd
cmp dword [ebp - 0x24], 8
lea eax, [ebp - 0x38]
cmovae eax, dword [ebp - 0x38]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4fa2fd
cmp dword [ebp - 0x24], 8
lea eax, [ebp - 0x38]
cmovae eax, dword [ebp - 0x38]
xor ebx, ebx
push ebx
push ebx
push 3
push ebx
push ebx
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4fa219
mov edi, dword [ebp + 8]
mov ecx, edi
push 0x5ff3b8
call fcn.0044114c
jmp 0x4fa2ea
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4fa23c
mov edi, dword [ebp + 8]
mov ecx, edi
push 0x5ff3b8
call fcn.0044114c
jmp 0x4fa2e6
push ebx
lea eax, [edi + 1]
mov dword [ebp - 0x20], ebx
push eax
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], 0xf
call fcn.00444b19
cmp dword [ebp - 0xc], 0x10
lea ecx, [ebp - 4]
push ebx
push ecx
lea eax, [ebp - 0x20]
mov dword [ebp - 4], ebx
cmovae eax, dword [ebp - 0x20]
push edi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4fa293
cmp edi, dword [ebp - 4]
jne 0x4fa293
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x20]
push eax
mov ecx, edi
mov dword [edi], ebx
mov dword [edi + 0x10], ebx
mov dword [edi + 0x14], ebx
call fcn.004410c0
jmp 0x4fa2a2
mov edi, dword [ebp + 8]
mov ecx, edi
push 0x5ff3b8
call fcn.0044114c
mov eax, dword [ebp - 0xc]
cmp eax, 0x10
jb 0x4fa2d9
mov ecx, dword [ebp - 0x20]
inc eax
mov dword [ebp - 8], ecx
mov dword [ebp + 8], eax
cmp eax, 0x1000
jb 0x4fa2d0
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 8]
push eax
call fcn.00403fef
mov eax, dword [ebp + 8]
pop ecx
pop ecx
mov ecx, dword [ebp - 8]
push eax
push ecx
call fcn.00541c01
pop ecx
pop ecx
mov byte [ebp - 0x20], bl
mov dword [ebp - 0xc], 0xf
mov dword [ebp - 0x10], ebx
test esi, esi
je 0x4fa2f1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x38]
call fcn.00403f80
mov eax, edi
jmp 0x4fa315
mov ecx, dword [ebp + 8]
push 0x5ff3b8
call fcn.0044114c
lea ecx, [ebp - 0x38]
call fcn.00403f80
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x4fa937
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x830
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, esi
push edi
cmp dword [esi + 0x14], 8
jb 0x4fa950
mov eax, dword [esi]
push 0x5d019c
push eax
call dword [sym.imp.SHLWAPI.dll_PathMatchSpecW]
test eax, eax
je 0x4faacf
mov ebx, dword [ebp + 0x14]
xor edi, edi
cmp dword [ebx], edi
je 0x4faacf
push 0x800
lea eax, [ebp - 0x830]
push edi
push eax
call fcn.00548bf0
add esp, 0xc
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x4fa990
mov eax, dword [esi]
push eax
push 0x400
lea eax, [ebp - 0x830]
push eax
push edi
push 0x5ff8c0
push str.InternetShortcut
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp word [ebp - 0x830], di
je 0x4faacf
push 0x14
call fcn.00415ffa
pop ecx
test eax, eax
je 0x4fa9d0
mov ecx, eax
call fcn.0043cccc
mov edi, eax
lea eax, [ebp - 0x830]
push eax
lea ecx, [ebp - 0x18]
call fcn.0040921d
push 0x5cffb4
lea ecx, [ebp - 0x30]
call fcn.0040921d
lea eax, [ebp - 0x18]
push eax
call fcn.0043d062
pop ecx
push eax
lea eax, [ebp - 0x30]
mov ecx, edi
push eax
call fcn.0043d6e7
lea ecx, [ebp - 0x30]
call fcn.00403f80
lea ecx, [ebp - 0x18]
call fcn.00403f80
push str.title
lea ecx, [ebp - 0x18]
call fcn.0040921d
sub esp, 0x18
xor eax, eax
mov ecx, esp
push esi
mov dword [ecx], eax
mov dword [ecx + 0x10], eax
mov dword [ecx + 0x14], eax
call fcn.00408766
lea eax, [ebp - 0x30]
push eax
call fcn.005af7b0
push eax
call fcn.0043d062
add esp, 0x20
mov ecx, edi
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.0043d6e7
lea ecx, [ebp - 0x30]
call fcn.00403f80
lea ecx, [ebp - 0x18]
call fcn.00403f80
mov esi, dword [ebp + 0xc]
cmp dword [esi + 0x10], 0
je 0x4faa93
push str.path
lea ecx, [ebp - 0x18]
call fcn.0040921d
push esi
call fcn.0043d062
pop ecx
push eax
lea eax, [ebp - 0x18]
mov ecx, edi
push eax
call fcn.0043d6e7
lea ecx, [ebp - 0x18]
call fcn.00403f80
push 0x5cffc8
lea ecx, [ebp - 0x18]
call fcn.0040921d
push dword [ebp + 0x10]
call fcn.0043d062
pop ecx
push eax
lea eax, [ebp - 0x18]
mov ecx, edi
push eax
call fcn.0043d6e7
lea ecx, [ebp - 0x18]
call fcn.00403f80
mov ecx, dword [ebx]
push edi
mov eax, dword [ecx + 0x10]
sub eax, dword [ecx + 0xc]
sar eax, 2
push eax
call fcn.0043e0c8
pop edi
pop esi
pop ebx
leave
ret 0x10