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

Disassembly:
push 0x44
mov eax, 0x46ece2
call fcn.00442722
mov ebx, ecx
mov edi, dword [ebp + 8]
push 1
lea eax, [ebp - 0x41]
push eax
lea ecx, [ebx + 4]
mov dword [ebp - 0x50], ebx
mov dword [ebx], vtable.STREAM.0
call fcn.00402580
xor eax, eax
mov dword [ebp - 4], eax
or dword [ebx + 0x48], 0xffffffff
lea ecx, [ebx + 0x54]
mov dword [ebx + 0x34], eax
mov dword [ebx + 0x38], eax
mov word [ebx + 0x3c], 0x101
mov byte [ebx + 0x3e], 1
mov dword [ebx + 0x44], eax
mov dword [ebx + 0x4c], 0x2e
mov dword [ebx + 0x50], 0x138
call fcn.0043d454
mov byte [ebp - 4], 1
and dword [ebx + 0x5c], 0
mov eax, 0x483e18
test edi, edi
cmovne eax, edi
push eax
lea ecx, [ebx + 4]
mov byte [ebx + 0x60], 0
call fcn.00403640
lea esi, [ebx + 8]
cmp dword [esi + 0x14], 8
jb 0x43d559
mov eax, dword [esi]
jmp 0x43d55b
mov eax, esi
push 1
push eax
call fcn.0043df15
pop ecx
mov dword [ebx + 0x40], eax
cmp dword [esi + 0x14], 8
pop ecx
jb 0x43d572
mov eax, dword [esi]
jmp 0x43d574
mov eax, esi
xor edi, edi
push edi
push 0x80
push 3
push edi
push 3
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebx + 0x34], eax
cmp eax, 0xffffffff
jne 0x43d5a3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + 0x44], eax
jmp 0x43d6dd
push 0x2e
lea eax, [ebp - 0x40]
push edi
push eax
mov dword [ebx + 0x38], 1
call fcn.004416e0
add esp, 0xc
mov ecx, ebx
push 0
push 0
push dword [ebx + 0x40]
push dword [ebx + 0x34]
call fcn.0043e5ee
test eax, eax
je 0x43d6dd
push 0
lea eax, [ebp - 0x48]
push eax
push 0x2e
pop edi
push edi
lea eax, [ebp - 0x40]
push eax
push dword [ebx + 0x34]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x4c], eax
test eax, eax
je 0x43d6cc
cmp dword [ebp - 0x48], 0
je 0x43d6cc
lea eax, [ebp - 0x40]
push eax
mov ecx, ebx
call fcn.0043d8bc
test eax, eax
je 0x43d616
mov di, word [ebp - 0x32]
test di, di
jne 0x43d68e
cmp dword [esi + 0x14], 8
jb 0x43d61e
mov esi, dword [esi]
push 0
push esi
call fcn.0043df15
pop ecx
pop ecx
cmp eax, dword [ebx + 0x40]
jbe 0x43d630
mov dword [ebx + 0x40], eax
push 0
push 0
push dword [ebx + 0x40]
mov ecx, ebx
push dword [ebx + 0x34]
call fcn.0043e5ee
test eax, eax
je 0x43d6dd
push 0
lea eax, [ebp - 0x4c]
push eax
push 0x2e
pop esi
push esi
lea eax, [ebp - 0x40]
push eax
push dword [ebx + 0x34]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x4c], eax
test eax, eax
je 0x43d6dd
cmp dword [ebp - 0x48], 0
je 0x43d6dd
lea eax, [ebp - 0x40]
push eax
mov ecx, ebx
call fcn.0043d8bc
mov di, word [ebp - 0x32]
test eax, eax
je 0x43d685
test di, di
jne 0x43d691
mov dword [ebx + 0x5c], 3
jmp 0x43d691
push 0x2e
pop esi
mov eax, dword [ebx + 0x5c]
cmp eax, 1
je 0x43d6aa
add eax, 0xfffffffe
cmp eax, 1
ja 0x43d6b4
mov dword [ebx + 0x50], 0x18
jmp 0x43d6b1
mov dword [ebx + 0x50], 0x138
mov dword [ebx + 0x4c], esi
mov ecx, ebx
call fcn.0043e2ef
test al, al
je 0x43d6dd
movzx eax, di
push eax
mov ecx, ebx
call fcn.0043e012
jmp 0x43d6dd
mov dword [ebx + 0x5c], 3
mov dword [ebx + 0x4c], edi
mov dword [ebx + 0x50], 0x18
or dword [ebp - 4], 0xffffffff
mov eax, ebx
call fcn.004426d1
ret 4
Function at 0x43da1e
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push 0x58
mov eax, 0x46ee4b
call fcn.00442722
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 0x43da67
mov byte [ebp - 0x41], 1
lea eax, [ecx + 4]
cmp dword [eax + 0x14], 8
jb 0x43da72
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 0x43daa2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 0x44], eax
xor eax, eax
jmp 0x43db78
mov eax, 0x400
mov edi, eax
cmp ebx, eax
cmovb edi, ebx
push edi
call fcn.0044135b
pop ecx
push 0
lea ecx, [ebp - 0x48]
push ecx
push edi
mov dword [ebp - 0x4c], eax
push eax
jmp 0x43db54
cmp byte [ebp - 0x60], 0
je 0x43db03
cmp byte [ebp - 0x41], 0
je 0x43db03
mov ecx, dword [ebp - 0x64]
lea eax, [ebp - 0x40]
push eax
call fcn.00425c60
and dword [ebp - 4], 0
mov ecx, eax
call fcn.0040b983
push eax
push dword [ebp - 0x48]
push dword [ebp - 0x4c]
call fcn.0040b77a
add esp, 0xc
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00401580
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 0x43db39
push dword [ebp - 0x5c]
mov eax, dword [edx]
push ecx
mov ecx, edx
call dword [eax]
test al, al
jne 0x43db80
mov eax, dword [ebp - 0x48]
sub ebx, eax
je 0x43db65
test eax, eax
je 0x43db65
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 0x43dac5
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.004426d1
ret 0x10
xor edi, edi
jmp 0x43db68
Function at 0x43dd22
Capabilities:
Get system information on windows
Read file via mapping

Disassembly:
push 0x4c
mov eax, 0x46eead
call fcn.004426ef
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 0x43de64
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.0043df9b
pop ecx
pop ecx
test eax, eax
je 0x43dd95
cmp dword [eax + 0xc], edi
jne 0x43dd95
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 0x43ddf7
push ebx
push str..rdata
call fcn.0043df9b
mov edi, eax
pop ecx
pop ecx
test edi, edi
jne 0x43ddbf
push ebx
push str..text
call fcn.0043df9b
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x43de64
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 0x43de64
mov ecx, dword [edi + 0x10]
add ecx, dword [edi + 0xc]
mov edx, dword [ebp + 0x10]
cmp edx, ecx
ja 0x43de64
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 0x43de49
cmp dword [ebp + 8], 0
je 0x43de49
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 0x43de64
lea ecx, [ebp - 0x10]
call fcn.00418678
mov dword [ebp - 0x10], edi
sub edi, dword [ebp - 0x18]
add edi, dword [ebp + 0x10]
test ebx, ebx
je 0x43de64
add edi, 0x10
mov eax, dword [edi + 8]
add eax, dword [edi]
cmp eax, dword [ebp + 0x14]
jbe 0x43de5c
add esi, dword [edi]
push 0x1c
pop eax
add edi, eax
dec ebx
jne 0x43de50
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00418678
mov eax, esi
call fcn.004426bd
ret
Function at 0x43e0e9
Capabilities:
Read file on windows

Disassembly:
push 0x1a8
mov eax, 0x46ef7d
call fcn.00442722
mov edi, ecx
mov ebx, dword [ebp + 8]
xor esi, esi
cmp dword [edi + 0x50], 2
mov dword [ebp - 0x1b4], ebx
jae 0x43e1e3
push 0x138
lea eax, [ebp - 0x1a8]
push esi
push eax
call fcn.004416e0
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 0x43e154
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x43e2e7
cmp dword [ebp - 0x1b0], 0x138
je 0x43e16a
mov eax, 0x103
jmp 0x43e2e7
push 1
lea eax, [ebp - 0x1a9]
push eax
lea eax, [ebp - 0x1a8]
push eax
lea ecx, [ebp - 0x40]
call fcn.0040c5cb
mov dword [ebp - 4], esi
lea eax, [ebp - 0x40]
push eax
mov ecx, edi
call fcn.0040ca5e
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00401580
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 0x43e2e2
push 0x18
lea eax, [ebp - 0x28]
push esi
push eax
call fcn.004416e0
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 0x43e149
cmp dword [ebp - 0x1b0], 0x18
jne 0x43e160
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.0044135b
push dword [ebp - 0x28]
mov ebx, eax
push esi
push ebx
call fcn.004416e0
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 0x43e287
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x43e297
mov eax, dword [ebp - 0x28]
cmp dword [ebp - 0x1b0], eax
je 0x43e2a2
mov esi, 0x103
push ebx
call fcn.0044144c
pop ecx
mov eax, esi
jmp 0x43e2e7
push 1
lea ecx, [ebp - 0x1a9]
push ecx
shr eax, 1
push eax
push ebx
lea ecx, [ebp - 0x70]
call fcn.0040c72b
mov dword [ebp - 4], 2
push eax
mov ecx, edi
call fcn.0040ca5e
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x70]
call fcn.00401580
push ebx
call fcn.0044144c
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.004426d1
ret 8
Function at 0x43e2f3
Capabilities:
Get system information on windows
Parse pe header
Read file via mapping

Disassembly:
push 0x3c
mov eax, 0x46efbd
call fcn.004426ef
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 0x43e34c
lea ecx, [ebp - 0x18]
call fcn.00403440
mov edi, esi
mov dword [ebp - 0x18], edi
cmp esi, 0xffffffff
je 0x43e46e
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 0x43e46e
lea ecx, [ebp - 0x14]
call fcn.00403440
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 0x43e46e
lea ecx, [ebp - 0x10]
call fcn.00418678
mov eax, 0x5a4d
mov dword [ebp - 0x10], esi
cmp word [esi], ax
jne 0x43e434
mov ebx, dword [esi + 0x3c]
push 0xf8
add ebx, esi
push ebx
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x43e42d
cmp dword [ebx], 0x4550
jne 0x43e42d
mov eax, dword [ebx + 0x54]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x20], eax
jae 0x43e437
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 0x43e406
lea ecx, [ebp - 0x10]
call fcn.00418678
mov esi, ebx
mov dword [ebp - 0x10], esi
mov eax, 0x5a4d
cmp word [esi], ax
jne 0x43e42d
mov ebx, dword [esi + 0x3c]
push 0xf8
add ebx, esi
push ebx
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x43e42d
cmp dword [ebx], 0x4550
je 0x43e437
mov esi, 0xc1
jmp 0x43e476
mov ebx, dword [ebp - 0x24]
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x43e444
and dword [ebp - 0x10], 0
mov dword [eax], esi
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x43e451
and dword [ebp - 0x18], 0
mov dword [eax], edi
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x43e461
mov ecx, dword [ebp - 0x1c]
and dword [ebp - 0x14], 0
mov dword [eax], ecx
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x43e46a
mov dword [eax], ebx
xor esi, esi
jmp 0x43e476
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x10]
call fcn.00418678
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.00403440
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00403440
mov eax, esi
call fcn.004426bd
ret
Function at 0x43ea62
Capabilities:
Delete file
Get common file path

Disassembly:
push 0x70c
mov eax, 0x46f0bf
call fcn.00442722
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.004416e0
add esp, 0xc
lea eax, [ebp - 0x628]
push 0x104
push eax
push dword [0x4a4d98]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x628]
push eax
lea ecx, [ebp - 0x70c]
call fcn.0043d4d3
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.004416e0
cmp dword [0x4a4c90], 8
mov esi, 0x4a4c7c
mov eax, esi
cmovae eax, dword [0x4a4c7c]
push eax
lea eax, [ebp - 0x70c]
push eax
call fcn.0043f832
add esp, 0x14
test eax, eax
je 0x43ebca
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.004416e0
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 0x47d474
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.0040c6e1
mov byte [ebp - 4], bl
lea eax, [ebp - 0x6a8]
push eax
mov ecx, 0x4a4c78
call fcn.00414ea6
mov byte [ebp - 4], 2
push esi
lea ecx, [ebp - 0x678]
push ecx
push eax
lea ecx, [ebp - 0x70c]
call fcn.0043db84
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x6a8]
call fcn.00401580
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x678]
call fcn.00401580
jmp 0x43ec1e
cmp word [0x4a43e0], 0
je 0x43ebe8
push 0x4a43e0
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
jmp 0x43ec1e
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x628]
push eax
call fcn.0043f8c6
cmp dword [0x4a4c90], 8
lea eax, [ebp - 0x218]
cmovae esi, dword [0x4a4c7c]
push esi
push eax
push eax
call fcn.0043f570
lea ecx, [ebp - 0x648]
call fcn.0040c2bb
mov byte [ebp - 4], 6
cmp word [ebp - 0x218], 0
jne 0x43ec3b
xor eax, eax
jmp 0x43ec48
lea eax, [ebp - 0x218]
push eax
call fcn.00442644
pop ecx
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x640]
call fcn.0040ee78
lea ecx, [ebp - 0x648]
call fcn.0040ef12
lea ecx, [ebp - 0x648]
call fcn.0040d860
push dword [ebp + 0x14]
lea ecx, [ebp - 0x648]
push dword [ebp - 0x718]
push 0x483e18
push dword [ebp - 0x714]
push edi
call fcn.0040d37e
test bl, bl
je 0x43eca2
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x648]
call fcn.0041927c
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x70c]
call fcn.0043d7a3
call fcn.004426d1
ret
Function at 0x43f6a6
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.0044135b
pop ecx
push dword [ebp + 8]
mov ebx, eax
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0x477e70
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 0x43f739
push 0x5c
pop ecx
cmp word [edi], cx
jne 0x43f72b
xor eax, eax
push eax
push ebx
mov word [edi], ax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x43f722
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x43f735
mov eax, dword [ebp + 8]
push 0x5c
pop ecx
mov word [edi], cx
add edi, 2
inc esi
cmp esi, eax
jb 0x43f6ff
jmp 0x43f739
and dword [ebp - 4], 0
push ebx
call fcn.0044265d
mov eax, dword [ebp - 4]
pop ecx
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x43f78c
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
mov eax, dword [0x49d850]
xor eax, ebp
mov dword [ebp - 4], eax
push dword [0x49d7c8]
mov eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0x804]
push eax
call fcn.0043f570
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 0x43f7dc
xor eax, eax
jmp 0x43f7f3
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.004416c3
leave
ret

Function at 0x43fb65
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x49d850]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
cmp dword [0x4a5690], esi
jne 0x43fb8b
mov eax, dword [0x49d7cc]
cmp eax, 0xffffffff
jne 0x43fbdd
push 0x14
lea eax, [ebp - 0x2c]
push eax
push 0x1004
push esi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jle 0x43fbd8
lea eax, [ebp - 0x2c]
push eax
call fcn.00443e5f
pop ecx
push 2
lea ecx, [ebp - 0x4c]
push ecx
push eax
call dword [sym.imp.GDI32.dll_TranslateCharsetInfo]
test eax, eax
je 0x43fbc7
movsx eax, word [ebp - 0x4c]
mov dword [0x49d7cc], eax
jmp 0x43fbdd
push 1
push esi
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x43fbd8
xor eax, eax
jmp 0x43fbdd
mov eax, dword [0x49d7cc]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004416c3
leave
ret
Function at 0x440002
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x250
mov eax, dword [0x49d850]
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 0x483e18
push eax
mov dword [ebp - 0x23c], eax
mov dword [ebp - 0x248], edi
call esi
push 0x483e18
push edi
call esi
lea eax, [ebp - 0x24c]
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
test edi, edi
je 0x4401e1
push edi
call fcn.00444ae9
push edi
mov esi, eax
push 0
push esi
mov dword [ebp - 0x250], esi
call fcn.004416e0
add esp, 0x10
push esi
push edi
xor edi, edi
push edi
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x4401da
push 0x34
lea eax, [ebp - 0x238]
push edi
push eax
mov dword [ebp - 0x240], eax
call fcn.004416e0
add esp, 0xc
lea eax, [ebp - 0x244]
push eax
lea eax, [ebp - 0x240]
push eax
push 0x477e70
push esi
mov dword [ebp - 0x244], edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x4400f9
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.004416e0
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 0x4401da
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.004416e0
mov eax, dword [ebp - 0x240]
add esp, 0xc
test ebx, ebx
jle 0x4401da
mov esi, eax
and dword [ebp - 0x23c], 0
test edi, edi
jle 0x440172
add esi, 4
push 4
lea eax, [ebp - 0x23c]
push esi
push eax
call fcn.004419b0
movzx eax, word [ebp - 0x23c]
add esp, 0xc
push eax
lea eax, [ebp - 0x204]
test edi, edi
jne 0x4401a7
push 0x47c140
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
jmp 0x4401bc
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 0x440164
mov esi, dword [ebp - 0x250]
push esi
call fcn.00444ab1
pop ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004416c3
leave
ret
Function at 0x440297
Capabilities:
Compare security identifiers

Disassembly:
push 0x20
mov eax, 0x46f556
call fcn.00442722
lea eax, [ebp - 0x1c]
push eax
xor ebx, ebx
push ebx
push 8
mov dword [ebp - 0x18], ebx
mov word [ebp - 0x14], 0x500
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenThreadToken]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4402fa
call esi
cmp eax, 0x3f0
jne 0x4402ea
lea eax, [ebp - 0x1c]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call esi
cmp eax, 0x78
jne 0x4402f6
xor eax, eax
jmp 0x4403a1
test eax, eax
je 0x4402ef
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea eax, [ebp - 0x20]
push eax
push ebx
push ebx
push 2
push dword [ebp - 0x1c]
call edi
test eax, eax
jne 0x4402ef
call esi
cmp eax, 0x7a
jne 0x4402ef
push dword [ebp - 0x20]
call fcn.00443181
mov esi, eax
pop ecx
mov dword [ebp - 0x2c], esi
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x20]
push esi
push 2
push dword [ebp - 0x1c]
call edi
test eax, eax
je 0x440394
lea eax, [ebp - 0x28]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x440394
mov edi, ebx
cmp dword [esi], ebx
jbe 0x44038b
lea eax, [esi + 4]
mov dword [ebp - 0x24], eax
push dword [ebp - 0x28]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x440388
mov eax, dword [ebp - 0x24]
inc edi
add eax, 8
mov dword [ebp - 0x24], eax
cmp edi, dword [esi]
jb 0x440369
jmp 0x44038b
xor ebx, ebx
inc ebx
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
or dword [ebp - 4], 0xffffffff
push esi
call fcn.0044144c
pop ecx
mov eax, ebx
call fcn.004426d1
ret