joyce8/EMBER2024-capa huggingface dataset:
Function at 0x421430
Capabilities:
Get common file path
Persist via run registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x9c
lea eax, [esp + 8]
mov dword [esp + 4], 1
push eax
mov dword [esp + 0xc], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [esp + 0x18], 2
jne 0x421477
mov ecx, dword [esp + 0xa4]
mov edx, dword [esp + 0xa0]
push ecx
push edx
call fcn.00421760
add esp, 8
add esp, 0x9c
ret
lea eax, [esp]
push esi
push eax
push 0x2001f
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, dword [esp + 0xa4]
test eax, eax
jne 0x4214ca
mov eax, dword [esp + 4]
lea ecx, [esp + 0xa8]
push ecx
lea edx, [esp + 0xc]
push esi
push edx
push 0
push str.Programs
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jne 0x4214f0
mov edx, dword [esp + 0xa8]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push str.Start_MenuPrograms
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov eax, 1
pop esi
add esp, 0x9c
ret

Function at 0x421500
Capabilities:
Get common file path
Persist via run registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x9c
lea eax, [esp + 8]
push esi
push eax
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [esp + 0x1c], 2
jne 0x421549
mov ecx, dword [esp + 0xa8]
mov edx, dword [esp + 0xa4]
push ecx
push edx
call fcn.004216d0
add esp, 8
pop esi
add esp, 0x9c
ret
lea eax, [esp + 4]
push eax
push 0x20019
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, dword [esp + 0xa4]
test eax, eax
jne 0x4215a3
mov eax, dword [esp + 4]
lea ecx, [esp + 0xa8]
push edi
push ecx
lea edx, [esp + 0x10]
push esi
push edx
push 0
push 0x43538c
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [esp + 8]
mov edi, eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
pop edi
je 0x4215cb
mov edx, dword [esp + 0xa8]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push str.Desktop
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov eax, 1
pop esi
add esp, 0x9c
ret
xor eax, eax
pop esi
add esp, 0x9c
ret
Function at 0x4215e0
Capabilities:
Get common file path
Persist via run registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x110
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x15]
mov byte [esp + 0x14], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 8]
mov dword [esp + 0x10], 1
push eax
push 0x20019
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
push SysReAllocString
mov dword [esp + 0x20], 0x104
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x42165c
lea ecx, [esp + 0xc]
lea edx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x14]
push edx
push eax
push esi
push str.AppData
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [esp + 8]
mov esi, eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
xor ecx, ecx
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
test eax, eax
setg cl
dec ecx
test esi, ecx
mov esi, dword [esp + 0x120]
je 0x421698
lea edx, [esp + 0x14]
push esi
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [esp + 0x14]
push str.Application_Data
push eax
call edi
lea ecx, [esp + 0x14]
push str.MicrosoftInternet_ExplorerQuick_Launch
push ecx
call edi
mov eax, dword [esp + 0x11c]
lea edx, [esp + 0x14]
push esi
push edx
push eax
call fcn.00427d70
add esp, 0xc
mov eax, 1
pop edi
pop esi
add esp, 0x110
ret

Function at 0x4216d0
Capabilities:
Get common file path
Persist via run registry key
Query or enumerate registry value

Disassembly:
sub esp, 8
lea eax, [esp + 0x10]
push esi
mov esi, dword [esp + 0x14]
push eax
push 0x20019
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x1c], 1
mov dword [esp + 0x18], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x42173a
mov edx, dword [esp + 0x10]
lea ecx, [esp + 4]
push ecx
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0xc]
push edx
push eax
push 0
push str.Common_Desktop
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
pop esi
add esp, 8
ret
push esi
mov esi, dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push str.ProfilesAll_UsersDesktop
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov eax, 1
pop esi
add esp, 8
ret
Function at 0x421760
Capabilities:
Persist via run registry key
Query or enumerate registry value

Disassembly:
sub esp, 8
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x10]
push esi
push ecx
push 0x20019
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x1c], 1
mov dword [esp + 0x18], eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, dword [esp + 0x10]
test eax, eax
jne 0x4217c0
mov ecx, dword [esp + 0x14]
lea edx, [esp + 4]
push edx
lea eax, [esp + 0xc]
push esi
push eax
push 0
push str.Common_Programs
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [esp + 0x14], eax
mov eax, 1
pop esi
add esp, 8
ret
Function at 0x4221d0
Capabilities:
Accept command line arguments

Disassembly:
sub esp, 0x104
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 5]
mov byte [esp + 4], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [esp + 4]
push ecx
call fcn.00427b62
lea edx, [esp + 8]
push str._TRAY
push edx
mov dword [0x43b3bc], 1
call fcn.00427aec
add esp, 0xc
test eax, eax
je 0x422232
mov dword [0x43b3bc], 2
lea eax, [esp + 4]
push 0x4362bc
push eax
call fcn.00427aec
add esp, 8
test eax, eax
jne 0x42225e
lea ecx, [esp + 4]
push str._SILENCE
push ecx
call fcn.00427aec
add esp, 8
test eax, eax
je 0x422268
mov dword [0x43b3bc], 4
lea edx, [esp + 4]
push str._ONCE
push edx
call fcn.00427aec
add esp, 8
test eax, eax
je 0x42228a
mov eax, dword [0x43b3bc]
or al, 8
mov dword [0x43b3bc], eax
lea eax, [esp + 4]
push str._LOOP
push eax
call fcn.00427aec
add esp, 8
test eax, eax
je 0x4222dd
mov eax, dword [0x43b3bc]
lea ecx, [esp + 4]
or al, 0x10
push str._LOOP
push ecx
mov dword [0x43b3bc], eax
call fcn.00427aec
mov edx, eax
mov edi, str._LOOP
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
add edx, ecx
push edx
call fcn.00426f4d
add esp, 0xc
inc eax
mov dword [0x43623c], eax
lea eax, [esp + 4]
push 0x43629c
push eax
call fcn.00427aec
add esp, 8
test eax, eax
pop edi
je 0x4222fe
mov dword [0x43b3b8], 1
lea ecx, [esp]
push 0x436298
push ecx
call fcn.00427aec
add esp, 8
test eax, eax
je 0x42231e
mov dword [0x43b3b8], 2
lea edx, [esp]
push str._FIRST
push edx
call fcn.00427aec
add esp, 8
test eax, eax
jne 0x42234a
lea eax, [esp]
push 0x436288
push eax
call fcn.00427aec
add esp, 8
test eax, eax
je 0x422354
mov dword [0x43b3b8], 3
lea ecx, [esp]
push str._UPDATE
push ecx
call fcn.00427aec
add esp, 8
test eax, eax
jne 0x422380
lea edx, [esp]
push 0x436278
push edx
call fcn.00427aec
add esp, 8
test eax, eax
je 0x42238a
mov dword [0x43b3b8], 5
lea eax, [esp]
push str._REPAIR
push eax
call fcn.00427aec
add esp, 8
test eax, eax
jne 0x4223b6
lea ecx, [esp]
push 0x436268
push ecx
call fcn.00427aec
add esp, 8
test eax, eax
je 0x4223c0
mov dword [0x43b3b8], 4
lea edx, [esp]
push str._UNINSTALL
push edx
call fcn.00427aec
add esp, 8
test eax, eax
jne 0x4223ec
lea eax, [esp]
push 0x436250
push eax
call fcn.00427aec
add esp, 8
test eax, eax
je 0x4223fd
mov dword [0x43b3b8], 6
add esp, 0x104
ret
mov eax, dword [0x43b3b8]
test eax, eax
jne 0x422410
mov dword [0x43b3b8], 7
add esp, 0x104
ret
Function at 0x422db0
Capabilities:
Read .ini file

Disassembly:
mov al, byte [0x439c22]
sub esp, 0x14
test al, al
push esi
je 0x422e35
push 0x439c3c
lea eax, [esp + 8]
push str._s.ini
push eax
call fcn.00426b7c
add esp, 0xc
lea ecx, [esp + 4]
push ecx
push 0
push str.setupdlg
push str.HWND
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov esi, eax
test esi, esi
je 0x422e18
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x422e18
mov edx, dword [esp + 0x20]
mov eax, dword [0x439698]
mov ecx, dword [esp + 0x1c]
push edx
push eax
push ecx
push esi
call dword [sym.imp.USER32.dll_MessageBoxA]
pop esi
add esp, 0x14
ret
mov edx, dword [esp + 0x20]
mov eax, dword [0x439698]
mov ecx, dword [esp + 0x1c]
push edx
push eax
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
pop esi
add esp, 0x14
ret
mov edx, dword [esp + 0x1c]
push edx
push 0x4396a0
call fcn.00404420
mov eax, dword [esp + 0x2c]
add esp, 8
pop esi
add esp, 0x14
ret
Function at 0x423550
Capabilities:
Copy file
Set file attributes

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0x80
push esi
call edi
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
push eax
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
push 0x80
push esi
mov ebx, eax
call edi
pop edi
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x423590
Capabilities:
Delete file
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop esi
ret
Function at 0x424820
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x100
push esi
push edi
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 9]
mov byte [esp + 8], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 8]
push 0x100
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 8]
push 0x5c
push ecx
call fcn.00427f40
add esp, 8
test eax, eax
je 0x4248d9
lea edx, [esp + 8]
push 0x5c
push edx
call fcn.00427f40
mov edx, eax
mov edi, str.NetConfig.ini
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x10c]
lea ecx, [esp + 8]
push ecx
push 0x100
push esi
push str.Rav.ini
push 0x435604
push str.SETTING
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 0x2e
push esi
call fcn.00427f40
add esp, 8
test eax, eax
je 0x4248d9
push 0x2e
push esi
call fcn.00427f40
add esp, 8
mov byte [eax], 0
pop edi
pop esi
add esp, 0x100
ret
Function at 0x425c40
Capabilities:
Hide graphical window

Disassembly:
mov al, byte [0x43b3bc]
sub esp, 0x30
test al, 2
push esi
push edi
mov esi, ecx
je 0x425c6a
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x425c6a
mov ecx, dword [esi + 4]
push 0
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
mov edi, dword [esp + 0x44]
cmp dword [edi + 0x14], 0x1e
jle 0x425df4
mov eax, dword [esi + 0x44]
test eax, eax
je 0x425df4
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x425df4
push ebx
push ebp
mov ebp, dword [esi + 0x44]
mov esi, dword [esi + 0x40]
push 0xfffffffffffffff0
push ebp
call dword [sym.imp.USER32.dll_GetWindowLongA]
mov edi, dword [sym.imp.USER32.dll_GetParent]
mov ebx, eax
test esi, esi
jne 0x425cc7
test ebx, 0x40000000
je 0x425cbc
push ebp
call edi
jmp 0x425cc5
push 4
push ebp
call dword [sym.imp.USER32.dll_GetWindow]
mov esi, eax
lea edx, [esp + 0x30]
push edx
push ebp
call dword [sym.imp.USER32.dll_GetWindowRect]
test ebx, 0x40000000
jne 0x425d3d
test esi, esi
je 0x425cf8
push 0xfffffffffffffff0
push esi
call dword [sym.imp.USER32.dll_GetWindowLongA]
test eax, 0x10000000
je 0x425cf6
test eax, 0x20000000
je 0x425cf8
xor esi, esi
lea eax, [esp + 0x20]
push 0
push eax
push 0
push 0x30
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
test esi, esi
jne 0x425d2f
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ecx
jmp 0x425d67
lea edx, [esp + 0x10]
push edx
push esi
call dword [sym.imp.USER32.dll_GetWindowRect]
jmp 0x425d67
push ebp
call edi
mov ebx, dword [sym.imp.USER32.dll_GetClientRect]
mov edi, eax
lea eax, [esp + 0x20]
push eax
push edi
call ebx
lea ecx, [esp + 0x10]
push ecx
push esi
call ebx
lea edx, [esp + 0x10]
push 2
push edx
push edi
push esi
call dword [sym.imp.USER32.dll_MapWindowPoints]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
mov ebx, dword [esp + 0x3c]
mov edx, dword [esp + 0x34]
mov edi, dword [esp + 0x38]
mov esi, dword [esp + 0x30]
add eax, ecx
sub ebx, edx
cdq
sub eax, edx
sub edi, esi
mov ecx, eax
mov eax, edi
cdq
sub eax, edx
mov edx, dword [esp + 0x1c]
sar ecx, 1
sar eax, 1
sub ecx, eax
mov eax, dword [esp + 0x14]
add eax, edx
cdq
sub eax, edx
mov esi, eax
mov eax, ebx
cdq
sub eax, edx
sar esi, 1
sar eax, 1
sub esi, eax
mov eax, dword [esp + 0x20]
cmp ecx, eax
jl 0x425dc4
mov eax, dword [esp + 0x28]
lea edx, [ecx + edi]
cmp edx, eax
jle 0x425dc6
sub eax, edi
mov ecx, eax
mov eax, dword [esp + 0x24]
cmp esi, eax
jl 0x425ddb
mov eax, dword [esp + 0x2c]
lea edx, [esi + ebx]
cmp edx, eax
jle 0x425ddd
sub eax, ebx
mov esi, eax
push 0x15
push 0xffffffffffffffff
push 0xffffffffffffffff
push esi
push ecx
push 0
push ebp
call dword [sym.imp.USER32.dll_SetWindowPos]
mov edi, dword [esp + 0x4c]
pop ebp
pop ebx
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x3c]
mov edx, dword [edi]
push edi
push eax
push ecx
push edx
call dword [sym.imp.USER32.dll_DefWindowProcA]
pop edi
xor eax, eax
pop esi
add esp, 0x30
ret 0x10
Function at 0x426a50
Capabilities:
Delete registry key

Disassembly:
push edi
mov edi, dword [esp + 8]
test edi, edi
jne 0x426a60
mov eax, 0x80070057
pop edi
ret
lea eax, [esp + 8]
push esi
push eax
push 0x20006
push 0
push str.SoftwareMicrosoftSecurity_CenterMonitoring
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x20], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x426aa6
mov ecx, dword [esp + 0xc]
push edi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov edx, dword [esp + 0xc]
mov esi, eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jle 0x426ab4
and esi, 0xffff
or esi, 0x80070000
mov eax, esi
pop esi
pop edi
ret

Function at 0x426cc2
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x426ce2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00429786
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x426d05
test byte [esp + 8], 2
je 0x426d05
call fcn.004297f9
mov dword [eax], 0xd
call fcn.00429802
mov dword [eax], 5
jmp 0x426cde
xor eax, eax
ret

Function at 0x4308c0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov eax, dword [esp + 4]
push esi
push edi
mov eax, dword [eax]
lea ecx, [eax + eax*8]
mov esi, dword [ecx*8 + 0x43b9bc]
lea edi, [ecx*8 + 0x43b978]
cmp esi, 0xffffffff
jne 0x4308e8
pop edi
mov eax, 0x57
pop esi
ret 0x14
mov eax, dword [esp + 0x10]
mov ecx, dword [edi + 0x14]
cmp ecx, eax
ja 0x4308fd
pop edi
mov eax, 0x22080
pop esi
ret 0x14
cdq
push 0
push 0x200
push edx
push eax
call fcn.00429a60
push 0
push 0
push edx
push eax
push esi
call dword [0x43ba98]
test eax, eax
jne 0x430927
pop edi
mov eax, 0x22081
pop esi
ret 0x14
mov eax, dword [esp + 0x14]
cmp eax, 0x10
jne 0x430961
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0xc]
push 0
shl eax, 9
push edx
mov edx, dword [edi + 0x44]
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x43091d
mov eax, dword [esp + 0xc]
test eax, eax
je 0x43091d
pop edi
xor eax, eax
pop esi
ret 0x14
cmp eax, 0x20
jne 0x4309a1
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
lea eax, [esp + 0xc]
push 0
shl ecx, 9
push eax
mov eax, dword [edi + 0x44]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x430997
mov eax, dword [esp + 0xc]
test eax, eax
je 0x430997
pop edi
xor eax, eax
pop esi
ret 0x14
pop edi
mov eax, 0x22082
pop esi
ret 0x14
pop edi
mov eax, 0x22083
pop esi
ret 0x14
Function at 0x4309b0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x208
push esi
mov esi, dword [esp + 0x210]
push edi
mov edi, 0x200
mov eax, dword [esi + 0x14]
push 0
dec eax
push edi
cdq
push edx
push eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], edi
call fcn.00429a60
push 0
push 0
push edx
push eax
mov eax, dword [esi + 0x44]
push eax
call dword [0x43ba98]
test eax, eax
je 0x430b3d
mov eax, dword [esi + 0x44]
lea ecx, [esp + 8]
push 0
push ecx
lea edx, [esp + 0x18]
push edi
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x430b67
cmp dword [esp + 8], edi
jne 0x430b67
mov eax, dword [esp + 0x30]
cmp eax, 0x654b654b
je 0x430a36
cmp eax, 0x6b72694b
jne 0x430b67
mov eax, 1
cmp word [esp + 0x3c], ax
jne 0x430a66
cmp dword [esp + 0x218], 0x1001
jne 0x430a66
mov ecx, dword [esp + 0x5b]
mov edx, dword [esp + 0x5f]
mov dword [esi + 0x20], ecx
mov dword [esi + 0x24], edx
pop edi
pop esi
add esp, 0x208
ret
mov ecx, dword [esp + 0x40]
mov eax, dword [esi + 0x14]
and ecx, 0xffff
push ebx
sub eax, ecx
push ebp
dec eax
push 0
cdq
push edi
push edx
push eax
call fcn.00429a60
mov edi, eax
mov eax, dword [esp + 0x4a]
and eax, 0xffff
mov ebx, edx
shl eax, 9
push eax
mov dword [esp + 0x14], eax
call fcn.00426d08
mov edx, dword [esi + 0x44]
add esp, 4
mov ebp, eax
push 0
push 0
push ebx
push edi
push edx
call dword [0x43ba98]
test eax, eax
je 0x430b2a
mov ecx, dword [esp + 0x10]
mov edx, dword [esi + 0x44]
lea eax, [esp + 0x10]
push 0
push eax
push ecx
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x430b2a
mov ecx, dword [esp + 0x4a]
mov edx, dword [esp + 0x10]
and ecx, 0xffff
mov eax, ecx
shl eax, 9
cmp edx, eax
jne 0x430b2a
shl ecx, 5
xor edx, edx
mov eax, ebp
test ecx, ecx
jle 0x430b0c
mov ebx, dword [esp + 0x220]
xor edi, edi
mov di, word [eax + 2]
cmp edi, ebx
je 0x430b0c
inc edx
add eax, 0x10
cmp edx, ecx
jl 0x430af3
cmp edx, ecx
jge 0x430b2a
mov ecx, dword [esi + 0x14]
mov edi, dword [eax + 8]
sub ecx, edi
mov dword [esp + 0x14], 1
dec ecx
mov dword [esi + 0x20], ecx
mov edx, dword [eax + 0xc]
mov dword [esi + 0x24], edx
push ebp
call fcn.00426ac0
mov eax, dword [esp + 0x18]
add esp, 4
test eax, eax
pop ebp
pop ebx
jne 0x430b79
mov ecx, dword [esp + 0x218]
or eax, 0xffffffff
cmp ecx, eax
jne 0x430b6f
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x14]
sub ecx, eax
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], ecx
pop edi
mov eax, 1
pop esi
add esp, 0x208
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x430b3d
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], 0
mov eax, dword [esp + 0xc]
pop edi
pop esi
add esp, 0x208
ret
Function at 0x430b90
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x408
push ebx
push esi
mov esi, dword [esp + 0x414]
push edi
mov ebx, 0x200
push 0
mov eax, dword [esi + 0x14]
push ebx
dec eax
mov edi, 0x1001
cdq
push edx
push eax
mov dword [esp + 0x20], edi
mov dword [esp + 0x1c], ebx
call fcn.00429a60
push 0
push 0
push edx
push eax
mov eax, dword [esi + 0x44]
push eax
call dword [0x43ba98]
test eax, eax
je 0x430d68
mov eax, dword [esi + 0x44]
lea ecx, [esp + 0xc]
push 0
push ecx
lea edx, [esp + 0x1c]
push ebx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x430d68
cmp dword [esp + 0xc], ebx
jne 0x430d68
mov eax, dword [esp + 0x34]
cmp eax, 0x654b654b
je 0x430c18
cmp eax, 0x6b72694b
jne 0x430d68
mov ecx, dword [esp + 0x44]
mov eax, dword [esi + 0x14]
and ecx, 0xffff
push ebp
sub eax, ecx
push 0
dec eax
push ebx
cdq
push edx
push eax
call fcn.00429a60
mov edi, eax
mov eax, dword [esp + 0x4a]
and eax, 0xffff
mov ebx, edx
shl eax, 9
push eax
mov dword [esp + 0x14], eax
call fcn.00426d08
mov edx, dword [esi + 0x44]
add esp, 4
mov ebp, eax
push 0
push 0
push ebx
push edi
push edx
call dword [0x43ba98]
test eax, eax
je 0x430d4e
mov ecx, dword [esp + 0x10]
mov edx, dword [esi + 0x44]
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [esp + 0x10]
push 0
push eax
push ecx
push ebp
push edx
call ebx
test eax, eax
je 0x430d4e
mov ecx, dword [esp + 0x4a]
mov edx, dword [esp + 0x10]
and ecx, 0xffff
mov eax, ecx
shl eax, 9
cmp edx, eax
jne 0x430d4e
shl ecx, 5
xor edx, edx
mov eax, ebp
test ecx, ecx
jle 0x430cc5
mov edi, 0x201
cmp word [eax + 2], di
je 0x430cc5
inc edx
add eax, 0x10
cmp edx, ecx
jl 0x430cb7
cmp edx, ecx
jge 0x430d4e
mov ecx, dword [esi + 0x14]
mov edx, dword [eax + 8]
sub ecx, edx
push 0
push 0x200
lea eax, [ecx + 0xff]
mov dword [esi + 0x20], eax
cdq
push edx
push eax
call fcn.00429a60
push 0
push 0
push edx
mov edx, dword [esi + 0x44]
push eax
push edx
call dword [0x43ba98]
mov edx, dword [esi + 0x44]
mov ecx, 0x80
xor eax, eax
lea edi, [esp + 0x218]
rep stosd dword es:[edi], eax
push eax
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x220]
push 0x200
push ecx
push edx
mov dword [esp + 0x24], 0x200
call ebx
push 0xa
lea eax, [esp + 0x21c]
push str.LenovoHDBM
push eax
call fcn.0042d520
add esp, 0xc
mov esi, 0x1002
test eax, eax
je 0x430d52
mov esi, dword [esp + 0x14]
push ebp
call fcn.00426ac0
add esp, 4
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x408
ret
mov eax, edi
pop edi
pop esi
pop ebx
add esp, 0x408
ret