joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40234c
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
mov eax, dword [0x44e4f8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov esi, ecx
push 0xc35
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov edi, eax
test edi, edi
je 0x4023b2
push 0x800
lea eax, [ebp - 0x804]
push 0
push eax
call fcn.004324b0
add esp, 0xc
push 0x400
lea eax, [ebp - 0x804]
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
je 0x4023b2
add esi, 0x10
lea eax, [ebp - 0x804]
call fcn.00401318
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0043228b
leave
ret
Function at 0x402f5b
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
xor ebx, ebx
push 0x442dd8
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov byte [esi + 0x18], bl
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp eax, ebx
mov dword [esi + 0x1c], eax
je 0x402ff7
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.RegCreateKeyExW
push eax
call edi
push str.RegQueryValueW
push dword [esi + 0x1c]
mov dword [esi], eax
call edi
push str.RegSetValueW
push dword [esi + 0x1c]
mov dword [esi + 4], eax
call edi
push str.RegQueryValueExW
push dword [esi + 0x1c]
mov dword [esi + 8], eax
call edi
push str.RegSetValueExW
push dword [esi + 0x1c]
mov dword [esi + 0xc], eax
call edi
push str.RegCloseKey
push dword [esi + 0x1c]
mov dword [esi + 0x10], eax
call edi
cmp dword [esi], ebx
mov dword [esi + 0x14], eax
pop edi
je 0x402ff7
cmp dword [esi + 4], ebx
je 0x402ff7
cmp dword [esi + 8], ebx
je 0x402ff7
cmp dword [esi + 0xc], ebx
je 0x402ff7
cmp dword [esi + 0x10], ebx
je 0x402ff7
cmp eax, ebx
je 0x402ff7
mov byte [esi + 0x18], 1
mov eax, esi
pop ebx
ret

Function at 0x404104
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
push ebx
push esi
push 0x44
mov esi, eax
xor ebx, ebx
lea eax, [ebp - 0x5c]
push ebx
push eax
call fcn.004324b0
push 0x10
lea eax, [ebp - 0x14]
push ebx
push eax
mov dword [ebp - 0x5c], 0x44
call fcn.004324b0
add esp, 0x18
cmp dword [esi + 0x18], 8
mov dword [ebp - 0x30], 1
mov word [ebp - 0x2c], 5
jb 0x40414a
mov esi, dword [esi + 4]
jmp 0x40414d
add esi, 4
mov eax, dword [ebp + 8]
cmp dword [eax + 0x18], 8
jb 0x40415b
mov eax, dword [eax + 4]
jmp 0x40415e
add eax, 4
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x5c]
push ecx
push esi
push ebx
push ebx
push ebx
push ebx
push ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x40418a
cmp dword [ebp - 0x14], ebx
je 0x404186
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x40418c
xor al, al
pop esi
pop ebx
leave
ret 4
Function at 0x404fd2
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x44e4f8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor edi, edi
cmp dword [eax + 0x18], 8
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], edi
jb 0x404ffb
mov eax, dword [eax + 4]
jmp 0x404ffe
add eax, 4
lea ecx, [ebp - 0x24]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov ebx, eax
cmp ebx, edi
jne 0x405013
xor al, al
jmp 0x40505b
cmp dword [ebp - 0x24], edi
jle 0x405047
mov eax, dword [ebx + edi*4]
lea ecx, [ebp - 0x20]
call fcn.0040118b
cmp dword [ebp - 0xc], 0
je 0x405035
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x28]
call fcn.004011bd
push 0
push 1
lea esi, [ebp - 0x20]
call fcn.00401432
inc edi
cmp edi, dword [ebp - 0x24]
jl 0x405018
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 0x28]
call fcn.004011a7
test eax, eax
setne al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043228b
leave
ret 4
Function at 0x407625
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2b8
mov eax, dword [0x44e4f8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp dword [eax + 0x18], 8
jb 0x407646
mov eax, dword [eax + 4]
jmp 0x407649
add eax, 4
push 0x100
push 0x2b4
lea ecx, [ebp - 0x2b8]
push ecx
push 0
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test eax, eax
je 0x407670
mov eax, dword [ebp - 0x2b8]
mov dword [esi + 0x18], eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043228b
leave
ret 4

Function at 0x409c34
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x29c
mov eax, dword [0x44e4f8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
push 0x27f4
mov dword [ebp - 0x25c], edi
call fcn.004050dc
lea ecx, [ebp - 0x250]
call fcn.00410091
cmp dword [ebp - 0x238], 8
mov eax, dword [ebp - 0x24c]
jae 0x409c7c
lea eax, [ebp - 0x24c]
mov esi, dword [sym.imp.USER32.dll_SetWindowTextW]
push eax
push dword [edi + 4]
call esi
push 0x20a
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.004324b0
add esp, 0xc
push 0x3ec
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
test eax, eax
mov ebx, dword [sym.imp.USER32.dll_IsWindow]
mov dword [ebp - 0x258], eax
je 0x409cf7
push eax
call ebx
test eax, eax
je 0x409cf7
push 0x104
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x258]
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
je 0x409cf7
and word [ebp - 0x10], 0
lea esi, [edi + 0x298]
lea eax, [ebp - 0x218]
call fcn.00401318
jmp 0x409d20
push dword [ebp - 0x258]
call ebx
test eax, eax
je 0x409d20
lea eax, [edi + 0x298]
cmp dword [eax + 0x18], 8
jb 0x409d14
mov eax, dword [eax + 4]
jmp 0x409d17
add eax, 4
push eax
push dword [ebp - 0x258]
call esi
add edi, 0x298
lea ecx, [ebp - 0x278]
call fcn.0040c0c0
push 0xffffffffffffffff
push edi
xor ebx, ebx
call fcn.004016c9
push ebx
push 1
lea esi, [ebp - 0x278]
call fcn.00401432
push 0x443184
push edi
call fcn.0040c889
mov ebx, dword [ebp - 0x25c]
cmp byte [ebx + 0x90], 0
pop ecx
pop ecx
je 0x409e4f
cmp dword [ebx + 0x88], 0
je 0x409e4f
lea ecx, [ebx + 0x74]
mov eax, edi
call fcn.0040c6f2
test al, al
jne 0x409e4f
lea esi, [ebp - 0x298]
call fcn.00402f5b
lea eax, [ebx + 0x324]
lea esi, [ebp - 0x234]
call fcn.00401a86
call fcn.0040c92c
push 0x25
push 0x3a
call fcn.0040c80e
push 0x25
push 0x5c
call fcn.0040c80e
mov ebx, str.SoftwareHaoZip_SFX
add esp, 0x10
mov eax, ebx
lea ecx, [ebp - 0x278]
call fcn.0040118b
lea eax, [ebp - 0x278]
lea esi, [ebp - 0x298]
call fcn.0040300a
push 0
push 1
lea esi, [ebp - 0x278]
mov byte [ebp - 0x251], al
call fcn.00401432
cmp byte [ebp - 0x251], 0
je 0x409e35
mov eax, ebx
lea ecx, [ebp - 0x278]
call fcn.0040118b
lea eax, [ebp - 0x234]
push eax
mov ecx, edi
lea eax, [ebp - 0x278]
lea esi, [ebp - 0x298]
call fcn.00403140
push 0
push 1
lea esi, [ebp - 0x278]
call fcn.00401432
push 0
push 1
lea esi, [ebp - 0x234]
call fcn.00401432
lea eax, [ebp - 0x298]
call fcn.00402ffb
push 0
push 1
lea esi, [ebp - 0x250]
call fcn.00401432
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043228b
leave
ret
Function at 0x40bfb6
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x398]
sub esp, 0x418
mov eax, dword [0x44e4f8]
xor eax, ebp
mov dword [ebp + 0x394], eax
push esi
push edi
xor edi, edi
push 0x40e
lea eax, [ebp - 0x7a]
push edi
push eax
mov esi, ecx
mov word [ebp - 0x7c], di
call fcn.004324b0
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
push dword [ebp + 0x3a0]
mov dword [ebp - 0x80], edi
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
je 0x40c009
xor al, al
jmp 0x40c042
lea eax, [ebp - 0x7c]
push eax
push dword [ebp - 0x80]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
jne 0x40c02a
cmp dword [ebp - 0x80], edi
je 0x40c005
push dword [ebp - 0x80]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
jmp 0x40c005
lea eax, [ebp - 0x7c]
call fcn.00401318
cmp dword [ebp - 0x80], edi
je 0x40c040
push dword [ebp - 0x80]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov al, 1
mov ecx, dword [ebp + 0x394]
pop edi
xor ecx, ebp
pop esi
call fcn.0043228b
add ebp, 0x398
leave
ret

Function at 0x40c059
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push esi
push 0x38
xor esi, esi
lea eax, [ebp - 0x38]
push esi
push eax
call fcn.004324b0
add esp, 0xc
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x38], esi
call dword [sym.imp.USER32.dll_GetActiveWindow]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x2c], str.regedit.exe
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], 1
mov dword [ebp - 4], esi
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
pop esi
je 0x40c0bc
push 0x20
pop eax
cmp eax, dword [ebp - 0x1c]
sbb eax, eax
neg eax
leave
ret
xor al, al
leave
ret
Function at 0x40c0c0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x44e4f8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 1
lea eax, [ebp - 0x24]
mov esi, ecx
push eax
xor eax, eax
mov ecx, edi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], 0x25
call fcn.00401386
cmp eax, 0xffffffff
mov eax, edi
jne 0x40c0ff
call fcn.00401a86
mov eax, esi
jmp 0x40c19b
lea esi, [ebp - 0x20]
call fcn.00401a86
cmp dword [edi + 0x18], 8
lea eax, [edi + 4]
mov dword [ebp - 0x2c], eax
jb 0x40c115
mov eax, dword [eax]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push 0
push 0
push eax
call ebx
mov esi, eax
test esi, esi
jne 0x40c12d
mov eax, edi
jmp 0x40c183
xor ecx, ecx
push 2
pop edx
lea eax, [esi + 2]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00431f71
cmp dword [edi + 0x18], 8
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x2c]
pop ecx
jb 0x40c153
mov eax, dword [eax]
lea ecx, [esi + 1]
push ecx
push dword [ebp - 0x24]
push eax
call ebx
test eax, eax
jbe 0x40c177
cmp eax, esi
ja 0x40c177
mov ecx, dword [ebp - 0x24]
and word [ecx + eax*2], 0
mov eax, ecx
lea esi, [ebp - 0x20]
call fcn.00401318
push dword [ebp - 0x24]
call fcn.0043217c
pop ecx
lea eax, [ebp - 0x20]
mov esi, dword [ebp - 0x28]
call fcn.00401a86
push 0
push 1
lea esi, [ebp - 0x20]
call fcn.00401432
mov eax, dword [ebp - 0x28]
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0043228b
leave
ret
Function at 0x40d1b6
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x44e4f8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
lea esi, [ebp - 0x20]
call fcn.00401a86
mov eax, esi
push 0x24
push eax
call fcn.0040d8f5
cmp dword [ebp - 8], 8
mov eax, dword [ebp - 0x1c]
pop ecx
pop ecx
jae 0x40d1eb
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40d215
mov bl, 1
push 0
push 1
lea esi, [ebp - 0x20]
call fcn.00401432
mov ecx, dword [ebp - 4]
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.0043228b
leave
ret
xor bl, bl
jmp 0x40d1f9

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x44e4f8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
lea esi, [ebp - 0x20]
call fcn.00401a86
mov eax, esi
push 0x24
push eax
call fcn.0040d8f5
cmp dword [ebp - 8], 8
mov eax, dword [ebp - 0x1c]
pop ecx
pop ecx
jae 0x40d24e
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40d27c
test al, 0x10
jne 0x40d27c
mov bl, 1
push 0
push 1
lea esi, [ebp - 0x20]
call fcn.00401432
mov ecx, dword [ebp - 4]
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.0043228b
leave
ret
xor bl, bl
jmp 0x40d260

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x44e4f8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
lea esi, [ebp - 0x20]
call fcn.00401a86
mov eax, esi
push 0x24
push eax
call fcn.0040d8f5
cmp dword [ebp - 8], 8
mov eax, dword [ebp - 0x1c]
pop ecx
pop ecx
jae 0x40d2b5
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40d2e3
test al, 0x10
je 0x40d2e3
mov bl, 1
push 0
push 1
lea esi, [ebp - 0x20]
call fcn.00401432
mov ecx, dword [ebp - 4]
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.0043228b
leave
ret
xor bl, bl
jmp 0x40d2c7

Function at 0x40d2e7
Capabilities:
Check if file exists
Delete file
Get file attributes

Disassembly:
cmp dword [edi + 0x18], 8
push esi
lea esi, [edi + 4]
jb 0x40d2f5
mov eax, dword [esi]
jmp 0x40d2f7
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40d312
and eax, 0xfffffffe
push 0
push eax
mov eax, edi
call fcn.0040db7d
pop ecx
pop ecx
cmp dword [edi + 0x18], 8
jb 0x40d31a
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
neg eax
pop esi
ret
Function at 0x40d329
Capabilities:
Check if file exists
Delete directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x9c
mov eax, dword [0x44e4f8]
xor eax, esp
mov dword [esp + 0x98], eax
mov eax, dword [ebp + 8]
push ebx
push esi
xor ebx, ebx
push edi
lea esi, [esp + 0x20]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebx
call fcn.00401a86
mov eax, esi
push 0x10
push eax
call fcn.0040d8f5
pop ecx
pop ecx
lea eax, [esp + 0x58]
call fcn.0040d077
lea esi, [esp + 0x1c]
call fcn.0040ec47
lea eax, [esp + 0x3c]
push 0x442df4
push eax
lea eax, [esp + 0x28]
call fcn.00401f94
pop ecx
pop ecx
mov ecx, esi
push ecx
lea edx, [esp + 0x5c]
mov ecx, eax
call fcn.0040d800
push ebx
push 1
lea esi, [esp + 0x44]
mov byte [esp + 0x23], al
call fcn.00401432
cmp byte [esp + 0x1b], bl
je 0x40d4a7
lea esi, [esp + 0x58]
call fcn.0040d16b
test al, al
jne 0x40d491
mov eax, esi
call fcn.0040d158
test al, al
mov eax, esi
je 0x40d3f4
call fcn.0040d154
push eax
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x28]
call fcn.00401fc6
push eax
call fcn.0040d329
add esp, 0xc
jmp 0x40d417
call fcn.0040d154
push eax
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x28]
call fcn.00401fc6
pop ecx
pop ecx
lea edi, [esp + 0x3c]
call fcn.0040d2e7
movzx eax, al
cdq
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], eax
jmp 0x40d485
lea esi, [esp + 0x58]
call fcn.0040d16b
test al, al
jne 0x40d491
mov eax, esi
call fcn.0040d158
test al, al
mov eax, esi
je 0x40d45a
call fcn.0040d154
push eax
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x28]
call fcn.00401fc6
push eax
call fcn.0040d329
add esp, 0xc
jmp 0x40d47d
call fcn.0040d154
push eax
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x28]
call fcn.00401fc6
pop ecx
pop ecx
lea edi, [esp + 0x3c]
call fcn.0040d2e7
movzx eax, al
cdq
add dword [esp + 0x10], eax
adc dword [esp + 0x14], edx
push ebx
push 1
lea esi, [esp + 0x44]
call fcn.00401432
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x5c]
call fcn.0040d86d
test al, al
jne 0x40d421
lea eax, [esp + 0x1c]
call fcn.0040d8be
lea eax, [esp + 0x20]
push 0x20
push eax
call fcn.0040d8f5
cmp dword [esp + 0x40], 8
mov eax, dword [esp + 0x2c]
pop ecx
pop ecx
jae 0x40d4cd
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40d4e9
and eax, 0xfffffffe
push ebx
push eax
lea eax, [esp + 0x28]
call fcn.0040db7d
pop ecx
pop ecx
cmp dword [esp + 0x38], 8
mov eax, dword [esp + 0x24]
jae 0x40d4f8
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x40d50c
add dword [esp + 0x10], 1
adc dword [esp + 0x14], ebx
lea edi, [esp + 0x1c]
call fcn.0040d7e8
lea eax, [esp + 0x58]
call fcn.0040d0a5
push ebx
push 1
lea esi, [esp + 0x28]
call fcn.00401432
mov ecx, dword [esp + 0xa4]
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0043228b
mov esp, ebp
pop ebp
ret
Function at 0x40db88
Capabilities:
Move file

Disassembly:
jmp 0x40f52e
cmp dword [eax + 0x18], 8
jb 0x40f539
mov eax, dword [eax + 4]
jmp 0x40f53c
add eax, 4
cmp dword [ecx + 0x18], 8
jb 0x40f547
mov ecx, dword [ecx + 4]
jmp 0x40f54a
add ecx, 4
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
setne al
ret

Function at 0x40db8d
Capabilities:
Create directory

Disassembly:
jmp 0x40f558
cmp dword [eax + 0x18], 8
jb 0x40f563
mov eax, dword [eax + 4]
jmp 0x40f566
add eax, 4
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
setne al
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x44e4f8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 0x4436fc
mov esi, ecx
call fcn.00432161
pop ecx
push eax
mov eax, esi
call fcn.0040de77
cmp eax, 0xffffffff
jne 0x40dbf3
cmp dword [esi + 0x18], 8
jb 0x40dbdd
mov esi, dword [esi + 4]
jmp 0x40dbe0
add esi, 4
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov al, cl
jmp 0x40dc10
lea eax, [ebp - 0x50]
call fcn.0040d077
push eax
push esi
call fcn.0040d8c8
pop ecx
mov bl, al
pop ecx
lea eax, [ebp - 0x50]
call fcn.0040d0a5
mov al, bl
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0043228b
leave
ret

Function at 0x40e6fb
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, 0x8000
cmp dword [ebp + 0xc], eax
push ebx
push esi
jbe 0x40e710
mov dword [ebp + 0xc], eax
xor ebx, ebx
push ebx
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
mov dword [ebp - 4], ebx
push dword [ebp + 8]
push dword [edi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
neg eax
sbb eax, eax
and eax, 0x7fffbffb
add eax, 0x80004005
cmp dword [edi + 0x20], ebx
je 0x40e7de
cmp eax, ebx
je 0x40e7de
jmp 0x40e74b
xor ebx, ebx
mov ecx, dword [ebp + 0xc]
cmp dword [ebp - 4], ecx
jae 0x40e7de
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
lea esi, [ebp - 0x18]
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
call fcn.0040fadf
test al, al
jne 0x40e779
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov eax, dword [edi + 0x20]
mov ebx, dword [eax]
push 0
push dword [ebp - 0xc]
mov eax, edi
push dword [ebp - 0x14]
add ebx, 0x18
push dword [ebp - 0x18]
call fcn.0040fb8d
sub esp, 0x1c
mov esi, esp
call fcn.00401a86
mov ecx, dword [edi + 0x20]
call dword [ebx]
test eax, eax
jne 0x40e7de
and dword [ebp - 8], eax
mov ecx, dword [ebp + 8]
push eax
lea eax, [ebp - 8]
push eax
push dword [ebp + 0xc]
mov eax, dword [ebp - 4]
add eax, ecx
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 8]
neg eax
sbb eax, eax
add dword [ebp - 4], ecx
and eax, 0x7fffbffb
add eax, 0x80004005
test eax, eax
jne 0x40e749
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 4]
pop esi
mov dword [ecx], edx
pop ebx
leave
ret 0xc
Function at 0x40f438
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x44e4f8]
xor eax, ebp
mov dword [ebp - 4], eax
and word [ebp - 0x210], 0
push esi
push 0x20a
lea eax, [ebp - 0x20e]
push 0
push eax
mov esi, ecx
call fcn.004324b0
add esp, 0xc
push 0x105
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
dec eax
cmp eax, 0x103
ja 0x40f49a
and word [ebp - 6], 0
lea eax, [ebp - 0x210]
call fcn.00401318
mov al, 1
jmp 0x40f49c
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0043228b
leave
ret

Function at 0x40f4fd
Capabilities:
Set file attributes

Disassembly:
cmp dword [esp + 4], 0xffffffff
jne 0x40f507
xor al, al
ret
and dword [esp + 4], 0xffffb1af
cmp dword [eax + 0x18], 8
jb 0x40f51a
mov eax, dword [eax + 4]
jmp 0x40f51d
add eax, 4
push dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne al
ret

Function at 0x40f57a
Capabilities:
Check if file exists
Delete file
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0x18], 8
push edi
lea edi, [esi + 4]
jb 0x40f592
mov eax, dword [edi]
jmp 0x40f594
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x40f5a6
mov al, 1
jmp 0x40f642
cmp dword [esi + 0x18], 8
jb 0x40f5b0
mov eax, dword [edi]
jmp 0x40f5b2
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x40f640
cmp dword [esi + 0x18], 8
jb 0x40f5cb
mov eax, dword [edi]
jmp 0x40f5cd
mov eax, edi
push ebx
lea ecx, [ebp - 0x20]
call fcn.0040118b
push 0
lea eax, [ebp - 0x20]
call fcn.0040f4fd
pop ecx
mov bl, al
neg bl
push 0
sbb bl, bl
push 1
lea esi, [ebp - 0x20]
inc bl
call fcn.00401432
test bl, bl
pop ebx
jne 0x40f640
mov esi, dword [ebp + 8]
cmp dword [esi + 0x18], 8
jb 0x40f607
mov eax, dword [edi]
jmp 0x40f609
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x40f59f
cmp dword [esi + 0x18], 8
jb 0x40f61e
mov eax, dword [edi]
jmp 0x40f620
mov eax, edi
lea ecx, [ebp - 0x20]
call fcn.0040118b
push dword [ebp - 4]
lea eax, [ebp - 0x20]
call fcn.0040f4fd
pop ecx
push 0
push 1
lea esi, [ebp - 0x20]
call fcn.00401432
xor al, al
pop edi
pop esi
leave
ret
Function at 0x40f660
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x624
mov eax, dword [0x44e4f8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
cmp dword [0x44f94c], ebx
push esi
mov esi, ecx
je 0x40f695
push 0xffffffffffffffff
push esi
mov eax, 0x44f938
call fcn.004016c9
mov al, 1
jmp 0x40f731
push 0x20a
lea eax, [ebp - 0x20e]
push ebx
push eax
mov word [ebp - 0x210], bx
call fcn.004324b0
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0x103
ja 0x40f72f
push edi
push 0x410
lea eax, [ebp - 0x622]
push ebx
push eax
mov word [ebp - 6], bx
mov word [ebp - 0x624], bx
call fcn.004324b0
add esp, 0xc
mov edi, 0x208
push edi
lea eax, [ebp - 0x624]
push eax
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
cmp eax, edi
pop edi
ja 0x40f71f
cmp eax, ebx
je 0x40f71f
mov word [ebp + eax*2 - 0x624], bx
lea eax, [ebp - 0x624]
jmp 0x40f725
lea eax, [ebp - 0x210]
call fcn.00401318
jmp 0x40f68e
xor al, al
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0043228b
leave
ret

Function at 0x40f73f
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x194]
sub esp, 0x214
mov eax, dword [0x44e4f8]
xor eax, ebp
mov dword [ebp + 0x190], eax
mov eax, dword [ebp + 0x19c]
push ebx
push esi
push edi
xor esi, esi
push 0x20a
mov dword [ebp - 0x80], eax
lea eax, [ebp - 0x7a]
push esi
push eax
mov ebx, ecx
mov edi, edx
mov word [ebp - 0x7c], si
call fcn.004324b0
add esp, 0xc
cmp dword [edi + 0x18], 8
jb 0x40f78d
mov edi, dword [edi + 4]
jmp 0x40f790
add edi, 4
cmp dword [ebx + 0x18], 8
jb 0x40f79b
mov ebx, dword [ebx + 4]
jmp 0x40f79e
add ebx, 4
lea eax, [ebp - 0x7c]
push eax
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jbe 0x40f7c5
mov word [ebp + 0x18e], si
mov esi, dword [ebp - 0x80]
lea eax, [ebp - 0x7c]
call fcn.00401318
mov al, 1
jmp 0x40f7c7
xor al, al
mov ecx, dword [ebp + 0x190]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043228b
add ebp, 0x194
leave
ret

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

Disassembly:
cmp dword [eax + 0x18], 8
jb 0x40f8c0
mov eax, dword [eax + 4]
jmp 0x40f8c3
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov al, cl
ret

Function at 0x40fadf
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push edi
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40fb0c
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x40fb0c
xor al, al
jmp 0x40fb27
push 1
push 0
push 0
push dword [ebp - 4]
call fcn.0043ccd0
xor ecx, ecx
add eax, edi
adc edx, ecx
mov dword [esi], eax
mov dword [esi + 4], edx
mov al, 1
pop edi
leave
ret 4