joyce8/EMBER2024-capa huggingface dataset:
Function at 0x426cd6
Capabilities:
Get session information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
xor ebx, ebx
cmp eax, 0xffffffff
jne 0x426cf8
mov dword [edi], ebx
mov dword [edi + 4], ebx
jmp 0x426d9b
lea ecx, [ebp - 0xc]
mov dword [ebp - 8], ebx
push ecx
lea ecx, [ebp - 8]
mov dword [ebp - 0xc], ebx
push ecx
push 0x18
push eax
push ebx
call dword [sym.imp.WTSAPI32.dll_WTSQuerySessionInformationW]
test eax, eax
je 0x426cee
mov esi, dword [ebp - 8]
push 0x18
call fcn.004cbadf
pop ecx
mov ecx, dword [sym.imp.WTSAPI32.dll_WTSFreeMemory]
push eax
mov dword [eax], 1
mov dword [eax + 0x10], ecx
lea ecx, [ebp - 4]
mov dword [eax + 4], 0x427100
mov dword [eax + 8], 0x420fe0
mov dword [eax + 0xc], 0x421a00
mov dword [eax + 0x14], esi
call fcn.0044dcb0
mov esi, dword [ebp - 4]
lea ecx, [ebp - 4]
mov dword [ebp - 4], ebx
call fcn.0044dd40
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], esi
mov dword [ebp - 0x10], ebx
call fcn.0044dd40
cmp dword [ebp - 0xc], 0xd8
jae 0x426d7b
mov dword [edi], ebx
mov dword [edi + 4], ebx
jmp 0x426d93
mov eax, dword [ebp - 8]
mov ecx, edi
push dword [eax + 0xcc]
push dword [eax + 0xc8]
call fcn.0044a690
pop ecx
pop ecx
lea ecx, [ebp - 4]
call fcn.00451ec0
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x42b871
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x51a0a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x51ecac]
lea ecx, [ebp - 0x34]
push ebx
mov eax, dword [eax + 4]
mov edx, dword [eax + 8]
mov edx, dword [edx + 0x14]
call fcn.004320fe
mov eax, dword [0x51ecac]
xor ecx, ecx
push 0x101
mov eax, dword [eax + 4]
cmp byte [eax + 0x1c], cl
lea eax, [ebp - 0x34]
setne cl
xor ebx, ebx
add ecx, 0x80000001
mov dword [ebp - 0x40], ebx
cmp dword [ebp - 0x20], 8
mov dword [ebp - 0x3c], ebx
cmovae eax, dword [ebp - 0x34]
push eax
push ecx
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x38], ebx
call fcn.00442850
test eax, eax
jne 0x42b934
push ebx
push ebx
push ebx
push ebx
push 0x5059f4
push dword [ebp - 0x40]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x42b8f1
mov bl, 1
jmp 0x42b934
xor eax, eax
mov dword [ebp - 8], 7
mov word [ebp - 0x1c], ax
lea ecx, [ebp - 0x40]
lea eax, [ebp - 0x1c]
mov dword [ebp - 0xc], ebx
push eax
push 0x505988
call fcn.00442bb0
test eax, eax
jne 0x42b928
push 0x501404
lea ecx, [ebp - 0x1c]
call fcn.00420f12
test eax, eax
setne bl
push 0
push 1
lea ecx, [ebp - 0x1c]
call fcn.0041b875
lea ecx, [ebp - 0x40]
call fcn.004426e0
push 0
push 1
lea ecx, [ebp - 0x34]
call fcn.0041b875
mov ecx, dword [ebp - 4]
mov al, bl
xor ecx, ebp
pop ebx
call fcn.004cb8a3
mov esp, ebp
pop ebp
ret
Function at 0x42b959
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1d4
mov eax, dword [0x51a0a0]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x84], 0
mov eax, str.chrome.exe
push ebx
push esi
push edi
push ecx
push ecx
mov esi, esp
mov ebx, edx
push eax
mov edi, ecx
mov dword [esi], eax
call fcn.00415b9a
pop ecx
mov dword [esi + 4], eax
lea ecx, [edi + 4]
lea eax, [ebp - 0x50]
push eax
call fcn.0043fdb0
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0xd0]
call fcn.00444920
push str.try_chrome_again
lea ecx, [ebp - 0x80]
call fcn.0041aee6
mov edi, dword [ebx + 0x28]
lea ecx, [ebp - 0x8c]
mov eax, edi
mov byte [ebp - 0x8c], 1
cdq
xor eax, edx
sub eax, edx
mov dword [ebp - 0x88], eax
lea eax, [ebp - 0x90]
push eax
call fcn.00441ea0
push 2
lea ecx, [ebp - 6]
pop ebx
mov esi, dword [eax]
mov eax, esi
xor edx, edx
push 0xa
pop esi
div esi
sub ecx, ebx
mov esi, eax
lea eax, [edx + 0x30]
mov word [ecx], ax
test esi, esi
jne 0x42b9e8
test edi, edi
jns 0x42ba0b
sub ecx, ebx
push 0x2d
pop eax
mov word [ecx], ax
push ecx
lea eax, [ebp - 6]
push eax
push ecx
lea ecx, [ebp - 0x68]
call fcn.00441e20
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x80]
push eax
lea ecx, [ebp - 0xd0]
call fcn.004457f0
xor esi, esi
lea ecx, [ebp - 0x68]
push esi
push 1
call fcn.0041b875
push esi
push 1
lea ecx, [ebp - 0x80]
call fcn.0041baed
push 0x40
lea eax, [ebp - 0x114]
mov dword [ebp - 0x118], 0x44
push esi
push eax
call fcn.004cda10
xor eax, eax
lea edi, [ebp - 0xa0]
stosd dword es:[edi], eax
lea ecx, [ebp - 0xd0]
add esp, 8
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x38]
push eax
call fcn.004462b0
cmp dword [ebp - 0x24], 8
lea edx, [ebp - 0xa0]
push edx
lea edx, [ebp - 0x118]
push edx
push esi
push esi
push 0x8000000
push esi
push esi
lea ecx, [ebp - 0x38]
cmovae ecx, dword [ebp - 0x38]
lea eax, [ebp - 0x50]
cmp dword [ebp - 0x3c], 8
push esi
cmovae eax, dword [ebp - 0x50]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x42bb20
mov ecx, ebx
call fcn.0044bc30
test al, al
je 0x42bb09
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
push 0x21d
push str..._.._chrome_installer_setup_user_experiment.cc
lea ecx, [ebp - 0x1c8]
mov dword [ebp - 0x1d0], eax
call fcn.0044bca0
mov edx, str.Failed_to_launch:
lea ecx, [ebp - 0x1c0]
call fcn.0041cec3
cmp dword [ebp - 0x24], 8
lea edx, [ebp - 0x38]
mov ecx, eax
cmovae edx, dword [ebp - 0x38]
call fcn.0044c7c0
xor eax, eax
inc eax
jmp 0x42bb0f
mov eax, dword [ebp - 0x84]
test al, 1
je 0x42bb3d
lea ecx, [ebp - 0x1d0]
call fcn.0044c710
jmp 0x42bb3d
lea eax, [ebp - 0xa0]
push eax
lea ecx, [ebp - 0xb0]
call fcn.00458a80
lea ecx, [ebp - 0xb0]
call fcn.00458ab0
push esi
push 1
lea ecx, [ebp - 0x38]
call fcn.0041b875
lea ecx, [ebp - 0xd0]
call fcn.00444b40
lea ecx, [ebp - 0x50]
call fcn.0043ef40
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004cb8a3
mov esp, ebp
pop ebp
ret
Function at 0x433f20
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov ebx, edx
mov esi, ecx
push edi
test ebx, ebx
je 0x433f47
cmp dword [ebx + 0x14], 0x10
mov dword [ebx + 0x10], 0
jb 0x433f42
mov eax, dword [ebx]
jmp 0x433f44
mov eax, ebx
mov byte [eax], 0
call fcn.00440180
test al, al
je 0x433f59
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, esi
call fcn.004371b0
mov edi, eax
mov dword [ebp - 0xc], edi
test edi, edi
je 0x433f50
push 0x10000
call fcn.004cbd7f
add esp, 4
mov dword [ebp - 8], 0
mov esi, eax
push edi
push 0x10000
push 1
push esi
call fcn.004d7f29
mov edi, eax
add esp, 0x10
test edi, edi
je 0x433fe6
mov eax, dword [ebp + 8]
nop dword [eax]
test ebx, ebx
je 0x433fbc
mov ecx, eax
mov eax, edi
sub ecx, dword [ebp - 8]
cmp ecx, edi
cmovb eax, ecx
mov ecx, ebx
push eax
push esi
call fcn.0041bcfb
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 8]
sub eax, ecx
cmp eax, edi
jb 0x433ffc
push dword [ebp - 0xc]
add ecx, edi
push 0x10000
push 1
push esi
mov dword [ebp - 8], ecx
call fcn.004d7f29
mov edi, eax
add esp, 0x10
mov eax, dword [ebp + 8]
test edi, edi
jne 0x433fa0
mov ebx, dword [ebp - 0xc]
push ebx
call fcn.004d6fee
add esp, 4
test eax, eax
jne 0x433fff
mov byte [ebp - 1], 1
jmp 0x434003
mov ebx, dword [ebp - 0xc]
mov byte [ebp - 1], 0
push ebx
call fcn.004d73e2
add esp, 4
test esi, esi
je 0x434019
push esi
call fcn.004cb8b4
add esp, 4
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x51a0a0]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
mov esi, ecx
mov ebx, edx
push edi
cmp dword [esi + 0x14], 8
jb 0x4340c1
mov eax, dword [esi]
jmp 0x4340c3
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4340d6
shr eax, 4
and al, 1
jmp 0x4340d8
xor al, al
test al, al
mov dword [ebp - 0x30], 0
mov ecx, 0x4001
mov dword [ebp - 0x18], 7
mov edi, 0x24001
mov dword [ebp - 0x1c], 0
cmove edi, ecx
mov ecx, dword [0x51d17c]
xor eax, eax
mov word [ebp - 0x2c], ax
test ecx, ecx
je 0x434115
mov eax, dword [ecx]
lea edx, [ebp - 0x14]
push edx
call dword [eax + 8]
push edi
push esi
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x10], 0
mov word [ebp - 0xc], 0
call fcn.00451e00
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x434151
cmp eax, 0xffffffff
je 0x434151
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x30]
push dword [eax + 4]
push dword [eax]
push dword [ebx + 4]
push dword [ebx]
call fcn.00459a60
mov bl, al
jmp 0x434153
xor bl, bl
lea ecx, [ebp - 0x30]
call fcn.00451d00
mov ecx, dword [ebp - 8]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004cb8a3
mov esp, ebp
pop ebp
ret
Function at 0x434f30
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
mov eax, dword [0x51a0a0]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
push edi
mov edi, ecx
cmp dword [edi + 0x38], 0
je 0x435090
cmp byte [edi + 0x3d], 0
je 0x435090
mov eax, dword [edi]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
jne 0x434f7d
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.004cb8a3
mov esp, ebp
pop ebp
ret
mov ecx, 0xf
mov byte [esp + 0x14], 0
xorps xmm0, xmm0
mov dword [esp + 0x28], ecx
cmp ecx, 0x10
movq qword [esp + 0x14], xmm0
lea eax, [esp + 0x14]
mov dword [esp + 0x24], 8
cmovae eax, dword [esp + 0x14]
mov byte [eax + 8], 0
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x28]
mov ebx, dword [edi + 0x38]
lea ecx, [esp + 0x14]
cmp edx, 0x10
lea esi, [esp + 0x14]
cmovae ecx, eax
cmovae esi, eax
mov edx, dword [ebx]
cmp edx, vtable.std::codecvt_char__char__struct__Mbstatet_.0
mov edx, dword [esp + 0x28]
jne 0x4350a4
mov dword [esp + 0xc], esi
xor ecx, ecx
sub ecx, 0
je 0x434ff3
sub ecx, 1
je 0x434ff7
sub ecx, 2
je 0x435045
xor bl, bl
jmp 0x435047
mov byte [edi + 0x3d], 0
cmp edx, 0x10
lea ecx, [esp + 0x14]
cmovae ecx, eax
sub esi, ecx
je 0x43502a
push dword [edi + 0x4c]
cmp edx, 0x10
lea ecx, [esp + 0x18]
push esi
cmovae ecx, eax
push 1
push ecx
call fcn.004d77ca
mov edx, dword [esp + 0x38]
add esp, 0x10
cmp esi, eax
mov eax, dword [esp + 0x14]
jne 0x434fef
cmp byte [edi + 0x3d], 0
je 0x435045
test esi, esi
jne 0x434fb4
push esi
push 8
lea ecx, [esp + 0x1c]
call fcn.0041ca57
jmp 0x434fac
mov bl, 1
cmp edx, 0x10
jb 0x43507c
lea ecx, [edx + 1]
cmp ecx, 0x1000
jb 0x435073
test byte [esp + 0x14], 0x1f
jne 0x4350cf
mov ecx, dword [eax - 4]
cmp ecx, eax
jae 0x4350d4
sub eax, ecx
cmp eax, 4
jb 0x4350d9
cmp eax, 0x23
ja 0x4350de
mov eax, ecx
push eax
call fcn.004cbd7a
add esp, 4
mov al, bl
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.004cb8a3
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x2c]
mov al, 1
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004cb8a3
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0xc]
push eax
mov eax, dword [esp + 0x28]
add eax, ecx
mov ecx, ebx
push eax
push esi
lea eax, [edi + 0x40]
push eax
mov eax, dword [ebx]
call dword [eax + 0x20]
mov edx, dword [esp + 0x28]
mov ecx, eax
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0xc]
jmp 0x434fe0
call fcn.004d1350
call fcn.004d1350
call fcn.004d1350
call fcn.004d1350
int3
Function at 0x4356d0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 8
push ebx
push esi
mov esi, ecx
mov dword [esp + 0xc], 0
cmp byte [esi + 4], 0
je 0x4356f3
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
jmp 0x4356f5
mov eax, dword [esi]
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
setne bl
test bl, bl
je 0x435754
cmp byte [ebp + 0xc], 0
je 0x43572a
cmp byte [esi + 4], 0
je 0x43571c
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
jmp 0x43571e
mov eax, dword [esi]
push 0xea60
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp byte [esi + 4], 0
je 0x435738
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
jmp 0x43573a
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcessId]
mov ecx, dword [0x51ed64]
test ecx, ecx
je 0x435754
push dword [ebp + 8]
push eax
call fcn.0045b910
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x435aa0
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x540
mov eax, dword [0x51a0a0]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
push ecx
mov esi, edx
push esi
push 3
push 0
push ecx
lea ecx, [ebp - 0x2e4]
mov dword [ebp - 0x2e8], esi
call fcn.0044d280
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x2e4]
call fcn.0044d640
cmp dword [ebp - 0x10], 0
je 0x435bd3
nop dword [eax]
cmp byte [ebp - 0x2e4], 0
jne 0x435b11
push 0x250
lea eax, [ebp - 0x53c]
push 0
push eax
call fcn.004cda10
add esp, 0xc
jmp 0x435b2a
mov ecx, 0x94
lea esi, [ebp - 0x2e0]
lea edi, [ebp - 0x53c]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 0x2e8]
mov ebx, dword [ebp - 0x53c]
mov cl, byte [ebp + 8]
test bl, 1
je 0x435b60
test cl, cl
jne 0x435b45
mov eax, ebx
shr eax, 4
test al, 1
jne 0x435b60
cmp dword [ebp - 0xc], 8
lea ecx, [ebp - 0x20]
mov eax, ebx
cmovae ecx, dword [ebp - 0x20]
and eax, 0xfffffffe
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov cl, byte [ebp + 8]
shr ebx, 4
test bl, 1
je 0x435b93
test cl, cl
je 0x435ba9
push 1
mov edx, esi
lea ecx, [ebp - 0x20]
call fcn.00435aa0
add esp, 4
test al, al
je 0x435bfb
cmp dword [ebp - 0xc], 8
lea eax, [ebp - 0x20]
cmovae eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x435ba5
cmp dword [ebp - 0xc], 8
lea eax, [ebp - 0x20]
cmovae eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x435bfb
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x2e4]
call fcn.0044d640
push eax
lea ecx, [ebp - 0x20]
call fcn.0043efe0
lea ecx, [ebp - 0x38]
call fcn.0043ef40
cmp dword [ebp - 0x10], 0
jne 0x435af0
lea ecx, [ebp - 0x20]
call fcn.0043ef40
mov bl, 1
lea ecx, [ebp - 0x2e4]
call fcn.0044d520
mov ecx, dword [ebp - 8]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004cb8a3
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x20]
call fcn.0043ef40
xor bl, bl
jmp 0x435bdd
Function at 0x435cc0
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x3c
mov eax, dword [0x51a0a0]
xor eax, esp
mov dword [esp + 0x38], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [esp + 0x10], 0
mov eax, dword [edi + 0x10]
test eax, eax
jne 0x435cfd
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.004cb8a3
mov esp, ebp
pop ebp
ret
cmp eax, 0x104
jae 0x435ea8
lea eax, [esp + 0x14]
mov ecx, edi
push eax
call fcn.0043fa50
push 2
push 0
push 0x503a7c
mov ecx, eax
call fcn.00437850
lea ecx, [esp + 0x14]
mov esi, eax
call fcn.0043ef40
cmp esi, 0xffffffff
je 0x435d89
lea eax, [esp + 0x2c]
mov ecx, edi
push eax
call fcn.0043fa50
push dword [ebp + 0xc]
mov esi, eax
lea eax, [esp + 0x18]
push ecx
push eax
mov ecx, edi
call fcn.0043f900
add esp, 4
mov edx, esi
mov ecx, eax
call fcn.00435aa0
add esp, 4
lea ecx, [esp + 0x14]
mov bl, al
call fcn.0043ef40
lea ecx, [esp + 0x2c]
call fcn.0043ef40
mov al, bl
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.004cb8a3
mov esp, ebp
pop ebp
ret
cmp dword [edi + 0x14], 8
jb 0x435d93
mov eax, dword [edi]
jmp 0x435d95
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x435ce9
test bl, 1
je 0x435dcd
cmp dword [edi + 0x14], 8
jb 0x435db6
mov ecx, dword [edi]
jmp 0x435db8
mov ecx, edi
mov eax, ebx
and eax, 0xfffffffe
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x435ea8
test bl, 0x10
jne 0x435df9
cmp dword [edi + 0x14], 8
jb 0x435dda
mov edi, dword [edi]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
neg eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.004cb8a3
mov esp, ebp
pop ebp
ret
cmp byte [ebp + 0xc], 0
je 0x435e2b
push 0x503a78
lea ecx, [esp + 0x18]
call fcn.0041ae60
mov ebx, 1
lea edx, [esp + 0x14]
push ebx
mov ecx, edi
call fcn.00435aa0
add esp, 4
test al, al
jne 0x435e2f
mov byte [esp + 0xf], al
jmp 0x435e34
mov ebx, dword [esp + 0x10]
mov byte [esp + 0xf], 1
test bl, 1
je 0x435e7a
mov eax, dword [esp + 0x28]
cmp eax, 8
jb 0x435e7a
mov ecx, dword [esp + 0x14]
inc eax
cmp eax, 0x7fffffff
ja 0x435ebc
add eax, eax
cmp eax, 0x1000
jb 0x435e71
test cl, 0x1f
jne 0x435ec1
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x435ec6
sub ecx, eax
cmp ecx, 4
jb 0x435ecb
cmp ecx, 0x23
ja 0x435ed0
mov ecx, eax
push ecx
call fcn.004cbd7a
add esp, 4
cmp byte [esp + 0xf], 0
je 0x435ea8
cmp dword [edi + 0x14], 8
jb 0x435e89
mov edi, dword [edi]
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
neg eax
sbb eax, eax
neg eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.004cb8a3
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x44]
xor al, al
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004cb8a3
mov esp, ebp
pop ebp
ret
call fcn.004d1350
call fcn.004d1350
call fcn.004d1350
call fcn.004d1350
call fcn.004d1350
int3
Function at 0x435ee0
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, edx
push edi
mov edi, ecx
cmp dword [esi + 0x14], 8
jb 0x435ef4
mov eax, dword [esi]
jmp 0x435ef6
mov eax, esi
cmp dword [edi + 0x14], 8
jb 0x435efe
mov ecx, dword [edi]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x435f11
mov al, 1
pop edi
pop esi
pop ebx
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.00459b00
cmp dword [edi + 0x14], 8
mov ebx, eax
jb 0x435f28
mov edi, dword [edi]
cmp dword [esi + 0x14], 8
jb 0x435f30
mov esi, dword [esi]
push 0
push 0
push 2
push 0
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReplaceFileW]
test eax, eax
jne 0x435f0a
mov esi, dword [ebp + 8]
test esi, esi
je 0x435f60
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.00459b00
cmp eax, 0xfffffffc
cmove eax, ebx
mov dword [esi], eax
pop edi
pop esi
xor al, al
pop ebx
pop ebp
ret
Function at 0x4362a0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
cmp dword [ecx + 0x14], 8
jb 0x4362a8
mov ecx, dword [ecx]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne al
ret

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

Disassembly:
cmp dword [ecx + 0x14], 8
jb 0x4362c8
mov ecx, dword [ecx]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4362db
shr eax, 4
and eax, 1
ret
xor al, al
ret

Function at 0x4362e0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x248
mov eax, dword [0x51a0a0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
lea eax, [ebp - 0x218]
mov edi, ecx
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0x102
ja 0x4363c2
sub esp, 8
lea eax, [ebp - 0x218]
mov edx, esp
mov dword [edx], eax
cmp word [ebp - 0x218], 0
jne 0x436330
xor ecx, ecx
jmp 0x43634f
lea ecx, [ebp - 0x218]
lea esi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x436340
sub ecx, esi
sar ecx, 1
mov dword [edx + 4], ecx
lea ecx, [ebp - 0x248]
call fcn.0043eec0
sub esp, 8
mov edx, esp
cmp dword [eax + 0x14], 8
jb 0x43636c
mov ecx, dword [eax]
jmp 0x43636e
mov ecx, eax
mov dword [edx], ecx
lea ecx, [ebp - 0x230]
mov eax, dword [eax + 0x10]
mov dword [edx + 4], eax
call fcn.0043eec0
lea ecx, [ebp - 0x230]
call fcn.00440420
lea eax, [ebp - 0x230]
mov ecx, edi
push eax
call fcn.0043efe0
lea ecx, [ebp - 0x230]
call fcn.0043ef40
lea ecx, [ebp - 0x248]
call fcn.0043ef40
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004cb8a3
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
pop edi
xor ecx, ebp
pop esi
call fcn.004cb8a3
mov esp, ebp
pop ebp
ret
Function at 0x4363e0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x51a0a0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
lea eax, [ebp - 0x210]
mov esi, ecx
push eax
push 0
push 0
push 0x28
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x43648b
cmp word [ebp - 0x210], 0
je 0x43648b
sub esp, 8
lea eax, [ebp - 0x210]
mov edx, esp
mov dword [edx], eax
cmp word [ebp - 0x210], 0
jne 0x43644f
xor ecx, ecx
mov dword [edx + 4], ecx
mov ecx, esi
call fcn.0043eec0
mov eax, esi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004cb8a3
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x210]
lea edi, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x436460
sub ecx, edi
sar ecx, 1
mov dword [edx + 4], ecx
mov ecx, esi
call fcn.0043eec0
mov eax, esi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004cb8a3
mov esp, ebp
pop ebp
ret
xor eax, eax
mov dword [ebp - 0x214], 7
lea ecx, [ebp - 0x228]
mov dword [ebp - 0x218], 0
mov word [ebp - 0x228], ax
call fcn.004362e0
mov ecx, esi
test al, al
je 0x4364c7
lea eax, [ebp - 0x228]
push eax
call fcn.0043ee40
jmp 0x4364de
sub esp, 8
mov eax, esp
mov dword [eax], 0x503a84
mov dword [eax + 4], 3
call fcn.0043eec0
lea ecx, [ebp - 0x228]
call fcn.0043ef40
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.004cb8a3
mov esp, ebp
pop ebp
ret
Function at 0x436f30
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x51a0a0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x24], 0
mov esi, edx
cmp dword [edi + 0x14], 8
jb 0x436f58
mov ebx, dword [edi]
jmp 0x436f5a
mov ebx, edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x436f9a
test al, 0x10
je 0x436f7d
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004cb8a3
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x436f87
mov dword [esi], 0xfffffff7
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004cb8a3
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x1c]
mov ecx, edi
push eax
call fcn.0043f900
cmp dword [edi + 0x14], 8
jb 0x436faf
mov edx, dword [edi]
jmp 0x436fb1
mov edx, edi
cmp dword [ebp - 8], 8
lea eax, [ebp - 0x1c]
mov ecx, dword [ebp - 0xc]
cmovae eax, dword [ebp - 0x1c]
mov dword [ebp - 0x24], eax
mov eax, dword [edi + 0x10]
cmp ecx, eax
cmovb eax, ecx
mov dword [ebp - 0x20], eax
test eax, eax
mov eax, dword [edi + 0x10]
je 0x436fed
push dword [ebp - 0x20]
push edx
push dword [ebp - 0x24]
call fcn.00415aa6
add esp, 0xc
test eax, eax
jne 0x437001
mov eax, dword [edi + 0x10]
mov ecx, dword [ebp - 0xc]
cmp ecx, eax
jb 0x437001
ja 0x437001
test esi, esi
je 0x437044
mov dword [esi], 0xfffffffc
xor bl, bl
jmp 0x43704a
mov edx, esi
lea ecx, [ebp - 0x1c]
call fcn.00436f30
test al, al
je 0x437044
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x437048
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp ebx, 0xb7
jne 0x437037
mov ecx, edi
call fcn.004362c0
test al, al
jne 0x437048
test esi, esi
je 0x437044
mov ecx, ebx
call fcn.00459b00
mov dword [esi], eax
xor bl, bl
jmp 0x43704a
mov bl, 1
lea ecx, [ebp - 0x1c]
call fcn.0043ef40
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004cb8a3
mov esp, ebp
pop ebp
ret