joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406080
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4603e8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
mov eax, dword [0x47c008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x481500]
cmp eax, 2
je 0x40615e
push 0
push 1
push 0x481500
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
jne 0x406134
push 4
call fcn.0044d73a
mov esi, eax
add esp, 4
test esi, esi
je 0x4060e7
mov dword [esi], 0
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [esi], eax
jmp 0x4060e9
xor esi, esi
sub esp, 0x18
mov dword [0x481504], esi
mov dword [ebp - 0x18], 0x403040
mov eax, esp
mov dword [ebp - 0x14], 0x481500
mov dword [eax], vtable.._AV___Func_impl_U___Callable_obj_V___Bind__00XQ6AXPAX_ZAAPAX_std___0A__std__V__allocator_V___Func_class_X___V_std___2_X___V_std__.0
mov dword [eax + 4], 0x403040
mov dword [eax + 8], 0x481500
mov dword [eax + 0x10], eax
mov dword [ebp - 4], 0xffffffff
call fcn.004073a0
add esp, 0x18
mov dword [0x481500], 2
jmp 0x40615e
cmp eax, 2
je 0x40615e
mov eax, dword [0x481500]
cmp eax, 2
je 0x40615e
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
lea esp, [esp]
push 0
call esi
mov eax, dword [0x481500]
cmp eax, 2
jne 0x406150
mov eax, dword [0x481504]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4072f0
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
mov eax, dword [esi + 8]
mov dword [esi], vtable.nbase::Thread.0
test eax, eax
je 0x407337
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x407320
mov eax, dword [esi + 8]
test eax, eax
je 0x407337
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 4], 0
mov dword [esi + 8], 0
test byte [ebp + 8], 1
je 0x407346
push esi
call fcn.0044d735
add esp, 4
mov eax, esi
pop esi
pop ebp
ret 4
Function at 0x407d60
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x460c13
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x47c008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [ebp - 4], 0
mov dword [esi], vtable.nbase::WinIOMessagePump.0
mov dword [esi + 0x18], 0xffffffff
push 0
mov byte [ebp - 4], 1
push 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
call fcn.00408240
push 1
mov dword [esi + 0x1c], eax
push 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x24], vtable.ObserverList_class_nbase::WinIOMessagePump::IOObserver_.0
push 0
push 0xffffffffffffffff
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
mov edi, eax
mov eax, dword [esi + 0x18]
cmp eax, 0xffffffff
je 0x407e1a
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
mov dword [esi + 0x18], edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x408640
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x460c98
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x47c008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
lea esi, [edi + 0xc]
push esi
mov dword [ebp - 0x10], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 4], 0
cmp dword [edi + 0x24], 0
je 0x408698
call fcn.00406080
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, dword [edi + 0x24]
jne 0x408698
mov bl, 1
jmp 0x40869a
xor bl, bl
test esi, esi
je 0x4086a5
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, bl
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 0x4086f0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x460cd8
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x47c008]
xor eax, esp
mov dword [esp + 0x38], eax
push ebx
push esi
push edi
mov eax, dword [0x47c008]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
mov edi, ecx
lea esi, [edi + 0xc]
xor bl, bl
push esi
mov dword [esp + 0x1c], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [esp + 0x58], 0
cmp dword [edi + 0x24], 0
je 0x4087dc
call fcn.00406080
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, dword [edi + 0x24]
je 0x4087dc
lea eax, [esp + 0x14]
mov dword [esp + 0x14], edi
push eax
lea ecx, [esp + 0x20]
call fcn.00408840
add esp, 4
push eax
lea ecx, [esp + 0x30]
mov byte [esp + 0x5c], 1
call fcn.004088e0
lea eax, [esp + 0x2c]
mov byte [esp + 0x58], 2
mov ecx, dword [edi + 0x24]
push eax
call fcn.00405180
mov byte [esp + 0x58], 1
mov ecx, dword [esp + 0x3c]
test ecx, ecx
je 0x4087ba
mov edx, dword [ecx]
lea eax, [esp + 0x2c]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
mov dword [esp + 0x3c], 0
mov byte [esp + 0x58], 0
mov edx, dword [esp + 0x20]
test edx, edx
je 0x4087da
lea eax, [edx + 8]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x4087da
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 4]
mov bl, 1
mov dword [esp + 0x58], 0xffffffff
test esi, esi
je 0x4087ef
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test bl, bl
jne 0x4087fb
mov eax, dword [edi]
mov ecx, edi
push 1
call dword [eax]
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.0044d726
mov esp, ebp
pop ebp
ret

Function at 0x408f70
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push edi
mov edi, ecx
call fcn.00406080
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push 1
cmp byte [eax + 0x14], 0
lea eax, [ebp - 0x1c]
je 0x408fc6
push 0xf
push 0xf
push 0
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
jne 0x408fc2
push 1
push 0x113
push 0x113
push eax
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
jne 0x408fc2
xor bl, bl
jmp 0x408fd8
mov bl, 1
jmp 0x408fd8
push 0
push 0
push 0
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
setne bl
push 0
lea eax, [edi + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test bl, bl
jne 0x408ff0
pop edi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0xc]
lea eax, [ebp - 0x1c]
mov ecx, edi
push eax
call fcn.00408ec0
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40cd80
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push dword [esi + 0x10]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x40cdc5
cmp byte [ebp + 8], 0
je 0x40cdb9
cmp byte [ebp + 0xc], 0
mov ecx, 1
mov eax, 4
cmovne eax, ecx
push eax
push dword [esi + 0x10]
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
pop ebp
ret 8
xor eax, eax
push eax
push dword [esi + 0x10]
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
pop ebp
ret 8
Function at 0x413340
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x461318
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x47c008]
xor eax, esp
mov dword [esp + 0x1c], eax
push esi
push edi
mov eax, dword [0x47c008]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov edi, ecx
push 0xffffffffffffffff
push 1
lea eax, [esp + 0x18]
mov ecx, edx
push eax
call fcn.00407880
mov dword [esp + 0x38], 0
lea ecx, [esp + 0xc]
cmp dword [esp + 0x24], 8
lea eax, [esp + 0x10]
push 0x10
cmovae eax, dword [esp + 0x14]
push ecx
push eax
mov dword [esp + 0x18], 0
call fcn.0044ef0a
add esp, 0xc
mov esi, eax
push edi
call fcn.00414a90
mov dword [eax], esi
cmp dword [esp + 0x24], 8
jb 0x4133d3
push dword [esp + 0x10]
call fcn.0044d735
add esp, 4
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.0044d726
mov esp, ebp
pop ebp
ret
Function at 0x414020
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push str.THEME
push 0x81
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
cmp dword [0x4814a8], 0
mov esi, eax
je 0x414068
call fcn.00436c20
mov dword [0x4814a8], 0
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x14], 0x10
jb 0x414073
mov ecx, dword [ecx]
push ecx
push ecx
mov edx, esi
mov ecx, edi
call fcn.00436a70
add esp, 8
mov dword [0x4814a8], eax
xor ecx, ecx
test eax, eax
setne al
pop edi
pop esi
pop ecx
pop ebp
ret
Function at 0x421840
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x462398
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x47c008]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
push edi
mov eax, dword [0x47c008]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi]
mov edi, dword [ebp + 8]
test eax, eax
je 0x42188b
push eax
call fcn.0044e192
add esp, 4
mov eax, dword [esi + 4]
test eax, eax
je 0x42189b
push eax
call fcn.0044e192
add esp, 4
lea ecx, [esp + 0x18]
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.00413050
push edi
mov dword [esp + 0x44], 0
call dword [sym.imp.SHLWAPI.dll_PathIsRelativeW]
test eax, eax
je 0x4218fc
cmp word [edi], 0
jne 0x4218d9
xor ecx, ecx
push ecx
push edi
lea ecx, [esp + 0x20]
call fcn.00415ea0
jmp 0x42192a
mov ecx, edi
lea edx, [ecx + 2]
mov edi, edi
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4218e0
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [esp + 0x20]
call fcn.00415ea0
jmp 0x42192a
cmp word [edi], 0
jne 0x421906
xor ecx, ecx
jmp 0x42191f
mov ecx, edi
lea edx, [ecx + 2]
jmp 0x421910
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x421910
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [esp + 0x20]
call fcn.00401a00
cmp dword [esp + 0x2c], 8
lea eax, [esp + 0x18]
push 0
cmovae eax, dword [esp + 0x1c]
push 0x80
push 3
push 0
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x421961
push 0x63
push 0x46e338
jmp 0x4219d7
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
test edi, edi
jne 0x421979
push 0x63
push str.File_is_empty
jmp 0x4219d7
cmp edi, 0x400000
jbe 0x42198a
push 0x63
push str.File_too_large
jmp 0x4219d7
push edi
mov dword [esp + 0x18], 0
call fcn.0044d71d
add esp, 4
mov dword [esp + 0x10], eax
lea ecx, [esp + 0x14]
push 0
push ecx
push edi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x14], edi
je 0x4219fa
mov edi, dword [esp + 0x10]
push edi
call fcn.0044e6dd
add esp, 4
mov ecx, esi
call fcn.00421a50
push 0x63
push str.Could_not_read_file
lea eax, [esi + 0x10]
push eax
call fcn.0044f1ac
push 0x31
lea eax, [esi + 0xd8]
push 0x46ac60
push eax
call fcn.0044f1ac
add esp, 0x18
xor bl, bl
jmp 0x421a13
push ecx
push edi
mov edi, dword [esp + 0x18]
mov ecx, esi
push edi
call fcn.00421780
push edi
mov bl, al
call fcn.0044e6dd
add esp, 4
cmp dword [esp + 0x2c], 8
jb 0x421a26
push dword [esp + 0x18]
call fcn.0044d735
add esp, 4
mov al, bl
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.0044d726
mov esp, ebp
pop ebp
ret 8
Function at 0x426350
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
movss xmm0, dword [ebp + 0x18]
mov edx, dword [ebp + 0x20]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0x14]
mov word [ebp - 0x10], ax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0x10]
push esi
mov esi, ecx
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 0x1c]
xor eax, eax
test ecx, ecx
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x14], 0
sete al
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x20], esi
movss dword [ebp - 4], xmm0
cmp eax, edx
jne 0x4263bc
mov ecx, dword [esi + 0x20]
mov eax, dword [ecx + 0xf4]
mov dword [ebp - 0x18], eax
mov eax, dword [ecx + 0xf8]
mov dword [ebp - 0x14], eax
jmp 0x4263c2
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], edx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x1c], eax
lea ecx, [ebp - 0x24]
mov eax, dword [esi]
push ecx
mov ecx, esi
call dword [eax + 0xd0]
pop esi
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x42f470
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4631e0
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x47c008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], 0
jb 0x42f4ae
mov eax, dword [esi]
jmp 0x42f4b0
mov eax, esi
xor ecx, ecx
push ecx
mov word [eax], cx
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x42f5a8
mov edi, dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
push 0xd
call edi
test eax, eax
je 0x42f548
push 0xd
call dword [sym.imp.USER32.dll_GetClipboardData]
mov edi, eax
cmp edi, 0xffffffff
je 0x42f5a2
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ebx, eax
test ebx, ebx
je 0x42f5a2
push edi
call dword [sym.imp.KERNEL32.dll_GlobalSize]
shr eax, 1
xor ecx, ecx
push eax
mov word [ebp - 0x28], cx
lea ecx, [ebp - 0x28]
push ebx
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
call fcn.00401a00
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
cmp esi, eax
je 0x42f537
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
call fcn.00401620
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea ecx, [ebp - 0x28]
call fcn.00401520
jmp 0x42f5a2
push 1
call edi
test eax, eax
je 0x42f5a2
push 1
call dword [sym.imp.USER32.dll_GetClipboardData]
mov edi, eax
cmp edi, 0xffffffff
je 0x42f5a2
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ebx, eax
test ebx, ebx
je 0x42f5a2
push edi
call dword [sym.imp.KERNEL32.dll_GlobalSize]
push eax
push ebx
lea ecx, [ebp - 0x40]
call fcn.0041b390
push 0
mov edx, esi
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x40]
call fcn.00436f40
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea ecx, [ebp - 0x40]
call fcn.00402080
call dword [sym.imp.USER32.dll_CloseClipboard]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0044d726
mov esp, ebp
pop ebp
ret

Function at 0x42f5d0
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 0
mov esi, ecx
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x42f650
call dword [sym.imp.USER32.dll_EmptyClipboard]
test eax, eax
jne 0x42f5f8
call dword [sym.imp.USER32.dll_CloseClipboard]
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x10]
push ebx
push edi
lea ebx, [eax + eax]
lea eax, [ebx + 2]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
je 0x42f648
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
cmp dword [esi + 0x14], 8
mov dword [ebp - 4], eax
jb 0x42f624
mov esi, dword [esi]
push ebx
push esi
push eax
call fcn.0044f9b0
mov eax, dword [ebp - 4]
add esp, 0xc
xor ecx, ecx
push edi
mov word [ebx + eax], cx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push edi
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x434530
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
test edx, edx
jne 0x43453b
xor eax, eax
pop ebp
ret
push esi
mov esi, dword [ebp + 8]
not ecx
cmp esi, 8
jb 0x434605
push edi
mov edi, esi
shr edi, 3
movzx eax, byte [edx]
sub esi, 8
xor eax, ecx
shr ecx, 8
and eax, 0xff
xor ecx, dword [eax*4 + 0x46aea0]
movzx eax, byte [edx + 1]
xor eax, ecx
shr ecx, 8
and eax, 0xff
xor ecx, dword [eax*4 + 0x46aea0]
movzx eax, byte [edx + 2]
xor eax, ecx
shr ecx, 8
and eax, 0xff
xor ecx, dword [eax*4 + 0x46aea0]
movzx eax, byte [edx + 3]
xor eax, ecx
shr ecx, 8
and eax, 0xff
xor ecx, dword [eax*4 + 0x46aea0]
movzx eax, byte [edx + 4]
xor eax, ecx
shr ecx, 8
and eax, 0xff
xor ecx, dword [eax*4 + 0x46aea0]
movzx eax, byte [edx + 5]
xor eax, ecx
shr ecx, 8
and eax, 0xff
xor ecx, dword [eax*4 + 0x46aea0]
movzx eax, byte [edx + 6]
xor eax, ecx
shr ecx, 8
and eax, 0xff
xor ecx, dword [eax*4 + 0x46aea0]
movzx eax, byte [edx + 7]
add edx, 8
xor eax, ecx
shr ecx, 8
and eax, 0xff
xor ecx, dword [eax*4 + 0x46aea0]
dec edi
jne 0x434550
pop edi
test esi, esi
je 0x43462a
lea esp, [esp]
movzx eax, byte [edx]
lea edx, [edx + 1]
xor eax, ecx
shr ecx, 8
and eax, 0xff
xor ecx, dword [eax*4 + 0x46aea0]
dec esi
jne 0x434610
not ecx
mov eax, ecx
pop esi
pop ebp
ret

Function at 0x434640
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push esi
push edi
mov edi, ecx
movsx eax, dl
mov esi, dword [edi]
xor eax, esi
and eax, 0xff
shr esi, 8
mov eax, dword [eax*4 + 0x46aea0]
xor eax, esi
mov dword [edi], eax
movzx eax, al
add eax, dword [edi + 4]
imul ecx, eax, 0x8088405
mov eax, dword [edi + 8]
inc ecx
mov dword [edi + 4], ecx
shr ecx, 0x18
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x46aea0]
mov dword [edi + 8], eax
pop edi
pop esi
ret

Function at 0x434690
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push ebx
push esi
mov bl, dl
mov edx, ecx
push edi
mov edi, dword [edx + 8]
mov esi, edi
mov ecx, dword [edx]
and esi, 0xfffd
or esi, 2
mov eax, esi
xor eax, 1
imul eax, esi
shr eax, 8
xor bl, al
movsx eax, bl
xor eax, ecx
shr ecx, 8
and eax, 0xff
mov eax, dword [eax*4 + 0x46aea0]
xor eax, ecx
mov dword [edx], eax
movzx eax, al
add eax, dword [edx + 4]
imul eax, eax, 0x8088405
inc eax
mov dword [edx + 4], eax
shr eax, 0x18
xor eax, edi
shr edi, 8
and eax, 0xff
xor edi, dword [eax*4 + 0x46aea0]
mov al, bl
mov dword [edx + 8], edi
pop edi
pop esi
pop ebx
ret
Function at 0x434d60
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov ebx, edx
mov esi, ebx
mov eax, ecx
imul esi, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp byte [edi], 0
je 0x434da3
push 0
lea ecx, [ebp + 8]
push ecx
push esi
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x434d95
mov byte [edi + 8], 1
mov eax, dword [ebp + 8]
xor edx, edx
pop edi
pop esi
div ebx
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [edi + 0x1c]
mov ecx, dword [edi + 0x18]
lea eax, [edx + esi]
cmp eax, ecx
jbe 0x434db4
mov esi, ecx
sub esi, edx
mov ecx, dword [edi + 0x14]
push esi
add ecx, edx
push ecx
push dword [ebp - 4]
call fcn.0044f9b0
add dword [edi + 0x1c], esi
add esp, 0xc
mov eax, esi
xor edx, edx
div ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x434de0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, ecx
mov ebx, edx
push edi
mov dword [ebp - 8], ebx
mov edi, 1
cmp byte [esi], 0
je 0x434e1b
push 0
lea eax, [ebp - 8]
push eax
push edi
lea eax, [ebp - 1]
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x434e16
mov byte [esi + 8], 1
mov edi, dword [ebp - 8]
jmp 0x434e48
mov ebx, dword [esi + 0x1c]
mov ecx, dword [esi + 0x18]
lea eax, [ebx + 1]
cmp eax, ecx
jbe 0x434e2c
mov edi, ecx
sub edi, ebx
mov eax, dword [esi + 0x14]
add eax, ebx
push edi
push eax
lea eax, [ebp - 1]
push eax
call fcn.0044f9b0
lea eax, [ebx + edi]
add esp, 0xc
mov ebx, dword [ebp - 8]
mov dword [esi + 0x1c], eax
cmp edi, 1
jne 0x434e5c
movzx eax, byte [ebp - 1]
mov dword [ebx], eax
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [esi], 0
je 0x434e53
cmp byte [esi + 8], 0
je 0x434e53
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x434fd0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push edi
mov edi, ecx
mov ecx, dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp byte [edi], 0
je 0x435005
cmp byte [edi + 1], 0
je 0x434ffd
push 2
push 0
push 0
push dword [edi + 4]
call ecx
mov ecx, dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x43500b
or eax, 0xffffffff
pop edi
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 0x18]
mov dword [edi + 0x1c], eax
cmp byte [edi], 0
push ebx
je 0x435030
cmp byte [edi + 1], 0
je 0x435029
push 1
push 0
push 0
push dword [edi + 4]
call ecx
mov ebx, eax
sub ebx, dword [edi + 0xc]
jmp 0x435033
xor ebx, ebx
mov dword [ebp - 0xc], ebx
jmp 0x435042
mov ebx, dword [edi + 0x1c]
mov eax, 0xffff
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], eax
cmp ebx, eax
jae 0x435045
mov dword [ebp - 8], ebx
push esi
push 0x404
call fcn.0044f1ec
mov esi, eax
add esp, 4
test esi, esi
jne 0x435063
pop esi
pop ebx
or eax, 0xffffffff
pop edi
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 8]
mov eax, 4
mov dword [ebp - 4], 0xffffffff
cmp ecx, eax
jbe 0x435168
lea ebx, [ebx]
add eax, 0x400
cmp eax, ecx
mov edx, eax
mov eax, 0x404
cmova edx, ecx
mov ecx, ebx
sub ecx, edx
mov dword [ebp - 0x1c], edx
sub ebx, ecx
mov dword [ebp - 0x18], ecx
cmp ebx, 0x404
cmova ebx, eax
cmp byte [edi], 0
je 0x4350ca
cmp byte [edi + 1], 0
je 0x435168
mov eax, dword [edi + 0xc]
push 0
push 0
add eax, ecx
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x4350cd
mov dword [edi + 0x1c], ecx
cmp byte [edi], 0
mov ecx, ebx
mov dword [ebp - 0x10], ebx
je 0x4350f5
push 0
lea eax, [ebp - 0x14]
push eax
push ebx
push esi
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4350f0
mov byte [edi + 8], 1
mov eax, dword [ebp - 0x14]
jmp 0x43511e
mov edx, dword [edi + 0x1c]
lea eax, [edx + ebx]
cmp eax, dword [edi + 0x18]
jbe 0x435108
mov ecx, dword [edi + 0x18]
sub ecx, edx
mov dword [ebp - 0x10], ecx
push ecx
mov ecx, dword [edi + 0x14]
add ecx, edx
push ecx
push esi
call fcn.0044f9b0
mov eax, dword [ebp - 0x10]
add esp, 0xc
add dword [edi + 0x1c], eax
xor edx, edx
div ebx
cmp eax, 1
jne 0x435168
lea eax, [ebx - 3]
test eax, eax
js 0x435150
mov edi, edi
dec eax
cmp byte [eax + esi], 0x50
jne 0x43514c
cmp byte [eax + esi + 1], 0x4b
jne 0x43514c
cmp byte [eax + esi + 2], 5
jne 0x43514c
cmp byte [eax + esi + 3], 6
je 0x43517b
test eax, eax
jns 0x435130
mov eax, dword [ebp - 4]
test eax, eax
jne 0x435168
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 8]
mov ebx, dword [ebp - 0xc]
cmp eax, ecx
jb 0x435080
push esi
call fcn.0044e192
mov eax, dword [ebp - 4]
add esp, 4
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
add eax, dword [ebp - 0x18]
mov dword [ebp - 4], eax
jmp 0x435153