joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41c590
Capabilities:
Move file

Disassembly:
push 0xffffffffffffffff
push 0x45060b
mov eax, dword fs:[0]
push eax
mov eax, 0x30cc
call fcn.00443040
mov eax, dword [0x459800]
xor eax, esp
mov dword [esp + 0x30c8], eax
push ebx
push esi
push edi
mov eax, dword [0x459800]
xor eax, esp
push eax
lea eax, [esp + 0x30dc]
mov dword fs:[0], eax
mov edi, dword [esp + 0x30ec]
lea ecx, [esp + 0x184c]
call fcn.00439e90
lea ecx, [esp + 0x1870]
call fcn.00439e90
lea ecx, [esp + 0x1894]
call fcn.00439e90
push 0
lea eax, [esp + 0xc3c]
push eax
push edi
push 0
call fcn.004203c0
test al, al
je 0x41c7b2
cmp word [esp + 0x18b8], 0
je 0x41c7b2
lea ecx, [esp + 0x18b8]
push ecx
lea edx, [esp + 0x103c]
push edx
call fcn.00428fa0
push eax
call fcn.0043a5e0
test eax, eax
je 0x41c7b2
lea eax, [esp + 0x18b8]
push eax
push edi
call fcn.00428fa0
push eax
call fcn.0043a5e0
test eax, eax
jne 0x41c7b2
mov word [esp + 0x20d8], ax
xor esi, esi
jmp 0x41c670
test ax, ax
jne 0x41c6e4
push 0x400
push edi
lea ecx, [esp + 0x20e0]
push ecx
call fcn.00438d60
push esi
push str.rtmp_d
lea edx, [esp + 0x20e0]
push edx
call fcn.00428fa0
push eax
mov edx, 0x400
call fcn.00433380
add esp, 0xc
lea eax, [esp + 0x20d8]
push eax
push 0
call fcn.0041df30
test al, al
je 0x41c6c8
xor eax, eax
mov word [esp + 0x20d8], ax
jmp 0x41c6d0
mov ax, word [esp + 0x20d8]
add esi, 0x7b
cmp esi, 0x2710
jl 0x41c670
test ax, ax
je 0x41c7b2
push 0x400
push edi
lea ecx, [esp + 0x28e0]
push ecx
call fcn.00438d60
lea edx, [esp + 0x1038]
push edx
call fcn.00428fa0
mov esi, eax
lea eax, [esp + 0x28d8]
push eax
call fcn.00428fa0
movzx ecx, word [esi]
mov word [eax], cx
add esi, 2
add eax, 2
test cx, cx
jne 0x41c713
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileW]
lea ecx, [esp + 0x20d8]
push ecx
lea edx, [esp + 0x28dc]
push edx
call esi
test eax, eax
je 0x41c7b2
lea ecx, [esp + 0x10]
call fcn.0041cba0
push edi
push 0
mov dword [esp + 0x30ec], 0
xor bl, bl
call fcn.0041df30
test al, al
jne 0x41c772
push 9
push edi
push 0
lea ecx, [esp + 0x1c]
call fcn.0041d1a0
mov bl, al
lea eax, [esp + 0x28d8]
push eax
lea ecx, [esp + 0x20dc]
push ecx
call esi
test bl, bl
je 0x41c79a
lea ecx, [esp + 0x10]
call fcn.0041cc20
lea ecx, [esp + 0x10]
call fcn.0041ccd0
lea ecx, [esp + 0x10]
mov dword [esp + 0x30e4], 0xffffffff
call fcn.0041cfb0
mov al, 1
jmp 0x41c7b4
xor al, al
mov ecx, dword [esp + 0x30dc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x30c8]
xor ecx, esp
call fcn.00443023
add esp, 0x30d8
ret 4
Function at 0x41cfe0
Capabilities:
Check if file exists

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, ecx
cmp byte [edi + 0x1c], 0
mov ecx, dword [esp + 0x1c]
mov dword [edi + 0xc20], 0
jne 0x41d003
test cl, 4
jne 0x41d003
xor al, al
jmp 0x41d005
mov al, 1
mov edx, ecx
shr edx, 1
and dl, 1
movzx esi, dl
neg esi
sbb esi, esi
and esi, 0xc0000000
add esi, 0x80000000
test cl, 1
je 0x41d02a
or esi, 0x40000000
mov ebx, 1
test al, al
je 0x41d038
mov ebx, 3
xor eax, eax
cmp byte [edi + 0x15], al
setne al
dec eax
and eax, 0x8000000
mov ebp, eax
call fcn.00420cd0
test eax, eax
je 0x41d075
mov eax, dword [esp + 0x18]
test eax, eax
je 0x41d075
cmp word [eax], 0
je 0x41d075
push 0
push ebp
push 3
push 0
push ebx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, dword [esp + 0x14]
jmp 0x41d089
push 0
push ebp
mov ebp, dword [esp + 0x1c]
push 3
push 0
push ebx
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x41d0a5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x41d0a5
mov dword [edi + 0xc20], 1
cmp esi, 0xffffffff
setne bl
mov byte [edi + 0x12], 0
mov dword [edi + 0xc], 0
mov byte [edi + 0x10], 0
test bl, bl
je 0x41d156
mov dword [edi + 4], esi
mov esi, dword [esp + 0x18]
test esi, esi
je 0x41d0f8
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41d0d2
sub eax, edx
sar eax, 1
lea ecx, [eax + eax + 2]
push ecx
lea edx, [edi + 0x41e]
push esi
push edx
call fcn.00444930
add esp, 0xc
jmp 0x41d101
xor eax, eax
mov word [edi + 0x41e], ax
test ebp, ebp
je 0x41d13c
mov eax, ebp
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x41d110
sub eax, edx
inc eax
push eax
lea ecx, [edi + 0x1d]
push ebp
push ecx
call fcn.00444930
mov eax, dword [edi + 4]
add esp, 0xc
push eax
mov ecx, edi
call fcn.0041cbf0
pop edi
pop esi
pop ebp
mov al, bl
pop ebx
ret 0xc
push 0x1000000
lea edx, [edi + 0x1d]
push edx
push esi
call fcn.0043a320
mov eax, dword [edi + 4]
push eax
mov ecx, edi
call fcn.0041cbf0
pop edi
pop esi
pop ebp
mov al, bl
pop ebx
ret 0xc

Function at 0x41d320
Capabilities:
Read file on windows

Disassembly:
push ebx
push esi
mov esi, ecx
cmp dword [esi + 0xc], 1
push edi
mov edi, dword [esp + 0x14]
jne 0x41d347
cmp edi, 0x4e20
jbe 0x41d33c
mov edi, 0x4e20
push 0xfffffffffffffff6
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [esi + 4], eax
mov ebx, dword [esp + 0x10]
mov ecx, dword [esi + 4]
push 0
lea eax, [esp + 0x18]
push eax
push edi
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x41d3b8
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
je 0x41d396
push eax
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 2
je 0x41d37b
cmp eax, 3
jne 0x41d396
cmp edi, 0x4e20
jbe 0x41d396
push 0x4e20
push ebx
mov ecx, esi
call fcn.0041d320
pop edi
pop esi
pop ebx
ret 8
cmp dword [esi + 0xc], 1
jne 0x41d3af
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
jne 0x41d3af
pop edi
pop esi
xor eax, eax
pop ebx
ret 8
pop edi
pop esi
or eax, 0xffffffff
pop ebx
ret 8
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebx
ret 8
Function at 0x41d770
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x1c
push ebx
mov ebx, dword [esp + 0x28]
push esi
mov esi, ecx
test ebx, ebx
je 0x41d98e
mov eax, dword [esi + 0xc]
test eax, eax
je 0x41d7ae
sub eax, 1
je 0x41d7a3
sub eax, 1
jne 0x41d7ae
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push ebp
mov dword [esi + 4], eax
push edi
jmp 0x41d7d0
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [esi + 4], eax
push ebp
push edi
jmp 0x41d7d0
mov ebx, dword [esp + 0x34]
jmp 0x41d7d0
cmp dword [esi + 0xc], 0
mov dword [esp + 0x10], 0
je 0x41d824
xor edi, edi
test ebx, ebx
jbe 0x41d849
mov eax, ebx
sub eax, edi
cmp eax, 0x4000
jb 0x41d7f4
mov eax, 0x4000
mov edx, dword [esp + 0x30]
push 0
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esi + 4]
push eax
lea eax, [edi + edx]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, 1
sete al
test al, al
je 0x41d849
add edi, 0x4000
cmp edi, ebx
jb 0x41d7e4
jmp 0x41d841
mov eax, dword [esp + 0x30]
mov ecx, dword [esi + 4]
push 0
lea edx, [esp + 0x14]
push edx
push ebx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, 1
sete al
test al, al
jne 0x41d988
cmp byte [esi + 0x14], 0
je 0x41d988
cmp dword [esi + 0xc], 0
jne 0x41d988
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, esi
mov edi, eax
call fcn.0041cdf0
mov ebx, eax
lea eax, [esi + 0x1d]
push eax
mov dword [esp + 0x2c], edx
call fcn.0041dcd0
push edi
mov dword [esp + 0x20], eax
mov ebp, edx
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
cmp ebp, eax
mov ebp, dword [esp + 0x34]
jb 0x41d8d9
ja 0x41d89a
cmp dword [esp + 0x1c], ebp
jbe 0x41d8d9
mov edi, dword [esp + 0x28]
mov edx, ebx
sub edx, ebp
mov ecx, edi
sbb ecx, eax
test ecx, ecx
jg 0x41d8d9
jl 0x41d8b1
cmp edx, 0xffffffff
ja 0x41d8d9
mov ecx, ebp
add ecx, ebx
adc eax, edi
mov dword [esp + 0x18], eax
js 0x41d8d9
jg 0x41d8c4
cmp ecx, 0xffffffff
jbe 0x41d8d9
lea edx, [esi + 0x41e]
push edx
lea eax, [esi + 0x1d]
push eax
mov ecx, 0x463e7c
call fcn.004188b0
push 0
lea ebx, [esi + 0x41e]
push ebx
lea edi, [esi + 0x1d]
push edi
mov ecx, 0x463e7c
call fcn.00418900
test al, al
je 0x41d96f
mov eax, dword [esp + 0x10]
cmp eax, ebp
jae 0x41d7c0
test eax, eax
jbe 0x41d7c0
mov ecx, esi
call fcn.0041cdf0
mov ecx, dword [esp + 0x10]
xor ebp, ebp
sub eax, ecx
mov ecx, dword [esi + 4]
sbb edx, ebp
cmp ecx, 0xffffffff
je 0x41d7c0
mov ebp, edx
push 0
mov dword [esp + 0x18], edx
lea edx, [esp + 0x18]
push edx
push eax
push ecx
sar ebp, 0x1f
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x41d7c0
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x41d7c0
cmp byte [esi + 0x14], 0
je 0x41d7c0
push ebx
push edi
mov ecx, 0x463e7c
call fcn.00418970
jmp 0x41d7c0
lea eax, [esi + 0x41e]
push eax
lea ecx, [esi + 0x1d]
push ecx
push 0
push 0
mov ecx, 0x463e7c
call fcn.00418b80
pop edi
mov byte [esi + 8], 1
pop ebp
pop esi
pop ebx
add esp, 0x1c
ret 8
Function at 0x41dc50
Capabilities:
Get disk information

Disassembly:
sub esp, 0x404
mov eax, dword [0x459800]
xor eax, esp
mov dword [esp + 0x400], eax
mov eax, dword [esp + 0x408]
lea ecx, [esp]
push ecx
push eax
call fcn.00428db0
movsx edx, byte [esp]
neg edx
sbb edx, edx
lea eax, [esp]
and edx, eax
push edx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 2
je 0x41dcac
cmp eax, 5
je 0x41dcac
xor eax, eax
mov ecx, dword [esp + 0x400]
xor ecx, esp
call fcn.00443023
add esp, 0x404
ret 4
mov ecx, dword [esp + 0x400]
xor ecx, esp
mov eax, 1
call fcn.00443023
add esp, 0x404
ret 4

Function at 0x41dcd0
Capabilities:
Get disk size

Disassembly:
sub esp, 0x42c
mov eax, dword [0x459800]
xor eax, esp
mov dword [esp + 0x428], eax
push esi
mov esi, dword [esp + 0x434]
lea eax, [esp + 0x2c]
push eax
push esi
call fcn.00428db0
cmp dword [0x461858], 0
jne 0x41dd2d
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x41dd20
push str.GetDiskFreeSpaceExA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x461858], eax
cmp dword [0x461858], 0
je 0x41ddae
push 0x400
lea ecx, [esp + 0x30]
push ecx
push esi
call fcn.00429460
lea edx, [esp + 0x1c]
push edx
movsx edx, byte [esp + 0x30]
lea eax, [esp + 0x28]
push eax
neg edx
lea ecx, [esp + 0xc]
sbb edx, edx
lea eax, [esp + 0x34]
push ecx
and edx, eax
push edx
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
call dword [0x461858]
test eax, eax
je 0x41ddae
mov eax, dword [esp + 8]
cmp eax, dword [esp + 0x20]
ja 0x41ddae
push 1
push 0
push 0
push eax
call fcn.00443830
mov ecx, dword [esp + 4]
xor esi, esi
add eax, ecx
adc edx, esi
pop esi
mov ecx, dword [esp + 0x428]
xor ecx, esp
call fcn.00443023
add esp, 0x42c
ret 4
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x14]
push eax
movsx eax, byte [esp + 0x34]
lea ecx, [esp + 0x14]
push ecx
neg eax
lea edx, [esp + 0x20]
sbb eax, eax
lea ecx, [esp + 0x38]
push edx
and eax, ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
jne 0x41ddfb
mov eax, 0x163e00
xor edx, edx
pop esi
mov ecx, dword [esp + 0x428]
xor ecx, esp
call fcn.00443023
add esp, 0x42c
ret 4
mov eax, dword [esp + 0x14]
imul eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x42c]
mul dword [esp + 0x10]
pop esi
xor ecx, esp
call fcn.00443023
add esp, 0x42c
ret 4
Function at 0x41de20
Capabilities:
Get disk information

Disassembly:
sub esp, 0x50c
mov eax, dword [0x459800]
xor eax, esp
mov dword [esp + 0x508], eax
mov eax, dword [esp + 0x510]
lea ecx, [esp + 0x108]
push ecx
push eax
call fcn.00428db0
push 0x105
lea edx, [esp + 4]
push edx
push 0
push 0
push 0
push 0
push 0
lea eax, [esp + 0x124]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
je 0x41df0f
mov ecx, 0x4528dc
lea eax, [esp]
jmp 0x41de80
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x41dea0
test dl, dl
je 0x41de9c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x41dea0
add eax, 2
add ecx, 2
test dl, dl
jne 0x41de80
xor eax, eax
jmp 0x41dea5
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x41def3
mov ecx, str.FAT32
lea eax, [esp]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x41ded1
test dl, dl
je 0x41decd
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x41ded1
add eax, 2
add ecx, 2
test dl, dl
jne 0x41deb1
xor eax, eax
jmp 0x41ded6
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x41def3
xor eax, eax
mov ecx, dword [esp + 0x508]
xor ecx, esp
call fcn.00443023
add esp, 0x50c
ret 4
mov eax, 1
mov ecx, dword [esp + 0x508]
xor ecx, esp
call fcn.00443023
add esp, 0x50c
ret 4
mov ecx, dword [esp + 0x508]
xor ecx, esp
xor al, al
call fcn.00443023
add esp, 0x50c
ret 4

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

Disassembly:
call fcn.00420cd0
test eax, eax
je 0x41df5b
mov eax, dword [esp + 8]
test eax, eax
je 0x41df5b
cmp word [eax], 0
je 0x41df5b
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov al, cl
ret 8
mov eax, dword [esp + 4]
test eax, eax
je 0x41df77
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x41df77
mov eax, 1
ret 8
xor eax, eax
ret 8

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

Disassembly:
call fcn.00420cd0
test eax, eax
je 0x41dfa7
mov eax, dword [esp + 4]
test eax, eax
je 0x41dfa7
cmp word [eax], 0
je 0x41dfa7
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne al
ret 4
xor al, al
ret 4

Function at 0x41e010
Capabilities:
Get file attributes

Disassembly:
call fcn.00420cd0
test eax, eax
je 0x41e031
mov eax, dword [esp + 8]
test eax, eax
je 0x41e031
cmp word [eax], 0
je 0x41e031
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
ret 8
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
ret 8

Function at 0x41e040
Capabilities:
Set file attributes

Disassembly:
call fcn.00420cd0
test eax, eax
je 0x41e06b
mov eax, dword [esp + 8]
test eax, eax
je 0x41e06b
cmp word [eax], 0
je 0x41e06b
mov ecx, dword [esp + 0xc]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne al
ret 0xc
mov eax, dword [esp + 4]
test eax, eax
je 0x41e087
mov edx, dword [esp + 0xc]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
setne al
ret 0xc
xor al, al
ret 0xc
Function at 0x41e090
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub esp, 0x5c
mov eax, dword [0x459800]
xor eax, esp
mov dword [esp + 0x58], eax
push ebx
push ebp
mov ebp, dword [esp + 0x68]
push esi
mov eax, ebp
push edi
lea edx, [eax + 1]
jmp 0x41e0b0
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x41e0b0
sub eax, edx
lea ecx, [esp + 0x10]
mov ebx, eax
call fcn.00439e90
lea ecx, [esp + 0x10]
call fcn.0043a190
lea ecx, [esp + 0x10]
call fcn.00439fa0
lea ecx, [esp + 0x10]
mov edi, eax
call fcn.00439c70
mov ecx, edi
shr ecx, 0xa
xor eax, ecx
xor edi, eax
xor esi, esi
lea esp, [esp]
cmp esi, 0x64
jle 0x41e0f9
mov eax, edi
jmp 0x41e10d
mov eax, 0x10624dd3
mul edi
shr edx, 6
imul edx, edx, 0x3e8
mov eax, edi
sub eax, edx
push eax
push esi
lea edx, [esp + 0x3c]
push str._u._03u
push edx
call fcn.0044306b
lea eax, [esp + 0x44]
add esp, 0x10
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x41e128
sub eax, edx
add eax, ebx
cmp eax, dword [esp + 0x74]
jae 0x41e18c
cmp esi, 0x3e8
je 0x41e18c
lea eax, [esp + 0x34]
mov edx, eax
mov ecx, ebp
sub ecx, edx
lea edx, [ecx + ebx]
mov edi, edi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x41e150
call fcn.00420cd0
test ebp, ebp
je 0x41e175
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x41e175
inc esi
jmp 0x41e0f0
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.00443023
add esp, 0x5c
ret 8
mov ecx, dword [esp + 0x68]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
xor eax, eax
call fcn.00443023
add esp, 0x5c
ret 8

Function at 0x41e1b0
Capabilities:
Move file

Disassembly:
mov eax, 0x1004
call fcn.00443040
mov eax, dword [0x459800]
xor eax, esp
mov dword [esp + 0x1000], eax
push ebx
mov ebx, dword [esp + 0x100c]
push ebp
mov ebp, dword [esp + 0x1018]
push esi
mov esi, dword [esp + 0x1018]
push edi
mov edi, dword [esp + 0x1024]
call fcn.00420cd0
test eax, eax
je 0x41e23f
test esi, esi
je 0x41e1fb
cmp word [esi], 0
jne 0x41e205
test edi, edi
je 0x41e23f
cmp word [edi], 0
je 0x41e23f
push 0x400
lea eax, [esp + 0x814]
push eax
push esi
push ebx
call fcn.00428e50
push 0x400
lea ecx, [esp + 0x14]
push ecx
push edi
push ebp
call fcn.00428e50
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x814]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
jmp 0x41e247
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_MoveFileA]
mov ecx, dword [esp + 0x1010]
pop edi
pop esi
test eax, eax
pop ebp
setne al
pop ebx
xor ecx, esp
call fcn.00443023
add esp, 0x1004
ret 0x10
Function at 0x41e5f0
Capabilities:
Check if file exists
Create directory

Disassembly:
push esi
push edi
call fcn.00420cd0
mov edi, dword [esp + 0xc]
mov esi, dword [esp + 0x10]
test eax, eax
je 0x41e618
test esi, esi
je 0x41e618
cmp word [esi], 0
je 0x41e618
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x41e625
test edi, edi
je 0x41e658
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x41e643
cmp byte [esp + 0x14], 0
je 0x41e63c
mov eax, dword [esp + 0x18]
push eax
push esi
push edi
call fcn.0041e040
pop edi
xor eax, eax
pop esi
ret 0x10
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x41e658
cmp eax, 3
mov eax, 1
jne 0x41e65d
mov eax, 2
pop edi
pop esi
ret 0x10

Function at 0x41e670
Capabilities:
Create directory

Disassembly:
sub esp, 0x40c
mov eax, dword [0x459800]
xor eax, esp
mov dword [esp + 0x408], eax
push ebp
mov ebp, dword [esp + 0x414]
test ebp, ebp
je 0x41e7dd
cmp byte [ebp], 0
je 0x41e7dd
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push edi
mov byte [esp + 0xf], 1
mov edi, ebp
push esi
mov edi, edi
mov esi, edi
sub esi, ebp
cmp esi, 0x400
jge 0x41e760
movsx eax, byte [edi]
push eax
call fcn.00428a60
test al, al
je 0x41e73e
push esi
lea ecx, [esp + 0x1c]
push ebp
push ecx
call fcn.00443ae0
add esp, 0xc
mov byte [esp + esi + 0x18], 0
call fcn.00420cd0
push 0
lea edx, [esp + 0x1c]
push edx
call ebx
test eax, eax
je 0x41e733
push 0
push 0
lea eax, [esp + 0x20]
push eax
call fcn.0041e040
lea ecx, [esp + 0x18]
push ecx
push 0xd6c
call fcn.00433c40
push eax
call fcn.00414190
add esp, 8
push 0xd1a
call fcn.00433c40
push eax
push 0x452884
call fcn.00414190
add esp, 8
jmp 0x41e73e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [esp + 0x13], 0
cmp byte [0x468610], 0
je 0x41e756
push edi
mov ecx, 0x468510
call fcn.0043aa50
mov edi, eax
jmp 0x41e757
inc edi
cmp byte [edi], 0
jne 0x41e6b0
cmp byte [esp + 0x424], 0
pop esi
jne 0x41e7bf
push ebp
call fcn.00429000
movsx edx, byte [eax]
push edx
call fcn.00428a60
test al, al
jne 0x41e7bf
call fcn.00420cd0
push 0
push ebp
call ebx
test eax, eax
je 0x41e7b4
push 0
push 0
push ebp
call fcn.0041e040
mov al, byte [esp + 0xf]
pop edi
pop ebx
pop ebp
mov ecx, dword [esp + 0x408]
xor ecx, esp
call fcn.00443023
add esp, 0x40c
ret 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [esp + 0xf], 0
mov al, byte [esp + 0xf]
pop edi
pop ebx
pop ebp
mov ecx, dword [esp + 0x408]
xor ecx, esp
call fcn.00443023
add esp, 0x40c
ret 8
mov ecx, dword [esp + 0x40c]
pop ebp
xor ecx, esp
xor al, al
call fcn.00443023
add esp, 0x40c
ret 8
Function at 0x41e800
Capabilities:
Create directory

Disassembly:
sub esp, 0xc0c
mov eax, dword [0x459800]
xor eax, esp
mov dword [esp + 0xc08], eax
push ebx
push ebp
mov ebp, dword [esp + 0xc18]
xor ebx, ebx
cmp ebp, ebx
je 0x41e975
cmp word [ebp], bx
je 0x41e975
push esi
push edi
mov byte [esp + 0x13], 1
xor edi, edi
lea ebx, [ebx]
mov esi, edi
sar esi, 1
cmp esi, 0x400
jge 0x41e91e
movzx eax, word [edi + ebp]
push eax
call fcn.00428a60
test al, al
je 0x41e911
push esi
lea ecx, [esp + 0x41c]
push ebp
push ecx
call fcn.00443c04
xor edx, edx
add esp, 0xc
mov word [esp + esi*2 + 0x418], dx
call fcn.00420cd0
test eax, eax
je 0x41e90d
cmp word [esp + 0x418], bx
je 0x41e90d
push ebx
lea eax, [esp + 0x41c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x41e907
push ebx
lea ecx, [esp + 0x41c]
push ecx
push ebx
call fcn.0041e040
push 0x400
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x420]
push eax
call fcn.0043a320
lea ecx, [esp + 0x18]
push ecx
push 0xd6c
mov byte [esp + 0x41f], bl
call fcn.00433c40
push eax
call fcn.00414190
add esp, 8
push 0xd1a
call fcn.00433c40
push eax
push 0x452884
call fcn.00414190
add esp, 8
jmp 0x41e911
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [esp + 0x13], bl
add edi, 2
cmp word [edi + ebp], bx
jne 0x41e840
pop edi
pop esi
cmp byte [esp + 0xc1c], bl
jne 0x41e96f
push ebp
call fcn.004289e0
movzx edx, word [eax]
push edx
call fcn.00428a60
test al, al
jne 0x41e96f
call fcn.00420cd0
test eax, eax
je 0x41e96b
cmp word [ebp], bx
je 0x41e96b
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x41e965
push ebx
push ebp
push ebx
call fcn.0041e040
mov al, byte [esp + 0xb]
jmp 0x41e977
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [esp + 0xb], bl
mov al, byte [esp + 0xb]
jmp 0x41e977
xor al, al
mov ecx, dword [esp + 0xc10]
pop ebp
pop ebx
xor ecx, esp
call fcn.00443023
add esp, 0xc0c
ret 8
Function at 0x41e9d0
Capabilities:
Get file attributes

Disassembly:
sub esp, 0x830
mov eax, dword [0x459800]
xor eax, esp
mov dword [esp + 0x82c], eax
mov eax, dword [esp + 0x844]
push ebx
mov ebx, dword [esp + 0x844]
push ebp
mov ebp, dword [esp + 0x83c]
push esi
mov esi, dword [esp + 0x848]
push edi
mov edi, dword [esp + 0x848]
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], ebx
mov dword [esp + 0x18], eax
call fcn.00420cd0
test eax, eax
je 0x41eb6e
test esi, esi
je 0x41ea32
cmp dword [esi], 0
mov byte [esp + 0x12], 1
jne 0x41ea37
mov byte [esp + 0x12], 0
test ebx, ebx
je 0x41ea45
cmp dword [ebx], 0
mov byte [esp + 0x11], 1
jne 0x41ea4a
mov byte [esp + 0x11], 0
mov eax, dword [esp + 0x18]
test eax, eax
je 0x41ea5c
cmp dword [eax], 0
mov byte [esp + 0x13], 1
jne 0x41ea61
mov byte [esp + 0x13], 0
call fcn.00420cd0
test eax, eax
je 0x41ea81
test edi, edi
je 0x41ea81
cmp word [edi], 0
je 0x41ea81
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [esp + 0x14], eax
jmp 0x41ea8c
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [esp + 0x14], eax
cmp eax, 0xffffffff
je 0x41eb89
test al, 1
je 0x41eb89
push 0
push edi
push ebp
mov bl, 1
call fcn.0041e040
push 0x400
lea ecx, [esp + 0x40]
push ecx
push edi
push ebp
call fcn.00428e50
push 0
push 0x2000000
push 3
push 0
push 3
push 0x40000000
lea edx, [esp + 0x54]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x41eb6e
cmp byte [esp + 0x12], 0
je 0x41eaf6
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x34]
push eax
call fcn.00439ba0
cmp byte [esp + 0x11], 0
je 0x41eb0b
lea ecx, [esp + 0x2c]
push ecx
mov ecx, dword [esp + 0x24]
call fcn.00439ba0
cmp byte [esp + 0x13], 0
je 0x41eb20
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x24]
push edx
call fcn.00439ba0
movzx eax, byte [esp + 0x12]
movzx edx, byte [esp + 0x13]
neg eax
sbb eax, eax
lea ecx, [esp + 0x34]
and eax, ecx
movzx ecx, byte [esp + 0x11]
neg edx
push eax
sbb edx, edx
lea eax, [esp + 0x28]
and edx, eax
push edx
neg ecx
sbb ecx, ecx
lea edx, [esp + 0x34]
and ecx, edx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test bl, bl
je 0x41eb6e
mov eax, dword [esp + 0x14]
push eax
push edi
push ebp
call fcn.0041e040
mov ecx, dword [esp + 0x83c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00443023
add esp, 0x830
ret 0x14
xor bl, bl
jmp 0x41eaa8

Function at 0x41ec90
Capabilities:
Set file attributes

Disassembly:
call fcn.00420cd0
test eax, eax
je 0x41ecb9
mov eax, dword [esp + 8]
test eax, eax
je 0x41ecb9
cmp word [eax], 0
je 0x41ecb9
mov dword [esp + 8], 0
mov dword [esp + 4], eax
jmp dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, dword [esp + 4]
test eax, eax
je 0x41ecd3
mov dword [esp + 8], 0
mov dword [esp + 4], eax
jmp dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
ret 8