joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44c32c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x44c364]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44c345
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44c354
or bl, 4
test esi, 0x20000000
je 0x44c35f
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x452a0c
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x452a1e
add esp, 0xfffffff0
call fcn.00404398
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041f2d4
mov eax, dword [0x467760]
mov dword [eax + 4], ebx
mov dword [eax], 0x452db0
mov eax, dword [0x46776c]
mov dword [eax + 4], ebx
mov dword [eax], 0x452dbc
mov eax, ebx
call fcn.00452dc8
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x4175cc]
call fcn.00404044
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x4175cc]
call fcn.00404044
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x4175cc]
call fcn.00404044
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x4175cc]
call fcn.00404044
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x4175cc]
call fcn.00404044
mov dword [ebx + 0x7c], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x40], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x58]
push eax
mov eax, 0x44f1e4
push eax
push 0
push 0
mov eax, dword [0x4678c4]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x420d28]
call fcn.00422464
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x420d28]
call fcn.00422464
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x420d28]
call fcn.00422464
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.004531e8
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4530c4
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4530c4
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4530c4
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x452b5b
call fcn.004043f0
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x452ea8
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x453053
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x453034
mov dl, 1
mov eax, dword [0x4179e8]
call fcn.00404044
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404ea8
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x453023
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.00440e34
test al, al
je 0x453016
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x453064
lea eax, [ebp - 0x254]
call fcn.00409fd4
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x453016
xor eax, eax
push ebp
push 0x45300f
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x45309c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x452ff8
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00405118
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x452ff8
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00405118
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x453016
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x452f19
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.0041b4c4
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45305a
lea eax, [ebp - 0x260]
call fcn.00404ea8
ret

Function at 0x453988
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x468bb4]
cmp byte [eax + 0xa5], 0
jne 0x4539f9
cmp dword [0x468bcc], 0
jne 0x4539ba
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x453944
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x468bcc], eax
cmp dword [0x468bc8], 0
jne 0x4539d5
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x468bc8], eax
cmp dword [0x468bd0], 0
jne 0x4539f9
push esp
push 0
push 0
push 0x4538e8
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x468bd0], eax
pop edx
ret
Function at 0x453af0
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x453b07
add esp, 0xfffffff0
call fcn.00404398
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041f2d4
mov eax, dword [0x4678b0]
cmp word [eax + 2], 0
jne 0x453b2f
mov eax, dword [0x4678b0]
mov dword [eax + 4], ebx
mov dword [eax], fcn.004551c8
mov eax, dword [0x46796c]
cmp word [eax + 2], 0
jne 0x453b49
mov eax, dword [0x46796c]
mov dword [eax + 4], ebx
mov dword [eax], fcn.004553c0
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x4175cc]
call fcn.00404044
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x4175cc]
call fcn.00404044
mov dword [ebx + 0xa8], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0x9d], 1
mov byte [ebx + 0xb4], 1
mov dl, 1
mov eax, dword [0x4217d0]
call fcn.0042909c
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x453cd0
mov eax, dword [0x4677c4]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.0042946c
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x455960
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x4677c4]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040d7f0
test eax, eax
je 0x453c3e
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.004099b4
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040d818
test eax, eax
je 0x453c52
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.00405118
mov eax, dword [0x467698]
cmp byte [eax], 0
jne 0x453c86
mov eax, ebx
call fcn.00453df8
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0x9e], 1
xor eax, eax
mov dword [ebx + 0xa0], eax
mov eax, ebx
call fcn.00455b3c
mov eax, ebx
call fcn.00456500
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x453cc6
call fcn.004043f0
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x454078
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x468bb4]
cmp dword [eax + 0x30], 0
je 0x454122
cmp dword [ebx + 0x94], 0
jne 0x45411c
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x454008
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x45411c
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x4540e2
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x45411c
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.00419934
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x4540f1
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x454c84
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x454cb9
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00404f98
jmp 0x454cc6
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404efc
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x455d18
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x455d59
mov eax, esi
call fcn.0043c4f4
test al, al
je 0x455d59
mov eax, dword [ebx + 0x84]
call fcn.0043c234
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x455d59
push 0
mov eax, dword [ebx + 0x84]
call fcn.0043c234
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x456a18
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x48], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
lea eax, [ebp - 0x10]
mov edx, dword [0x416b44]
call fcn.0040589c
xor eax, eax
push ebp
push 0x456b5c
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x466e3c], 0
jne 0x456a6b
mov ecx, dword [0x4676a8]
mov dl, 1
mov eax, dword [0x408288]
call fcn.0040ca9c
call fcn.004048c4
lea eax, [ebp - 0x20]
xor ecx, ecx
mov edx, 0x10
call fcn.0040321c
mov eax, ebx
call fcn.0040570c
mov dword [ebp - 0x1c], eax
push esi
push edi
mov esi, 0x456b6c
lea edi, [ebp - 0x30]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
pop esi
lea eax, [ebp - 0x30]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
call fcn.00406964
xor eax, eax
mov dword [ebp - 8], eax
mov eax, ebx
call fcn.0040571c
test eax, eax
jle 0x456b03
mov dword [ebp - 4], 0x10
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x40]
push eax
call sub.kernel32.dll_GetComputerNameA
test eax, eax
je 0x456afc
lea eax, [ebp - 0x44]
mov edx, ebx
call fcn.00405130
mov eax, dword [ebp - 0x44]
push eax
lea eax, [ebp - 0x48]
lea edx, [ebp - 0x40]
mov ecx, 0x10
call fcn.00405118
mov eax, dword [ebp - 0x48]
pop edx
call fcn.004090ac
test eax, eax
jne 0x456afc
mov ebx, 0x15
jmp 0x456b08
mov ebx, 0x10
jmp 0x456b08
mov ebx, 0x15
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 0x20]
push eax
push ebx
push 0
push esi
call dword [0x466e3c]
call fcn.00456970
mov eax, dword [ebp - 8]
call fcn.00456970
mov eax, edi
mov edx, dword [ebp - 0xc]
call fcn.0040697c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x456b63
lea eax, [ebp - 0x48]
mov edx, 2
call fcn.00404ecc
lea eax, [ebp - 0x10]
mov edx, dword [0x416b44]
call fcn.0040596c
ret

Function at 0x45f4f4
Capabilities:
Get system information on windows

Disassembly:
add esp, 0xffffffdc
push esp
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [esp + 0x14]
add esp, 0x24
ret

Function at 0x4618b8
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffef8
mov ebx, eax
push 0x104
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
mov edx, ebx
mov eax, esp
call fcn.00409b64
add esp, 0x108
pop ebx
ret
Function at 0x461f58
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x462037
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x462005
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00404ea8
push 0
push 0
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push ebx
call sub.kernel32.dll_GetVolumeInformationA
mov eax, dword [ebp - 8]
call fcn.00407ca8
movzx eax, ax
lea ecx, [ebp - 0x18]
mov edx, 4
call fcn.00409330
push dword [ebp - 0x18]
push 0x462050
lea ecx, [ebp - 0x1c]
movzx eax, word [ebp - 8]
mov edx, 4
call fcn.00409330
push dword [ebp - 0x1c]
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.00405228
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x14]
call fcn.00404efc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x46201c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46203e
lea eax, [ebp - 0x1c]
mov edx, 3
call fcn.00404ecc
ret
Function at 0x404a74
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
cmp byte [0x53626c], 0
jne 0x404bb9
call sub.kernel32.dll_GetCurrentProcessId
mov ebx, eax
xor eax, eax
mov ecx, eax
add ecx, ecx
add ecx, ecx
mov edx, ebx
shr edx, cl
and edx, 0xf
movzx edx, byte [edx + str.0123456789ABCDEF]
mov ecx, 0x18
sub ecx, eax
mov byte [ecx + str.LocalFastMM_PID_________], dl
inc eax
cmp eax, 8
jne 0x404a90
push str.LocalFastMM_PID_________
push 0
push 4
call sub.kernel32.dll_OpenFileMappingA
mov dword [0x536268], eax
cmp dword [0x536268], 0
jne 0x404b5e
mov eax, dword [sym.imp.rtl250.bpl__System_IsLibrary]
cmp byte [eax], 0
jne 0x404b19
push str.LocalFastMM_PID_________
push 4
push 0
push 4
push 0
push 0xffffffffffffffff
call sub.kernel32.dll_CreateFileMappingA
mov dword [0x536268], eax
push 0
push 0
push 0
push 2
mov eax, dword [0x536268]
push eax
call sub.kernel32.dll_MapViewOfFile
mov dword [eax], 0x536250
push eax
call sub.kernel32.dll_UnmapViewOfFile
mov dword [0x536250], fcn.00403480
mov dword [0x536254], 0x403764
mov dword [0x536258], 0x4038e4
mov dword [0x53625c], 0x403b74
mov dword [0x536260], 0x403d48
mov dword [0x536264], 0x403d94
mov byte [0x53626d], 1
jmp 0x404b9e
push 0
push 0
push 0
push 4
mov eax, dword [0x536268]
push eax
call sub.kernel32.dll_MapViewOfFile
mov esi, dword [eax]
mov edi, 0x536250
mov ecx, 6
rep movsd dword es:[edi], dword [esi]
push eax
call sub.kernel32.dll_UnmapViewOfFile
mov eax, dword [0x536268]
push eax
call sub.kernel32.dll_CloseHandle
xor eax, eax
mov dword [0x536268], eax
mov byte [0x53626d], 0
mov eax, 0x536238
call sub.rtl250.bpl__System_GetMemoryManager_qqrr23System_TMemoryManagerEx
mov eax, 0x536250
call sub.rtl250.bpl__System_SetMemoryManager_qqrrx23System_TMemoryManagerEx
mov byte [0x53626c], 1
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x421624
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
test dl, dl
je 0x421638
add esp, 0xfffffff0
call sub.rtl250.bpl__System__ClassCreate_qqrpvzc
mov esi, ecx
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
cmp dword [ebp + 0x18], 0
jne 0x42164e
cmp dword [ebp + 0x14], 0
ja 0x421663
jmp 0x421650
jg 0x421663
mov eax, dword [ebp - 4]
mov dword [eax + 0x20], 0x3200000
mov dword [eax + 0x24], 0
jmp 0x421672
mov eax, dword [ebp - 4]
mov edx, dword [ebp + 0x14]
mov dword [eax + 0x20], edx
mov edx, dword [ebp + 0x18]
mov dword [eax + 0x24], edx
mov eax, dword [ebp - 4]
push dword [eax + 0x24]
push dword [eax + 0x20]
call fcn.00422958
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x20], eax
mov dword [ecx + 0x24], edx
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x3c], edx
mov eax, dword [ebp - 4]
mov byte [eax + 0xa], 0
mov eax, dword [ebp - 4]
mov dword [eax + 0x18], 0
mov dword [eax + 0x1c], 0
mov eax, dword [ebp - 4]
mov dword [eax + 0x34], 0xffffffff
mov eax, dword [ebp - 4]
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0
mov eax, dword [ebp - 4]
mov byte [eax + 9], 0
mov eax, dword [ebp - 4]
mov edx, dword [ebp + 0x10]
mov dword [eax + 0x40], edx
mov eax, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
mov dword [eax + 0x44], edx
mov eax, dword [ebp - 4]
mov edx, dword [ebp + 8]
mov dword [eax + 0x48], edx
mov eax, 0x14
call sub.rtl250.bpl__System__GetMem_qqri
mov ebx, eax
mov eax, dword [ebp - 4]
mov dword [eax + 0x38], ebx
mov dword [ebx], 0xffffffff
mov dword [ebx + 0xc], 0
mov dword [ebx + 0x10], 0
mov edx, dword [ebp - 4]
mov eax, esi
mov dword [edx + 0x30], eax
cmp eax, 0xffffffff
sete al
mov edx, dword [ebp - 4]
mov byte [edx + 8], al
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x34]
mov dl, 1
call fcn.00422d34
mov edx, dword [ebp - 4]
mov dword [edx + 4], eax
mov eax, dword [ebp - 4]
mov byte [eax + 9], 1
xor eax, eax
push ebp
push 0x421767
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x3c]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42176e
mov eax, dword [ebp - 4]
mov byte [eax + 9], 0
ret

Function at 0x421aec
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
mov ebx, eax
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
cmp byte [ebx + 8], 0
jne 0x421b1f
cmp dword [ebx + 0x30], 0xffffffff
je 0x421b1f
lea eax, [ebp - 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.kernel32.dll_GetFileSize
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
pop ebx
pop ecx
pop ecx
pop ebp
ret
Function at 0x422408
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0xc], ebx
test dl, dl
je 0x422422
add esp, 0xfffffff0
call sub.rtl250.bpl__System__ClassCreate_qqrpvzc
mov byte [ebp - 0xd], dl
mov ebx, eax
xor eax, eax
push ebp
push 0x42254d
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, ecx
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x50]
lea eax, [ebp - 0xc]
mov edx, dword [ebx + 0x50]
call sub.rtl250.bpl__System__UStrLAsg_qqrr20System_UnicodeStringx20System_UnicodeString
mov dl, 1
mov eax, dword [ebp - 0xc]
call sub.rtl250.bpl__System_Sysutils_FileExists_qqrx20System_UnicodeStringo
test al, al
jne 0x422479
mov eax, dword [ebp - 0xc]
call sub.rtl250.bpl__System__UStrToPWChar_qqrx20System_UnicodeString
push eax
call sub.shlwapi.dll_PathIsUNCW
test eax, eax
jne 0x422479
lea eax, [ebp - 0xc]
mov ecx, dword [ebp - 0xc]
mov edx, 0x422584
call sub.rtl250.bpl__System__UStrCat3_qqrr20System_UnicodeStringx20System_UnicodeStringt2
mov eax, dword [ebp + 0x20]
push eax
mov eax, dword [ebp + 0x14]
push eax
mov eax, dword [ebp + 0x1c]
push eax
mov eax, dword [ebp + 0x18]
push eax
push 0
mov eax, dword [ebp - 0xc]
call sub.rtl250.bpl__System__UStrToPWChar_qqrx20System_UnicodeString
mov edx, eax
mov ecx, dword [ebp + 0x24]
mov eax, ebx
mov esi, dword [eax]
call dword [esi + 0x4c]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
jne 0x4224ad
call sub.rtl250.bpl__System_Sysutils_RaiseLastOSError_qqrv
xor eax, eax
push ebp
push 0x42251f
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp + 0x2c], 0
jne 0x4224c9
cmp dword [ebp + 0x28], 0
jae 0x4224eb
jmp 0x4224cb
jge 0x4224eb
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_GetFileSize
mov dword [ebp - 8], eax
jmp 0x4224f7
mov eax, dword [ebp + 0x28]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x2c]
mov dword [ebp - 4], eax
push dword [ebp - 4]
push dword [ebp - 8]
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x14]
xor edx, edx
mov eax, ebx
call fcn.00421624
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x422537
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x422554
lea eax, [ebp - 0xc]
call sub.rtl250.bpl__System__UStrClr_qqrpv
ret

Function at 0x422900
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
cmp dword [0x5363fc], 0
jbe 0x422916
mov eax, dword [0x5363fc]
jmp 0x42293b
lea eax, [ebp - 0x24]
xor ecx, ecx
mov edx, 0x24
call sub.rtl250.bpl__System__FillChar_qqrpvic
lea eax, [ebp - 0x24]
push eax
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [ebp - 8]
mov dword [0x5363fc], eax
mov eax, dword [0x5363fc]
mov esp, ebp
pop ebp
ret
Function at 0x424a8c
Capabilities:
Create thread
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x14]
test eax, eax
je 0x424ab4
push 0
push eax
call sub.kernel32.dll_TerminateThread
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x14]
push eax
call sub.kernel32.dll_CloseHandle
xor eax, eax
push ebp
push 0x424aed
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
add eax, 0x1c
push eax
push 0
mov eax, dword [ebp - 4]
push eax
push 0x424920
push 0
push 0
call sub.kernel32.dll_CreateThread
mov edx, dword [ebp - 4]
mov dword [edx + 0x14], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x424b07
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x4282c0
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 2
add byte [eax], al
invalid

Function at 0x429248
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x42925a
add esp, 0xfffffff0
call sub.rtl250.bpl__System__ClassCreate_qqrpvzc
mov ebx, edx
mov esi, eax
xor edx, edx
mov eax, esi
call sub.rtl250.bpl__System_TObject__bctr_qqrv
mov dl, 1
mov eax, dword [sym.imp.rtl250.bpl__System_Syncobjs_TCriticalSection_]
call sub.rtl250.bpl__System_Syncobjs_TCriticalSection__bctr_qqrv
mov dword [esi + 0x18], eax
xor eax, eax
mov dword [esi + 0x28], eax
mov cl, 1
mov dl, 1
mov eax, dword [0x427d90]
call fcn.0042b0f0
mov dword [esi + 0x1c], eax
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventW
mov dword [esi + 0x20], eax
lea eax, [ebp - 4]
push eax
push 0
push esi
push 0x429570
push 0
push 0
call sub.kernel32.dll_CreateThread
mov dword [esi + 0x24], eax
mov ecx, 0x64
mov dl, 1
mov eax, dword [0x424704]
call fcn.00424984
mov dword [esi + 4], eax
mov eax, esi
test bl, bl
je 0x4292dd
call sub.rtl250.bpl__System__AfterConstruction_qqrxp14System_TObject
pop dword fs:[0]
add esp, 0xc
mov eax, esi
pop esi
pop ebx
pop ecx
pop ebp
ret