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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x520b38]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jbe 0x46438d
cmp al, 4
jne 0x46438d
push str.windir
call dword [0x4e1494]
push eax
lea eax, [ebp - 0x108]
push 0x104
push eax
call dword [0x4e1658]
add esp, 0x10
cmp byte [ebp - 0x108], 0
je 0x464406
push str.All_UsersApplication_DataIntuitEntitlement_Client
jmp 0x4643ca
push 0
push 0x23
lea eax, [ebp - 0x108]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
jne 0x4643c5
xorps xmm0, xmm0
mov dword [ebp - method.std::exception.virtual_0], vtable.std::exception.0
movq qword [ebp - 0x110], xmm0
mov dword [ebp - 0x11c], str.Failed_to_get_the_CSIDL_COMMON_APPDATA_variable_value
jmp 0x464425
push str.IntuitEntitlement_Client
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendA]
lea eax, [ebp - 0x108]
push eax
call esi
push str.manifest.ecml
lea eax, [ebp - 0x108]
push eax
call esi
lea eax, [ebp - 0x108]
push eax
lea ecx, [edi + 0xc]
call fcn.0045db30
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004c35dc
mov esp, ebp
pop ebp
ret
xorps xmm0, xmm0
mov dword [ebp - method.std::exception.virtual_0], vtable.std::exception.0
movq qword [ebp - 0x110], xmm0
mov dword [ebp - 0x11c], str.Failed_to_get_the_windir_environment_variable_value
lea eax, [ebp - 0x110]
mov byte [ebp - 0x118], 1
push eax
lea eax, [ebp - 0x11c]
push eax
call dword [0x4e1450]
add esp, 8
mov dword [ebp - method.std::exception.virtual_0], vtable.std::runtime_error.0
lea eax, [ebp - 0x114]
push 0x50d824
push eax
call fcn.004c5558
int3

Function at 0x464c30
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, ecx
cmp dword [esi + 4], 0
jne 0x464c53
mov dword [esi + 0x11c], 0xfffffffe
mov eax, 0xfffffffe
pop esi
mov esp, ebp
pop ebp
ret
push edi
lea eax, [ebp - 8]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 4]
mov dword [ebp - 8], 0
push eax
call fcn.004658c0
mov dword [esi + 0x11c], eax
lea edi, [esi + 0x11c]
test eax, eax
jne 0x464d03
cmp dword [ebp - 4], eax
jbe 0x464c99
mov dword [edi], 0xfffffff4
mov eax, 0xfffffff4
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push edi
push dword [esi + 0x12c]
push dword [esi + 0x110]
call fcn.00465820
mov ecx, eax
call fcn.004a5a20
mov ecx, eax
mov eax, dword [edi]
test eax, eax
jne 0x464d03
test ecx, ecx
je 0x464d03
push ebx
lea ebx, [esi + 8]
push ebx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov dword [edi], eax
test eax, eax
jne 0x464d00
push 0x106
push eax
push ebx
mov dword [esi + 4], eax
call fcn.004c5552
add esp, 0xc
mov dword [esi + 0x110], 9
mov dword [esi + 0x114], 0
mov dword [esi + 0x118], 0
mov eax, dword [edi]
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x464d10
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
push esi
mov esi, ecx
test edx, edx
je 0x464d68
mov eax, edx
push edi
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x464d23
sub eax, edi
pop edi
je 0x464d68
mov eax, dword [esi + 4]
test eax, eax
jne 0x464d4a
mov dword [esi + 0x11c], 0xfffffffe
mov eax, 0xfffffffe
pop esi
pop ebp
ret 4
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
cmp eax, 2
mov ecx, 3
cmove eax, ecx
mov dword [esi + 0x11c], eax
pop esi
pop ebp
ret 4
mov dword [esi + 0x11c], 1
mov eax, 1
pop esi
pop ebp
ret 4
Function at 0x4653b0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, ecx
cmp dword [esi + 4], 0
jne 0x4653d5
mov dword [esi + 0x11c], 0xfffffffe
mov eax, 0xfffffffe
pop esi
mov esp, ebp
pop ebp
ret 8
push edi
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 4]
push eax
push edi
mov dword [ebp - 4], 0
call fcn.004658c0
mov dword [esi + 0x11c], eax
test eax, eax
jne 0x465598
cmp dword [edi], eax
je 0x465598
cmp dword [ebp - 4], eax
je 0x465598
push ebx
lea ebx, [esi + 0x128]
mov ecx, esi
lea eax, [esi + 0x124]
push ebx
push eax
call fcn.004bcd00
mov eax, dword [edi]
xor ecx, ecx
mov dword [ebx], eax
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004c3760
add esp, 4
mov dword [esi + 0x124], eax
test eax, eax
jne 0x465460
mov dword [ebx], eax
mov eax, 0xfffffffd
pop ebx
pop edi
mov dword [esi + 0x11c], 0xfffffffd
pop esi
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp - 4]
xor ebx, ebx
inc eax
push eax
mov dword [ebp - 4], eax
call fcn.004c3760
add esp, 4
mov dword [ebp + 0xc], eax
test eax, eax
jne 0x465495
mov dword [esi + 0x128], ebx
lea eax, [ebx - 3]
pop ebx
pop edi
mov dword [esi + 0x11c], 0xfffffffd
pop esi
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [edi]
mov dword [ebp - 0xc], ecx
mov dword [edi], ebx
nop dword [eax]
mov ecx, dword [ebp - 4]
push 0
push 0
push 0
push 0
mov dword [ebp - 8], ecx
lea ecx, [ebp - 8]
push ecx
push eax
push ebx
push dword [esi + 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov dword [esi + 0x11c], eax
test eax, eax
jne 0x465510
mov eax, dword [ebp - 0xc]
dec eax
cmp dword [edi], eax
ja 0x46554a
mov eax, dword [ebp - 8]
inc eax
push eax
call fcn.004c3760
mov edx, dword [edi]
add esp, 4
mov ecx, dword [esi + 0x124]
mov dword [ecx + edx*4], eax
mov ecx, dword [edi]
mov eax, dword [esi + 0x124]
mov edx, dword [eax + ecx*4]
test edx, edx
je 0x46551f
mov eax, dword [ebp + 0xc]
nop dword [eax]
mov cl, byte [eax]
lea eax, [eax + 1]
mov byte [edx], cl
lea edx, [edx + 1]
test cl, cl
jne 0x465500
inc dword [edi]
inc ebx
cmp dword [esi + 0x11c], 0
jne 0x465554
mov eax, dword [ebp + 0xc]
jmp 0x4654a0
push dword [ebp + 0xc]
mov dword [esi + 0x11c], 0xfffffffd
call fcn.004c3976
mov eax, dword [edi]
add esp, 4
mov dword [esi + 0x128], eax
mov eax, 0xfffffffd
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
mov dword [esi + 0x11c], 0xfffffffd
mov eax, dword [edi]
push dword [ebp + 0xc]
mov dword [esi + 0x128], eax
call fcn.004c3976
add esp, 4
cmp dword [esi + 0x11c], 0x103
jne 0x46557d
mov dword [esi + 0x11c], 0
cmp dword [esi + 0x11c], 0
jne 0x465591
mov eax, dword [ebp + 8]
mov ecx, dword [esi + 0x124]
mov dword [eax], ecx
mov eax, dword [esi + 0x11c]
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x4655a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, ecx
cmp dword [esi + 4], 0
jne 0x4655c5
mov dword [esi + 0x11c], 0xfffffffe
mov eax, 0xfffffffe
pop esi
mov esp, ebp
pop ebp
ret 8
push edi
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 4]
push eax
push edi
mov dword [ebp - 4], 0
call fcn.004659b0
mov dword [esi + 0x11c], eax
test eax, eax
jne 0x465788
cmp dword [edi], eax
je 0x465788
cmp dword [ebp - 4], eax
je 0x465788
push ebx
lea ebx, [esi + 0x128]
mov ecx, esi
lea eax, [esi + 0x124]
push ebx
push eax
call fcn.004bcd00
mov eax, dword [edi]
xor ecx, ecx
mov dword [ebx], eax
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004c3760
add esp, 4
mov dword [esi + 0x124], eax
test eax, eax
jne 0x465650
mov dword [ebx], eax
mov eax, 0xfffffffd
pop ebx
pop edi
mov dword [esi + 0x11c], 0xfffffffd
pop esi
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp - 4]
xor ebx, ebx
inc eax
push eax
mov dword [ebp - 4], eax
call fcn.004c3760
add esp, 4
mov dword [ebp + 0xc], eax
test eax, eax
jne 0x465685
mov dword [esi + 0x128], ebx
lea eax, [ebx - 3]
pop ebx
pop edi
mov dword [esi + 0x11c], 0xfffffffd
pop esi
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [edi]
mov dword [ebp - 0xc], ecx
mov dword [edi], ebx
nop dword [eax]
mov ecx, dword [ebp - 4]
push 0
push 0
push 0
push 0
mov dword [ebp - 8], ecx
lea ecx, [ebp - 8]
push ecx
push eax
push ebx
push dword [esi + 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
mov dword [esi + 0x11c], eax
test eax, eax
jne 0x465700
mov eax, dword [ebp - 0xc]
dec eax
cmp dword [edi], eax
ja 0x46573a
mov eax, dword [ebp - 8]
inc eax
push eax
call fcn.004c3760
mov edx, dword [edi]
add esp, 4
mov ecx, dword [esi + 0x124]
mov dword [ecx + edx*4], eax
mov ecx, dword [edi]
mov eax, dword [esi + 0x124]
mov edx, dword [eax + ecx*4]
test edx, edx
je 0x46570f
mov eax, dword [ebp + 0xc]
nop dword [eax]
mov cl, byte [eax]
lea eax, [eax + 1]
mov byte [edx], cl
lea edx, [edx + 1]
test cl, cl
jne 0x4656f0
inc dword [edi]
inc ebx
cmp dword [esi + 0x11c], 0
jne 0x465744
mov eax, dword [ebp + 0xc]
jmp 0x465690
push dword [ebp + 0xc]
mov dword [esi + 0x11c], 0xfffffffd
call fcn.004c3976
mov eax, dword [edi]
add esp, 4
mov dword [esi + 0x128], eax
mov eax, 0xfffffffd
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
mov dword [esi + 0x11c], 0xfffffffd
mov eax, dword [edi]
push dword [ebp + 0xc]
mov dword [esi + 0x128], eax
call fcn.004c3976
add esp, 4
cmp dword [esi + 0x11c], 0x103
jne 0x46576d
mov dword [esi + 0x11c], 0
cmp dword [esi + 0x11c], 0
jne 0x465781
mov eax, dword [ebp + 8]
mov ecx, dword [esi + 0x124]
mov dword [eax], ecx
mov eax, dword [esi + 0x11c]
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x4658c0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x520b38]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
mov dword [ebp - 0x114], eax
cmp dword [esi + 4], 0
jne 0x46590a
mov dword [esi + 0x11c], 0xfffffffe
mov eax, 0xfffffffe
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004c35dc
mov esp, ebp
pop ebp
ret 8
push edi
xor edi, edi
mov dword [esi + 0x11c], 0
mov dword [ebx], edi
mov dword [eax], edi
nop dword [eax + eax]
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x110]
mov dword [ebp - 0x110], 0x107
push eax
lea eax, [ebp - 0x10c]
push eax
push edi
push dword [esi + 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov dword [esi + 0x11c], eax
test eax, eax
jne 0x465968
mov ecx, dword [ebp - 0x114]
mov eax, dword [ebp - 0x110]
cmp eax, dword [ecx]
jbe 0x465966
mov dword [ecx], eax
inc dword [ebx]
inc edi
cmp dword [esi + 0x11c], 0
je 0x465920
cmp dword [esi + 0x11c], 0x103
pop edi
jne 0x465989
mov dword [esi + 0x11c], 0
mov eax, dword [esi + 0x11c]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004c35dc
mov esp, ebp
pop ebp
ret 8

Function at 0x4659b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
cmp dword [esi + 4], 0
jne 0x4659d3
mov dword [esi + 0x11c], 0xfffffffe
mov eax, 0xfffffffe
pop esi
mov esp, ebp
pop ebp
ret 8
push ebx
mov ebx, dword [ebp + 8]
push edi
mov dword [esi + 0x11c], 0
xor edi, edi
push 0x4000
mov dword [ebx], edi
mov dword [ebp + 8], 0x3fff
call fcn.004c3760
mov ecx, eax
add esp, 4
mov dword [ebp - 4], ecx
test ecx, ecx
jne 0x465a19
lea eax, [edi - 3]
mov dword [esi + 0x11c], 0xfffffffd
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp + 0xc]
mov dword [eax], edi
nop
push 0
push 0
push 0
push 0
lea eax, [ebp + 8]
mov dword [ebp + 8], 0x3fff
push eax
push ecx
push edi
push dword [esi + 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
mov dword [esi + 0x11c], eax
test eax, eax
jne 0x465a56
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
cmp eax, dword [ecx]
jbe 0x465a54
mov dword [ecx], eax
inc dword [ebx]
mov ecx, dword [ebp - 4]
inc edi
cmp dword [esi + 0x11c], 0
je 0x465a20
push ecx
call fcn.004c3976
add esp, 4
cmp dword [esi + 0x11c], 0x103
jne 0x465a82
mov dword [esi + 0x11c], 0
mov eax, dword [esi + 0x11c]
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x465c70
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
cmp dword [esi + 4], 0
mov dword [esi + 0x11c], 0
jne 0x465c9d
mov dword [esi + 0x11c], 0xfffffffe
mov eax, 0xfffffffe
pop esi
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [esi + 0x120]
mov eax, 0x400
mov dword [ebp - 4], eax
test ecx, ecx
je 0x465cbb
push ecx
call fcn.004c3976
mov eax, dword [ebp - 4]
add esp, 4
push eax
call fcn.004c3760
add esp, 4
mov dword [esi + 0x120], eax
test eax, eax
jne 0x465ce4
mov dword [esi + 0x11c], 0xfffffffd
mov eax, 0xfffffffd
pop esi
mov esp, ebp
pop ebp
ret 0xc
lea ecx, [ebp - 4]
push ecx
push eax
push dword [ebp + 0x10]
push 0
push dword [ebp + 8]
push dword [esi + 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, 2
mov ecx, 3
cmove eax, ecx
mov dword [esi + 0x11c], eax
cmp eax, 0xea
jne 0x465d51
push dword [esi + 0x120]
call fcn.004c3976
mov eax, dword [ebp - 4]
add eax, eax
push eax
call fcn.004c3760
add esp, 8
mov dword [esi + 0x120], eax
test eax, eax
je 0x465cce
lea ecx, [ebp - 4]
push ecx
push eax
push dword [ebp + 0x10]
push 0
push dword [ebp + 8]
push dword [esi + 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [esi + 0x11c], eax
cmp dword [esi + 0x11c], 0
jne 0x465d65
mov eax, dword [ebp + 0xc]
mov ecx, dword [esi + 0x120]
mov dword [eax], ecx
mov eax, dword [esi + 0x11c]
pop esi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x465fe0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp dword [esi + 4], 0
jne 0x466000
mov dword [esi + 0x11c], 0xfffffffe
mov eax, 0xfffffffe
pop esi
pop ebp
ret 8
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x466019
mov dword [esi + 0x11c], 0xfffffff9
lea eax, [edx - 7]
pop esi
pop ebp
ret 8
mov ecx, dword [ebp + 8]
push ebx
lea ebx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x466020
sub ecx, ebx
cmp ecx, 0xff
jbe 0x46603c
pop ebx
mov eax, 1
pop esi
pop ebp
ret 8
mov ecx, edx
lea ebx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x466041
sub ecx, ebx
lea eax, [ecx + 1]
push eax
push edx
push 1
push 0
push dword [ebp + 8]
push dword [esi + 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop ebx
mov dword [esi + 0x11c], eax
pop esi
pop ebp
ret 8

Function at 0x466070
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp dword [esi + 4], 0
jne 0x466090
mov dword [esi + 0x11c], 0xfffffffe
mov eax, 0xfffffffe
pop esi
pop ebp
ret 8
mov edx, dword [ebp + 8]
mov ecx, edx
push ebx
lea ebx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4660a0
sub ecx, ebx
cmp ecx, 0xff
ja 0x4660f9
mov dword [esi + 0x11c], 0
test edx, edx
je 0x4660ef
mov ecx, edx
lea ebx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4660c4
sub ecx, ebx
je 0x4660ef
push 4
lea eax, [ebp + 0xc]
push eax
push 4
push 0
push edx
push dword [esi + 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop ebx
mov dword [esi + 0x11c], eax
pop esi
pop ebp
ret 8
mov dword [esi + 0x11c], 1
pop ebx
mov eax, 1
pop esi
pop ebp
ret 8
Function at 0x472a80
Capabilities:
Get common file path

Disassembly:
sub esp, 0x210
mov eax, dword [0x520b38]
xor eax, esp
mov dword [esp + 0x20c], eax
push ebx
push esi
mov esi, dword [esp + 0x220]
lea eax, [esp + 8]
push eax
push 0
push 0
push dword [esp + 0x228]
xor bl, bl
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x472afe
cmp word [esp + 8], 0
jne 0x472ac7
xor ecx, ecx
jmp 0x472adf
lea ecx, [esp + 8]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x472ad0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [esp + 0xc]
mov ecx, esi
push eax
call fcn.0047bb30
push 1
push 0x4ea2b8
mov ecx, esi
call fcn.0047b8b0
mov al, 1
jmp 0x472b00
mov al, bl
mov ecx, dword [esp + 0x214]
pop esi
pop ebx
xor ecx, esp
call fcn.004c35dc
add esp, 0x210
ret 8

Function at 0x4792e0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d34c0
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x520b38]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, ecx
mov ecx, dword [ebp + 8]
or edi, 0xffffffff
mov dword [ebp - 0x64], ecx
mov dword [ebp - 0x74], edi
mov eax, dword [ecx]
mov eax, dword [eax + 0x18]
call eax
test al, al
je 0x479424
xor esi, esi
mov dword [ebp - 4], 0
mov dword [ebp - 0x68], esi
mov ecx, dword [ebp - 0x64]
mov byte [ebp - 4], 1
mov eax, dword [ecx]
call dword [eax + 0x14]
lea ecx, [ebp - 0x60]
push ecx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
cmp dword [ebp - 0x40], esi
je 0x479364
push esi
or edi, edi
call fcn.004c3976
add esp, 4
jmp 0x479424
mov eax, dword [ebp - 0x3c]
test eax, eax
jne 0x47939b
push str.__xml_version_1.0__encoding_UTF_16_____KeyValueRepository___KeyValueRepository_
lea ecx, [ebp - 0x2c]
call fcn.00449610
cmp dword [ebp - 0x18], 0x10
lea eax, [ebp - 0x2c]
mov ecx, ebx
mov byte [ebp - 4], 2
cmovae eax, dword [ebp - 0x2c]
push eax
call fcn.00479450
lea ecx, [ebp - 0x2c]
mov edi, eax
call fcn.00439040
jmp 0x4793fa
add eax, 2
push eax
mov dword [ebp - 0x6c], eax
call fcn.004c3760
add esp, 4
mov esi, eax
mov dword [ebp - 0x68], esi
push 0
call fcn.004c3976
add esp, 4
test esi, esi
je 0x479410
push dword [ebp - 0x6c]
mov dword [ebp - 0x70], 0
push 0
push esi
call fcn.004c5552
mov ecx, dword [ebp - 0x64]
add esp, 0xc
mov eax, dword [ecx]
call dword [eax + 0x14]
push 0
lea ecx, [ebp - 0x70]
push ecx
push dword [ebp - 0x3c]
push esi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x479410
push esi
mov ecx, ebx
call fcn.00479450
mov edi, eax
test edi, edi
jne 0x479410
mov eax, dword [ebp - 0x4c]
mov dword [ebx + 0x2c], eax
mov eax, dword [ebp - 0x48]
mov dword [ebx + 0x30], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebx + 0x34], eax
push esi
call fcn.004c3976
add esp, 4
jmp 0x479424
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004c35dc
mov esp, ebp
pop ebp
ret 4
Function at 0x47a390
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d36b8
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push esi
push edi
mov eax, dword [0x520b38]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
or edi, 0xffffffff
mov dword [ebp - 4], 0
mov dword [ebp - 0x1c], edi
call fcn.00479690
mov ecx, dword [esi + 8]
mov eax, 9
mov word [ebp - 0x30], ax
mov dword [ebp - 0x28], ecx
test ecx, ecx
je 0x47a3e8
mov eax, dword [ecx]
push ecx
call dword [eax + 4]
mov ebx, dword [esi + 0xc]
mov byte [ebp - 4], 1
test ebx, ebx
jne 0x47a3fd
push 0x80004003
call fcn.004c5060
movups xmm0, xmmword [ebp - 0x30]
mov ecx, dword [ebx]
sub esp, 0x10
mov eax, esp
push ebx
movups xmmword [eax], xmm0
call dword [ecx + 0x4c]
test eax, eax
jns 0x47a41f
push 0x4ea28c
push ebx
push eax
call fcn.004c5080
mov ebx, dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea eax, [ebp - 0x30]
push eax
mov byte [ebp - 4], 0
call ebx
mov ecx, dword [esi + 0x10]
test ecx, ecx
jne 0x47a440
push 0x80004003
call fcn.004c5060
lea eax, [ebp - 0x40]
push eax
call fcn.004770d0
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.004537b0
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 4
push eax
call ebx
mov ebx, dword [ebp + 8]
mov ecx, ebx
mov eax, dword [ebx]
call dword [eax + 0x14]
push 0
push 0
push 0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x14]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov esi, dword [ebp - 0x14]
test esi, esi
je 0x47a4c9
mov eax, dword [esi]
test eax, eax
je 0x47a4a3
push eax
call dword [sym.imp.OLEAUT32.dll_VariantInit]
mov esi, dword [ebp - 0x14]
mov dword [ebp + 8], eax
jmp 0x47a4aa
mov dword [ebp + 8], 0
test esi, esi
je 0x47a4cd
cmp dword [esi + 4], 0
jne 0x47a4be
push dword [esi]
call fcn.004c5120
mov dword [esi + 4], eax
mov eax, dword [esi + 4]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x18], eax
jmp 0x47a4d7
xor esi, esi
jmp 0x47a4d0
mov esi, dword [ebp + 8]
mov dword [ebp - 0x18], 0
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x14]
push 0
lea ecx, [ebp - 0x20]
push ecx
push esi
push dword [ebp - 0x18]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov esi, dword [ebp - 0x14]
xor ecx, ecx
test eax, eax
cmovne edi, ecx
test esi, esi
je 0x47a54d
or eax, 0xffffffff
lock xadd dword [esi + 8], eax
dec eax
jne 0x47a54d
test esi, esi
je 0x47a54d
mov eax, dword [esi]
test eax, eax
je 0x47a520
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x47a537
push eax
call fcn.004c3976
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.004c35ce
add esp, 8
jmp 0x47a54d
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x47d030
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d39c0
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x520b38]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x14]
xor edi, edi
mov ecx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x4c], eax
xor eax, eax
mov dword [ebp - 0x48], 0x4eb0a8
mov dword [ebp - 0x50], 0x4eaf2c
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], edi
mov word [ebp - 0x40], ax
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], eax
mov word [ebp - 0x28], ax
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 1
push eax
push ecx
lea ecx, [ebp - 0x48]
call fcn.00479570
lea eax, [ebp - 0x28]
push eax
push esi
lea ecx, [ebp - 0x50]
call fcn.00479570
cmp dword [ebp - 0x14], 8
lea edx, [ebp - 0x28]
movzx eax, byte [ebp + 0x10]
lea ecx, [ebp - 0x40]
cmovae edx, dword [ebp - 0x28]
cmp dword [ebp - 0x2c], 8
push eax
cmovae ecx, dword [ebp - 0x40]
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x47d0e7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov ecx, dword [ebp - 0x14]
cmp ecx, 8
jb 0x47d0fe
push 2
inc ecx
push ecx
push dword [ebp - 0x28]
call fcn.00438760
add esp, 0xc
xor eax, eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x18], 0
cmp eax, 8
jb 0x47d129
push 2
inc eax
push eax
push dword [ebp - 0x40]
call fcn.00438760
add esp, 0xc
mov eax, edi
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.004c35dc
mov esp, ebp
pop ebp
ret
Function at 0x47d2f0
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d39c0
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x520b38]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x10]
xor edi, edi
mov ecx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x4c], eax
xor eax, eax
mov dword [ebp - 0x48], 0x4eb0e4
mov dword [ebp - 0x50], 0x4eb0f8
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], edi
mov word [ebp - 0x40], ax
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], eax
mov word [ebp - 0x28], ax
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 1
push eax
push ecx
lea ecx, [ebp - 0x48]
call fcn.00479570
lea eax, [ebp - 0x28]
push eax
push esi
lea ecx, [ebp - 0x50]
call fcn.00479570
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
lea eax, [ebp - 0x40]
cmovae ecx, dword [ebp - 0x28]
cmp dword [ebp - 0x2c], 8
push ecx
cmovae eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x47d3a2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov ecx, dword [ebp - 0x14]
cmp ecx, 8
jb 0x47d3b9
push 2
inc ecx
push ecx
push dword [ebp - 0x28]
call fcn.00438760
add esp, 0xc
xor eax, eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x18], 0
cmp eax, 8
jb 0x47d3e4
push 2
inc eax
push eax
push dword [ebp - 0x40]
call fcn.00438760
add esp, 0xc
mov eax, edi
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.004c35dc
mov esp, ebp
pop ebp
ret