joyce8/EMBER2024-capa huggingface dataset:
Function at 0x452b4c
Capabilities:
Enumerate processes

Disassembly:
push 0x46c
mov eax, 0x5d0d76
call fcn.0044ac5a
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x230]
mov edi, 0x6568a4
mov dword [ebp - 0x478], esi
push edi
call fcn.00403040
xor ebx, ebx
lea eax, [ebp - 0x474]
push 0x22c
push ebx
push eax
mov dword [ebp - 4], ebx
call fcn.0046cf80
add esp, 0xc
push ebx
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x452bab
push edi
mov ecx, esi
call fcn.00403040
jmp 0x452d09
lea eax, [ebp - 0x474]
mov dword [ebp - 0x474], 0x22c
push eax
push ebx
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x452ce0
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 0x450]
push eax
lea ecx, [ebp - 0x248]
call fcn.00403040
mov byte [ebp - 4], 1
cmp dword [ebp - 0x46c], edi
je 0x452c10
lea ecx, [ebp - 0x248]
mov byte [ebp - 4], 0
call fcn.00402fe0
lea eax, [ebp - 0x474]
push eax
push ebx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x452bcd
jmp 0x452ce0
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.0046cf80
add esp, 0xc
push dword [ebp - 0x46c]
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x452cd5
push 0x104
lea eax, [ebp - 0x218]
push eax
push 0
push edi
call sub.PSAPI.DLL_GetModuleFileNameExW
lea eax, [ebp - 0x218]
push eax
call fcn.0047bb55
pop ecx
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x230]
call fcn.00403240
push 0x6568a4
lea ecx, [ebp - 0x230]
call fcn.00450f23
test al, al
je 0x452cce
lea eax, [ebp - 0x230]
push eax
push edi
call fcn.00452924
pop ecx
pop ecx
push 0x6568a4
lea ecx, [ebp - 0x230]
call fcn.00450f23
test al, al
je 0x452cce
lea eax, [ebp - 0x450]
push eax
call fcn.0047bb55
pop ecx
push eax
lea eax, [ebp - 0x450]
push eax
lea ecx, [ebp - 0x230]
call fcn.00403240
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x248]
call fcn.00402fe0
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, esi
mov byte [ebp - 0x478], al
push dword [ebp - 0x478]
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
lea eax, [ebp - 0x230]
push eax
call fcn.0044651c
lea ecx, [ebp - 0x230]
call fcn.00402fe0
mov eax, esi
call fcn.0044ac04
ret
Function at 0x452def
Capabilities:
Enumerate processes

Disassembly:
push 0x280
mov eax, 0x5d0de2
call fcn.0044ac5a
mov eax, dword [ebp + 8]
xor ebx, ebx
mov esi, ebx
mov dword [ebp - 0x28c], esi
test eax, eax
je 0x452f43
push eax
lea ecx, [ebp - 0x40]
call fcn.00403040
lea eax, [ebp - 0x40]
mov dword [ebp - 4], ebx
push eax
call fcn.004560e5
mov dword [esp], 0x22c
lea eax, [ebp - 0x284]
push ebx
push eax
call fcn.0046cf80
add esp, 0xc
push ebx
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
je 0x452f39
lea eax, [ebp - 0x284]
mov dword [ebp - 0x284], 0x22c
push eax
push edi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x452f32
lea eax, [ebp - 0x260]
push eax
lea ecx, [ebp - 0x28]
call fcn.00403040
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 1
push eax
call fcn.004560e5
pop ecx
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x28]
call fcn.004465bf
test al, al
jne 0x452ec9
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.004554ea
pop ecx
pop ecx
or esi, 1
lea ecx, [ebp - 0x40]
push eax
mov dword [ebp - 0x28c], esi
call fcn.004465bf
mov byte [ebp - 0x285], bl
test al, al
je 0x452ed0
mov byte [ebp - 0x285], 1
mov eax, dword [ebp - 0x28c]
test al, 1
je 0x452eeb
and eax, 0xfffffffe
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x28c], eax
call fcn.00402fe0
cmp byte [ebp - 0x285], 0
jne 0x452f1b
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], bl
call fcn.00402fe0
lea eax, [ebp - 0x284]
push eax
push edi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
je 0x452f32
mov esi, dword [ebp - 0x28c]
jmp 0x452e71
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [ebp - 0x27c]
lea ecx, [ebp - 0x28]
call fcn.00402fe0
jmp 0x452f39
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x40]
call fcn.00402fe0
mov eax, ebx
call fcn.0044ac04
ret

Function at 0x452f49
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x664340]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x20c]
push edi
mov edi, dword [ebp + 8]
push 0x208
push 0
push eax
mov dword [ebp - 0x210], edi
call fcn.0046cf80
add esp, 0xc
push esi
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x452fcd
lea eax, [ebp - 0x214]
push eax
push 4
lea eax, [ebp - 0x210]
push eax
push esi
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
je 0x452fc6
push 0x104
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x210]
push esi
call sub.PSAPI.DLL_GetModuleFileNameExW
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x20c]
mov ecx, edi
push eax
call fcn.00403040
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.0044a851
leave
ret
Function at 0x454563
Capabilities:
Enumerate processes

Disassembly:
push 0x288
mov eax, 0x5d1203
call fcn.0044ac5a
mov edi, dword [ebp + 0xc]
xor eax, eax
mov ebx, dword [ebp + 0x10]
mov esi, eax
mov dword [ebp - 0x290], esi
mov dword [ebp - 0x28c], eax
mov dword [ebp - 0x288], eax
push 0x22c
push eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x284]
push eax
call fcn.0046cf80
add esp, 0xc
lea ecx, [ebp - 0x58]
push edi
call fcn.00403040
push ebx
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 1
call fcn.00403040
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 2
push eax
call fcn.004560e5
lea eax, [ebp - 0x40]
push eax
call fcn.004560e5
pop ecx
pop ecx
xor edi, edi
push edi
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4546d6
lea eax, [ebp - 0x284]
mov dword [ebp - 0x284], 0x22c
push eax
push ebx
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x45467d
mov esi, dword [ebp + 8]
cmp dword [ebp - 0x27c], esi
je 0x454666
lea eax, [ebp - 0x260]
push eax
lea ecx, [ebp - 0x28]
call fcn.00403040
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 3
push eax
call fcn.004560e5
pop ecx
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x28]
call fcn.004465bf
test al, al
je 0x45465a
mov eax, dword [ebp - 0x27c]
lea ecx, [ebp - 0x290]
mov dword [ebp - 0x294], eax
lea eax, [ebp - 0x294]
push eax
call fcn.00451c9c
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.00402fe0
lea eax, [ebp - 0x284]
push eax
push ebx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x454607
mov esi, dword [ebp - 0x290]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [ebp - 0x28c]
jmp 0x4546c8
push dword [esi]
lea eax, [ebp - 0x28]
push eax
call fcn.004528b3
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 4
push eax
call fcn.004560e5
add esp, 0xc
lea eax, [ebp - 0x40]
lea ecx, [ebp - 0x28]
push edi
push eax
call fcn.00446a0c
lea ecx, [ebp - 0x28]
cmp eax, 0xffffffff
jg 0x4546ce
mov byte [ebp - 4], 2
call fcn.00402fe0
add esi, 4
cmp esi, ebx
jne 0x45468c
jmp 0x4546d6
xor edi, edi
inc edi
call fcn.00402fe0
lea ecx, [ebp - 0x40]
call fcn.00402fe0
lea ecx, [ebp - 0x58]
call fcn.00402fe0
lea ecx, [ebp - 0x290]
call fcn.004518e1
mov eax, edi
call fcn.0044ac04
ret
Function at 0x4546f9
Capabilities:
Enumerate processes

Disassembly:
push 0x260
mov eax, 0x5d123b
call fcn.0044ac5a
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x26c]
mov edi, 0x22c
xor ebx, ebx
push edi
push ebx
push eax
call fcn.0046cf80
add esp, 0xc
lea ecx, [ebp - 0x40]
push esi
call fcn.00403040
lea eax, [ebp - 0x40]
mov dword [ebp - 4], ebx
push eax
call fcn.004560e5
pop ecx
push ebx
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x4547b7
lea eax, [ebp - 0x26c]
mov dword [ebp - 0x26c], edi
push eax
push esi
call sub.KERNEL32.dll_Process32FirstW
jmp 0x4547a2
lea eax, [ebp - 0x248]
push eax
lea ecx, [ebp - 0x28]
call fcn.00403040
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 1
push eax
call fcn.004560e5
pop ecx
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x28]
call fcn.004465bf
lea ecx, [ebp - 0x28]
test al, al
jne 0x4547a8
mov byte [ebp - 4], bl
call fcn.00402fe0
lea eax, [ebp - 0x26c]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x45475d
jmp 0x4547b0
xor ebx, ebx
inc ebx
call fcn.00402fe0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x40]
call fcn.00402fe0
mov eax, ebx
call fcn.0044ac04
ret

Function at 0x456708
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x664340]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push 0x118
xor ebx, ebx
mov dword [ebp - 0x120], 0x11c
lea eax, [ebp - 0x11c]
push ebx
push eax
call fcn.0046cf80
add esp, 0xc
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x11c]
push eax
call fcn.004566bd
mov eax, dword [ebp - 0x11c]
add esp, 0xc
cmp eax, 5
jne 0x456787
cmp dword [ebp - 0x118], ebx
jbe 0x4567d6
cmp dword [ebp - 0x118], 1
setne bl
inc ebx
jmp 0x4567d6
cmp eax, 6
jne 0x4567b2
cmp byte [ebp - 6], 1
jne 0x4567ad
mov eax, dword [ebp - 0x118]
sub eax, ebx
je 0x4567a9
sub eax, 1
je 0x4567a5
push 6
jmp 0x4567af
push 5
jmp 0x4567af
push 3
jmp 0x4567af
push 4
pop ebx
jmp 0x4567d6
cmp eax, 0xa
jne 0x4567d0
cmp dword [ebp - 0x118], ebx
jne 0x4567d6
cmp dword [ebp - 0x114], 0x4e20
sbb ebx, ebx
add ebx, 8
jmp 0x4567d6
push 9
pop ecx
cmova ebx, ecx
mov ecx, dword [ebp - 4]
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.0044a851
leave
ret
Function at 0x456c20
Capabilities:
Check os version
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
mov eax, dword [0x664340]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, 0x114
lea eax, [ebp - 0x118]
push edi
xor ebx, ebx
xor esi, esi
push ebx
push eax
inc esi
call fcn.0046cf80
add esp, 0xc
mov dword [ebp - 0x118], edi
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x456cf5
cmp dword [ebp - 0x114], 5
jbe 0x456cf3
push 4
pop eax
mov dword [ebp - 0x128], eax
mov dword [ebp - 0x124], eax
lea eax, [ebp - 0x11c]
push eax
push 0x20019
push ebx
push str.SOFTWAREMicrosoftWindowsCurrentVersionPoliciesSystem_
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x11c], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x456cf5
lea eax, [ebp - 0x124]
mov dword [ebp - 0x120], ebx
push eax
lea eax, [ebp - 0x120]
push eax
lea eax, [ebp - 0x128]
push eax
push ebx
push str.PromptOnSecureDesktop
push dword [ebp - 0x11c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x456ce5
cmp dword [ebp - 0x120], eax
cmove esi, eax
push dword [ebp - 0x11c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x456cf5
mov esi, ebx
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0044a851
leave
ret

Function at 0x456d06
Capabilities:
Check os version
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x664340]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x144]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov esi, 0x11c
lea eax, [ebp - 0x120]
push esi
push 0
push eax
call fcn.0046cf80
add esp, 0xc
mov dword [ebp - 0x120], esi
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x11c], 5
pop esi
jg 0x456d69
cmp dword [ebp - 0x118], 2
jg 0x456d69
xor eax, eax
inc eax
jmp 0x456d6b
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044a851
leave
ret
Function at 0x4580a9
Capabilities:
Check if file exists
Copy file
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x620
mov eax, dword [0x664340]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x61c]
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, 0x208
push esi
push 0
push eax
mov dword [ebp - 0x620], ebx
call fcn.0046cf80
push esi
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.0046cf80
lea eax, [ebp - 0x61c]
push ebx
push eax
call fcn.0047bb33
lea eax, [ebp - 0x414]
push edi
push eax
call fcn.0047bb33
lea eax, [ebp - 0x61c]
push eax
call fcn.0047a632
lea eax, [ebp - 0x414]
push eax
call fcn.0047a632
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x61c]
push eax
call fcn.0047c3f2
add esp, 0x38
test eax, eax
je 0x4581ee
mov ebx, dword [sym.imp.KERNEL32.dll_MoveFileExW]
xor esi, esi
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.0046cf80
add esp, 0xc
lea eax, [ebp - 0x20c]
test esi, esi
jne 0x458177
push edi
push 0x5dcedc
push eax
call fcn.00405db0
add esp, 0xc
jmp 0x458187
push esi
push edi
push str._s.bak_d
push eax
call fcn.00405db0
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4581a5
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x20c]
push eax
push edi
call fcn.0047a45c
pop ecx
pop ecx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push edi
push dword [ebp - 0x620]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
push 5
test eax, eax
lea eax, [ebp - 0x20c]
push 0
push eax
jne 0x4581ec
call ebx
cmp esi, 0xa
jge 0x4581ee
inc esi
jmp 0x458146
call ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0044a851
leave
ret
Function at 0x458502
Capabilities:
Check if file exists
Get file size
Read file on windows

Disassembly:
push 0xb0
mov eax, 0x5d188b
call fcn.0044ac5a
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0xb8], eax
xor esi, esi
lea ecx, [ebp - 0x28]
push 0x6568a4
mov dword [ebp - 4], esi
call fcn.00403040
lea ecx, [ebp - 0xb4]
mov byte [ebp - 4], 1
call fcn.004677c0
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
mov edi, esi
cmovae eax, dword [ebp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4585ca
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
push esi
cmovae eax, dword [ebp + 8]
push 0x80
push 4
push esi
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4585cc
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [ebp - 0xb8]
push eax
mov dword [ecx], eax
call fcn.0044a885
mov edi, eax
pop ecx
test edi, edi
je 0x4585cc
mov eax, dword [ebp - 0xb8]
push dword [eax]
push esi
push edi
call fcn.0046cf80
add esp, 0xc
lea eax, [ebp - 0xbc]
push esi
push eax
mov eax, dword [ebp - 0xb8]
push dword [eax]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, edi
lea ecx, [ebp - 0x28]
call fcn.00402fe0
lea ecx, [ebp + 8]
call fcn.00402fe0
mov eax, esi
call fcn.0044ac04
ret
Function at 0x4585e4
Capabilities:
Check if file exists
Get file size
Read file on windows

Disassembly:
push 0xe4
mov eax, 0x5d18d3
call fcn.0044ac5a
mov esi, dword [ebp + 8]
mov dword [ebp - 0xe8], esi
mov edi, 0x6568a4
lea ecx, [ebp - 0x28]
xor ebx, ebx
push edi
mov dword [ebp - 4], ebx
call fcn.00403040
lea ecx, [ebp - 0xe4]
mov byte [ebp - 4], 1
call fcn.004677c0
cmp dword [ebp + 0x20], 8
lea eax, [ebp + 0xc]
cmovae eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x458727
cmp dword [ebp + 0x20], 8
lea eax, [ebp + 0xc]
push ebx
cmovae eax, dword [ebp + 0xc]
push 0x80
push 4
push ebx
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x45866e
push edi
mov ecx, esi
call fcn.00403040
jmp 0x458744
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0xec], eax
inc eax
push eax
mov dword [ebp - 0xe8], eax
call fcn.0044a885
mov edi, eax
pop ecx
test edi, edi
jne 0x458698
push 0x6568a4
jmp 0x458662
push dword [ebp - 0xe8]
push 0
push edi
call fcn.0046cf80
add esp, 0xc
lea eax, [ebp - 0xf0]
push 0
push eax
push dword [ebp - 0xec]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0xec]
lea ecx, [ebp - 0xe4]
push edi
call fcn.0046817a
push edi
call fcn.0044a88e
pop ecx
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0xe4]
call fcn.004679cb
push eax
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 2
push eax
call fcn.00455f69
pop ecx
pop ecx
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 4
call fcn.00403100
cmp dword [ebp - 0x30], 0
jbe 0x45871d
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x28]
call fcn.00417ad0
lea ecx, [ebp - 0x40]
call fcn.00402fe0
xor ebx, ebx
mov byte [ebp - 0xe8], bl
lea eax, [ebp - 0x28]
push dword [ebp - 0xe8]
mov ecx, esi
mov dword [esi + 0x10], ebx
push eax
mov dword [esi + 0x14], ebx
call fcn.0044651c
lea ecx, [ebp - 0x28]
call fcn.00402fe0
lea ecx, [ebp + 0xc]
call fcn.00402fe0
mov eax, esi
call fcn.0044ac04
ret
Function at 0x45875c
Capabilities:
Check if file exists
Copy file
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x620
mov eax, dword [0x664340]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x61c]
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, 0x208
push esi
push 0
push eax
mov dword [ebp - 0x620], ebx
call fcn.0046cf80
push esi
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.0046cf80
lea eax, [ebp - 0x61c]
push ebx
push eax
call fcn.0047bb33
lea eax, [ebp - 0x414]
push edi
push eax
call fcn.0047bb33
lea eax, [ebp - 0x61c]
push eax
call fcn.0047a632
lea eax, [ebp - 0x414]
push eax
call fcn.0047a632
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x61c]
push eax
call fcn.0047c3f2
add esp, 0x38
test eax, eax
je 0x4588ba
push ebx
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
call ebx
test eax, eax
je 0x4588ba
xor esi, esi
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.0046cf80
add esp, 0xc
lea eax, [ebp - 0x20c]
test esi, esi
jne 0x45883a
push 0x5dce78
push edi
push 0x5d82b0
push eax
call fcn.00405db0
add esp, 0x10
jmp 0x45884f
push esi
push 0x5dce78
push edi
push str._s_s_d
push eax
call fcn.00405db0
add esp, 0x14
lea eax, [ebp - 0x20c]
push eax
call ebx
test eax, eax
je 0x458869
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x20c]
push eax
push edi
call fcn.0047a45c
pop ecx
pop ecx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push edi
push dword [ebp - 0x620]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
push 5
test eax, eax
lea eax, [ebp - 0x20c]
push 0
push eax
jne 0x4588b4
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
cmp esi, 0xa
jge 0x4588ba
inc esi
jmp 0x458804
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0044a851
leave
ret

Function at 0x4588c9
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor esi, esi
xor edi, edi
push esi
push 0x80
push 2
push esi
inc edi
push edi
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4588f8
xor eax, eax
jmp 0x458926
push esi
lea eax, [ebp - 4]
mov dword [ebp - 4], esi
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x458922
mov eax, dword [ebp + 0x10]
cmp eax, dword [ebp - 4]
je 0x458924
xor edi, edi
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x459425
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
cmp dword [ebp + 8], 0
je 0x4594d0
push ebx
push esi
push edi
xor ebx, ebx
push str.b69749abbfffc7f6494ec5c0eb4c7d2c
mov dword [ebp - 4], ebx
call fcn.0047bb70
mov edi, dword [ebp + 0xc]
push edi
mov dword [ebp - 8], eax
call fcn.0044a885
push edi
push dword [ebp + 8]
mov esi, eax
push esi
call fcn.0046c480
add esp, 0x14
mov edx, ebx
test edi, edi
je 0x459480
mov ecx, ebx
mov al, byte [ecx + str.b69749abbfffc7f6494ec5c0eb4c7d2c]
xor byte [edx + esi], al
inc ecx
xor eax, eax
cmp ecx, dword [ebp - 8]
cmovge ecx, eax
inc edx
cmp edx, edi
jb 0x459469
cmp edi, 1
jle 0x4594a2
cmp byte [esi], 0x37
jne 0x4594a2
mov al, byte [esi + 1]
cmp al, 0x7a
je 0x459495
cmp al, 0x5a
jne 0x4594a2
lea eax, [ebp - 4]
push eax
push edi
push esi
call fcn.0043fd40
mov ebx, eax
push esi
call fcn.0044a88e
pop ecx
test ebx, ebx
je 0x4594c0
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x4594c0
mov eax, dword [ebp + 0x10]
mov dword [eax], ebx
mov eax, dword [ebp + 0x14]
mov dword [eax], ecx
jmp 0x4594cd
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 8]
mov dword [eax], ecx
mov eax, dword [ebp + 0x14]
mov dword [eax], edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x459ec1
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push dword [ebp + 8]
call fcn.0047bb55
mov dword [ebp - 4], eax
xor ecx, ecx
push 2
inc eax
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0044a885
push dword [ebp + 8]
mov esi, eax
push esi
call fcn.0047bb33
mov eax, dword [ebp - 4]
xor edi, edi
add esp, 0x10
xor ebx, ebx
inc edi
test eax, eax
js 0x459f3b
push 0x5c
pop ecx
cmp word [esi + ebx*2], cx
jne 0x459f32
xor eax, eax
push esi
mov word [esi + ebx*2], ax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x459f28
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x459f39
mov eax, dword [ebp - 4]
push 0x5c
pop ecx
mov word [esi + ebx*2], cx
inc ebx
cmp ebx, eax
jle 0x459f05
jmp 0x459f3b
xor edi, edi
push esi
call fcn.0044a88e
pop ecx
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret