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

Disassembly:
push 0x48
mov eax, 0x4ad977
call fcn.00473d21
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x4c], ecx
mov ecx, dword [ebp + 0x10]
add eax, 4
mov dword [ebp - 0x54], ecx
cmp dword [eax + 0x14], 8
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0x50], ecx
jb 0x44c8be
mov eax, dword [eax]
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x44c8ec
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + 0x44], eax
jmp 0x44c9ac
push 0x400
call fcn.004521fb
mov edi, eax
xor eax, eax
pop ecx
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x48], eax
push eax
jmp 0x44c983
mov eax, dword [ebp - 0x44]
test eax, eax
je 0x44c99c
cmp byte [ebx + 0x3d], 0
je 0x44c94e
cmp byte [ebx + 0x3c], 0
je 0x44c94e
mov ecx, dword [ebp - 0x4c]
lea eax, [ebp - 0x40]
push eax
call fcn.004326b2
and dword [ebp - 4], 0
mov ecx, eax
call fcn.0044970c
push eax
push dword [ebp - 0x44]
push edi
call fcn.0040fa37
add esp, 0xc
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00401b80
mov eax, dword [ebp - 0x44]
push 0
lea ecx, [ebp - 0x44]
push ecx
push eax
push edi
push dword [ebp - 0x54]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x50]
add dword [ebp - 0x48], eax
test ecx, ecx
je 0x44c97d
mov edx, dword [ebp - 0x4c]
mov eax, dword [ecx]
push dword [edx + 0x38]
mov edx, dword [ebp - 0x48]
push edx
call dword [eax]
mov eax, dword [ebp - 0x44]
test eax, eax
je 0x44c99c
push 0
lea eax, [ebp - 0x44]
push eax
push 0x400
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x44c904
push edi
call fcn.00472d16
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
call fcn.00473cd0
ret 0x10
Function at 0x44ce39
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push 0x58
mov eax, 0x4ada70
call fcn.00473d21
mov edi, ecx
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
and dword [ebp - 0x54], 0
mov ebx, dword [edx + 0x38]
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x58], eax
mov eax, dword [edx + 0x30]
shr eax, 2
and eax, 0xffffff01
test byte [edx + 0x30], 6
mov dword [ebp - 0x64], edx
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x60], eax
mov byte [ebp - 0x41], 0
je 0x44ce82
mov byte [ebp - 0x41], 1
lea eax, [ecx + 4]
cmp dword [eax + 0x14], 8
jb 0x44ce8d
mov eax, dword [eax]
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x44cebd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 0x44], eax
xor eax, eax
jmp 0x44cf93
mov eax, 0x400
mov edi, eax
cmp ebx, eax
cmovb edi, ebx
push edi
call fcn.004521fb
pop ecx
push 0
lea ecx, [ebp - 0x48]
push ecx
push edi
mov dword [ebp - 0x4c], eax
push eax
jmp 0x44cf6f
cmp byte [ebp - 0x60], 0
je 0x44cf1e
cmp byte [ebp - 0x41], 0
je 0x44cf1e
mov ecx, dword [ebp - 0x64]
lea eax, [ebp - 0x40]
push eax
call fcn.004326b2
and dword [ebp - 4], 0
mov ecx, eax
call fcn.0044970c
push eax
push dword [ebp - 0x48]
push dword [ebp - 0x4c]
call fcn.0040f888
add esp, 0xc
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00401b80
push 0
lea eax, [ebp - 0x48]
push eax
push dword [ebp - 0x48]
push dword [ebp - 0x4c]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 0x54]
mov eax, dword [ebp - 0x48]
mov edx, dword [ebp - 0x58]
add ecx, eax
mov dword [ebp - 0x54], ecx
test edx, edx
je 0x44cf54
push dword [ebp - 0x5c]
mov eax, dword [edx]
push ecx
mov ecx, edx
call dword [eax]
test al, al
jne 0x44cf9b
mov eax, dword [ebp - 0x48]
sub ebx, eax
je 0x44cf80
test eax, eax
je 0x44cf80
push 0
cmp ebx, 0x400
lea eax, [ebp - 0x48]
push eax
cmovb edi, ebx
push edi
push dword [ebp - 0x4c]
push dword [ebp - 0x50]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x44cee0
xor edi, edi
inc edi
push esi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
call fcn.00473cd0
ret 0x10
xor edi, edi
jmp 0x44cf83
Function at 0x44d142
Capabilities:
Get system information on windows
Read file via mapping

Disassembly:
push 0x4c
mov eax, 0x4adad2
call fcn.00473cee
xor esi, esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], esi
mov ebx, dword [ebp + 0x10]
mov edi, dword [ebx + 0xa8]
mov dword [ebp + 0x10], edi
test edi, edi
je 0x44d284
push 0x1c
pop eax
push eax
lea eax, [ebp - 0x34]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
mov ecx, esi
cmovne ecx, dword [ebp - 0x28]
push ebx
push str..debug
mov dword [ebp - 0x18], ecx
call fcn.0044d3ee
pop ecx
pop ecx
test eax, eax
je 0x44d1b5
cmp dword [eax + 0xc], edi
jne 0x44d1b5
mov ecx, dword [eax + 0x14]
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebx + 0xac]
mov dword [ebp + 0x10], ecx
add edi, ecx
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x14], ebx
jmp 0x44d217
push ebx
push str..rdata
call fcn.0044d3ee
mov edi, eax
pop ecx
pop ecx
test edi, edi
jne 0x44d1df
push ebx
push str..text
call fcn.0044d3ee
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x44d284
mov eax, dword [ebx + 0xac]
push 0x1c
xor edx, edx
pop ecx
mov dword [ebp - 0x14], eax
div ecx
mov ebx, eax
test ebx, ebx
je 0x44d284
mov ecx, dword [edi + 0x10]
add ecx, dword [edi + 0xc]
mov edx, dword [ebp + 0x10]
cmp edx, ecx
ja 0x44d284
sub edx, dword [edi + 0xc]
mov eax, dword [edi + 0x14]
mov ecx, dword [ebp + 0xc]
add eax, edx
mov dword [ebp + 0x10], eax
lea edi, [eax + ecx]
mov eax, edi
sub eax, ecx
cmp eax, dword [ebp - 0x18]
jbe 0x44d269
cmp dword [ebp + 8], 0
je 0x44d269
lea eax, [ebp - 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp + 0x10]
xor edx, edx
div dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x14]
imul eax, dword [ebp - 0x3c]
add ecx, edx
push ecx
push eax
push esi
push 4
push dword [ebp + 8]
mov dword [ebp - 0x18], eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
test edi, edi
je 0x44d284
lea ecx, [ebp - 0x10]
call fcn.0044e3dc
mov dword [ebp - 0x10], edi
sub edi, dword [ebp - 0x18]
add edi, dword [ebp + 0x10]
test ebx, ebx
je 0x44d284
add edi, 0x10
mov eax, dword [edi + 8]
add eax, dword [edi]
cmp eax, dword [ebp + 0x14]
jbe 0x44d27c
add esi, dword [edi]
push 0x1c
pop eax
add edi, eax
dec ebx
jne 0x44d270
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0044e3dc
mov eax, esi
call fcn.00473cbc
ret
Function at 0x44d540
Capabilities:
Read file on windows

Disassembly:
push 0x1a8
mov eax, 0x4adba2
call fcn.00473d21
mov edi, ecx
mov ebx, dword [ebp + 8]
xor esi, esi
cmp dword [edi + 0x50], 2
mov dword [ebp - 0x1b4], ebx
jae 0x44d63a
push 0x138
lea eax, [ebp - 0x1a8]
push esi
push eax
call fcn.00474cd0
add esp, 0xc
lea eax, [ebp - 0x1b0]
push esi
push eax
push 0x138
lea eax, [ebp - 0x1a8]
push eax
push ebx
mov dword [ebp - 0x1b0], esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x44d5ab
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x44d73e
cmp dword [ebp - 0x1b0], 0x138
je 0x44d5c1
mov eax, 0x103
jmp 0x44d73e
push 1
lea eax, [ebp - 0x1a9]
push eax
lea eax, [ebp - 0x1a8]
push eax
lea ecx, [ebp - 0x40]
call fcn.00411380
mov dword [ebp - 4], esi
lea eax, [ebp - 0x40]
push eax
mov ecx, edi
call fcn.00411b2a
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00401b80
mov eax, dword [ebp - 0xa4]
mov dword [edi + 0x30], eax
mov ax, word [ebp - 0xa0]
mov word [edi + 0x34], ax
mov eax, dword [ebp - 0x9c]
mov dword [edi + 0x38], eax
mov eax, dword [ebp - 0x98]
mov dword [edi + 0x3c], eax
mov eax, dword [ebp - 0x94]
mov dword [edi + 0x40], eax
mov ax, word [ebp - 0x90]
mov word [edi + 0x44], ax
mov eax, dword [ebp + 0xc]
add eax, 0x138
jmp 0x44d739
push 0x18
lea eax, [ebp - 0x28]
push esi
push eax
call fcn.00474cd0
add esp, 0xc
lea eax, [ebp - 0x1b0]
push esi
push eax
push 0x18
lea eax, [ebp - 0x28]
push eax
push ebx
mov dword [ebp - 0x1b0], esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x44d5a0
cmp dword [ebp - 0x1b0], 0x18
jne 0x44d5b7
mov eax, dword [ebp - 0x24]
push dword [ebp - 0x28]
mov dword [edi + 0x30], eax
mov ax, word [ebp - 0x20]
mov word [edi + 0x34], ax
mov eax, dword [ebp - 0x1e]
mov dword [edi + 0x38], eax
mov eax, dword [ebp - 0x1a]
mov dword [edi + 0x3c], eax
mov eax, dword [ebp - 0x16]
mov dword [edi + 0x40], eax
mov ax, word [ebp - 0x12]
mov word [edi + 0x44], ax
call fcn.004521fb
push dword [ebp - 0x28]
mov ebx, eax
push esi
push ebx
call fcn.00474cd0
add esp, 0x10
lea eax, [ebp - 0x1b0]
push esi
push eax
push dword [ebp - 0x28]
push ebx
push dword [ebp - 0x1b4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x44d6de
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x44d6ee
mov eax, dword [ebp - 0x28]
cmp dword [ebp - 0x1b0], eax
je 0x44d6f9
mov esi, 0x103
push ebx
call fcn.00472d16
pop ecx
mov eax, esi
jmp 0x44d73e
push 1
lea ecx, [ebp - 0x1a9]
push ecx
shr eax, 1
push eax
push ebx
lea ecx, [ebp - 0x70]
call fcn.004114e0
mov dword [ebp - 4], 2
push eax
mov ecx, edi
call fcn.00411b2a
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x70]
call fcn.00401b80
push ebx
call fcn.00472d16
mov eax, dword [ebp - 0x28]
add eax, 0x18
add eax, dword [ebp + 0xc]
pop ecx
mov dword [edi + 0x48], eax
xor eax, eax
call fcn.00473cd0
ret 8
Function at 0x44d74a
Capabilities:
Get system information on windows
Parse pe header
Read file via mapping

Disassembly:
push 0x3c
mov eax, 0x4adbe2
call fcn.00473cee
xor ebx, ebx
mov edi, ebx
mov dword [ebp - 0x18], edi
mov dword [ebp - 4], ebx
mov dword [ebp - 0x14], ebx
mov byte [ebp - 4], 1
mov dword [ebp - 0x10], ebx
mov byte [ebp - 4], 2
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocStringLen
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
test esi, esi
je 0x44d7a3
lea ecx, [ebp - 0x18]
call fcn.00404bf0
mov edi, esi
mov dword [ebp - 0x18], edi
cmp esi, 0xffffffff
je 0x44d8c5
push ebx
push ebx
push ebx
push 2
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ebx, eax
mov dword [ebp - 0x1c], ebx
test ebx, ebx
je 0x44d8c5
lea ecx, [ebp - 0x14]
call fcn.00404bf0
lea eax, [ebp - 0x48]
push eax
mov dword [ebp - 0x14], ebx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x44]
push eax
push 0
push 0
push 4
push ebx
mov dword [ebp - 0x20], eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
test esi, esi
je 0x44d8c5
lea ecx, [ebp - 0x10]
call fcn.0044e410
mov eax, 0x5a4d
mov dword [ebp - 0x10], esi
cmp word [esi], ax
jne 0x44d88b
mov ebx, dword [esi + 0x3c]
push 0xf8
add ebx, esi
push ebx
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x44d884
cmp dword [ebx], 0x4550
jne 0x44d884
mov eax, dword [ebx + 0x54]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x20], eax
jae 0x44d88e
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [ebp - 0x24]
push 0
push 0
push 4
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebx, eax
cmp esi, ebx
je 0x44d85d
lea ecx, [ebp - 0x10]
call fcn.0044e410
mov esi, ebx
mov dword [ebp - 0x10], esi
mov eax, 0x5a4d
cmp word [esi], ax
jne 0x44d884
mov ebx, dword [esi + 0x3c]
push 0xf8
add ebx, esi
push ebx
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x44d884
cmp dword [ebx], 0x4550
je 0x44d88e
mov esi, 0xc1
jmp 0x44d8cd
mov ebx, dword [ebp - 0x24]
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x44d89b
and dword [ebp - 0x10], 0
mov dword [eax], esi
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x44d8a8
and dword [ebp - 0x18], 0
mov dword [eax], edi
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x44d8b8
mov ecx, dword [ebp - 0x1c]
and dword [ebp - 0x14], 0
mov dword [eax], ecx
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x44d8c1
mov dword [eax], ebx
xor esi, esi
jmp 0x44d8cd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x10]
call fcn.0044e410
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.00404bf0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00404bf0
mov eax, esi
call fcn.00473cbc
ret
Function at 0x44df6e
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, ecx
cmp dword [edi + 0x50], 2
jae 0x44dfe8
mov ebx, 0x138
push ebx
mov dword [ebp - 4], ebx
call fcn.00474bb7
push ebx
xor ebx, ebx
mov esi, eax
push ebx
push esi
call fcn.00474cd0
add esp, 0x10
mov ecx, edi
call fcn.0044970c
push eax
push esi
call fcn.00477380
mov eax, dword [edi + 0x30]
mov dword [esi + 0x104], eax
mov eax, dword [edi + 0x3c]
mov dword [esi + 0x110], eax
mov eax, dword [edi + 0x38]
mov dword [esi + 0x10c], eax
mov eax, dword [edi + 0x40]
mov dword [esi + 0x114], eax
mov ax, word [edi + 0x44]
mov word [esi + 0x118], ax
mov ax, word [edi + 0x34]
pop ecx
pop ecx
mov word [esi + 0x108], ax
jmp 0x44e052
mov eax, dword [edi + 0x14]
add eax, eax
mov dword [ebp - 8], eax
add eax, 0x18
push eax
mov dword [ebp - 4], eax
call fcn.004521fb
push 0x18
xor ebx, ebx
mov esi, eax
push ebx
push esi
call fcn.00474cd0
mov eax, dword [edi + 0x30]
mov ecx, dword [ebp - 8]
mov dword [esi + 4], eax
mov eax, dword [edi + 0x3c]
mov dword [esi + 0xe], eax
mov dword [esi], ecx
mov eax, dword [edi + 0x38]
mov dword [esi + 0xa], eax
mov eax, dword [edi + 0x40]
mov dword [esi + 0x12], eax
mov ax, word [edi + 0x44]
mov word [esi + 0x16], ax
mov ax, word [edi + 0x34]
add edi, 4
add esp, 0x10
mov word [esi + 8], ax
cmp dword [edi + 0x14], 8
jb 0x44e044
mov edi, dword [edi]
push ecx
lea eax, [esi + 0x18]
push edi
push eax
call fcn.00472fa0
add esp, 0xc
push ebx
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 4]
mov dword [ebp - 0xc], ebx
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x44e073
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push esi
call fcn.00472d16
pop ecx
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 4
Function at 0x44e7c5
Capabilities:
Delete file
Get common file path

Disassembly:
push 0x70c
mov eax, 0x4add5e
call fcn.00473d21
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x714], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x718], eax
xor eax, eax
mov esi, 0x206
push esi
mov word [ebp - 0x628], ax
xor ebx, ebx
lea eax, [ebp - 0x626]
push ebx
push eax
call fcn.00474cd0
add esp, 0xc
lea eax, [ebp - 0x628]
push 0x104
push eax
push dword [0x4f1f10]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x628]
push eax
lea ecx, [ebp - 0x70c]
call fcn.0044c27a
mov dword [ebp - 4], ebx
xor eax, eax
push esi
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push ebx
push eax
call fcn.00474cd0
cmp dword [0x4f1e08], 8
mov esi, 0x4f1df4
mov eax, esi
cmovae eax, dword [0x4f1df4]
push eax
lea eax, [ebp - 0x70c]
push eax
call fcn.0044f61b
add esp, 0x14
test eax, eax
je 0x44e92d
xor eax, eax
push 0x206
mov word [ebp - 0x420], ax
xor esi, esi
lea eax, [ebp - 0x41e]
push esi
push eax
inc ebx
call fcn.00474cd0
add esp, 0xc
lea eax, [ebp - 0x420]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x218]
push eax
push esi
push 0x4bb52c
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
push ebx
lea eax, [ebp - 0x70d]
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x678]
call fcn.00411496
mov byte [ebp - 4], bl
lea eax, [ebp - 0x6a8]
push eax
mov ecx, 0x4f1df0
call fcn.0041ccc6
mov byte [ebp - 4], 2
push esi
lea ecx, [ebp - 0x678]
push ecx
push eax
lea ecx, [ebp - 0x70c]
call fcn.0044cf9f
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x6a8]
call fcn.00401b80
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x678]
call fcn.00401b80
jmp 0x44e981
cmp word [0x4f1570], 0
je 0x44e94b
push 0x4f1570
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
jmp 0x44e981
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x628]
push eax
call fcn.0044f6af
cmp dword [0x4f1e08], 8
lea eax, [ebp - 0x218]
cmovae esi, dword [0x4f1df4]
push esi
push eax
push eax
call fcn.0044f2d3
lea ecx, [ebp - 0x648]
call fcn.00410e1a
mov byte [ebp - 4], 6
cmp word [ebp - 0x218], 0
jne 0x44e99e
xor eax, eax
jmp 0x44e9ab
lea eax, [ebp - 0x218]
push eax
call fcn.00473c34
pop ecx
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x640]
call fcn.00414bbb
lea ecx, [ebp - 0x648]
call fcn.00414e5c
lea ecx, [ebp - 0x648]
call fcn.00412e33
push dword [ebp + 0x14]
lea ecx, [ebp - 0x648]
push dword [ebp - 0x718]
push 0x4cb558
push dword [ebp - 0x714]
push edi
call fcn.0041271a
test bl, bl
je 0x44ea05
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x648]
call fcn.004117c1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x70c]
call fcn.0044c5ca
call fcn.00473cd0
ret
Function at 0x44f409
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push edi
push dword [ebp + 8]
mov dword [ebp - 4], 1
call esi
push 2
pop edx
xor ecx, ecx
add eax, edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004521fb
pop ecx
push dword [ebp + 8]
mov ebx, eax
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0x4b6f58
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push ebx
mov edi, ebx
call esi
xor esi, esi
mov dword [ebp + 8], eax
test eax, eax
je 0x44f49c
push 0x5c
pop ecx
cmp word [edi], cx
jne 0x44f48e
xor eax, eax
push eax
push ebx
mov word [edi], ax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x44f485
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x44f498
mov eax, dword [ebp + 8]
push 0x5c
pop ecx
mov word [edi], cx
add edi, 2
inc esi
cmp esi, eax
jb 0x44f462
jmp 0x44f49c
and dword [ebp - 4], 0
push ebx
call fcn.00473c4d
mov eax, dword [ebp - 4]
pop ecx
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x44f4ef
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
mov eax, dword [0x4ed0f0]
xor eax, ebp
mov dword [ebp - 4], eax
push dword [0x4ec790]
mov eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0x804]
push eax
call fcn.0044f2d3
xor eax, eax
push eax
push 0x80
push 2
push eax
push eax
push 0xc0000000
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x44f53f
xor eax, eax
jmp 0x44f556
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00473c52
leave
ret

Function at 0x44f562
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x4ed0f0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
xor eax, eax
push 0x206
mov word [ebp - 0x20c], ax
xor edi, edi
lea eax, [ebp - 0x20a]
push edi
push eax
call fcn.00474cd0
add esp, 0xc
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.00450a5a
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x44f5d6
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 2
je 0x44f5cf
cmp eax, 5
jne 0x44f5d2
xor edi, edi
inc edi
mov eax, edi
jmp 0x44f5d8
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00473c52
leave
ret 4
Function at 0x44f94e
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x4ed0f0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
cmp dword [0x4f281c], esi
jne 0x44f974
mov eax, dword [0x4ec794]
cmp eax, 0xffffffff
jne 0x44f9c6
push 0x14
lea eax, [ebp - 0x2c]
push eax
push 0x1004
push esi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jle 0x44f9c1
lea eax, [ebp - 0x2c]
push eax
call fcn.00475cea
pop ecx
push 2
lea ecx, [ebp - 0x4c]
push ecx
push eax
call dword [sym.imp.GDI32.dll_TranslateCharsetInfo]
test eax, eax
je 0x44f9b0
movsx eax, word [ebp - 0x4c]
mov dword [0x4ec794], eax
jmp 0x44f9c6
push 1
push esi
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x44f9c1
xor eax, eax
jmp 0x44f9c6
mov eax, dword [0x4ec794]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00473c52
leave
ret
Function at 0x44ff7a
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x250
mov eax, dword [0x4ed0f0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
and dword [ebp - 0x24c], 0
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
push edi
mov edi, dword [ebp + 0x10]
push 0x4cb558
push eax
mov dword [ebp - 0x23c], eax
mov dword [ebp - 0x248], edi
call esi
push 0x4cb558
push edi
call esi
lea eax, [ebp - 0x24c]
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
test edi, edi
je 0x450159
push edi
call fcn.00476d76
push edi
mov esi, eax
push 0
push esi
mov dword [ebp - 0x250], esi
call fcn.00474cd0
add esp, 0x10
push esi
push edi
xor edi, edi
push edi
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x450152
push 0x34
lea eax, [ebp - 0x238]
push edi
push eax
mov dword [ebp - 0x240], eax
call fcn.00474cd0
add esp, 0xc
lea eax, [ebp - 0x244]
push eax
lea eax, [ebp - 0x240]
push eax
push 0x4b6f58
push esi
mov dword [ebp - 0x244], edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x450071
mov eax, dword [ebp - 0x240]
mov ecx, dword [eax + 0xc]
mov edx, dword [eax + 8]
movzx eax, cx
push eax
movzx eax, dx
shr ecx, 0x10
push ecx
push eax
shr edx, 0x10
push edx
push str._u._u._u._u
push dword [ebp - 0x23c]
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x18
push 0x34
push edi
push dword [ebp - 0x240]
mov dword [ebp - 0x244], edi
call fcn.00474cd0
add esp, 0xc
lea eax, [ebp - 0x244]
push eax
lea eax, [ebp - 0x240]
push eax
push str.VarFileInfoTranslation
push esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x450152
mov ebx, dword [ebp - 0x244]
xor eax, eax
push 0x1fe
mov word [ebp - 0x204], ax
lea eax, [ebp - 0x202]
push edi
push eax
shr ebx, 2
call fcn.00474cd0
mov eax, dword [ebp - 0x240]
add esp, 0xc
test ebx, ebx
jle 0x450152
mov esi, eax
and dword [ebp - 0x23c], 0
test edi, edi
jle 0x4500ea
add esi, 4
push 4
lea eax, [ebp - 0x23c]
push esi
push eax
call fcn.00472fa0
movzx eax, word [ebp - 0x23c]
add esp, 0xc
push eax
lea eax, [ebp - 0x204]
test edi, edi
jne 0x45011f
push 0x4b9948
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
jmp 0x450134
push dword [ebp - 0x248]
push str._s__u
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x204]
push eax
push dword [ebp - 0x248]
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
inc edi
cmp edi, ebx
jl 0x4500dc
mov esi, dword [ebp - 0x250]
push esi
call fcn.00476d01
pop ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00473c52
leave
ret