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

Disassembly:
push 0xffffffffffffffff
push 0x4c289b
mov eax, dword fs:[0]
push eax
mov eax, 0x30cc
call fcn.004af740
mov eax, dword [0x4d88f0]
xor eax, esp
mov dword [esp + 0x30c8], eax
push ebx
push esi
push edi
mov eax, dword [0x4d88f0]
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.004128a0
lea ecx, [esp + 0x1870]
call fcn.004128a0
lea ecx, [esp + 0x1894]
call fcn.004128a0
push 0
lea eax, [esp + 0xc3c]
push eax
push edi
push 0
call fcn.0043a670
test al, al
je 0x433662
cmp word [esp + 0x18b8], 0
je 0x433662
lea ecx, [esp + 0x18b8]
push ecx
lea edx, [esp + 0x103c]
push edx
call fcn.00455740
push eax
call fcn.00476b80
test eax, eax
je 0x433662
lea eax, [esp + 0x18b8]
push eax
push edi
call fcn.00455740
push eax
call fcn.00476b80
test eax, eax
jne 0x433662
mov word [esp + 0x20d8], ax
xor esi, esi
jmp 0x433520
test ax, ax
jne 0x433594
push 0x400
push edi
lea ecx, [esp + 0x20e0]
push ecx
call fcn.0046f3f0
push esi
push str.rtmp_d
lea edx, [esp + 0x20e0]
push edx
call fcn.00455740
push eax
mov edx, 0x400
call fcn.00407130
add esp, 0xc
lea eax, [esp + 0x20d8]
push eax
push 0
call fcn.00434ed0
test al, al
je 0x433578
xor eax, eax
mov word [esp + 0x20d8], ax
jmp 0x433580
mov ax, word [esp + 0x20d8]
add esi, 0x7b
cmp esi, 0x2710
jl 0x433520
test ax, ax
je 0x433662
push 0x400
push edi
lea ecx, [esp + 0x28e0]
push ecx
call fcn.0046f3f0
lea edx, [esp + 0x1038]
push edx
call fcn.00455740
mov esi, eax
lea eax, [esp + 0x28d8]
push eax
call fcn.00455740
movzx ecx, word [esi]
mov word [eax], cx
add esi, 2
add eax, 2
test cx, cx
jne 0x4335c3
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 0x433662
lea ecx, [esp + 0x10]
call fcn.004339f0
mov dword [esp + 0x30e4], 0
push edi
push 0
xor bl, bl
call fcn.00434ed0
test al, al
jne 0x433622
push 9
push edi
push 0
lea ecx, [esp + 0x1c]
call fcn.00433ff0
mov bl, al
lea eax, [esp + 0x28d8]
push eax
lea ecx, [esp + 0x20dc]
push ecx
call esi
test bl, bl
je 0x43364a
lea ecx, [esp + 0x10]
call fcn.00433a70
lea ecx, [esp + 0x10]
call fcn.00433b20
mov dword [esp + 0x30e4], 0xffffffff
lea ecx, [esp + 0x10]
call fcn.00433e00
mov al, 1
jmp 0x433664
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.004af72c
add esp, 0x30d8
ret 4
Function at 0x433e30
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 0x433e53
test cl, 4
jne 0x433e53
xor al, al
jmp 0x433e55
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 0x433e7a
or esi, 0x40000000
mov ebx, 1
test al, al
je 0x433e88
mov ebx, 3
xor eax, eax
cmp byte [edi + 0x15], al
setne al
dec eax
and eax, 0x8000000
mov ebp, eax
call fcn.00444190
test eax, eax
je 0x433ec5
mov eax, dword [esp + 0x18]
test eax, eax
je 0x433ec5
cmp word [eax], 0
je 0x433ec5
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 0x433ed9
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 0x433ef5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x433ef5
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 0x433fa6
mov dword [edi + 4], esi
mov esi, dword [esp + 0x18]
test esi, esi
je 0x433f48
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x433f22
sub eax, edx
sar eax, 1
lea ecx, [eax + eax + 2]
push ecx
lea edx, [edi + 0x41e]
push esi
push edx
call fcn.004b0420
add esp, 0xc
jmp 0x433f51
xor eax, eax
mov word [edi + 0x41e], ax
test ebp, ebp
je 0x433f8c
mov eax, ebp
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x433f60
sub eax, edx
inc eax
push eax
lea ecx, [edi + 0x1d]
push ebp
push ecx
call fcn.004b0420
mov eax, dword [edi + 4]
add esp, 0xc
push eax
mov ecx, edi
call fcn.00433a40
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.00476820
mov eax, dword [edi + 4]
push eax
mov ecx, edi
call fcn.00433a40
pop edi
pop esi
pop ebp
mov al, bl
pop ebx
ret 0xc

Function at 0x434170
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 0x434197
cmp edi, 0x4e20
jbe 0x43418c
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 0x434208
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
je 0x4341e6
push eax
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 2
je 0x4341cb
cmp eax, 3
jne 0x4341e6
cmp edi, 0x4e20
jbe 0x4341e6
push 0x4e20
push ebx
mov ecx, esi
call fcn.00434170
pop edi
pop esi
pop ebx
ret 8
cmp dword [esi + 0xc], 1
jne 0x4341ff
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
jne 0x4341ff
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 0x434530
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 0x43474e
mov eax, dword [esi + 0xc]
test eax, eax
je 0x43456e
sub eax, 1
je 0x434563
sub eax, 1
jne 0x43456e
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push ebp
mov dword [esi + 4], eax
push edi
jmp 0x434590
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [esi + 4], eax
push ebp
push edi
jmp 0x434590
mov ebx, dword [esp + 0x34]
jmp 0x434590
cmp dword [esi + 0xc], 0
mov dword [esp + 0x10], 0
je 0x4345e4
xor edi, edi
test ebx, ebx
jbe 0x434609
mov eax, ebx
sub eax, edi
cmp eax, 0x4000
jb 0x4345b4
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 0x434609
add edi, 0x4000
cmp edi, ebx
jb 0x4345a4
jmp 0x434601
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 0x434748
cmp byte [esi + 0x14], 0
je 0x434748
cmp dword [esi + 0xc], 0
jne 0x434748
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, esi
mov edi, eax
call fcn.00433c40
mov ebx, eax
lea eax, [esi + 0x1d]
push eax
mov dword [esp + 0x2c], edx
call fcn.00434c70
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 0x434699
ja 0x43465a
cmp dword [esp + 0x1c], ebp
jbe 0x434699
mov edi, dword [esp + 0x28]
mov edx, ebx
sub edx, ebp
mov ecx, edi
sbb ecx, eax
test ecx, ecx
jg 0x434699
jl 0x434671
cmp edx, 0xffffffff
ja 0x434699
mov ecx, ebp
add ecx, ebx
adc eax, edi
mov dword [esp + 0x18], eax
js 0x434699
jg 0x434684
cmp ecx, 0xffffffff
jbe 0x434699
lea edx, [esi + 0x41e]
push edx
lea eax, [esi + 0x1d]
push eax
mov ecx, 0x5062f4
call fcn.0042c5b0
push 0
lea ebx, [esi + 0x41e]
push ebx
lea edi, [esi + 0x1d]
push edi
mov ecx, 0x5062f4
call fcn.0042c630
test al, al
je 0x43472f
mov eax, dword [esp + 0x10]
cmp eax, ebp
jae 0x434580
test eax, eax
jbe 0x434580
mov ecx, esi
call fcn.00433c40
mov ecx, dword [esp + 0x10]
xor ebp, ebp
sub eax, ecx
mov ecx, dword [esi + 4]
sbb edx, ebp
cmp ecx, 0xffffffff
je 0x434580
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 0x434580
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x434580
cmp byte [esi + 0x14], 0
je 0x434580
push ebx
push edi
mov ecx, 0x5062f4
call fcn.0042c710
jmp 0x434580
lea eax, [esi + 0x41e]
push eax
lea ecx, [esi + 0x1d]
push ecx
push 0
push 0
mov ecx, 0x5062f4
call fcn.0042cae0
pop edi
mov byte [esi + 8], 1
pop ebp
pop esi
pop ebx
add esp, 0x1c
ret 8
Function at 0x434b70
Capabilities:
Get disk information

Disassembly:
sub esp, 0x404
mov eax, dword [0x4d88f0]
xor eax, esp
mov dword [esp + 0x400], eax
mov eax, dword [esp + 0x408]
lea ecx, [esp]
push ecx
push eax
call fcn.00455550
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 0x434bcc
cmp eax, 5
je 0x434bcc
xor eax, eax
mov ecx, dword [esp + 0x400]
xor ecx, esp
call fcn.004af72c
add esp, 0x404
ret 4
mov ecx, dword [esp + 0x400]
xor ecx, esp
mov eax, 1
call fcn.004af72c
add esp, 0x404
ret 4

Function at 0x434bf0
Capabilities:
Get disk information

Disassembly:
sub esp, 0x804
mov eax, dword [0x4d88f0]
xor eax, esp
mov dword [esp + 0x800], eax
mov eax, dword [esp + 0x808]
lea ecx, [esp]
push ecx
push eax
call fcn.00456b30
movzx edx, word [esp]
neg edx
sbb edx, edx
lea eax, [esp]
and edx, eax
push edx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 2
je 0x434c4c
cmp eax, 5
je 0x434c4c
xor eax, eax
mov ecx, dword [esp + 0x800]
xor ecx, esp
call fcn.004af72c
add esp, 0x804
ret 4
mov ecx, dword [esp + 0x800]
xor ecx, esp
mov eax, 1
call fcn.004af72c
add esp, 0x804
ret 4

Function at 0x434c70
Capabilities:
Get disk size

Disassembly:
sub esp, 0x42c
mov eax, dword [0x4d88f0]
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.00455550
cmp dword [0x503cd4], 0
jne 0x434ccd
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x434cc0
push str.GetDiskFreeSpaceExA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x503cd4], eax
cmp dword [0x503cd4], 0
je 0x434d4e
push 0x400
lea ecx, [esp + 0x30]
push ecx
push esi
call fcn.00455c40
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 [0x503cd4]
test eax, eax
je 0x434d4e
mov eax, dword [esp + 8]
cmp eax, dword [esp + 0x20]
ja 0x434d4e
push 1
push 0
push 0
push eax
call fcn.004b01d0
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.004af72c
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 0x434d9b
mov eax, 0x163e00
xor edx, edx
pop esi
mov ecx, dword [esp + 0x428]
xor ecx, esp
call fcn.004af72c
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.004af72c
add esp, 0x42c
ret 4
Function at 0x434dc0
Capabilities:
Get disk information

Disassembly:
sub esp, 0x50c
mov eax, dword [0x4d88f0]
xor eax, esp
mov dword [esp + 0x508], eax
mov eax, dword [esp + 0x510]
lea ecx, [esp + 0x108]
push ecx
push eax
call fcn.00455550
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 0x434eaf
mov ecx, 0x4c7050
lea eax, [esp]
jmp 0x434e20
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x434e40
test dl, dl
je 0x434e3c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x434e40
add eax, 2
add ecx, 2
test dl, dl
jne 0x434e20
xor eax, eax
jmp 0x434e45
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x434e93
mov ecx, 0x4c7048
lea eax, [esp]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x434e71
test dl, dl
je 0x434e6d
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x434e71
add eax, 2
add ecx, 2
test dl, dl
jne 0x434e51
xor eax, eax
jmp 0x434e76
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x434e93
xor eax, eax
mov ecx, dword [esp + 0x508]
xor ecx, esp
call fcn.004af72c
add esp, 0x50c
ret 4
mov eax, 1
mov ecx, dword [esp + 0x508]
xor ecx, esp
call fcn.004af72c
add esp, 0x50c
ret 4
mov ecx, dword [esp + 0x508]
xor ecx, esp
xor al, al
call fcn.004af72c
add esp, 0x50c
ret 4

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

Disassembly:
call fcn.00444190
test eax, eax
je 0x434efb
mov eax, dword [esp + 8]
test eax, eax
je 0x434efb
cmp word [eax], 0
je 0x434efb
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 0x434f17
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x434f17
mov eax, 1
ret 8
xor eax, eax
ret 8

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

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

Function at 0x434fb0
Capabilities:
Get file attributes

Disassembly:
call fcn.00444190
test eax, eax
je 0x434fd1
mov eax, dword [esp + 8]
test eax, eax
je 0x434fd1
cmp word [eax], 0
je 0x434fd1
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 0x434ff0
Capabilities:
Set file attributes

Disassembly:
call fcn.00444190
test eax, eax
je 0x43501b
mov eax, dword [esp + 8]
test eax, eax
je 0x43501b
cmp word [eax], 0
je 0x43501b
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 0x435037
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 0x435040
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub esp, 0x5c
mov eax, dword [0x4d88f0]
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 0x435060
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x435060
sub eax, edx
lea ecx, [esp + 0x10]
mov ebx, eax
call fcn.004128a0
lea ecx, [esp + 0x10]
call fcn.00472810
lea ecx, [esp + 0x10]
call fcn.00472620
lea ecx, [esp + 0x10]
mov edi, eax
call fcn.00472370
mov ecx, edi
shr ecx, 0xa
xor eax, ecx
xor edi, eax
xor esi, esi
lea esp, [esp]
cmp esi, 0x64
jle 0x4350a9
mov eax, edi
jmp 0x4350bd
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.004af76b
lea eax, [esp + 0x44]
add esp, 0x10
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4350d8
sub eax, edx
add eax, ebx
cmp eax, dword [esp + 0x74]
jae 0x43513c
cmp esi, 0x3e8
je 0x43513c
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 0x435100
call fcn.00444190
test ebp, ebp
je 0x435125
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x435125
inc esi
jmp 0x4350a0
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.004af72c
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.004af72c
add esp, 0x5c
ret 8

Function at 0x435160
Capabilities:
Move file

Disassembly:
mov eax, 0x1004
call fcn.004af740
mov eax, dword [0x4d88f0]
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.00444190
test eax, eax
je 0x4351ef
test esi, esi
je 0x4351ab
cmp word [esi], 0
jne 0x4351b5
test edi, edi
je 0x4351ef
cmp word [edi], 0
je 0x4351ef
push 0x400
lea eax, [esp + 0x814]
push eax
push esi
push ebx
call fcn.004555f0
push 0x400
lea ecx, [esp + 0x14]
push ecx
push edi
push ebp
call fcn.004555f0
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x814]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
jmp 0x4351f7
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.004af72c
add esp, 0x1004
ret 0x10
Function at 0x435700
Capabilities:
Check if file exists
Create directory

Disassembly:
push esi
push edi
call fcn.00444190
mov edi, dword [esp + 0xc]
mov esi, dword [esp + 0x10]
test eax, eax
je 0x435728
test esi, esi
je 0x435728
cmp word [esi], 0
je 0x435728
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x435735
test edi, edi
je 0x435768
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x435753
cmp byte [esp + 0x14], 0
je 0x43574c
mov eax, dword [esp + 0x18]
push eax
push esi
push edi
call fcn.00434ff0
pop edi
xor eax, eax
pop esi
ret 0x10
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x435768
cmp eax, 3
mov eax, 1
jne 0x43576d
mov eax, 2
pop edi
pop esi
ret 0x10

Function at 0x435780
Capabilities:
Create directory

Disassembly:
sub esp, 0x408
mov eax, dword [0x4d88f0]
xor eax, esp
mov dword [esp + 0x404], eax
push ebp
mov ebp, dword [esp + 0x410]
test ebp, ebp
je 0x4358b5
cmp byte [ebp], 0
je 0x4358b5
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 0x435838
movsx eax, byte [edi]
push eax
call fcn.00455090
test al, al
je 0x43581a
push esi
lea ecx, [esp + 0x18]
push ebp
push ecx
call fcn.004b0dd0
add esp, 0xc
mov byte [esp + esi + 0x14], 0
call fcn.00444190
push 0
lea edx, [esp + 0x18]
push edx
call ebx
test eax, eax
je 0x43580f
push 0
push 0
lea eax, [esp + 0x1c]
push eax
call fcn.00434ff0
jmp 0x43581a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [esp + 0x13], 0
cmp byte [0x53a388], 0
je 0x435832
push edi
mov ecx, 0x53a288
call fcn.00477000
mov edi, eax
jmp 0x435833
inc edi
cmp byte [edi], 0
jne 0x4357c0
cmp byte [esp + 0x420], 0
pop esi
jne 0x435897
push ebp
call fcn.004557a0
movsx ecx, byte [eax]
push ecx
call fcn.00455090
test al, al
jne 0x435897
call fcn.00444190
push 0
push ebp
call ebx
test eax, eax
je 0x43588c
push 0
push 0
push ebp
call fcn.00434ff0
mov al, byte [esp + 0xf]
pop edi
pop ebx
pop ebp
mov ecx, dword [esp + 0x404]
xor ecx, esp
call fcn.004af72c
add esp, 0x408
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 + 0x404]
xor ecx, esp
call fcn.004af72c
add esp, 0x408
ret 8
mov ecx, dword [esp + 0x408]
pop ebp
xor ecx, esp
xor al, al
call fcn.004af72c
add esp, 0x408
ret 8
Function at 0x4358d0
Capabilities:
Create directory

Disassembly:
sub esp, 0x808
mov eax, dword [0x4d88f0]
xor eax, esp
mov dword [esp + 0x804], eax
push ebp
mov ebp, dword [esp + 0x810]
test ebp, ebp
je 0x435a0b
cmp word [ebp], 0
je 0x435a0b
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push edi
mov byte [esp + 0xf], 1
xor edi, edi
push esi
nop
mov esi, edi
sar esi, 1
cmp esi, 0x400
jge 0x435983
movzx eax, word [edi + ebp]
push eax
call fcn.00455090
test al, al
je 0x435979
push esi
lea ecx, [esp + 0x18]
push ebp
push ecx
call fcn.004b0f9d
xor edx, edx
add esp, 0xc
mov word [esp + esi*2 + 0x14], dx
call fcn.00444190
test eax, eax
je 0x435974
cmp word [esp + 0x14], 0
je 0x435974
push 0
lea eax, [esp + 0x18]
push eax
call ebx
test eax, eax
je 0x43596e
push 0
lea ecx, [esp + 0x18]
push ecx
push 0
call fcn.00434ff0
jmp 0x435979
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [esp + 0x13], 0
add edi, 2
cmp word [edi + ebp], 0
jne 0x435910
cmp byte [esp + 0x820], 0
pop esi
jne 0x4359ed
push ebp
call fcn.00455010
movzx edx, word [eax]
push edx
call fcn.00455090
test al, al
jne 0x4359ed
call fcn.00444190
test eax, eax
je 0x4359e8
cmp word [ebp], 0
je 0x4359e8
push 0
push ebp
call ebx
test eax, eax
je 0x4359e2
push 0
push ebp
push 0
call fcn.00434ff0
mov al, byte [esp + 0xf]
pop edi
pop ebx
pop ebp
mov ecx, dword [esp + 0x804]
xor ecx, esp
call fcn.004af72c
add esp, 0x808
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 + 0x804]
xor ecx, esp
call fcn.004af72c
add esp, 0x808
ret 8
mov ecx, dword [esp + 0x808]
pop ebp
xor ecx, esp
xor al, al
call fcn.004af72c
add esp, 0x808
ret 8
Function at 0x435a70
Capabilities:
Get file attributes

Disassembly:
sub esp, 0x830
mov eax, dword [0x4d88f0]
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.00444190
test eax, eax
je 0x435c0e
test esi, esi
je 0x435ad2
cmp dword [esi], 0
mov byte [esp + 0x12], 1
jne 0x435ad7
mov byte [esp + 0x12], 0
test ebx, ebx
je 0x435ae5
cmp dword [ebx], 0
mov byte [esp + 0x11], 1
jne 0x435aea
mov byte [esp + 0x11], 0
mov eax, dword [esp + 0x18]
test eax, eax
je 0x435afc
cmp dword [eax], 0
mov byte [esp + 0x13], 1
jne 0x435b01
mov byte [esp + 0x13], 0
call fcn.00444190
test eax, eax
je 0x435b21
test edi, edi
je 0x435b21
cmp word [edi], 0
je 0x435b21
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [esp + 0x14], eax
jmp 0x435b2c
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [esp + 0x14], eax
cmp eax, 0xffffffff
je 0x435c29
test al, 1
je 0x435c29
push 0
push edi
push ebp
mov bl, 1
call fcn.00434ff0
push 0x400
lea ecx, [esp + 0x40]
push ecx
push edi
push ebp
call fcn.004555f0
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 0x435c0e
cmp byte [esp + 0x12], 0
je 0x435b96
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x34]
push eax
call fcn.004722a0
cmp byte [esp + 0x11], 0
je 0x435bab
lea ecx, [esp + 0x2c]
push ecx
mov ecx, dword [esp + 0x24]
call fcn.004722a0
cmp byte [esp + 0x13], 0
je 0x435bc0
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x24]
push edx
call fcn.004722a0
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 0x435c0e
mov eax, dword [esp + 0x14]
push eax
push edi
push ebp
call fcn.00434ff0
mov ecx, dword [esp + 0x83c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004af72c
add esp, 0x830
ret 0x14
xor bl, bl
jmp 0x435b48

Function at 0x435d30
Capabilities:
Set file attributes

Disassembly:
call fcn.00444190
test eax, eax
je 0x435d59
mov eax, dword [esp + 8]
test eax, eax
je 0x435d59
cmp word [eax], 0
je 0x435d59
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 0x435d73
mov dword [esp + 8], 0
mov dword [esp + 4], eax
jmp dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
ret 8