joyce8/EMBER2024-capa huggingface dataset:
Function at 0x442ac5
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
test ebx, ebx
jne 0x442ad9
xor eax, eax
jmp 0x442c17
mov eax, ebx
shl eax, 3
push 6
pop ecx
cdq
idiv ecx
mov edx, ebx
imul ecx, eax, 6
shl edx, 3
push 3
sub edx, ecx
dec edx
pop ecx
sub edx, 1
je 0x442b02
dec edx
sub edx, 1
jne 0x442b04
add eax, 2
jmp 0x442b04
add eax, ecx
push esi
mov esi, dword [ebp + 0x14]
inc eax
cmp dword [esi], eax
jge 0x442b17
push 0xfffffffffffffff0
mov dword [esi], eax
pop eax
jmp 0x442c16
mov eax, ebx
cdq
idiv ecx
xor ecx, ecx
imul eax, eax, 3
push edi
mov edi, dword [ebp + 0x10]
test eax, eax
jle 0x442bad
dec eax
mov ebx, dword [ebp + 8]
xor edx, edx
push 3
pop ecx
div ecx
inc eax
imul ecx, eax, 3
mov dword [ebp - 4], eax
mov dword [ebp - 8], ecx
movzx ecx, byte [ebx]
movzx edx, byte [ebx + 1]
mov eax, ecx
movzx esi, byte [ebx + 2]
add ebx, 3
shr eax, 2
shl ecx, 4
mov al, byte [eax + 0x4b6238]
mov byte [edi], al
mov eax, edx
shr eax, 4
add eax, ecx
and eax, 0x3f
mov al, byte [eax + 0x4b6238]
mov byte [edi + 1], al
mov eax, esi
shr eax, 6
and esi, 0x3f
lea eax, [eax + edx*4]
and eax, 0x3f
mov al, byte [eax + 0x4b6238]
mov byte [edi + 2], al
mov al, byte [esi + 0x4b6238]
mov byte [edi + 3], al
add edi, 4
sub dword [ebp - 4], 1
jne 0x442b42
mov esi, dword [ebp + 0x14]
mov ecx, dword [ebp - 8]
mov dword [ebp - 4], ebx
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
jmp 0x442bb0
mov eax, dword [ebp + 8]
cmp ecx, ebx
jge 0x442c09
movzx edx, byte [eax]
inc ecx
mov dword [ebp + 0xc], ecx
cmp ecx, ebx
jge 0x442bc5
movzx ecx, byte [eax + 1]
jmp 0x442bc7
xor ecx, ecx
mov eax, edx
shl edx, 4
shr eax, 2
mov al, byte [eax + 0x4b6238]
mov byte [edi], al
mov eax, ecx
shr eax, 4
add eax, edx
and eax, 0x3f
mov al, byte [eax + 0x4b6238]
mov byte [edi + 1], al
cmp dword [ebp + 0xc], ebx
jge 0x442bfe
and ecx, 0xf
mov al, byte [ecx*4 + 0x4b6238]
mov byte [edi + 2], al
jmp 0x442c02
mov byte [edi + 2], 0x3d
mov byte [edi + 3], 0x3d
add edi, 4
mov eax, edi
sub eax, dword [ebp + 0x10]
mov dword [esi], eax
xor eax, eax
mov byte [edi], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x447418
Capabilities:
Get mac address on windows

Disassembly:
push 0x58
mov eax, 0x4ae28a
call fcn.0047d2fc
mov esi, dword [ebp + 8]
and dword [ebp - 0x64], 0
push 0x288
mov dword [ebp - 0x54], 4
call fcn.00462026
mov ebx, eax
pop ecx
test ebx, ebx
jne 0x447454
push 0x4b059e
mov ecx, esi
call fcn.0040c220
jmp 0x4475bc
lea eax, [ebp - 0x54]
push eax
push ebx
call sub.IPHLPAPI.DLL_GetAdaptersInfo
cmp eax, 0x6f
jne 0x447479
push ebx
call fcn.00462031
push dword [ebp - 0x54]
call fcn.00462026
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
je 0x447443
xor eax, eax
mov dword [ebp - 0x24], 0xf
mov dword [ebp - 0x28], eax
mov byte [ebp - 0x38], al
mov dword [ebp - 4], eax
lea eax, [ebp - 0x54]
push eax
push ebx
call sub.IPHLPAPI.DLL_GetAdaptersInfo
test eax, eax
jne 0x447591
mov byte [ebp - 0x20], al
lea edi, [ebp - 0x1f]
stosd dword es:[edi], eax
xor ecx, ecx
mov dword [ebp - 0x60], ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
and dword [ebp - 0x58], eax
mov dword [ebp - 0x5c], eax
mov byte [ebp - 4], 1
mov edi, ebx
test ebx, ebx
je 0x44756a
movzx eax, byte [edi + 0x199]
push eax
movzx eax, byte [edi + 0x198]
push eax
movzx eax, byte [edi + 0x197]
push eax
movzx eax, byte [edi + 0x196]
push eax
movzx eax, byte [edi + 0x195]
push eax
movzx eax, byte [edi + 0x194]
push eax
lea eax, [ebp - 0x20]
push str._02X_02X_02X_02X_02X_02X
push eax
call fcn.00410670
lea eax, [edi + 0x10c]
push eax
call fcn.004a6815
push 0x4b68bc
push eax
call fcn.0045c050
add esp, 0x2c
test eax, eax
jne 0x4475c6
cmp dword [edi + 0x1a0], 0x47
je 0x4475c6
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x50]
call fcn.0040c220
lea eax, [ebp - 0x50]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x60]
call fcn.004144a0
push 0
push 1
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 1
call fcn.0043c065
mov edi, dword [edi]
test edi, edi
jne 0x4474c1
mov eax, dword [ebp - 0x5c]
mov ecx, dword [ebp - 0x60]
sub eax, ecx
push 0x18
cdq
pop edi
idiv edi
test eax, eax
je 0x447589
lea eax, [ebp - 0x38]
cmp eax, ecx
je 0x447589
push 0xffffffffffffffff
push 0
push ecx
mov ecx, eax
call fcn.0040bf80
lea ecx, [ebp - 0x60]
call fcn.0043e6c1
push ebx
call fcn.00462031
pop ecx
xor ebx, ebx
mov dword [esi + 0x14], 0xf
lea eax, [ebp - 0x38]
mov dword [esi + 0x10], ebx
push eax
mov ecx, esi
mov byte [esi], bl
call fcn.0040fe40
push ebx
push 1
lea ecx, [ebp - 0x38]
call fcn.0043c065
mov eax, esi
call fcn.0047d2b7
ret 4
cmp byte [ebp - 0x20], 0
jne 0x4475d0
xor eax, eax
jmp 0x4475da
lea eax, [ebp - 0x20]
push eax
call fcn.0046a510
pop ecx
push eax
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x38]
call fcn.0040c340
jmp 0x447589
Function at 0x447606
Capabilities:
Get common file path
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6a4
mov eax, dword [0x4d5210]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor eax, eax
mov esi, dword [ebp + 8]
mov word [ebp - 0x18], ax
lea edi, [ebp - 0x16]
stosd dword es:[edi], eax
and dword [ebp - 0x6a4], 0
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x284]
mov edi, 0x208
push edi
push 0
push eax
call fcn.00459150
add esp, 0xc
lea eax, [ebp - 0x284]
mov ebx, 0x104
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x4c94c8
call fcn.0046a4eb
push eax
lea eax, [ebp - 0x284]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.0046aefc
push edi
lea eax, [ebp - 0x694]
push 0
push eax
call fcn.00459150
push edi
xor edi, edi
lea eax, [ebp - 0x48c]
push edi
push eax
call fcn.00459150
push 0x64
lea eax, [ebp - 0x7c]
mov dword [ebp - 0x698], edi
push edi
push eax
mov dword [ebp - 0x6a0], edi
mov dword [ebp - 0x69c], edi
call fcn.00459150
add esp, 0x34
lea eax, [ebp - 0x48c]
push ebx
push eax
lea eax, [ebp - 0x69c]
push eax
lea eax, [ebp - 0x6a0]
push eax
lea eax, [ebp - 0x698]
push eax
push ebx
lea eax, [ebp - 0x694]
push eax
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x447704
push dword [ebp - 0x698]
lea eax, [ebp - 0x7c]
push str._08X
push eax
call fcn.00410670
add esp, 0xc
lea eax, [ebp - 0x7c]
mov ecx, esi
push eax
call fcn.0040c220
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00434840
mov esp, ebp
pop ebp
ret 4
Function at 0x447a65
Capabilities:
Check os version

Disassembly:
push 0x34c
mov eax, 0x4ae314
call fcn.0047d2fc
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x330]
xor ebx, ebx
mov dword [ebp - 0x358], esi
push 0x118
push ebx
mov dword [ebp - 0x350], ebx
push eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0x334], 0x11c
call fcn.00459150
add esp, 0xc
lea eax, [ebp - 0x334]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
push 0x4c94e4
mov ecx, esi
call fcn.004078d0
mov eax, dword [ebp - 0x330]
mov dword [ebp - 0x34c], eax
movzx eax, byte [ebp - 0x21a]
mov dword [ebp - 0x354], eax
mov eax, dword [ebp - 0x328]
mov dword [ebp - 0x338], eax
mov eax, dword [ebp - 0x32c]
push str.ntdll.dll
mov dword [ebp - 4], ebx
mov dword [ebp - 0x350], 1
mov dword [ebp - 0x340], ebx
mov dword [ebp - 0x344], ebx
mov dword [ebp - 0x33c], ebx
mov dword [ebp - 0x348], eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
test edi, edi
je 0x447b5c
push str.RtlGetNtVersionNumbers
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x447b55
lea ecx, [ebp - 0x33c]
push ecx
lea ecx, [ebp - 0x344]
push ecx
lea ecx, [ebp - 0x340]
push ecx
call eax
movzx eax, word [ebp - 0x33c]
mov dword [ebp - 0x33c], eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 0x34c]
cmp eax, 5
jne 0x447b8e
mov eax, dword [ebp - 0x348]
test eax, eax
je 0x447c5a
cmp eax, 1
jne 0x447b84
mov edi, str.WindowsXP
jmp 0x447c4a
mov edi, str.WindowsServer2003
jmp 0x447c4a
cmp eax, 6
jne 0x447c5a
mov eax, dword [ebp - 0x348]
sub eax, ebx
je 0x447c37
sub eax, 1
je 0x447c30
mov edi, dword [ebp - 0x338]
sub eax, 1
jne 0x447c60
cmp edi, 0x1ebb
jne 0x447bcc
mov edi, str.Windows8
jmp 0x447c4a
lea eax, [edi - 0x1ee6]
cmp eax, 0x25
jbe 0x447bc5
cmp edi, 0x1f13
je 0x447bc5
cmp dword [ebp - 0x340], 0xa
jne 0x447c04
cmp dword [ebp - 0x344], 0
jne 0x447c60
push str.Windows10
call fcn.0046a4eb
pop ecx
push eax
push str.Windows10
jmp 0x447c27
cmp dword [ebp - 0x340], 6
jne 0x447c60
cmp dword [ebp - 0x344], 3
jne 0x447c60
push str.Windows8.1
call fcn.0046a4eb
pop ecx
push eax
push str.Windows8.1
mov ecx, esi
call fcn.00407a30
jmp 0x447c60
mov edi, str.Windows7
jmp 0x447c4a
cmp dword [ebp - 0x354], 1
mov edi, str.WindowsVista
je 0x447c4a
mov edi, str.WindowsServer2008
push edi
call fcn.0046a4eb
pop ecx
push eax
push edi
mov ecx, esi
call fcn.00407a30
mov edi, dword [ebp - 0x338]
push 0x4c94e4
mov ecx, esi
call fcn.0041ebd0
test eax, eax
jne 0x447cce
push 0x208
lea eax, [ebp - 0x218]
push ebx
push eax
call fcn.00459150
mov eax, dword [ebp - 0x34c]
push edi
push dword [ebp - 0x348]
push eax
lea eax, [ebp - 0x218]
push str.Windows_d._d._d
push eax
call fcn.0040a880
add esp, 0x20
cmp word [ebp - 0x218], 0
jne 0x447cb2
mov eax, ebx
jmp 0x447cbf
lea eax, [ebp - 0x218]
push eax
call fcn.0046a4eb
pop ecx
push eax
lea eax, [ebp - 0x218]
mov ecx, esi
push eax
call fcn.00407a30
cmp dword [ebp + 0xc], 0
je 0x447cfc
cmp word [ebp - 0x320], 0
je 0x447ced
lea eax, [ebp - 0x320]
push eax
call fcn.0046a4eb
pop ecx
mov ebx, eax
push ebx
lea eax, [ebp - 0x320]
mov ecx, esi
push eax
call fcn.00409fa0
mov eax, esi
call fcn.0047d2b7
ret
Function at 0x447e16
Capabilities:
Check os version
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x4d5210]
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.00459150
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 0x447e79
cmp dword [ebp - 0x118], 2
jg 0x447e79
xor eax, eax
inc eax
jmp 0x447e7b
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00434840
mov esp, ebp
pop ebp
ret

Function at 0x447e89
Capabilities:
Check if file exists
Copy file
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x620
mov eax, dword [0x4d5210]
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.00459150
push esi
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.00459150
lea eax, [ebp - 0x61c]
push ebx
push eax
call fcn.0046a4c9
lea eax, [ebp - 0x414]
push edi
push eax
call fcn.0046a4c9
lea eax, [ebp - 0x61c]
push eax
call fcn.00461ed9
lea eax, [ebp - 0x414]
push eax
call fcn.00461ed9
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x61c]
push eax
call fcn.0046a489
add esp, 0x38
test eax, eax
je 0x447fce
mov ebx, dword [sym.imp.KERNEL32.dll_MoveFileExW]
xor esi, esi
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.00459150
add esp, 0xc
lea eax, [ebp - 0x20c]
test esi, esi
jne 0x447f57
push edi
push str._s.bak
push eax
call fcn.0040a880
add esp, 0xc
jmp 0x447f67
push esi
push edi
push str._s.bak_d
push eax
call fcn.0040a880
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x447f85
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x20c]
push eax
push edi
call fcn.00461d03
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 0x447fcc
call ebx
cmp esi, 0xa
jge 0x447fce
inc esi
jmp 0x447f26
call ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00434840
mov esp, ebp
pop ebp
ret
Function at 0x4482e2
Capabilities:
Check if file exists
Get file size
Read file on windows

Disassembly:
push 0xc8
mov eax, 0x4ae3f6
call fcn.0047d2fc
mov esi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0xd0], ebx
push ebx
xor eax, eax
mov dword [ebp - 4], ebx
push 0x4c94e4
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], ebx
mov word [ebp - 0x28], ax
call fcn.00407a30
lea ecx, [ebp - 0xc4]
mov byte [ebp - 4], 1
call fcn.00440da3
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 0x448456
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 bind
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x448380
push 0x4c94e4
mov ecx, esi
call fcn.004078d0
jmp 0x448461
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0xc8], eax
inc eax
push eax
mov dword [ebp - 0xcc], eax
call fcn.00434aea
mov ebx, eax
pop ecx
test ebx, ebx
jne 0x4483bf
push 0x4c94e4
mov ecx, esi
call fcn.004078d0
push ebx
push 1
lea ecx, [ebp - 0x28]
call fcn.00407970
push ebx
jmp 0x44846d
push dword [ebp - 0xcc]
push 0
push ebx
call fcn.00459150
add esp, 0xc
lea eax, [ebp - 0xd4]
push 0
push eax
push dword [ebp - 0xc8]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0xc8]
lea ecx, [ebp - 0xc4]
push ebx
call fcn.00442664
push ebx
call fcn.00434af3
pop ecx
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0xc4]
call fcn.00441eb2
push eax
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 2
push eax
call fcn.00440454
pop ecx
pop ecx
xor ebx, ebx
mov byte [ebp - 4], 4
push ebx
push 1
lea ecx, [ebp - 0x58]
call fcn.0043c065
cmp dword [ebp - 0x30], ebx
jbe 0x44844b
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x28]
call fcn.00407c50
push ebx
push 1
lea ecx, [ebp - 0x40]
call fcn.00407970
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.00409c50
push ebx
push 1
lea ecx, [ebp - 0x28]
call fcn.00407970
push ebx
push 1
lea ecx, [ebp + 0xc]
call fcn.00407970
mov eax, esi
call fcn.0047d2b7
ret
Function at 0x44847f
Capabilities:
Check if file exists
Copy file
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x620
mov eax, dword [0x4d5210]
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.00459150
push esi
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.00459150
lea eax, [ebp - 0x61c]
push ebx
push eax
call fcn.0046a4c9
lea eax, [ebp - 0x414]
push edi
push eax
call fcn.0046a4c9
lea eax, [ebp - 0x61c]
push eax
call fcn.00461ed9
lea eax, [ebp - 0x414]
push eax
call fcn.00461ed9
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x61c]
push eax
call fcn.0046a489
add esp, 0x38
test eax, eax
je 0x4485d3
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4485d3
mov ebx, dword [sym.imp.KERNEL32.dll_MoveFileExW]
xor esi, esi
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.00459150
add esp, 0xc
lea eax, [ebp - 0x20c]
test esi, esi
jne 0x44855c
push edi
push str._s.bak
push eax
call fcn.0040a880
add esp, 0xc
jmp 0x44856c
push esi
push edi
push str._s.bak_d
push eax
call fcn.0040a880
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x44858a
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x20c]
push eax
push edi
call fcn.00461d03
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 0x4485d1
call ebx
cmp esi, 0xa
jge 0x4485d3
inc esi
jmp 0x44852b
call ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00434840
mov esp, ebp
pop ebp
ret

Function at 0x448931
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.0046a4eb
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.00434aea
push dword [ebp + 8]
mov esi, eax
push esi
call fcn.0046a4c9
mov eax, dword [ebp - 4]
xor edi, edi
add esp, 0x10
xor ebx, ebx
inc edi
test eax, eax
js 0x4489ab
push 0x5c
pop ecx
cmp word [esi + ebx*2], cx
jne 0x4489a2
xor eax, eax
push esi
mov word [esi + ebx*2], ax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x448998
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x4489a9
mov eax, dword [ebp - 4]
push 0x5c
pop ecx
mov word [esi + ebx*2], cx
inc ebx
cmp ebx, eax
jle 0x448975
jmp 0x4489ab
xor edi, edi
push esi
call fcn.00434af3
pop ecx
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4489bb
Capabilities:
Delete directory
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1608
call fcn.00434b00
mov eax, dword [0x4d5210]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push edi
push 0x208
push 0
push eax
call fcn.00459150
push esi
lea eax, [ebp - 0x20c]
push 0x4b1500
push eax
call fcn.0040a880
lea eax, [ebp - 0x20c]
push eax
call fcn.0046a4eb
add esp, 0x1c
lea ecx, [eax - 1]
test ecx, ecx
jle 0x448a28
push 0x5c
pop ecx
cmp word [ebp + eax*2 - 0x20e], cx
je 0x448a28
mov word [ebp + eax*2 - 0x20c], cx
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0xbe4]
push str._s.
push eax
call fcn.0040a880
add esp, 0xc
lea eax, [ebp - 0x1604]
push eax
lea eax, [ebp - 0xbe4]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x448b27
push 0x2e
pop ebx
lea eax, [ebp - 0x1604]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x448b27
cmp word [ebp - 0x15d8], bx
je 0x448a65
cmp word [ebp - 0x15d6], 0
je 0x448a65
cmp word [ebp - 0x15d6], bx
jne 0x448aa1
cmp word [ebp - 0x15d4], 0
je 0x448a65
test byte [ebp - 0x1604], 0x10
je 0x448aeb
push 0x208
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.00459150
lea eax, [ebp - 0x15d8]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push str._s_s_
push eax
call fcn.0040a880
lea eax, [ebp - 0x414]
push eax
call fcn.004489bb
add esp, 0x20
lea eax, [ebp - 0x15d8]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x13b4]
push 0x4b0a64
push eax
call fcn.0040a880
push ecx
push ecx
lea eax, [ebp - 0x13b4]
mov ecx, esp
push eax
call fcn.004078d0
call fcn.00449702
add esp, 0x18
jmp 0x448a65
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0x20
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00434840
mov esp, ebp
pop ebp
ret

Function at 0x448b4f
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x4d5210]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x20c]
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
push esi
push 0x1a
push eax
push esi
call fcn.004494c6
lea eax, [ebp - 0x20c]
push eax
call fcn.0046a4eb
add esp, 0x14
test eax, eax
je 0x448c07
lea eax, [ebp - 0x20c]
push 0x4c94c4
push eax
call fcn.0046a458
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.0046a458
lea eax, [ebp - 0x20c]
push 0x4c94c4
push eax
call fcn.0046a458
add esp, 0x18
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x448be0
lea eax, [ebp - 0x20c]
push eax
call fcn.00448931
pop ecx
cmp word [ebp - 0x20c], si
je 0x448bf8
lea eax, [ebp - 0x20c]
push eax
call fcn.0046a4eb
pop ecx
mov esi, eax
push esi
lea eax, [ebp - 0x20c]
mov ecx, edi
push eax
call fcn.00407a30
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00434840
mov esp, ebp
pop ebp
ret
Function at 0x448d40
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x4d5210]
xor eax, ebp
mov dword [ebp - 4], eax
mov al, byte [0x4d7250]
test al, al
jne 0x448dd9
push ebx
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.00459150
add esp, 0xc
lea eax, [ebp - 0x20c]
xor ebx, ebx
inc ebx
push ebx
push 0x1a
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x448dd0
lea eax, [ebp - 0x20c]
push eax
call fcn.00461ed9
lea eax, [ebp - 0x20c]
mov dword [esp], str.config_systemprofile
push eax
call fcn.0045a2a6
pop ecx
pop ecx
test eax, eax
jne 0x448dc8
lea eax, [ebp - 0x20c]
push str.documents_and_settingslocalservice
push eax
call fcn.0045a2a6
pop ecx
pop ecx
test eax, eax
je 0x448dd0
mov byte [0x4d7250], bl
jmp 0x448dd6
mov bl, byte [0x4d7250]
mov al, bl
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00434840
mov esp, ebp
pop ebp
ret
Function at 0x448de7
Capabilities:
Check if file exists

Disassembly:
push 0xc54
mov eax, 0x4ae49c
call fcn.0047d2fc
mov edi, dword [ebp + 8]
lea eax, [ebp - 0xc40]
mov ebx, dword [ebp + 0xc]
mov esi, 0x208
and dword [ebp - 0xc60], 0
push esi
push 0
push eax
call fcn.00459150
push esi
lea eax, [ebp - 0x830]
push 0
push eax
call fcn.00459150
push esi
lea eax, [ebp - 0x628]
push 0
push eax
call fcn.00459150
push esi
lea eax, [ebp - 0xa38]
push 0
push eax
call fcn.00459150
push esi
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00459150
push esi
xor esi, esi
lea eax, [ebp - 0x420]
push esi
push eax
call fcn.00459150
xor eax, eax
mov dword [ebp - 0xc44], 7
add esp, 0x48
mov dword [ebp - 0xc48], esi
mov word [ebp - 0xc58], ax
push esi
push 0x1a
lea eax, [ebp - 0xc40]
mov dword [ebp - 4], esi
push eax
push esi
call fcn.004494c6
lea eax, [ebp - 0xc40]
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.0046a4c9
lea eax, [ebp - 0x218]
push eax
call fcn.0046a4eb
lea eax, [ebp - 0x218]
push 0x5c
push eax
call fcn.0045a056
add esp, 0x24
test eax, eax
jne 0x448eeb
lea eax, [ebp - 0xc58]
push ebx
push eax
call fcn.00448b4f
pop ecx
pop ecx
lea eax, [ebp - 0xc58]
mov ecx, edi
push eax
call fcn.00409c50
push esi
push 1
jmp 0x44904c
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x830]
push eax
call fcn.0046a4c9
lea eax, [ebp - 0x830]
push str.Local
push eax
call fcn.0046a458
add esp, 0x10
lea eax, [ebp - 0x830]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
xor ecx, ecx
inc ecx
test eax, eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x628]
cmovne esi, ecx
push eax
call fcn.0046a4c9
lea eax, [ebp - 0x628]
push str.LocalLow
push eax
call fcn.0046a458
add esp, 0x10
lea eax, [ebp - 0x628]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
xor ecx, ecx
test eax, eax
push 1
pop eax
cmovne ecx, eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0xa38]
mov dword [ebp - 0xc5c], ecx
push eax
call fcn.0046a4c9
lea eax, [ebp - 0xa38]
push str.Roaming
push eax
call fcn.0046a458
add esp, 0x10
lea eax, [ebp - 0xa38]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
xor ecx, ecx
test eax, eax
push 1
pop eax
cmovne ecx, eax
test esi, esi
je 0x449029
cmp dword [ebp - 0xc5c], 0
je 0x449029
test ecx, ecx
je 0x449029
push ebx
lea eax, [ebp - 0x628]
push eax
lea eax, [ebp - 0x420]
push 0x4b15ac
push eax
call fcn.0040a880
add esp, 0x10
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x448ff9
lea eax, [ebp - 0x420]
push eax
call fcn.00448931
pop ecx
cmp word [ebp - 0x420], 0
jne 0x449007
xor eax, eax
jmp 0x449014
lea eax, [ebp - 0x420]
push eax
call fcn.0046a4eb
pop ecx
push eax
lea eax, [ebp - 0x420]
push eax
lea ecx, [ebp - 0xc58]
call fcn.00407a30
jmp 0x449038
lea eax, [ebp - 0xc58]
push ebx
push eax
call fcn.00448b4f
pop ecx
pop ecx
lea eax, [ebp - 0xc58]
mov ecx, edi
push eax
call fcn.00409c50
xor eax, eax
push 0
inc eax
push eax
lea ecx, [ebp - 0xc58]
call fcn.00407970
mov eax, edi
call fcn.0047d2b7
ret