joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5dac50
Capabilities:
Check if file exists
Create directory

Disassembly:
push esi
mov esi, ecx
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x5dac5d
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ecx, dword [esi + 0x14]
test eax, eax
je 0x5dac80
cmp ecx, 8
jb 0x5dac72
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 0x5dac87
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 0x5dad04
mov esi, dword [0x7eb9f0]
test esi, esi
je 0x5dacd4
push edi
push str.SHCreateDirectoryEx_failed._Error:__d
push 0x701e7c
push 0x701e7c
push str.FileUtils
push 0x7721a4
push 0x32
mov ecx, esi
call dword [0x6ef350]
call esi
add esp, 0x1c
test edi, edi
sete al
pop edi
pop esi
ret
mov eax, dword [0x7eb9f4]
test eax, eax
je 0x5dad02
mov esi, dword [eax]
push edi
push str.SHCreateDirectoryEx_failed._Error:__d
push str.FileUtils
mov esi, dword [esi + 0x34]
mov ecx, esi
push 0x701e7c
push 0x32
push eax
call dword [0x6ef350]
call esi
add esp, 0x18
test edi, edi
pop edi
sete al
pop esi
ret
Function at 0x5dbda0
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 0x5dbdb0
mov eax, dword [edi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x5dbf65
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x5dbdc9
mov eax, dword [edi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x5dbdda
mov eax, dword [edi]
push esi
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
cmp eax, 1
sete bl
je 0x5dbec7
test bh, bh
je 0x5dbec7
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 5
jne 0x5dbec7
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x5dbe0f
mov eax, dword [edi]
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
mov edx, eax
test dl, 1
je 0x5dbec7
mov esi, dword [0x7eb9f0]
test esi, esi
je 0x5dbe61
cmp dword [edi + 0x14], 8
mov ecx, edi
jb 0x5dbe35
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 0x701e7c
push 0x701e7c
push str.FileUtils
push 0x7721a4
push 0x14
mov ecx, esi
call dword [0x6ef350]
call esi
add esp, 0x20
jmp 0x5dbe9a
mov eax, dword [0x7eb9f4]
test eax, eax
je 0x5dbe9a
cmp dword [edi + 0x14], 8
mov ecx, edi
jb 0x5dbe74
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 0x701e7c
push 0x14
push eax
call dword [0x6ef350]
call esi
add esp, 0x1c
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x5dbea4
mov eax, dword [edi]
push 0x80
push eax
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesW]
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x5dbeba
mov eax, dword [edi]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
cmp eax, 1
sete bl
test bl, bl
jne 0x5dbf5f
cmp dword [0x7eb9f0], 0
je 0x5dbf1c
cmp dword [edi + 0x14], 8
jb 0x5dbee0
mov edi, dword [edi]
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov esi, dword [0x7eb9f0]
mov ecx, esi
push eax
push edi
push str.Failed_to_delete_file:__s_LastError:_d
push 0x701e7c
push 0x701e7c
push str.FileUtils
push 0x7721a4
push 0x32
call dword [0x6ef350]
call esi
add esp, 0x20
mov al, bl
pop esi
pop edi
pop ebx
ret
mov esi, dword [0x7eb9f4]
test esi, esi
je 0x5dbf5f
cmp dword [edi + 0x14], 8
jb 0x5dbf2e
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 0x701e7c
push 0x32
push dword [0x7eb9f4]
call dword [0x6ef350]
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 0x5dbf70
Capabilities:
Check if file exists
Copy file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6942d8
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x7ca00c]
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 0x5dbfa9
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x5dc021
mov esi, dword [0x7eb9f0]
test esi, esi
je 0x5dbfed
push str.Source_file_does_not_exist_in_CopyFileFromSourceToDestination
push 0x701e7c
push 0x701e7c
push str.FileUtils
push 0x7721a4
push 0x32
mov ecx, esi
call dword [0x6ef350]
call esi
add esp, 0x18
xor al, al
jmp 0x5dc11a
mov eax, dword [0x7eb9f4]
test eax, eax
je 0x5dc01a
mov esi, dword [eax]
push str.Source_file_does_not_exist_in_CopyFileFromSourceToDestination
push str.FileUtils
push 0x701e7c
mov esi, dword [esi + 0x34]
mov ecx, esi
push 0x32
push eax
call dword [0x6ef350]
call esi
add esp, 0x14
xor al, al
jmp 0x5dc11a
push edi
lea ecx, [ebp - 0x28]
call fcn.00428650
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0
call fcn.005da650
push ecx
lea ecx, [ebp - 0x28]
call fcn.005dac50
add esp, 4
mov eax, edi
cmp dword [edi + 0x14], 8
jb 0x5dc04f
mov eax, dword [edi]
cmp dword [esi + 0x14], 8
jb 0x5dc057
mov esi, dword [esi]
push 0
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_CopyFileW]
test eax, eax
jne 0x5dc0fa
cmp dword [0x7eb9f0], eax
je 0x5dc0b3
cmp dword [edi + 0x14], 8
jb 0x5dc079
mov edi, dword [edi]
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov esi, dword [0x7eb9f0]
mov ecx, esi
push eax
push edi
push str.Failed_to_copy_file_at_the_destination:_s._LastError:__d
push 0x701e7c
push 0x701e7c
push str.FileUtils
push 0x7721a4
push 0x32
call dword [0x6ef350]
call esi
add esp, 0x20
xor bl, bl
jmp 0x5dc110
mov esi, dword [0x7eb9f4]
test esi, esi
je 0x5dc0f6
cmp dword [edi + 0x14], 8
jb 0x5dc0c5
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 0x701e7c
push 0x32
push dword [0x7eb9f4]
call dword [0x6ef350]
call esi
add esp, 0x1c
xor bl, bl
jmp 0x5dc110
cmp dword [edi + 0x14], 8
jb 0x5dc102
mov edi, dword [edi]
push 0x80
push edi
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesW]
mov bl, 1
lea ecx, [ebp - 0x28]
call fcn.00428770
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.0063de71
mov esp, ebp
pop ebp
ret
Function at 0x5dc560
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6c0a08
mov eax, dword fs:[0]
push eax
sub esp, 0x21c
mov eax, dword [0x7ca00c]
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.006501e0
add esp, 0xc
test edi, edi
je 0x5dc6bd
push edi
call fcn.0063e329
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 0x5dc6b4
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x224]
push eax
push 0x702ca8
push esi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x5dc6b4
cmp dword [ebp - 0x220], 0
je 0x5dc6b4
mov edx, dword [ebp - 0x224]
cmp dword [edx], 0xfeef04bd
jne 0x5dc6b4
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.004290c0
lea edx, [ebp - 0x218]
add esp, 0x1c
lea edi, [edx + 2]
nop
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x5dc690
mov ecx, dword [ebp - 0x228]
lea eax, [ebp - 0x218]
sub edx, edi
sar edx, 1
push edx
push eax
call fcn.00428800
mov bl, 1
push esi
call fcn.0063e134
add esp, 4
lea ecx, [ebp + 8]
call fcn.00428770
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.0063de71
mov esp, ebp
pop ebp
ret
Function at 0x5dcdc0
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 0x5dcf9c
mov esi, dword [ebp + 8]
test esi, esi
je 0x5dcf9c
mov ebx, dword [ebp + 0xc]
test ebx, ebx
je 0x5dcf9c
mov ecx, eax
call fcn.005dcd30
cmp dword [ebx], eax
jl 0x5dcf9c
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 0x5dcf08
cmp eax, ecx
jne 0x5dce68
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 0x5dcede
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 0x5dce70
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 0x5dce43
test ebx, ebx
je 0x5dcf08
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 0x5dcf8b
mov eax, dword [ebp - 4]
xor ecx, ecx
test eax, eax
jle 0x5dcf33
movzx ecx, byte [edi]
inc edi
shl ecx, 8
cmp eax, 1
jle 0x5dcf44
movzx eax, byte [edi]
or ecx, eax
mov eax, dword [ebp - 4]
inc edi
shl ecx, 8
cmp eax, 2
jle 0x5dcf51
movzx eax, byte [edi]
or ecx, eax
shl ecx, 8
test edx, edx
jle 0x5dcf71
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 0x5dcf58
mov edx, dword [ebp - 0x1c]
mov eax, 4
sub eax, edx
test eax, eax
jle 0x5dcf88
push eax
push 0x3d
push esi
call fcn.006501e0
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 0x5e2e00
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6c0e08
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x7ca00c]
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.005e2a50
mov dword [ebp - 0x14], eax
test eax, eax
je 0x5e2fb3
mov eax, dword [eax]
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x6ef350]
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 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x5e2f62
mov edx, dword [ebp - 0x18]
test edx, edx
js 0x5e2fa9
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edx
or eax, ecx
jge 0x5e2ed2
push edx
lea ecx, [ebp - 0x14]
call fcn.005e3990
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 0x5e2f30
mov ecx, dword [ebp - 0x18]
test ecx, ecx
js 0x5e2fa9
mov eax, dword [esi - 8]
mov edx, 1
sub edx, dword [esi - 4]
sub eax, ecx
or eax, edx
jge 0x5e2f15
push ecx
lea ecx, [ebp - 0x14]
call fcn.005e3990
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 0x5e2f59
cmp dword [ebp - 0x18], 0
jbe 0x5e2f59
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.004f4f90
add esp, 0x18
cmp eax, 4
je 0x5e2f59
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 0x5e2f8d
mov edi, dword [esi]
push esi
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x6ef350]
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.0063de71
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.004291f0
push 0x80004005
call fcn.004291f0
int3
Function at 0x5e2fc0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6c0e46
mov eax, dword fs:[0]
push eax
sub esp, 0x250
mov eax, dword [0x7ca00c]
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 0x5e3047
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x25c]
call fcn.00428800
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 0x5e3090
sub edx, esi
lea ecx, [ebp - 0x238]
sar edx, 1
push edx
push eax
call fcn.00428800
lea ecx, [ebp - 0x25c]
call fcn.00428770
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 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x5e31e5
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 0x5e3191
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 0x5e31d5
push dword [ebp - 0x244]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x238]
call fcn.00428770
jmp 0x5e31f4
test eax, eax
jne 0x5e3178
mov eax, dword [ebp - 0x220]
cmp eax, dword [ebp - 0x21c]
je 0x5e31e1
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 0x5e31e1
push dword [ebp - 0x244]
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov bl, 1
jmp 0x5e31e7
xor bl, bl
lea ecx, [ebp - 0x238]
call fcn.00428770
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.0063de71
mov esp, ebp
pop ebp
ret
Function at 0x5e5b60
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6a1e78
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x7ca00c]
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.0063de82
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 0x5e5c40
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
mov eax, dword [0x7ca00c]
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 0x5e5ce2
xor eax, eax
cmp dword [ebx + 0x60], 8
mov word [esp + 0xc], ax
mov dword [esp + 0x10], eax
lea eax, [ebx + 0x4c]
jb 0x5e5c7b
mov eax, dword [eax]
push str.rb__ccsUTF_8
push eax
lea eax, [esp + 0x18]
push eax
call fcn.006574eb
mov eax, dword [esp + 0x1c]
add esp, 0xc
test eax, eax
je 0x5e5ce2
push eax
push 2
lea eax, [esp + 0x14]
push 1
push eax
call fcn.006588f6
push dword [esp + 0x20]
call fcn.006575cb
mov ax, word [esp + 0x20]
add esp, 0x14
cmp al, 0xff
jne 0x5e5cbf
cmp ah, 0xfe
je 0x5e5ce2
cmp ah, 0xff
jne 0x5e5cc8
cmp al, 0xfe
je 0x5e5ce2
mov eax, dword [edi]
test eax, eax
je 0x5e5cdb
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov dword [edi], 0
mov ecx, ebx
call fcn.005e7980
lea esi, [ebx + 0x4c]
mov dl, 1
push ecx
mov ecx, esi
call fcn.005ea060
add esp, 4
test eax, eax
je 0x5e5d12
cmp eax, 1
jne 0x5e5d64
push ecx
mov dl, al
mov ecx, esi
call fcn.005dbda0
add esp, 4
test al, al
je 0x5e5d64
mov dword [edi], 0xffffffff
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x5e5d1c
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 0x5e5dbb
cmp dword [esi + 0x14], 8
jb 0x5e5d44
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 0x5e5d7a
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 8]
xor ecx, esp
call fcn.0063de71
mov esp, ebp
pop ebp
ret 4
cmp dword [ebx + 0x8c], 1
push 0
jne 0x5e5d9c
mov ecx, 0xfeff
mov word [esp + 0x10], cx
lea ecx, [esp + 0x14]
push ecx
push 2
lea ecx, [esp + 0x18]
jmp 0x5e5db3
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.0063de71
mov esp, ebp
pop ebp
ret 4
Function at 0x5e6220
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x7ca00c]
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 0x5e6240
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 0x72365c
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.0063de71
mov esp, ebp
pop ebp
ret 4

Function at 0x5e62b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x7ca00c]
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 0x5e62d0
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 0x774300
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.0063de71
mov esp, ebp
pop ebp
ret 4