joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404bdd
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x404bf2
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x404c04
xor eax, eax
jmp 0x404c36
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x404c28
cmp esi, eax
jae 0x404c00
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x404c1a
cmp esi, eax
jae 0x404c00
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop ebp
ret

Function at 0x4053e3
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
xor esi, esi
push esi
push 1
push esi
push str.loglobby.log
mov edi, ecx
call fcn.0044a682
push esi
push esi
push esi
push esi
call fcn.00449f9f
lea eax, [ebp - 4]
push str.Config.ini
push eax
call fcn.0043c2b9
add esp, 0x28
push dword [eax]
push 2
push str.Level
push str.DEBUG
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov ecx, dword [ebp - 4]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00404c68
push esi
call fcn.00449f95
pop ecx
mov ecx, edi
call fcn.00518305
pop edi
pop esi
leave
ret

Function at 0x405448
Capabilities:
Check os version
Copy file
Create process on windows
Delete file

Disassembly:
mov eax, 0x51c9b7
call fcn.004a28b4
sub esp, 0xa8
mov eax, dword [0x561be8]
push esi
push edi
mov esi, 0x9c
push esi
mov dword [ebp - 0x10], eax
xor edi, edi
lea eax, [ebp - 0xac]
push edi
push eax
call fcn.004a2db0
add esp, 0xc
lea eax, [ebp - 0xac]
push eax
mov dword [ebp - 0xac], esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x4054a1
cmp dword [ebp - 0xa8], 6
jae 0x4054a1
xor eax, eax
jmp 0x40556b
push dword [0x560194]
lea eax, [ebp - 0xb4]
push eax
call fcn.0043c2b9
push dword [0x560198]
lea eax, [ebp - 0xb0]
push eax
mov dword [ebp - 4], edi
call fcn.0043c2b9
lea eax, [ebp - 0xb4]
push eax
mov byte [ebp - 4], 1
call fcn.0043b931
add esp, 0x14
test eax, eax
jne 0x405518
push 0x34
push 0x525cc8
push 0x525c9c
push edi
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 1
jne 0x405518
push 5
push 0x54937c
push 0x525c98
push str.www.gametea.net
push str.open
push edi
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
xor esi, esi
jmp 0x40554d
push edi
push dword [ebp - 0xb0]
push dword [ebp - 0xb4]
call dword [sym.imp.KERNEL32.dll_CopyFileA]
lea eax, [ebp - 0xb0]
push eax
call fcn.0043b931
test eax, eax
pop ecx
je 0x40554a
push dword [ebp - 0xb0]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x405514
xor esi, esi
inc esi
mov ecx, dword [ebp - 0xb0]
add ecx, 0xfffffff0
call fcn.00404c68
mov ecx, dword [ebp - 0xb4]
add ecx, 0xfffffff0
call fcn.00404c68
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop esi
call fcn.004a2d97
leave
ret
Function at 0x405581
Capabilities:
Create process on windows

Disassembly:
push ebp
lea ebp, [esp - 0xc8]
sub esp, 0x148
mov eax, dword [0x561be8]
push edi
mov dword [ebp + 0xc4], eax
push 0x40
pop ecx
xor eax, eax
mov byte [ebp - 0x40], 0
lea edi, [ebp - 0x3f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x104
lea eax, [ebp - 0x40]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0xe
xor eax, eax
pop ecx
lea edi, [ebp - 0x7c]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x40]
mov dword [ebp - 0x70], eax
lea eax, [ebp - 0x44]
push 0
push eax
mov dword [ebp - 0x80], 0x3c
mov dword [ebp - 0x7c], 0x440
mov dword [ebp - 0x74], str.runas
mov dword [ebp - 0x6c], str._uac
call fcn.0043be5c
mov eax, dword [eax]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x44]
add ecx, 0xfffffff0
mov dword [ebp - 0x68], eax
call fcn.00404c68
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
mov ecx, dword [ebp + 0xc4]
pop edi
call fcn.004a2d97
add ebp, 0xc8
leave
ret
Function at 0x40a0a1
Capabilities:
Read file via mapping

Disassembly:
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
push edi
push str.GT.Shared
push dword [esp + 0x14]
xor edi, edi
push edi
push 4
push edi
push 0xffffffffffffffff
call esi
cmp eax, edi
je 0x40a12a
cmp eax, 0xffffffff
je 0x40a12a
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
cmp eax, 0xb7
jne 0x40a0da
xor eax, eax
inc eax
jmp 0x40a12d
push str.GT.Shared.Size
push 4
push edi
push 4
push edi
push edi
call esi
mov esi, eax
cmp esi, edi
je 0x40a12a
cmp esi, 0xffffffff
je 0x40a12a
call ebx
cmp eax, 0xb7
je 0x40a12a
push 4
push edi
push edi
push 2
push esi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
cmp esi, edi
je 0x40a12a
push 4
lea eax, [esp + 0x14]
push eax
push esi
call fcn.004a1c30
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
xor eax, eax
jmp 0x40a12d
push 2
pop eax
pop edi
pop esi
pop ebx
ret

Function at 0x40a182
Capabilities:
Read file via mapping

Disassembly:
mov eax, 0x51ce71
call fcn.004a28b4
push ecx
push edi
lea ecx, [ebp - 0x10]
call fcn.0040a084
push str.GT.Shared.Size
xor edi, edi
push edi
push 4
call dword [sym.imp.KERNEL32.dll_OpenFileMappingA]
cmp eax, edi
jne 0x40a1af
push 2
pop edi
jmp 0x40a1ce
push 4
push edi
push edi
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, edi
je 0x40a1aa
push 4
push eax
push dword [ebp + 8]
call fcn.004a1c30
add esp, 0xc
or dword [ebp - 4], 0xffffffff
mov ecx, 0x563ffc
call fcn.004979b4
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
mov dword fs:[0], ecx
leave
ret

Function at 0x40a28c
Capabilities:
Read file via mapping

Disassembly:
mov eax, 0x51ce71
call fcn.004a28b4
push ecx
push edi
lea eax, [ebp - 0x10]
xor edi, edi
push eax
mov dword [ebp - 0x10], edi
call fcn.0040a182
test eax, eax
pop ecx
je 0x40a2b0
push 2
pop eax
jmp 0x40a31b
push ebx
mov ebx, dword [ebp + 0xc]
cmp ebx, dword [ebp - 0x10]
jbe 0x40a2be
push 3
pop eax
jmp 0x40a31a
lea ecx, [ebp - 0x10]
call fcn.0040a084
push str.GT.Shared
push edi
push 4
call dword [sym.imp.KERNEL32.dll_OpenFileMappingA]
cmp eax, edi
jne 0x40a2dd
push 2
pop edi
jmp 0x40a30a
push esi
push ebx
push edi
push edi
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
cmp esi, edi
jne 0x40a2f5
push 2
pop edi
jmp 0x40a309
push ebx
push esi
push dword [ebp + 8]
call fcn.004a1c30
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
pop esi
or dword [ebp - 4], 0xffffffff
mov ecx, 0x563ffc
call fcn.004979b4
mov eax, edi
pop ebx
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
leave
ret
Function at 0x40f29c
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
cmp dword [ebp + 0xc], 0x205
push esi
mov esi, ecx
jne 0x40f2d3
lea eax, [ebp - 8]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
movzx eax, word [ebp - 4]
movzx ecx, word [ebp - 8]
shl eax, 0x10
or eax, ecx
push eax
push 0
push 0x19
call fcn.00404ae1
add esp, 0xc
jmp 0x40f319
cmp dword [ebp + 0xc], 0x203
jne 0x40f319
push 5
mov ecx, esi
call fcn.004cc990
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
mov ecx, esi
call fcn.0040e6a2
cmp dword [esi + 0x56fc], 0
jle 0x40f319
mov ecx, dword [esi + 0x5170]
mov eax, dword [ecx]
push 0
push 0
push 0x4f1b
call dword [eax + 8]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
pop esi
leave
ret 8
Function at 0x422a5f
Capabilities:
Hide graphical window

Disassembly:
push esi
push 2
mov esi, ecx
call fcn.004cc990
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
and dword [esi + 0x18], 0
pop esi
ret

Function at 0x422a76
Capabilities:
Hide graphical window

Disassembly:
push esi
push 3
mov esi, ecx
call fcn.004cc990
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [esi + 0x24]
push 0
call fcn.004ce670
mov ecx, dword [esi + 0x28]
push 1
call fcn.004ce670
mov dword [esi + 0x18], 1
pop esi
ret

Function at 0x422aa4
Capabilities:
Hide graphical window

Disassembly:
push esi
push 9
mov esi, ecx
call fcn.004cc990
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [esi + 0x24]
push 1
call fcn.004ce670
mov ecx, dword [esi + 0x28]
push 0
call fcn.004ce670
and dword [esi + 0x18], 0
pop esi
ret

Function at 0x42d76a
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0x10]
mov eax, dword [esi]
and dword [esi], 0
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp + 0x10]
push eax
push 0
push dword [ebp + 8]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x42d7bb
cmp dword [ebp + 0x10], 1
je 0x42d7a4
cmp dword [ebp + 0x10], 2
jne 0x42d7b2
test edi, edi
mov eax, dword [ebp - 4]
je 0x42d7b7
cmp byte [eax + edi - 1], 0
je 0x42d7b7
push 0xd
pop eax
jmp 0x42d7bb
mov dword [esi], eax
xor eax, eax
pop edi
pop esi
leave
ret 0xc

Function at 0x42d7c1
Capabilities:
Set registry value

Disassembly:
push esi
push dword [esp + 0xc]
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push dword [esp + 0x10]
push dword [esp + 0x18]
push 0
push dword [esp + 0x18]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop esi
ret 0xc
Function at 0x42d7ea
Capabilities:
Delete registry value
Persist via run registry key

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x110
mov eax, dword [0x561be8]
push ebx
push esi
push edi
push 0x40
mov dword [ebp + 0x8c], eax
pop ecx
xor ebx, ebx
mov byte [ebp - 0x78], bl
xor eax, eax
lea edi, [ebp - 0x77]
rep stosd dword es:[edi], eax
push 0x2001f
stosw word es:[edi], ax
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push SysReAllocStringLen
lea ecx, [ebp - 0x7c]
mov dword [ebp - 0x80], ebx
stosb byte es:[edi], al
mov dword [ebp - 0x7c], ebx
call fcn.0042d735
cmp dword [ebp + 0x9c], ebx
je 0x42d884
mov edi, dword [ebp + 0x98]
cmp edi, ebx
je 0x42d8a5
cmp byte [edi], bl
je 0x42d8a5
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x78]
push eax
mov esi, str.GameTea2
push esi
lea ecx, [ebp - 0x7c]
call fcn.0042d76a
cmp eax, 2
je 0x42d876
lea eax, [ebp - 0x78]
push eax
push edi
call fcn.004a45a0
test eax, eax
pop ecx
pop ecx
je 0x42d8a5
push 1
push edi
push esi
lea ecx, [ebp - 0x7c]
call fcn.0042d7c1
jmp 0x42d892
push str.GameTea2
push dword [ebp - 0x7c]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
lea ecx, [ebp - 0x7c]
mov esi, eax
call fcn.0042d71e
xor eax, eax
cmp esi, ebx
sete al
jmp 0x42d8af
lea ecx, [ebp - 0x7c]
call fcn.0042d71e
xor eax, eax
mov ecx, dword [ebp + 0x8c]
pop edi
pop esi
pop ebx
call fcn.004a2d97
add ebp, 0x90
leave
ret

Function at 0x42d8c5
Capabilities:
Persist via run registry key

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x110
mov eax, dword [0x561be8]
and dword [ebp - 0x7c], 0
push esi
push edi
push 0x2001f
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push SysReAllocStringLen
lea ecx, [ebp - 0x7c]
mov dword [ebp + 0x8c], eax
mov dword [ebp - 0x80], 0x104
call fcn.0042d735
push 0x40
pop ecx
xor eax, eax
mov byte [ebp - 0x78], 0
lea edi, [ebp - 0x77]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x78]
push eax
push str.GameTea2
lea ecx, [ebp - 0x7c]
call fcn.0042d76a
cmp eax, 2
je 0x42d946
push dword [ebp + 0x98]
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x42d946
xor esi, esi
inc esi
jmp 0x42d948
xor esi, esi
lea ecx, [ebp - 0x7c]
call fcn.0042d71e
mov ecx, dword [ebp + 0x8c]
pop edi
mov eax, esi
pop esi
call fcn.004a2d97
add ebp, 0x90
leave
ret
Function at 0x42d967
Capabilities:
Set registry value

Disassembly:
mov eax, 0x51fdb8
call fcn.004a28b4
push ecx
push ecx
push ebx
push esi
push edi
call fcn.00508d54
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
push str.SOFTWAREGameTea
lea eax, [ebp - 0x14]
push str._sGameRoom_
xor edi, edi
push eax
mov dword [ebp - 4], edi
call fcn.004066d2
mov ebx, dword [ebp - 0x14]
add esp, 0xc
lea eax, [ebp - 0x10]
push eax
push 0x20006
push edi
push ebx
mov esi, SysReAllocStringLen
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x42d9d1
lea eax, [ebp - 0x10]
push eax
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x42d9fd
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push dword [ebp + 0xc]
push 1
push edi
push dword [ebp + 8]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x42d9fd
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edi, edi
inc edi
lea ecx, [ebx - 0x10]
call fcn.00404c68
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x42da16
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x51fdd2
call fcn.004a28b4
sub esp, 0x448
mov eax, dword [0x561be8]
push ebx
xor ebx, ebx
mov dword [ebp - 0x450], ebx
push ebx
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x44c], ebx
mov dword [ebp - 0x14], 0xf
call fcn.0040186e
push str.SOFTWAREGameTea
lea eax, [ebp - 0x48]
push str._sGameRoom_
push eax
mov dword [ebp - 4], ebx
call fcn.004078b5
add esp, 0xc
cmp dword [ebp - 0x30], 0x10
mov eax, dword [ebp - 0x44]
mov byte [ebp - 4], 1
jae 0x42da76
lea eax, [ebp - 0x44]
lea ecx, [ebp - 0x44c]
push ecx
push 0x20019
push ebx
push eax
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x42daba
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x2c]
push eax
call fcn.00402989
push ebx
push 1
lea ecx, [ebp - 0x48]
call fcn.0040188a
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.0040188a
jmp 0x42db4d
push esi
push edi
xor eax, eax
mov byte [ebp - 0x448], bl
mov ecx, 0xff
lea edi, [ebp - 0x447]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x454]
push eax
lea eax, [ebp - 0x448]
push eax
lea eax, [ebp - 0x450]
push eax
push ebx
push dword [ebp + 0xc]
xor esi, esi
push dword [ebp - 0x44c]
inc esi
mov dword [ebp - 0x450], esi
mov dword [ebp - 0x454], 0x400
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x42db2b
push dword [ebp - 0x44c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x448]
push eax
lea ecx, [ebp - 0x2c]
call fcn.004029d9
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x2c]
push eax
call fcn.00402989
push ebx
lea ecx, [ebp - 0x48]
push esi
call fcn.0040188a
push ebx
lea ecx, [ebp - 0x2c]
push esi
call fcn.0040188a
pop edi
pop esi
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.004a2d97
leave
ret
Function at 0x42e2f0
Capabilities:
Get system information on windows

Disassembly:
push ebp
lea ebp, [esp - 0x64]
sub esp, 0xcc
mov eax, dword [0x561be8]
push ebx
push 0x80
mov dword [ebp + 0x60], eax
xor ebx, ebx
lea eax, [ebp - 0x20]
push ebx
push eax
mov dword [ebp - 0x44], 0x52bcd4
call fcn.004a2db0
add esp, 0xc
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp dword [ebp - 0x54], 1
lea ecx, [ebp - 0x44]
jne 0x42e354
push dword [ebp + 0x7c]
lea eax, [ebp - 0x20]
push dword [ebp + 0x78]
push dword [ebp + 0x74]
push dword [ebp + 0x70]
push eax
call fcn.0042e29c
mov eax, dword [ebp + 0x6c]
mov cl, byte [ebp - 0x20]
mov byte [eax], cl
jmp 0x42e3d4
mov eax, dword [ebp + 0x70]
push esi
mov esi, dword [ebp + 0x7c]
push edi
mov edi, dword [ebp + 0x78]
mov dword [esi], ebx
push esi
mov dword [edi], ebx
mov ebx, dword [ebp + 0x74]
and dword [ebx], 0
and dword [eax], 0
push edi
push ebx
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.0042e29c
jmp 0x42e3a8
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp + 0x70]
cmp ecx, dword [edx]
jb 0x42e3a8
mov eax, dword [ebp - 0x2c]
cmp eax, dword [ebx]
jb 0x42e3a8
mov eax, dword [ebp - 0x28]
cmp eax, dword [edi]
jb 0x42e3a8
mov eax, dword [ebp - 0x24]
cmp eax, dword [esi]
jbe 0x42e3a8
mov dword [edx], ecx
mov ecx, dword [ebp - 0x2c]
mov dword [ebx], ecx
mov ecx, dword [ebp - 0x28]
mov dword [edi], ecx
mov dword [esi], eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x20]
lea ecx, [ebp - 0x44]
push eax
call fcn.0042e23d
test eax, eax
jne 0x42e37b
mov al, byte [ebp - 0x54]
mov ecx, dword [ebp + 0x6c]
add al, 0x30
pop edi
mov byte [ecx], al
pop esi
mov ecx, dword [ebp + 0x60]
pop ebx
call fcn.004a2d97
add ebp, 0x64
leave
ret
Function at 0x42ea89
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov eax, 0x2124
lea ebp, [esp - 0x20a4]
call fcn.004a3660
mov eax, dword [0x561be8]
push ebx
push esi
xor ebx, ebx
push edi
mov dword [ebp + 0x20a0], eax
mov esi, ecx
mov dword [ebp - 0x74], ebx
mov dword [ebp - 0x70], ebx
mov edi, 0x2000
push dword [ebp - 0x70]
lea eax, [ebp + 0x1f94]
push str..PhysicalDrive_d
push eax
call fcn.004a3198
add esp, 0xc
push ebx
push ebx
push 3
push ebx
push 3
push ebx
lea eax, [ebp + 0x1f94]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0x78], eax
je 0x42ebf4
mov eax, dword [esi + 4]
push 0xc
mov dword [ebp - 0x80], eax
lea eax, [ebp + 0x2094]
push ebx
push eax
mov dword [ebp - 0x7c], ebx
call fcn.004a2db0
push edi
lea eax, [ebp - 0x6c]
push ebx
push eax
mov dword [ebp + 0x2094], ebx
mov dword [ebp + 0x2098], ebx
call fcn.004a2db0
add esp, 0x18
push ebx
lea eax, [ebp - 0x7c]
push eax
push edi
lea eax, [ebp - 0x6c]
push eax
push 0xc
lea eax, [ebp + 0x2094]
push eax
push 0x2d1400
push dword [ebp - 0x78]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x42eb81
mov eax, dword [ebp - 0x54]
lea eax, [ebp + eax - 0x6c]
push eax
mov eax, dword [esi + 4]
shl eax, 6
lea eax, [eax + esi + 0xc]
push eax
mov ecx, esi
call fcn.0042e91d
mov eax, dword [esi + 4]
shl eax, 6
movsx eax, byte [eax + esi + 0xc]
push eax
call fcn.004a4e3b
test eax, eax
pop ecx
je 0x42eb81
inc dword [esi + 4]
mov dword [ebp - 0x74], 1
mov eax, dword [ebp - 0x80]
cmp eax, dword [esi + 4]
jne 0x42ebeb
push edi
lea eax, [ebp - 0x6c]
push ebx
push eax
call fcn.004a2db0
add esp, 0xc
push ebx
lea eax, [ebp - 0x7c]
push eax
push edi
lea eax, [ebp - 0x6c]
push eax
push ebx
push ebx
push 0x2d0c10
push dword [ebp - 0x78]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x42ebeb
lea eax, [ebp - 0x5c]
push eax
mov eax, dword [esi + 4]
shl eax, 6
lea eax, [eax + esi + 0xc]
push eax
mov ecx, esi
call fcn.0042ea35
mov eax, dword [esi + 4]
shl eax, 6
movsx eax, byte [eax + esi + 0xc]
push eax
call fcn.004a4e3b
test eax, eax
pop ecx
je 0x42ebeb
inc dword [esi + 4]
mov dword [ebp - 0x74], 1
push dword [ebp - 0x78]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [ebp - 0x70]
cmp dword [ebp - 0x70], 0x10
jl 0x42eab8
mov ecx, dword [ebp + 0x20a0]
mov eax, dword [ebp - 0x74]
pop edi
pop esi
pop ebx
call fcn.004a2d97
add ebp, 0x20a4
leave
ret
Function at 0x42ee05
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x51fe58
call fcn.004a28b4
sub esp, 0x230
mov eax, dword [0x561be8]
push ebx
push esi
push edi
push dword [ebp + 8]
mov esi, ecx
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x238], esi
call fcn.00404017
and dword [ebp - 4], 0
cmp dword [esi + 0x1c], 0
je 0x42ee71
cmp dword [ebp - 0x14], 0x10
mov edi, dword [ebp - 0x28]
mov ebx, edi
jae 0x42ee4d
lea ebx, [ebp - 0x28]
mov edi, ebx
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x2c]
call fcn.0042edc2
push fcn.004a5007
push ebx
push dword [eax]
lea eax, [ebp - 0x23c]
push edi
push eax
call fcn.0042edde
add esp, 0x14
xor eax, eax
push 0x40
pop ecx
mov byte [ebp - 0x130], 0
lea edi, [ebp - 0x12f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
cmp dword [esi + 0x18], 0x10
push 0x40
mov byte [ebp - 0x234], 0
pop ecx
lea edi, [ebp - 0x233]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esi + 4]
mov dword [ebp + 8], eax
jb 0x42eead
mov eax, dword [eax]
cmp dword [ebp - 0x14], 0x10
mov ecx, dword [ebp - 0x28]
jae 0x42eeb9
lea ecx, [ebp - 0x28]
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push eax
mov ebx, 0x104
push ebx
lea eax, [ebp - 0x234]
push eax
mov edi, 0x54937c
push edi
push ecx
push dword [0x5603c8]
call esi
mov ecx, dword [ebp + 0x10]
lea eax, [ebp - 0x234]
push eax
call fcn.004029d9
mov eax, dword [ebp - 0x238]
cmp dword [eax + 0x18], 0x10
jb 0x42eefe
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
jmp 0x42ef01
mov ecx, dword [ebp + 8]
cmp dword [ebp - 0x14], 0x10
mov eax, dword [ebp - 0x28]
jae 0x42ef0d
lea eax, [ebp - 0x28]
push ecx
push ebx
lea ecx, [ebp - 0x130]
push ecx
push edi
push eax
push dword [0x5603c4]
call esi
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x130]
push eax
call fcn.004029d9
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.0040188a
mov ecx, dword [ebp - 0xc]
pop edi
xor eax, eax
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
inc eax
pop ebx
call fcn.004a2d97
leave
ret 0xc
Function at 0x42f0e5
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x2a0]
sub esp, 0x320
mov eax, dword [0x561be8]
push ebx
push esi
push edi
mov dword [ebp + 0x29c], eax
xor eax, eax
push 0x40
pop ecx
xor ebx, ebx
mov byte [ebp - 0x70], bl
lea edi, [ebp - 0x6f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x40
xor eax, eax
pop ecx
mov byte [ebp + 0x198], bl
lea edi, [ebp + 0x199]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, 0x104
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x7c], eax
push 0x40
pop ecx
push dword [ebp + 0x2ac]
xor eax, eax
mov byte [ebp + 0x94], bl
lea edi, [ebp + 0x95]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp + 0x94]
push str._sDefaultIcon
push eax
mov dword [ebp - 0x74], ebx
mov dword [ebp - 0x78], ebx
call fcn.004a3198
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
add esp, 0xc
lea eax, [ebp - 0x74]
push eax
push dword [ebp + 0x2a8]
mov edi, SysReAllocStringLen
push edi
call esi
test eax, eax
jne 0x42f1fa
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x70]
push eax
push ebx
push ebx
push ebx
push dword [ebp - 0x74]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp + 0x2ac]
lea eax, [ebp - 0x70]
push eax
call fcn.004a5029
test eax, eax
pop ecx
pop ecx
jne 0x42f1ed
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp + 0x94]
push eax
push edi
call esi
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp + 0x198]
push eax
push ebx
push ebx
push ebx
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp + 0x2b0]
lea eax, [ebp + 0x198]
push eax
call fcn.004a45a0
test eax, eax
pop ecx
pop ecx
jne 0x42f1ed
inc ebx
push dword [ebp - 0x74]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x42f1fc
xor eax, eax
mov ecx, dword [ebp + 0x29c]
pop edi
pop esi
pop ebx
call fcn.004a2d97
add ebp, 0x2a0
leave
ret