joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44043a
Capabilities:
Get system information on windows
Parse pe header
Read file via mapping

Disassembly:
push 0x38
mov eax, 0x4a9a96
call fcn.00466e90
xor ebx, ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], ebx
mov byte [ebp - 4], 1
mov dword [ebp - 0x14], ebx
mov byte [ebp - 4], 2
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push eax
lea ecx, [ebp - 0x18]
call fcn.00417408
cmp dword [ebp - 0x18], 0xffffffff
jne 0x4404b7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
call fcn.0044009a
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x10]
call fcn.00402cc0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00402cc0
mov eax, esi
call fcn.00466f68
ret
push ebx
push ebx
push ebx
push 2
push ebx
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
push eax
lea ecx, [ebp - 0x10]
call fcn.00417408
cmp dword [ebp - 0x10], ebx
je 0x440484
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x40]
push eax
push ebx
push ebx
push 4
push dword [ebp - 0x10]
mov dword [ebp - 0x1c], eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
push eax
lea ecx, [ebp - 0x14]
call fcn.00440179
mov edi, dword [ebp - 0x14]
cmp edi, ebx
je 0x440484
mov eax, 0x5a4d
cmp word [edi], ax
jne 0x440588
mov esi, dword [edi + 0x3c]
push pe_nt_image_headers32
add esi, edi
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x44057e
cmp dword [esi], 0x4550
jne 0x44057e
mov eax, dword [esi + 0x54]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x1c], eax
jae 0x44058b
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [ebp - 0x20]
push ebx
push ebx
push 4
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
push eax
lea ecx, [ebp - 0x14]
call fcn.00440179
mov edi, dword [ebp - 0x14]
mov eax, 0x5a4d
cmp word [edi], ax
jne 0x44057e
mov esi, dword [edi + 0x3c]
push pe_nt_image_headers32
add esi, edi
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x44057e
cmp dword [esi], 0x4550
je 0x44058b
mov esi, 0xc1
jmp 0x44048c
mov esi, dword [ebp - 0x20]
mov eax, dword [ebp + 0xc]
cmp eax, ebx
je 0x440597
mov dword [eax], edi
mov dword [ebp - 0x14], ebx
mov eax, dword [ebp + 0x10]
cmp eax, ebx
je 0x4405a6
mov ecx, dword [ebp - 0x18]
mov dword [eax], ecx
mov dword [ebp - 0x18], ebx
mov eax, dword [ebp + 0x14]
cmp eax, ebx
je 0x4405b5
mov ecx, dword [ebp - 0x10]
mov dword [eax], ecx
mov dword [ebp - 0x10], ebx
mov eax, dword [ebp + 0x18]
cmp eax, ebx
je 0x4405be
mov dword [eax], esi
xor esi, esi
jmp 0x44048c
Function at 0x4408d2
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, ecx
cmp dword [esi + 0x54], 2
push edi
jae 0x44094a
mov ebx, 0x138
push ebx
mov dword [ebp - 4], ebx
call fcn.00468137
push ebx
mov edi, eax
push 0
push edi
call fcn.00468220
add esp, 0x10
mov ecx, esi
call fcn.0043cbbe
push eax
push edi
call fcn.0046a6b0
mov eax, dword [esi + 0x34]
mov dword [edi + 0x104], eax
mov eax, dword [esi + 0x40]
mov dword [edi + 0x110], eax
mov eax, dword [esi + 0x3c]
mov dword [edi + 0x10c], eax
mov eax, dword [esi + 0x44]
mov dword [edi + 0x114], eax
mov ax, word [esi + 0x48]
mov word [edi + 0x118], ax
mov ax, word [esi + 0x38]
pop ecx
pop ecx
mov word [edi + 0x108], ax
jmp 0x4409b0
mov ebx, dword [esi + 0x18]
add ebx, ebx
lea eax, [ebx + 0x18]
push eax
mov dword [ebp - 4], eax
call fcn.00445b80
push 0x18
mov edi, eax
push 0
push edi
call fcn.00468220
mov eax, dword [esi + 0x34]
mov dword [edi + 4], eax
mov eax, dword [esi + 0x40]
mov dword [edi + 0xe], eax
mov dword [edi], ebx
mov eax, dword [esi + 0x3c]
mov dword [edi + 0xa], eax
mov eax, dword [esi + 0x44]
mov dword [edi + 0x12], eax
mov ax, word [esi + 0x48]
mov word [edi + 0x16], ax
mov ax, word [esi + 0x38]
add esp, 0x10
mov word [edi + 8], ax
cmp dword [esi + 0x1c], 8
jb 0x44099f
mov esi, dword [esi + 8]
jmp 0x4409a2
add esi, 8
push ebx
lea eax, [edi + 0x18]
push esi
push eax
call fcn.00468310
add esp, 0xc
xor esi, esi
push esi
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
mov dword [ebp - 8], esi
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4409d3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push edi
call fcn.004666eb
pop ecx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 4
Function at 0x440ff2
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push 0x40
mov eax, 0x4a9d1f
call fcn.00466e90
mov esi, ecx
mov dword [ebp - 0x18], esi
mov eax, dword [ebp + 8]
cmp dword [eax + 0x1c], 8
jb 0x441011
mov eax, dword [eax + 8]
jmp 0x441014
add eax, 8
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push ebx
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x14], eax
cmp eax, 0xffffffff
jne 0x441042
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x48], eax
jmp 0x4410f8
mov esi, 0x400
push esi
call fcn.00445b80
pop ecx
mov edi, eax
mov dword [ebp + 8], ebx
mov dword [ebp - 0x10], ebx
jmp 0x4410ce
cmp dword [ebp + 8], ebx
je 0x4410e6
mov eax, dword [ebp - 0x18]
cmp byte [eax + 0x41], bl
je 0x44109d
cmp byte [eax + 0x40], bl
je 0x44109d
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x4c]
push eax
call fcn.00421ea4
mov dword [ebp - 4], ebx
mov ecx, eax
call fcn.0043cbbe
push eax
push dword [ebp + 8]
push edi
call fcn.004058c4
add esp, 0xc
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4c]
call fcn.004016a0
push ebx
lea eax, [ebp + 8]
push eax
push dword [ebp + 8]
push edi
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x14]
add dword [ebp - 0x10], eax
cmp ecx, ebx
je 0x4410c9
mov edx, dword [ebp + 0xc]
push dword [edx + 0x3c]
mov eax, dword [ecx]
push dword [ebp - 0x10]
call dword [eax]
cmp dword [ebp + 8], ebx
je 0x4410e6
push ebx
lea eax, [ebp + 8]
push eax
push esi
push edi
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x441058
push edi
call fcn.004666eb
pop ecx
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
call fcn.00466f68
ret 0x10
Function at 0x441100
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push 0x50
mov eax, 0x4a9d42
call fcn.00466e90
mov dword [ebp - 0x24], ecx
mov eax, dword [ebp + 0xc]
mov edi, dword [eax + 0x3c]
mov eax, dword [eax + 0x34]
mov ebx, eax
shr ebx, 2
xor esi, esi
and bl, 1
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x1c], esi
mov byte [ebp - 0xd], 0
test al, 6
je 0x441137
mov byte [ebp - 0xd], 1
mov eax, dword [ebp + 8]
cmp dword [eax + 0x1c], 8
jb 0x441145
mov eax, dword [eax + 8]
jmp 0x441148
add eax, 8
push esi
push 0x80
push 2
push esi
push esi
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x20], eax
cmp eax, 0xffffffff
jne 0x441179
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x24]
mov dword [ecx + 0x48], eax
xor eax, eax
jmp 0x44125b
mov eax, 0x400
mov dword [ebp - 0x14], eax
cmp edi, eax
jae 0x441188
mov dword [ebp - 0x14], edi
push dword [ebp - 0x14]
call fcn.00445b80
pop ecx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
mov edi, eax
mov dword [ebp - 0x24], 1
jmp 0x44122b
test bl, bl
je 0x4411e0
cmp byte [ebp - 0xd], 0
je 0x4411e0
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x5c]
push eax
call fcn.00421ea4
and dword [ebp - 4], 0
mov ecx, eax
call fcn.0043cbbe
push eax
push dword [ebp + 8]
push edi
call fcn.0040593a
add esp, 0xc
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x5c]
call fcn.004016a0
push 0
lea eax, [ebp + 8]
push eax
push dword [ebp + 8]
push edi
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x14]
add dword [ebp - 0x1c], eax
test ecx, ecx
je 0x44120e
push dword [ebp - 0x28]
mov eax, dword [ecx]
push dword [ebp - 0x1c]
call dword [eax]
test al, al
jne 0x441242
mov eax, dword [ebp + 8]
sub dword [ebp - 0x18], eax
je 0x441246
test eax, eax
je 0x441246
cmp dword [ebp - 0x18], 0x400
jae 0x441229
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
push 0
lea eax, [ebp + 8]
push eax
push dword [ebp - 0x14]
push edi
push dword [ebp + 0x10]
call esi
test eax, eax
jne 0x4411a6
jmp 0x441246
and dword [ebp - 0x24], 0
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x24]
call fcn.00466f68
ret 0x10
Function at 0x441fbb
Capabilities:
Read file on windows

Disassembly:
push ebp
sub esp, 0x138
lea ebp, [esp - 4]
mov eax, dword [0x4db020]
xor eax, ebp
mov dword [ebp + 0x138], eax
push 0x5c
mov eax, 0x4a9f04
call fcn.00466e90
mov edi, dword [ebp + 0x144]
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x54], 2
mov dword [ebp - 0x18], edi
jae 0x4420b3
mov edi, 0x138
push edi
lea eax, [ebp]
push ebx
push eax
call fcn.00468220
add esp, 0xc
push ebx
lea eax, [ebp - 0x10]
push eax
push edi
lea eax, [ebp]
push eax
push dword [ebp - 0x18]
mov dword [ebp - 0x10], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x44202e
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4421a6
cmp dword [ebp - 0x10], edi
je 0x44203d
mov eax, 0x103
jmp 0x4421a6
push 1
lea eax, [ebp - 0x11]
push eax
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x68]
call fcn.0040a7da
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x68]
push eax
mov ecx, esi
call fcn.0040912a
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x68]
call fcn.004016a0
mov eax, dword [ebp + 0x104]
mov dword [esi + 0x34], eax
mov ax, word [ebp + 0x108]
mov word [esi + 0x38], ax
mov eax, dword [ebp + 0x10c]
mov dword [esi + 0x3c], eax
mov eax, dword [ebp + 0x110]
mov dword [esi + 0x40], eax
mov eax, dword [ebp + 0x114]
mov dword [esi + 0x44], eax
mov ax, word [ebp + 0x118]
mov word [esi + 0x48], ax
mov eax, dword [ebp + 0x148]
add eax, 0x138
jmp 0x4421a1
push 0x18
lea eax, [ebp - 0x30]
push ebx
push eax
call fcn.00468220
add esp, 0xc
push ebx
lea eax, [ebp - 0x10]
push eax
push 0x18
lea eax, [ebp - 0x30]
push eax
push edi
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x10], ebx
call edi
test eax, eax
je 0x442023
cmp dword [ebp - 0x10], 0x18
jne 0x442033
mov eax, dword [ebp - 0x2c]
push dword [ebp - 0x30]
mov dword [esi + 0x34], eax
mov ax, word [ebp - 0x28]
mov word [esi + 0x38], ax
mov eax, dword [ebp - 0x26]
mov dword [esi + 0x3c], eax
mov eax, dword [ebp - 0x22]
mov dword [esi + 0x40], eax
mov eax, dword [ebp - 0x1e]
mov dword [esi + 0x44], eax
mov ax, word [ebp - 0x1a]
mov word [esi + 0x48], ax
call fcn.00445b80
push dword [ebp - 0x30]
mov dword [ebp - 0x34], eax
push ebx
push eax
call fcn.00468220
add esp, 0x10
push ebx
mov ebx, dword [ebp - 0x34]
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x30]
push ebx
push dword [ebp - 0x18]
call edi
test eax, eax
jne 0x442153
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push ebx
call fcn.004666eb
pop ecx
mov eax, esi
jmp 0x4421a6
mov eax, dword [ebp - 0x30]
cmp dword [ebp - 0x10], eax
je 0x442162
mov esi, 0x103
jmp 0x442148
xor edi, edi
inc edi
push edi
lea ecx, [ebp - 0x11]
push ecx
shr eax, 1
push eax
push ebx
lea ecx, [ebp - 0x68]
call fcn.004091d0
mov dword [ebp - 4], edi
push eax
mov ecx, esi
call fcn.0040912a
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x68]
call fcn.004016a0
push ebx
call fcn.004666eb
mov eax, dword [ebp + 0x148]
pop ecx
mov ecx, dword [ebp - 0x30]
lea eax, [ecx + eax + 0x18]
mov dword [esi + 0x4c], eax
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x138]
xor ecx, ebp
call fcn.00466e81
add ebp, 0x13c
leave
ret 8
Function at 0x442683
Capabilities:
Read file on windows

Disassembly:
push 0x48
mov eax, 0x4aa019
call fcn.00466ef9
mov eax, dword [ebp + 8]
mov esi, ecx
mov dword [ebp - 0x50], eax
push 1
lea eax, [ebp - 0x41]
lea edi, [esi + 4]
push eax
mov ecx, edi
mov dword [ebp - 0x54], esi
mov dword [esi], vtable.STREAM.0
call fcn.00401f50
xor ebx, ebx
mov dword [ebp - 4], ebx
or dword [esi + 0x4c], 0xffffffff
lea ecx, [esi + 0x58]
mov dword [esi + 0x38], ebx
mov dword [esi + 0x3c], ebx
mov byte [esi + 0x40], 1
mov byte [esi + 0x41], 1
mov byte [esi + 0x42], 1
mov dword [esi + 0x48], ebx
mov dword [esi + 0x50], 0x2e
mov dword [esi + 0x54], 0x138
call fcn.0044265a
mov byte [ebp - 4], 1
push dword [ebp - 0x50]
mov ecx, edi
mov dword [esi + 0x78], ebx
mov byte [esi + 0x7c], bl
call fcn.00401f90
cmp dword [esi + 0x20], 8
jb 0x442703
mov eax, dword [esi + 0xc]
jmp 0x442706
lea eax, [esi + 0xc]
xor edi, edi
inc edi
push edi
push eax
call fcn.004405c5
pop ecx
mov dword [esi + 0x44], eax
cmp dword [esi + 0x20], 8
pop ecx
jb 0x442720
mov eax, dword [esi + 0xc]
jmp 0x442723
lea eax, [esi + 0xc]
push ebx
push 0x80
push 3
push ebx
push 3
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 0x38], eax
cmp eax, 0xffffffff
jne 0x442750
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x48], eax
jmp 0x442879
push 0x2e
lea eax, [ebp - 0x40]
push ebx
push eax
mov dword [esi + 0x3c], edi
call fcn.00468220
add esp, 0xc
push ebx
push ebx
push dword [esi + 0x44]
mov ecx, esi
push dword [esi + 0x38]
call fcn.0043fd37
test eax, eax
je 0x442879
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
lea eax, [ebp - 0x48]
push eax
push 0x2e
lea eax, [ebp - 0x40]
push eax
push dword [esi + 0x38]
call edi
mov dword [ebp - 0x4c], eax
cmp eax, ebx
je 0x442864
cmp dword [ebp - 0x48], ebx
je 0x442864
lea eax, [ebp - 0x40]
push eax
mov ecx, esi
call fcn.00441b0f
test eax, eax
je 0x4427b8
cmp word [ebp - 0x32], bx
jne 0x442826
cmp dword [esi + 0x20], 8
jb 0x4427c3
mov eax, dword [esi + 0xc]
jmp 0x4427c6
lea eax, [esi + 0xc]
push ebx
push eax
call fcn.004405c5
pop ecx
pop ecx
cmp eax, dword [esi + 0x44]
jbe 0x4427d7
mov dword [esi + 0x44], eax
push ebx
push ebx
push dword [esi + 0x44]
mov ecx, esi
push dword [esi + 0x38]
call fcn.0043fd37
test eax, eax
je 0x442879
push ebx
lea eax, [ebp - 0x4c]
push eax
push 0x2e
lea eax, [ebp - 0x40]
push eax
push dword [esi + 0x38]
call edi
mov dword [ebp - 0x4c], eax
cmp eax, ebx
je 0x442879
cmp dword [ebp - 0x48], ebx
je 0x442879
lea eax, [ebp - 0x40]
push eax
mov ecx, esi
call fcn.00441b0f
test eax, eax
je 0x44281f
cmp word [ebp - 0x32], bx
jne 0x442826
mov dword [esi + 0x78], 3
mov eax, dword [esi + 0x78]
cmp eax, 1
je 0x44283f
add eax, 0xfffffffe
cmp eax, 1
ja 0x44284d
mov dword [esi + 0x54], 0x18
jmp 0x442846
mov dword [esi + 0x54], 0x138
mov dword [esi + 0x50], 0x2e
mov ecx, esi
call fcn.0043fce7
test al, al
je 0x442879
movzx eax, word [ebp - 0x32]
push eax
call fcn.004422bf
jmp 0x442879
mov dword [esi + 0x78], 3
mov dword [esi + 0x50], 0x2e
mov dword [esi + 0x54], 0x18
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.00466f7c
ret 4
Function at 0x442925
Capabilities:
Get file version info

Disassembly:
push ebp
lea ebp, [esp - 0x1d4]
sub esp, 0x254
mov eax, dword [0x4db020]
xor eax, ebp
mov dword [ebp + 0x1d0], eax
mov eax, dword [ebp + 0x1e0]
mov ecx, dword [ebp + 0x1e4]
and dword [ebp - 0x4c], 0
push ebx
mov ebx, dword [ebp + 0x1dc]
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov esi, 0x4c1c70
push esi
push eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x44], ecx
call edi
push esi
push dword [ebp - 0x44]
call edi
lea eax, [ebp - 0x4c]
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0x442ac5
push esi
call fcn.0046a1b6
push esi
push 0
push eax
mov dword [ebp - 0x40], eax
call fcn.00468220
add esp, 0x10
push dword [ebp - 0x40]
push esi
xor esi, esi
push esi
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x442abc
push 0x34
lea eax, [ebp - 0x80]
push esi
push eax
mov dword [ebp - 0x38], eax
call fcn.00468220
add esp, 0xc
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x38]
push eax
push 0x4b2194
push dword [ebp - 0x40]
mov dword [ebp - 0x3c], esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x442a0a
mov ecx, dword [ebp - 0x38]
mov eax, dword [ecx + 8]
mov ecx, dword [ecx + 0xc]
movzx edx, cx
push edx
shr ecx, 0x10
push ecx
movzx ecx, ax
push ecx
shr eax, 0x10
push eax
push str._u._u._u._u
push dword [ebp - 0x34]
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x18
push 0x34
push esi
push dword [ebp - 0x38]
mov dword [ebp - 0x3c], esi
call fcn.00468220
add esp, 0xc
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x38]
push eax
push str.VarFileInfoTranslation
push dword [ebp - 0x40]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x442abc
mov esi, dword [ebp - 0x3c]
xor eax, eax
push 0x1fe
mov word [ebp - 0x30], ax
xor ebx, ebx
lea eax, [ebp - 0x2e]
push ebx
push eax
shr esi, 2
call fcn.00468220
mov eax, dword [ebp - 0x38]
add esp, 0xc
mov dword [ebp - 0x48], eax
test esi, esi
jle 0x442abc
and dword [ebp - 0x34], 0
test ebx, ebx
jle 0x442a6e
add dword [ebp - 0x48], 4
push 4
push dword [ebp - 0x48]
lea eax, [ebp - 0x34]
push eax
call fcn.00468310
movzx eax, word [ebp - 0x34]
add esp, 0xc
push eax
lea eax, [ebp - 0x30]
test ebx, ebx
jne 0x442a9c
push 0x4b496c
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
jmp 0x442aae
push dword [ebp - 0x44]
push 0x4b64cc
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x44]
call edi
inc ebx
cmp ebx, esi
jl 0x442a62
push dword [ebp - 0x40]
call fcn.0046a280
pop ecx
mov ecx, dword [ebp + 0x1d0]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00466e81
add ebp, 0x1d4
leave
ret
Function at 0x442dc6
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x4db020]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.00468220
add esp, 0xc
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.00442d91
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
pop esi
test eax, eax
je 0x442e36
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 2
je 0x442e31
cmp eax, 5
jne 0x442e36
xor eax, eax
inc eax
jmp 0x442e38
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00466e81
leave
ret 4

Function at 0x442f17
Capabilities:
Create directory

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
push dword [esp + 0x18]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
mov dword [esp + 0x14], 1
call edi
inc eax
xor ecx, ecx
push 2
inc eax
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00445b80
pop ecx
push dword [esp + 0x18]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0x4b2194
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push esi
mov ebx, esi
call edi
mov edi, eax
xor ebp, ebp
test edi, edi
jbe 0x442fa5
cmp word [ebx], 0x5c
jne 0x442f97
xor eax, eax
push eax
push esi
mov word [ebx], ax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x442f91
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x442fa0
push 0x5c
pop eax
mov word [ebx], ax
inc ebx
inc ebx
inc ebp
cmp ebp, edi
jb 0x442f6d
jmp 0x442fa5
and dword [esp + 0x10], 0
push esi
call fcn.004667ea
mov eax, dword [esp + 0x14]
pop ecx
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4

Function at 0x44304c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x4db020]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
cmp dword [0x4e06ec], esi
jne 0x443072
mov eax, dword [0x4da818]
cmp eax, 0xffffffff
jne 0x4430b2
push 0x14
lea eax, [ebp - 0x2c]
push eax
push 0x1004
push esi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jle 0x4430ac
lea eax, [ebp - 0x2c]
push eax
call fcn.0046950b
pop ecx
push 2
lea ecx, [ebp - 0x4c]
push ecx
push eax
call dword [sym.imp.GDI32.dll_TranslateCharsetInfo]
test eax, eax
je 0x4430bf
movsx eax, word [ebp - 0x4c]
mov dword [0x4da818], eax
mov ax, word [0x4da818]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00466e81
leave
ret
push 1
push esi
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x4430ac
xor eax, eax
jmp 0x4430b2
Function at 0x443401
Capabilities:
Compare security identifiers

Disassembly:
push 0x20
mov eax, 0x4aa069
call fcn.00466ef9
xor ebx, ebx
lea eax, [ebp - 0x1c]
push eax
push ebx
push 8
mov byte [ebp - 0x18], bl
mov byte [ebp - 0x17], bl
mov byte [ebp - 0x16], bl
mov byte [ebp - 0x15], bl
mov byte [ebp - 0x14], bl
mov byte [ebp - 0x13], 5
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 0x44346f
call esi
cmp eax, 0x3f0
jne 0x44345e
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 0x44346b
xor eax, eax
call fcn.00466f7c
ret
cmp eax, ebx
je 0x443463
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 0x443463
call esi
cmp eax, 0x7a
jne 0x443463
push dword [ebp - 0x20]
call fcn.00468137
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
jne 0x4434be
or dword [ebp - 4], 0xffffffff
push esi
call fcn.004666eb
pop ecx
jmp 0x443463
lea eax, [ebp - 0x24]
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
jne 0x4434f1
or dword [ebp - 4], 0xffffffff
push esi
call fcn.004666eb
pop ecx
mov eax, ebx
jmp 0x443465
xor edi, edi
mov dword [ebp - 0x28], ebx
cmp dword [esi], ebx
jbe 0x44351d
lea ebx, [esi + 4]
push dword [ebp - 0x24]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x443516
inc edi
add ebx, 8
cmp edi, dword [esi]
jb 0x4434fd
jmp 0x44351d
mov dword [ebp - 0x28], 1
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov ebx, dword [ebp - 0x28]
jmp 0x4434df