joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48c49c
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00478cb9
xor ebx, ebx
cmp dword [0x4b9d90], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x48c572
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x48c652
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4a6ccc
push edi
call esi
cmp eax, ebx
je 0x48c652
push eax
call fcn.00478c4b
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4b9d90], eax
call esi
push eax
call fcn.00478c4b
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4b9d94], eax
call esi
push eax
call fcn.00478c4b
mov dword [0x4b9d98], eax
lea eax, [ebp - 0xc]
push eax
call fcn.00477498
test eax, eax
pop ecx
pop ecx
je 0x48c540
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0046ef98
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x48c572
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00478c4b
cmp eax, ebx
pop ecx
mov dword [0x4b9da0], eax
je 0x48c572
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00478c4b
pop ecx
mov dword [0x4b9d9c], eax
mov eax, dword [0x4b9d9c]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x48c5f7
cmp dword [0x4b9da0], ecx
je 0x48c5f7
push eax
call fcn.00478cc2
push dword [0x4b9da0]
mov esi, eax
call fcn.00478cc2
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x48c5f7
cmp edi, ebx
je 0x48c5f7
call esi
cmp eax, ebx
je 0x48c5c4
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x48c5c4
test byte [ebp - 0x18], 1
jne 0x48c5f7
lea eax, [ebp - 0x10]
push eax
call fcn.00477547
test eax, eax
pop ecx
je 0x48c5df
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0046ef98
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x48c5ee
or dword [ebp + 0x10], 0x200000
jmp 0x48c632
or dword [ebp + 0x10], 0x40000
jmp 0x48c632
mov eax, dword [0x4b9d94]
cmp eax, dword [ebp - 8]
je 0x48c632
push eax
call fcn.00478cc2
cmp eax, ebx
pop ecx
je 0x48c632
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x48c632
mov eax, dword [0x4b9d98]
cmp eax, dword [ebp - 8]
je 0x48c632
push eax
call fcn.00478cc2
cmp eax, ebx
pop ecx
je 0x48c632
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4b9d90]
call fcn.00478cc2
cmp eax, ebx
pop ecx
je 0x48c652
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x48c654
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4030d0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x44
mov eax, dword [0x7aca10]
xor eax, esp
mov dword [esp + 0x40], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov dword [esp + 0xc], 0
mov edi, dword [0x7c319c]
mov ecx, edi
push 0x4fdd3c
call fcn.00409100
test al, al
jne 0x40311c
push str.vmodule
mov ecx, edi
call fcn.00409100
test al, al
je 0x4031f0
cmp dword [0x7c3174], 0
je 0x403133
cmp byte [0x7c4190], 0
jne 0x4032b9
int3
mov eax, dword [0x7c3190]
push 0x10
mov dword [0x7c3174], eax
call fcn.004a7835
mov esi, eax
mov dword [esp + 0x10], str.vmodule
lea eax, [esp + 0x10]
mov dword [esp + 0x14], 7
push eax
lea eax, [esp + 0x3c]
mov dword [esp + 0x1c], 0x4fdd3c
push eax
mov ecx, edi
mov dword [esp + 0x24], 1
call fcn.004091b0
push eax
lea eax, [esp + 0x1c]
mov ecx, edi
push eax
lea eax, [esp + 0x28]
push eax
call fcn.004091b0
push eax
mov ecx, esi
call fcn.00416470
mov dword [0x7c3190], eax
mov eax, dword [esp + 0x30]
cmp eax, 0x10
jb 0x4031ae
inc eax
lea ecx, [esp + 0x1c]
push eax
push dword [esp + 0x20]
call fcn.004022b0
mov eax, dword [esp + 0x48]
mov dword [esp + 0x30], 0xf
mov dword [esp + 0x2c], 0
mov byte [esp + 0x1c], 0
cmp eax, 0x10
jb 0x4031db
inc eax
lea ecx, [esp + 0x34]
push eax
push dword [esp + 0x38]
call fcn.004022b0
mov dword [esp + 0x48], 0xf
mov dword [esp + 0x44], 0
mov byte [esp + 0x34], 0
mov eax, dword [ebx]
mov dword [0x7ad370], eax
test al, 1
jne 0x40320f
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.004a7ad5
mov esp, ebp
pop ebp
ret
mov eax, dword [0x7c3188]
test eax, eax
je 0x403229
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x7c3188], 0
mov edx, dword [0x7c318c]
test edx, edx
jne 0x403258
push 0x18
call fcn.004a7835
mov edx, eax
add esp, 4
xor eax, eax
mov dword [0x7c318c], edx
mov dword [edx + 0x14], 7
mov dword [edx + 0x10], 0
mov word [edx], ax
mov esi, dword [ebx + 4]
cmp word [esi], 0
jne 0x403265
xor ecx, ecx
jmp 0x40327f
mov ecx, esi
lea edi, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x403270
sub ecx, edi
sar ecx, 1
push ecx
push esi
mov ecx, edx
call fcn.00405500
cmp dword [ebx + 0xc], 0
jne 0x4032a2
mov eax, dword [0x7c318c]
cmp dword [eax + 0x14], 8
jb 0x40329b
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
call fcn.00402f70
mov ecx, dword [esp + 0x4c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004a7ad5
mov esp, ebp
pop ebp
ret
push 1
call fcn.004b2d10
int3
Function at 0x403350
Capabilities:
Print debug messages
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x43c
mov eax, dword [0x7aca10]
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.00407410
add esp, 4
lea eax, [esp + 0x10]
lea esi, [ebx + 0xc]
mov ecx, esi
push eax
call fcn.00405910
mov eax, dword [0x7c3184]
test eax, eax
je 0x4033b9
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 0x4034e1
test byte [0x7ad370], 2
je 0x4033d9
cmp dword [esp + 0x24], 0x10
lea eax, [esp + 0x10]
cmovae eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x4033de
cmp dword [ebx], 2
jl 0x40341d
cmp dword [esp + 0x24], 0x10
lea edi, [esp + 0x10]
mov esi, dword [esp + 0x20]
cmovae edi, dword [esp + 0x10]
push 2
call fcn.004b2e3c
add esp, 4
push eax
push 1
push esi
push edi
call fcn.004b3fe5
push 2
call fcn.004b2e3c
add esp, 0x14
push eax
call fcn.004b34c4
lea edi, [ebx + 8]
add esp, 4
lea esi, [ebx + 0xc]
test byte [0x7ad370], 1
je 0x403455
call fcn.00402f70
test al, al
je 0x403455
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 [0x7c3188]
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [ebx], 3
jne 0x4034e1
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 0x40348d
push ecx
push eax
lea eax, [esp + 0x48]
push eax
call fcn.004aadd0
add esp, 0xc
lea eax, [esp + 0x40]
push eax
call fcn.00415b10
add esp, 4
cmp dword [0x7c3194], 0
je 0x4034d7
lea eax, [esp + 0x28]
mov ecx, esi
push eax
call fcn.00405910
lea eax, [esp + 0x28]
push eax
call dword [0x7c3194]
mov eax, dword [esp + 0x40]
add esp, 4
cmp eax, 0x10
jb 0x4034e1
inc eax
lea ecx, [esp + 0x28]
push eax
push dword [esp + 0x2c]
call fcn.004022b0
jmp 0x4034e1
cmp byte [0x7c4190], 0
jne 0x403533
int3
mov eax, dword [esp + 0x24]
cmp eax, 0x10
jb 0x4034f9
inc eax
lea ecx, [esp + 0x10]
push eax
push dword [esp + 0x14]
call fcn.004022b0
push dword [ebx + 0xac]
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea esi, [edi + 0x50]
mov ecx, esi
call fcn.00403d60
push esi
mov dword [esi], vtable.std::ios_base.0
call fcn.004a5698
mov ecx, dword [esp + 0x448]
add esp, 4
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004a7ad5
mov esp, ebp
pop ebp
ret
push 1
call fcn.004b2d10
int3
Function at 0x408c60
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x20
mov eax, dword [0x7aca10]
xor eax, esp
mov dword [esp + 0x1c], eax
cmp dword [0x7c319c], 0
je 0x408c8e
xor al, al
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.004a7ad5
mov esp, ebp
pop ebp
ret
push 0x20
call fcn.004a7835
mov ecx, eax
call fcn.00408b90
mov dword [0x7c319c], eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea ecx, [esp + 8]
call fcn.00403cd0
lea eax, [esp + 4]
push eax
call fcn.00409760
mov eax, dword [esp + 0x18]
cmp eax, 8
jb 0x408cd3
inc eax
lea ecx, [esp + 4]
push eax
push dword [esp + 8]
call fcn.00406d90
mov ecx, dword [esp + 0x1c]
mov al, 1
xor ecx, esp
call fcn.004a7ad5
mov esp, ebp
pop ebp
ret

Function at 0x409760
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x20
mov eax, dword [0x7aca10]
xor eax, esp
mov dword [esp + 0x1c], eax
mov ecx, dword [ebp + 8]
mov edx, 0x4fc618
push esi
mov dword [esp + 4], 0
xor eax, eax
push edi
mov edi, dword [0x7c319c]
lea esi, [edx + 2]
mov dword [esp + 0x20], 7
mov dword [esp + 0x1c], 0
mov word [esp + 0xc], ax
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x4097a6
sub edx, esi
lea eax, [esp + 0xc]
sar edx, 1
push edx
push 0x4fc618
push eax
mov edx, 3
call fcn.00411fb0
add esp, 0xc
cmp dword [esp + 0x1c], 0
je 0x40980b
cmp dword [esp + 0x20], 8
lea ecx, [esp + 8]
lea eax, [esp + 0xc]
mov dword [esp + 8], 0
cmovae eax, dword [esp + 0xc]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov esi, eax
mov ecx, edi
push esi
push dword [esp + 0xc]
call fcn.00408d10
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [esp + 0x20]
cmp eax, 8
jb 0x409823
inc eax
lea ecx, [esp + 0xc]
push eax
push dword [esp + 0x10]
call fcn.00406d90
mov ecx, dword [esp + 0x24]
pop edi
pop esi
xor ecx, esp
call fcn.004a7ad5
mov esp, ebp
pop ebp
ret 4
Function at 0x40d580
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5f0
mov eax, dword [0x7aca10]
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.004177c0
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x2e4]
call fcn.004179b0
cmp dword [ebp - 0x10], ebx
je 0x40d6eb
nop
cmp byte [ebp - 0x2e4], 0
jne 0x40d60a
test bl, 1
je 0x40d5f2
and ebx, 0xfffffffe
lea ecx, [ebp - 0x39c]
mov dword [ebp - 0x2e8], ebx
call fcn.00403350
push 0x250
lea eax, [ebp - 0x5ec]
push 0
push eax
call fcn.004ab350
add esp, 0xc
jmp 0x40d623
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 0x40d659
test cl, cl
jne 0x40d63e
mov eax, ebx
shr eax, 4
test al, 1
jne 0x40d659
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 0x40d690
test cl, cl
je 0x40d6a6
push 1
mov edx, esi
lea ecx, [ebp - 0x20]
call fcn.0040d580
add esp, 4
test al, al
je 0x40d700
cmp dword [ebp - 0xc], 8
lea eax, [ebp - 0x20]
cmovae eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x40d6a2
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 0x40d700
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x2e4]
call fcn.004179b0
lea ecx, [ebp - 0x20]
cmp ecx, eax
je 0x40d6c6
push 0xffffffffffffffff
push 0
push eax
call fcn.00405600
mov eax, dword [ebp - 0x24]
cmp eax, 8
jb 0x40d6db
inc eax
lea ecx, [ebp - 0x38]
push eax
push dword [ebp - 0x38]
call fcn.00406d90
cmp dword [ebp - 0x10], 0
mov ebx, dword [ebp - 0x2e8]
jne 0x40d5d0
mov eax, dword [ebp - 0xc]
cmp eax, 8
jb 0x40d745
mov ecx, dword [ebp - 0x20]
inc eax
cmp eax, 0x7fffffff
jbe 0x40d719
jmp 0x40d765
mov eax, dword [ebp - 0xc]
cmp eax, 8
jb 0x40d715
inc eax
lea ecx, [ebp - 0x20]
push eax
push dword [ebp - 0x20]
call fcn.00406d90
xor bl, bl
jmp 0x40d747
add eax, eax
cmp eax, 0x1000
jb 0x40d73c
test cl, 0x1f
jne 0x40d76a
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x40d76f
sub ecx, eax
cmp ecx, 4
jb 0x40d774
cmp ecx, 0x23
ja 0x40d779
mov ecx, eax
push ecx
call fcn.004a780d
add esp, 4
mov bl, 1
lea ecx, [ebp - 0x2e4]
call fcn.004178a0
mov ecx, dword [ebp - 8]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a7ad5
mov esp, ebp
pop ebp
ret
call fcn.004adf2c
call fcn.004adf2c
call fcn.004adf2c
call fcn.004adf2c
call fcn.004adf2c
int3
Function at 0x40d830
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 [0x7aca10]
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 0x40d86d
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.004a7ad5
mov esp, ebp
pop ebp
ret
cmp eax, 0x104
jae 0x40d9ea
lea eax, [esp + 0x14]
mov ecx, edi
push eax
call fcn.0040cb30
push 2
push ecx
push 0x4fc364
mov ecx, eax
call fcn.0040a710
mov ecx, dword [esp + 0x28]
mov esi, eax
cmp ecx, 8
jb 0x40d8ad
inc ecx
push ecx
push dword [esp + 0x18]
lea ecx, [esp + 0x1c]
call fcn.00406d90
cmp esi, 0xffffffff
je 0x40d903
lea eax, [esp + 0x2c]
mov ecx, edi
push eax
call fcn.0040cb30
push dword [ebp + 0xc]
mov esi, eax
mov ecx, edi
lea eax, [esp + 0x18]
push eax
call fcn.0040c9f0
mov edx, esi
mov ecx, eax
call fcn.0040d580
add esp, 4
lea ecx, [esp + 0x14]
mov bl, al
call fcn.00403c60
lea ecx, [esp + 0x2c]
call fcn.00403c60
mov al, bl
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.004a7ad5
mov esp, ebp
pop ebp
ret
cmp dword [edi + 0x14], 8
jb 0x40d90d
mov eax, dword [edi]
jmp 0x40d90f
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40d859
test bl, 1
je 0x40d947
cmp dword [edi + 0x14], 8
jb 0x40d930
mov ecx, dword [edi]
jmp 0x40d932
mov ecx, edi
mov eax, ebx
and eax, 0xfffffffe
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x40d9ea
test bl, 0x10
jne 0x40d973
cmp dword [edi + 0x14], 8
jb 0x40d954
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.004a7ad5
mov esp, ebp
pop ebp
ret
cmp byte [ebp + 0xc], 0
je 0x40d9a5
push 0x4fc36c
lea ecx, [esp + 0x18]
call fcn.00403cd0
mov ebx, 1
lea edx, [esp + 0x14]
push ebx
mov ecx, edi
call fcn.0040d580
add esp, 4
test al, al
jne 0x40d9a9
mov byte [esp + 0xf], al
jmp 0x40d9ae
mov ebx, dword [esp + 0x10]
mov byte [esp + 0xf], 1
test bl, 1
je 0x40d9bc
lea ecx, [esp + 0x14]
call fcn.00403c60
cmp byte [esp + 0xf], 0
je 0x40d9ea
cmp dword [edi + 0x14], 8
jb 0x40d9cb
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.004a7ad5
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.004a7ad5
mov esp, ebp
pop ebp
ret
Function at 0x40dda0
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 0x40ddae
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 0x40de00
Capabilities:
Check if file exists
Get file attributes

Disassembly:
cmp dword [ecx + 0x14], 8
jb 0x40de08
mov ecx, dword [ecx]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40de1b
shr eax, 4
and eax, 1
ret
xor al, al
ret

Function at 0x40de20
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x248
mov eax, dword [0x7aca10]
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 0x40df37
sub esp, 8
lea eax, [esp + 0x40]
mov edx, esp
mov dword [edx], eax
cmp word [esp + 0x40], 0
jne 0x40de72
xor ecx, ecx
jmp 0x40de8f
lea ecx, [esp + 0x40]
lea edi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40de80
sub ecx, edi
sar ecx, 1
mov dword [edx + 4], ecx
lea ecx, [esp + 0x28]
call fcn.0040c2b0
sub esp, 8
mov edx, esp
cmp dword [eax + 0x14], 8
jb 0x40deaa
mov ecx, dword [eax]
jmp 0x40deac
mov ecx, eax
mov dword [edx], ecx
lea ecx, [esp + 0x10]
mov eax, dword [eax + 0x10]
mov dword [edx + 4], eax
call fcn.0040c2b0
lea ecx, [esp + 8]
call fcn.0040cfb0
lea eax, [esp + 8]
cmp esi, eax
je 0x40deda
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
call fcn.00405600
mov eax, dword [esp + 0x1c]
cmp eax, 8
jb 0x40def2
inc eax
lea ecx, [esp + 8]
push eax
push dword [esp + 0xc]
call fcn.00406d90
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 0x40df21
inc eax
lea ecx, [esp + 0x20]
push eax
push dword [esp + 0x24]
call fcn.00406d90
mov al, 1
pop edi
pop esi
mov ecx, dword [esp + 0x244]
xor ecx, esp
call fcn.004a7ad5
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x24c]
xor al, al
pop edi
pop esi
xor ecx, esp
call fcn.004a7ad5
mov esp, ebp
pop ebp
ret
Function at 0x40df50
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x228
mov eax, dword [0x7aca10]
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 0x40dfff
cmp word [esp + 0x20], 0
je 0x40dfff
sub esp, 8
lea eax, [esp + 0x28]
mov edx, esp
mov dword [edx], eax
cmp word [esp + 0x28], 0
jne 0x40dfc3
xor ecx, ecx
mov dword [edx + 4], ecx
mov ecx, esi
call fcn.0040c2b0
mov eax, esi
pop edi
pop esi
mov ecx, dword [esp + 0x224]
xor ecx, esp
call fcn.004a7ad5
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 0x40dfd0
sub ecx, edi
sar ecx, 1
mov dword [edx + 4], ecx
mov ecx, esi
call fcn.0040c2b0
mov eax, esi
pop edi
pop esi
mov ecx, dword [esp + 0x224]
xor ecx, esp
call fcn.004a7ad5
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.0040de20
add esp, 4
mov ecx, esi
test al, al
je 0x40e04b
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.00405600
jmp 0x40e062
sub esp, 8
mov eax, esp
mov dword [eax], 0x4fc370
mov dword [eax + 4], 3
call fcn.0040c2b0
mov eax, dword [esp + 0x1c]
cmp eax, 8
jb 0x40e07a
inc eax
lea ecx, [esp + 8]
push eax
push dword [esp + 0xc]
call fcn.00406d90
mov ecx, dword [esp + 0x22c]
mov eax, esi
pop edi
pop esi
xor ecx, esp
call fcn.004a7ad5
mov esp, ebp
pop ebp
ret
Function at 0x40e090
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
mov eax, dword [0x7aca10]
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 0x40e0bd
mov ebx, dword [edi]
jmp 0x40e0bf
mov ebx, edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40e101
test al, 0x10
je 0x40e0e3
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.004a7ad5
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x40e0ed
mov dword [esi], 0xfffffff7
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.004a7ad5
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x14]
mov ecx, edi
push eax
call fcn.0040c9f0
cmp dword [edi + 0x14], 8
jb 0x40e117
mov ecx, dword [edi]
jmp 0x40e119
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.0040a6b0
add esp, 0x10
test eax, eax
jne 0x40e14a
test esi, esi
je 0x40e192
mov dword [esi], 0xfffffffc
xor bl, bl
jmp 0x40e198
mov edx, esi
lea ecx, [esp + 0x14]
call fcn.0040e090
test al, al
jne 0x40e15d
xor bl, bl
jmp 0x40e198
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40e196
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp ebx, 0xb7
jne 0x40e185
mov ecx, edi
call fcn.0040de00
test al, al
jne 0x40e196
test esi, esi
je 0x40e192
mov ecx, ebx
call fcn.00416bd0
mov dword [esi], eax
xor bl, bl
jmp 0x40e198
mov bl, 1
mov ecx, dword [esp + 0x28]
cmp ecx, 8
jb 0x40e1b0
inc ecx
push ecx
push dword [esp + 0x18]
lea ecx, [esp + 0x1c]
call fcn.00406d90
mov ecx, dword [esp + 0x2c]
mov al, bl
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004a7ad5
mov esp, ebp
pop ebp
ret
Function at 0x40e270
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
push ebx
push esi
mov dword [esp + 0xc], 0
cmp dword [eax + 0x14], 8
push edi
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x1c], ecx
jb 0x40e299
mov eax, dword [eax]
push 0
push 0
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [esp + 0xc], 0
test esi, esi
je 0x40e346
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [esp + 0xc]
mov ebx, eax
call fcn.0040e5c0
cmp esi, 0xffffffff
je 0x40e313
mov dword [esp + 0xc], esi
call fcn.00418c30
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 4]
mov ecx, dword [0x7c3258]
mov dword [esp + 0x18], eax
test ecx, ecx
jne 0x40e300
call fcn.004183c0
mov ecx, dword [0x7c3258]
push dword [esp + 0x14]
mov eax, dword [ecx]
lea edx, [esp + 0x10]
push dword [esp + 0x1c]
push edx
push esi
call dword [eax + 4]
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [esp + 0xc]
test eax, eax
je 0x40e346
cmp eax, 0xffffffff
je 0x40e346
push 0
lea ecx, [esp + 0x14]
push ecx
push edi
push dword [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40e346
mov esi, dword [esp + 0x10]
cmp esi, edi
je 0x40e349
or esi, 0xffffffff
lea ecx, [esp + 0xc]
call fcn.0040e5c0
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40e360
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
mov eax, dword [0x7aca10]
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 0x40e45c
cmp eax, 0x104
ja 0x40e45c
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x228]
call fcn.00403cd0
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.0040c2b0
sub esp, 8
mov edx, esp
cmp dword [eax + 0x14], 8
jb 0x40e3f4
mov ecx, dword [eax]
jmp 0x40e3f6
mov ecx, eax
mov dword [edx], ecx
lea ecx, [ebp - 0x240]
mov eax, dword [eax + 0x10]
mov dword [edx + 4], eax
call fcn.0040c2b0
lea ecx, [ebp - 0x240]
call fcn.0040cfb0
lea eax, [ebp - 0x240]
cmp esi, eax
je 0x40e42a
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
call fcn.00405600
lea ecx, [ebp - 0x240]
call fcn.00403c60
lea ecx, [ebp - 0x258]
call fcn.00403c60
lea ecx, [ebp - 0x228]
call fcn.00403c60
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a7ad5
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
xor ecx, ebp
pop esi
call fcn.004a7ad5
mov esp, ebp
pop ebp
ret