joyce8/EMBER2024-capa huggingface dataset:
Function at 0x55cdf0
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov byte [ebp - 1], 0
push str.GetDiskFreeSpaceExW
push 0x64abb8
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x55ce55
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x20]
push ecx
lea edx, [ebp - 0x30]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [ebp - 8]
push eax
call fcn.00448e00
add esp, 4
mov byte [ebp - 1], al
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 0x20]
mov dword [ecx], edx
mov eax, dword [ebp - 0x1c]
mov dword [ecx + 4], eax
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp - 0x28]
mov dword [ecx], edx
mov eax, dword [ebp - 0x24]
mov dword [ecx + 4], eax
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x18]
push edx
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
test eax, eax
jne 0x55ce77
xor al, al
jmp 0x55cecb
mov eax, dword [ebp - 0xc]
mul dword [ebp - 0x10]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov dword [ecx + 4], edx
movzx edx, byte [ebp - 1]
test edx, edx
jne 0x55cec9
mov eax, dword [ebp - 0x14]
xor ecx, ecx
mov edx, dword [ebp + 0xc]
push ecx
push eax
mov eax, dword [edx + 4]
push eax
mov ecx, dword [edx]
push ecx
call fcn.00496800
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
mov dword [ecx + 4], edx
mov edx, dword [ebp - 0x18]
xor eax, eax
mov ecx, dword [ebp + 0xc]
push eax
push edx
mov edx, dword [ecx + 4]
push edx
mov eax, dword [ecx]
push eax
call fcn.00496800
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
mov dword [ecx + 4], edx
mov al, 1
mov esp, ebp
pop ebp
ret

Function at 0x55cee0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x428
mov eax, dword [0x70c0f0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, 2
imul ecx, eax, 0
mov dword [ebp - 0x420], ecx
cmp dword [ebp - 0x420], 0x20c
jae 0x55cf0f
jmp 0x55cf14
call fcn.00496028
xor edx, edx
mov eax, dword [ebp - 0x420]
mov word [ebp + eax - 0x210], dx
mov ecx, 2
imul edx, ecx, 0
mov dword [ebp - 0x424], edx
cmp dword [ebp - 0x424], 0x20c
jae 0x55cf40
jmp 0x55cf45
call fcn.00496028
xor eax, eax
mov ecx, dword [ebp - 0x424]
mov word [ebp + ecx - 0x41c], ax
push 0x104
lea edx, [ebp - 0x41c]
push edx
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0x10]
push edx
push 0x104
lea eax, [ebp - 0x210]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
mov dword [ebp - 0x428], eax
lea edx, [ebp - 0x210]
push edx
mov ecx, dword [ebp + 0xc]
call fcn.00553ad0
lea eax, [ebp - 0x41c]
push eax
mov ecx, dword [ebp + 0x1c]
call fcn.00553ad0
mov ecx, dword [ebp - 0x428]
push ecx
call fcn.00448e00
add esp, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00495c0c
mov esp, ebp
pop ebp
ret
Function at 0x55d260
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5cf12e
mov eax, dword fs:[0]
push eax
sub esp, 0xb0
mov eax, dword [0x70c0f0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp - 0x10]
call fcn.004479d0
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x44]
call fcn.00553d00
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x44]
push ecx
lea edx, [ebp - 0x6c]
push edx
call fcn.0055d1d0
add esp, 8
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 1
push 0x20
mov ecx, dword [ebp - 0x18]
push ecx
lea edx, [ebp - 0x60]
push edx
call fcn.004524c0
add esp, 0xc
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x20], eax
mov byte [ebp - 4], 2
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x20]
push edx
lea eax, [ebp - 0x38]
push eax
call fcn.00553810
add esp, 0xc
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x60]
call fcn.00447680
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x6c]
call fcn.00447680
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x44]
call fcn.00447680
mov dword [ebp + 8], 0
mov dword [ebp - 0xbc], 0x44
mov dword [ebp - 0xb8], 0
mov dword [ebp - 0xb4], 0
mov dword [ebp - 0xb0], 0
mov dword [ebp - 0x90], 0
xor ecx, ecx
mov word [ebp - 0x8a], cx
mov dword [ebp - 0x88], 0
lea edx, [ebp - 0x38]
push edx
lea eax, [ebp - 0x78]
push eax
call fcn.00457ee0
add esp, 8
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x54]
push ecx
lea edx, [ebp - 0xbc]
push edx
mov eax, dword [ebp + 0x10]
push eax
push 0
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x38]
call fcn.00447710
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov dword [ebp - 0x24], eax
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x78]
call fcn.00447680
cmp dword [ebp - 0x24], 0
jne 0x55d3d8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x28], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x38]
call fcn.00447680
mov eax, dword [ebp - 0x28]
jmp 0x55d403
mov edx, dword [ebp - 0x50]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x54]
mov dword [eax], ecx
mov dword [ebp - 0x2c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x38]
call fcn.00447680
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x55e0e0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp + 0xc]
call fcn.00447720
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 0
lea ecx, [ebp - 0x14]
push ecx
push 0
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x55e132
cmp dword [ebp - 8], 0xea
je 0x55e132
mov eax, dword [ebp - 8]
jmp 0x55e177
mov edx, dword [ebp - 4]
mov dword [ebp - 0xc], edx
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp - 4]
push ecx
mov ecx, dword [ebp + 0xc]
call fcn.00454f00
push eax
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 0x10]
call fcn.0055df60
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0xc]
jbe 0x55e166
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
shr edx, 1
push edx
mov ecx, dword [ebp + 0xc]
call fcn.0045f550
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret 8

Function at 0x55e4b0
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov eax, dword [0x70c0f0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [eax], SysReAllocStringLen
mov dword [eax + 4], 0
mov dword [ebp - 0x64], 0x40
push str.GlobalMemoryStatusEx
push 0x64ac2c
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x68], eax
cmp dword [ebp - 0x68], 0
je 0x55e526
lea ecx, [ebp - 0x64]
push ecx
call dword [ebp - 0x68]
test eax, eax
je 0x55e526
mov edx, dword [ebp - 0x58]
push edx
mov eax, dword [ebp - 0x5c]
push eax
mov ecx, dword [ebp - 0x38]
push ecx
mov edx, dword [ebp - 0x3c]
push edx
call fcn.00458d60
add esp, 0x10
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov dword [ecx + 4], edx
mov al, 1
jmp 0x55e553
mov dword [ebp - 0x24], 0x20
lea edx, [ebp - 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.0045dea0
add esp, 8
xor edx, edx
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov dword [ecx + 4], edx
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00495c0c
mov esp, ebp
pop ebp
ret

Function at 0x55ef90
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 0
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
push 0
push 0
call fcn.004ea779
add esp, 0x18
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
call fcn.0055eed0
add esp, 4
mov esp, ebp
pop ebp
ret
Function at 0x563db0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5cf898
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x70c0f0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x510], 0
je 0x563df6
push 0
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x510]
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [ebp - 0x10]
call fcn.005626c0
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x64c], 0
jne 0x563e4e
push 0x3e8
call fcn.00495c22
add esp, 4
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x18]
call fcn.005c1d40
mov dword [ebp - 0x14], eax
jmp 0x563e35
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x1c]
mov dword [edx + 0x64c], eax
mov ecx, dword [ebp - 0x10]
cmp dword [ecx + 0x64c], 0
je 0x563ea0
push 0x7ea
push 0
push 0x65269c
call fcn.00447430
mov ecx, eax
call fcn.004a74e9
push eax
call dword [sym.imp.USER32.dll_LoadIconW]
push eax
push 0x652690
push 0x7eb
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 4]
push eax
mov ecx, dword [ebp - 0x10]
add ecx, 0x38
push ecx
mov edx, dword [ebp - 0x10]
mov ecx, dword [edx + 0x64c]
call fcn.005c1c00
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x564f10
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5cf9df
mov eax, dword fs:[0]
push eax
sub esp, 0x55c
mov eax, dword [0x70c0f0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x43c], ecx
xor eax, eax
mov word [ebp - 0x420], ax
push 0x206
push 0
lea ecx, [ebp - 0x41e]
push ecx
call fcn.004e1330
add esp, 0xc
push 0
push 0x10
lea edx, [ebp - 0x420]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
xor eax, eax
mov word [ebp - 0x218], ax
push 0x206
push 0
lea ecx, [ebp - 0x216]
push ecx
call fcn.004e1330
add esp, 0xc
push 0x6545b4
push 0x654540
lea edx, [ebp - 0x218]
push edx
call fcn.0045c670
add esp, 0xc
mov dword [ebp - 0x4b8], 0
push 0x54
push 0
lea eax, [ebp - 0x4b4]
push eax
call fcn.004e1330
add esp, 0xc
mov dword [ebp - 0x4b8], 0x58
mov ecx, dword [ebp - 0x43c]
mov edx, dword [ecx + 4]
mov dword [ebp - 0x4b4], edx
mov dword [ebp - 0x4ac], 0x654558
lea eax, [ebp - 0x420]
mov dword [ebp - 0x48c], eax
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x49c], ecx
mov dword [ebp - 0x498], 0x104
mov dword [ebp - 0x488], 0x654524
mov dword [ebp - 0x4a0], 0
mov dword [ebp - 0x484], 0x80006
mov edx, dword [ebp - 0x43c]
mov eax, dword [edx + 4]
push eax
lea ecx, [ebp - 0x450]
call fcn.00496ebd
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x4b8]
push ecx
call dword [sym.imp.COMDLG32.dll_GetSaveFileNameW]
test eax, eax
je 0x565168
push 1
push 0x40
push 2
lea edx, [ebp - 0x218]
push edx
lea ecx, [ebp - 0x568]
call fcn.00462e10
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x568]
call fcn.00462d90
movzx eax, al
test eax, eax
je 0x565159
push 0x37
push 0x5f1b5b
lea ecx, [ebp - 0x460]
call fcn.00460c30
mov dword [ebp - 0x440], eax
mov ecx, dword [ebp - 0x440]
mov dword [ebp - 0x444], ecx
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x444]
push edx
lea eax, [ebp - 0x458]
push eax
mov ecx, dword [ebp - 0x568]
mov edx, dword [ecx + 4]
lea ecx, [ebp + edx - 0x568]
call fcn.00463f80
lea ecx, [ebp - 0x458]
call fcn.00460cd0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x460]
call fcn.00460cd0
push 0
lea eax, [ebp - 0x438]
push eax
mov ecx, dword [ebp - 0x43c]
call fcn.00564dd0
mov dword [ebp - 0x448], eax
mov ecx, dword [ebp - 0x448]
mov dword [ebp - 0x44c], ecx
mov byte [ebp - 4], 3
push 0x4655d0
mov edx, dword [ebp - 0x44c]
push edx
lea eax, [ebp - 0x568]
push eax
call fcn.004652f0
add esp, 8
mov ecx, eax
call fcn.00463b10
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x438]
call fcn.00446610
lea ecx, [ebp - 0x568]
call fcn.00462d60
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x568]
call fcn.00462b20
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x450]
call fcn.00496f3b
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00495c0c
mov esp, ebp
pop ebp
ret
Function at 0x568ba0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5cfe7f
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x70c0f0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x510], 0
je 0x568be6
push 0
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x510]
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [ebp - 0x10]
call fcn.00567530
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x5f4], 0
jne 0x568c3e
push 0x3e8
call fcn.00495c22
add esp, 4
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x18]
call fcn.005c1d40
mov dword [ebp - 0x14], eax
jmp 0x568c25
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x1c]
mov dword [edx + 0x5f4], eax
mov ecx, dword [ebp - 0x10]
cmp dword [ecx + 0x5f4], 0
je 0x568c90
push 0x7ea
push 0
push 0x658828
call fcn.00447430
mov ecx, eax
call fcn.004a74e9
push eax
call dword [sym.imp.USER32.dll_LoadIconW]
push eax
push 0x6587fc
push 0x7eb
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 4]
push eax
mov ecx, dword [ebp - 0x10]
add ecx, 0x38
push ecx
mov edx, dword [ebp - 0x10]
mov ecx, dword [edx + 0x5f4]
call fcn.005c1c00
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x56a640
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], ecx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0x53
jne 0x56a66a
mov ecx, dword [ebp + 0x14]
mov byte [ecx], 1
mov ecx, dword [ebp - 4]
call fcn.0056a190
mov al, 1
jmp 0x56a839
cmp dword [ebp - 8], 0x52
jne 0x56a695
mov edx, dword [ebp + 0x14]
mov byte [edx], 1
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x54c]
push ecx
mov ecx, dword [ebp - 4]
add ecx, 0x4fc
call fcn.0058fea0
mov al, 1
jmp 0x56a839
cmp dword [ebp - 8], 0x55
jne 0x56a6c0
mov edx, dword [ebp + 0x14]
mov byte [edx], 1
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x550]
push ecx
mov ecx, dword [ebp - 4]
add ecx, 0x4fc
call fcn.0058fea0
mov al, 1
jmp 0x56a839
cmp dword [ebp - 8], 0x59
jne 0x56a6eb
mov edx, dword [ebp + 0x14]
mov byte [edx], 1
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x554]
push ecx
mov ecx, dword [ebp - 4]
add ecx, 0x4fc
call fcn.0058fea0
mov al, 1
jmp 0x56a839
cmp dword [ebp - 8], 0x49
jne 0x56a716
mov edx, dword [ebp + 0x14]
mov byte [edx], 1
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x558]
push ecx
mov ecx, dword [ebp - 4]
add ecx, 0x4fc
call fcn.0058fea0
mov al, 1
jmp 0x56a839
cmp dword [ebp - 8], 0x57
jne 0x56a741
mov edx, dword [ebp + 0x14]
mov byte [edx], 1
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x55c]
push ecx
mov ecx, dword [ebp - 4]
add ecx, 0x4fc
call fcn.0058fea0
mov al, 1
jmp 0x56a839
cmp dword [ebp - 8], 0x56
jne 0x56a76c
mov edx, dword [ebp + 0x14]
mov byte [edx], 1
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x560]
push ecx
mov ecx, dword [ebp - 4]
add ecx, 0x4fc
call fcn.0058fea0
mov al, 1
jmp 0x56a839
cmp dword [ebp - 8], 0x4d
jne 0x56a797
mov edx, dword [ebp + 0x14]
mov byte [edx], 1
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x564]
push ecx
mov ecx, dword [ebp - 4]
add ecx, 0x4fc
call fcn.0058fea0
mov al, 1
jmp 0x56a839
cmp dword [ebp - 8], 0x5a
jne 0x56a7bf
mov edx, dword [ebp + 0x14]
mov byte [edx], 1
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x568]
push ecx
mov ecx, dword [ebp - 4]
add ecx, 0x4fc
call fcn.0058fe40
mov al, 1
jmp 0x56a839
cmp dword [ebp - 8], 0x50
jne 0x56a7e7
mov edx, dword [ebp + 0x14]
mov byte [edx], 1
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x56c]
push ecx
mov ecx, dword [ebp - 4]
add ecx, 0x4fc
call fcn.0058fe40
mov al, 1
jmp 0x56a839
cmp dword [ebp - 8], 0x45
jne 0x56a80f
mov edx, dword [ebp + 0x14]
mov byte [edx], 1
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x570]
push ecx
mov ecx, dword [ebp - 4]
add ecx, 0x4fc
call fcn.0058fe40
mov al, 1
jmp 0x56a839
cmp dword [ebp - 8], 0x4b
jne 0x56a837
mov edx, dword [ebp + 0x14]
mov byte [edx], 1
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x574]
push ecx
mov ecx, dword [ebp - 4]
add ecx, 0x4fc
call fcn.0058fe40
mov al, 1
jmp 0x56a839
xor al, al
mov esp, ebp
pop ebp
ret 0x10
Function at 0x56d1b0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x70c0f0]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x418], ecx
xor eax, eax
mov word [ebp - 0x414], ax
push 0x206
push 0
lea ecx, [ebp - 0x412]
push ecx
call fcn.004e1330
add esp, 0xc
mov edx, dword [ebp - 0x418]
movzx eax, byte [edx + 0x57e]
test eax, eax
jne 0x56d29c
xor ecx, ecx
mov word [ebp - 0x20c], cx
push 0x206
push 0
lea edx, [ebp - 0x20a]
push edx
call fcn.004e1330
add esp, 0xc
call fcn.00447430
mov ecx, eax
call fcn.004d6324
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.004e67ab
add esp, 8
push 0x65e77c
lea ecx, [ebp - 0x20c]
push ecx
call fcn.004eb8ca
add esp, 8
push 0x65e750
lea edx, [ebp - 0x20c]
push edx
call fcn.004eb8ca
add esp, 8
push 0x65e754
lea eax, [ebp - 0x20c]
push eax
call fcn.004eb8ca
add esp, 8
lea ecx, [ebp - 0x20c]
push ecx
push 0x104
lea edx, [ebp - 0x414]
push edx
push 0x65e71c
push 0x65e72c
push 0x65e6fc
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov eax, dword [ebp - 0x418]
cmp dword [eax + 0x530], 0
je 0x56d2ce
mov ecx, dword [ebp - 0x418]
add ecx, 0x504
call fcn.004465b0
push eax
mov ecx, dword [ebp - 0x418]
mov ecx, dword [ecx + 0x530]
call fcn.0056a220
mov dword [ebp - 0x41c], 0
push 0x65e70c
lea edx, [ebp - 0x414]
push edx
call fcn.004e664e
add esp, 8
test eax, eax
jne 0x56d341
push 0x65e86c
mov ecx, dword [ebp - 0x418]
add ecx, 0x38
call fcn.00498856
mov dword [ebp - 0x41c], eax
push 0
mov eax, dword [ebp - 0x418]
mov ecx, dword [eax + 0x53c]
call fcn.004ac385
mov ecx, dword [ebp - 0x418]
cmp dword [ecx + 0x530], 0
je 0x56d33c
mov edx, dword [ebp - 0x418]
mov ecx, dword [edx + 0x530]
call fcn.0056b420
jmp 0x56d401
push 0x65e890
lea eax, [ebp - 0x414]
push eax
call fcn.004e664e
add esp, 8
test eax, eax
jne 0x56d3b5
push 0x65e824
mov ecx, dword [ebp - 0x418]
add ecx, 0x38
call fcn.00498856
mov dword [ebp - 0x41c], eax
push 1
mov ecx, dword [ebp - 0x418]
mov ecx, dword [ecx + 0x53c]
call fcn.004ac385
mov edx, dword [ebp - 0x418]
cmp dword [edx + 0x534], 0
je 0x56d3b3
mov eax, dword [ebp - 0x418]
movzx ecx, byte [eax + 0x57e]
push ecx
mov edx, dword [ebp - 0x418]
mov ecx, dword [edx + 0x534]
call fcn.00567090
jmp 0x56d401
push 0x65e848
mov ecx, dword [ebp - 0x418]
add ecx, 0x38
call fcn.00498856
mov dword [ebp - 0x41c], eax
push 0
mov eax, dword [ebp - 0x418]
mov ecx, dword [eax + 0x53c]
call fcn.004ac385
mov ecx, dword [ebp - 0x418]
cmp dword [ecx + 0x530], 0
je 0x56d401
mov edx, dword [ebp - 0x418]
mov ecx, dword [edx + 0x530]
call fcn.0056b420
cmp dword [ebp - 0x41c], 0
je 0x56d424
push 1
push 1
mov eax, dword [ebp - 0x41c]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x41c]
mov eax, dword [edx + 0x158]
call eax
push 0
push 0
mov ecx, dword [ebp - 0x418]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.USER32.dll_InvalidateRect]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00495c0c
mov esp, ebp
pop ebp
ret
Function at 0x570740
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x70c0f0]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x1c], ecx
lea eax, [ebp - 0x18]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x57076c
jmp 0x5707c9
mov ecx, 0xc
imul edx, ecx, 0
lea eax, [ebp + edx - 0x10]
push eax
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov dword [ebp - 0x14], 1
mov ecx, 0xc
imul edx, ecx, 0
mov dword [ebp + edx - 8], 2
push 0
push 0
push 0x10
lea eax, [ebp - 0x14]
push eax
push 0
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x5707bf
jmp 0x5707c9
push 0
push 5
call dword [sym.imp.USER32.dll_ExitWindowsEx]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00495c0c
mov esp, ebp
pop ebp
ret
Function at 0x579f30
Capabilities:
Check if file exists
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov dword [ebp - 0x1c], ecx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x579f4e
xor eax, eax
jmp 0x57a0f9
push 0x10
push 0
push 0
push 1
mov ecx, dword [ebp + 0xc]
push ecx
push 0
call dword [sym.imp.USER32.dll_LoadImageW]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jne 0x579f90
mov edx, dword [ebp - 0x1c]
cmp dword [edx], 0
je 0x579f89
mov eax, dword [ebp + 0xc]
push eax
push 0x67e064
mov ecx, dword [ebp - 0x1c]
mov ecx, dword [ecx]
add ecx, 0x18
call fcn.00543b80
xor eax, eax
jmp 0x57a0f9
mov dword [ebp - 4], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x14], 0
push 0
push 0x8000000
push 3
push 0
push 3
push 0xc0000000
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x579ff4
xor eax, eax
jmp 0x57a0f9
push 0
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.004ea61a
add esp, 4
mov dword [ebp - 0x10], eax
push 0
lea edx, [ebp - 0x2c]
push edx
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
movzx eax, word [edx + 4]
sub eax, 1
shl eax, 4
add eax, 0x16
mov dword [ebp - 0x24], eax
push 0
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_BeginUpdateResourceW]
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0
jmp 0x57a06e
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
mov eax, dword [ebp - 8]
movzx ecx, word [eax + 4]
cmp dword [ebp - 4], ecx
jge 0x57a0c1
mov edx, dword [ebp - 4]
shl edx, 4
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
add ecx, dword [eax + edx + 0x12]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 4]
shl edx, 4
mov eax, dword [ebp - 8]
mov ecx, dword [eax + edx + 0xe]
push ecx
mov edx, dword [ebp - 0x20]
push edx
push 0x804
mov eax, dword [ebp - 4]
shl eax, 4
mov ecx, dword [ebp - 8]
movzx edx, word [ecx + eax + 0x12]
push edx
push 3
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_UpdateResourceW]
jmp 0x57a065
mov ecx, dword [ebp - 0x24]
push ecx
mov edx, dword [ebp - 8]
push edx
push 0x804
push 0x65
push 0xe
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_UpdateResourceW]
push 0
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_EndUpdateResourceW]
mov edx, dword [ebp - 0x10]
push edx
call fcn.004e5587
add esp, 4
mov eax, 1
mov esp, ebp
pop ebp
ret 8