joyce8/EMBER2024-capa huggingface dataset:
Function at 0x60f0e0
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x703a60
mov eax, dword fs:[0]
push eax
sub esp, 0x288
mov eax, dword [0x82d084]
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
push esi
lea ecx, [ebp - 0x40]
mov byte [ebp - 0x291], 1
call fcn.0042fc50
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
push 1
xor eax, eax
mov dword [ebp - 0x18], 0
push 0x7682ac
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.0042fe00
push ecx
lea edx, [ebp - 0x28]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
call fcn.0060e1d0
add esp, 4
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.0042fd70
cmp dword [ebp - 0x2c], 8
lea ecx, [ebp - 0x290]
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push ecx
push eax
call dword [sym.imp.KERNEL32.DLL_FindFirstFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x60f2ed
nop
push str..__
lea eax, [ebp - 0x264]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcmpW]
test eax, eax
je 0x60f2d0
push 0x7d0c04
lea eax, [ebp - 0x264]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcmpW]
test eax, eax
je 0x60f2d0
lea eax, [ebp - 0x40]
cmp eax, esi
je 0x60f1e1
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x60f1d5
mov eax, dword [esi]
push dword [esi + 0x10]
lea ecx, [ebp - 0x40]
push eax
call fcn.0042fe00
xor eax, eax
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0x264]
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x60f200
sub ecx, edx
lea eax, [ebp - 0x264]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.0042fe00
push ecx
lea edx, [ebp - 0x28]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x40]
call fcn.0060e1d0
add esp, 4
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.0042fd70
test byte [ebp - 0x290], 0x10
je 0x60f260
push 0
push 1
mov edx, edi
lea ecx, [ebp - 0x40]
call fcn.0060f0e0
add esp, 8
mov byte [ebp - 0x291], al
jmp 0x60f2d0
xor eax, eax
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
lea eax, [ebp - 0x264]
mov dword [ebp - 0x14], 7
lea edx, [eax + 2]
nop dword [eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x60f280
sub eax, edx
lea ecx, [ebp - 0x28]
sar eax, 1
push eax
lea eax, [ebp - 0x264]
push eax
call fcn.0042fe00
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x40]
mov eax, dword [edi + 4]
push ecx
cmp eax, dword [edi + 8]
je 0x60f2bc
mov ecx, eax
call fcn.0042fc50
add dword [edi + 4], 0x18
jmp 0x60f2c4
push eax
mov ecx, edi
call fcn.00449a40
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
call fcn.0042fd70
lea eax, [ebp - 0x290]
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_FindNextFileW]
test eax, eax
jne 0x60f190
push ebx
call dword [sym.imp.KERNEL32.DLL_FindClose]
lea ecx, [ebp - 0x40]
call fcn.0042fd70
mov al, byte [ebp - 0x291]
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.0067ba01
mov esp, ebp
pop ebp
ret
Function at 0x60fa90
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 0x60faa0
mov eax, dword [edi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x60fc55
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x60fab9
mov eax, dword [edi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x60faca
mov eax, dword [edi]
push esi
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
cmp eax, 1
sete bl
je 0x60fbb7
test bh, bh
je 0x60fbb7
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 5
jne 0x60fbb7
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x60faff
mov eax, dword [edi]
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
mov edx, eax
test dl, 1
je 0x60fbb7
mov esi, dword [0x853a78]
test esi, esi
je 0x60fb51
cmp dword [edi + 0x14], 8
mov ecx, edi
jb 0x60fb25
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 0x75b10c
push 0x75b10c
push str.FileUtils
push str.OOBEUtils
push 0x14
mov ecx, esi
call dword [0x747368]
call esi
add esp, 0x20
jmp 0x60fb8a
mov eax, dword [0x853a7c]
test eax, eax
je 0x60fb8a
cmp dword [edi + 0x14], 8
mov ecx, edi
jb 0x60fb64
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 0x75b10c
push 0x14
push eax
call dword [0x747368]
call esi
add esp, 0x1c
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x60fb94
mov eax, dword [edi]
push 0x80
push eax
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesW]
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x60fbaa
mov eax, dword [edi]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
cmp eax, 1
sete bl
test bl, bl
jne 0x60fc4f
cmp dword [0x853a78], 0
je 0x60fc0c
cmp dword [edi + 0x14], 8
jb 0x60fbd0
mov edi, dword [edi]
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov esi, dword [0x853a78]
mov ecx, esi
push eax
push edi
push str.Failed_to_delete_file:__s_LastError:_d
push 0x75b10c
push 0x75b10c
push str.FileUtils
push str.OOBEUtils
push 0x32
call dword [0x747368]
call esi
add esp, 0x20
mov al, bl
pop esi
pop edi
pop ebx
ret
mov esi, dword [0x853a7c]
test esi, esi
je 0x60fc4f
cmp dword [edi + 0x14], 8
jb 0x60fc1e
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 0x75b10c
push 0x32
push dword [0x853a7c]
call dword [0x747368]
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 0x60fc60
Capabilities:
Check if file exists
Copy file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6d2978
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x82d084]
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 0x60fc99
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x60fd11
mov esi, dword [0x853a78]
test esi, esi
je 0x60fcdd
push str.Source_file_does_not_exist_in_CopyFileFromSourceToDestination
push 0x75b10c
push 0x75b10c
push str.FileUtils
push str.OOBEUtils
push 0x32
mov ecx, esi
call dword [0x747368]
call esi
add esp, 0x18
xor al, al
jmp 0x60fe0a
mov eax, dword [0x853a7c]
test eax, eax
je 0x60fd0a
mov esi, dword [eax]
push str.Source_file_does_not_exist_in_CopyFileFromSourceToDestination
push str.FileUtils
push 0x75b10c
mov esi, dword [esi + 0x34]
mov ecx, esi
push 0x32
push eax
call dword [0x747368]
call esi
add esp, 0x14
xor al, al
jmp 0x60fe0a
push edi
lea ecx, [ebp - 0x28]
call fcn.0042fc50
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0
call fcn.0060e100
push ecx
lea ecx, [ebp - 0x28]
call fcn.0060e700
add esp, 4
mov eax, edi
cmp dword [edi + 0x14], 8
jb 0x60fd3f
mov eax, dword [edi]
cmp dword [esi + 0x14], 8
jb 0x60fd47
mov esi, dword [esi]
push 0
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_CopyFileW]
test eax, eax
jne 0x60fdea
cmp dword [0x853a78], eax
je 0x60fda3
cmp dword [edi + 0x14], 8
jb 0x60fd69
mov edi, dword [edi]
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov esi, dword [0x853a78]
mov ecx, esi
push eax
push edi
push str.Failed_to_copy_file_at_the_destination:_s._LastError:__d
push 0x75b10c
push 0x75b10c
push str.FileUtils
push str.OOBEUtils
push 0x32
call dword [0x747368]
call esi
add esp, 0x20
xor bl, bl
jmp 0x60fe00
mov esi, dword [0x853a7c]
test esi, esi
je 0x60fde6
cmp dword [edi + 0x14], 8
jb 0x60fdb5
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 0x75b10c
push 0x32
push dword [0x853a7c]
call dword [0x747368]
call esi
add esp, 0x1c
xor bl, bl
jmp 0x60fe00
cmp dword [edi + 0x14], 8
jb 0x60fdf2
mov edi, dword [edi]
push 0x80
push edi
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesW]
mov bl, 1
lea ecx, [ebp - 0x28]
call fcn.0042fd70
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.0067ba01
mov esp, ebp
pop ebp
ret
Function at 0x610250
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x703b18
mov eax, dword fs:[0]
push eax
sub esp, 0x21c
mov eax, dword [0x82d084]
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.0068e800
add esp, 0xc
test edi, edi
je 0x6103ad
push edi
call fcn.0067beb9
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 0x6103a4
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x224]
push eax
push 0x761550
push esi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x6103a4
cmp dword [ebp - 0x220], 0
je 0x6103a4
mov edx, dword [ebp - 0x224]
cmp dword [edx], 0xfeef04bd
jne 0x6103a4
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.004306c0
lea edx, [ebp - 0x218]
add esp, 0x1c
lea edi, [edx + 2]
nop
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x610380
mov ecx, dword [ebp - 0x228]
lea eax, [ebp - 0x218]
sub edx, edi
sar edx, 1
push edx
push eax
call fcn.0042fe00
mov bl, 1
push esi
call fcn.0067bcc4
add esp, 4
lea ecx, [ebp + 8]
call fcn.0042fd70
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.0067ba01
mov esp, ebp
pop ebp
ret
Function at 0x610ab0
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 0x610c8c
mov esi, dword [ebp + 8]
test esi, esi
je 0x610c8c
mov ebx, dword [ebp + 0xc]
test ebx, ebx
je 0x610c8c
mov ecx, eax
call fcn.00610a20
cmp dword [ebx], eax
jl 0x610c8c
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 0x610bf8
cmp eax, ecx
jne 0x610b58
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 0x610bce
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_S]
mov byte [esi], al
mov eax, ecx
shr eax, 0x1a
shl ecx, 6
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_S]
mov byte [esi + 1], al
mov eax, ecx
shr eax, 0x1a
shr ecx, 0x14
and ecx, 0x3f
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_S]
mov byte [esi + 2], al
movzx eax, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_S]
mov byte [esi + 3], al
add esi, 4
sub edx, 1
jne 0x610b60
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 0x610b33
test ebx, ebx
je 0x610bf8
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 0x610c7b
mov eax, dword [ebp - 4]
xor ecx, ecx
test eax, eax
jle 0x610c23
movzx ecx, byte [edi]
inc edi
shl ecx, 8
cmp eax, 1
jle 0x610c34
movzx eax, byte [edi]
or ecx, eax
mov eax, dword [ebp - 4]
inc edi
shl ecx, 8
cmp eax, 2
jle 0x610c41
movzx eax, byte [edi]
or ecx, eax
shl ecx, 8
test edx, edx
jle 0x610c61
mov eax, ecx
shl ecx, 6
shr eax, 0x1a
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_S]
mov byte [esi], al
inc esi
sub edx, 1
jne 0x610c48
mov edx, dword [ebp - 0x1c]
mov eax, 4
sub eax, edx
test eax, eax
jle 0x610c78
push eax
push 0x3d
push esi
call fcn.0068e800
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 0x616dd0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x703f58
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x82d084]
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.00616a20
mov dword [ebp - 0x14], eax
test eax, eax
je 0x616f83
mov eax, dword [eax]
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x747368]
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 0x616f32
mov edx, dword [ebp - 0x18]
test edx, edx
js 0x616f79
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edx
or eax, ecx
jge 0x616ea2
push edx
lea ecx, [ebp - 0x14]
call fcn.00617960
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 0x616f00
mov ecx, dword [ebp - 0x18]
test ecx, ecx
js 0x616f79
mov eax, dword [esi - 8]
mov edx, 1
sub edx, dword [esi - 4]
sub eax, ecx
or eax, edx
jge 0x616ee5
push ecx
lea ecx, [ebp - 0x14]
call fcn.00617960
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 0x616f29
cmp dword [ebp - 0x18], 0
jbe 0x616f29
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.0050abf0
add esp, 0x18
cmp eax, 4
je 0x616f29
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 0x616f5d
mov edi, dword [esi]
push esi
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x747368]
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.0067ba01
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.004307f0
push 0x80004005
call fcn.004307f0
int3
Function at 0x616f90
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x703f96
mov eax, dword fs:[0]
push eax
sub esp, 0x250
mov eax, dword [0x82d084]
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 0x617017
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x25c]
call fcn.0042fe00
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 0x617060
sub edx, esi
lea ecx, [ebp - 0x238]
sar edx, 1
push edx
push eax
call fcn.0042fe00
lea ecx, [ebp - 0x25c]
call fcn.0042fd70
push 0
lea eax, [ebp - 0x244]
mov dword [ebp - 0x244], 0
push eax
push 0
push 0x2001f
push 0
push 0
push 0
push 0x7d1af8
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x6171b5
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 0x617161
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 0x6171a5
push dword [ebp - 0x244]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x238]
call fcn.0042fd70
jmp 0x6171c4
test eax, eax
jne 0x617148
mov eax, dword [ebp - 0x220]
cmp eax, dword [ebp - 0x21c]
je 0x6171b1
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 0x6171b1
push dword [ebp - 0x244]
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov bl, 1
jmp 0x6171b7
xor bl, bl
lea ecx, [ebp - 0x238]
call fcn.0042fd70
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.0067ba01
mov esp, ebp
pop ebp
ret
Function at 0x619a20
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6e1848
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x82d084]
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.0067ba12
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 0x619b00
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
mov eax, dword [0x82d084]
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 0x619ba2
xor eax, eax
cmp dword [ebx + 0x60], 8
mov word [esp + 0xc], ax
mov dword [esp + 0x10], eax
lea eax, [ebx + 0x4c]
jb 0x619b3b
mov eax, dword [eax]
push str.rb__ccsUTF_8
push eax
lea eax, [esp + 0x18]
push eax
call fcn.006959bc
mov eax, dword [esp + 0x1c]
add esp, 0xc
test eax, eax
je 0x619ba2
push eax
push 2
lea eax, [esp + 0x14]
push 1
push eax
call fcn.00696dc7
push dword [esp + 0x20]
call fcn.00695a9c
mov ax, word [esp + 0x20]
add esp, 0x14
cmp al, 0xff
jne 0x619b7f
cmp ah, 0xfe
je 0x619ba2
cmp ah, 0xff
jne 0x619b88
cmp al, 0xfe
je 0x619ba2
mov eax, dword [edi]
test eax, eax
je 0x619b9b
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov dword [edi], 0
mov ecx, ebx
call fcn.0061b840
lea esi, [ebx + 0x4c]
mov dl, 1
push ecx
mov ecx, esi
call fcn.0061df20
add esp, 4
test eax, eax
je 0x619bd2
cmp eax, 1
jne 0x619c24
push ecx
mov dl, al
mov ecx, esi
call fcn.0060fa90
add esp, 4
test al, al
je 0x619c24
mov dword [edi], 0xffffffff
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x619bdc
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 0x619c7b
cmp dword [esi + 0x14], 8
jb 0x619c04
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 0x619c3a
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 8]
xor ecx, esp
call fcn.0067ba01
mov esp, ebp
pop ebp
ret 4
cmp dword [ebx + 0x8c], 1
push 0
jne 0x619c5c
mov ecx, 0xfeff
mov word [esp + 0x10], cx
lea ecx, [esp + 0x14]
push ecx
push 2
lea ecx, [esp + 0x18]
jmp 0x619c73
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.0067ba01
mov esp, ebp
pop ebp
ret 4
Function at 0x61a0e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x82d084]
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 0x61a100
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 0x77f748
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.0067ba01
mov esp, ebp
pop ebp
ret 4

Function at 0x61a170
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x82d084]
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 0x61a190
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 0x7d1c88
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.0067ba01
mov esp, ebp
pop ebp
ret 4