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

Disassembly:
push ebx
xor ebx, ebx
push 0x443dd8
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 0x40300e
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 0x40300e
cmp dword [esi + 4], ebx
je 0x40300e
cmp dword [esi + 8], ebx
je 0x40300e
cmp dword [esi + 0xc], ebx
je 0x40300e
cmp dword [esi + 0x10], ebx
je 0x40300e
cmp eax, ebx
je 0x40300e
mov byte [esi + 0x18], 1
mov eax, esi
pop ebx
ret

Function at 0x40412b
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.00432b60
push 0x10
lea eax, [ebp - 0x14]
push ebx
push eax
mov dword [ebp - 0x5c], 0x44
call fcn.00432b60
add esp, 0x18
cmp dword [esi + 0x18], 8
mov dword [ebp - 0x30], 1
mov word [ebp - 0x2c], 5
jb 0x404171
mov esi, dword [esi + 4]
jmp 0x404174
add esi, 4
mov eax, dword [ebp + 8]
cmp dword [eax + 0x18], 8
jb 0x404182
mov eax, dword [eax + 4]
jmp 0x404185
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 0x4041b1
cmp dword [ebp - 0x14], ebx
je 0x4041ad
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x4041b3
xor al, al
pop esi
pop ebx
leave
ret 4
Function at 0x404ff9
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x44f4e8]
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 0x405022
mov eax, dword [eax + 4]
jmp 0x405025
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 0x40503a
xor al, al
jmp 0x405082
cmp dword [ebp - 0x24], edi
jle 0x40506e
mov eax, dword [ebx + edi*4]
lea ecx, [ebp - 0x20]
call fcn.00401183
cmp dword [ebp - 0xc], 0
je 0x40505c
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x28]
call fcn.004011d4
push 0
push 1
lea esi, [ebp - 0x20]
call fcn.00401449
inc edi
cmp edi, dword [ebp - 0x24]
jl 0x40503f
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 0x28]
call fcn.0040119f
test eax, eax
setne al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004327bb
leave
ret 4
Function at 0x407651
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2b8
mov eax, dword [0x44f4e8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp dword [eax + 0x18], 8
jb 0x407672
mov eax, dword [eax + 4]
jmp 0x407675
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 0x40769c
mov eax, dword [ebp - 0x2b8]
mov dword [esi + 0x18], eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004327bb
leave
ret 4

Function at 0x409c39
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x29c
mov eax, dword [0x44f4e8]
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.00405103
lea ecx, [ebp - 0x250]
call fcn.00410016
cmp dword [ebp - 0x238], 8
mov eax, dword [ebp - 0x24c]
jae 0x409c81
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.00432b60
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 0x409cfc
push eax
call ebx
test eax, eax
je 0x409cfc
push 0x104
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x258]
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
je 0x409cfc
and word [ebp - 0x10], 0
lea esi, [edi + 0x298]
lea eax, [ebp - 0x218]
call fcn.0040132f
jmp 0x409d25
push dword [ebp - 0x258]
call ebx
test eax, eax
je 0x409d25
lea eax, [edi + 0x298]
cmp dword [eax + 0x18], 8
jb 0x409d19
mov eax, dword [eax + 4]
jmp 0x409d1c
add eax, 4
push eax
push dword [ebp - 0x258]
call esi
add edi, 0x298
lea ecx, [ebp - 0x278]
call fcn.0040c0c5
push 0xffffffffffffffff
push edi
xor ebx, ebx
call fcn.004016e0
push ebx
push 1
lea esi, [ebp - 0x278]
call fcn.00401449
push 0x444184
push edi
call fcn.0040c896
mov ebx, dword [ebp - 0x25c]
cmp byte [ebx + 0x90], 0
pop ecx
pop ecx
je 0x409e54
cmp dword [ebx + 0x88], 0
je 0x409e54
lea ecx, [ebx + 0x74]
mov eax, edi
call fcn.0040c6f7
test al, al
jne 0x409e54
lea esi, [ebp - 0x298]
call fcn.00402f72
lea eax, [ebx + 0x324]
lea esi, [ebp - 0x234]
call fcn.00401a9d
call fcn.0040c939
push 0x25
push 0x3a
call fcn.0040c81b
push 0x25
push 0x5c
call fcn.0040c81b
mov ebx, str.SoftwareHaoZip_SFX
add esp, 0x10
mov eax, ebx
lea ecx, [ebp - 0x278]
call fcn.00401183
lea eax, [ebp - 0x278]
lea esi, [ebp - 0x298]
call fcn.00403021
push 0
push 1
lea esi, [ebp - 0x278]
mov byte [ebp - 0x251], al
call fcn.00401449
cmp byte [ebp - 0x251], 0
je 0x409e3a
mov eax, ebx
lea ecx, [ebp - 0x278]
call fcn.00401183
lea eax, [ebp - 0x234]
push eax
mov ecx, edi
lea eax, [ebp - 0x278]
lea esi, [ebp - 0x298]
call fcn.00403157
push 0
push 1
lea esi, [ebp - 0x278]
call fcn.00401449
push 0
push 1
lea esi, [ebp - 0x234]
call fcn.00401449
lea eax, [ebp - 0x298]
call fcn.00403012
push 0
push 1
lea esi, [ebp - 0x250]
call fcn.00401449
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004327bb
leave
ret
Function at 0x40bfbb
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x398]
sub esp, 0x418
mov eax, dword [0x44f4e8]
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.00432b60
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 0x40c00e
xor al, al
jmp 0x40c047
lea eax, [ebp - 0x7c]
push eax
push dword [ebp - 0x80]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
jne 0x40c02f
cmp dword [ebp - 0x80], edi
je 0x40c00a
push dword [ebp - 0x80]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
jmp 0x40c00a
lea eax, [ebp - 0x7c]
call fcn.0040132f
cmp dword [ebp - 0x80], edi
je 0x40c045
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.004327bb
add ebp, 0x398
leave
ret

Function at 0x40c05e
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.00432b60
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 0x40c0c1
push 0x20
pop eax
cmp eax, dword [ebp - 0x1c]
sbb eax, eax
neg eax
leave
ret
xor al, al
leave
ret
Function at 0x40c0c5
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x44f4e8]
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.0040139d
cmp eax, 0xffffffff
mov eax, edi
jne 0x40c104
call fcn.00401a9d
mov eax, esi
jmp 0x40c1a0
lea esi, [ebp - 0x20]
call fcn.00401a9d
cmp dword [edi + 0x18], 8
lea eax, [edi + 4]
mov dword [ebp - 0x2c], eax
jb 0x40c11a
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 0x40c132
mov eax, edi
jmp 0x40c188
xor ecx, ecx
push 2
pop edx
lea eax, [esi + 2]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00432619
cmp dword [edi + 0x18], 8
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x2c]
pop ecx
jb 0x40c158
mov eax, dword [eax]
lea ecx, [esi + 1]
push ecx
push dword [ebp - 0x24]
push eax
call ebx
test eax, eax
jbe 0x40c17c
cmp eax, esi
ja 0x40c17c
mov ecx, dword [ebp - 0x24]
and word [ecx + eax*2], 0
mov eax, ecx
lea esi, [ebp - 0x20]
call fcn.0040132f
push dword [ebp - 0x24]
call fcn.004326a5
pop ecx
lea eax, [ebp - 0x20]
mov esi, dword [ebp - 0x28]
call fcn.00401a9d
push 0
push 1
lea esi, [ebp - 0x20]
call fcn.00401449
mov eax, dword [ebp - 0x28]
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004327bb
leave
ret
Function at 0x40d3ba
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x44f4e8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
lea esi, [ebp - 0x20]
call fcn.00401a9d
mov eax, esi
push 0x24
push eax
call fcn.0040d084
cmp dword [ebp - 8], 8
mov eax, dword [ebp - 0x1c]
pop ecx
pop ecx
jae 0x40d3ef
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40d419
mov bl, 1
push 0
push 1
lea esi, [ebp - 0x20]
call fcn.00401449
mov ecx, dword [ebp - 4]
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.004327bb
leave
ret
xor bl, bl
jmp 0x40d3fd

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x44f4e8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
lea esi, [ebp - 0x20]
call fcn.00401a9d
mov eax, esi
push 0x24
push eax
call fcn.0040d084
cmp dword [ebp - 8], 8
mov eax, dword [ebp - 0x1c]
pop ecx
pop ecx
jae 0x40d452
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40d480
test al, 0x10
jne 0x40d480
mov bl, 1
push 0
push 1
lea esi, [ebp - 0x20]
call fcn.00401449
mov ecx, dword [ebp - 4]
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.004327bb
leave
ret
xor bl, bl
jmp 0x40d464

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x44f4e8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
lea esi, [ebp - 0x20]
call fcn.00401a9d
mov eax, esi
push 0x24
push eax
call fcn.0040d084
cmp dword [ebp - 8], 8
mov eax, dword [ebp - 0x1c]
pop ecx
pop ecx
jae 0x40d4b9
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40d4e7
test al, 0x10
je 0x40d4e7
mov bl, 1
push 0
push 1
lea esi, [ebp - 0x20]
call fcn.00401449
mov ecx, dword [ebp - 4]
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.004327bb
leave
ret
xor bl, bl
jmp 0x40d4cb

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

Disassembly:
cmp dword [edi + 0x18], 8
push esi
lea esi, [edi + 4]
jb 0x40d4f9
mov eax, dword [esi]
jmp 0x40d4fb
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40d516
and eax, 0xfffffffe
push 0
push eax
mov eax, edi
call fcn.0040db7b
pop ecx
pop ecx
cmp dword [edi + 0x18], 8
jb 0x40d51e
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 0x40d52d
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 [0x44f4e8]
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.00401a9d
mov eax, esi
push 0x10
push eax
call fcn.0040d084
pop ecx
pop ecx
lea eax, [esp + 0x58]
call fcn.0040d282
lea esi, [esp + 0x1c]
call fcn.0040eaa3
lea eax, [esp + 0x3c]
push 0x443df4
push eax
lea eax, [esp + 0x28]
call fcn.00401fab
pop ecx
pop ecx
mov ecx, esi
push ecx
lea edx, [esp + 0x5c]
mov ecx, eax
call fcn.0040d9fc
push ebx
push 1
lea esi, [esp + 0x44]
mov byte [esp + 0x23], al
call fcn.00401449
cmp byte [esp + 0x1b], bl
je 0x40d6ab
lea esi, [esp + 0x58]
call fcn.0040d36f
test al, al
jne 0x40d695
mov eax, esi
call fcn.0040d35c
test al, al
mov eax, esi
je 0x40d5f8
call fcn.0040d358
push eax
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x28]
call fcn.00401fdd
push eax
call fcn.0040d52d
add esp, 0xc
jmp 0x40d61b
call fcn.0040d358
push eax
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x28]
call fcn.00401fdd
pop ecx
pop ecx
lea edi, [esp + 0x3c]
call fcn.0040d4eb
movzx eax, al
cdq
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], eax
jmp 0x40d689
lea esi, [esp + 0x58]
call fcn.0040d36f
test al, al
jne 0x40d695
mov eax, esi
call fcn.0040d35c
test al, al
mov eax, esi
je 0x40d65e
call fcn.0040d358
push eax
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x28]
call fcn.00401fdd
push eax
call fcn.0040d52d
add esp, 0xc
jmp 0x40d681
call fcn.0040d358
push eax
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x28]
call fcn.00401fdd
pop ecx
pop ecx
lea edi, [esp + 0x3c]
call fcn.0040d4eb
movzx eax, al
cdq
add dword [esp + 0x10], eax
adc dword [esp + 0x14], edx
push ebx
push 1
lea esi, [esp + 0x44]
call fcn.00401449
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x5c]
call fcn.0040da69
test al, al
jne 0x40d625
lea eax, [esp + 0x1c]
call fcn.0040daba
lea eax, [esp + 0x20]
push 0x20
push eax
call fcn.0040d084
cmp dword [esp + 0x40], 8
mov eax, dword [esp + 0x2c]
pop ecx
pop ecx
jae 0x40d6d1
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40d6ed
and eax, 0xfffffffe
push ebx
push eax
lea eax, [esp + 0x28]
call fcn.0040db7b
pop ecx
pop ecx
cmp dword [esp + 0x38], 8
mov eax, dword [esp + 0x24]
jae 0x40d6fc
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x40d710
add dword [esp + 0x10], 1
adc dword [esp + 0x14], ebx
lea edi, [esp + 0x1c]
call fcn.0040d9e4
lea eax, [esp + 0x58]
call fcn.0040d2b0
push ebx
push 1
lea esi, [esp + 0x28]
call fcn.00401449
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.004327bb
mov esp, ebp
pop ebp
ret
Function at 0x40db86
Capabilities:
Move file

Disassembly:
jmp 0x40f4b7
cmp dword [eax + 0x18], 8
jb 0x40f4c2
mov eax, dword [eax + 4]
jmp 0x40f4c5
add eax, 4
cmp dword [ecx + 0x18], 8
jb 0x40f4d0
mov ecx, dword [ecx + 4]
jmp 0x40f4d3
add ecx, 4
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
setne al
ret

Function at 0x40db8b
Capabilities:
Create directory

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

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x44f4e8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 0x4446fc
mov esi, ecx
call fcn.0043268a
pop ecx
push eax
mov eax, esi
call fcn.0040de75
cmp eax, 0xffffffff
jne 0x40dbf1
cmp dword [esi + 0x18], 8
jb 0x40dbdb
mov esi, dword [esi + 4]
jmp 0x40dbde
add esi, 4
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov al, cl
jmp 0x40dc0e
lea eax, [ebp - 0x50]
call fcn.0040d282
push eax
push esi
call fcn.0040dac4
pop ecx
mov bl, al
pop ecx
lea eax, [ebp - 0x50]
call fcn.0040d2b0
mov al, bl
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004327bb
leave
ret

Function at 0x40e6b1
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, 0x100000
cmp dword [ebp + 0xc], eax
push ebx
push esi
jbe 0x40e6c6
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 0x40e794
cmp eax, ebx
je 0x40e794
jmp 0x40e701
xor ebx, ebx
mov ecx, dword [ebp + 0xc]
cmp dword [ebp - 4], ecx
jae 0x40e794
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.0040fbbd
test al, al
jne 0x40e72f
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.0040e567
sub esp, 0x1c
mov esi, esp
call fcn.00401a9d
mov ecx, dword [edi + 0x20]
call dword [ebx]
test eax, eax
jne 0x40e794
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 0x40e6ff
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 4]
pop esi
mov dword [ecx], edx
pop ebx
leave
ret 0xc
Function at 0x40f3c1
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x44f4e8]
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.00432b60
add esp, 0xc
push 0x105
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
dec eax
cmp eax, 0x103
ja 0x40f423
and word [ebp - 6], 0
lea eax, [ebp - 0x210]
call fcn.0040132f
mov al, 1
jmp 0x40f425
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004327bb
leave
ret

Function at 0x40f486
Capabilities:
Set file attributes

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

Function at 0x40f503
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 0x40f51b
mov eax, dword [edi]
jmp 0x40f51d
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x40f52f
mov al, 1
jmp 0x40f5cb
cmp dword [esi + 0x18], 8
jb 0x40f539
mov eax, dword [edi]
jmp 0x40f53b
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x40f5c9
cmp dword [esi + 0x18], 8
jb 0x40f554
mov eax, dword [edi]
jmp 0x40f556
mov eax, edi
push ebx
lea ecx, [ebp - 0x20]
call fcn.00401183
push 0
lea eax, [ebp - 0x20]
call fcn.0040f486
pop ecx
mov bl, al
neg bl
push 0
sbb bl, bl
push 1
lea esi, [ebp - 0x20]
inc bl
call fcn.00401449
test bl, bl
pop ebx
jne 0x40f5c9
mov esi, dword [ebp + 8]
cmp dword [esi + 0x18], 8
jb 0x40f590
mov eax, dword [edi]
jmp 0x40f592
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x40f528
cmp dword [esi + 0x18], 8
jb 0x40f5a7
mov eax, dword [edi]
jmp 0x40f5a9
mov eax, edi
lea ecx, [ebp - 0x20]
call fcn.00401183
push dword [ebp - 4]
lea eax, [ebp - 0x20]
call fcn.0040f486
pop ecx
push 0
push 1
lea esi, [ebp - 0x20]
call fcn.00401449
xor al, al
pop edi
pop esi
leave
ret
Function at 0x40f5e9
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x624
mov eax, dword [0x44f4e8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
cmp dword [0x45093c], ebx
push esi
mov esi, ecx
je 0x40f61e
push 0xffffffffffffffff
push esi
mov eax, 0x450928
call fcn.004016e0
mov al, 1
jmp 0x40f6ba
push 0x20a
lea eax, [ebp - 0x20e]
push ebx
push eax
mov word [ebp - 0x210], bx
call fcn.00432b60
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0x103
ja 0x40f6b8
push edi
push 0x410
lea eax, [ebp - 0x622]
push ebx
push eax
mov word [ebp - 6], bx
mov word [ebp - 0x624], bx
call fcn.00432b60
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 0x40f6a8
cmp eax, ebx
je 0x40f6a8
mov word [ebp + eax*2 - 0x624], bx
lea eax, [ebp - 0x624]
jmp 0x40f6ae
lea eax, [ebp - 0x210]
call fcn.0040132f
jmp 0x40f617
xor al, al
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004327bb
leave
ret

Function at 0x40f6c8
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x194]
sub esp, 0x214
mov eax, dword [0x44f4e8]
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.00432b60
add esp, 0xc
cmp dword [edi + 0x18], 8
jb 0x40f716
mov edi, dword [edi + 4]
jmp 0x40f719
add edi, 4
cmp dword [ebx + 0x18], 8
jb 0x40f724
mov ebx, dword [ebx + 4]
jmp 0x40f727
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 0x40f74e
mov word [ebp + 0x18e], si
mov esi, dword [ebp - 0x80]
lea eax, [ebp - 0x7c]
call fcn.0040132f
mov al, 1
jmp 0x40f750
xor al, al
mov ecx, dword [ebp + 0x190]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004327bb
add ebp, 0x194
leave
ret

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

Disassembly:
cmp dword [eax + 0x18], 8
jb 0x40f849
mov eax, dword [eax + 4]
jmp 0x40f84c
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 0x40f9dd
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
xor ecx, ecx
push esi
push 8
mov eax, ecx
pop edx
mov esi, eax
and esi, 1
dec esi
not esi
and esi, 0xedb88320
shr eax, 1
xor eax, esi
dec edx
jne 0x40f9e5
mov dword [ecx*4 + 0x4573e0], eax
inc ecx
cmp ecx, 0x100
jb 0x40f9e0
mov edx, 0x800
jmp 0x40fa32
mov eax, dword [ecx*4 + 0x456fe0]
mov esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x4573e0]
inc ecx
mov dword [ecx*4 + 0x4573dc], eax
cmp ecx, edx
jb 0x40fa11
mov dword [0x453bd4], 0x440e70
call fcn.0040fdfc
test eax, eax
pop esi
jne 0x40fa54
mov dword [0x453bd4], 0x440d90
ret
Function at 0x40fbbd
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 0x40fbea
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x40fbea
xor al, al
jmp 0x40fc05
push 1
push 0
push 0
push dword [ebp - 4]
call fcn.0043d380
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