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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], edx
mov edi, eax
xor eax, eax
push ebp
push 0x4d0ec8
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x44]
lea edx, [ebp - 0x28]
mov eax, edi
call fcn.004d0da8
test al, al
je 0x4d0eaa
mov ecx, dword [ebp - 0x24]
inc ecx
lea eax, [ebp - 0xc]
xor edx, edx
call fcn.00404ea4
mov ebx, dword [ebp - 0x28]
dec ebx
test ebx, ebx
jl 0x4d0eaa
inc ebx
xor esi, esi
mov eax, dword [ebp - 0x24]
inc eax
mov dword [ebp - 8], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0xc]
call fcn.00405264
push eax
push esi
mov eax, dword [edi + 4]
push eax
call sub.advapi32.dll_RegEnumKeyExA
mov eax, dword [ebp - 0xc]
call fcn.00405264
mov edx, eax
lea eax, [ebp - 0x2c]
call fcn.00404fa4
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x38]
inc esi
dec ebx
jne 0x4d0e63
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d0ecf
lea eax, [ebp - 0x2c]
call fcn.00404db4
lea eax, [ebp - 0xc]
call fcn.00404db4
ret

Function at 0x4d0ed8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], edx
mov edi, eax
xor eax, eax
push ebp
push 0x4d0f90
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x44]
lea edx, [ebp - 0x28]
mov eax, edi
call fcn.004d0da8
test al, al
je 0x4d0f72
mov ecx, dword [ebp - 0x1c]
inc ecx
lea eax, [ebp - 0xc]
xor edx, edx
call fcn.00404ea4
mov ebx, dword [ebp - 0x20]
dec ebx
test ebx, ebx
jl 0x4d0f72
inc ebx
xor esi, esi
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 8], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0xc]
call fcn.00405264
push eax
push esi
mov eax, dword [edi + 4]
push eax
call sub.advapi32.dll_RegEnumValueA
mov eax, dword [ebp - 0xc]
call fcn.00405264
mov edx, eax
lea eax, [ebp - 0x2c]
call fcn.00404fa4
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x38]
inc esi
dec ebx
jne 0x4d0f2b
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d0f97
lea eax, [ebp - 0x2c]
call fcn.00404db4
lea eax, [ebp - 0xc]
call fcn.00404db4
ret
Function at 0x4d12c4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
mov esi, ecx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp + 0xc]
push eax
push esi
lea eax, [ebp - 8]
push eax
push 0
mov eax, dword [ebp - 4]
call fcn.00405264
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x4d1300
push ebp
call fcn.004d1254
pop ecx
mov eax, dword [ebp - 8]
call fcn.004d08f0
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, dword [ebp + 0xc]
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 8

Function at 0x4d43a0
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x10], 0xca
jne 0x4d43ce
mov eax, ebx
call fcn.004d4e58
cmp dword [ebx + 0x3c], 0
je 0x4d43c7
mov dword [ebx + 0x10], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x10], 0xcb
cmp dword [ebx + 0x10], 0xcb
jne 0x4d443f
mov edx, dword [ebx + 0x1ac]
cmp dword [edx + 0x10], 0
je 0x4d4431
cmp dword [ebx + 8], 0
je 0x4d43f0
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1ac]
call dword [edx]
test eax, eax
jne 0x4d4402
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x4d4431
cmp dword [ebx + 8], 0
je 0x4d43e3
cmp eax, 3
je 0x4d4415
dec eax
jne 0x4d43e3
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x4d43e3
mov edx, dword [ebx + 0x138]
add dword [eax + 8], edx
jmp 0x4d43e3
mov ecx, dword [ebx + 0x8c]
mov dword [ebx + 0x94], ecx
jmp 0x4d445d
cmp dword [ebx + 0x10], 0xcc
je 0x4d445d
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x12
mov edx, dword [ebx + 0x10]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.004d4468
pop ebx
ret

Function at 0x4e7220
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405254
xor eax, eax
push ebp
push 0x4e7284
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0xe
lea eax, [ebp - 0x1a]
push eax
lea eax, [ebp - 4]
call fcn.004e7334
push eax
call sub.kernel32.dll_GetVolumeInformationA
mov edx, ebx
lea eax, [ebp - 0x1a]
call fcn.0040aa2c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e728b
lea eax, [ebp - 4]
call fcn.00404db4
ret

Function at 0x4e7290
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405254
xor eax, eax
push ebp
push 0x4e72f4
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x104]
push eax
push 0
push 0x4e7300
lea eax, [ebp - 4]
call fcn.004e7334
push eax
call sub.kernel32.dll_GetTempFileNameA
mov edx, ebx
lea eax, [ebp - 0x104]
call fcn.004e70f4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e72fb
lea eax, [ebp - 4]
call fcn.00404db4
ret
Function at 0x4e7bc0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push ebx
push esi
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00405254
xor eax, eax
push ebp
push 0x4e7cb0
push dword fs:[eax]
mov dword fs:[eax], esp
mov ax, word [esi + 4]
mov word [ebx + 4], ax
mov ax, word [esi + 6]
mov word [ebx + 6], ax
mov ax, word [esi + 8]
mov word [ebx + 8], ax
mov ax, word [esi + 0xa]
mov word [ebx + 0xa], ax
mov eax, dword [esi + 0xc]
call fcn.004e6c0c
mov dword [ebx + 0xc], eax
mov eax, dword [esi + 0x10]
mov dword [ebx + 0x10], eax
mov eax, dword [esi + 0x14]
mov dword [ebx + 0x14], eax
mov eax, dword [esi + 0x18]
mov dword [ebx + 0x18], eax
mov ax, word [esi + 0x1c]
mov word [ebx + 0x1c], ax
mov ax, word [esi + 0x1e]
mov word [ebx + 0x1e], ax
mov ax, word [esi + 0x20]
mov word [ebx + 0x22], ax
mov ax, word [esi + 0x22]
mov word [ebx + 0x24], ax
mov ax, word [esi + 0x24]
mov word [ebx + 0x26], ax
mov eax, dword [esi + 0x26]
mov dword [ebx + 0x28], eax
mov eax, dword [esi + 0x2a]
mov dword [ebx + 0x2c], eax
xor eax, eax
mov dword [ebx + 0x30], eax
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0040a530
mov edx, dword [ebp - 8]
mov eax, ebx
call fcn.004e84bc
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.0040a3f4
mov edx, dword [ebp - 0xc]
mov eax, ebx
call fcn.004e8530
xor eax, eax
mov dword [ebx + 0x3c], eax
mov byte [ebx + 0x40], 0
mov byte [ebx + 0x42], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e7cb7
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404dd8
ret
Function at 0x4e7cc0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push ebx
push esi
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00405254
xor eax, eax
push ebp
push 0x4e7dc0
push dword fs:[eax]
mov dword fs:[eax], esp
mov word [ebx + 4], 0
mov ax, word [esi + 4]
mov word [ebx + 6], ax
mov ax, word [esi + 6]
mov word [ebx + 8], ax
mov ax, word [esi + 8]
mov word [ebx + 0xa], ax
mov eax, dword [esi + 0xa]
call fcn.004e6c0c
mov dword [ebx + 0xc], eax
mov eax, dword [esi + 0xe]
mov dword [ebx + 0x10], eax
mov eax, dword [esi + 0x12]
mov dword [ebx + 0x14], eax
mov eax, dword [esi + 0x16]
mov dword [ebx + 0x18], eax
mov ax, word [esi + 0x1a]
mov word [ebx + 0x1c], ax
mov ax, word [esi + 0x1c]
mov word [ebx + 0x20], ax
mov word [ebx + 0x22], 0
mov word [ebx + 0x24], 0
mov word [ebx + 0x26], 0
xor eax, eax
mov dword [ebx + 0x28], eax
xor eax, eax
mov dword [ebx + 0x2c], eax
xor eax, eax
mov dword [ebx + 0x30], eax
cmp dword [ebp - 4], 0
je 0x4e7d86
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0040a530
mov edx, dword [ebp - 8]
mov eax, ebx
call fcn.004e84bc
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.0040a3f4
mov edx, dword [ebp - 0xc]
mov eax, ebx
call fcn.004e8530
jmp 0x4e7d98
xor edx, edx
mov eax, ebx
call fcn.004e84bc
xor edx, edx
mov eax, ebx
call fcn.004e8530
xor eax, eax
mov dword [ebx + 0x3c], eax
mov byte [ebx + 0x40], 0
mov byte [ebx + 0x42], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e7dc7
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404dd8
ret

Function at 0x4ee434
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov edi, eax
mov ecx, dword [edi + 0x174]
mov edx, ebx
mov eax, edi
call fcn.004ee658
mov esi, eax
mov dword [edi + 0x174], esi
and esi, 0xff
add dword [edi + 0x178], esi
imul esi, dword [edi + 0x178], 0x8088405
inc esi
mov dword [edi + 0x178], esi
mov edx, esi
shr edx, 0x18
mov ecx, dword [edi + 0x17c]
mov eax, edi
call fcn.004ee658
mov dword [edi + 0x17c], eax
pop edi
pop esi
pop ebx
ret

Function at 0x4ee4a8
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov edi, eax
mov esi, ecx
dec esi
test esi, esi
jl 0x4ee4cd
inc esi
mov eax, edi
call fcn.004ee48c
xor byte [ebx], al
mov dl, byte [ebx]
mov eax, edi
call fcn.004ee434
inc ebx
dec esi
jne 0x4ee4b7
pop edi
pop esi
pop ebx
ret
Function at 0x4ee55c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
mov esi, ecx
lea edi, [ebp - 0x14]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 4], edx
mov edi, eax
mov eax, dword [ebp - 4]
call fcn.00405254
xor eax, eax
push ebp
push 0x4ee5d1
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 4]
mov eax, edi
call fcn.004ee4d4
mov dword [ebp - 8], 0xc
lea esi, [ebp - 0x14]
mov eax, edi
call fcn.004ee48c
mov ebx, eax
xor bl, byte [esi]
mov edx, ebx
mov eax, edi
call fcn.004ee434
mov byte [esi], bl
inc esi
dec dword [ebp - 8]
jne 0x4ee59c
mov bl, byte [ebp - 9]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ee5d8
lea eax, [ebp - 4]
call fcn.00404db4
ret
Function at 0x4f2f2c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, dword [ebp + 8]
add esi, 0xfffffbf4
mov eax, dword [ebp + 8]
mov word [eax - 0x1a7c], 0
mov eax, dword [ebp + 8]
cmp dword [eax - 0x1a74], 0
jne 0x4f2f82
cmp dword [eax - 0x1a78], 0
jne 0x4f2f82
mov eax, dword [ebp + 8]
mov word [eax - 0x1a7c], 1
mov eax, dword [ebp + 8]
mov dword [eax - 0x1a78], 0x10000
mov dword [eax - 0x1a74], 0
mov dword [ebp - 8], 0x7fff
mov dword [ebp - 4], 0
mov eax, dword [ebp - 8]
mov edx, dword [esi]
mov ecx, dword [edx + 0xbac]
mov word [ecx + eax*2], 0
mov eax, ecx
mov edx, 0xfffe
xor ecx, ecx
call fcn.004082a4
mov eax, dword [esi]
mov eax, dword [eax + 0x1b0]
mov ax, word [eax*8 + 0x538dda]
mov edx, dword [ebp + 8]
mov word [edx - 0x1a82], ax
mov eax, dword [esi]
mov eax, dword [eax + 0x1b0]
mov ax, word [eax*8 + 0x538dd8]
mov edx, dword [ebp + 8]
mov word [edx - 0x1a84], ax
mov eax, dword [esi]
mov eax, dword [eax + 0x1b0]
movzx eax, word [eax*8 + 0x538ddc]
mov edx, dword [ebp + 8]
mov dword [edx - 0x1a88], eax
mov eax, dword [esi]
mov eax, dword [eax + 0x1b0]
mov ax, word [eax*8 + 0x538dde]
mov edx, dword [ebp + 8]
mov word [edx - 0x1a8a], ax
mov eax, dword [esi]
mov eax, dword [eax + 0x1b0]
cmp eax, 2
jg 0x4f3032
mov eax, dword [esi]
mov eax, dword [eax + 0x27c]
or word [eax + 8], 4
jmp 0x4f3044
cmp eax, 8
jl 0x4f3044
mov eax, dword [esi]
mov eax, dword [eax + 0x27c]
or word [eax + 8], 2
mov eax, dword [ebp + 8]
mov word [eax - 0x1112], 0
mov eax, dword [ebp + 8]
mov dword [eax - 0x1120], 0
mov dword [eax - 0x111c], 0
mov bx, 0x8000
mov eax, dword [ebp + 8]
lea edi, [eax - 0x420]
mov eax, dword [esi]
mov edx, dword [eax + 0xba4]
mov ecx, ebx
mov eax, dword [edi + 4]
call dword [edi]
mov edx, dword [ebp + 8]
mov word [edx - 0x1a7a], ax
mov eax, dword [ebp + 8]
cmp word [eax - 0x1a7a], 0
je 0x4f30a8
mov eax, dword [ebp + 8]
cmp word [eax - 0x1a7a], 0xffff
jne 0x4f30c0
mov eax, dword [ebp + 8]
mov byte [eax - 0x1a7f], 1
mov eax, dword [ebp + 8]
mov word [eax - 0x1a7a], 0
jmp 0x4f3124
mov eax, dword [ebp + 8]
mov byte [eax - 0x1a7f], 0
mov eax, dword [ebp + 8]
cmp word [eax - 0x1a7a], 0x106
jae 0x4f30e2
mov eax, dword [ebp + 8]
push eax
call fcn.004f2d78
pop ecx
mov eax, dword [ebp + 8]
mov word [eax - 0x1a8c], 0
xor ebx, ebx
movzx eax, bx
mov edx, dword [esi]
mov edx, dword [edx + 0xba4]
movzx eax, byte [edx + eax]
mov edx, dword [ebp + 8]
mov dx, word [edx - 0x1a8c]
shl edx, 5
xor ax, dx
and ax, 0x7fff
mov edx, dword [ebp + 8]
mov word [edx - 0x1a8c], ax
inc ebx
cmp bx, 2
jne 0x4f30f0
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret
Function at 0x4f8190
Capabilities:
Get common file path

Disassembly:
push ebx
push esi
add esp, 0xfffffed0
mov esi, edx
mov ebx, eax
cmp dword [ebx + 0x1d0], 0
je 0x4f81b4
mov eax, dword [ebx + 0x1d0]
call fcn.004e6df0
test al, al
jne 0x4f81ca
push esp
push 0x12d
call sub.kernel32.dll_GetTempPathA
mov edx, esi
mov eax, esp
call fcn.004e70f4
jmp 0x4f81d7
mov eax, esi
mov edx, dword [ebx + 0x1d0]
call fcn.00404e08
add esp, 0x130
pop esi
pop ebx
ret

Function at 0x4f8424
Capabilities:
Get file system object information

Disassembly:
push ebx
push esi
add esp, 0xfffffea0
mov esi, edx
mov ebx, eax
push esi
push 0x160
lea eax, [esp + 8]
push eax
push 0
push ebx
call sub.shell32.dll_SHGetFileInfoA
test eax, eax
jne 0x4f844c
or eax, 0xffffffff
jmp 0x4f8450
mov eax, dword [esp + 4]
add esp, 0x160
pop esi
pop ebx
ret
Function at 0x4ff094
Capabilities:
Get disk information
Get file system object information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe7c
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x184], edx
mov dword [ebp - 0x170], edx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4ff2e2
push dword fs:[eax]
mov dword fs:[eax], esp
mov ecx, dword [ebp - 4]
mov dl, 1
mov eax, dword [0x4413c0]
call fcn.004428a4
mov esi, eax
mov edx, dword [ebp - 4]
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x68]
mov edx, 0x10
mov eax, esi
call fcn.0044c3c4
mov edx, 0x10
mov eax, esi
call fcn.0044c3a0
xor edx, edx
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x5c]
xor edx, edx
mov eax, esi
call fcn.00442da0
xor edx, edx
mov eax, esi
call fcn.0044cb2c
mov edx, 0x4ff2f8
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x378]
call fcn.0045a300
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x22c]
call fcn.00488b84
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x22c]
call fcn.00488ba4
mov bl, 0x41
lea eax, [ebp - 0x170]
mov edx, ebx
call fcn.00404f94
mov edx, dword [ebp - 0x170]
lea eax, [ebp - 8]
mov ecx, 0x4ff31c
call fcn.004050b8
mov eax, dword [ebp - 8]
call fcn.00405264
push eax
call sub.kernel32.dll_GetDriveTypeA
mov edi, eax
test edi, edi
je 0x4ff297
cmp edi, 1
je 0x4ff297
push 0x301
push 0x160
lea eax, [ebp - 0x16c]
push eax
push 0
mov eax, dword [ebp - 8]
call fcn.00405264
push eax
call sub.shell32.dll_SHGetFileInfoA
test eax, eax
je 0x4ff297
mov eax, esi
call fcn.00442c78
mov eax, dword [eax + 0x14]
mov edx, 0x80000005
call fcn.0042aef0
lea edx, [ebp - 0x180]
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x44]
lea eax, [ebp - 0x180]
push eax
mov eax, esi
call fcn.00442c78
pop edx
call fcn.0042b588
push 3
push 0
push 0
push 0x10
push 0x10
mov eax, dword [ebp - 0x16c]
push eax
push 0
push 0
mov eax, esi
call fcn.00442c78
call fcn.0042ba88
push eax
call sub.user32.dll_DrawIconEx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x22c]
call fcn.00488a34
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x184]
lea edx, [ebp - 0x160]
mov ecx, 0x104
call fcn.0040501c
mov edx, dword [ebp - 0x184]
mov eax, dword [ebp - 0xc]
call fcn.004884d4
mov eax, dword [esi + 0x168]
call fcn.0042daac
push eax
mov eax, dword [esi + 0x168]
call fcn.0042daac
mov edx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x378]
pop ecx
call fcn.00459dd8
mov ecx, eax
xor edx, edx
mov eax, dword [ebp - 0xc]
call fcn.0048868c
cmp edi, 3
jne 0x4ff297
mov eax, dword [ebp - 4]
cmp byte [eax + 0x37c], 0
je 0x4ff297
mov cl, 1
mov edx, 3
mov eax, dword [ebp - 0xc]
call fcn.0048861c
inc ebx
cmp bl, 0x5b
jne 0x4ff148
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x22c]
call fcn.00488d80
mov eax, esi
call fcn.00403fc4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ff2e9
lea eax, [ebp - 0x184]
call fcn.00404db4
lea eax, [ebp - 0x170]
call fcn.00404db4
lea eax, [ebp - 8]
call fcn.00404db4
ret
Function at 0x4ffcf0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffcc
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], ecx
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405254
xor eax, eax
push ebp
push 0x4ffe2b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, edi
call fcn.00404db4
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.00405264
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x4ffe08
mov eax, ebx
call fcn.004027c8
mov esi, eax
push esi
push ebx
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.00405264
push eax
call sub.version.dll_GetFileVersionInfoA
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x4ffe3c
push esi
call sub.version.dll_VerQueryValueA
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x4ffe40
push esi
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x4ffdff
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x10]
movzx eax, word [eax]
mov dword [ebp - 0x34], eax
mov byte [ebp - 0x30], 0
mov eax, dword [ebp - 0x10]
movzx eax, word [eax + 2]
mov dword [ebp - 0x2c], eax
mov byte [ebp - 0x28], 0
lea edx, [ebp - 0x34]
mov ecx, 1
mov eax, 0x4ffe64
call fcn.0040afa8
push 0x4ffe78
push dword [ebp - 0x18]
push 0x4ffe94
push dword [ebp - 4]
lea eax, [ebp - 0x1c]
mov edx, 4
call fcn.0040512c
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x1c]
call fcn.00405264
push eax
push esi
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x4ffdff
mov eax, edi
mov edx, dword [ebp - 0x20]
call fcn.00404fa4
mov edx, ebx
mov eax, esi
call fcn.004027e8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ffe32
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.00404dd8
lea eax, [ebp - 4]
call fcn.00404db4
ret
Function at 0x50a130
Capabilities:
Shutdown system

Disassembly:
push ebx
add esp, 0xffffffd8
mov ebx, edx
mov eax, dword [0x5396c4]
cmp dword [eax], 2
jne 0x50a1aa
push esp
push 0x28
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
cmp eax, 1
sbb eax, eax
inc eax
test al, al
je 0x50a1aa
lea eax, [esp + 0xc]
push eax
push 0x50a1c0
push 0
call sub.advapi32.dll_LookupPrivilegeValueA
cmp eax, 1
sbb eax, eax
inc eax
mov dword [esp + 8], 1
mov dword [esp + 0x14], 2
mov edx, 0x10
xor ecx, ecx
mov dword [esp + 4], ecx
test al, al
je 0x50a1aa
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x1c]
push eax
push edx
lea eax, [esp + 0x14]
push eax
push 0
mov eax, dword [esp + 0x14]
push eax
call sub.advapi32.dll_AdjustTokenPrivileges
push 0
push ebx
call sub.user32.dll_ExitWindowsEx
cmp eax, 1
sbb eax, eax
inc eax
add esp, 0x28
pop ebx
ret
Function at 0x5273d0
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x30], ebx
mov esi, ecx
mov dword [ebp - 4], edx
mov edi, eax
xor eax, eax
push ebp
push 0x5275dc
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [edi + 0x414]
cmp byte [eax + 0x210], 0
jne 0x527418
inc dword [edi + 0xbdc]
mov bl, 1
jmp 0x5275c1
mov eax, dword [edi + 0x410]
cmp byte [eax + 0x210], 0
je 0x527468
lea edx, [ebp - 0x30]
mov eax, esi
call fcn.0040a530
mov eax, dword [ebp - 0x30]
lea edx, [ebp - 0x2c]
call fcn.00409550
mov eax, dword [ebp - 0x2c]
push eax
lea edx, [ebp - 0x38]
mov eax, dword [ebp + 8]
call fcn.0040a530
mov eax, dword [ebp - 0x38]
lea edx, [ebp - 0x34]
call fcn.00409550
mov edx, dword [ebp - 0x34]
pop eax
call fcn.004051b0
je 0x527468
xor ebx, ebx
jmp 0x5275c1
cmp dword [ebp - 4], 0
jne 0x52747b
inc dword [edi + 0xbdc]
mov bl, 1
jmp 0x5275c1
xor ebx, ebx
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, esi
call fcn.00405264
push eax
call sub.kernel32.dll_CreateFileA_1
mov esi, eax
cmp esi, 0xffffffff
je 0x5275c1
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp + 8]
call fcn.00405264
push eax
call sub.kernel32.dll_CreateFileA_1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
je 0x5275bb
push 0
push 0
push 0
push 2
push 0
push esi
call sub.kernel32.dll_CreateFileMappingA
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x5275b2
push 0
push 0
push 0
push 2
push 0
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_CreateFileMappingA
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x5275a9
push 0
push 0
push 0
push 4
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_MapViewOfFile
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x5275a0
push 0
push 0
push 0
push 4
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_MapViewOfFile
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x527597
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
call fcn.004095bc
mov ecx, eax
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x24]
sub eax, dword [ebp - 0x20]
sbb edx, dword [ebp - 0x1c]
add eax, dword [edi + 0xbe8]
adc edx, dword [edi + 0xbec]
mov dword [edi + 0xbe8], eax
mov dword [edi + 0xbec], edx
mov ebx, ecx
test cl, cl
je 0x52758e
mov eax, dword [ebp - 4]
add dword [edi + 0xbd8], eax
inc dword [edi + 0xbdc]
mov eax, dword [ebp - 0x18]
push eax
call sub.kernel32.dll_UnmapViewOfFile
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_UnmapViewOfFile
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_CloseHandle_1
push esi
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5275e3
lea eax, [ebp - 0x38]
mov edx, 4
call fcn.00404dd8
ret