joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b7cc0
Capabilities:
Delete registry value
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x55f1f8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebp
push esi
push edi
mov eax, dword [0x5b3890]
xor eax, esp
push eax
lea eax, [esp + 0x34]
mov dword fs:[0], eax
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x44]
lea eax, [esp + 0x10]
push eax
push 0xf003f
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4b7d40
push eax
mov edx, dword [esp + 0x14]
push eax
push eax
push eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
lea eax, [esp + 0x28]
push eax
push 0
push 0
lea ecx, [esp + 0x30]
push ecx
push 0
push 0
push 0
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
je 0x4b7d56
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
or eax, 0xffffffff
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x30
ret
push 0x200
lea ecx, [esp + 0x28]
call fcn.0049f020
mov dword [esp + 0x24], vtable.cWCStr.0
mov esi, dword [esp + 0x14]
mov dword [esp + 0x3c], 0
test esi, esi
je 0x4b7dbf
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x28]
push 0
push 0
push 0
push 0
lea edx, [esp + 0x2c]
push edx
push eax
dec esi
mov dword [esp + 0x34], ecx
mov ecx, dword [esp + 0x28]
push esi
push ecx
call edi
test eax, eax
jne 0x4b7dbb
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x10]
push edx
push eax
call fcn.004b7bf0
add esp, 8
test esi, esi
jne 0x4b7d82
mov esi, dword [esp + 0x18]
test esi, esi
je 0x4b7e0d
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov ecx, dword [esp + 0x30]
push 0
push 0
lea edx, [esp + 0x28]
push edx
mov edx, dword [esp + 0x1c]
push 0
lea eax, [esp + 0x2c]
push eax
mov dword [esp + 0x30], ecx
mov ecx, dword [esp + 0x3c]
push ecx
dec esi
push esi
push edx
call edi
test eax, eax
jne 0x4b7e09
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x10]
push eax
push ecx
call ebp
test esi, esi
jne 0x4b7dd3
mov ecx, dword [esp + 0x10]
push 0
push 0
push 0
push 0
lea edx, [esp + 0x28]
push edx
push 0
push 0
lea eax, [esp + 0x30]
push eax
push 0
push 0
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov edx, dword [esp + 0x10]
push edx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x4b7e56
cmp dword [esp + 0x14], 0
jne 0x4b7e53
cmp dword [esp + 0x18], 0
je 0x4b7e56
or esi, 0xffffffff
lea ecx, [esp + 0x24]
mov dword [esp + 0x3c], 0xffffffff
mov dword [esp + 0x24], vtable.cWCS.0
call fcn.0049ee80
mov eax, esi
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x30
ret
Function at 0x4b8f70
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x55f578
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x5b3890]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5b3890]
xor eax, esp
push eax
lea eax, [esp + 0x34]
mov dword fs:[0], eax
mov eax, dword [esp + 0x44]
mov ebx, dword [esp + 0x4c]
mov dword [esp + 0x24], eax
mov eax, str.DeviceHarddiskVolume
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4b8fb6
sub eax, edx
sar eax, 1
mov esi, eax
push esi
push str.DeviceHarddiskVolume
push ebx
call fcn.0051a4ff
add esp, 0xc
test eax, eax
jne 0x4b90b2
movzx eax, word [ebx + esi*2]
cmp ax, 0x5c
je 0x4b9005
jmp 0x4b8ff0
test ax, ax
je 0x4b90b2
movzx eax, word [ebx + esi*2 + 2]
inc esi
cmp ax, 0x5c
jne 0x4b8ff0
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov ecx, dword [0x574058]
mov dx, word [0x57405c]
mov ebp, eax
mov dword [esp + 0x28], ecx
xor eax, eax
push 0x104
lea ecx, [esp + 0x18]
mov word [esp + 0x30], dx
mov word [esp + 0x32], ax
call fcn.0049f020
mov dword [esp + 0x14], vtable.cWCStr.0
mov dword [esp + 0x3c], 0
mov edi, 2
lea ecx, [ecx]
mov edx, 1
mov ecx, edi
shl edx, cl
test ebp, edx
je 0x4b9093
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x18]
lea eax, [edi + 0x41]
push ecx
mov word [esp + 0x2c], ax
push edx
lea eax, [esp + 0x30]
push eax
call fcn.004b8430
add esp, 0xc
test eax, eax
je 0x4b9093
mov ecx, dword [esp + 0x18]
push esi
push ebx
push ecx
call fcn.0049ea40
add esp, 0xc
test eax, eax
je 0x4b90d3
inc edi
cmp edi, 0x1a
jl 0x4b9050
lea ecx, [esp + 0x14]
mov dword [esp + 0x3c], 0xffffffff
mov dword [esp + 0x14], vtable.cWCS.0
call fcn.0049ee80
xor al, al
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.0051916c
add esp, 0x2c
ret
movzx eax, word [esp + 0x28]
mov ecx, dword [esp + 0x48]
lea edx, [ebx + esi*2]
push edx
mov edx, dword [esp + 0x28]
push eax
push str._c:_s
push ecx
push edx
call fcn.004a3180
add esp, 0x14
lea ecx, [esp + 0x14]
mov dword [esp + 0x3c], 0xffffffff
mov dword [esp + 0x14], vtable.cWCS.0
call fcn.0049ee80
mov al, 1
jmp 0x4b90b4
Function at 0x4b9900
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x55f6b8
mov eax, dword fs:[0]
push eax
sub esp, 0x48
push ebx
push esi
push edi
mov eax, dword [0x5b3890]
xor eax, esp
push eax
lea eax, [esp + 0x58]
mov dword fs:[0], eax
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x18]
mov byte [esp + 0x28], 0x5c
mov dword [esp + 0x2c], 0x575934
mov byte [esp + 0x30], 0x22
mov dword [esp + 0x34], 0x575930
mov byte [esp + 0x38], 9
mov dword [esp + 0x3c], 0x57592c
mov byte [esp + 0x40], 0xd
mov dword [esp + 0x44], 0x575928
mov byte [esp + 0x48], 0xa
mov dword [esp + 0x4c], 0x575924
mov byte [esp + 0x50], 8
mov dword [esp + 0x54], 0x575920
mov byte [esp + 0x58], 0x27
mov dword [esp + 0x5c], 0x57591c
call fcn.0049eff0
mov dword [esp + 0x10], vtable.cWCStr.0
mov ebx, dword [esp + 0x68]
mov edi, dword [esp + 0x6c]
mov dword [esp + 0x60], 0
cmp edi, dword [ebx + 4]
jne 0x4b99b7
lea eax, [esp + 0x10]
push eax
mov ecx, ebx
call fcn.0049e930
cmp byte [esp + 0x70], 0
mov esi, 7
jne 0x4b99c8
mov esi, 6
movzx ecx, word [edi]
test cx, cx
je 0x4b9a23
xor eax, eax
test esi, esi
je 0x4b99f0
jmp 0x4b99e0
movsx dx, byte [esp + eax*8 + 0x20]
cmp dx, cx
je 0x4b9a07
inc eax
cmp eax, esi
jne 0x4b99e0
movzx eax, cx
push 1
lea ecx, [esp + 0x74]
push ecx
mov ecx, ebx
mov dword [esp + 0x78], eax
call fcn.0049eeb0
jmp 0x4b9a17
mov edx, dword [esp + eax*8 + 0x24]
push 0xffffffffffffffff
push 0xffffffffffffffff
push edx
mov ecx, ebx
call fcn.00408e60
movzx ecx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x4b99d0
mov esi, dword [ebx + 4]
lea ecx, [esp + 0x10]
mov dword [esp + 0x60], 0xffffffff
mov dword [esp + 0x10], vtable.cWCS.0
call fcn.0049ee80
mov eax, esi
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x54
ret
Function at 0x4ba820
Capabilities:
Delete directory

Disassembly:
push 0xffffffffffffffff
push 0x55f82b
mov eax, dword fs:[0]
push eax
sub esp, 0x26c
mov eax, dword [0x5b3890]
xor eax, esp
mov dword [esp + 0x268], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5b3890]
xor eax, esp
push eax
lea eax, [esp + 0x280]
mov dword fs:[0], eax
mov ebx, dword [esp + 0x298]
mov esi, dword [esp + 0x290]
xor edi, edi
push 0x24c
lea eax, [esp + 0x34]
push edi
push eax
mov dword [esp + 0x24], ebx
mov dword [esp + 0x38], edi
call fcn.00519500
push edi
lea ecx, [esp + 0x3c]
push ecx
push esi
call fcn.004ba2a0
add esp, 0x18
test eax, eax
jne 0x4ba89e
lea eax, [edi + 1]
jmp 0x4ba9b2
mov edx, dword [esp + 0x2c]
and edx, 1
je 0x4ba8b5
push 0x80
push esi
call fcn.004b6540
add esp, 8
test byte [esp + 0x2c], 0x10
jne 0x4ba8ec
cmp byte [esp + 0x29c], 0
mov ebp, 0x57
mov dword [esp + 0x14], ebp
je 0x4ba9a6
lea eax, [esp + 0x14]
push eax
push esi
call fcn.004b6610
mov ebp, dword [esp + 0x1c]
add esp, 8
mov edi, eax
jmp 0x4ba9a6
cmp byte [esp + 0x294], 0
je 0x4ba913
mov ecx, dword [esp + 0x29c]
push ecx
push ebx
push esi
call fcn.004b6830
add esp, 0xc
test al, al
jne 0x4ba913
xor eax, eax
jmp 0x4ba9b2
mov ebx, dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
push esi
call ebx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
test edi, edi
jne 0x4ba985
push esi
call fcn.004b18f0
add esp, 4
test al, al
je 0x4ba985
push 0xffffffffffffffff
push edi
lea ecx, [esp + 0x24]
call fcn.0049eff0
mov dword [esp + 0x1c], vtable.cLongName.0
push esi
lea ecx, [esp + 0x20]
mov dword [esp + 0x28c], edi
call fcn.004b53d0
push eax
call ebx
lea ecx, [esp + 0x1c]
mov edi, eax
mov dword [esp + 0x288], 0xffffffff
mov dword [esp + 0x1c], vtable.cWCS.0
call fcn.0049ee80
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
push 0
push 0
push esi
call fcn.004ba2a0
add esp, 0xc
test eax, eax
je 0x4ba9a1
test edi, edi
je 0x4ba9a6
xor edi, edi
lea ebp, [edi + 0x50]
jmp 0x4ba9a6
mov edi, 1
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4ba9b0
mov dword [eax], ebp
mov eax, edi
mov ecx, dword [esp + 0x280]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x268]
xor ecx, esp
call fcn.0051916c
add esp, 0x278
ret
Function at 0x4baa00
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x55f868
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5b3890]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov edi, dword [esp + 0x44]
test edi, edi
jne 0x4baa47
push edi
call fcn.005199c5
add esp, 4
mov esi, eax
mov dword [esp + 0x18], edx
call fcn.0051bc53
mov edi, eax
xor edi, esi
or ebx, 0xffffffff
push ebx
push 0
lea ecx, [esp + 0x24]
call fcn.0049eff0
mov dword [esp + 0x1c], vtable.cWCStr.0
mov esi, dword [esp + 0x3c]
push esi
mov dword [esp + 0x38], 0
call fcn.00408dc0
add esp, 4
test al, al
jne 0x4bab32
push ebx
push esi
lea ecx, [esp + 0x24]
call fcn.00406a80
lea ecx, [esp + 0x1c]
call fcn.0049e970
mov esi, eax
mov dword [esp + 0x44], eax
test esi, esi
je 0x4bab49
lea ecx, [esi - 1]
push ecx
lea ecx, [esp + 0x20]
call fcn.0049ead0
cmp ax, 0x5c
je 0x4baac4
push ebx
push 0x56b9a8
lea ecx, [esp + 0x24]
call fcn.0049eeb0
inc esi
mov dword [esp + 0x44], esi
cmp dword [esp + 0x40], 0
jne 0x4baad3
mov dword [esp + 0x40], 0x56ba1c
mov eax, dword [esp + 0x54]
mov ebx, dword [esp + 0x60]
mov ebp, dword [esp + 0x5c]
mov esi, dword [esp + 0x4c]
and eax, 0x10
mov dword [esp + 0x14], eax
lea ebx, [ebx]
mov edx, dword [esp + 0x44]
push edx
lea ecx, [esp + 0x20]
call fcn.0049f100
mov eax, dword [esp + 0x40]
push ebp
push edi
push eax
lea ecx, [esp + 0x28]
push str._s_08X_s
push ecx
call fcn.00408140
add esp, 0x14
cmp dword [esp + 0x14], 0
push 0
je 0x4bab7b
test ebx, ebx
je 0x4bab52
mov edx, dword [esp + 0x24]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryExW]
jmp 0x4bab5d
lea eax, [esp + 0x1c]
push 0
push eax
call fcn.004b7180
add esp, 8
test eax, eax
jne 0x4baa86
mov dword [esp + 0x34], ebx
jmp 0x4bac1d
mov eax, dword [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp eax, 1
sete al
test al, al
je 0x4bab9d
push 0
push 0x2000080
push 3
push 0
push 1
push SysReAllocString
jmp 0x4bab8e
mov edx, dword [esp + 0x58]
mov eax, dword [esp + 0x54]
push edx
push 1
push 0
push eax
push 0xc0000000
mov ecx, dword [esp + 0x38]
push ecx
call fcn.004b5ff0
mov dword [esi], eax
add esp, 0x1c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x58]
test ecx, ecx
je 0x4babad
mov dword [ecx], eax
cmp dword [esi], 0xffffffff
jne 0x4babc9
mov edx, dword [esp + 0x20]
push edx
call fcn.004ba280
add esp, 4
test eax, eax
je 0x4bac15
inc edi
jmp 0x4baaf0
mov eax, dword [esp + 0x48]
test eax, eax
je 0x4babe6
mov ecx, dword [esp + 0x20]
push 1
push 0x104
push ecx
push eax
call fcn.004ae920
add esp, 0x10
lea ecx, [esp + 0x1c]
mov dword [esp + 0x34], 0xffffffff
mov dword [esp + 0x1c], vtable.cWCS.0
call fcn.0049ee80
mov eax, edi
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
mov dword [esp + 0x34], 0xffffffff
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], vtable.cWCS.0
call fcn.0049ee80
xor eax, eax
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
Function at 0x4bb810
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x55fa28
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x5b3890]
xor eax, esp
mov dword [esp + 0x18], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5b3890]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov edi, ecx
push 0x400
lea ecx, [esp + 0x18]
mov byte [edi + 0x64], 1
call fcn.0049f020
mov dword [esp + 0x14], vtable.cWCStr.0
mov eax, dword [0x56f41c]
mov ecx, dword [0x56f420]
xor esi, esi
mov dword [esp + 0x38], esi
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], ecx
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov ebx, eax
nop
mov edx, 1
mov ecx, esi
shl edx, cl
test ebx, edx
je 0x4bb8e6
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x18]
lea eax, [esi + 0x41]
push ecx
mov word [esp + 0x28], ax
push edx
lea eax, [esp + 0x2c]
push eax
call fcn.004b48e0
add esp, 0xc
test eax, eax
je 0x4bb8e6
mov ebp, dword [esp + 0x18]
mov eax, ebp
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4bb8c0
sub eax, edx
sar eax, 1
cmp eax, 0x104
jae 0x4bb8e6
push 0
push 0xffffffffffffffff
push ebp
call fcn.00402e30
add esp, 0xc
mov dword [edi + esi*4], eax
inc esi
cmp esi, 0x19
jb 0x4bb880
lea ecx, [esp + 0x14]
mov dword [esp + 0x38], 0xffffffff
mov dword [esp + 0x14], vtable.cWCS.0
call fcn.0049ee80
mov al, 1
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.0051916c
add esp, 0x28
ret
Function at 0x4bba30
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x55fa58
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x5b3890]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov edi, dword [esp + 0x30]
mov eax, edi
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4bba60
sub eax, edx
push 0xffffffffffffffff
sar eax, 1
push 0
lea ecx, [esp + 0x18]
mov esi, eax
call fcn.0049eff0
mov dword [esp + 0x10], vtable.cWCStr.0
mov dword [esp + 0x28], 0
test esi, esi
jbe 0x4bbaaf
cmp word [edi + esi*2 - 2], 0x5c
je 0x4bbaaf
push edi
lea eax, [esp + 0x14]
push 0x56e0d8
push eax
call fcn.00401080
add esp, 0xc
mov edi, eax
mov eax, 1
test byte [0x5bd570], al
jne 0x4bbadc
or dword [0x5bd570], eax
call fcn.0045e770
mov eax, dword [eax]
push str.GetVolumePathNamesForVolumeNameW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x5bd56c], eax
jmp 0x4bbae1
mov eax, dword [0x5bd56c]
mov ecx, dword [esp + 0x38]
test eax, eax
jne 0x4bbb4f
mov esi, dword [esp + 0x34]
push eax
push ecx
push esi
push edi
call fcn.004bb980
mov edi, eax
add esp, 0x10
test edi, edi
je 0x4bbb21
mov ebx, dword [esp + 0x3c]
test ebx, ebx
je 0x4bbb21
mov eax, esi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4bbb10
sub eax, edx
sar eax, 1
mov dword [ebx], eax
lea ecx, [esp + 0x10]
mov dword [esp + 0x28], 0xffffffff
mov dword [esp + 0x10], vtable.cWCS.0
call fcn.0049ee80
mov eax, edi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x1c
ret
mov edx, dword [esp + 0x3c]
push edx
mov edx, dword [esp + 0x38]
push ecx
push edx
push edi
call eax
lea ecx, [esp + 0x10]
mov esi, eax
mov dword [esp + 0x28], 0xffffffff
mov dword [esp + 0x10], vtable.cWCS.0
call fcn.0049ee80
mov eax, esi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x1c
ret

Function at 0x4bbc10
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x55fa88
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
mov eax, dword [0x5b3890]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
push eax
push 0
push ecx
push edx
lea ecx, [esp + 0x18]
call fcn.00408de0
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x28]
push 0
push 0xffffffffffffffff
push eax
push ecx
mov dword [esp + 0x30], 0
call fcn.00419180
add esp, 0x10
lea ecx, [esp + 8]
mov bl, al
mov dword [esp + 0x20], 0xffffffff
mov dword [esp + 8], vtable.cWCS.0
call fcn.0049ee80
mov al, bl
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop ebx
add esp, 0x1c
ret
Function at 0x4bbff0
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x55fafb
mov eax, dword fs:[0]
push eax
sub esp, 0x528
mov eax, dword [0x5b3890]
xor eax, esp
mov dword [esp + 0x524], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5b3890]
xor eax, esp
push eax
lea eax, [esp + 0x53c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x54c]
push eax
lea eax, [esp + 0x2c]
push str._supportedOS_Id__s_
push eax
call fcn.00426db0
add esp, 0xc
push 0x104
lea ecx, [esp + 0x12c]
push ecx
xor ebx, ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x20]
call fcn.0049eff0
mov dword [esp + 0x18], vtable.cWCStr.0
lea edx, [esp + 0x128]
push edx
lea eax, [esp + 0x1c]
push str._s.manifest
push eax
mov dword [esp + 0x550], ebx
call fcn.00401080
mov ecx, dword [esp + 0x28]
push ecx
lea esi, [esp + 0x138]
call fcn.004ba280
add esp, 0x10
test eax, eax
je 0x4bc0a9
mov esi, dword [esp + 0x1c]
push ebx
push ebx
push 3
push ebx
push 1
push SysReAllocString
push esi
call fcn.004b5ff0
mov esi, eax
add esp, 0x1c
cmp esi, ebx
je 0x4bc107
push esi
call fcn.004b25a0
add esp, 4
mov ebp, 0x100000
cmp edx, ebx
ja 0x4bc0da
cmp eax, ebp
jbe 0x4bc0ef
sub eax, 0x100000
push ebx
sbb edx, ebx
push edx
push eax
push esi
call fcn.004b4bb0
add esp, 0x10
jmp 0x4bc0f1
mov ebp, eax
push ebp
call fcn.00518c06
mov edi, eax
add esp, 4
cmp edi, ebx
jne 0x4bc127
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x18]
mov dword [esp + 0x544], 0xffffffff
mov dword [esp + 0x18], vtable.cWCS.0
call fcn.0049ee80
xor al, al
jmp 0x4bc183
push ebx
lea edx, [esp + 0x18]
push edx
push ebp
push edi
push esi
mov dword [esp + 0x28], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4bc155
cmp ebp, dword [esp + 0x14]
jne 0x4bc155
lea eax, [esp + 0x28]
push eax
push ebp
push edi
call fcn.004b1f00
add esp, 0xc
mov bl, al
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call fcn.00519d85
add esp, 4
lea ecx, [esp + 0x18]
mov dword [esp + 0x544], 0xffffffff
mov dword [esp + 0x18], vtable.cWCS.0
call fcn.0049ee80
mov al, bl
mov ecx, dword [esp + 0x53c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x524]
xor ecx, esp
call fcn.0051916c
add esp, 0x534
ret
Function at 0x4bc1b0
Capabilities:
Check os version

Disassembly:
push 0xffffffffffffffff
push 0x55fb3e
mov eax, dword fs:[0]
push eax
sub esp, 0x120
mov eax, dword [0x5b3890]
xor eax, esp
mov dword [esp + 0x11c], eax
mov eax, dword [0x5b3890]
xor eax, esp
push eax
lea eax, [esp + 0x124]
mov dword fs:[0], eax
lea eax, [esp + 4]
push eax
mov dword [esp + 8], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [esp + 0x14], 2
je 0x4bc208
xor al, al
jmp 0x4bc28e
test byte [0x5bd7cc], 1
jne 0x4bc235
or dword [0x5bd7cc], 1
push str.8e0f7a12_bfb3_4fe8_b9a5_48fd50a15a9a
mov dword [esp + 0x130], 0
call fcn.004bbff0
add esp, 4
mov byte [0x5bd7c8], al
cmp byte [0x5bd7c8], 0
mov eax, dword [esp + 8]
je 0x4bc254
cmp eax, 0xa
jne 0x4bc24b
mov al, 1
jmp 0x4bc28e
mov ecx, 0xa
cmp ecx, eax
jmp 0x4bc285
cmp eax, 6
jbe 0x4bc262
mov al, byte [esp + 0x134]
jmp 0x4bc28e
jb 0x4bc201
mov eax, dword [esp + 0xc]
cmp eax, 2
jne 0x4bc27e
mov eax, dword [esp + 0x10]
cmp eax, 0x23f0
jb 0x4bc201
jne 0x4bc259
mov al, 1
jmp 0x4bc28e
mov edx, 2
cmp edx, eax
sbb al, al
and al, byte [esp + 0x134]
mov ecx, dword [esp + 0x124]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.0051916c
add esp, 0x12c
ret

Function at 0x4bc2c0
Capabilities:
Check os version

Disassembly:
push 0xffffffffffffffff
push 0x55fb7e
mov eax, dword fs:[0]
push eax
sub esp, 0x118
mov eax, dword [0x5b3890]
xor eax, esp
mov dword [esp + 0x114], eax
mov eax, dword [0x5b3890]
xor eax, esp
push eax
lea eax, [esp + 0x11c]
mov dword fs:[0], eax
lea eax, [esp + 4]
push eax
mov dword [esp + 8], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [esp + 0x14], 2
je 0x4bc318
xor al, al
jmp 0x4bc3a5
test byte [0x5bd7d4], 1
jne 0x4bc347
or dword [0x5bd7d4], 1
push str.1f676c76_80e1_4239_95bb_83d0f6d0da78
mov dword [esp + 0x128], 0
call fcn.004bbff0
add esp, 4
mov byte [0x5bd7d0], al
jmp 0x4bc34c
mov al, byte [0x5bd7d0]
mov ecx, dword [esp + 8]
cmp ecx, 6
jbe 0x4bc35e
mov al, byte [esp + 0x12c]
jmp 0x4bc3a5
jb 0x4bc311
mov ecx, dword [esp + 0xc]
cmp ecx, 2
jne 0x4bc37b
test al, al
jne 0x4bc311
cmp dword [esp + 0x10], 0x23f0
jae 0x4bc355
mov al, 1
jmp 0x4bc3a5
cmp ecx, 3
jne 0x4bc395
test al, al
je 0x4bc355
mov eax, dword [esp + 0x10]
cmp eax, 0x2580
jb 0x4bc311
jne 0x4bc355
mov al, 1
jmp 0x4bc3a5
mov edx, 2
cmp edx, ecx
sbb al, al
and al, byte [esp + 0x12c]
mov ecx, dword [esp + 0x11c]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.0051916c
add esp, 0x124
ret

Function at 0x4bc3f0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x20c
mov eax, dword [0x5b3890]
xor eax, esp
mov dword [esp + 0x208], eax
cmp word [0x5b2c98], 0x41
jne 0x4bc456
push 0x104
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x4bc456
lea ecx, [esp]
push 0
push ecx
call fcn.004b9fa0
add esp, 8
test al, al
jne 0x4bc44b
xor eax, eax
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.0051916c
add esp, 0x20c
ret
mov dx, word [esp]
mov word [0x5b2c98], dx
mov ecx, dword [esp + 0x208]
xor ecx, esp
mov eax, 0x5b2c98
call fcn.0051916c
add esp, 0x20c
ret
Function at 0x4bcd30
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x55fcc8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x5b3890]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov edi, dword [esp + 0x34]
mov esi, dword [esp + 0x30]
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push edi
push esi
call ebx
test eax, eax
jne 0x4bcdda
push esi
call fcn.004b18f0
add esp, 4
test al, al
je 0x4bcdda
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x18]
call fcn.0049eff0
mov dword [esp + 0x10], vtable.cLongName.0
mov dword [esp + 0x28], 0
test esi, esi
jne 0x4bcd9e
xor eax, eax
jmp 0x4bcdbd
push esi
call fcn.004b18f0
add esp, 4
test al, al
jne 0x4bcdaf
mov eax, esi
jmp 0x4bcdbd
push esi
lea ecx, [esp + 0x14]
call fcn.004b5390
mov eax, dword [esp + 0x14]
push edi
push eax
call ebx
lea ecx, [esp + 0x10]
mov dword [esp + 0x28], 0xffffffff
mov dword [esp + 0x10], vtable.cWCS.0
call fcn.0049ee80
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x38]
test ecx, ecx
je 0x4bcdea
mov dword [ecx], eax
push esi
call fcn.004ba280
add esp, 4
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x1c
ret