joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4885c7
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [ebp - 8]
mov ecx, 0x4c57b0
push ebx
push esi
push edi
push eax
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
call fcn.00402382
test al, al
jne 0x4885f0
xor eax, eax
jmp 0x4887ca
mov ecx, dword [ebp - 4]
mov eax, dword [0x4c5810]
mov eax, dword [eax + ecx*4]
mov ecx, dword [ebp - 8]
mov eax, dword [eax]
mov dword [ebp - 4], eax
mov eax, dword [0x4c5824]
mov eax, dword [eax + ecx*4]
lea ecx, [ebp + 0xc]
mov edi, dword [eax]
mov bl, byte [edi + 0x90]
mov esi, dword [edi]
mov dword [ebp - 8], esi
mov byte [ebp + 0xb], bl
call fcn.004031b1
cmp dword [edi + 0x48], 0
jl 0x488631
push dword [edi + 0x48]
call fcn.0048a434
movzx eax, bl
mov ebx, dword [ebp + 0xc]
cmp eax, 0x12
jg 0x488715
je 0x4886d2
test eax, eax
je 0x4886c2
jle 0x4885e9
cmp eax, 4
jle 0x48875b
cmp eax, 8
je 0x4886a2
cmp eax, 0x10
je 0x48868c
cmp eax, 0x11
jne 0x4885e9
mov eax, dword [ebp + 0xc]
test eax, eax
js 0x4885e9
push 1
push eax
mov dword [edi + 0x48], eax
call fcn.00402250
push 1
push 0
push dword [edi + 0x34]
call dword [sym.imp.USER32.dll_InvalidateRect]
jmp 0x4887b3
cmp dword [ebp + 0xc], 0
jl 0x4885e9
push dword [ebp + 0xc]
push 0
push 0x111d
jmp 0x4886b6
cmp dword [ebp + 0xc], 0
jl 0x4885e9
push dword [ebp + 0xc]
push 0
push 0x2001
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x4887b3
mov eax, dword [ebp + 0xc]
test eax, eax
jns 0x48877d
jmp 0x4885e9
mov eax, dword [ebp + 0xc]
cmp eax, 0xffffffff
jl 0x4885e9
push 1
push eax
mov dword [edi + 0x48], eax
call fcn.00402250
test byte [edi + 0x92], 0x20
jne 0x4887b3
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
push 0
push dword [edi]
call esi
push 5
push dword [edi]
call esi
push dword [edi]
call dword [sym.imp.USER32.dll_SetFocus]
jmp 0x4887b3
cmp eax, 0x13
je 0x488768
cmp eax, 0x14
je 0x488664
cmp eax, 0x17
je 0x48875b
cmp eax, 0x18
je 0x48873d
jle 0x4885e9
cmp eax, 0x1b
jle 0x48875b
jmp 0x4885e9
test ebx, ebx
js 0x4885e9
push 0xfffffffffffffff0
push esi
call dword [sym.imp.USER32.dll_GetWindowLongW]
or eax, 0xb
push eax
push 0xfffffffffffffff0
push esi
call dword [sym.imp.USER32.dll_SetWindowLongW]
push 1
push ebx
mov dword [edi + 0x48], ebx
call fcn.00402250
jmp 0x4887a8
mov ebx, dword [ebp + 0xc]
cmp ebx, 0xfffffffe
je 0x4885e9
mov eax, 0xfe000000
cmp ebx, eax
jne 0x48878a
push 1
push eax
mov dword [edi + 0x48], eax
call fcn.00402250
jmp 0x4887b3
push ebx
push 0
push 0x1001
push esi
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
call esi
push ebx
push 0
push 0x1026
push dword [ebp - 8]
call esi
push 1
push edi
push dword [ebp - 4]
call fcn.0048b24a
cmp dword [0x4c52b0], 0
je 0x4887c7
cmp byte [ebp + 0xb], 8
jne 0x4887c7
or eax, 0xffffffff
jmp 0x4887ca
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x489fdb
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 4], 0
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
mov ecx, 0x4c57b0
push eax
push dword [ebp + 8]
call fcn.00402382
test al, al
jne 0x48a005
xor eax, eax
jmp 0x48a138
mov ecx, dword [ebp - 0xc]
mov eax, dword [0x4c5810]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov eax, dword [eax + ecx*4]
mov ecx, dword [ebp - 8]
push edi
mov eax, dword [eax]
mov dword [ebp + 8], eax
mov eax, dword [0x4c5824]
mov eax, dword [eax + ecx*4]
mov ecx, dword [sym.imp.USER32.dll_SendMessageW]
mov edi, dword [eax]
mov ebx, dword [edi]
cmp esi, 0xffffffff
je 0x48a0a0
movzx eax, byte [edi + 0x90]
dec eax
dec eax
je 0x48a06c
dec eax
je 0x48a06f
sub eax, 3
je 0x48a067
dec eax
je 0x48a062
sub eax, 3
je 0x48a05a
sub eax, 0xc
jne 0x48a08d
jmp 0x48a135
or esi, 0x4000000
jmp 0x48a08d
or esi, 3
jmp 0x48a08d
or esi, 0xe
jmp 0x48a08d
or esi, 4
push 0
test esi, 0x800
je 0x48a07d
push 1
jmp 0x48a085
or esi, 0x10000
push 0
push 0xcf
push ebx
call ecx
or esi, 0x50000000
push esi
push 0xfffffffffffffff0
push ebx
call dword [sym.imp.USER32.dll_SetWindowLongW]
mov dword [ebp - 4], eax
mov esi, dword [ebp + 0x10]
cmp esi, 0xffffffff
je 0x48a0dd
push esi
push 0xffffffffffffffec
push ebx
call dword [sym.imp.USER32.dll_SetWindowLongW]
mov ecx, dword [ebp - 8]
mov dword [ebp - 4], eax
mov eax, dword [0x4c5824]
mov eax, dword [eax + ecx*4]
mov eax, dword [eax]
cmp byte [eax + 0x90], 0x13
jne 0x48a0dd
push esi
push 0
push 0x1036
push ebx
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [ebp - 4], eax
mov al, byte [edi + 0x93]
mov ecx, dword [ebp + 8]
cmp al, 0xff
je 0x48a100
movzx eax, al
cmp eax, dword [ecx + 0x190]
je 0x48a100
push 0
push ebx
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x48a109
push 1
push edi
push ecx
call fcn.0048b24a
mov al, byte [edi + 0x90]
cmp al, 2
je 0x48a11c
cmp al, 3
je 0x48a11c
cmp esi, 0xffffffff
je 0x48a12d
push 0x27
xor eax, eax
push eax
push eax
push eax
push eax
push eax
push dword [edi]
call dword [sym.imp.USER32.dll_SetWindowPos]
xor eax, eax
cmp dword [ebp - 4], eax
setne al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x48b5ba
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push 0x44
push 0
mov ebx, 0x4c6f18
push ebx
call fcn.00423810
push 0x10
push 0
mov esi, 0x4c6f5c
push esi
call fcn.00423810
add esp, 0x18
mov dword [0x4c6f18], 0x44
xor eax, eax
inc eax
mov dword [0x4c6f44], eax
push esi
push ebx
mov word [0x4c6f48], ax
xor eax, eax
push eax
push eax
push 0x20
push eax
push eax
push eax
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
pop esi
pop ebx
test eax, eax
je 0x48b61f
push dword [0x4c6f5c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebp
ret 4

Function at 0x48b623
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 3
mov edi, ecx
mov edx, dword [ebx + 4]
mov dword [ebp + 8], edx
pop esi
cmp dword [ebx + 0x190], eax
je 0x48b6d9
cmp dword [edi + 0x84], esi
jl 0x48b6d3
mov eax, dword [edi + 0x74]
mov eax, dword [eax + esi*4]
mov ecx, dword [eax]
test ecx, ecx
je 0x48b6c4
cmp dword [ecx + 4], edx
jne 0x48b6c4
mov dl, byte [ecx + 0x90]
cmp dl, 0xb
je 0x48b6c1
mov dh, byte [ecx + 0x93]
movzx eax, dh
cmp eax, dword [ebx + 0x190]
je 0x48b693
cmp byte [ebx + 0x198], 0
je 0x48b6c1
cmp dh, 0xff
je 0x48b6c1
cmp dl, 0xa
je 0x48b6c1
push 0
push dword [ecx]
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [edi + 0x74]
mov eax, dword [eax + esi*4]
mov eax, dword [eax]
test byte [eax + 0x92], 0x40
je 0x48b6c1
cmp byte [eax + 0x90], 0x1a
jne 0x48b6c1
push 0
push dword [eax]
call dword [sym.imp.USER32.dll_EnableWindow]
mov edx, dword [ebp + 8]
inc esi
cmp esi, dword [edi + 0x84]
jle 0x48b653
mov eax, dword [ebp + 0xc]
push 3
pop esi
mov dword [ebx + 0x190], eax
cmp dword [edi + 0x84], esi
jl 0x48b766
mov eax, dword [edi + 0x74]
mov eax, dword [eax + esi*4]
mov ecx, dword [eax]
test ecx, ecx
je 0x48b757
cmp dword [ecx + 4], edx
jne 0x48b757
cmp byte [ecx + 0x90], 0xb
je 0x48b757
movzx eax, byte [ecx + 0x93]
cmp eax, dword [ebx + 0x190]
jne 0x48b757
test byte [ecx + 0x92], 0x20
jne 0x48b757
push 0
push dword [ecx]
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [edi + 0x74]
push 4
mov eax, dword [eax + esi*4]
mov eax, dword [eax]
push dword [eax]
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [edi + 0x74]
mov eax, dword [eax + esi*4]
mov eax, dword [eax]
test byte [eax + 0x92], 0x40
je 0x48b757
cmp byte [eax + 0x90], 0x1a
jne 0x48b757
push 1
push dword [eax]
call dword [sym.imp.USER32.dll_EnableWindow]
mov edx, dword [ebp + 8]
inc esi
cmp esi, dword [edi + 0x84]
jle 0x48b6e5
mov eax, dword [ebp + 0xc]
push 0
push eax
push 0x130c
push dword [ebx + 0x188]
call dword [sym.imp.USER32.dll_SendMessageW]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x48b9b8
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
sub esp, 0x24
push ebx
push esi
push edi
xor edi, edi
cmp word [eax], di
je 0x48bad2
push edi
push edi
push 3
push edi
push edi
push bind
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x48b9ef
xor eax, eax
jmp 0x48bb01
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
push esi
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
jne 0x48ba12
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x48b9e8
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push 0
lea ecx, [ebp - 0xc]
push ecx
push esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x48b9e8
lea eax, [ebp - 8]
push eax
push 1
push ebx
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
lea eax, [ebp - 4]
xor edi, edi
push eax
push 0x492ccc
push edi
push edi
push dword [ebp - 8]
mov dword [ebp - 4], edi
call dword [sym.imp.OLEAUT32.dll_OleCreatePictureIndirect]
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x48b9e8
mov eax, dword [ecx]
lea edx, [ebp + 0xc]
push edx
push ecx
call dword [eax + 0xc]
lea eax, [ebp - 0x24]
push eax
push 0x18
push dword [ebp + 0xc]
call dword [sym.imp.GDI32.dll_GetObjectW]
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
cmp dword [edx], edi
jne 0x48baae
cmp dword [ecx], edi
jne 0x48baae
mov eax, dword [ebp - 0x20]
mov dword [edx], eax
mov eax, dword [ebp - 0x1c]
mov dword [ecx], eax
push 0x2000
push dword [ecx]
push dword [edx]
push edi
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_CopyImage]
mov dword [ebp + 0xc], eax
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp + 0xc]
jmp 0x48bad7
mov eax, edi
mov dword [ebp + 0xc], eax
mov esi, dword [ebp + 8]
cmp dword [esi + 0x64], 0
je 0x48baec
push dword [esi + 0x64]
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [ebp + 0xc]
push eax
push edi
mov dword [esi + 0x64], eax
mov esi, dword [esi]
push 0x172
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x48c43d
Capabilities:
Check for unmoving mouse cursor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, 0x4c57b0
push edi
mov ecx, esi
call fcn.00402592
mov ecx, dword [0x4c5810]
mov eax, dword [ecx + eax*4]
mov ebx, dword [eax]
cmp dword [ebp + 0xc], edi
jne 0x48c497
xor esi, esi
cmp dword [ebx + 0x1a0], esi
je 0x48c4fb
lea eax, [ebp - 8]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
push esi
push edi
push dword [ebp - 4]
push dword [ebp - 8]
push esi
push dword [ebx + 0x1a0]
call dword [sym.imp.USER32.dll_TrackPopupMenuEx]
jmp 0x48c519
push dword [ebp + 0xc]
mov ecx, esi
call fcn.0040255b
mov dword [ebp + 8], eax
cmp eax, 0xffffffff
je 0x48c4fb
mov ecx, dword [0x4c5824]
mov ecx, dword [ecx + eax*4]
mov eax, dword [ecx]
mov cl, byte [eax + 0x90]
cmp cl, 0xe
je 0x48c4fb
cmp cl, 0xf
je 0x48c4fb
cmp cl, 0x13
je 0x48c4fb
cmp cl, 0x10
je 0x48c4fb
xor esi, esi
cmp dword [eax + 0xc], esi
je 0x48c4fb
lea eax, [ebp - 8]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
mov eax, dword [0x4c5824]
mov ecx, dword [ebp + 8]
push esi
push dword [ebx]
push dword [ebp - 4]
mov eax, dword [eax + ecx*4]
push dword [ebp - 8]
push esi
mov eax, dword [eax]
push dword [eax + 0xc]
jmp 0x48c48c
mov eax, dword [ebp + 0x14]
movzx ecx, ax
mov eax, dword [ebp + 0x10]
shl ecx, 0x10
movzx eax, ax
or ecx, eax
push ecx
push dword [ebp + 0xc]
push 0x7b
push edi
call dword [sym.imp.USER32.dll_DefDlgProcW]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4017e0
Capabilities:
Encode data using base64

Disassembly:
push 0xffffffffffffffff
push 0x458ee9
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov eax, dword [0x46e0b0]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x38]
xor edi, edi
mov dword [esp + 0x20], edi
mov dword [ebp + 0x18], 0xf
mov dword [ebp + 0x14], edi
mov dword [esp + 0x24], ebp
mov byte [ebp + 4], 0
xor esi, esi
mov dword [esp + 0x30], edi
mov dword [esp + 0x20], 1
cmp dword [esp + 0x40], edi
je 0x4019c0
mov eax, dword [esp + 0x3c]
mov cl, byte [eax]
dec dword [esp + 0x40]
mov byte [esp + esi + 0x18], cl
mov bl, byte [esp + 0x19]
inc esi
inc eax
mov dword [esp + 0x3c], eax
cmp esi, 3
jne 0x4018e2
mov al, byte [esp + 0x18]
mov dl, al
shr dl, 2
and al, 3
shl al, 4
mov byte [esp + 0x14], dl
mov cl, bl
shr cl, 4
add al, cl
mov byte [esp + 0x15], al
mov al, byte [esp + 0x1a]
mov dl, bl
and dl, 0xf
add dl, dl
mov cl, al
add dl, dl
shr cl, 6
add dl, cl
and al, 0x3f
mov byte [esp + 0x16], dl
mov byte [esp + 0x17], al
xor esi, esi
lea esp, [esp]
movzx edi, byte [esp + esi + 0x14]
cmp edi, dword [0x46d04c]
jbe 0x4018b2
call fcn.0042aa23
cmp dword [0x46d050], 0x10
mov eax, dword [0x46d03c]
jae 0x4018c5
mov eax, 0x46d03c
mov dl, byte [eax + edi]
mov byte [esp + 0x1c], dl
mov eax, dword [esp + 0x1c]
push eax
push 1
mov ecx, ebp
call fcn.00401510
inc esi
cmp esi, 4
jl 0x4018a0
xor esi, esi
xor edi, edi
cmp dword [esp + 0x40], edi
jne 0x40183b
cmp esi, edi
je 0x4019c0
cmp esi, 3
jge 0x401915
mov ecx, 3
sub ecx, esi
push ecx
lea eax, [esp + esi + 0x1c]
push edi
push eax
call fcn.0042a800
mov bl, byte [esp + 0x25]
add esp, 0xc
mov al, byte [esp + 0x18]
mov dl, al
mov cl, bl
and al, 3
shl al, 4
shr cl, 4
add al, cl
shr dl, 2
and bl, 0xf
mov byte [esp + 0x15], al
mov al, byte [esp + 0x1a]
add bl, bl
mov byte [esp + 0x14], dl
mov dl, al
add bl, bl
shr dl, 6
add bl, dl
mov byte [esp + 0x16], bl
and al, 0x3f
lea ebx, [esi + 1]
mov byte [esp + 0x17], al
test ebx, ebx
jle 0x4019a4
jmp 0x401960
movzx eax, byte [esp + edi + 0x14]
cmp eax, dword [0x46d04c]
jbe 0x401972
call fcn.0042aa23
cmp dword [0x46d050], 0x10
mov eax, dword [0x46d03c]
jae 0x401985
mov eax, 0x46d03c
movzx ecx, byte [esp + edi + 0x14]
mov al, byte [eax + ecx]
mov byte [esp + 0x1c], al
mov ecx, dword [esp + 0x1c]
push ecx
push 1
mov ecx, ebp
call fcn.00401510
inc edi
cmp edi, ebx
jl 0x401960
cmp esi, 3
jge 0x4019c0
mov edi, 3
sub edi, esi
push 0x3d
push 1
mov ecx, ebp
call fcn.00401510
sub edi, 1
jne 0x4019b0
mov eax, ebp
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
Function at 0x408150
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4594c3
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x46e0b0]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
mov dword [esi], 0x45da08
push esi
mov dword [esp + 0x18], 1
call fcn.004464ff
add esp, 4
cmp dword [esi + 0x30], 0x10
jb 0x4081a1
mov eax, dword [esi + 0x1c]
push eax
call fcn.0041cbb7
add esp, 4
xor eax, eax
mov dword [esi + 0x30], 0xf
mov dword [esi + 0x2c], eax
mov byte [esi + 0x1c], al
mov dword [esi], 0x45d854
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret
Function at 0x419d50
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x419d5b
xor eax, eax
ret
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 4]
push esi
not eax
cmp edx, 8
jb 0x419e39
mov esi, edx
shr esi, 3
push edi
movzx edi, byte [ecx]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x45e8d8]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
inc ecx
shr eax, 8
xor eax, dword [edi*4 + 0x45e8d8]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
inc ecx
shr eax, 8
xor eax, dword [edi*4 + 0x45e8d8]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x45e8d8]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x45e8d8]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x45e8d8]
movzx edi, byte [ecx + 1]
inc ecx
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x45e8d8]
movzx edi, byte [ecx + 1]
inc ecx
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x45e8d8]
inc ecx
sub edx, 8
sub esi, 1
jne 0x419d75
pop edi
test edx, edx
je 0x419e5b
lea ecx, [ecx]
movzx esi, byte [ecx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x45e8d8]
inc ecx
sub edx, 1
jne 0x419e40
not eax
pop esi
ret

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

Disassembly:
mov edx, dword [esp + 4]
mov eax, dword [edx]
movsx ecx, byte [esp + 8]
xor ecx, eax
shr eax, 8
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x45e8d8]
xor ecx, eax
movzx eax, cl
add eax, dword [edx + 4]
mov dword [edx], ecx
mov ecx, dword [edx + 8]
imul eax, eax, 0x8088405
inc eax
mov dword [edx + 4], eax
shr eax, 0x18
xor eax, ecx
and eax, 0xff
shr ecx, 8
xor ecx, dword [eax*4 + 0x45e8d8]
mov dword [edx + 8], ecx
ret
Function at 0x41a060
Capabilities:
Parse pe header

Disassembly:
sub esp, 0x48
push esi
mov esi, dword [esp + 0x50]
lea eax, [esp + 0x18]
push eax
push esi
call dword [0x45d270]
test eax, eax
jne 0x41a082
mov eax, 0x200
pop esi
add esp, 0x48
ret
mov eax, dword [esp + 0x18]
push ebx
push ebp
mov edx, eax
xor ebp, ebp
and edx, 1
push edi
je 0x41a097
mov ebp, 1
test al, 2
je 0x41a09e
or ebp, 2
test al, 4
je 0x41a0a5
or ebp, 4
mov ecx, eax
and ecx, 0x10
je 0x41a0af
or ebp, 0x10
test al, 0x20
je 0x41a0b6
or ebp, 0x20
test ecx, ecx
je 0x41a0c2
or ebp, 0x40000000
jmp 0x41a0c8
or ebp, 0x80000000
or ebp, 0x1000000
test edx, edx
jne 0x41a0d8
or ebp, 0x800000
push 0
push esi
call dword [0x45d274]
mov dword [esp + 0x14], eax
cmp eax, 0x28
jbe 0x41a186
mov edi, dword [0x45d278]
push 0
push 0
push 0
push esi
call edi
mov ebx, dword [0x45d27c]
push 0
lea ecx, [esp + 0x1c]
push ecx
push 2
lea edx, [esp + 0x1c]
push edx
push esi
call ebx
push 0
push 0
push 0x24
push esi
call edi
push 0
lea eax, [esp + 0x1c]
push eax
push 4
lea ecx, [esp + 0x28]
push ecx
push esi
call ebx
mov edx, 0x54ad
cmp word [esp + 0x10], dx
jne 0x41a186
mov eax, dword [esp + 0x1c]
lea ecx, [eax + 0x34]
cmp dword [esp + 0x14], ecx
jbe 0x41a186
push 0
push 0
push eax
push esi
call edi
push 0
lea edx, [esp + 0x1c]
push edx
push 4
lea eax, [esp + 0x2c]
push eax
push esi
call ebx
mov eax, dword [esp + 0x20]
cmp eax, 0x5a4d
je 0x41a180
cmp eax, 0x454e
je 0x41a180
cmp eax, 0x454c
je 0x41a180
cmp eax, 0x4550
jne 0x41a186
or ebp, 0x400000
mov eax, dword [esp + 0x60]
test eax, eax
je 0x41a190
mov dword [eax], ebp
mov eax, dword [esp + 0x64]
test eax, eax
je 0x41a19e
mov ecx, dword [esp + 0x14]
mov dword [eax], ecx
mov esi, dword [esp + 0x68]
mov edi, dword [esp + 0x3c]
mov ebx, dword [esp + 0x38]
test esi, esi
je 0x41a1e7
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x30]
push edx
push eax
call fcn.00419fd0
push edi
push ebx
mov dword [esi], eax
mov dword [esi + 4], edx
call fcn.00419fd0
mov ecx, dword [esp + 0x3c]
mov dword [esi + 0xc], edx
mov edx, dword [esp + 0x38]
push ecx
push edx
mov dword [esi + 8], eax
call fcn.00419fd0
add esp, 0x18
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], edx
mov esi, dword [esp + 0x6c]
test esi, esi
je 0x41a214
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x14]
push ecx
push edi
push ebx
call fcn.00419ff0
movzx edx, word [esp + 0x20]
movzx eax, word [esp + 0x24]
shl edx, 0x10
add esp, 0x10
or edx, eax
mov dword [esi], edx
pop edi
pop ebp
pop ebx
xor eax, eax
pop esi
add esp, 0x48
ret
Function at 0x41a680
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov edx, dword [esp + 4]
xor eax, eax
sub esp, 0x18
push esi
mov esi, ecx
mov ecx, dword [esp + 0x24]
mov dword [esi + 0x7c], eax
mov dword [esi + 0x84], edx
mov byte [esi + 0x80], al
mov dword [esi + 0x78], eax
mov dword [esi + 0x90], eax
mov dword [esi + 0x74], eax
mov dword [esi + 0x88], ecx
mov dword [esi + 0x8c], eax
cmp edx, eax
je 0x41a74a
cmp ecx, eax
je 0x41a74a
lea eax, [esp + 0xc]
push eax
mov dword [esi + 0x4c], 0x80000000
mov dword [esi + 0x70], ecx
mov byte [esi + 0x6c], 1
call dword [0x45d258]
lea ecx, [esp + 4]
push ecx
lea edx, [esp + 0x10]
push edx
call dword [0x45d25c]
mov edx, dword [esp + 8]
lea eax, [esp + 0x24]
push eax
mov eax, dword [esp + 8]
lea ecx, [esp + 0x24]
push ecx
push edx
push eax
call fcn.00419ff0
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
push ecx
push edx
call fcn.00419fd0
mov dword [esi + 0x50], eax
mov dword [esi + 0x58], eax
mov dword [esi + 0x60], eax
movzx eax, word [esp + 0x38]
mov ecx, edx
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x64], ecx
movzx ecx, word [esp + 0x3c]
shl eax, 0x10
or eax, ecx
add esp, 0x18
mov dword [esi + 0x68], eax
mov dword [esi + 0x54], edx
xor eax, eax
pop esi
add esp, 0x18
ret 8
mov eax, 0x10000
pop esi
add esp, 0x18
ret 8
Function at 0x41ba10
Capabilities:
Encode data using xor

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x10]
xor ebx, ebx
push edi
xor edi, edi
mov dword [esi + 0x6af80], 2
lea ebp, [ebx + 1]
cmp dword [esi + 0x6af90], ebx
je 0x41bc32
cmp dword [esi + 0x6af90], 3
jb 0x41ba89
mov ecx, dword [esi + 0x6af84]
movzx eax, byte [ecx + esi + 0x1af72]
mov edx, dword [esi + 0x6af7c]
shl edx, 5
xor eax, edx
and eax, 0x7fff
mov dword [esi + 0x6af7c], eax
mov ebx, dword [esi + eax*4 + 0x4af70]
and ecx, 0x7fff
mov dword [esi + ecx*4 + 0x2af70], ebx
mov eax, dword [esi + 0x6af7c]
mov ecx, dword [esi + 0x6af84]
mov dword [esi + eax*4 + 0x4af70], ecx
test ebx, ebx
je 0x41bac9
mov edx, dword [esi + 0x6af84]
sub edx, ebx
cmp edx, 0x7efa
ja 0x41bac9
mov eax, dword [esi + 0x6af90]
cmp dword [esi + 0x6afa0], eax
jbe 0x41bab1
mov dword [esi + 0x6afa0], eax
push ebx
push esi
call fcn.004190f0
mov edi, eax
mov eax, dword [esi + 0x6af90]
add esp, 8
cmp edi, eax
jbe 0x41bac9
mov edi, eax
cmp edi, 3
jb 0x41bbae
mov ecx, dword [esi + 0x6af84]
sub ecx, dword [esi + 0x6af88]
lea eax, [edi - 3]
push eax
push ecx
push esi
call fcn.00418ac0
sub dword [esi + 0x6af90], edi
add esp, 0xc
mov edx, eax
mov eax, dword [esi + 0x6af90]
cmp edi, dword [esi + 0x6af98]
ja 0x41bb67
cmp eax, 3
jb 0x41bb67
sub edi, ebp
lea esp, [esp]
add dword [esi + 0x6af84], ebp
mov ecx, dword [esi + 0x6af84]
movzx eax, byte [esi + ecx + 0x1af72]
mov ebx, dword [esi + 0x6af7c]
shl ebx, 5
xor eax, ebx
and eax, 0x7fff
mov dword [esi + 0x6af7c], eax
mov ebx, dword [esi + eax*4 + 0x4af70]
and ecx, 0x7fff
sub edi, ebp
mov dword [esi + ecx*4 + 0x2af70], ebx
mov eax, dword [esi + 0x6af7c]
mov ecx, dword [esi + 0x6af84]
mov dword [esi + eax*4 + 0x4af70], ecx
jne 0x41bb10
jmp 0x41bbd0
add dword [esi + 0x6af84], edi
mov eax, dword [esi + 0x6af84]
lea ecx, [eax + esi]
movzx eax, byte [ecx + 0x1af70]
mov dword [esi + 0x6af7c], eax
movzx ecx, byte [ecx + 0x1af71]
shl eax, 5
push str.Call_UPDATE_HASH___MIN_MATCH_3_more_times
xor ecx, eax
and ecx, 0x7fff
push ebp
push esi
xor edi, edi
mov dword [esi + 0x6af7c], ecx
call fcn.00418620
add esp, 0xc
jmp 0x41bbd6
mov edx, dword [esi + 0x6af84]
movzx eax, byte [edx + esi + 0x1af70]
push eax
push 0
push esi
call fcn.00418ac0
add esp, 0xc
dec dword [esi + 0x6af90]
mov edx, eax
add dword [esi + 0x6af84], ebp
test edx, edx
je 0x41bc10
mov eax, dword [esi + 0x6af74]
test eax, eax
jl 0x41bbed
lea ecx, [eax + esi + 0x1af70]
jmp 0x41bbef
xor ecx, ecx
mov edx, dword [esi + 0x6af84]
push 0
sub edx, eax
push edx
push ecx
push esi
call fcn.0041b850
mov eax, dword [esi + 0x6af84]
add esp, 0x10
mov dword [esi + 0x6af74], eax
cmp dword [esi + 0x6af90], 0x106
jae 0x41bc25
push esi
call fcn.004192d0
add esp, 4
cmp dword [esi + 0x6af90], 0
jne 0x41ba35
mov eax, dword [esi + 0x6af74]
test eax, eax
jl 0x41bc45
lea ecx, [eax + esi + 0x1af70]
jmp 0x41bc47
xor ecx, ecx
mov edx, dword [esi + 0x6af84]
push ebp
sub edx, eax
push edx
push ecx
push esi
call fcn.0041b850
add esp, 0x10
pop edi
pop esi
pop ebp
pop ebx
ret