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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x7e500c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
lea edx, [ebp - 0x214]
lea ecx, [ebp - 0x218]
call fcn.005c9eb0
cmp dword [ebp - 0x214], 2
jne 0x5cb6b6
mov ecx, esi
call fcn.005cb4a0
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00650ddc
mov esp, ebp
pop ebp
ret
push 0
push 0x2c
lea eax, [ebp - 0x210]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
jne 0x5cb6de
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00650ddc
mov esp, ebp
pop ebp
ret
push str.Adobe
lea eax, [ebp - 0x210]
push 0x104
push eax
call fcn.006808c8
lea ecx, [ebp - 0x210]
add esp, 0xc
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x5cb700
sub ecx, edx
lea eax, [ebp - 0x210]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.004271d0
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.00650ddc
mov esp, ebp
pop ebp
ret

Function at 0x5cb730
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x7e500c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0
push 0x1c
lea eax, [ebp - 0x20c]
mov esi, ecx
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
jne 0x5cb76e
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00650ddc
mov esp, ebp
pop ebp
ret
push str.Adobe
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.006808c8
lea edx, [ebp - 0x20c]
add esp, 0xc
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x5cb790
sub edx, ecx
lea eax, [ebp - 0x20c]
sar edx, 1
mov ecx, esi
push edx
push eax
call fcn.004271d0
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.00650ddc
mov esp, ebp
pop ebp
ret
Function at 0x5cc6b0
Capabilities:
Check if file exists
Create directory

Disassembly:
push esi
mov esi, ecx
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x5cc6bd
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ecx, dword [esi + 0x14]
test eax, eax
je 0x5cc6e0
cmp ecx, 8
jb 0x5cc6d2
mov esi, dword [esi]
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
pop esi
setne al
ret
cmp ecx, 8
jb 0x5cc6e7
mov esi, dword [esi]
push edi
push 0
push esi
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
mov edi, eax
test edi, edi
je 0x5cc764
mov esi, dword [0x8076a4]
test esi, esi
je 0x5cc734
push edi
push str.SHCreateDirectoryEx_failed._Error:__d
push 0x71a27c
push 0x71a27c
push str.FileUtils
push str.OOBEUtils
push 0x32
mov ecx, esi
call dword [0x707770]
call esi
add esp, 0x1c
test edi, edi
sete al
pop edi
pop esi
ret
mov eax, dword [0x8076a8]
test eax, eax
je 0x5cc762
mov esi, dword [eax]
push edi
push str.SHCreateDirectoryEx_failed._Error:__d
push str.FileUtils
mov esi, dword [esi + 0x34]
mov ecx, esi
push 0x71a27c
push 0x32
push eax
call dword [0x707770]
call esi
add esp, 0x18
test edi, edi
pop edi
sete al
pop esi
ret
Function at 0x5cd7f0
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebx
push edi
mov edi, ecx
mov bh, dl
mov eax, edi
cmp dword [edi + 0x14], 8
jb 0x5cd800
mov eax, dword [edi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x5cd9b5
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x5cd819
mov eax, dword [edi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x5cd82a
mov eax, dword [edi]
push esi
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
cmp eax, 1
sete bl
je 0x5cd917
test bh, bh
je 0x5cd917
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 5
jne 0x5cd917
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x5cd85f
mov eax, dword [edi]
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
mov edx, eax
test dl, 1
je 0x5cd917
mov esi, dword [0x8076a4]
test esi, esi
je 0x5cd8b1
cmp dword [edi + 0x14], 8
mov ecx, edi
jb 0x5cd885
mov ecx, dword [edi]
push edx
push ecx
push str.File__s_is_with_read_only._Its_attribute_is:__d._UnSetting_its_read_only_attr_and_retry_deleting
push 0x71a27c
push 0x71a27c
push str.FileUtils
push str.OOBEUtils
push 0x14
mov ecx, esi
call dword [0x707770]
call esi
add esp, 0x20
jmp 0x5cd8ea
mov eax, dword [0x8076a8]
test eax, eax
je 0x5cd8ea
cmp dword [edi + 0x14], 8
mov ecx, edi
jb 0x5cd8c4
mov ecx, dword [edi]
mov esi, dword [eax]
push edx
push ecx
push str.File__s_is_with_read_only._Its_attribute_is:__d._UnSetting_its_read_only_attr_and_retry_deleting
mov esi, dword [esi + 0x34]
mov ecx, esi
push str.FileUtils
push 0x71a27c
push 0x14
push eax
call dword [0x707770]
call esi
add esp, 0x1c
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x5cd8f4
mov eax, dword [edi]
push 0x80
push eax
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesW]
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x5cd90a
mov eax, dword [edi]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
cmp eax, 1
sete bl
test bl, bl
jne 0x5cd9af
cmp dword [0x8076a4], 0
je 0x5cd96c
cmp dword [edi + 0x14], 8
jb 0x5cd930
mov edi, dword [edi]
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov esi, dword [0x8076a4]
mov ecx, esi
push eax
push edi
push str.Failed_to_delete_file:__s_LastError:_d
push 0x71a27c
push 0x71a27c
push str.FileUtils
push str.OOBEUtils
push 0x32
call dword [0x707770]
call esi
add esp, 0x20
mov al, bl
pop esi
pop edi
pop ebx
ret
mov esi, dword [0x8076a8]
test esi, esi
je 0x5cd9af
cmp dword [edi + 0x14], 8
jb 0x5cd97e
mov edi, dword [edi]
mov esi, dword [esi]
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov esi, dword [esi + 0x34]
mov ecx, esi
push eax
push edi
push str.Failed_to_delete_file:__s_LastError:_d
push str.FileUtils
push 0x71a27c
push 0x32
push dword [0x8076a8]
call dword [0x707770]
call esi
add esp, 0x1c
pop esi
pop edi
mov al, bl
pop ebx
ret
pop edi
mov al, 1
pop ebx
ret
Function at 0x5cd9c0
Capabilities:
Check if file exists
Copy file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6acf08
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x7e500c]
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 edi, edx
mov esi, ecx
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x5cd9f9
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x5cda71
mov esi, dword [0x8076a4]
test esi, esi
je 0x5cda3d
push str.Source_file_does_not_exist_in_CopyFileFromSourceToDestination
push 0x71a27c
push 0x71a27c
push str.FileUtils
push str.OOBEUtils
push 0x32
mov ecx, esi
call dword [0x707770]
call esi
add esp, 0x18
xor al, al
jmp 0x5cdb6a
mov eax, dword [0x8076a8]
test eax, eax
je 0x5cda6a
mov esi, dword [eax]
push str.Source_file_does_not_exist_in_CopyFileFromSourceToDestination
push str.FileUtils
push 0x71a27c
mov esi, dword [esi + 0x34]
mov ecx, esi
push 0x32
push eax
call dword [0x707770]
call esi
add esp, 0x14
xor al, al
jmp 0x5cdb6a
push edi
lea ecx, [ebp - 0x28]
call fcn.00427050
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0
call fcn.005cc0b0
push ecx
lea ecx, [ebp - 0x28]
call fcn.005cc6b0
add esp, 4
mov eax, edi
cmp dword [edi + 0x14], 8
jb 0x5cda9f
mov eax, dword [edi]
cmp dword [esi + 0x14], 8
jb 0x5cdaa7
mov esi, dword [esi]
push 0
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_CopyFileW]
test eax, eax
jne 0x5cdb4a
cmp dword [0x8076a4], eax
je 0x5cdb03
cmp dword [edi + 0x14], 8
jb 0x5cdac9
mov edi, dword [edi]
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov esi, dword [0x8076a4]
mov ecx, esi
push eax
push edi
push str.Failed_to_copy_file_at_the_destination:_s._LastError:__d
push 0x71a27c
push 0x71a27c
push str.FileUtils
push str.OOBEUtils
push 0x32
call dword [0x707770]
call esi
add esp, 0x20
xor bl, bl
jmp 0x5cdb60
mov esi, dword [0x8076a8]
test esi, esi
je 0x5cdb46
cmp dword [edi + 0x14], 8
jb 0x5cdb15
mov edi, dword [edi]
mov esi, dword [esi]
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov esi, dword [esi + 0x34]
mov ecx, esi
push eax
push edi
push str.Failed_to_copy_file_at_the_destination:_s._LastError:__d
push str.FileUtils
push 0x71a27c
push 0x32
push dword [0x8076a8]
call dword [0x707770]
call esi
add esp, 0x1c
xor bl, bl
jmp 0x5cdb60
cmp dword [edi + 0x14], 8
jb 0x5cdb52
mov edi, dword [edi]
push 0x80
push edi
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesW]
mov bl, 1
lea ecx, [ebp - 0x28]
call fcn.00427170
mov al, bl
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.00650ddc
mov esp, ebp
pop ebp
ret
Function at 0x5cdfb0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6d8158
mov eax, dword fs:[0]
push eax
sub esp, 0x21c
mov eax, dword [0x7e500c]
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 dword [ebp - 0x228], ecx
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x21c]
xor bl, bl
mov dword [ebp - 0x21c], 0
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
push ecx
cmovae eax, dword [ebp + 8]
push eax
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x224], 0
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
push 0x208
mov edi, eax
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00663090
add esp, 0xc
test edi, edi
je 0x5ce10d
push edi
call fcn.00651294
add esp, 4
mov esi, eax
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push esi
push edi
push dword [ebp - 0x21c]
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x5ce104
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x224]
push eax
push 0x71b0d0
push esi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x5ce104
cmp dword [ebp - 0x220], 0
je 0x5ce104
mov edx, dword [ebp - 0x224]
cmp dword [edx], 0xfeef04bd
jne 0x5ce104
mov ecx, dword [edx + 0xc]
mov edx, dword [edx + 8]
movzx eax, cx
push eax
shr ecx, 0x10
push ecx
movzx eax, dx
push eax
shr edx, 0x10
lea eax, [ebp - 0x218]
push edx
push str._d._d._d._d
push 0x104
push eax
call fcn.00427a90
lea edx, [ebp - 0x218]
add esp, 0x1c
lea edi, [edx + 2]
nop
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x5ce0e0
mov ecx, dword [ebp - 0x228]
lea eax, [ebp - 0x218]
sub edx, edi
sar edx, 1
push edx
push eax
call fcn.004271d0
mov bl, 1
push esi
call fcn.0065109f
add esp, 4
lea ecx, [ebp + 8]
call fcn.00427170
mov al, bl
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.00650ddc
mov esp, ebp
pop ebp
ret
Function at 0x5ce810
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
mov edi, ecx
mov eax, edx
mov dword [ebp - 4], eax
test edi, edi
je 0x5ce9ec
mov esi, dword [ebp + 8]
test esi, esi
je 0x5ce9ec
mov ebx, dword [ebp + 0xc]
test ebx, ebx
je 0x5ce9ec
mov ecx, eax
call fcn.005ce780
cmp dword [ebx], eax
jl 0x5ce9ec
mov eax, 0x55555556
xor ebx, ebx
imul dword [ebp - 4]
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 0x14], eax
lea ecx, [eax*4]
mov eax, 0x6bca1af3
imul ecx
xor eax, eax
sar edx, 5
mov ecx, edx
mov dword [ebp - 8], eax
shr ecx, 0x1f
add ecx, edx
mov edx, 0x13
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], edx
test ecx, ecx
js 0x5ce958
cmp eax, ecx
jne 0x5ce8b8
mov edx, dword [ebp - 0x14]
imul eax, ecx, 0x4c
lea ecx, [edx*4]
sub ecx, eax
mov eax, ecx
mov ecx, dword [ebp - 0x10]
cdq
and edx, 3
add edx, eax
mov eax, dword [ebp - 8]
sar edx, 2
mov dword [ebp - 0xc], edx
test edx, edx
jle 0x5ce92e
mov dword [ebp - 0x18], edx
nop
movzx ecx, byte [edi]
movzx eax, byte [edi + 1]
shl ecx, 8
or ecx, eax
movzx eax, byte [edi + 2]
shl ecx, 8
add edi, 3
or ecx, eax
shl ecx, 8
mov eax, ecx
shl ecx, 6
shr eax, 0x1a
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_A]
mov byte [esi], al
mov eax, ecx
shr eax, 0x1a
shl ecx, 6
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_A]
mov byte [esi + 1], al
mov eax, ecx
shr eax, 0x1a
shr ecx, 0x14
and ecx, 0x3f
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_A]
mov byte [esi + 2], al
movzx eax, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_A]
mov byte [esi + 3], al
add esi, 4
sub edx, 1
jne 0x5ce8c0
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
lea ebx, [ebx + edx*4]
mov dword [ebp - 0x18], esi
inc eax
mov dword [ebp - 0x1c], ebx
mov word [esi], 0xa0d
add ebx, 2
add esi, 2
mov dword [ebp - 8], eax
cmp eax, ecx
jle 0x5ce893
test ebx, ebx
je 0x5ce958
mov esi, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 4]
lea eax, [eax + eax*2]
sub ecx, eax
mov edx, ecx
mov dword [ebp - 4], ecx
neg edx
lea eax, [ecx + 1]
sbb edx, edx
and edx, eax
mov dword [ebp - 0x1c], edx
je 0x5ce9db
mov eax, dword [ebp - 4]
xor ecx, ecx
test eax, eax
jle 0x5ce983
movzx ecx, byte [edi]
inc edi
shl ecx, 8
cmp eax, 1
jle 0x5ce994
movzx eax, byte [edi]
or ecx, eax
mov eax, dword [ebp - 4]
inc edi
shl ecx, 8
cmp eax, 2
jle 0x5ce9a1
movzx eax, byte [edi]
or ecx, eax
shl ecx, 8
test edx, edx
jle 0x5ce9c1
mov eax, ecx
shl ecx, 6
shr eax, 0x1a
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_A]
mov byte [esi], al
inc esi
sub edx, 1
jne 0x5ce9a8
mov edx, dword [ebp - 0x1c]
mov eax, 4
sub eax, edx
test eax, eax
jle 0x5ce9d8
push eax
push 0x3d
push esi
call fcn.00663090
add esp, 0xc
add ebx, 4
mov eax, dword [ebp + 0xc]
mov dword [eax], ebx
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x5d4850
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6d8558
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x7e500c]
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 edi, ecx
lea ebx, [edi + 4]
mov dword [edi], 0
mov dword [ebx], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [ebp - 0x18], 0x104
mov dword [ebp - 0x1c], 0
call fcn.005d44a0
mov dword [ebp - 0x14], eax
test eax, eax
je 0x5d4a03
mov eax, dword [eax]
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x707770]
mov ecx, dword [ebp - 0x14]
call esi
lea esi, [eax + 0x10]
mov dword [ebp - 0x14], esi
lea eax, [ebp - 0x1c]
mov dword [ebp - 4], 0
push eax
push 0x20019
push 0
push str.SOFTWAREMicrosoftInternet_Explorer
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x5d49b2
mov edx, dword [ebp - 0x18]
test edx, edx
js 0x5d49f9
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edx
or eax, ecx
jge 0x5d4922
push edx
lea ecx, [ebp - 0x14]
call fcn.005d53e0
mov esi, dword [ebp - 0x14]
lea eax, [ebp - 0x18]
push eax
push esi
push 0
push 0
push str.svcVersion
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x5d4980
mov ecx, dword [ebp - 0x18]
test ecx, ecx
js 0x5d49f9
mov eax, dword [esi - 8]
mov edx, 1
sub edx, dword [esi - 4]
sub eax, ecx
or eax, edx
jge 0x5d4965
push ecx
lea ecx, [ebp - 0x14]
call fcn.005d53e0
mov esi, dword [ebp - 0x14]
lea eax, [ebp - 0x18]
push eax
push esi
push 0
push 0
push str.Version
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x5d49a9
cmp dword [ebp - 0x18], 0
jbe 0x5d49a9
lea eax, [edi + 0xc]
push eax
lea eax, [edi + 8]
push eax
push ebx
push edi
push str._d._d._d._d
push esi
call fcn.004ec730
add esp, 0x18
cmp eax, 4
je 0x5d49a9
mov dword [edi], 0
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x5d49dd
mov edi, dword [esi]
push esi
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x707770]
mov ecx, edi
call esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00650ddc
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.00427bc0
push 0x80004005
call fcn.00427bc0
int3
Function at 0x5d4a10
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6d8596
mov eax, dword fs:[0]
push eax
sub esp, 0x250
mov eax, dword [0x7e500c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x21c], ecx
push 0x104
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameW]
xor eax, eax
mov dword [ebp - 0x228], 0
mov dword [ebp - 0x224], 7
mov word [ebp - 0x238], ax
mov dword [ebp - 4], eax
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x24c], eax
lea edx, [ecx + 2]
mov dword [ebp - 0x248], 7
mov word [ebp - 0x25c], ax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x5d4a97
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x25c]
call fcn.004271d0
mov byte [ebp - 4], 1
lea eax, [ebp - 0x25c]
cmp dword [ebp - 0x248], 8
cmovae eax, dword [ebp - 0x25c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov edx, eax
lea esi, [edx + 2]
nop dword [eax]
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x5d4ae0
sub edx, esi
lea ecx, [ebp - 0x238]
sar edx, 1
push edx
push eax
call fcn.004271d0
lea ecx, [ebp - 0x25c]
call fcn.00427170
push 0
lea eax, [ebp - 0x244]
mov dword [ebp - 0x244], 0
push eax
push 0
push 0x2001f
push 0
push 0
push 0
push str.SOFTWAREMicrosoftInternet_ExplorerMainFeatureControlFEATURE_BROWSER_EMULATION
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x5d4c35
cmp dword [ebp - 0x224], 8
lea ecx, [ebp - 0x23c]
push ecx
lea ecx, [ebp - 0x220]
mov dword [ebp - 0x220], eax
push ecx
lea ecx, [ebp - 0x240]
mov dword [ebp - 0x23c], 4
push ecx
lea eax, [ebp - 0x238]
mov dword [ebp - 0x240], 4
cmovae eax, dword [ebp - 0x238]
push 0
push eax
push dword [ebp - 0x244]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, 2
jne 0x5d4be1
cmp dword [ebp - 0x224], 8
lea ecx, [ebp - 0x21c]
push 4
push ecx
push 4
lea eax, [ebp - 0x238]
cmovae eax, dword [ebp - 0x238]
push 0
push eax
push dword [ebp - 0x244]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x5d4c25
push dword [ebp - 0x244]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x238]
call fcn.00427170
jmp 0x5d4c44
test eax, eax
jne 0x5d4bc8
mov eax, dword [ebp - 0x220]
cmp eax, dword [ebp - 0x21c]
je 0x5d4c31
cmp dword [ebp - 0x224], 8
lea ecx, [ebp - 0x21c]
push 4
push ecx
push 4
lea eax, [ebp - 0x238]
cmovae eax, dword [ebp - 0x238]
push 0
push eax
push dword [ebp - 0x244]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x5d4c31
push dword [ebp - 0x244]
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov bl, 1
jmp 0x5d4c37
xor bl, bl
lea ecx, [ebp - 0x238]
call fcn.00427170
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00650ddc
mov esp, ebp
pop ebp
ret
Function at 0x5d75b0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6b9fa8
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x7e500c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x14], edi
xor eax, eax
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 7
mov word [edi], ax
lea esi, [edi + 0x18]
mov dword [ebp - 4], eax
push 0x40
mov dword [ebp - 0x10], esi
mov dword [esi], eax
mov dword [esi + 4], eax
call fcn.00650ded
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
xor eax, eax
mov word [edi + 0x20], ax
mov eax, edi
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 7
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x5d7690
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
mov eax, dword [0x7e500c]
xor eax, esp
mov dword [esp + 8], eax
push ebx
mov ebx, ecx
push esi
push edi
mov edi, dword [ebp + 8]
cmp dword [ebx + 0x8c], 1
jne 0x5d7732
xor eax, eax
cmp dword [ebx + 0x60], 8
mov word [esp + 0xc], ax
mov dword [esp + 0x10], eax
lea eax, [ebx + 0x4c]
jb 0x5d76cb
mov eax, dword [eax]
push str.rb__ccsUTF_8
push eax
lea eax, [esp + 0x18]
push eax
call fcn.0066fecb
mov eax, dword [esp + 0x1c]
add esp, 0xc
test eax, eax
je 0x5d7732
push eax
push 2
lea eax, [esp + 0x14]
push 1
push eax
call fcn.00672684
push dword [esp + 0x20]
call fcn.0066ffab
mov ax, word [esp + 0x20]
add esp, 0x14
cmp al, 0xff
jne 0x5d770f
cmp ah, 0xfe
je 0x5d7732
cmp ah, 0xff
jne 0x5d7718
cmp al, 0xfe
je 0x5d7732
mov eax, dword [edi]
test eax, eax
je 0x5d772b
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov dword [edi], 0
mov ecx, ebx
call fcn.005d93c0
lea esi, [ebx + 0x4c]
mov dl, 1
mov ecx, esi
call fcn.005e0b80
test eax, eax
je 0x5d775e
cmp eax, 1
jne 0x5d77b0
push ecx
mov dl, al
mov ecx, esi
call fcn.005cd7f0
add esp, 4
test al, al
je 0x5d77b0
mov dword [edi], 0xffffffff
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x5d7768
mov eax, dword [esi]
push 0
push 0x200080
push 3
push 0
push 3
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov dword [edi], eax
cmp eax, 0xffffffff
jne 0x5d7807
cmp dword [esi + 0x14], 8
jb 0x5d7790
mov esi, dword [esi]
push 0
push 0x200080
push 1
push 0
push 3
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov dword [edi], eax
cmp eax, 0xffffffff
jne 0x5d77c6
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 8]
xor ecx, esp
call fcn.00650ddc
mov esp, ebp
pop ebp
ret 4
cmp dword [ebx + 0x8c], 1
push 0
jne 0x5d77e8
mov ecx, 0xfeff
mov word [esp + 0x10], cx
lea ecx, [esp + 0x14]
push ecx
push 2
lea ecx, [esp + 0x18]
jmp 0x5d77ff
lea ecx, [esp + 0x14]
mov word [esp + 0x10], 0xbbef
push ecx
mov byte [esp + 0x16], 0xbf
lea ecx, [esp + 0x14]
push 3
push ecx
push eax
call dword [sym.imp.KERNEL32.DLL_WriteFile]
mov ecx, dword [esp + 0x14]
mov al, 1
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00650ddc
mov esp, ebp
pop ebp
ret 4
Function at 0x5d7c60
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x7e500c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
mov esi, edi
lea ecx, [esi + 2]
nop dword [eax]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x5d7c80
push 2
push 0
push 0
push dword [ebx + 0x68]
sub esi, ecx
sar esi, 1
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
push 0
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
add esi, esi
push esi
push edi
push dword [ebx + 0x68]
call dword [sym.imp.KERNEL32.DLL_WriteFile]
push 0
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push 4
push 0x73a8dc
push dword [ebx + 0x68]
call dword [sym.imp.KERNEL32.DLL_WriteFile]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00650ddc
mov esp, ebp
pop ebp
ret 4

Function at 0x5d7cf0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x7e500c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ebx
push edi
mov edi, ecx
lea ecx, [esi + 1]
nop dword [eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x5d7d10
push 2
push 0
push 0
push dword [edi + 0x68]
sub esi, ecx
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
push 0
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push esi
push ebx
push dword [edi + 0x68]
call dword [sym.imp.KERNEL32.DLL_WriteFile]
push 0
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push 2
push 0x78b2e4
push dword [edi + 0x68]
call dword [sym.imp.KERNEL32.DLL_WriteFile]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00650ddc
mov esp, ebp
pop ebp
ret 4