joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4e9420
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
push edi
test ebx, ebx
jne 0x4e947a
cmp byte [esi + 0x2c], bl
jne 0x4e9471
mov edx, dword [str.Failed_to_open_file]
mov ecx, edx
mov byte [esi + 0x2c], 1
mov dword [esi + 0x30], 2
lea edi, [ecx + 1]
lea ebx, [ebx]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4e9450
sub ecx, edi
push ecx
push edx
lea ecx, [esi + 0x34]
call fcn.004ed640
mov dword [esi + 0x40], 0xffffffff
mov dword [esi + 0x3c], 0xffffffff
pop edi
pop esi
xor al, al
pop ebx
pop ebp
ret 8
mov edi, dword [esi + 0x18]
test edi, edi
je 0x4e9490
mov ecx, edi
mov edi, dword [edi + 0x28]
push 1
mov eax, dword [ecx]
call dword [eax]
test edi, edi
jne 0x4e9481
push 2
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
push 0
push ebx
mov dword [esi + 8], 0xffffffff
mov dword [esi + 4], 0xffffffff
call fcn.005572e0
push ebx
call fcn.005576f3
push 0
mov edi, eax
push 0
push ebx
mov dword [ebp + 8], edi
call fcn.005572e0
add esp, 0x1c
test edi, edi
jg 0x4e94fc
cmp byte [esi + 0x2c], 0
jne 0x4e9471
mov edx, dword [str.Error_document_empty.]
mov ecx, edx
mov byte [esi + 0x2c], 1
mov dword [esi + 0x30], 0xc
lea edi, [ecx + 1]
mov edi, edi
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4e94f0
jmp 0x4e9457
lea eax, [edi + 1]
push eax
call fcn.00551c81
push ebx
mov ebx, dword [ebp + 8]
mov edi, eax
push 1
push ebx
push edi
mov byte [edi], 0
call fcn.00557924
add esp, 0x14
cmp eax, 1
je 0x4e9554
push edi
call fcn.00551995
add esp, 4
cmp byte [esi + 0x2c], 0
jne 0x4e9471
mov edx, dword [str.Failed_to_open_file]
mov ecx, edx
mov byte [esi + 0x2c], 1
mov dword [esi + 0x30], 2
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4e9548
jmp 0x4e9457
mov byte [edi + ebx], 0
mov eax, edi
cmp byte [edi], 0
mov ecx, edi
je 0x4e957d
mov dl, byte [eax]
cmp dl, 0xd
jne 0x4e9574
inc eax
mov byte [ecx], 0xa
inc ecx
cmp byte [eax], 0xa
jne 0x4e9578
jmp 0x4e9577
mov byte [ecx], dl
inc ecx
inc eax
cmp byte [eax], 0
jne 0x4e9561
mov byte [ecx], 0
mov ecx, esi
mov eax, dword [esi]
push 0
push 0
push edi
call dword [eax + 8]
push edi
call fcn.00551995
add esp, 4
xor eax, eax
cmp byte [esi + 0x2c], al
sete al
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x4ec310
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov esi, ecx
call fcn.004eaad0
push dword [esi + 0x40]
mov dword [esi + 0x30], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 0
call fcn.005527f2
mov ebx, dword [ebp + 8]
push 2
push 0
push ebx
mov dword [esi + 0x40], 0
call fcn.005572e0
push ebx
call fcn.005576f3
push 0
push 0
push ebx
mov edi, eax
call fcn.005572e0
add esp, 0x20
test edi, edi
je 0x4ec3d2
lea eax, [edi + 1]
push eax
call fcn.00550341
push ebx
push edi
push 1
push eax
mov dword [esi + 0x40], eax
call fcn.00557924
add esp, 0x14
cmp eax, edi
je 0x4ec392
mov dword [esi + 0x30], 5
mov eax, 5
jmp 0x4ec3e8
mov eax, dword [esi + 0x40]
mov byte [edi + eax], 0
mov ecx, dword [esi + 0x40]
call fcn.004e9fb0
mov ecx, eax
mov byte [esi + 0x2c], 0
cmp byte [ecx], 0xef
jne 0x4ec3bf
cmp byte [ecx + 1], 0xbb
jne 0x4ec3bf
cmp byte [ecx + 2], 0xbf
jne 0x4ec3bf
mov byte [esi + 0x2c], 1
add ecx, 3
test ecx, ecx
je 0x4ec3dc
cmp byte [ecx], 0
je 0x4ec3dc
mov eax, dword [esi]
push 0
push ecx
mov ecx, esi
call dword [eax + 0x3c]
mov eax, dword [esi + 0x30]
pop edi
pop esi
pop ebx
pop ebp
ret 4
mov dword [esi + 0x30], 0xf
mov eax, 0xf
pop edi
mov dword [esi + 0x3c], 0
mov dword [esi + 0x38], 0
pop esi
pop ebx
pop ebp
ret 4
Function at 0x4f50a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x60f520]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
lea eax, [ebp - 8]
xor esi, esi
push eax
push 0x2001f
push esi
push str.SOFTWAREAppleDesktop
push SysReAllocString
mov dword [ebp - 8], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
mov dword [ebp - 0xc], 1
lea eax, [ebp - 8]
cmove esi, dword [ebp - 8]
push eax
lea eax, [ebp - 0xc]
mov dword [ebp - 8], 4
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push 0x5cc008
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, dword [ebp - 0xc]
test esi, esi
je 0x4f510d
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.0055199a
mov esp, ebp
pop ebp
ret

Function at 0x4f5120
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x60f520]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
lea eax, [ebp - 8]
xor esi, esi
push eax
push 0x2001f
push esi
push str.SOFTWAREAppleDesktop
push SysReAllocString
mov dword [ebp - 8], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
mov dword [ebp - 0xc], 1
lea eax, [ebp - 8]
cmove esi, dword [ebp - 8]
push eax
lea eax, [ebp - 0xc]
mov dword [ebp - 8], 4
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push 0x5cc0a8
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, dword [ebp - 0xc]
test esi, esi
je 0x4f518d
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.0055199a
mov esp, ebp
pop ebp
ret
Function at 0x4f7e50
Capabilities:
Check if file exists
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x60f520]
xor eax, ebp
mov dword [ebp - 4], eax
lea ecx, [ebp - 0xc]
mov dword [ebp - 8], 0xffffffff
mov dword [ebp - 0xc], 0
call fcn.004f7e30
push dword [ebp - 0xc]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4f7ea9
mov edx, dword [ebp - 0xc]
or ecx, 0xffffffff
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jle 0x4f7f16
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0055199a
mov esp, ebp
pop ebp
ret
push 0x38
lea eax, [ebp - 0x44]
push 0
push eax
call fcn.00559380
mov eax, dword [ebp - 0xc]
add esp, 0xc
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x48]
mov dword [ebp - 0x48], 0x3c
mov dword [ebp - 0x34], str._install
push eax
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x44], 0x40
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x4f7e83
push 0xffffffffffffffff
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 8]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov edx, dword [ebp - 0xc]
or ecx, 0xffffffff
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4f7f1e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 8]
xor ecx, ebp
call fcn.0055199a
mov esp, ebp
pop ebp
ret

Function at 0x4f8480
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x60f520]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov ebx, edx
lea eax, [ebp - 8]
push 0x5c858c
push ecx
xor esi, esi
push eax
mov dword [ebx], 0
mov dword [ebp - 8], esi
call fcn.00557142
mov eax, dword [ebp - 8]
add esp, 0xc
test eax, eax
je 0x4f8533
push edi
push 2
push esi
push eax
call fcn.005572e0
push dword [ebp - 8]
call fcn.005576f3
push eax
mov dword [ebp - 0xc], eax
call fcn.00551ee7
mov edi, eax
add esp, 0x14
test edi, edi
je 0x4f84ff
push esi
push esi
push dword [ebp - 8]
call fcn.005572e0
push dword [ebp - 8]
push dword [ebp - 0xc]
push 1
push edi
call fcn.00557924
mov esi, eax
add esp, 0x1c
test esi, esi
je 0x4f84ff
mov dword [ebx], edi
mov ecx, dword [ebp - 8]
test ecx, ecx
je 0x4f850f
push ecx
call fcn.00557a3c
add esp, 4
test esi, esi
jne 0x4f8520
test edi, edi
je 0x4f8520
push edi
call fcn.00551f79
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0055199a
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0055199a
mov esp, ebp
pop ebp
ret
Function at 0x4f9c50
Capabilities:
Check if file exists
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a4fa8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x60f520]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
call fcn.0050acc0
cmp dword [0x640f9c], 0
je 0x4f9d4f
call fcn.0040bce0
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x4f9caa
push 0x80004005
call fcn.0040c390
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 0
lea eax, [ebp - 0x18]
test esi, esi
je 0x4f9ccc
push str.Install_Force
jmp 0x4f9cd1
push str.Install
push str._dll_launch_s
push eax
call fcn.00422de0
add esp, 0xc
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 0x14]
call fcn.004fb3c0
push dword [ebp - 0x14]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov esi, dword [ebp - 0x18]
test eax, eax
je 0x4f9d10
push 0
push 0
push esi
push dword [ebp - 0x14]
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov edx, dword [ebp - 0x14]
or edi, 0xffffffff
add edx, 0xfffffff0
mov eax, edi
lea ecx, [edx + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x4f9d2f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x4f9d56
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x4f9d56
mov edx, esi
call fcn.004f8840
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0055199a
mov esp, ebp
pop ebp
ret
Function at 0x4fa110
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a5038
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x60f520]
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
push 0x5be0e4
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
mov edx, SysReAllocString
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 0x14]
call fcn.00516c80
add esp, 8
mov dword [ebp - 4], 0
call fcn.0040bce0
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x4fa17f
push 0x80004005
call fcn.0040c390
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.004fb420
mov byte [ebp - 4], 2
push dword [eax]
lea eax, [ebp - 0x18]
push str.__s___fromautorun
push eax
call fcn.00422de0
mov byte [ebp - 4], 1
or edi, 0xffffffff
mov edx, dword [ebp - 0x1c]
add esp, 0xc
add edx, 0xfffffff0
mov eax, edi
lea ecx, [edx + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x4fa1d2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x18]
xor eax, eax
test esi, esi
setne al
test eax, eax
jne 0x4fa1ea
push 0x80004005
call fcn.0040c390
push esi
push dword [ebp - 0x14]
call fcn.00551d79
xor ebx, ebx
mov byte [ebp - 4], 0
add esp, 8
mov ecx, edi
test eax, eax
sete bl
add esi, 0xfffffff0
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4fa21a
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov esi, dword [ebp - 0x14]
add esi, 0xfffffff0
lea eax, [esi + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x4fa23b
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, ebx
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.0055199a
mov esp, ebp
pop ebp
ret
Function at 0x4fa260
Capabilities:
Delete registry value
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a5070
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x60f520]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
call fcn.004fa110
cmp eax, esi
je 0x4fa371
test esi, esi
je 0x4fa392
call fcn.0040bce0
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x4fa2be
push 0x80004005
call fcn.0040c390
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 0
call fcn.004fb420
mov byte [ebp - 4], 1
push dword [eax]
lea eax, [ebp - 0x14]
push str.__s___fromautorun
push eax
call fcn.00422de0
mov byte [ebp - 4], 0
or ebx, 0xffffffff
mov edx, dword [ebp - 0x18]
add esp, 0xc
add edx, 0xfffffff0
mov eax, ebx
lea ecx, [edx + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x4fa314
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x14]
mov ecx, esi
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4fa320
sub ecx, edx
mov edx, str.SOFTWAREMicrosoftWindowsCurrentVersionRun
sar ecx, 1
push ecx
lea eax, [ecx*2 + 2]
push eax
push esi
push 1
push 0x5be0e4
call fcn.00516d70
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
add esp, 0x14
mov edi, eax
lea ecx, [esi + 0xc]
lock xadd dword [ecx], ebx
dec ebx
test ebx, ebx
jg 0x4fa36d
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
test edi, edi
jne 0x4fa3b0
mov eax, 1
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.0055199a
mov esp, ebp
pop ebp
ret
push 0x5be0e4
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHDeleteValueW]
test eax, eax
je 0x4fa371
cmp eax, 2
je 0x4fa371
xor eax, eax
jmp 0x4fa376
Function at 0x4fa3c0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a50a8
mov eax, dword fs:[0]
push eax
sub esp, 0x234
mov eax, dword [0x60f520]
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
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
cmp edi, 0xffffffff
je 0x4fa512
push 0x228
lea eax, [ebp - 0x23c]
push 0
push eax
call fcn.00559380
add esp, 0xc
mov dword [ebp - 0x240], 0x22c
lea eax, [ebp - 0x240]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x4fa50b
or ebx, 0xffffffff
lea esp, [esp]
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x14], 0
push eax
lea ecx, [ebp - 0x14]
call fcn.0040c2d0
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x14]
mov esi, dword [eax - 0xc]
test esi, esi
js 0x4fa55f
mov ecx, dword [eax - 8]
mov edx, 1
sub edx, dword [eax - 4]
sub ecx, esi
or ecx, edx
jge 0x4fa488
push esi
lea ecx, [ebp - 0x14]
call fcn.0040c110
mov eax, dword [ebp - 0x14]
lea ecx, [esi + 1]
push ecx
push eax
call fcn.005540bc
mov eax, dword [ebp - 0x14]
add esp, 8
cmp esi, dword [eax - 8]
jg 0x4fa55f
mov dword [eax - 0xc], esi
xor ecx, ecx
mov eax, dword [ebp - 0x14]
mov word [eax + esi*2], cx
mov eax, dword [ebp - 0x14]
cmp dword [eax - 0xc], ecx
jl 0x4fa4d5
push 0x5cc88c
push eax
call fcn.00552a08
mov ecx, eax
add esp, 8
mov eax, dword [ebp - 0x14]
test ecx, ecx
je 0x4fa4d5
sub ecx, eax
sar ecx, 1
cmp ecx, 0xffffffff
jne 0x4fa530
lea edx, [eax - 0x10]
mov dword [ebp - 4], 0xffffffff
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4fa4f5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x240]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x4fa440
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
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.0055199a
mov esp, ebp
pop ebp
ret
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0xffffffff
mov esi, dword [ebp - 0x14]
add esi, 0xfffffff0
lea eax, [esi + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x4fa558
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, 1
jmp 0x4fa514
push 0x80070057
call fcn.0040c390
int3
Function at 0x4fb420
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3fc
mov eax, dword [0x60f520]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x3e8
lea eax, [ebp - 0x3ec]
mov dword [ebp - 0x3fc], 0
push 0
push eax
mov esi, ecx
call fcn.00559380
add esp, 0xc
mov dword [ebp - 0x3f8], 0
lea eax, [ebp - 0x3f8]
push eax
push 0x20019
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_PathsiApple.exe
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4fb4c7
mov dword [ebp - 0x3f0], eax
lea eax, [ebp - 0x3f4]
push eax
lea eax, [ebp - 0x3ec]
mov dword [ebp - 0x3f4], 0x104
push eax
lea eax, [ebp - 0x3f0]
push eax
push 0
push 0x5bc584
push dword [ebp - 0x3f8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x3f8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea eax, [ebp - 0x3ec]
push eax
call edi
test eax, eax
lea eax, [ebp - 0x3ec]
je 0x4fb4fa
push eax
mov ecx, esi
call fcn.0040c2d0
pop edi
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0055199a
mov esp, ebp
pop ebp
ret
push ebx
push 0x1f4
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov ebx, dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x3ec]
push 0x5beefc
push eax
call ebx
push str.iApple.exe
lea eax, [ebp - 0x3ec]
push eax
call ebx
lea eax, [ebp - 0x3ec]
push eax
call edi
test eax, eax
lea eax, [ebp - 0x3ec]
jne 0x4fb560
push str.....iApple.exe
push eax
call ebx
lea eax, [ebp - 0x3ec]
push eax
call edi
test eax, eax
je 0x4fb563
lea eax, [ebp - 0x3ec]
push eax
jmp 0x4fb568
push 0x5bc584
mov ecx, esi
call fcn.0040c2d0
mov ecx, dword [ebp - 4]
mov eax, esi
pop ebx
pop edi
xor ecx, ebp
pop esi
call fcn.0055199a
mov esp, ebp
pop ebp
ret
Function at 0x4fb590
Capabilities:
Create directory
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a5270
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x60f520]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov ebx, ecx
mov edx, str.AppleDesktopData
mov dword [ebp - 0x1c], 0
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], 0
call fcn.0050b050
mov dword [ebp - 4], 0
push dword [ebp - 0x14]
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x4fb602
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push esi
lea ecx, [ebp - 0x18]
call fcn.0040c2d0
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 1
push eax
lea edx, [ebp - 0x14]
mov ecx, ebx
call fcn.00513e30
mov byte [ebp - 4], 0
or edi, 0xffffffff
mov edx, dword [ebp - 0x18]
add esp, 4
add edx, 0xfffffff0
mov eax, edi
lea ecx, [edx + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x4fb643
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov esi, dword [ebp - 0x14]
add esi, 0xfffffff0
lea eax, [esi + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x4fb664
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, ebx
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.0055199a
mov esp, ebp
pop ebp
ret

Function at 0x4fb690
Capabilities:
Create directory
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a5270
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x60f520]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov ebx, ecx
mov edx, str.UserData
mov dword [ebp - 0x1c], 0
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], 0
call fcn.004fb590
mov dword [ebp - 4], 0
push dword [ebp - 0x14]
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x4fb702
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push esi
lea ecx, [ebp - 0x18]
call fcn.0040c2d0
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 1
push eax
lea edx, [ebp - 0x14]
mov ecx, ebx
call fcn.00513e30
mov byte [ebp - 4], 0
or edi, 0xffffffff
mov edx, dword [ebp - 0x18]
add esp, 4
add edx, 0xfffffff0
mov eax, edi
lea ecx, [edx + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x4fb743
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov esi, dword [ebp - 0x14]
add esi, 0xfffffff0
lea eax, [esi + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x4fb764
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, ebx
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.0055199a
mov esp, ebp
pop ebp
ret