joyce8/EMBER2024-capa huggingface dataset:
Function at 0x57457e
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
push esi
push edi
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], ebx
cmp eax, ebx
je 0x5745c3
cmp dword [ebp + 0xc], ebx
je 0x5745c3
push 0x2800
call fcn.004013d6
mov esi, eax
add esp, 4
cmp esi, ebx
jne 0x5745d7
push 8
call dword [sym.imp.KERNEL32.dll_SetLastError]
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00403fc1
mov esp, ebp
pop ebp
ret
push ebx
push str..PhysicalDrive_d
push 0x2800
push esi
call fcn.0057371e
add esp, 0x10
push 0
push 0x80
push 3
push 0
push 3
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x574679
xor eax, eax
push 0x2800
push eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
push esi
mov dword [ebp - 8], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
call fcn.00402394
add esp, 0xc
push 0
lea eax, [ebp - 0x18]
push eax
push 0x2800
push esi
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 0x2d1400
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x57466c
mov eax, dword [esi + 0x18]
test eax, eax
je 0x57466c
mov edx, dword [ebp + 0xc]
add eax, esi
push eax
mov eax, dword [ebp - 0x1c]
push edx
push eax
push str.DISKID:
call fcn.0057435a
add esp, 0x10
mov dword [ebp - 0x14], eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x14], 0
jne 0x574683
inc ebx
cmp ebx, 0x10
jl 0x5745d7
mov eax, dword [0x6b7fe4]
cmp eax, 1
je 0x5746d5
jle 0x5746b8
cmp eax, 3
jg 0x5746b8
mov ecx, dword [0x6b44d0]
push esi
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 0x14]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00403fc1
mov esp, ebp
pop ebp
ret
push esi
call fcn.00403b21
mov eax, dword [ebp - 0x14]
add esp, 4
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00403fc1
mov esp, ebp
pop ebp
ret
push esi
call fcn.005707f4
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x14]
add esp, 4
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403fc1
mov esp, ebp
pop ebp
ret
Function at 0x57478f
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
xor edi, edi
xor ebx, ebx
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x20], edi
cmp dword [ebp + 8], edi
je 0x5747c7
cmp dword [ebp + 0xc], edi
je 0x5747c7
push 0x200
call fcn.004013d6
mov esi, eax
add esp, 4
cmp esi, edi
jne 0x5747d1
push 8
call dword [sym.imp.KERNEL32.dll_SetLastError]
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 8]
push eax
push 0x20119
push edi
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionNetworkCards
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x574917
mov edx, dword [ebp - 8]
push eax
push eax
push eax
push eax
lea ecx, [ebp - 4]
push ecx
push esi
push eax
push edx
mov dword [ebp - 4], 0x100
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x5748b7
mov eax, dword [ebp - 8]
test eax, eax
jne 0x574822
mov eax, 0x80000002
lea ecx, [ebp - 0x10]
push ecx
push 0x20119
push 0
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x57488f
lea edx, [ebp + 0xc]
push edx
mov edx, dword [ebp - 0x10]
lea eax, [esi + 4]
push eax
lea ecx, [ebp - 0x14]
push ecx
push 0
push str.ServiceName
push edx
mov dword [ebp - 0x14], 1
mov dword [ebp - 4], 0x200
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x574885
mov eax, esi
mov dword [esi], 0x5c2e5c5c
call fcn.005746f2
cmp edx, ebx
jb 0x574885
ja 0x574880
cmp eax, dword [ebp - 0x20]
jbe 0x574885
mov dword [ebp - 0x20], eax
mov ebx, edx
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 8]
push 0
push 0
push 0
push 0
lea ecx, [ebp - 4]
push ecx
push esi
inc edi
push edi
push edx
mov dword [ebp - 4], 0x100
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x574816
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x5748ca
cmp dword [ebp - 0x20], ebx
jbe 0x574917
mov ecx, dword [ebp - 0x20]
push ebx
push ecx
push str._012I64X
push 0x200
push esi
call fcn.0057371e
add esp, 0x14
test eax, eax
jne 0x5748fe
mov ecx, esi
mov dword [ebp - 0xc], 0xffffffff
call fcn.00416cdf
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push esi
push edx
push eax
push str.MAC:
call fcn.0057435a
add esp, 0x10
mov dword [ebp - 0xc], eax
mov ecx, esi
call fcn.00416cdf
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x575a1b
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x607ff2
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [section..data]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ecx, dword [0x6c5628]
xor edi, edi
cmp ecx, edi
jne 0x575a66
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ecx + 4]
cmp eax, 0xffffffff
jne 0x575a73
mov dword [ebp - 0x14], edi
jmp 0x575a8b
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 0x14], eax
cmp eax, edi
jne 0x575b31
mov ecx, dword [0x6c5628]
mov eax, dword [ecx]
cmp eax, edi
je 0x575a52
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x575a52
push 0x6c5628
mov dword [ebp - 4], edi
call fcn.00575b43
mov esi, eax
mov dword [ebp - 0x14], esi
cmp esi, edi
jne 0x575ac9
push 0x63d110
lea eax, [ebp - 0x18]
push eax
mov dword [ebp - 0x18], 1
call fcn.005f7205
mov ecx, dword [0x6c5628]
mov eax, dword [ecx + 4]
cmp eax, 0xffffffff
je 0x575ae3
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
cmp eax, edi
jne 0x575af8
push 0x63d110
lea edx, [ebp - 0x1c]
push edx
mov dword [ebp - 0x1c], 4
call fcn.005f7205
mov dword [ebp - 4], 0xffffffff
jmp 0x575b1d
mov eax, dword [0x6c5628]
mov eax, dword [eax]
test eax, eax
je 0x575b2f
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x575b43
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
mov dword [ebp + 8], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebp - 4], eax
mov eax, dword [ebx]
mov ecx, dword [eax + 0x5b0]
add eax, 8
mov dword [eax + 0x5b0], ecx
cmp ecx, eax
jne 0x575b75
xor ecx, ecx
jmp 0x575b81
mov edx, dword [ecx + 0x5a8]
mov dword [eax + 0x5b0], edx
mov esi, ecx
test ecx, ecx
je 0x575c2e
push edi
mov edi, dword [sym.imp.KERNEL32.dll_OpenThread]
nop
mov eax, dword [esi]
cmp dword [ebp - 4], eax
jne 0x575b9f
mov dword [ebp + 8], esi
jmp 0x575c03
push eax
push 1
push 0x40
call edi
test eax, eax
jne 0x575bfc
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x575bef
mov eax, dword [esi + 0x5ac]
mov ecx, dword [esi + 0x5a8]
mov dword [eax + 0x5a8], ecx
mov edx, dword [esi + 0x5a8]
mov eax, dword [esi + 0x5ac]
mov dword [edx + 0x5ac], eax
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
test eax, eax
je 0x575c03
push esi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x575c03
push 0x67bfa0
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x575c03
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebx]
mov esi, dword [eax + 0x5b8]
add eax, 8
cmp esi, eax
je 0x575c26
mov ecx, dword [esi + 0x5a8]
mov dword [eax + 0x5b0], ecx
test esi, esi
jne 0x575b93
mov eax, dword [ebp + 8]
pop edi
test eax, eax
jne 0x575c41
mov ecx, dword [ebx]
add ecx, 8
call fcn.00575ced
test eax, eax
je 0x575c41
mov edx, dword [ebp - 4]
mov dword [eax], edx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x576889
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x607f35
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [section..data]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor edi, edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x2c], edi
mov dword [ebp - 4], edi
mov dword [esi + 0x30], edi
mov byte [ebp - 4], 1
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], edi
mov byte [ebp - 4], 2
mov dword [esi + 0x44], edi
mov dword [esi + 0x48], edi
mov dword [esi + 0x4c], edi
mov byte [ebp - 4], 3
mov eax, dword [0x6d0fd0]
mov edx, dword [eax + 0xc]
mov ecx, 0x6d0fd0
call edx
add eax, 0x10
mov dword [esi + 0x5c], eax
mov byte [ebp - 4], 4
mov eax, dword [0x6d0fd0]
mov edx, dword [eax + 0xc]
mov ecx, 0x6d0fd0
call edx
add eax, 0x10
mov dword [esi + 0x60], eax
mov byte [ebp - 4], 5
mov dword [esi + 0x64], edi
mov dword [esi + 0x68], edi
call fcn.005769fa
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x577b5c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
push ebx
lea eax, [ebp - 0x18]
push eax
push 8
lea ecx, [ebp - 0xc]
push ecx
push edi
mov dword [ebp - 0x18], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x577c65
cmp dword [ebp - 0x18], 8
jne 0x577c65
lea edx, [ebp - 0xc]
push 8
push edx
xor edx, edx
call fcn.0046c4d2
add esp, 8
test eax, eax
jne 0x577c65
push esi
push fcn.0057775e
call fcn.0046c6a0
mov esi, eax
add esp, 4
mov dword [ebp - 0x14], esi
cmp esi, ebx
je 0x577c53
push esi
call fcn.0046cc34
add esp, 4
mov dword [ebp - 0x10], eax
test eax, eax
je 0x577c45
mov ecx, 0x577b14
mov dword [esi + 0x58], edi
test ecx, ecx
je 0x577bee
mov dword [esi + 0x54], 0x577b14
jmp 0x577bf5
mov dword [esi + 0x54], 0x5e39ea
cmp dword [esi + 0x50], ebx
je 0x577c0a
mov ecx, str.Cant_set_both_read_data_fn_and_write_data_fn_in_the_same_structure
mov dword [esi + 0x50], ebx
call fcn.005e3880
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp + 8]
push edx
push eax
mov dword [esi + 0x14c], ebx
push esi
mov byte [esi + 0x12c], 8
call fcn.0046ccc3
mov esi, eax
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x10]
call fcn.00472ce9
add esp, 0x10
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00403fc1
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x14]
push ecx
xor ecx, ecx
call fcn.00472ce9
add esp, 4
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00403fc1
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.00403fc1
mov esp, ebp
pop ebp
ret
Function at 0x578aeb
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
push 0
lea eax, [ebp - 0x18]
push eax
mov edi, ecx
push 0xf
lea ecx, [ebp - 0x14]
push ecx
push edi
mov dword [ebp - 0x18], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x578b2b
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00403fc1
mov esp, ebp
pop ebp
ret
push 0
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [ebp - 0x18]
cmp eax, 0xe
jbe 0x578b73
mov edx, 0x4d42
cmp word [ebp - 0x14], dx
jne 0x578b73
cmp word [ebp - 0xe], 0
jne 0x578b73
cmp word [ebp - 0xc], 0
jne 0x578b73
push esi
mov ecx, edi
call fcn.00577c76
add esp, 4
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00403fc1
mov esp, ebp
pop ebp
ret
cmp eax, 8
jbe 0x578ba4
lea eax, [ebp - 0x14]
push 8
push eax
xor edx, edx
call fcn.0046c4d2
add esp, 8
test eax, eax
jne 0x578ba4
push esi
call fcn.00577b5c
add esp, 4
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00403fc1
mov esp, ebp
pop ebp
ret
push edi
call fcn.00577a99
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
pop edi
call fcn.00403fc1
mov esp, ebp
pop ebp
ret

Function at 0x57e4cb
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 0xcc]
push ebx
push eax
call edx
mov eax, dword [ebx]
mov ecx, dword [eax + 0x78]
push 0x4b9
push ebx
call ecx
cmp eax, 0x20
jne 0x57e573
mov eax, dword [esi + 0x18]
test al, 1
je 0x57e573
and eax, 0xfffffffe
push 1
mov dword [esi + 0x18], eax
call dword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
test al, 1
mov eax, dword [esi + 0xc]
push eax
jne 0x57e54e
mov edx, dword [eax]
mov eax, dword [edx + 0x17c]
call eax
test eax, eax
je 0x57e533
mov eax, dword [esi + 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x140]
push eax
call edx
mov ecx, dword [esi + 0x14]
mov edx, dword [ecx + 0xc]
lea eax, [esi + 0x14]
push eax
call edx
test eax, eax
je 0x57e561
push edi
mov edi, esi
call fcn.0057e327
pop edi
jmp 0x57e561
mov ecx, dword [eax]
mov edx, dword [ecx + 0x17c]
call edx
test eax, eax
je 0x57e561
call fcn.0057e281
mov eax, dword [ebx]
mov ecx, dword [eax + 0xc4]
push 1
push 0x4b2
push ebx
call ecx
pop esi
pop ebx
pop ebp
ret 8
Function at 0x57e6ae
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov eax, dword [edi]
mov ecx, dword [eax + 0xc4]
push 1
push 0x4b2
push edi
call ecx
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0xc]
mov edx, dword [eax]
push eax
mov eax, dword [edx + 0x144]
call eax
mov ebx, dword [sym.imp.USER32.dll_GetKeyState]
push 1
call ebx
shr eax, 0xf
test al, 1
je 0x57e73f
mov eax, dword [esi + 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x13c]
push eax
call edx
mov eax, dword [esi + 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x17c]
push eax
call edx
test eax, eax
je 0x57e73f
push 1
call ebx
shr eax, 0xf
test al, 1
je 0x57e731
mov ecx, dword [esi + 0x14]
mov edx, dword [ecx + 0xc]
lea eax, [esi + 0x14]
push eax
call edx
test eax, eax
jne 0x57e73f
push 1
mov ecx, esi
call fcn.0057e1a2
jmp 0x57e73f
mov eax, dword [esi + 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x140]
push eax
call edx
mov esi, dword [esi + 0x10]
mov eax, dword [esi]
mov ecx, dword [eax + 0x84]
push edi
push esi
call ecx
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x57e7ed
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x80]
push edi
mov edi, dword [ebp + 0xc]
push edi
push eax
call edx
mov eax, dword [esi + 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x17c]
push eax
call edx
test eax, eax
je 0x57e845
push 1
call dword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
test al, 1
je 0x57e845
test byte [esi + 0x18], 1
jne 0x57e845
call fcn.0057e281
mov eax, dword [edi]
mov ecx, dword [eax + 0xc4]
push 1
push 0x4b2
push edi
call ecx
pop edi
pop esi
pop ebp
ret 8

Function at 0x58683d
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x605ec2
mov eax, dword fs:[0]
push eax
push esi
mov eax, dword [section..data]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor eax, eax
mov dword [esi + 4], eax
mov dword [esi], vtable.ATL::CComAggObject_class_SmartuiOld::CQtlImageBrush_.0
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], eax
mov dword [esi + 8], vtable.ATL::CComContainedObject_class_SmartuiOld::CQtlImageBrush_.0
mov dword [esi + 0x18], vtable.ATL::CComContainedObject_class_SmartuiOld::CQtlImageBrush_.1.0
mov dword [esi + 0x1c], vtable.ATL::CComContainedObject_class_SmartuiOld::CQtlImageBrush_.2.0
mov dword [esi + 0x20], vtable.ATL::CComContainedObject_class_SmartuiOld::CQtlImageBrush_.3.0
mov dword [esi + 0xc], ecx
mov dword [ebp - 4], eax
mov ecx, dword [0x6d09c0]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x586be2
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x609a8b
mov eax, dword fs:[0]
push eax
push esi
mov eax, dword [section..data]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor eax, eax
mov dword [esi + 4], eax
mov dword [esi], vtable.ATL::CComAggObject_class_SmartuiOld::CQtlGrid_.0
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], eax
mov dword [esi + 8], vtable.ATL::CComContainedObject_class_SmartuiOld::CQtlGrid_.0
mov dword [esi + 0x1c], vtable.ATL::CComContainedObject_class_SmartuiOld::CQtlGrid_.1.0
mov dword [esi + 0xc], ecx
mov dword [ebp - 4], eax
mov ecx, dword [0x6d09c0]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x589b0a
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x608bf5
mov eax, dword fs:[0]
push eax
sub esp, 0xc0
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 0x18], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 8]
mov dword [ebp - 0xb8], ecx
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0xbc], esi
mov dword [ebp - 0xa8], esi
mov dword [ebp - 4], ebx
or edi, 0xffffffff
cmp esi, edi
jne 0x589b93
call fcn.004a7d25
mov esi, eax
mov dword [ebp - 4], edi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0xa8], ebx
mov eax, esi
jmp 0x589d24
lea edx, [ebp - 0xb0]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0xb4], eax
cmp dword [ebp - 0xb0], ebx
je 0x589bcd
mov dword [ebp - 4], edi
cmp esi, ebx
je 0x589bc3
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0xa8], ebx
mov eax, 0x80004005
jmp 0x589d24
cmp eax, edi
jne 0x589bdd
call fcn.004a7d25
mov edi, eax
jmp 0x589d0a
mov dword [ebp - 0xa4], ebx
mov byte [ebp - 4], 1
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0xb4]
add eax, 2
mov dword [ebp - 0xcc], eax
mov dword [ebp - 0xc8], ebx
cmp ebx, ebx
ja 0x589c08
cmp eax, edi
jbe 0x589c12
push 0x80070216
call fcn.004a4f75
cmp eax, 0x80
jbe 0x589c2f
push eax
lea eax, [ebp - 0xa4]
push eax
call fcn.0042dae9
mov dword [ebp - 4], 1
jmp 0x589c5c
lea ecx, [ebp - 0xa0]
mov dword [ebp - 0xa4], ecx
mov dword [ebp - 4], 1
jmp 0x589c5c
mov eax, dword [ebp - 0xa4]
cmp eax, ebx
jne 0x589ca0
mov byte [ebp - 4], bl
lea edx, [ebp - 0xa0]
cmp dword [ebp - 0xa4], edx
je 0x589c82
lea eax, [ebp - 0xa4]
call fcn.0042da15
mov dword [ebp - 4], edi
cmp esi, ebx
je 0x589c96
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0xa8], ebx
mov eax, 0x8007000e
jmp 0x589d24
mov edi, eax
mov dword [ebp - 0xc0], ebx
push ebx
lea ecx, [ebp - 0xc0]
push ecx
mov edx, dword [ebp - 0xb4]
push edx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x589cca
call fcn.004a7d25
jmp 0x589cec
mov ecx, dword [ebp - 0xb4]
mov byte [edi + ecx], bl
mov edx, dword [ebp - 0xb4]
mov byte [edi + edx + 1], bl
push edi
mov ecx, dword [ebp - 0xb8]
call fcn.00448476
add esp, 4
mov edi, eax
lea eax, [ebp - 0xa0]
mov byte [ebp - 4], bl
cmp dword [ebp - 0xa4], eax
je 0x589d0a
lea eax, [ebp - 0xa4]
call fcn.0042da15
mov dword [ebp - 4], 0xffffffff
cmp esi, ebx
je 0x589d22
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0xa8], ebx
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.00403fc1
mov esp, ebp
pop ebp
ret
Function at 0x58bb2d
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x606288
mov eax, dword fs:[0]
push eax
push esi
mov eax, dword [section..data]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov ecx, dword [sym.imp.USER32.dll_DefWindowProcW]
xor eax, eax
mov dword [esi + 4], eax
mov dword [esi], vtable.ATL::CComAggObject_class_SmartuiOld::CQtlHwndSource_.0
mov dword [esi + 0x10], eax
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], ecx
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], eax
mov dword [esi + 8], vtable.ATL::CComContainedObject_class_SmartuiOld::CQtlHwndSource_.0
mov dword [esi + 0xc], vtable.ATL::CComContainedObject_class_SmartuiOld::CQtlHwndSource_.1.0
mov dword [esi + 0x30], vtable.ATL::CComContainedObject_class_SmartuiOld::CQtlHwndSource_.2.0
mov dword [esi + 0x34], edx
mov dword [ebp - 4], eax
mov ecx, dword [0x6d09c0]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
call edx
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4