joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4198e0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x4a00a0]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x4a3130], 0
je 0x41990c
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00466c90
mov esp, ebp
pop ebp
ret
mov eax, dword [0x4a3134]
test eax, eax
jne 0x41992b
push 0x18
call fcn.00466a4b
add esp, 4
mov ecx, eax
call fcn.00419800
mov dword [0x4a3134], eax
cmp dword [eax + 0x14], 8
jb 0x419933
mov eax, dword [eax]
push 0
push 0x80
push 4
push 0
push 3
push 4
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x4a3130], eax
cmp eax, 0xffffffff
je 0x419957
test eax, eax
jne 0x4198fc
xor eax, eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x4199fd
cmp eax, 0x104
ja 0x4199fd
mov ecx, dword [0x4a3134]
lea eax, [ebp - 0x20c]
push eax
call fcn.00403d00
mov ecx, dword [0x4a3134]
call fcn.0041a420
cmp word [eax], 0x5c
je 0x4199b4
push 0x498dd4
call fcn.00403d50
mov ecx, dword [0x4a3134]
push str.debug.log
call fcn.00403d50
mov eax, dword [0x4a3134]
cmp dword [eax + 0x14], 8
jb 0x4199cb
mov eax, dword [eax]
push 0
push 0x80
push 4
push 0
push 3
push 4
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x4a3130], eax
cmp eax, 0xffffffff
je 0x4199f3
test eax, eax
jne 0x4198fc
mov dword [0x4a3130], 0
mov ecx, dword [ebp - 4]
xor al, al
xor ecx, ebp
call fcn.00466c90
mov esp, ebp
pop ebp
ret
Function at 0x419b40
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x43c
mov eax, dword [0x4a00a0]
xor eax, esp
mov dword [esp + 0x438], eax
push ebx
mov ebx, ecx
push esi
push edi
lea edi, [ebx + 8]
push edi
call fcn.0041a860
add esp, 4
lea eax, [esp + 0x10]
lea esi, [ebx + 0xc]
mov ecx, esi
push eax
call fcn.0040d5e0
mov eax, dword [0x4a312c]
test eax, eax
je 0x419ba9
lea ecx, [esp + 0x10]
push ecx
push dword [ebx + 0xa0]
push dword [ebx + 0xa8]
push dword [ebx + 0xa4]
push dword [ebx]
call eax
add esp, 0x14
test al, al
jne 0x419ca8
cmp dword [ebx], 2
jl 0x419bed
cmp dword [esp + 0x24], 0x10
lea edi, [esp + 0x10]
mov esi, dword [esp + 0x20]
cmovae edi, dword [esp + 0x10]
push 2
call fcn.00471013
add esp, 4
push eax
push 1
push esi
push edi
call fcn.00472220
push 2
call fcn.00471013
add esp, 0x14
push eax
call fcn.004716ff
add esp, 4
lea esi, [ebx + 0xc]
lea edi, [ebx + 8]
call fcn.004198e0
test al, al
je 0x419c1c
cmp dword [esp + 0x24], 0x10
lea ecx, [esp + 0xc]
push 0
push ecx
push dword [esp + 0x28]
lea eax, [esp + 0x1c]
cmovae eax, dword [esp + 0x1c]
push eax
push dword [0x4a3130]
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [ebx], 3
jne 0x419ca8
mov ecx, 0x400
lea eax, [esp + 0x10]
cmp dword [esp + 0x20], ecx
cmovb ecx, dword [esp + 0x20]
cmp dword [esp + 0x24], 0x10
cmovae eax, dword [esp + 0x10]
test ecx, ecx
je 0x419c54
push ecx
push eax
lea eax, [esp + 0x48]
push eax
call fcn.00468680
add esp, 0xc
lea eax, [esp + 0x40]
push eax
call fcn.0043e440
add esp, 4
cmp dword [0x4a313c], 0
je 0x419c9e
lea eax, [esp + 0x28]
mov ecx, esi
push eax
call fcn.0040d5e0
lea eax, [esp + 0x28]
push eax
call dword [0x4a313c]
mov eax, dword [esp + 0x40]
add esp, 4
cmp eax, 0x10
jb 0x419ca8
inc eax
lea ecx, [esp + 0x28]
push eax
push dword [esp + 0x2c]
call fcn.00405140
jmp 0x419ca8
cmp byte [0x4a44a4], 0
jne 0x419cfa
int3
mov eax, dword [esp + 0x24]
cmp eax, 0x10
jb 0x419cc0
inc eax
lea ecx, [esp + 0x10]
push eax
push dword [esp + 0x14]
call fcn.00405140
push dword [ebx + 0xac]
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea esi, [edi + 0x50]
mov ecx, esi
call fcn.0040bf90
push esi
mov dword [esi], vtable.std::ios_base.0
call fcn.0046614e
mov ecx, dword [esp + 0x448]
add esp, 4
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00466c90
mov esp, ebp
pop ebp
ret
push 1
call fcn.00474de0
int3

Function at 0x41b640
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0xc
mov esi, edx
mov edi, ecx
call fcn.00466a4b
mov ebx, eax
mov ecx, dword [ebp + 0xc]
add esp, 4
mov dword [ebx], esi
mov esi, dword [ebp + 8]
test esi, esi
push 0
setne dl
mov dword [ebx + 8], ecx
xor eax, eax
mov byte [ebx + 4], dl
cmp eax, edi
sbb eax, eax
and eax, 0x10000
push eax
push ebx
push 0x41b580
push edi
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x41b69a
push ebx
call fcn.00466a7e
add esp, 4
xor al, al
pop edi
pop esi
pop ebx
pop ebp
ret
test esi, esi
je 0x41b6a7
pop edi
mov dword [esi], eax
mov al, 1
pop esi
pop ebx
pop ebp
ret
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov al, 1
pop ebx
pop ebp
ret
Function at 0x41b740
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0xc
mov esi, edx
mov edi, ecx
call fcn.00466a4b
mov edx, dword [ebp + 8]
add esp, 4
mov ebx, eax
xor eax, eax
cmp eax, edi
push 0
sbb ecx, ecx
mov dword [ebx], esi
and ecx, 0x10000
mov byte [ebx + 4], 0
push ecx
push ebx
push 0x41b580
push edi
push eax
mov dword [ebx + 8], edx
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x41b793
push ebx
call fcn.00466a7e
add esp, 4
xor al, al
pop edi
pop esi
pop ebx
pop ebp
ret
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov al, 1
pop ebx
pop ebp
ret
Function at 0x41f650
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5f0
mov eax, dword [0x4a00a0]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
mov esi, edx
xor ebx, ebx
push esi
sub esp, 8
mov dword [ebp - 0x2ec], esi
mov dword [ebp - 0x2e8], ebx
push ecx
lea ecx, [ebp - 0x2e4]
call fcn.004349a0
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x2e4]
call fcn.00434b90
cmp dword [ebp - 0x10], ebx
je 0x41f7bb
nop
cmp byte [ebp - 0x2e4], 0
jne 0x41f6da
test bl, 1
je 0x41f6c2
and ebx, 0xfffffffe
lea ecx, [ebp - 0x39c]
mov dword [ebp - 0x2e8], ebx
call fcn.00419b40
push 0x250
lea eax, [ebp - 0x5ec]
push 0
push eax
call fcn.0046a460
add esp, 0xc
jmp 0x41f6f3
mov ecx, 0x94
lea esi, [ebp - 0x2e0]
lea edi, [ebp - 0x5ec]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 0x2ec]
mov ebx, dword [ebp - 0x5ec]
mov cl, byte [ebp + 8]
test bl, 1
je 0x41f729
test cl, cl
jne 0x41f70e
mov eax, ebx
shr eax, 4
test al, 1
jne 0x41f729
cmp dword [ebp - 0xc], 8
lea ecx, [ebp - 0x20]
mov eax, ebx
cmovae ecx, dword [ebp - 0x20]
and eax, 0xfffffffe
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov cl, byte [ebp + 8]
shr ebx, 4
test bl, 1
je 0x41f760
test cl, cl
je 0x41f776
push 1
mov edx, esi
lea ecx, [ebp - 0x20]
call fcn.0041f650
add esp, 4
test al, al
je 0x41f7d0
cmp dword [ebp - 0xc], 8
lea eax, [ebp - 0x20]
cmovae eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x41f772
cmp dword [ebp - 0xc], 8
lea eax, [ebp - 0x20]
cmovae eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x41f7d0
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x2e4]
call fcn.00434b90
lea ecx, [ebp - 0x20]
cmp ecx, eax
je 0x41f796
push 0xffffffffffffffff
push 0
push eax
call fcn.004047b0
mov eax, dword [ebp - 0x24]
cmp eax, 8
jb 0x41f7ab
inc eax
lea ecx, [ebp - 0x38]
push eax
push dword [ebp - 0x38]
call fcn.004055d0
cmp dword [ebp - 0x10], 0
mov ebx, dword [ebp - 0x2e8]
jne 0x41f6a0
mov eax, dword [ebp - 0xc]
cmp eax, 8
jb 0x41f815
mov ecx, dword [ebp - 0x20]
inc eax
cmp eax, 0x7fffffff
jbe 0x41f7e9
jmp 0x41f835
mov eax, dword [ebp - 0xc]
cmp eax, 8
jb 0x41f7e5
inc eax
lea ecx, [ebp - 0x20]
push eax
push dword [ebp - 0x20]
call fcn.004055d0
xor bl, bl
jmp 0x41f817
add eax, eax
cmp eax, 0x1000
jb 0x41f80c
test cl, 0x1f
jne 0x41f83a
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x41f83f
sub ecx, eax
cmp ecx, 4
jb 0x41f844
cmp ecx, 0x23
ja 0x41f849
mov ecx, eax
push ecx
call fcn.00466a7e
add esp, 4
mov bl, 1
lea ecx, [ebp - 0x2e4]
call fcn.00434a80
mov ecx, dword [ebp - 8]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00466c90
mov esp, ebp
pop ebp
ret
call fcn.0046c8dc
call fcn.0046c8dc
call fcn.0046c8dc
call fcn.0046c8dc
call fcn.0046c8dc
int3
Function at 0x41f900
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x3c
mov eax, dword [0x4a00a0]
xor eax, esp
mov dword [esp + 0x38], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [esp + 0x10], 0
mov eax, dword [edi + 0x10]
test eax, eax
jne 0x41f93d
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.00466c90
mov esp, ebp
pop ebp
ret
cmp eax, 0x104
jae 0x41fabb
lea eax, [esp + 0x14]
mov ecx, edi
push eax
call fcn.0041e900
push 2
push 0
push 0x499bd0
mov ecx, eax
call fcn.00404100
mov ecx, dword [esp + 0x28]
mov esi, eax
cmp ecx, 8
jb 0x41f97e
inc ecx
push ecx
push dword [esp + 0x18]
lea ecx, [esp + 0x1c]
call fcn.004055d0
cmp esi, 0xffffffff
je 0x41f9d4
lea eax, [esp + 0x2c]
mov ecx, edi
push eax
call fcn.0041e900
push dword [ebp + 0xc]
mov esi, eax
mov ecx, edi
lea eax, [esp + 0x18]
push eax
call fcn.0041e7c0
mov edx, esi
mov ecx, eax
call fcn.0041f650
add esp, 4
lea ecx, [esp + 0x14]
mov bl, al
call fcn.00403da0
lea ecx, [esp + 0x2c]
call fcn.00403da0
mov al, bl
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.00466c90
mov esp, ebp
pop ebp
ret
cmp dword [edi + 0x14], 8
jb 0x41f9de
mov eax, dword [edi]
jmp 0x41f9e0
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x41f929
test bl, 1
je 0x41fa18
cmp dword [edi + 0x14], 8
jb 0x41fa01
mov ecx, dword [edi]
jmp 0x41fa03
mov ecx, edi
mov eax, ebx
and eax, 0xfffffffe
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x41fabb
test bl, 0x10
jne 0x41fa44
cmp dword [edi + 0x14], 8
jb 0x41fa25
mov edi, dword [edi]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
neg eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.00466c90
mov esp, ebp
pop ebp
ret
cmp byte [ebp + 0xc], 0
je 0x41fa76
push 0x499bd8
lea ecx, [esp + 0x18]
call fcn.00403e60
mov ebx, 1
lea edx, [esp + 0x14]
push ebx
mov ecx, edi
call fcn.0041f650
add esp, 4
test al, al
jne 0x41fa7a
mov byte [esp + 0xf], al
jmp 0x41fa7f
mov ebx, dword [esp + 0x10]
mov byte [esp + 0xf], 1
test bl, 1
je 0x41fa8d
lea ecx, [esp + 0x14]
call fcn.00403da0
cmp byte [esp + 0xf], 0
je 0x41fabb
cmp dword [edi + 0x14], 8
jb 0x41fa9c
mov edi, dword [edi]
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
neg eax
sbb eax, eax
neg eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.00466c90
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x44]
xor al, al
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00466c90
mov esp, ebp
pop ebp
ret
Function at 0x41fad0
Capabilities:
Move file

Disassembly:
push esi
mov esi, edx
push edi
mov edi, ecx
cmp dword [esi + 0x14], 8
jb 0x41fae0
mov eax, dword [esi]
jmp 0x41fae2
mov eax, esi
cmp dword [edi + 0x14], 8
jb 0x41faea
mov ecx, dword [edi]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x41fafb
mov al, 1
pop edi
pop esi
ret
cmp dword [edi + 0x14], 8
jb 0x41fb03
mov edi, dword [edi]
cmp dword [esi + 0x14], 8
jb 0x41fb0b
mov esi, dword [esi]
push 0
push 0
push 2
push 0
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReplaceFileW]
test eax, eax
pop edi
setne al
pop esi
ret
Function at 0x41fea0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
jb 0x41feae
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne al
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
jb 0x41fece
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x41fee2
shr eax, 4
and eax, 1
pop ebp
ret
xor al, al
pop ebp
ret

Function at 0x41fef0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x248
mov eax, dword [0x4a00a0]
xor eax, esp
mov dword [esp + 0x244], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [esp + 0x34]
push edi
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0x102
ja 0x420007
sub esp, 8
lea eax, [esp + 0x40]
mov edx, esp
mov dword [edx], eax
cmp word [esp + 0x40], 0
jne 0x41ff42
xor ecx, ecx
jmp 0x41ff5f
lea ecx, [esp + 0x40]
lea edi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41ff50
sub ecx, edi
sar ecx, 1
mov dword [edx + 4], ecx
lea ecx, [esp + 0x28]
call fcn.0041e020
sub esp, 8
mov edx, esp
cmp dword [eax + 0x14], 8
jb 0x41ff7a
mov ecx, dword [eax]
jmp 0x41ff7c
mov ecx, eax
mov dword [edx], ecx
lea ecx, [esp + 0x10]
mov eax, dword [eax + 0x10]
mov dword [edx + 4], eax
call fcn.0041e020
lea ecx, [esp + 8]
call fcn.0041f260
lea eax, [esp + 8]
cmp esi, eax
je 0x41ffaa
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
call fcn.004047b0
mov eax, dword [esp + 0x1c]
cmp eax, 8
jb 0x41ffc2
inc eax
lea ecx, [esp + 8]
push eax
push dword [esp + 0xc]
call fcn.004055d0
xor eax, eax
mov dword [esp + 0x1c], 7
mov word [esp + 8], ax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x18], 0
cmp eax, 8
jb 0x41fff1
inc eax
lea ecx, [esp + 0x20]
push eax
push dword [esp + 0x24]
call fcn.004055d0
mov al, 1
pop edi
pop esi
mov ecx, dword [esp + 0x244]
xor ecx, esp
call fcn.00466c90
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x24c]
xor al, al
pop edi
pop esi
xor ecx, esp
call fcn.00466c90
mov esp, ebp
pop ebp
ret
Function at 0x420020
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x228
mov eax, dword [0x4a00a0]
xor eax, esp
mov dword [esp + 0x224], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [esp + 0x1c]
push edi
push eax
push 0
push 0
push 0x28
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x4200cf
cmp word [esp + 0x20], 0
je 0x4200cf
sub esp, 8
lea eax, [esp + 0x28]
mov edx, esp
mov dword [edx], eax
cmp word [esp + 0x28], 0
jne 0x420093
xor ecx, ecx
mov dword [edx + 4], ecx
mov ecx, esi
call fcn.0041e020
mov eax, esi
pop edi
pop esi
mov ecx, dword [esp + 0x224]
xor ecx, esp
call fcn.00466c90
mov esp, ebp
pop ebp
ret
lea ecx, [esp + 0x28]
lea edi, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4200a0
sub ecx, edi
sar ecx, 1
mov dword [edx + 4], ecx
mov ecx, esi
call fcn.0041e020
mov eax, esi
pop edi
pop esi
mov ecx, dword [esp + 0x224]
xor ecx, esp
call fcn.00466c90
mov esp, ebp
pop ebp
ret
xor eax, eax
mov dword [esp + 0x1c], 7
mov word [esp + 8], ax
lea eax, [esp + 8]
push eax
mov dword [esp + 0x1c], 0
call fcn.0041fef0
add esp, 4
mov ecx, esi
test al, al
je 0x42011b
xor eax, eax
mov dword [esi + 0x14], 7
push 0xffffffffffffffff
mov dword [esi + 0x10], 0
push eax
mov word [esi], ax
lea eax, [esp + 0x10]
push eax
call fcn.004047b0
jmp 0x420132
sub esp, 8
mov eax, esp
mov dword [eax], 0x499bdc
mov dword [eax + 4], 3
call fcn.0041e020
mov eax, dword [esp + 0x1c]
cmp eax, 8
jb 0x42014a
inc eax
lea ecx, [esp + 8]
push eax
push dword [esp + 0xc]
call fcn.004055d0
mov ecx, dword [esp + 0x22c]
mov eax, esi
pop edi
pop esi
xor ecx, esp
call fcn.00466c90
mov esp, ebp
pop ebp
ret
Function at 0x420160
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x460
mov eax, dword [0x4a00a0]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ecx + 0x14], 8
push esi
push edi
mov esi, edx
mov dword [ebp - 0x45c], 0
jb 0x420189
mov ecx, dword [ecx]
lea eax, [ebp - 0x218]
push eax
push 0
push 0x497078
push ecx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x4201b4
xor al, al
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00466c90
mov esp, ebp
pop ebp
ret
push 0x104
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
cmp eax, 0x104
ja 0x420277
test eax, eax
je 0x420277
xor ecx, ecx
mov dword [ebp - 0x42c], 7
push eax
lea eax, [ebp - 0x428]
mov word [ebp - 0x440], cx
push eax
lea ecx, [ebp - 0x440]
mov dword [ebp - 0x430], 0
call fcn.004046b0
sub esp, 8
lea eax, [ebp - 0x440]
cmp dword [ebp - 0x42c], 8
mov ecx, esp
cmovae eax, dword [ebp - 0x440]
mov dword [ecx], eax
mov eax, dword [ebp - 0x430]
mov dword [ecx + 4], eax
lea ecx, [ebp - 0x458]
call fcn.0041e020
cmp esi, eax
je 0x42024f
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
call fcn.004047b0
lea ecx, [ebp - 0x458]
call fcn.00403da0
lea ecx, [ebp - 0x440]
call fcn.00403da0
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00466c90
mov esp, ebp
pop ebp
ret
sub esp, 8
lea eax, [ebp - 0x218]
mov edx, esp
mov dword [edx], eax
cmp word [ebp - 0x218], 0
jne 0x420292
xor ecx, ecx
jmp 0x4202af
lea ecx, [ebp - 0x218]
lea edi, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4202a0
sub ecx, edi
sar ecx, 1
mov dword [edx + 4], ecx
lea ecx, [ebp - 0x458]
call fcn.0041e020
cmp esi, eax
je 0x4202cd
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
call fcn.004047b0
mov eax, dword [ebp - 0x444]
cmp eax, 8
jb 0x4202eb
inc eax
lea ecx, [ebp - 0x458]
push eax
push dword [ebp - 0x458]
call fcn.004055d0
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
xor ecx, ebp
pop esi
call fcn.00466c90
mov esp, ebp
pop ebp
ret
Function at 0x420300
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
mov eax, dword [0x4a00a0]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
push edi
mov edi, ecx
mov dword [esp + 0x10], 0
mov esi, edx
cmp dword [edi + 0x14], 8
jb 0x42032d
mov ebx, dword [edi]
jmp 0x42032f
mov ebx, edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x420371
test al, 0x10
je 0x420353
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.00466c90
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x42035d
mov dword [esi], 0xfffffff7
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.00466c90
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x14]
mov ecx, edi
push eax
call fcn.0041e7c0
cmp dword [edi + 0x14], 8
jb 0x420387
mov ecx, dword [edi]
jmp 0x420389
mov ecx, edi
push dword [edi + 0x10]
cmp dword [esp + 0x2c], 8
lea eax, [esp + 0x18]
push ecx
cmovae eax, dword [esp + 0x1c]
push dword [esp + 0x2c]
push eax
call fcn.004040a0
add esp, 0x10
test eax, eax
jne 0x4203ba
test esi, esi
je 0x420404
mov dword [esi], 0xfffffffc
xor bl, bl
jmp 0x42040a
mov edx, esi
lea ecx, [esp + 0x14]
call fcn.00420300
test al, al
jne 0x4203cd
xor bl, bl
jmp 0x42040a
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x420408
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp ebx, 0xb7
jne 0x4203f7
push edi
call fcn.0041fec0
add esp, 4
test al, al
jne 0x420408
test esi, esi
je 0x420404
mov ecx, ebx
call fcn.004342f0
mov dword [esi], eax
xor bl, bl
jmp 0x42040a
mov bl, 1
mov ecx, dword [esp + 0x28]
cmp ecx, 8
jb 0x420422
inc ecx
push ecx
push dword [esp + 0x18]
lea ecx, [esp + 0x1c]
call fcn.004055d0
mov ecx, dword [esp + 0x2c]
mov al, bl
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00466c90
mov esp, ebp
pop ebp
ret
Function at 0x4204e0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
mov eax, dword [0x4a00a0]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push esi
mov word [ebp - 0x210], ax
mov esi, ecx
lea eax, [ebp - 0x210]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x4205dc
cmp eax, 0x104
ja 0x4205dc
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x228]
call fcn.00403e60
sub esp, 8
lea eax, [ebp - 0x228]
cmp dword [ebp - 0x214], 8
mov ecx, esp
cmovae eax, dword [ebp - 0x228]
mov dword [ecx], eax
mov eax, dword [ebp - 0x218]
mov dword [ecx + 4], eax
lea ecx, [ebp - 0x258]
call fcn.0041e020
sub esp, 8
mov edx, esp
cmp dword [eax + 0x14], 8
jb 0x420574
mov ecx, dword [eax]
jmp 0x420576
mov ecx, eax
mov dword [edx], ecx
lea ecx, [ebp - 0x240]
mov eax, dword [eax + 0x10]
mov dword [edx + 4], eax
call fcn.0041e020
lea ecx, [ebp - 0x240]
call fcn.0041f260
lea eax, [ebp - 0x240]
cmp esi, eax
je 0x4205aa
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
call fcn.004047b0
lea ecx, [ebp - 0x240]
call fcn.00403da0
lea ecx, [ebp - 0x258]
call fcn.00403da0
lea ecx, [ebp - 0x228]
call fcn.00403da0
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00466c90
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
xor ecx, ebp
pop esi
call fcn.00466c90
mov esp, ebp
pop ebp
ret

Function at 0x4205f0
Capabilities:
Check if file exists
Copy file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
mov ecx, edi
call fcn.0041f010
test al, al
jne 0x420662
mov esi, dword [ebp + 0xc]
mov ecx, esi
call fcn.0041f010
test al, al
jne 0x420662
cmp dword [edi + 0x10], 0x104
jae 0x420662
cmp dword [esi + 0x10], 0x104
jae 0x420662
cmp dword [esi + 0x14], 8
jb 0x42062b
mov esi, dword [esi]
cmp dword [edi + 0x14], 8
jb 0x420633
mov edi, dword [edi]
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x420662
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x420662
test al, 1
je 0x42065c
and eax, 0xfffffffe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov al, 1
pop edi
pop esi
pop ebp
ret
pop edi
xor al, al
pop esi
pop ebp
ret
Function at 0x420670
Capabilities:
Check if file exists
Move file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov edi, edx
cmp dword [esi + 0x10], 0x104
jae 0x42072e
cmp dword [edi + 0x10], 0x104
jae 0x42072e
cmp dword [edi + 0x14], 8
jb 0x4206a2
mov eax, dword [edi]
jmp 0x4206a4
mov eax, edi
cmp dword [esi + 0x14], 8
jb 0x4206ac
mov ecx, dword [esi]
push 3
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x4206c3
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor bl, bl
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [esi + 0x14], 8
mov dword [esp + 0xc], eax
jb 0x4206d9
mov eax, dword [esi]
jmp 0x4206db
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x42071b
shr eax, 4
and al, 1
je 0x42071b
push ecx
mov edx, edi
mov ecx, esi
call fcn.0041fb30
add esp, 4
test al, al
je 0x420719
push 1
push esi
call fcn.0041f900
add esp, 8
test al, al
je 0x420719
mov bl, 1
mov al, bl
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor bl, bl
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov al, bl
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret