joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401551
Capabilities:
Read file on windows
Read pipe

Disassembly:
mov eax, 0x41f878
call fcn.00411868
mov eax, 0x105c
call fcn.00411970
push esi
xor esi, esi
push edi
lea eax, [ebp - 0x10]
push esi
push eax
push esi
push esi
push esi
mov dword [ebp - 0x10], esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_PeekNamedPipe]
cmp eax, esi
jne 0x4015e2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, 0x6d
je 0x40169c
push dword [0x42b830]
lea ecx, [ebp - 0x40]
call fcn.0040f88a
push edi
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], esi
call fcn.0040fa96
push str.PeekNamedPipe_failed___
lea ecx, [ebp - 0x50]
call fcn.0040e496
push dword [ebp - 0x40]
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 1
call fcn.0040e51c
lea eax, [ebp - 0x50]
lea ecx, [ebp - 0x34]
push eax
call fcn.00409301
lea eax, [ebp - 0x34]
push 0x423228
push eax
call fcn.00411936
cmp dword [ebp - 0x10], esi
jbe 0x40169c
push 0x1002
lea eax, [ebp - 0x1068]
push esi
push eax
mov dword [ebp - 0x14], esi
call fcn.00411400
add esp, 0xc
lea eax, [ebp - 0x14]
push esi
push eax
lea eax, [ebp - 0x1068]
push 0x1000
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x401682
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, 0x6d
je 0x401694
push dword [0x42b830]
lea ecx, [ebp - 0x20]
call fcn.0040f88a
push edi
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], 2
call fcn.0040fa96
push str.ReadFile_failed___
lea ecx, [ebp - 0x30]
call fcn.0040e496
push dword [ebp - 0x20]
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 3
call fcn.0040e51c
lea eax, [ebp - 0x30]
lea ecx, [ebp - 0x64]
push eax
call fcn.00409301
lea eax, [ebp - 0x64]
push 0x423228
push eax
call fcn.00411936
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x1068]
push eax
call fcn.0040e51c
mov esi, dword [ebp - 0x14]
push 1
call fcn.0040c73c
pop ecx
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 8
Function at 0x4016ae
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x41f8b4
call fcn.00411868
sub esp, 0xa8
push ebx
xor ebx, ebx
cmp byte [ebp + 8], bl
push edi
mov edi, ecx
mov dword [ebp - 0x10], ebx
jne 0x4016d3
mov dword [ebp - 0x10], 0x8000008
cmp byte [ebp + 0xc], bl
je 0x4016dc
or dword [ebp - 0x10], 0x10
push esi
push 0x44
pop esi
lea eax, [ebp - 0xb4]
push esi
push ebx
push eax
call fcn.00411400
mov dword [ebp - 0xb4], esi
lea esi, [edi + 0x18]
add esp, 0xc
mov ecx, esi
call fcn.0040edfb
test al, al
je 0x40170a
mov dword [ebp + 8], ebx
jmp 0x401714
mov ecx, esi
call fcn.0040ed7f
mov dword [ebp + 8], eax
lea esi, [edi + 4]
mov ecx, esi
call fcn.0040edfb
test al, al
je 0x401726
xor eax, eax
jmp 0x40172d
mov ecx, esi
call fcn.0040ed7f
lea ecx, [ebp - 0x5c]
push ecx
lea ecx, [ebp - 0xb4]
push ecx
push dword [ebp + 8]
push ebx
push dword [ebp - 0x10]
push ebx
push ebx
push ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
cmp eax, ebx
pop esi
jne 0x4017a5
push dword [0x42b830]
lea ecx, [ebp - 0x1c]
call fcn.0040f88a
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x1c]
call fcn.0040fa96
push str.CreateProcess_failed___
lea ecx, [ebp - 0x2c]
call fcn.0040e496
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.0040e51c
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0x40]
push eax
call fcn.00409301
lea eax, [ebp - 0x40]
push 0x423228
push eax
call fcn.00411936
cmp byte [edi + 0x14], bl
mov dword [ebp + 0xc], ebx
je 0x401886
push 0xffffffffffffffff
push dword [ebp - 0x5c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0xffffffff
jne 0x40181b
push dword [0x42b830]
lea ecx, [ebp - 0x1c]
call fcn.0040f88a
mov dword [ebp - 4], 2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x1c]
call fcn.0040fa96
push str.CreateProcess_unable_to_wait_for_completion__
lea ecx, [ebp - 0x2c]
call fcn.0040e496
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 3
call fcn.0040e51c
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0x40]
push eax
call fcn.00409301
lea eax, [ebp - 0x40]
push 0x423228
push eax
call fcn.00411936
lea eax, [ebp + 0xc]
push eax
push dword [ebp - 0x5c]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
jne 0x401886
push dword [0x42b830]
lea ecx, [ebp - 0x4c]
call fcn.0040f88a
mov dword [ebp - 4], 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x4c]
call fcn.0040fa96
push str.CreateProcess_unable_to_get_exit_code_for_process__
lea ecx, [ebp - 0x3c]
call fcn.0040e496
push dword [ebp - 0x4c]
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 5
call fcn.0040e51c
lea eax, [ebp - 0x3c]
lea ecx, [ebp - 0x70]
push eax
call fcn.00409301
lea eax, [ebp - 0x70]
push 0x423228
push eax
call fcn.00411936
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 0xc]
pop edi
pop ebx
mov dword fs:[0], ecx
leave
ret 8
Function at 0x40195d
Capabilities:
Accept command line arguments

Disassembly:
mov eax, 0x41f8e4
call fcn.00411868
sub esp, 0x24
cmp byte [0x42b848], 0
push ebx
push esi
mov esi, ecx
je 0x4019a7
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
lea ecx, [ebp - 0x20]
call fcn.0040e496
and dword [ebp - 4], 0
lea eax, [ebp - 0x20]
push eax
mov ecx, esi
call fcn.004018b0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
mov bl, al
call fcn.0040e4dc
mov al, bl
jmp 0x401a1c
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push esi
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
xor ebx, ebx
mov edi, eax
cmp dword [esi], ebx
mov dword [ebp - 0x10], edi
jle 0x4019f5
push dword [edi]
lea eax, [ebp - 0x30]
push eax
call fcn.0040d3b0
pop ecx
pop ecx
lea eax, [ebp - 0x30]
lea ecx, [esi + 4]
push eax
mov dword [ebp - 4], 1
call fcn.0040f7a7
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.0040e4dc
inc ebx
add edi, 4
cmp ebx, dword [esi]
jl 0x4019c1
cmp dword [ebp - 0x10], 0
pop edi
je 0x401a1a
push dword [ebp - 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_GlobalHandle]
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [ebp - 0x10]
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov al, 1
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x401972
Capabilities:
Accept command line arguments

Disassembly:
mov eax, 0x41f8e4
call fcn.00411868
sub esp, 0x24
cmp byte [0x42b848], 0
push ebx
push esi
mov esi, ecx
je 0x4019a7
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
lea ecx, [ebp - 0x20]
call fcn.0040e496
and dword [ebp - 4], 0
lea eax, [ebp - 0x20]
push eax
mov ecx, esi
call fcn.004018b0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
mov bl, al
call fcn.0040e4dc
mov al, bl
jmp 0x401a1c
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push esi
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
xor ebx, ebx
mov edi, eax
cmp dword [esi], ebx
mov dword [ebp - 0x10], edi
jle 0x4019f5
push dword [edi]
lea eax, [ebp - 0x30]
push eax
call fcn.0040d3b0
pop ecx
pop ecx
lea eax, [ebp - 0x30]
lea ecx, [esi + 4]
push eax
mov dword [ebp - 4], 1
call fcn.0040f7a7
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.0040e4dc
inc ebx
add edi, 4
cmp ebx, dword [esi]
jl 0x4019c1
cmp dword [ebp - 0x10], 0
pop edi
je 0x401a1a
push dword [ebp - 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_GlobalHandle]
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [ebp - 0x10]
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov al, 1
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x409fb2
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x420848
call fcn.00411868
sub esp, 0x14
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], esp
mov dword [ebp - 4], ebx
call fcn.00401cec
mov esi, 0x104
mov byte [0x42b848], al
push esi
call fcn.00411458
pop ecx
mov edi, eax
push esi
push ebx
push edi
call fcn.00411400
add esp, 0xc
push esi
push edi
push str.DBGWIN32PPK
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
jbe 0x40a039
push edi
mov ecx, 0x42b838
call fcn.0040e4f6
push str.Launcher_Started
lea ecx, [ebp - 0x20]
mov byte [0x42b84a], 1
call fcn.0040e496
lea eax, [ebp - 0x20]
push 1
push eax
mov byte [ebp - 4], 1
call fcn.0040a0b9
pop ecx
mov byte [ebp - 4], bl
pop ecx
lea ecx, [ebp - 0x20]
call fcn.0040e4dc
push edi
call fcn.00411466
pop ecx
push 4
call fcn.00411458
cmp eax, ebx
pop ecx
je 0x40a056
mov dword [eax], 0x42232c
mov ecx, eax
jmp 0x40a058
xor ecx, ecx
push dword [ebp + 0x14]
mov dword [0x42b84c], ecx
push dword [ebp + 8]
call fcn.00402d79
cmp al, bl
je 0x40a0a9
mov ecx, dword [0x42b84c]
mov eax, dword [ecx]
call dword [eax]
mov dword [ebp + 0x14], eax
mov eax, dword [0x42b84c]
or dword [ebp - 4], 0xffffffff
test eax, eax
je 0x40a095
push eax
call fcn.00411466
and dword [0x42b84c], 0
pop ecx
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 0x14]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 0x10
or dword [ebp + 0x14], 0xffffffff
jmp 0x40a07a
Function at 0x40ca49
Capabilities:
Create directory
Delete file
Get common file path

Disassembly:
mov eax, 0x420ed3
call fcn.00411868
sub esp, 0x158
and dword [ebp - 0x10], 0
push ebx
push esi
push edi
lea ecx, [ebp - 0x20]
call fcn.0040e3f3
lea eax, [ebp - 0x30]
mov dword [ebp - 4], 1
push eax
call fcn.0040ce7c
pop ecx
lea eax, [ebp - 0x164]
mov edi, 0x429a94
push eax
push 0
push edi
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 2
call fcn.0040ed7f
mov esi, dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push eax
call esi
test eax, eax
jne 0x40cb2f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp ebx, 5
jne 0x40cada
xor ebx, ebx
push ebx
push 0xc8
call dword [sym.imp.KERNEL32.dll_SleepEx]
lea eax, [ebp - 0x164]
lea ecx, [ebp - 0x30]
push eax
push ebx
push edi
call fcn.0040ed7f
push eax
call esi
test eax, eax
jne 0x40caad
jmp 0x40caa5
test ebx, ebx
je 0x40cb2f
push dword [0x42b830]
lea ecx, [ebp - 0x3c]
call fcn.0040f88a
push ebx
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 3
call fcn.0040fa96
push str.GetTempFileName_failed___
lea ecx, [ebp - 0x4c]
call fcn.0040e496
push dword [ebp - 0x3c]
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 4
call fcn.0040e51c
lea eax, [ebp - 0x4c]
lea ecx, [ebp - 0x60]
push eax
call fcn.00409301
lea eax, [ebp - 0x60]
push 0x423228
push eax
call fcn.00411936
lea eax, [ebp - 0x164]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x164]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea eax, [ebp - 0x164]
lea ecx, [ebp - 0x20]
push eax
call fcn.0040e4f6
lea eax, [ebp - 0x20]
mov ecx, 0x42b880
push eax
call fcn.0040f7a7
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x20]
push eax
call fcn.0040e423
mov dword [ebp - 0x10], 1
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 1
call fcn.0040e4dc
and byte [ebp - 4], 0
lea ecx, [ebp - 0x20]
call fcn.0040e4dc
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x40cba5
Capabilities:
Get common file path

Disassembly:
mov eax, 0x420f07
call fcn.00411868
sub esp, 0x128
and dword [ebp - 0x10], 0
lea eax, [ebp - 0x30]
push ebx
push eax
call fcn.0040ce7c
pop ecx
push 1
lea ecx, [ebp - 0x20]
pop ebx
mov dword [ebp - 4], ebx
call fcn.0040e3f3
lea eax, [ebp - 0x134]
lea ecx, [ebp - 0x30]
push eax
push 0
push 0x429a94
mov byte [ebp - 4], 2
call fcn.0040ed7f
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
lea eax, [ebp - 0x134]
lea ecx, [ebp - 0x20]
push eax
call fcn.0040e4f6
lea eax, [ebp - 0x20]
push eax
call fcn.0040cc42
pop ecx
lea eax, [ebp - 0x20]
mov ecx, dword [ebp + 8]
push eax
call fcn.0040e423
mov dword [ebp - 0x10], ebx
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], bl
call fcn.0040e4dc
and byte [ebp - 4], 0
lea ecx, [ebp - 0x30]
call fcn.0040e4dc
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x40ccfd
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, 0x420f24
call fcn.00411868
sub esp, 0x20
cmp dword [0x42b888], 0
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
jle 0x40cdb0
mov esi, 0x42b880
cmp byte [0x42b84a], 0
je 0x40cd67
push str.Launcher:_Deleting_dir:
lea ecx, [ebp - 0x1c]
call fcn.0040e496
and dword [ebp - 4], 0
mov ecx, esi
call fcn.0040f77d
push eax
lea ecx, [ebp - 0x1c]
call fcn.0040e510
lea eax, [ebp - 0x1c]
push 1
push eax
call fcn.0040a0b9
or dword [ebp - 4], 0xffffffff
pop ecx
pop ecx
lea ecx, [ebp - 0x1c]
call fcn.0040e4dc
mov ecx, esi
call fcn.0040f77d
push eax
call fcn.0040d0e4
pop ecx
mov ecx, esi
call fcn.0040f77d
mov ecx, eax
call fcn.0040ed7f
push eax
call edi
cmp eax, 0xffffffff
jne 0x40cd9b
mov eax, dword [0x42b888]
mov ecx, esi
dec eax
push eax
call fcn.00402b36
jmp 0x40cda3
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [0x42b888], 0
jg 0x40cd24
cmp dword [0x42b8a0], 0
jle 0x40ce51
mov esi, 0x42b898
cmp byte [0x42b84a], 0
je 0x40ce08
push str.Launcher:_Deleting_file:
lea ecx, [ebp - 0x2c]
call fcn.0040e496
mov ecx, esi
mov dword [ebp - 4], 1
call fcn.0040f77d
push eax
lea ecx, [ebp - 0x2c]
call fcn.0040e510
lea eax, [ebp - 0x2c]
push 1
push eax
call fcn.0040a0b9
or dword [ebp - 4], 0xffffffff
pop ecx
pop ecx
lea ecx, [ebp - 0x2c]
call fcn.0040e4dc
mov ecx, esi
call fcn.0040f77d
push eax
call fcn.0040d0e4
pop ecx
mov ecx, esi
call fcn.0040f77d
mov ecx, eax
call fcn.0040ed7f
push eax
call edi
cmp eax, 0xffffffff
jne 0x40ce3c
mov eax, dword [0x42b8a0]
mov ecx, esi
dec eax
push eax
call fcn.00402b36
jmp 0x40ce44
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [0x42b8a0], 0
jg 0x40cdc2
cmp byte [0x42b8bd], 0
pop edi
pop esi
je 0x40ce61
call fcn.0040dee1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret
Function at 0x40ce7c
Capabilities:
Check if file exists
Get common file path
Get disk size
Get file attributes

Disassembly:
mov eax, 0x420f40
call fcn.00411868
sub esp, 0x34
push esi
push edi
mov esi, 0x42b860
xor edi, edi
mov ecx, esi
mov dword [ebp - 0x10], edi
call fcn.0040ed91
test eax, eax
ja 0x40ced5
push ebx
push edi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetTempPathA]
call edi
push eax
mov dword [ebp - 0x10], eax
call fcn.00411458
pop ecx
mov ebx, eax
push ebx
push dword [ebp - 0x10]
call edi
mov eax, dword [ebp - 0x10]
push ebx
mov ecx, esi
and byte [ebx + eax - 1], 0
call fcn.0040e4f6
push ebx
call fcn.00411466
pop ecx
pop ebx
mov ecx, esi
call fcn.0040ed7f
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40cf0a
test al, 0x10
je 0x40cf0a
mov ecx, dword [ebp + 8]
push 0x42b860
call fcn.0040e423
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret
push dword [0x42b830]
lea ecx, [ebp - 0x1c]
call fcn.0040f88a
and dword [ebp - 4], 0
mov ecx, esi
call fcn.0040ed7f
push eax
lea eax, [ebp - 0x1c]
push 0x24
push eax
call fcn.0040f9b2
add esp, 0xc
lea ecx, [ebp - 0x2c]
push dword [ebp - 0x1c]
call fcn.0040e496
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0x40]
push eax
mov byte [ebp - 4], 1
call fcn.00409301
lea eax, [ebp - 0x40]
push 0x423228
push eax
call fcn.00411936
Function at 0x40cf5b
Capabilities:
Check if file exists
Get disk size
Get file attributes

Disassembly:
mov eax, 0x420f6c
call fcn.00411868
sub esp, 0x54
push ebx
xor ebx, ebx
push esi
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], ebx
call fcn.0040e3f3
mov esi, dword [ebp + 8]
mov dword [ebp - 4], ebx
mov ecx, esi
call fcn.0040ed91
cmp eax, 3
jbe 0x40cfd6
push 1
mov ecx, esi
call fcn.0040ed23
cmp byte [eax], 0x3a
jne 0x40cfd6
push 2
mov ecx, esi
call fcn.0040ed23
cmp byte [eax], 0x5c
jne 0x40cfd6
push 3
lea eax, [ebp - 0x3c]
push ebx
push eax
mov ecx, esi
call fcn.0040f26e
push eax
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 1
call fcn.0040e4ea
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], bl
call fcn.0040e4dc
jmp 0x40cff3
call fcn.00412ed0
add al, 0x40
lea ecx, [ebp - 0x4c]
push eax
call fcn.0040e502
push 0x429af0
lea ecx, [ebp - 0x4c]
call fcn.0040e51c
lea eax, [ebp - 0x1c]
lea ecx, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.0040ed7f
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
je 0x40d08d
mov esi, dword [ebp - 0x10]
mov dword [ebp - 0x20], ebx
imul esi, dword [ebp - 0x14]
mov dword [ebp - 0x24], esi
fild qword [ebp - 0x24]
fild dword [ebp + 0xc]
fdiv st(1)
call fcn.00412fe8
cmp dword [ebp + 0x10], 1
mov dword [ebp + 8], eax
jne 0x40d049
mov eax, dword [ebp + 0xc]
xor edx, edx
div esi
test edx, edx
je 0x40d051
inc dword [ebp + 8]
jmp 0x40d051
jle 0x40d051
mov eax, dword [ebp + 0x10]
add dword [ebp + 8], eax
fild dword [ebp + 8]
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x24], eax
fmul st(1)
fstp qword [ebp - 0x34]
fild qword [ebp - 0x24]
fmulp st(1)
fcomp qword [ebp - 0x34]
fnstsw ax
sahf
jb 0x40d071
mov bl, 1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4c]
call fcn.0040e4dc
mov ecx, dword [ebp - 0xc]
mov al, bl
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
push dword [0x42b830]
lea ecx, [ebp - 0x38]
call fcn.0040f88a
mov byte [ebp - 4], 2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x38]
call fcn.0040fa96
push str.GetDiskFreeSpace_failed___
lea ecx, [ebp - 0x2c]
call fcn.0040e496
push dword [ebp - 0x38]
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 3
call fcn.0040e51c
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0x60]
push eax
call fcn.00409301
lea eax, [ebp - 0x60]
push 0x423228
push eax
call fcn.00411936

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

Disassembly:
mov eax, 0x420f80
call fcn.00411868
sub esp, 0x44
mov ecx, dword [ebp + 8]
call fcn.0040ed7f
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40d137
test al, 0x10
je 0x40d12e
lea ecx, [ebp - 0x50]
call fcn.0040dcf5
push dword [ebp + 8]
and dword [ebp - 4], 0
lea ecx, [ebp - 0x50]
call fcn.0040dd3d
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x50]
call fcn.0040d143
jmp 0x40d137
push dword [ebp + 8]
call fcn.0040ddd9
pop ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret
Function at 0x40d874
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x4210f3
call fcn.00411868
sub esp, 0x14
mov ecx, dword [ebp + 0xc]
push ebx
push esi
xor eax, eax
push edi
push eax
push eax
mov dword [ebp - 0x10], eax
call fcn.0040ed7f
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
push eax
call esi
push 1
mov ebx, eax
pop edi
cmp ebx, edi
ja 0x40d8b4
mov ecx, dword [ebp + 8]
push 0x42b600
call fcn.0040e496
jmp 0x40d8f5
lea eax, [ebx - 1]
push 0
push eax
lea ecx, [ebp - 0x20]
call fcn.0040e4b7
push ebx
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], edi
call fcn.0040ed7f
mov ecx, dword [ebp + 0xc]
push eax
call fcn.0040ed7f
push eax
call esi
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x20]
push eax
call fcn.0040e423
and byte [ebp - 4], 0
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x10], edi
call fcn.0040e4dc
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x40d924
Capabilities:
Get disk information

Disassembly:
mov eax, 0x421120
call fcn.00411868
sub esp, 0x44
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
xor ebx, ebx
push edi
push ebx
push ebx
call esi
mov edi, eax
cmp edi, ebx
je 0x40d9d4
push ebx
push edi
lea ecx, [ebp - 0x2c]
call fcn.0040e4b7
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], ebx
call fcn.0040ed7f
push eax
push edi
call esi
lea ecx, [ebp - 0x2c]
call fcn.0040ed7f
mov esi, eax
cmp byte [esi], bl
je 0x40d9b9
push esi
call fcn.00412d00
pop ecx
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 3
jne 0x40d9ac
dec edi
lea ecx, [ebp - 0x1c]
push edi
push esi
call fcn.0040e471
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x1c]
push eax
mov byte [ebp - 4], 1
call fcn.0040f7a7
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], bl
call fcn.0040e4dc
push esi
call fcn.00412d00
pop ecx
lea esi, [esi + eax + 1]
jmp 0x40d96d
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.0040e4dc
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
push dword [0x42b830]
lea ecx, [ebp - 0x18]
call fcn.0040f88a
push 0x11
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 2
call fcn.0040f8b4
push dword [ebp - 0x18]
lea ecx, [ebp - 0x3c]
call fcn.0040e496
lea eax, [ebp - 0x3c]
lea ecx, [ebp - 0x50]
push eax
mov byte [ebp - 4], 3
call fcn.00409301
lea eax, [ebp - 0x50]
push 0x423228
push eax
call fcn.00411936
Function at 0x40ddd9
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
mov ecx, esi
call fcn.0040ed7f
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40de0c
test bl, 1
je 0x40de0c
and ebx, 0xfffffffe
mov ecx, esi
push ebx
call fcn.0040ed7f
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test bl, 0x10
mov ecx, esi
je 0x40de21
call fcn.0040ed7f
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
jmp 0x40de2d
call fcn.0040ed7f
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov edi, eax
test edi, edi
jne 0x40de42
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
call fcn.0040da71
pop ecx
pop ecx
mov eax, edi
pop edi
pop esi
pop ebx
ret
Function at 0x417ec8
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x42a7e8
cmp edx, dword [eax]
je 0x417eea
add eax, 8
inc ecx
cmp eax, 0x42a878
jl 0x417edb
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x42a7e8]
jne 0x418018
mov eax, dword [0x42b8e4]
cmp eax, 1
je 0x417ff2
test eax, eax
jne 0x417f1b
cmp dword [0x42a044], 1
je 0x417ff2
cmp edx, 0xfc
je 0x418018
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x417f52
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00413190
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00412d00
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x417f95
lea eax, [ebp - 0x1a4]
push eax
call fcn.00412d00
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x428d98
push edi
call fcn.0041a840
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00413190
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004131a0
lea eax, [ebp - 0xa0]
push 0x422874
push eax
call fcn.004131a0
push dword [esi + 0x42a7ec]
lea eax, [ebp - 0xa0]
push eax
call fcn.004131a0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0041c10f
add esp, 0x2c
pop edi
jmp 0x418018
lea eax, [ebp + 8]
lea esi, [esi + 0x42a7ec]
push 0
push eax
push dword [esi]
call fcn.00412d00
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret