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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
mov eax, dword [0x44e4ec]
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 0x4023d1
push 0x800
lea eax, [ebp - 0x804]
push 0
push eax
call fcn.00432360
add esp, 0xc
push 0x400
lea eax, [ebp - 0x804]
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
je 0x4023d1
add esi, 0x10
lea eax, [ebp - 0x804]
call fcn.00401337
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0043220f
leave
ret
Function at 0x402f7a
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 0x403016
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 0x403016
cmp dword [esi + 4], ebx
je 0x403016
cmp dword [esi + 8], ebx
je 0x403016
cmp dword [esi + 0xc], ebx
je 0x403016
cmp dword [esi + 0x10], ebx
je 0x403016
cmp eax, ebx
je 0x403016
mov byte [esi + 0x18], 1
mov eax, esi
pop ebx
ret

Function at 0x40411d
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.00432360
push 0x10
lea eax, [ebp - 0x14]
push ebx
push eax
mov dword [ebp - 0x5c], 0x44
call fcn.00432360
add esp, 0x18
cmp dword [esi + 0x18], 8
mov dword [ebp - 0x30], 1
mov word [ebp - 0x2c], 5
jb 0x404163
mov esi, dword [esi + 4]
jmp 0x404166
add esi, 4
mov eax, dword [ebp + 8]
cmp dword [eax + 0x18], 8
jb 0x404174
mov eax, dword [eax + 4]
jmp 0x404177
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 0x4041a3
cmp dword [ebp - 0x14], ebx
je 0x40419f
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x4041a5
xor al, al
pop esi
pop ebx
leave
ret 4
Function at 0x404feb
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x44e4ec]
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 0x405014
mov eax, dword [eax + 4]
jmp 0x405017
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 0x40502c
xor al, al
jmp 0x405074
cmp dword [ebp - 0x24], edi
jle 0x405060
mov eax, dword [ebx + edi*4]
lea ecx, [ebp - 0x20]
call fcn.0040118b
cmp dword [ebp - 0xc], 0
je 0x40504e
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x28]
call fcn.004011dc
push 0
push 1
lea esi, [ebp - 0x20]
call fcn.00401451
inc edi
cmp edi, dword [ebp - 0x24]
jl 0x405031
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.0043220f
leave
ret 4
Function at 0x407603
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2b8
mov eax, dword [0x44e4ec]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp dword [eax + 0x18], 8
jb 0x407624
mov eax, dword [eax + 4]
jmp 0x407627
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 0x40764e
mov eax, dword [ebp - 0x2b8]
mov dword [esi + 0x18], eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043220f
leave
ret 4

Function at 0x409b86
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x29c
mov eax, dword [0x44e4ec]
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.004050f5
lea ecx, [ebp - 0x250]
call fcn.0041007f
cmp dword [ebp - 0x238], 8
mov eax, dword [ebp - 0x24c]
jae 0x409bce
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.00432360
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 0x409c49
push eax
call ebx
test eax, eax
je 0x409c49
push 0x104
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x258]
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
je 0x409c49
and word [ebp - 0x10], 0
lea esi, [edi + 0x298]
lea eax, [ebp - 0x218]
call fcn.00401337
jmp 0x409c72
push dword [ebp - 0x258]
call ebx
test eax, eax
je 0x409c72
lea eax, [edi + 0x298]
cmp dword [eax + 0x18], 8
jb 0x409c66
mov eax, dword [eax + 4]
jmp 0x409c69
add eax, 4
push eax
push dword [ebp - 0x258]
call esi
add edi, 0x298
lea ecx, [ebp - 0x278]
call fcn.0040c0e6
push 0xffffffffffffffff
push edi
xor ebx, ebx
call fcn.004016e8
push ebx
push 1
lea esi, [ebp - 0x278]
call fcn.00401451
push 0x443184
push edi
call fcn.0040c8af
mov ebx, dword [ebp - 0x25c]
cmp byte [ebx + 0x90], 0
pop ecx
pop ecx
je 0x409da1
cmp dword [ebx + 0x88], 0
je 0x409da1
lea ecx, [ebx + 0x74]
mov eax, edi
call fcn.0040c718
test al, al
jne 0x409da1
lea esi, [ebp - 0x298]
call fcn.00402f7a
lea eax, [ebx + 0x324]
lea esi, [ebp - 0x234]
call fcn.00401aa5
call fcn.0040c952
push 0x25
push 0x3a
call fcn.0040c834
push 0x25
push 0x5c
call fcn.0040c834
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.00403029
push 0
push 1
lea esi, [ebp - 0x278]
mov byte [ebp - 0x251], al
call fcn.00401451
cmp byte [ebp - 0x251], 0
je 0x409d87
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.0040315f
push 0
push 1
lea esi, [ebp - 0x278]
call fcn.00401451
push 0
push 1
lea esi, [ebp - 0x234]
call fcn.00401451
lea eax, [ebp - 0x298]
call fcn.0040301a
push 0
push 1
lea esi, [ebp - 0x250]
call fcn.00401451
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043220f
leave
ret
Function at 0x40bfdc
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x398]
sub esp, 0x418
mov eax, dword [0x44e4ec]
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.00432360
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 0x40c02f
xor al, al
jmp 0x40c068
lea eax, [ebp - 0x7c]
push eax
push dword [ebp - 0x80]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
jne 0x40c050
cmp dword [ebp - 0x80], edi
je 0x40c02b
push dword [ebp - 0x80]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
jmp 0x40c02b
lea eax, [ebp - 0x7c]
call fcn.00401337
cmp dword [ebp - 0x80], edi
je 0x40c066
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.0043220f
add ebp, 0x398
leave
ret

Function at 0x40c07f
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.00432360
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 0x40c0e2
push 0x20
pop eax
cmp eax, dword [ebp - 0x1c]
sbb eax, eax
neg eax
leave
ret
xor al, al
leave
ret
Function at 0x40c0e6
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x44e4ec]
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.004013a5
cmp eax, 0xffffffff
mov eax, edi
jne 0x40c125
call fcn.00401aa5
mov eax, esi
jmp 0x40c1c1
lea esi, [ebp - 0x20]
call fcn.00401aa5
cmp dword [edi + 0x18], 8
lea eax, [edi + 4]
mov dword [ebp - 0x2c], eax
jb 0x40c13b
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 0x40c153
mov eax, edi
jmp 0x40c1a9
xor ecx, ecx
push 2
pop edx
lea eax, [esi + 2]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00431e19
cmp dword [edi + 0x18], 8
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x2c]
pop ecx
jb 0x40c179
mov eax, dword [eax]
lea ecx, [esi + 1]
push ecx
push dword [ebp - 0x24]
push eax
call ebx
test eax, eax
jbe 0x40c19d
cmp eax, esi
ja 0x40c19d
mov ecx, dword [ebp - 0x24]
and word [ecx + eax*2], 0
mov eax, ecx
lea esi, [ebp - 0x20]
call fcn.00401337
push dword [ebp - 0x24]
call fcn.0043220a
pop ecx
lea eax, [ebp - 0x20]
mov esi, dword [ebp - 0x28]
call fcn.00401aa5
push 0
push 1
lea esi, [ebp - 0x20]
call fcn.00401451
mov eax, dword [ebp - 0x28]
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0043220f
leave
ret
Function at 0x40d3d3
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x44e4ec]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
lea esi, [ebp - 0x20]
call fcn.00401aa5
mov eax, esi
push 0x24
push eax
call fcn.0040d09d
cmp dword [ebp - 8], 8
mov eax, dword [ebp - 0x1c]
pop ecx
pop ecx
jae 0x40d408
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40d432
mov bl, 1
push 0
push 1
lea esi, [ebp - 0x20]
call fcn.00401451
mov ecx, dword [ebp - 4]
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.0043220f
leave
ret
xor bl, bl
jmp 0x40d416

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x44e4ec]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
lea esi, [ebp - 0x20]
call fcn.00401aa5
mov eax, esi
push 0x24
push eax
call fcn.0040d09d
cmp dword [ebp - 8], 8
mov eax, dword [ebp - 0x1c]
pop ecx
pop ecx
jae 0x40d46b
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40d499
test al, 0x10
jne 0x40d499
mov bl, 1
push 0
push 1
lea esi, [ebp - 0x20]
call fcn.00401451
mov ecx, dword [ebp - 4]
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.0043220f
leave
ret
xor bl, bl
jmp 0x40d47d

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x44e4ec]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
lea esi, [ebp - 0x20]
call fcn.00401aa5
mov eax, esi
push 0x24
push eax
call fcn.0040d09d
cmp dword [ebp - 8], 8
mov eax, dword [ebp - 0x1c]
pop ecx
pop ecx
jae 0x40d4d2
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40d500
test al, 0x10
je 0x40d500
mov bl, 1
push 0
push 1
lea esi, [ebp - 0x20]
call fcn.00401451
mov ecx, dword [ebp - 4]
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.0043220f
leave
ret
xor bl, bl
jmp 0x40d4e4

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

Disassembly:
cmp dword [edi + 0x18], 8
push esi
lea esi, [edi + 4]
jb 0x40d512
mov eax, dword [esi]
jmp 0x40d514
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40d52f
and eax, 0xfffffffe
push 0
push eax
mov eax, edi
call fcn.0040db97
pop ecx
pop ecx
cmp dword [edi + 0x18], 8
jb 0x40d537
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 0x40d546
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 [0x44e4ec]
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.00401aa5
mov eax, esi
push 0x10
push eax
call fcn.0040d09d
pop ecx
pop ecx
lea eax, [esp + 0x58]
call fcn.0040d29b
lea esi, [esp + 0x1c]
call fcn.0040ec39
lea eax, [esp + 0x3c]
push 0x442df4
push eax
lea eax, [esp + 0x28]
call fcn.00401fb3
pop ecx
pop ecx
mov ecx, esi
push ecx
lea edx, [esp + 0x5c]
mov ecx, eax
call fcn.0040da18
push ebx
push 1
lea esi, [esp + 0x44]
mov byte [esp + 0x23], al
call fcn.00401451
cmp byte [esp + 0x1b], bl
je 0x40d6c4
lea esi, [esp + 0x58]
call fcn.0040d388
test al, al
jne 0x40d6ae
mov eax, esi
call fcn.0040d375
test al, al
mov eax, esi
je 0x40d611
call fcn.0040d371
push eax
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x28]
call fcn.00401fe5
push eax
call fcn.0040d546
add esp, 0xc
jmp 0x40d634
call fcn.0040d371
push eax
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x28]
call fcn.00401fe5
pop ecx
pop ecx
lea edi, [esp + 0x3c]
call fcn.0040d504
movzx eax, al
cdq
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], eax
jmp 0x40d6a2
lea esi, [esp + 0x58]
call fcn.0040d388
test al, al
jne 0x40d6ae
mov eax, esi
call fcn.0040d375
test al, al
mov eax, esi
je 0x40d677
call fcn.0040d371
push eax
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x28]
call fcn.00401fe5
push eax
call fcn.0040d546
add esp, 0xc
jmp 0x40d69a
call fcn.0040d371
push eax
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x28]
call fcn.00401fe5
pop ecx
pop ecx
lea edi, [esp + 0x3c]
call fcn.0040d504
movzx eax, al
cdq
add dword [esp + 0x10], eax
adc dword [esp + 0x14], edx
push ebx
push 1
lea esi, [esp + 0x44]
call fcn.00401451
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x5c]
call fcn.0040da85
test al, al
jne 0x40d63e
lea eax, [esp + 0x1c]
call fcn.0040dad6
lea eax, [esp + 0x20]
push 0x20
push eax
call fcn.0040d09d
cmp dword [esp + 0x40], 8
mov eax, dword [esp + 0x2c]
pop ecx
pop ecx
jae 0x40d6ea
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40d706
and eax, 0xfffffffe
push ebx
push eax
lea eax, [esp + 0x28]
call fcn.0040db97
pop ecx
pop ecx
cmp dword [esp + 0x38], 8
mov eax, dword [esp + 0x24]
jae 0x40d715
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x40d729
add dword [esp + 0x10], 1
adc dword [esp + 0x14], ebx
lea edi, [esp + 0x1c]
call fcn.0040da00
lea eax, [esp + 0x58]
call fcn.0040d2c9
push ebx
push 1
lea esi, [esp + 0x28]
call fcn.00401451
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.0043220f
mov esp, ebp
pop ebp
ret
Function at 0x40dba2
Capabilities:
Move file

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

Function at 0x40dba7
Capabilities:
Create directory

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

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x44e4ec]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 0x4436ec
mov esi, ecx
call fcn.00431ee5
pop ecx
push eax
mov eax, esi
call fcn.0040de91
cmp eax, 0xffffffff
jne 0x40dc0d
cmp dword [esi + 0x18], 8
jb 0x40dbf7
mov esi, dword [esi + 4]
jmp 0x40dbfa
add esi, 4
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov al, cl
jmp 0x40dc2a
lea eax, [ebp - 0x50]
call fcn.0040d29b
push eax
push esi
call fcn.0040dae0
pop ecx
mov bl, al
pop ecx
lea eax, [ebp - 0x50]
call fcn.0040d2c9
mov al, bl
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0043220f
leave
ret

Function at 0x40e6d9
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 0x40e6ee
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 0x40e7bc
cmp eax, ebx
je 0x40e7bc
jmp 0x40e729
xor ebx, ebx
mov ecx, dword [ebp + 0xc]
cmp dword [ebp - 4], ecx
jae 0x40e7bc
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.0040fad1
test al, al
jne 0x40e757
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.0040e4d1
sub esp, 0x1c
mov esi, esp
call fcn.00401aa5
mov ecx, dword [edi + 0x20]
call dword [ebx]
test eax, eax
jne 0x40e7bc
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 0x40e727
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 4]
pop esi
mov dword [ecx], edx
pop ebx
leave
ret 0xc
Function at 0x40f42a
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x44e4ec]
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.00432360
add esp, 0xc
push 0x105
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
dec eax
cmp eax, 0x103
ja 0x40f48c
and word [ebp - 6], 0
lea eax, [ebp - 0x210]
call fcn.00401337
mov al, 1
jmp 0x40f48e
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0043220f
leave
ret

Function at 0x40f4ef
Capabilities:
Set file attributes

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

Function at 0x40f56c
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 0x40f584
mov eax, dword [edi]
jmp 0x40f586
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x40f598
mov al, 1
jmp 0x40f634
cmp dword [esi + 0x18], 8
jb 0x40f5a2
mov eax, dword [edi]
jmp 0x40f5a4
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x40f632
cmp dword [esi + 0x18], 8
jb 0x40f5bd
mov eax, dword [edi]
jmp 0x40f5bf
mov eax, edi
push ebx
lea ecx, [ebp - 0x20]
call fcn.0040118b
push 0
lea eax, [ebp - 0x20]
call fcn.0040f4ef
pop ecx
mov bl, al
neg bl
push 0
sbb bl, bl
push 1
lea esi, [ebp - 0x20]
inc bl
call fcn.00401451
test bl, bl
pop ebx
jne 0x40f632
mov esi, dword [ebp + 8]
cmp dword [esi + 0x18], 8
jb 0x40f5f9
mov eax, dword [edi]
jmp 0x40f5fb
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x40f591
cmp dword [esi + 0x18], 8
jb 0x40f610
mov eax, dword [edi]
jmp 0x40f612
mov eax, edi
lea ecx, [ebp - 0x20]
call fcn.0040118b
push dword [ebp - 4]
lea eax, [ebp - 0x20]
call fcn.0040f4ef
pop ecx
push 0
push 1
lea esi, [ebp - 0x20]
call fcn.00401451
xor al, al
pop edi
pop esi
leave
ret
Function at 0x40f652
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x624
mov eax, dword [0x44e4ec]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
cmp dword [0x44f93c], ebx
push esi
mov esi, ecx
je 0x40f687
push 0xffffffffffffffff
push esi
mov eax, 0x44f928
call fcn.004016e8
mov al, 1
jmp 0x40f723
push 0x20a
lea eax, [ebp - 0x20e]
push ebx
push eax
mov word [ebp - 0x210], bx
call fcn.00432360
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0x103
ja 0x40f721
push edi
push 0x410
lea eax, [ebp - 0x622]
push ebx
push eax
mov word [ebp - 6], bx
mov word [ebp - 0x624], bx
call fcn.00432360
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 0x40f711
cmp eax, ebx
je 0x40f711
mov word [ebp + eax*2 - 0x624], bx
lea eax, [ebp - 0x624]
jmp 0x40f717
lea eax, [ebp - 0x210]
call fcn.00401337
jmp 0x40f680
xor al, al
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0043220f
leave
ret

Function at 0x40f731
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x194]
sub esp, 0x214
mov eax, dword [0x44e4ec]
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.00432360
add esp, 0xc
cmp dword [edi + 0x18], 8
jb 0x40f77f
mov edi, dword [edi + 4]
jmp 0x40f782
add edi, 4
cmp dword [ebx + 0x18], 8
jb 0x40f78d
mov ebx, dword [ebx + 4]
jmp 0x40f790
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 0x40f7b7
mov word [ebp + 0x18e], si
mov esi, dword [ebp - 0x80]
lea eax, [ebp - 0x7c]
call fcn.00401337
mov al, 1
jmp 0x40f7b9
xor al, al
mov ecx, dword [ebp + 0x190]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043220f
add ebp, 0x194
leave
ret

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

Disassembly:
cmp dword [eax + 0x18], 8
jb 0x40f8b2
mov eax, dword [eax + 4]
jmp 0x40f8b5
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 0x40fad1
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 0x40fafe
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x40fafe
xor al, al
jmp 0x40fb19
push 1
push 0
push 0
push dword [ebp - 4]
call fcn.0043cb80
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