joyce8/EMBER2024-capa huggingface dataset:
Function at 0x431c90
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x56b114]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x108]
push 0x104
xor esi, esi
push esi
push eax
call fcn.004c5d00
add esp, 0xc
lea eax, [ebp - 0x10c]
push eax
push 1
push esi
push str.SoftwareMicrosoftWindowsCurrentVersionR2Games
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x431d26
lea eax, [ebp - 0x110]
mov dword [ebp - 0x110], 0x104
push eax
lea eax, [ebp - 0x108]
push eax
push esi
push esi
push str.R2GamesHCIDir
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x431d26
push 0x104
lea eax, [ebp - 0x108]
push edi
push eax
call sym.R2ClientInstall.exe_public:_static_bool___cdecl_CCharacterConversion::Utf8ToUnicode_char_const___wchar_t___unsigned_int_
add esp, 0xc
mov esi, 1
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.004c360c
mov esp, ebp
pop ebp
ret 4

Function at 0x431d50
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x56b114]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x108]
push 0x104
push 0
push eax
call fcn.004c5d00
push 0x104
lea eax, [ebp - 0x108]
push eax
push esi
call sym.R2ClientInstall.exe_public:_static_bool___cdecl_CCharacterConversion::UnicodeToUtf8_wchar_t_const___char___unsigned_int_
add esp, 0x18
pop esi
test al, al
je 0x431e2a
lea eax, [ebp - 0x110]
mov dword [ebp - 0x110], 3
push eax
lea eax, [ebp - 0x10c]
push eax
push 0
push 0x20006
push 0
push 0
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionR2Games
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x431e2a
lea ecx, [ebp - 0x108]
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x431de0
sub ecx, edx
lea eax, [ecx + 1]
push eax
lea eax, [ebp - 0x108]
push eax
push 1
push 0
push str.R2GamesHCIDir
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004c360c
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.004c360c
mov esp, ebp
pop ebp
ret 4
Function at 0x431e40
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x56b114]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x228
lea eax, [ebp - 0x22c]
push 0
push eax
call fcn.004c5d00
add esp, 0xc
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
je 0x431ef5
lea eax, [ebp - 0x230]
mov dword [ebp - 0x230], 0x22c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x431ef5
mov edi, dword [sym.imp.KERNEL32.dll_Process32NextW]
lea eax, [ebp - 0x230]
push eax
push esi
call edi
test eax, eax
je 0x431ef5
mov ebx, dword [ebp + 8]
mov eax, ebx
lea ecx, [ebp - 0x20c]
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x431ede
test dx, dx
je 0x431eda
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x431ede
add ecx, 4
add eax, 4
test dx, dx
jne 0x431eb8
xor eax, eax
jmp 0x431ee3
sbb eax, eax
or eax, 1
test eax, eax
je 0x431f0a
lea eax, [ebp - 0x230]
push eax
push esi
call edi
test eax, eax
jne 0x431eb0
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004c360c
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004c360c
mov esp, ebp
pop ebp
ret 4
Function at 0x431f30
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x640
mov eax, dword [0x56b114]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
mov dword [ebp - 0x640], 0x22c
lea eax, [ebp - 0x640]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
jne 0x431f7d
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004c360c
mov esp, ebp
pop ebp
ret 4
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.004c5d00
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0x20c]
add esp, 0xc
sub edx, ecx
nop
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x431fa0
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.004ceb99
mov ebx, dword [sym.imp.KERNEL32.dll_Process32NextW]
lea eax, [ebp - 0x640]
add esp, 4
push eax
push edi
call ebx
test eax, eax
je 0x432096
push esi
nop dword [eax]
push 0x208
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.004c5d00
add esp, 0xc
xor eax, eax
nop dword [eax + eax]
movzx ecx, word [ebp + eax - 0x61c]
lea eax, [eax + 2]
mov word [ebp + eax - 0x416], cx
test cx, cx
jne 0x432000
lea eax, [ebp - 0x414]
push eax
call fcn.004ceb99
add esp, 4
lea ecx, [ebp - 0x20c]
lea eax, [ebp - 0x414]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x432059
test dx, dx
je 0x432055
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x432059
add eax, 4
add ecx, 4
test dx, dx
jne 0x432033
xor eax, eax
jmp 0x43205e
sbb eax, eax
or eax, 1
test eax, eax
jne 0x432083
push dword [ebp - 0x638]
push eax
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x640]
push eax
push edi
call ebx
test eax, eax
jne 0x431fe0
pop esi
mov ecx, dword [ebp - 4]
mov eax, 1
pop ebx
xor ecx, ebp
pop edi
call fcn.004c360c
mov esp, ebp
pop ebp
ret 4
Function at 0x432b90
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x20
mov eax, dword [0x56b114]
xor eax, esp
mov dword [esp + 0x1c], eax
push esi
mov esi, dword [ebp + 0xc]
lea ecx, [esp + 8]
push edi
mov edi, dword [ebp + 8]
xor eax, eax
push 0x2d
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 7
mov word [esp + 0x14], ax
call fcn.0040e140
cmp dword [esp + 0x20], 8
lea ecx, [esp + 8]
push ecx
push 0x20006
lea eax, [esp + 0x14]
cmovae eax, dword [esp + 0x14]
push 0
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x432c44
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x432c07
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp dword [esi + 0x14], 8
lea eax, [eax*2 + 2]
jb 0x432c1d
mov esi, dword [esi]
cmp dword [edi + 0x14], 8
jb 0x432c25
mov edi, dword [edi]
push eax
push esi
push 1
push 0
push edi
push dword [esp + 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [esp + 8]
test eax, eax
je 0x432c76
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor esi, esi
mov edx, dword [esp + 0x20]
cmp edx, 8
jb 0x432c8d
mov ecx, dword [esp + 0xc]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x432c83
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x432ca2
jmp 0x432c83
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, 1
jmp 0x432c46
push edx
push ecx
call fcn.004c3d01
add esp, 8
mov ecx, dword [esp + 0x24]
mov eax, esi
pop edi
pop esi
xor ecx, esp
call fcn.004c360c
mov esp, ebp
pop ebp
ret 8
call fcn.004cac9c
int3
Function at 0x432cb0
Capabilities:
Delete registry key
Delete registry value
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f2028
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x56b114]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0xf
xor eax, eax
mov dword [ebp - 0x30], 0
push 0x51db9c
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
call fcn.0040e140
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
push 0x2d
xor eax, eax
mov dword [ebp - 0x18], 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.0040e140
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x5c]
push ecx
push 0x20006
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push 0
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x432d50
xor bl, bl
jmp 0x432d7e
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push eax
push dword [ebp - 0x5c]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 0x5c]
test eax, eax
je 0x432d76
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor bl, bl
jmp 0x432d7e
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov bl, 1
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x432db8
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x432dae
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x432ead
push edx
push ecx
call fcn.004c3d01
add esp, 8
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
cmp edx, 8
jb 0x432e0d
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x432e03
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x432eb2
push edx
push ecx
call fcn.004c3d01
add esp, 8
push 0x15
xor eax, eax
mov dword [ebp - 0x48], 0
push str.r2client_local_server
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
call fcn.0040e140
cmp dword [ebp - 0x44], 8
lea eax, [ebp - 0x58]
cmovae eax, dword [ebp - 0x58]
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegDeleteTreeW]
mov edx, dword [ebp - 0x44]
test eax, eax
sete bh
cmp edx, 8
jb 0x432e82
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x432e78
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x432eb7
push edx
push ecx
call fcn.004c3d01
add esp, 8
test bl, bl
je 0x432e91
test bh, bh
je 0x432e91
mov eax, 1
jmp 0x432e93
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004c360c
mov esp, ebp
pop ebp
ret
call fcn.004cac9c
call fcn.004cac9c
call fcn.004cac9c
int3
Function at 0x432ec0
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x14], 8
jb 0x432ece
mov eax, dword [eax]
lea ecx, [ebp + 0xc]
push ecx
push 0x20006
push 0
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x432f09
mov eax, dword [ebp + 0x10]
cmp dword [eax + 0x14], 8
jb 0x432ef2
mov eax, dword [eax]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp + 0xc]
test eax, eax
je 0x432f0f
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop ebp
ret 0xc
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
pop ebp
ret 0xc

Function at 0x4334b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
mov ecx, 0
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, 0x811c9dc5
sub edx, edi
sar edx, 1
add edx, edx
je 0x4334e1
nop dword [eax]
movzx eax, byte [ecx + edi]
inc ecx
xor eax, esi
imul esi, eax, 0x1000193
cmp ecx, edx
jb 0x4334d0
pop edi
mov eax, esi
pop esi
pop ebp
ret 8
Function at 0x43e060
Capabilities:
Delete directory
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xa5c
mov eax, dword [0x56b114]
xor eax, esp
mov dword [esp + 0xa58], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [esp + 0x260]
push 0x800
push 0
push eax
call fcn.004c5d00
add esp, 0xc
lea eax, [esp + 0x260]
push edi
push 0x51e1a0
push eax
call fcn.0040f7d0
add esp, 0xc
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x264]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x43e198
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov ecx, 0x51e1b0
lea eax, [esp + 0x3c]
nop word [eax + eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x43e106
test dx, dx
je 0x43e102
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x43e106
add eax, 4
add ecx, 4
test dx, dx
jne 0x43e0e0
xor eax, eax
jmp 0x43e10b
sbb eax, eax
or eax, 1
test eax, eax
je 0x43e17a
mov eax, 0x51e1b4
lea ecx, [esp + 0x3c]
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x43e13e
test dx, dx
je 0x43e13a
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x43e13e
add ecx, 4
add eax, 4
test dx, dx
jne 0x43e118
xor eax, eax
jmp 0x43e143
sbb eax, eax
or eax, 1
test eax, eax
je 0x43e17a
test byte [esp + 0x10], 0x10
je 0x43e17a
lea eax, [esp + 0x3c]
push eax
push edi
lea eax, [esp + 0x268]
push 0x51703c
push eax
call fcn.0040f7d0
lea eax, [esp + 0x270]
push eax
call sym.R2ClientInstall.exe_bool___cdecl_FileOps::DeleteDirectoryIfEmpty_wchar_t_const__
add esp, 0x14
test al, al
je 0x43e18a
lea eax, [esp + 0x10]
push eax
push esi
call ebx
test eax, eax
jne 0x43e0d1
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov ecx, dword [esp + 0xa64]
mov al, 1
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004c360c
mov esp, ebp
pop ebp
ret

Function at 0x43e1b0
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xa5c
mov eax, dword [0x56b114]
xor eax, esp
mov dword [esp + 0xa58], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [esp + 0x258]
push esi
push edi
push ebx
push 0x51e1a0
push eax
call fcn.0040f7d0
add esp, 0xc
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x264]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x43e249
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileW]
test byte [esp + 0x10], 0x10
jne 0x43e236
lea eax, [esp + 0x3c]
push eax
push ebx
lea eax, [esp + 0x268]
push 0x51703c
push eax
call fcn.0040f7d0
add esp, 0x10
lea eax, [esp + 0x260]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [esp + 0x10]
push eax
push esi
call edi
test eax, eax
jne 0x43e206
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [esp + 0xa64]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004c360c
mov esp, ebp
pop ebp
ret
Function at 0x43e260
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa90
mov eax, dword [0x56b114]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x80c]
push esi
push edi
push 0x800
xor esi, esi
push esi
push eax
call fcn.004c5d00
add esp, 0xc
lea eax, [ebp - 0x80c]
push ebx
push 0x51e1a0
push eax
call fcn.0040f7d0
add esp, 0xc
lea eax, [ebp - 0xa8c]
push eax
lea eax, [ebp - 0x80c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x43e2e0
lea eax, [esi + 1]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004c360c
mov esp, ebp
pop ebp
ret
mov ecx, 0x51e1b0
lea eax, [ebp - 0xa60]
nop dword [eax + eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x43e316
test dx, dx
je 0x43e312
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x43e316
add eax, 4
add ecx, 4
test dx, dx
jne 0x43e2f0
xor eax, eax
jmp 0x43e31b
sbb eax, eax
or eax, 1
test eax, eax
je 0x43e3bd
mov eax, 0x51e1b4
lea ecx, [ebp - 0xa60]
nop
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x43e356
test dx, dx
je 0x43e352
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x43e356
add ecx, 4
add eax, 4
test dx, dx
jne 0x43e330
xor eax, eax
jmp 0x43e35b
sbb eax, eax
or eax, 1
test eax, eax
je 0x43e3bd
lea eax, [ebp - 0xa60]
push eax
push ebx
lea eax, [ebp - 0x80c]
push 0x51703c
push eax
call fcn.0040f7d0
add esp, 0x10
test byte [ebp - 0xa8c], 0x10
je 0x43e397
lea eax, [ebp - 0x80c]
push eax
call sym.R2ClientInstall.exe_unsigned_int___cdecl_FileOps::GetDirectorySize_wchar_t_const__
add esp, 4
add esi, eax
jmp 0x43e3bd
lea eax, [ebp - 0x83c]
push eax
lea eax, [ebp - 0x80c]
push eax
call fcn.004d79ca
mov ecx, dword [ebp - 0x828]
xor edx, edx
add esp, 8
cmp eax, 0xffffffff
cmove ecx, edx
add esi, ecx
lea eax, [ebp - 0xa8c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x43e2e0
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 8]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004c360c
mov esp, ebp
pop ebp
ret

Function at 0x43e480
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x43e49c
test al, 0x10
jne 0x43e49c
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x43e4a0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x43e4bc
test al, 0x10
je 0x43e4bc
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x43e4d0
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x56b114]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x118]
push edi
mov edi, dword [ebp + 8]
push eax
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [ebp - 0x108]
cmp eax, 2
jne 0x43e536
test esi, esi
je 0x43e51c
push 5
push 0
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
push 5
push esi
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004c360c
mov esp, ebp
pop ebp
ret
push str.wininit.ini
push esi
push edi
push str.rename
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004c360c
mov esp, ebp
pop ebp
ret

Function at 0x43e560
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x56b114]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x118]
push eax
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [ebp - 0x108]
cmp eax, 2
jne 0x43e5b3
push 5
push 0
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004c360c
mov esp, ebp
pop ebp
ret
push str.wininit.ini
push 0
push esi
push str.rename
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004c360c
mov esp, ebp
pop ebp
ret

Function at 0x43e5e0
Capabilities:
Check if file exists
Get file attributes
Move file

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0x10], 0
jne 0x43e5ff
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x43e5ff
test al, 0x10
jne 0x43e5ff
xor eax, eax
pop ebp
ret
push 3
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
pop ebp
ret
Function at 0x43e610
Capabilities:
Check if file exists
Create directory
Enumerate files on windows
Enumerate files recursively
Get file attributes
Move file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1a5c
call fcn.004c47b0
mov eax, dword [0x56b114]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x1008]
push esi
mov esi, dword [ebp + 0xc]
push edi
push 0x800
push 0
push eax
mov dword [ebp - 0x1a5c], ebx
call fcn.004c5d00
add esp, 0xc
lea eax, [ebp - 0x808]
push 0x800
push 0
push eax
call fcn.004c5d00
add esp, 0xc
lea eax, [ebp - 0x1808]
push ebx
push 0x51e1a0
push eax
call fcn.0040f7d0
add esp, 0xc
lea eax, [ebp - 0x1a58]
push eax
lea eax, [ebp - 0x1808]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x43e7e6
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
nop dword [eax]
mov ecx, 0x51e1b0
lea eax, [ebp - 0x1a2c]
nop dword [eax + eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x43e6d6
test dx, dx
je 0x43e6d2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x43e6d6
add eax, 4
add ecx, 4
test dx, dx
jne 0x43e6b0
xor eax, eax
jmp 0x43e6db
sbb eax, eax
or eax, 1
test eax, eax
je 0x43e7c9
mov eax, 0x51e1b4
lea ecx, [ebp - 0x1a2c]
nop
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x43e716
test dx, dx
je 0x43e712
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x43e716
add ecx, 4
add eax, 4
test dx, dx
jne 0x43e6f0
xor eax, eax
jmp 0x43e71b
sbb eax, eax
or eax, 1
test eax, eax
je 0x43e7c9
lea eax, [ebp - 0x1a2c]
push eax
push dword [ebp - 0x1a5c]
lea eax, [ebp - 0x1008]
push 0x51703c
push eax
call fcn.0040f7d0
lea eax, [ebp - 0x1a2c]
push eax
push esi
lea eax, [ebp - 0x808]
push 0x51703c
push eax
call fcn.0040f7d0
add esp, 0x20
test byte [ebp - 0x1a58], 0x10
je 0x43e7b3
lea eax, [ebp - 0x1008]
push esi
push eax
call fcn.004cdf26
add esp, 8
test eax, eax
je 0x43e7c9
lea eax, [ebp - 0x808]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x43e790
test al, 0x10
jne 0x43e79b
push 0
lea eax, [ebp - 0x808]
push eax
call ebx
lea eax, [ebp - 0x808]
push eax
lea eax, [ebp - 0x1008]
push eax
call sym.R2ClientInstall.exe_void___cdecl_FileOps::MoveDirectory_wchar_t_const___wchar_t_const__
add esp, 8
jmp 0x43e7c9
push 3
lea eax, [ebp - 0x808]
push eax
lea eax, [ebp - 0x1008]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
lea eax, [ebp - 0x1a58]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x43e6a0
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004c360c
mov esp, ebp
pop ebp
ret