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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00406f78
mov eax, dword [ebp - 8]
call fcn.00406f78
xor eax, eax
push ebp
push 0x51d48d
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0xc], eax
cmp dword [ebp - 4], 0
je 0x51d409
mov eax, dword [ebp - 4]
test eax, eax
je 0x51d3f1
mov edx, eax
sub edx, 0xa
cmp word [edx], 2
je 0x51d3f1
lea eax, [ebp - 4]
mov edx, dword [ebp - 4]
call fcn.00406368
cmp word [eax], 0x5c
jne 0x51d409
lea eax, [ebp - 4]
mov ecx, 1
mov edx, 1
call fcn.004077b0
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
mov eax, dword [ebp - 4]
call fcn.0040701c
push eax
push ebx
call sub.advapi32.dll_RegOpenKeyExW_1
test eax, eax
jne 0x51d472
lea eax, [ebp - 0x14]
push eax
push 0
lea eax, [ebp - 0x18]
push eax
push 0
mov eax, dword [ebp - 8]
call fcn.0040701c
mov ebx, eax
push ebx
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
jne 0x51d469
cmp dword [ebp - 0x14], 4
jne 0x51d469
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x18]
push eax
push 0
push ebx
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x51d494
lea eax, [ebp - 8]
mov edx, 2
call fcn.00406f88
ret

Function at 0x51d49c
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov esi, eax
mov ebx, dword [ebp + 8]
mov eax, dword [ebp - 4]
call fcn.00406f78
xor eax, eax
push ebp
push 0x51d5a6
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
xor edx, edx
call fcn.00406f90
cmp dword [ebp - 4], 0
je 0x51d509
mov eax, dword [ebp - 4]
test eax, eax
je 0x51d4f1
mov edx, eax
sub edx, 0xa
cmp word [edx], 2
je 0x51d4f1
lea eax, [ebp - 4]
mov edx, dword [ebp - 4]
call fcn.00406368
cmp word [eax], 0x5c
jne 0x51d509
lea eax, [ebp - 4]
mov ecx, 1
mov edx, 1
call fcn.004077b0
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
mov eax, dword [ebp - 4]
call fcn.0040701c
push eax
push esi
call sub.advapi32.dll_RegOpenKeyExW_1
test eax, eax
jne 0x51d590
mov eax, ebx
mov edx, 0x400
call fcn.0040731c
mov eax, dword [ebx]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x51d544
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebx]
call fcn.0040701c
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegEnumKeyExW
test eax, eax
jne 0x51d57e
mov eax, dword [ebx]
call fcn.0040701c
mov edx, eax
mov eax, ebx
call fcn.0040714c
jmp 0x51d587
mov eax, ebx
xor edx, edx
call fcn.00406f90
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x51d5ad
lea eax, [ebp - 4]
call fcn.00406f80
ret
Function at 0x51e25c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push ebx
push esi
mov ebx, eax
xor eax, eax
push ebp
push 0x51e2e3
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
mov edx, 0x104
call fcn.0040731c
mov eax, dword [ebx]
mov dword [ebp - 4], eax
mov esi, dword [ebp - 4]
test esi, esi
je 0x51e294
sub esi, 4
mov esi, dword [esi]
push esi
mov eax, dword [ebx]
call fcn.0040701c
push eax
call sub.kernel32.dll_GetWindowsDirectoryW
mov eax, dword [ebx]
call fcn.0040701c
mov edx, eax
lea eax, [ebp - 0xc]
call fcn.0040714c
mov eax, dword [ebp - 0xc]
lea edx, [ebp - 8]
call fcn.004188b0
mov edx, dword [ebp - 8]
mov eax, ebx
call fcn.00406f90
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x51e2ea
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.00406f88
ret

Function at 0x51e2f0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push ebx
push esi
mov ebx, eax
xor eax, eax
push ebp
push 0x51e377
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
mov edx, 0x104
call fcn.0040731c
mov eax, dword [ebx]
mov dword [ebp - 4], eax
mov esi, dword [ebp - 4]
test esi, esi
je 0x51e328
sub esi, 4
mov esi, dword [esi]
push esi
mov eax, dword [ebx]
call fcn.0040701c
push eax
call sub.kernel32.dll_GetSystemDirectoryW
mov eax, dword [ebx]
call fcn.0040701c
mov edx, eax
lea eax, [ebp - 0xc]
call fcn.0040714c
mov eax, dword [ebp - 0xc]
lea edx, [ebp - 8]
call fcn.004188b0
mov edx, dword [ebp - 8]
mov eax, ebx
call fcn.00406f90
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x51e37e
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.00406f88
ret

Function at 0x51e384
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push ebx
push esi
mov ebx, eax
xor eax, eax
push ebp
push 0x51e40b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
mov edx, 0x104
call fcn.0040731c
mov eax, dword [ebx]
mov dword [ebp - 4], eax
mov esi, dword [ebp - 4]
test esi, esi
je 0x51e3bc
sub esi, 4
mov esi, dword [esi]
mov eax, dword [ebx]
call fcn.0040701c
push eax
push esi
call sub.kernel32.dll_GetTempPathW
mov eax, dword [ebx]
call fcn.0040701c
mov edx, eax
lea eax, [ebp - 0xc]
call fcn.0040714c
mov eax, dword [ebp - 0xc]
lea edx, [ebp - 8]
call fcn.004188b0
mov edx, dword [ebp - 8]
mov eax, ebx
call fcn.00406f90
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x51e412
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.00406f88
ret
Function at 0x51f7c4
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, 4
push 0
push 0
dec ecx
jne 0x51f7cc
push ecx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00406f78
xor eax, eax
push ebp
push 0x51f8ed
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
mov ecx, dword [ebp - 4]
mov edx, 0x51f904
call fcn.00407474
mov eax, dword [ebp - 8]
call fcn.0051e008
push 5
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.0040701c
push eax
push 0x51f910
push 0
call sub.shell32.dll_ShellExecuteW
cmp eax, 0x1f
ja 0x51f8bd
push 5
push 0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0x11
lea edx, [ebp - 0x14]
xor ecx, ecx
mov eax, 0x51f928
call fcn.00412f68
mov eax, dword [ebp - 0xc]
call fcn.0040701c
push eax
push 0x51f968
push 0x51f910
push 0
call sub.shell32.dll_ShellExecuteW
cmp eax, 0x1f
ja 0x51f8bd
call fcn.00522a98
test al, al
je 0x51f8bd
push 5
lea eax, [ebp - 0x20]
call fcn.0051e2f0
push dword [ebp - 0x20]
push 0x51f990
lea edx, [ebp - 0x24]
mov eax, dword [ebp - 4]
call fcn.004111b4
push dword [ebp - 0x24]
lea eax, [ebp - 0x1c]
mov edx, 3
call fcn.00407558
mov edx, dword [ebp - 0x1c]
lea eax, [ebp - 0x18]
mov ecx, 0
call fcn.004071e4
mov eax, dword [ebp - 0x18]
call fcn.004068ec
push eax
call sub.kernel32.dll_WinExec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x51f8f4
lea eax, [ebp - 0x24]
mov edx, 3
call fcn.00406f88
lea eax, [ebp - 0x18]
call fcn.0040617c
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00406f88
ret

Function at 0x51ffd0
Capabilities:
Read file on windows

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
xor esi, esi
cmp ebx, 0xffffffff
je 0x520066
mov eax, esp
mov ecx, 3
xor edx, edx
call fcn.004048a0
push 0
push 0
push 0
push ebx
call sub.kernel32.dll_SetFilePointer
push 0
lea eax, [esp + 8]
push eax
push 3
lea eax, [esp + 0xc]
push eax
push ebx
call sub.kernel32.dll_ReadFile
cmp byte [esp], 0xff
jne 0x520024
cmp byte [esp + 1], 0xfe
jne 0x520024
mov esi, 1
jmp 0x520051
cmp byte [esp], 0xfe
jne 0x520038
cmp byte [esp + 1], 0xff
jne 0x520038
mov esi, 2
jmp 0x520051
cmp byte [esp], 0xef
jne 0x520051
cmp byte [esp + 1], 0xbb
jne 0x520051
cmp byte [esp + 2], 0xbf
jne 0x520051
mov esi, 3
mov edx, esi
mov eax, ebx
call fcn.00520070
push 0
push 0
push 0
push ebx
call sub.kernel32.dll_SetFilePointer
mov eax, esi
pop ecx
pop edx
pop esi
pop ebx
ret
Function at 0x52009c
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x10], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00406f78
xor eax, eax
push ebp
push 0x5202ae
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x18]
xor edx, edx
call fcn.00406f90
push 0
push 0x8000080
push 3
push 0
push 3
push 0x80000000
mov eax, dword [ebp - 4]
call fcn.0040701c
push eax
call sub.kernel32.dll_CreateFileW
mov ebx, eax
cmp ebx, 0xffffffff
je 0x520283
push 0
push ebx
call sub.kernel32.dll_GetFileSize
mov esi, eax
cmp esi, 0xffffffff
jne 0x52011e
push ebx
call sub.kernel32.dll_CloseHandle_1
jmp 0x520283
mov eax, ebx
call fcn.0051ffd0
mov edi, eax
cmp esi, 0xffffffff
je 0x52027d
cmp edi, 1
je 0x52013e
cmp edi, 2
jne 0x5201c6
sub esi, 2
push 0
push 0
push 2
push ebx
call sub.kernel32.dll_SetFilePointer
mov edx, esi
sar edx, 1
jns 0x520156
adc edx, 0
lea eax, [ebp - 8]
call fcn.0040731c
mov eax, dword [ebp - 8]
test eax, eax
je 0x52017b
mov edx, eax
sub edx, 0xa
cmp word [edx], 2
je 0x52017b
lea eax, [ebp - 8]
mov edx, dword [ebp - 8]
call fcn.00406368
test eax, eax
je 0x520184
sub eax, 4
mov eax, dword [eax]
push 0
lea edx, [ebp - 0x1c]
push edx
add eax, eax
push eax
mov eax, dword [ebp - 8]
push eax
push ebx
call sub.kernel32.dll_ReadFile
mov edx, dword [ebp - 0x1c]
shr edx, 1
lea eax, [ebp - 8]
call fcn.0040731c
cmp edi, 2
jne 0x5201b6
mov eax, dword [ebp - 8]
call fcn.0040701c
call fcn.0051df64
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 8]
call fcn.00406f90
jmp 0x52027d
cmp edi, 3
jne 0x52021c
sub esi, 3
push 0
push 0
push 3
push ebx
call sub.kernel32.dll_SetFilePointer
lea eax, [ebp - 0xc]
xor ecx, ecx
mov edx, esi
call fcn.00406b60
push 0
lea eax, [ebp - 0x1c]
push eax
push esi
mov eax, dword [ebp - 0xc]
push eax
push ebx
call sub.kernel32.dll_ReadFile
lea eax, [ebp - 0xc]
xor ecx, ecx
mov edx, dword [ebp - 0x1c]
call fcn.00406b60
lea edx, [ebp - 0x20]
mov eax, dword [ebp - 0xc]
call fcn.0040a2d8
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x18]
call fcn.00407208
jmp 0x52027d
push 0
push 0
push 0
push ebx
call sub.kernel32.dll_SetFilePointer
lea eax, [ebp - 0xc]
xor ecx, ecx
mov edx, esi
call fcn.00406b60
push 0
lea eax, [ebp - 0x1c]
push eax
push esi
mov eax, dword [ebp - 0xc]
push eax
push ebx
call sub.kernel32.dll_ReadFile
lea eax, [ebp - 0xc]
xor ecx, ecx
mov edx, dword [ebp - 0x1c]
call fcn.00406b60
cmp dword [ebp - 0x10], 0
je 0x520272
cmp dword [ebp - 0x10], 0x4b0
je 0x520272
mov ecx, dword [ebp - 0x18]
movzx edx, word [ebp - 0x10]
mov eax, dword [ebp - 0xc]
call fcn.005211e0
jmp 0x52027d
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0xc]
call fcn.004071bc
push ebx
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5202b5
lea eax, [ebp - 0x20]
call fcn.00406c28
lea eax, [ebp - 0xc]
call fcn.0040617c
lea eax, [ebp - 8]
mov edx, 2
call fcn.00406f88
ret
Function at 0x5202bc
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ebx
mov ebx, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00406f78
mov eax, dword [ebp - 8]
call fcn.00406f78
xor eax, eax
push ebp
push 0x5203ed
push dword fs:[eax]
mov dword fs:[eax], esp
test bl, bl
je 0x520327
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 8]
call fcn.0040a12c
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x10]
mov edx, 0x52040c
call fcn.0040663c
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
call fcn.00520420
mov ebx, eax
jmp 0x5203c2
xor ebx, ebx
push 0
push 0x8000080
push 2
push 0
push 0
push 0x40000000
mov eax, dword [ebp - 4]
call fcn.0040701c
push eax
call sub.kernel32.dll_CreateFileW
mov edi, eax
cmp edi, 0xffffffff
je 0x5203c2
lea eax, [ebp - 0xc]
mov edx, 0x52041c
call fcn.00406fe4
push 0
lea eax, [ebp - 0x14]
push eax
push 2
mov eax, dword [ebp - 0xc]
call fcn.0040701c
push eax
push edi
call sub.kernel32.dll_WriteFile_1
mov eax, dword [ebp - 8]
test eax, eax
je 0x520391
mov edx, eax
sub edx, 0xa
cmp word [edx], 2
je 0x520391
lea eax, [ebp - 8]
mov edx, dword [ebp - 8]
call fcn.00406368
mov esi, eax
test esi, esi
je 0x52039c
sub esi, 4
mov esi, dword [esi]
push 0
lea eax, [ebp - 0x14]
push eax
mov eax, esi
add eax, eax
push eax
mov eax, dword [ebp - 8]
call fcn.0040701c
push eax
push edi
call sub.kernel32.dll_WriteFile_1
cmp eax, 1
sbb ebx, ebx
inc ebx
push edi
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5203f4
lea eax, [ebp - 0x18]
call fcn.0040617c
lea eax, [ebp - 0x10]
call fcn.0040617c
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00406f88
ret

Function at 0x520420
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.004068dc
xor eax, eax
push ebp
push 0x5204d4
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0x8000080
push 2
push 0
push 0
push 0x40000000
mov eax, ebx
call fcn.0040701c
push eax
call sub.kernel32.dll_CreateFileW
mov ebx, eax
cmp ebx, 0xffffffff
je 0x5204ba
mov eax, dword [ebp - 4]
test eax, eax
je 0x520488
mov edx, eax
sub edx, 0xa
cmp word [edx], 1
je 0x520488
lea eax, [ebp - 4]
xor ecx, ecx
mov edx, dword [ebp - 4]
call fcn.00406398
mov esi, eax
test esi, esi
je 0x520493
sub esi, 4
mov esi, dword [esi]
push 0
lea eax, [ebp - 0xc]
push eax
push esi
mov eax, dword [ebp - 4]
call fcn.004068ec
push eax
push ebx
call sub.kernel32.dll_WriteFile_1
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 5], al
push ebx
call sub.kernel32.dll_CloseHandle_1
jmp 0x5204be
mov byte [ebp - 5], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5204db
lea eax, [ebp - 4]
call fcn.0040617c
ret
Function at 0x5204e8
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.004068dc
xor eax, eax
push ebp
push 0x5205dc
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
test eax, eax
je 0x52052a
mov edx, eax
sub edx, 0xa
cmp word [edx], 1
je 0x52052a
lea eax, [ebp - 4]
xor ecx, ecx
mov edx, dword [ebp - 4]
call fcn.00406398
test eax, eax
je 0x520533
sub eax, 4
mov eax, dword [eax]
dec eax
jge 0x52053f
mov byte [ebp - 5], 1
jmp 0x5205c6
push 0
push 0x80
push 4
push 0
push 3
push 0xc0000000
mov eax, ebx
call fcn.0040701c
push eax
call sub.kernel32.dll_CreateFileW
mov ebx, eax
cmp ebx, 0xffffffff
je 0x5205c2
push 2
push 0
push 0
push ebx
call sub.kernel32.dll_SetFilePointer
mov eax, dword [ebp - 4]
test eax, eax
je 0x520590
mov edx, eax
sub edx, 0xa
cmp word [edx], 1
je 0x520590
lea eax, [ebp - 4]
xor ecx, ecx
mov edx, dword [ebp - 4]
call fcn.00406398
mov esi, eax
test esi, esi
je 0x52059b
sub esi, 4
mov esi, dword [esi]
push 0
lea eax, [ebp - 0xc]
push eax
push esi
mov eax, dword [ebp - 4]
call fcn.004068ec
push eax
push ebx
call sub.kernel32.dll_WriteFile_1
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 5], al
push ebx
call sub.kernel32.dll_CloseHandle_1
jmp 0x5205c6
mov byte [ebp - 5], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5205e3
lea eax, [ebp - 4]
call fcn.0040617c
ret
Function at 0x520a00
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00406f78
mov eax, dword [ebp - 8]
call fcn.00406f78
xor eax, eax
push ebp
push 0x520b86
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
xor edx, edx
call fcn.00406f90
mov eax, dword [ebp - 8]
test eax, eax
je 0x520a65
mov edx, eax
sub edx, 0xa
cmp word [edx], 2
je 0x520a65
lea eax, [ebp - 8]
mov edx, dword [ebp - 8]
call fcn.00406368
test eax, eax
je 0x520a6e
sub eax, 4
mov eax, dword [eax]
dec eax
jge 0x520a7e
lea eax, [ebp - 8]
mov edx, 0x520ba0
call fcn.00406fe4
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 4]
call fcn.0040701c
mov edi, eax
push edi
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
jbe 0x520b5e
mov eax, ebx
call fcn.00404258
mov esi, eax
push esi
push ebx
push 0
push edi
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x520b55
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
push 0x520bb8
push esi
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x520b55
push 0x520bf8
lea ecx, [ebp - 0x20]
mov eax, dword [ebp - 0x1c]
movzx eax, word [eax]
mov edx, 4
call fcn.00411a70
push dword [ebp - 0x20]
lea ecx, [ebp - 0x24]
mov eax, dword [ebp - 0x1c]
movzx eax, word [eax + 2]
mov edx, 4
call fcn.00411a70
push dword [ebp - 0x24]
push 0x520c28
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 8]
call fcn.004111b4
push dword [ebp - 0x28]
lea eax, [ebp - 0xc]
mov edx, 5
call fcn.00407558
xor eax, eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0xc]
call fcn.0040701c
push eax
push esi
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x520b55
cmp dword [ebp - 0x18], 1
jbe 0x520b55
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x1c]
call fcn.0040714c
mov edx, ebx
mov eax, esi
call fcn.00404274
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x520b8d
lea eax, [ebp - 0x28]
mov edx, 3
call fcn.00406f88
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00406f88
ret
Function at 0x520c2c
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 5
push 0
push 0
dec ecx
jne 0x520c35
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x520e17
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
xor edx, edx
call fcn.00406f90
mov eax, edi
xor edx, edx
call fcn.00406f90
xor eax, eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x10]
push eax
mov eax, ebx
call fcn.0040701c
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jbe 0x520def
mov eax, dword [ebp - 0xc]
call fcn.00404258
mov dword [ebp - 0x18], eax
xor eax, eax
push ebp
push 0x520de8
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 0
mov eax, ebx
call fcn.0040701c
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x520dcf
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1c]
push eax
push 0x520e28
mov eax, dword [ebp - 0x18]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x520dcf
push 0x520e68
lea ecx, [ebp - 0x20]
mov eax, dword [ebp - 0x1c]
movzx eax, word [eax]
mov edx, 4
call fcn.00411a70
push dword [ebp - 0x20]
lea ecx, [ebp - 0x24]
mov eax, dword [ebp - 0x1c]
movzx eax, word [eax + 2]
mov edx, 4
call fcn.00411a70
push dword [ebp - 0x24]
push 0x520e98
lea eax, [ebp - 4]
mov edx, 4
call fcn.00407558
push 0x520e68
lea ecx, [ebp - 0x28]
mov eax, dword [ebp - 0x1c]
movzx eax, word [eax]
mov edx, 4
call fcn.00411a70
push dword [ebp - 0x28]
lea ecx, [ebp - 0x2c]
mov eax, dword [ebp - 0x1c]
movzx eax, word [eax + 2]
mov edx, 4
call fcn.00411a70
push dword [ebp - 0x2c]
push 0x520ec8
lea eax, [ebp - 8]
mov edx, 4
call fcn.00407558
xor eax, eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 4]
call fcn.0040701c
push eax
mov eax, dword [ebp - 0x18]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x520d9c
cmp dword [ebp - 0x14], 1
jbe 0x520d9c
mov eax, esi
mov edx, dword [ebp - 0x1c]
call fcn.0040714c
xor eax, eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 8]
call fcn.0040701c
push eax
mov eax, dword [ebp - 0x18]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x520dcf
cmp dword [ebp - 0x14], 1
jbe 0x520dcf
mov eax, edi
mov edx, dword [ebp - 0x1c]
call fcn.0040714c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x520def
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x18]
call fcn.00404274
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x520e1e
lea eax, [ebp - 0x2c]
mov edx, 4
call fcn.00406f88
lea eax, [ebp - 8]
mov edx, 2
call fcn.00406f88
ret
Function at 0x520ee4
Capabilities:
Get memory capacity

Disassembly:
push ebx
push esi
add esp, 0xffffffc0
mov esi, edx
mov ebx, eax
mov eax, esp
xor ecx, ecx
mov edx, 0x40
call fcn.004048a0
mov dword [esp], 0x40
push esp
call sub.kernel32.dll_GlobalMemoryStatusEx
mov eax, dword [esp + 8]
mov dword [ebx], eax
mov eax, dword [esp + 0xc]
mov dword [ebx + 4], eax
mov eax, dword [esp + 0x10]
mov dword [esi], eax
mov eax, dword [esp + 0x14]
mov dword [esi + 4], eax
add esp, 0x40
pop esi
pop ebx
ret

Function at 0x5212cc
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
push edi
xor eax, eax
push ebp
push 0x5212f9
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x24]
push eax
call sub.kernel32.dll_GetSystemInfo_1
mov ebx, dword [ebp - 0x10]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x521305
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x52168c
Capabilities:
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], ecx
mov byte [ebp - 9], dl
mov ebx, eax
xor eax, eax
push ebp
push 0x521838
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0xa], 1
mov dl, 1
mov eax, dword [0x444118]
call fcn.00434874
mov dword [ebp - 0x10], eax
xor edx, edx
push ebp
push 0x5217d6
push dword fs:[edx]
mov dword fs:[edx], esp
lea edx, [ebp - 4]
mov eax, ebx
call fcn.00418900
lea eax, [ebp - 0x1c]
mov ecx, 0x521858
mov edx, dword [ebp - 4]
call fcn.00407474
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x10]
mov edx, 0x1ff
call fcn.00521548
mov eax, dword [ebp - 0x10]
mov edx, dword [eax]
call dword [edx + 0x14]
mov ebx, eax
dec ebx
test ebx, ebx
jl 0x5217bb
inc ebx
mov dword [ebp - 0x14], 0
push dword [ebp - 4]
push 0x521870
lea ecx, [ebp - 0x20]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
mov esi, dword [eax]
call dword [esi + 0xc]
push dword [ebp - 0x20]
lea eax, [ebp - 8]
mov edx, 3
call fcn.00407558
mov eax, dword [ebp - 8]
call fcn.00412058
cmp eax, 0xffffffff
je 0x521763
test al, 0x10
je 0x521763
movzx edx, byte [ebp - 9]
mov eax, dword [ebp - 8]
call fcn.0052168c
mov byte [ebp - 0x15], al
jmp 0x5217a7
cmp byte [ebp - 9], 0
je 0x521775
mov eax, dword [ebp - 8]
call fcn.00521430
test al, al
je 0x5217b1
push 0x80
mov eax, dword [ebp - 8]
call fcn.0040701c
push eax
call sub.kernel32.dll_SetFileAttributesW
test eax, eax
je 0x5217a2
mov eax, dword [ebp - 8]
call fcn.0040701c
push eax
call sub.kernel32.dll_DeleteFileW
cmp eax, 1
sbb eax, eax
inc eax
jmp 0x5217a4
xor eax, eax
mov byte [ebp - 0x15], al
cmp byte [ebp - 0x15], 0
jne 0x5217b1
mov byte [ebp - 0xa], 0
inc dword [ebp - 0x14]
dec ebx
jne 0x52171b
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5217dd
mov eax, dword [ebp - 0x10]
xor edx, edx
mov dword [ebp - 0x10], edx
call fcn.00404ee4
ret