joyce8/EMBER2024-capa huggingface dataset:
Function at 0x420430
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44f608
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x469744]
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, dword [ebp + 8]
mov eax, 0xffff
mov edi, ecx
cmp ax, si
jne 0x420471
xor eax, eax
jmp 0x4205f7
mov eax, dword [edi + 0x24]
mov ecx, dword [eax]
test ecx, ecx
je 0x42049d
mov eax, dword [edi + 0x34]
mov edx, dword [eax]
lea edx, [ecx + edx*2]
cmp ecx, edx
jae 0x42049d
dec dword [eax]
mov edi, dword [edi + 0x24]
mov eax, dword [edi]
lea ecx, [eax + 2]
mov dword [edi], ecx
mov word [eax], si
mov ax, si
jmp 0x4205f7
cmp dword [edi + 0x54], 0
je 0x4205f2
mov ecx, dword [edi + 0x10]
lea edx, [edi + 0x48]
cmp dword [ecx], edx
jne 0x4204c7
mov edx, dword [edi + 0x3c]
mov eax, dword [edi + 0x40]
mov dword [ecx], edx
mov ecx, dword [edi + 0x20]
mov dword [ecx], eax
mov edx, dword [edi + 0x30]
sub eax, eax
sar eax, 1
mov dword [edx], eax
cmp dword [edi + 0x44], 0
jne 0x4204f2
mov edi, dword [edi + 0x54]
push edi
push esi
call fcn.0043ba3a
mov ecx, 0xffff
add esp, 8
cmp ax, cx
movzx eax, si
jne 0x4205f7
mov eax, ecx
jmp 0x4205f7
movzx edx, si
lea esi, [ebp - 0x2c]
mov dword [ebp - 0x30], edx
call fcn.00420e00
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x18]
lea ecx, [ecx]
mov edx, eax
cmp ebx, 0x10
jae 0x42051c
lea edx, [ebp - 0x2c]
mov eax, edx
mov ecx, dword [edi + 0x44]
mov esi, dword [ecx]
lea ebx, [ebp - 0x34]
push ebx
mov ebx, dword [ebp - 0x1c]
add ebx, edx
push ebx
push eax
lea eax, [ebp - 0x38]
push eax
lea edx, [ebp - 0x2e]
push edx
mov edx, dword [esi + 0x14]
lea eax, [ebp - 0x30]
push eax
lea eax, [edi + 0x4c]
push eax
call edx
test eax, eax
js 0x4205ea
cmp eax, 1
jg 0x4205b2
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov ecx, eax
cmp ebx, 0x10
jae 0x42055e
lea ecx, [ebp - 0x2c]
mov esi, dword [ebp - 0x34]
sub esi, ecx
je 0x420587
cmp ebx, 0x10
jae 0x42056d
lea eax, [ebp - 0x2c]
mov ecx, dword [edi + 0x54]
push ecx
push esi
push 1
push eax
call fcn.0043c039
add esp, 0x10
cmp esi, eax
jne 0x4205ea
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
lea edx, [ebp - 0x30]
mov byte [edi + 0x4a], 1
cmp dword [ebp - 0x38], edx
jne 0x4205dc
test esi, esi
jne 0x420510
cmp dword [ebp - 0x1c], 0x20
jae 0x4205ea
push esi
lea ebx, [esi + 8]
lea esi, [ebp - 0x2c]
call fcn.0040e740
jmp 0x420507
cmp eax, 3
jne 0x4205ea
mov eax, dword [edi + 0x54]
mov ecx, dword [ebp - 0x30]
call fcn.004237e0
movzx esi, word [ebp + 8]
test al, al
jne 0x4205cf
mov esi, 0xffff
lea ecx, [ebp - 0x2c]
call fcn.00410dd0
mov ax, si
jmp 0x4205f7
lea ecx, [ebp - 0x2c]
call fcn.00410dd0
mov ax, word [ebp + 8]
jmp 0x4205f7
lea ecx, [ebp - 0x2c]
call fcn.00410dd0
mov eax, 0xffff
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.00438876
mov esp, ebp
pop ebp
ret 4
Function at 0x421040
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44f348
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x469744]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x54], 0
jne 0x421136
mov eax, dword [ebp + 8]
push 0x40
push 2
push eax
call fcn.004387ce
add esp, 0xc
test eax, eax
je 0x421136
lea edx, [esi + 0x18]
mov dword [esi + 0x20], edx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov byte [esi + 0x50], 1
mov byte [esi + 0x4a], 0
lea ecx, [esi + 8]
mov dword [esi + 0x10], ecx
lea edx, [esi + 0x28]
mov dword [esi + 0x30], edx
lea ecx, [esi + 0xc]
mov dword [esi + 0x14], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [ecx], 0
mov ecx, dword [esi + 0x24]
mov dword [ecx], 0
mov edx, dword [esi + 0x34]
mov dword [edx], 0
mov ecx, dword [esi + 0x10]
mov dword [ecx], 0
mov edx, dword [esi + 0x20]
mov dword [edx], 0
mov ecx, dword [esi + 0x30]
mov edx, dword [0x46cbb0]
mov dword [ecx], 0
mov dword [esi + 0x54], eax
lea edi, [ebp + 8]
mov eax, esi
mov dword [esi + 0x4c], edx
mov dword [esi + 0x44], 0
call fcn.004213f0
mov edi, eax
mov dword [ebp - 4], 0
call fcn.004224d0
mov edi, eax
call fcn.00421310
lea ecx, [ebp + 8]
call fcn.00405f40
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x4211e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44fb08
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x469744]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [edi + 0x44], 0
je 0x4212f3
cmp byte [edi + 0x4a], 0
je 0x4212f3
mov eax, dword [edi]
mov edx, dword [eax + 0xc]
push 0xffff
mov ecx, edi
call edx
movzx eax, ax
mov ecx, 0xffff
cmp cx, ax
je 0x4212e7
lea esi, [ebp - 0x2c]
call fcn.00420e00
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x18]
mov edx, eax
cmp ebx, 0x10
jae 0x42125e
lea edx, [ebp - 0x2c]
mov eax, edx
add edx, dword [ebp - 0x1c]
mov ecx, dword [edi + 0x44]
mov esi, dword [ecx]
lea ebx, [ebp - 0x30]
push ebx
push edx
mov edx, dword [esi + 0x18]
push eax
lea eax, [edi + 0x4c]
push eax
call edx
sub eax, 0
je 0x421287
dec eax
je 0x42128b
sub eax, 2
lea ecx, [ebp - 0x2c]
jne 0x4212e2
jmp 0x4212ee
mov byte [edi + 0x4a], 0
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov ecx, eax
cmp ebx, 0x10
jae 0x42129b
lea ecx, [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
sub esi, ecx
je 0x4212c4
cmp ebx, 0x10
jae 0x4212aa
lea eax, [ebp - 0x2c]
mov ecx, dword [edi + 0x54]
push ecx
push esi
push 1
push eax
call fcn.0043c039
add esp, 0x10
cmp esi, eax
jne 0x4212df
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
cmp byte [edi + 0x4a], 0
je 0x4212eb
test esi, esi
jne 0x421252
push esi
lea ebx, [esi + 8]
lea esi, [ebp - 0x2c]
call fcn.0040e740
jmp 0x42124c
lea ecx, [ebp - 0x2c]
call fcn.00410dd0
xor al, al
jmp 0x4212f5
lea ecx, [ebp - 0x2c]
call fcn.00410dd0
mov al, 1
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.00438876
mov esp, ebp
pop ebp
ret
Function at 0x424150
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push edi
push 0
push 0x80
push 3
push 0
push 0
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x424191
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 4], eax
cmp eax, 0x989680
jbe 0x424198
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
push ebx
lea ebx, [eax + 2]
push esi
push ebx
call fcn.004386fc
push ebx
mov esi, eax
push 0
push esi
call fcn.0043d4f0
mov edx, dword [ebp - 4]
add esp, 0x10
push 0
lea ecx, [ebp - 8]
push ecx
push edx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4241d0
mov ecx, dword [ebp + 8]
sub eax, edx
push eax
push esi
call fcn.004109b0
push esi
call fcn.0043ad71
add esp, 4
pop esi
pop ebx
mov eax, 1
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x424200
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push 0
push 0x80
push 3
push 0
push 0
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x42422e
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push esi
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0x989680
jbe 0x424251
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [esi + 2]
push edi
push eax
call fcn.004386fc
mov edi, eax
lea eax, [esi + 2]
push eax
push 0
push edi
mov dword [ebp - 8], edi
call fcn.0043d4f0
add esp, 0x10
push 0
lea ecx, [ebp - 0xc]
push ecx
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, 0xfe
jbe 0x424294
mov esi, 0xfe
jmp 0x424297
and esi, 0xfffffffe
push 0
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_IsTextUnicode]
test eax, eax
je 0x4242e5
cmp byte [edi], 0xff
jne 0x4242c1
cmp byte [edi + 1], 0xfe
jne 0x4242c1
mov edx, dword [ebp + 8]
lea eax, [edi + 2]
push edx
call fcn.00402560
jmp 0x42437b
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4242c6
mov esi, dword [ebp + 8]
sub eax, edx
sar eax, 1
push eax
mov eax, edi
call fcn.00406550
jmp 0x42437b
cmp byte [edi], 0xef
mov dword [ebp - 4], edi
jne 0x4242ff
cmp byte [edi + 1], 0xbb
jne 0x4242ff
cmp byte [edi + 2], 0xbf
jne 0x4242ff
add edi, 3
mov dword [ebp - 4], edi
mov eax, dword [ebp - 4]
push 0
push 0
push 0xffffffffffffffff
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov esi, eax
xor ecx, ecx
lea ebx, [esi + 2]
mov eax, ebx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004386fc
push ebx
mov edi, eax
push 0
push edi
call fcn.0043d4f0
mov eax, dword [ebp - 4]
add esp, 0x10
push esi
push edi
push 0xffffffffffffffff
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x424355
mov esi, dword [ebp + 8]
sub eax, edx
sar eax, 1
push eax
mov eax, edi
call fcn.00406550
push edi
call fcn.0043ad71
mov edi, dword [ebp - 8]
add esp, 4
push edi
call fcn.0043ad71
add esp, 4
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4247a0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x469744]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
push esi
push edi
test ebx, ebx
jne 0x4247d5
push 0x208
lea eax, [ebp - 0x210]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ebx, [ebp - 0x210]
lea ecx, [ebp - 0x218]
push ecx
push ebx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov edi, eax
test edi, edi
jne 0x4247fc
xor edx, edx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00438876
mov esp, ebp
pop ebp
ret
push edi
call fcn.004386fc
add esp, 4
mov esi, eax
push esi
push edi
push 0
push ebx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
lea edx, [ebp - 0x21c]
push edx
lea eax, [ebp - 0x214]
push eax
push 0x457650
push esi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
mov eax, dword [ebp - 0x214]
mov ebx, dword [eax + 8]
xor edx, edx
xor edi, edi
or edi, dword [eax + 0xc]
push esi
or ebx, edx
call fcn.0043ad71
mov ecx, dword [ebp - 4]
add esp, 4
mov eax, edi
pop edi
pop esi
mov edx, ebx
xor ecx, ebp
pop ebx
call fcn.00438876
mov esp, ebp
pop ebp
ret
Function at 0x424860
Capabilities:
Delete directory
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x670
mov eax, dword [0x469744]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push ebx
lea eax, [ebp - 0x41c]
push 0x104
push eax
xor edi, edi
call fcn.0043a583
add esp, 0xc
push 0x457648
lea ecx, [ebp - 0x41c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea edx, [ebp - 0x66c]
push edx
lea eax, [ebp - 0x41c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
mov dword [ebp - 0x670], esi
cmp esi, 0xffffffff
jne 0x4248e0
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00438876
mov esp, ebp
pop ebp
ret
mov ecx, 0x457654
lea eax, [ebp - 0x640]
jmp 0x4248f0
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x424916
test dx, dx
je 0x424912
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x424916
add eax, 4
add ecx, 4
test dx, dx
jne 0x4248f0
xor eax, eax
jmp 0x42491b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4249b3
mov ecx, 0x457658
lea eax, [ebp - 0x640]
mov edi, edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x424956
test dx, dx
je 0x424952
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x424956
add eax, 4
add ecx, 4
test dx, dx
jne 0x424930
xor eax, eax
jmp 0x42495b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4249b3
push ebx
lea ecx, [ebp - 0x214]
push 0x104
push ecx
call fcn.0043a583
add esp, 0xc
lea edx, [ebp - 0x640]
push edx
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test byte [ebp - 0x66c], 0x10
je 0x4249a2
lea ecx, [ebp - 0x214]
push ecx
call fcn.00424860
add esp, 4
jmp 0x4249b3
lea esi, [ebp - 0x214]
call fcn.00425270
mov esi, dword [ebp - 0x670]
lea edx, [ebp - 0x66c]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4249d1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
jne 0x4249da
cmp edi, 0x12
jne 0x4248e0
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov ecx, dword [ebp - 8]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00438876
mov esp, ebp
pop ebp
ret
Function at 0x424c50
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x678
mov eax, dword [0x469744]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
push eax
mov dword [ebp - 0x678], eax
lea eax, [ebp - 0x41c]
push 0x104
push eax
mov esi, ecx
mov dword [ebp - 0x674], ebx
xor edi, edi
call fcn.0043a583
add esp, 0xc
lea ecx, [ebp - 0x41c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
push ebx
lea edx, [ebp - 0x41c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x66c]
push eax
lea ecx, [ebp - 0x41c]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x670], eax
cmp eax, 0xffffffff
jne 0x424ce4
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00438876
mov esp, ebp
pop ebp
ret 0xc
mov ebx, dword [ebp + 0x10]
jmp 0x424cf0
mov ecx, 0x457654
lea eax, [ebp - 0x640]
jmp 0x424d00
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x424d26
test dx, dx
je 0x424d22
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x424d26
add eax, 4
add ecx, 4
test dx, dx
jne 0x424d00
xor eax, eax
jmp 0x424d2b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x424ddf
mov ecx, 0x457658
lea eax, [ebp - 0x640]
mov edi, edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x424d66
test dx, dx
je 0x424d62
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x424d66
add eax, 4
add ecx, 4
test dx, dx
jne 0x424d40
xor eax, eax
jmp 0x424d6b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x424ddf
mov edx, dword [ebp - 0x678]
push edx
lea eax, [ebp - 0x214]
push 0x104
push eax
call fcn.0043a583
add esp, 0xc
lea ecx, [ebp - 0x640]
push ecx
lea edx, [ebp - 0x214]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test byte [ebp - 0x66c], 0x10
push ebx
lea ecx, [ebp - 0x214]
je 0x424dce
mov eax, dword [ebp - 0x674]
push eax
push ecx
mov ecx, esi
call fcn.00424c50
mov edx, dword [esi]
mov edx, dword [edx + 4]
mov edi, eax
push ebx
lea eax, [ebp - 0x214]
push eax
jmp 0x424dd3
mov eax, dword [esi]
mov edx, dword [eax]
push ecx
mov ecx, esi
call edx
test al, al
jne 0x424e39
test edi, edi
jne 0x424e0b
mov ecx, dword [ebp - 0x670]
lea eax, [ebp - 0x66c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x424cf0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
je 0x424cf0
cmp edi, 0x12
je 0x424e15
cmp edi, 3
jne 0x424e17
xor edi, edi
mov edx, dword [ebp - 0x670]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 8]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00438876
mov esp, ebp
pop ebp
ret 0xc
mov edi, 0x4c7
jmp 0x424e17
Function at 0x424fb0
Capabilities:
Copy file
Create directory
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x880
mov eax, dword [0x469744]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push ebx
lea ecx, [ebp - 0x624]
push 0x104
push ecx
mov dword [ebp - 0x87c], eax
call fcn.0043a583
mov edi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
add esp, 0xc
push 0x459be4
lea edx, [ebp - 0x624]
push edx
call edi
lea eax, [ebp - 0x874]
push eax
lea ecx, [ebp - 0x624]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
mov dword [ebp - 0x878], esi
cmp esi, 0xffffffff
jne 0x425040
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00438876
mov esp, ebp
pop ebp
ret
mov ecx, 0x457654
lea eax, [ebp - 0x848]
jmp 0x425050
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x425076
test dx, dx
je 0x425072
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x425076
add eax, 4
add ecx, 4
test dx, dx
jne 0x425050
xor eax, eax
jmp 0x42507b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x42517b
mov ecx, 0x457658
lea eax, [ebp - 0x848]
mov edi, edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4250b6
test dx, dx
je 0x4250b2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4250b6
add eax, 4
add ecx, 4
test dx, dx
jne 0x425090
xor eax, eax
jmp 0x4250bb
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x42517b
push ebx
lea edx, [ebp - 0x41c]
push 0x104
push edx
call fcn.0043a583
add esp, 0xc
lea eax, [ebp - 0x848]
push eax
lea ecx, [ebp - 0x41c]
push ecx
call edi
mov edx, dword [ebp - 0x87c]
push edx
lea eax, [ebp - 0x214]
push 0x104
push eax
call fcn.0043a583
add esp, 0xc
lea ecx, [ebp - 0x848]
push ecx
lea edx, [ebp - 0x214]
push edx
call edi
test byte [ebp - 0x874], 0x10
je 0x42514f
cmp byte [ebp + 0x10], 0
je 0x42517b
push 0
lea eax, [ebp - 0x214]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
mov ecx, dword [ebp + 0x10]
push ecx
lea edx, [ebp - 0x214]
push edx
lea eax, [ebp - 0x41c]
push eax
call fcn.00424fb0
add esp, 0xc
jmp 0x42516f
push 0
lea ecx, [ebp - 0x214]
push ecx
lea edx, [ebp - 0x41c]
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x42517b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jne 0x4251a0
mov esi, dword [ebp - 0x878]
lea eax, [ebp - 0x874]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x425040
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 0x12
jne 0x4251a0
xor esi, esi
mov ecx, dword [ebp - 0x878]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 8]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.00438876
mov esp, ebp
pop ebp
ret
Function at 0x4251c0
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x469744]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor bl, bl
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x4251f2
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00438876
mov esp, ebp
pop ebp
ret
push 0
push esi
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
test eax, eax
jne 0x425250
lea eax, [ebp - 0x210]
push eax
push 0
push 0x45b528
push esi
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x425247
push 0
push 0x4000000
push 2
push 0
push 5
push 0xc0000000
lea ecx, [ebp - 0x210]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x425247
push eax
mov bl, 1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call fcn.00424860
add esp, 4
mov ecx, dword [ebp - 4]
mov al, bl
xor ecx, ebp
pop ebx
call fcn.00438876
mov esp, ebp
pop ebp
ret

Function at 0x425310
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, ecx
cmp dword [edi + 4], 0
je 0x425395
push esi
mov esi, dword [ebp + 8]
push esi
push str.Deleting_file__s
push 0x46a9d4
xor eax, eax
call fcn.0042d150
add esp, 0xc
cmp dword [edi + 8], 0
jne 0x42538d
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push esi
call ebx
test eax, eax
jne 0x425384
push 0xfa
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
call ebx
test eax, eax
jne 0x425384
cmp dword [edi + 0x10], eax
je 0x425384
push esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Error_0x_X._Marking__s_for_deletion_after_reboot
push 0x46a9d4
mov eax, 1
call fcn.0042d150
add esp, 0x10
call fcn.00425270
pop ebx
pop esi
xor al, al
pop edi
pop ebp
ret 8
pop esi
xor al, al
pop edi
pop ebp
ret 8
xor al, al
pop edi
pop ebp
ret 8
Function at 0x4253a0
Capabilities:
Check if file exists
Delete directory
Delete file
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push edi
push str.Deleting_folder__s
push 0x46a9d4
xor eax, eax
mov ebx, ecx
xor esi, esi
call fcn.0042d150
add esp, 0xc
cmp dword [ebx + 8], esi
jne 0x4254e6
push 0x80
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x425428
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x4254d2
cmp eax, 3
je 0x4254d2
cmp dword [ebx + 4], 0
jne 0x425407
cmp eax, 0x91
je 0x425484
cmp esi, 4
je 0x42548b
push 0xfa
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, esi
inc esi
cmp eax, 4
jl 0x4253d7
pop edi
pop esi
xor al, al
pop ebx
pop ebp
ret 8
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push edi
xor esi, esi
call ebx
test eax, eax
je 0x4254e6
jmp 0x425440
mov ecx, esi
inc esi
cmp ecx, 4
jge 0x42545a
push 0xfa
call dword [sym.imp.KERNEL32.dll_Sleep]
push edi
call ebx
test eax, eax
jne 0x425440
cmp esi, 4
jle 0x4254e6
push edi
push str.Warning:_Folder__s_still_exists_after_delete
push 0x46a9d4
mov eax, 1
call fcn.0042d150
add esp, 0xc
pop edi
pop esi
xor al, al
pop ebx
pop ebp
ret 8
push str.Directory_is_not_empty__stopping_removal.
jmp 0x4254d7
cmp dword [ebx + 0x10], 0
je 0x4254e6
call fcn.00431460
test al, al
jne 0x4254e6
push 0x5b4
push edi
push str.Marking_folder__s_for_deletion_after_reboot__result0x_X_
push 0x46a9d4
mov eax, 1
call fcn.0042d150
add esp, 0x10
push 4
push 0
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
pop edi
pop esi
mov dword [ebx + 0xc], 1
xor al, al
pop ebx
pop ebp
ret 8
push str._folder_already_deleted
push 0x46a9d4
xor eax, eax
call fcn.0042d150
add esp, 8
pop edi
pop esi
xor al, al
pop ebx
pop ebp
ret 8

Function at 0x425c20
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4526f8
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x469744]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov dword [ebp - 4], 0
lea esi, [ebx + 0x44]
mov dword [ebp - 0x10], esi
mov byte [ebp - 4], 3
mov eax, dword [esi + 4]
mov ecx, dword [eax]
push eax
push ecx
lea edi, [ebp - 0x14]
call fcn.00421430
mov esi, dword [esi + 4]
push esi
call fcn.00439c00
add esp, 4
cmp dword [ebx + 0x30], 8
jb 0x425c89
mov eax, dword [ebx + 0x1c]
push eax
call fcn.00439c00
add esp, 4
xor eax, eax
lea esi, [ebx + 0xc]
mov dword [ebx + 0x30], 7
mov dword [ebx + 0x2c], 0
mov word [ebx + 0x1c], ax
mov dword [ebp - 0x14], esi
mov byte [ebp - 4], 4
mov eax, dword [esi + 4]
mov ecx, dword [eax]
push eax
push ecx
lea edi, [ebp - 0x10]
call fcn.004031d0
mov esi, dword [esi + 4]
push esi
call fcn.00439c00
add esp, 4
push ebx
mov dword [ebp - 4], 5
call fcn.004201d0
mov ecx, dword [ebx]
push ecx
call fcn.00439c00
add esp, 4
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