joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41df10
Capabilities:
Log keystrokes

Disassembly:
push ebx
push esi
movzx esi, cl
mov bl, dl
lea eax, [esi - 0x13]
cmp eax, 0x92
ja case.0x41df2c.20
movzx eax, byte [eax + 0x41e1cc]
jmp dword [eax*4 + 0x41e160]
mov ecx, 0x2a
xor eax, eax
movzx ecx, cx
test bl, bl
pop esi
cmove eax, ecx
pop ebx
ret
xor eax, eax
mov ecx, 0x136
test bl, bl
movzx ecx, cx
pop esi
cmove eax, ecx
pop ebx
ret
xor eax, eax
mov ecx, 0x1d
test bl, bl
movzx ecx, cx
pop esi
cmove eax, ecx
pop ebx
ret
xor eax, eax
mov ecx, 0x11d
test bl, bl
movzx ecx, cx
pop esi
cmove eax, ecx
pop ebx
ret
xor eax, eax
mov ecx, 0x38
test bl, bl
movzx ecx, cx
pop esi
cmove eax, ecx
pop ebx
ret
xor eax, eax
mov ecx, 0x138
test bl, bl
movzx ecx, cx
pop esi
cmove eax, ecx
pop ebx
ret
xor eax, eax
mov ecx, 0x15b
test bl, bl
movzx ecx, cx
pop esi
cmove eax, ecx
pop ebx
ret
xor eax, eax
mov ecx, 0x15c
test bl, bl
movzx ecx, cx
pop esi
cmove eax, ecx
pop ebx
ret
xor eax, eax
mov ecx, 0x45
test bl, bl
movzx ecx, cx
pop esi
cmove eax, ecx
pop ebx
ret
xor eax, eax
mov ecx, 0x52
test bl, bl
movzx ecx, cx
pop esi
cmove eax, ecx
pop ebx
ret
xor eax, eax
mov ecx, 0x4f
test bl, bl
movzx ecx, cx
pop esi
cmove eax, ecx
pop ebx
ret
xor eax, eax
mov ecx, 0x50
test bl, bl
movzx ecx, cx
pop esi
cmove eax, ecx
pop ebx
ret
xor eax, eax
mov ecx, 0x51
test bl, bl
movzx ecx, cx
pop esi
cmove eax, ecx
pop ebx
ret
xor eax, eax
mov ecx, 0x4b
test bl, bl
movzx ecx, cx
pop esi
cmove eax, ecx
pop ebx
ret
xor eax, eax
mov ecx, 0x4c
test bl, bl
movzx ecx, cx
pop esi
cmove eax, ecx
pop ebx
ret
xor eax, eax
mov ecx, 0x4d
test bl, bl
movzx ecx, cx
pop esi
cmove eax, ecx
pop ebx
ret
xor eax, eax
mov ecx, 0x47
test bl, bl
movzx ecx, cx
pop esi
cmove eax, ecx
pop ebx
ret
xor eax, eax
mov ecx, 0x48
test bl, bl
movzx ecx, cx
pop esi
cmove eax, ecx
pop ebx
ret
xor eax, eax
mov ecx, 0x49
test bl, bl
movzx ecx, cx
pop esi
cmove eax, ecx
pop ebx
ret
xor eax, eax
mov ecx, 0x53
test bl, bl
movzx ecx, cx
pop esi
cmove eax, ecx
pop ebx
ret
xor eax, eax
mov ecx, 0x145
test bl, bl
movzx ecx, cx
pop esi
cmove eax, ecx
pop ebx
ret
xor eax, eax
mov ecx, 0x135
test bl, bl
movzx ecx, cx
pop esi
cmove eax, ecx
pop ebx
ret
xor eax, eax
mov ecx, 0x37
test bl, bl
movzx ecx, cx
pop esi
cmove eax, ecx
pop ebx
ret
xor eax, eax
mov ecx, 0x4a
test bl, bl
movzx ecx, cx
pop esi
cmove eax, ecx
pop ebx
ret
xor eax, eax
mov ecx, 0x4e
test bl, bl
movzx ecx, cx
pop esi
cmove eax, ecx
pop ebx
ret
xor eax, eax
mov ecx, 0x137
test bl, bl
movzx ecx, cx
pop esi
cmove eax, ecx
pop ebx
ret
push 0
push esi
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
movzx ecx, ax
test cx, cx
jne 0x41e11d
pop esi
xor eax, eax
pop ebx
ret
add esi, 0xfffffffd
cmp esi, 0xb4
ja case.0x41e133.4
movzx eax, byte [esi + 0x41e26c]
jmp dword [eax*4 + 0x41e260]
or ecx, 0x100
xor eax, eax
test bl, bl
movzx ecx, cx
pop esi
cmove eax, ecx
pop ebx
ret
mov eax, ecx
or ecx, 0x100
test bl, bl
pop esi
cmovne eax, ecx
pop ebx
ret
Function at 0x41e330
Capabilities:
Log keystrokes

Disassembly:
push ebx
mov ebx, ecx
movzx edx, bx
mov eax, edx
cmp edx, 0x11c
ja 0x41e3a8
je 0x41e3a4
sub eax, 0x1d
cmp eax, 0x36
ja case.0x41e3b9.286
movzx eax, byte [eax + 0x41e45c]
jmp dword [eax*4 + 0x41e410]
mov al, 0xa0
pop ebx
ret
mov al, 0xa2
pop ebx
ret
mov al, 0xa4
pop ebx
ret
mov al, 0x6a
pop ebx
ret
mov al, 0x6d
pop ebx
ret
mov al, 0x6b
pop ebx
ret
mov al, 0x2e
pop ebx
ret
mov al, 0xc
pop ebx
ret
mov al, 0x2d
pop ebx
ret
mov al, 0x26
pop ebx
ret
mov al, 0x28
pop ebx
ret
mov al, 0x25
pop ebx
ret
mov al, 0x27
pop ebx
ret
mov al, 0x24
pop ebx
ret
mov al, 0x23
pop ebx
ret
mov al, 0x21
pop ebx
ret
mov al, 0x22
pop ebx
ret
mov al, 0x13
pop ebx
ret
mov al, 0xd
pop ebx
ret
sub eax, 0x11d
cmp eax, 0x40
ja case.0x41e3b9.286
movzx eax, byte [eax + 0x41e4bc]
jmp dword [eax*4 + 0x41e494]
mov al, 0xa1
pop ebx
ret
mov al, 0xa3
pop ebx
ret
mov al, 0xa5
pop ebx
ret
mov al, 0x5b
pop ebx
ret
mov al, 0x5c
pop ebx
ret
mov al, 0x90
pop ebx
ret
mov al, 0x6f
pop ebx
ret
mov al, 0x5d
pop ebx
ret
mov al, 0x2c
pop ebx
ret
test ebx, 0x100
je 0x41e401
movzx eax, dl
push 1
or eax, 0xe000
push eax
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
test eax, eax
jne 0x41e40d
push 1
movzx eax, bl
push eax
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
pop ebx
ret
Function at 0x420210
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push esi
mov esi, dword [esp + 8]
not ecx
cmp esi, 8
jb 0x4202cd
push edi
mov edi, esi
shr edi, 3
movzx eax, byte [edx]
sub esi, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4c6ae8]
movzx eax, byte [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4c6ae8]
movzx eax, byte [edx + 2]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4c6ae8]
movzx eax, byte [edx + 3]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4c6ae8]
movzx eax, byte [edx + 4]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4c6ae8]
movzx eax, byte [edx + 5]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4c6ae8]
movzx eax, byte [edx + 6]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4c6ae8]
movzx eax, byte [edx + 7]
add edx, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4c6ae8]
sub edi, 1
jne 0x420226
pop edi
test esi, esi
je 0x4202eb
movzx eax, byte [edx]
lea edx, [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4c6ae8]
sub esi, 1
jne 0x4202d1
not ecx
mov eax, ecx
pop esi
ret

Function at 0x4206f0
Capabilities:
Read file on windows

Disassembly:
push ecx
push esi
mov esi, ecx
test byte [esi], 1
jne 0x420723
push 0
lea eax, [esp + 8]
push eax
push dword [esp + 0x14]
push edx
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x42071c
mov dword [esi + 8], 7
pop esi
pop ecx
ret
mov eax, dword [esp + 4]
pop esi
pop ecx
ret
mov ecx, dword [esi + 0x10]
xor eax, eax
push ebx
mov ebx, dword [esi + 0x18]
push ebp
push edi
mov edi, dword [esp + 0x18]
mov ebp, edi
add ebp, ebx
adc eax, dword [esi + 0x1c]
cmp eax, dword [esi + 0x14]
jb 0x420748
ja 0x420744
cmp ebp, ecx
jbe 0x420748
mov edi, ecx
sub edi, ebx
mov ecx, dword [esi + 4]
push edi
add ecx, ebx
push ecx
push edx
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov eax, edi
add dword [esi + 0x18], edi
adc dword [esi + 0x1c], 0
pop edi
pop ebp
pop ebx
pop esi
pop ecx
ret
Function at 0x421ac0
Capabilities:
Create directory

Disassembly:
sub esp, 0x10
mov al, byte [ecx]
mov dword [esp + 4], 0xc
mov dword [esp + 8], 0
mov dword [esp + 0xc], 1
mov dword [esp], ecx
push ebx
mov ebx, edx
push ebp
push esi
push edi
test al, al
je 0x421af6
cmp byte [ecx + 1], 0x3a
jne 0x421af6
mov al, byte [ecx + 2]
add ecx, 2
mov dl, al
cmp al, 0x5c
jne 0x421aff
mov dl, byte [ecx + 1]
lea esi, [ecx + 1]
cmovne esi, ecx
test dl, dl
je 0x421b58
mov al, byte [esi]
mov ebp, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test al, al
je 0x421b2c
nop dword [eax + eax]
cmp al, 0x5c
je 0x421b65
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x421b20
xor esi, esi
test ebx, ebx
je 0x421b58
lea eax, [esp + 0x14]
push eax
push dword [esp + 0x14]
call ebp
test eax, eax
jne 0x421b4a
call edi
cmp eax, 0xb7
jne 0x421b6a
test esi, esi
je 0x421b58
mov byte [esi], 0x5c
inc esi
mov al, byte [esi]
test al, al
jne 0x421b20
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x10
ret
mov byte [esi], 0
jmp 0x421b32
test esi, esi
je 0x421b71
mov byte [esi], 0x5c
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10
ret

Function at 0x421b80
Capabilities:
Create directory

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
movzx esi, word [ecx]
mov ebx, edx
mov dword [esp + 0x10], 0xc
mov eax, esi
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 1
mov dword [esp + 0xc], ecx
push edi
test si, si
je 0x421bbd
cmp word [ecx + 2], 0x3a
jne 0x421bbd
movzx eax, word [ecx + 4]
add ecx, 4
movzx edi, ax
movzx edx, ax
cmp ax, 0x5c
jne 0x421bcd
movzx edx, word [ecx + 2]
cmp edi, 0x5c
lea esi, [ecx + 2]
cmovne esi, ecx
test dx, dx
je 0x421c41
movzx ecx, word [esi]
mov ebp, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
nop word [eax + eax]
movzx eax, cx
test ax, ax
je 0x421c0a
cmp ax, 0x5c
je 0x421c4e
movzx eax, word [esi + 2]
add esi, 2
test ax, ax
jne 0x421bf8
xor esi, esi
test ebx, ebx
je 0x421c41
lea eax, [esp + 0x14]
push eax
push dword [esp + 0x14]
call ebp
test eax, eax
jne 0x421c28
call edi
cmp eax, 0xb7
jne 0x421c55
test esi, esi
je 0x421c41
mov eax, 0x5c
mov word [esi], ax
add esi, 2
movzx eax, word [esi]
mov ecx, eax
test ax, ax
jne 0x421bf0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x10
ret
xor eax, eax
mov word [esi], ax
jmp 0x421c10
test esi, esi
je 0x421c61
mov eax, 0x5c
mov word [esi], ax
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10
ret
Function at 0x421c70
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
push esi
push edi
mov esi, ecx
mov edi, edx
push 1
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x421e81
mov eax, dword [esi + 0x30]
and eax, dword [esi + 0x34]
cmp eax, 0xffffffff
je 0x421e81
mov ebx, dword [ebp + 0xc]
mov dword [esi + 8], 0
test bl, 1
je 0x421d22
cmp word [esi + 0x70], 0
mov ebx, dword [ebp + 8]
jne 0x421cd3
mov edx, ebx
mov ecx, esi
call fcn.00420de0
cmp dword [esi + 8], 0
jne 0x421e70
mov eax, 1
mov word [esi + 0x70], ax
push dword [ebx + 0x2c]
mov edx, edi
mov ecx, esi
push dword [ebx + 0x28]
call fcn.004210f0
add esp, 8
mov dword [ebx + 0x28], eax
mov dword [ebx + 0x2c], edx
cmp dword [esi + 8], 0
jne 0x421d0b
mov eax, dword [esi + 0xe8]
or eax, dword [esi + 0xec]
je 0x421d0b
mov eax, 5
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, esi
mov word [esi + 0x70], ax
call fcn.00420cc0
mov eax, dword [esi + 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
test byte [eax + 8], 0x10
je 0x421d58
test bl, 2
je 0x421d4f
mov edx, 1
mov ecx, edi
test ebx, ebx
jns 0x421d42
call fcn.00421b80
jmp 0x421d47
call fcn.00421ac0
test eax, eax
je 0x421e69
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp ebx, 4
je 0x421da5
xor edx, edx
mov ecx, edi
test ebx, ebx
jns 0x421d6c
call fcn.00421b80
jmp 0x421d71
call fcn.00421ac0
test eax, eax
je 0x421e69
mov eax, dword [ebp + 8]
push 0
mov eax, dword [eax + 8]
push eax
push 2
push 0
push 0
push 0x40000000
push edi
test ebx, ebx
jns 0x421d9a
call dword [sym.imp.KERNEL32.dll_CreateFileW]
jmp 0x421da0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
mov eax, dword [ebp + 8]
cmp edi, 0xffffffff
je 0x421e69
mov edx, eax
mov ecx, esi
call fcn.00420de0
cmp dword [esi + 8], 0
jne 0x421e4c
cmp dword [esi + 0x4c], 0
jne 0x421de2
push 0x4000
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [esi + 0x4c], eax
test eax, eax
jne 0x421de2
mov dword [esi + 8], 2
cmp dword [esi + 8], 0
jne 0x421e4c
mov edx, dword [esi + 0x4c]
mov ecx, esi
push 0
push 0x4000
call fcn.004210f0
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x421e2d
push 0
lea eax, [esp + 0x10]
push eax
push ebx
push dword [esi + 0x4c]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x421e26
cmp dword [esp + 0xc], ebx
jne 0x421e26
cmp dword [esi + 8], 0
je 0x421de8
jmp 0x421e2d
mov dword [esi + 8], 3
cmp dword [esi + 8], 0
mov ebx, dword [ebp + 0xc]
jne 0x421e4c
mov ecx, dword [ebp + 8]
lea eax, [ecx + 0x1c]
push eax
lea eax, [ecx + 0xc]
push eax
lea eax, [ecx + 0x14]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
cmp ebx, 4
je 0x421e70
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, esi
call fcn.00420cc0
mov eax, dword [esi + 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [esi + 8], 1
mov ecx, esi
call fcn.00420cc0
mov eax, dword [esi + 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 9
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4228d0
Capabilities:
Get file size
Parse pe header
Read file on windows

Disassembly:
sub esp, 0x44
lea eax, [esp + 0x10]
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov ebp, edx
push eax
push dword [edi + 0x64]
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
jne 0x4228fa
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x44
ret
mov ebx, dword [esp + 0x20]
mov esi, ebx
and esi, 1
mov eax, ebx
mov ecx, esi
or ecx, 2
and al, 2
mov eax, ebx
cmove ecx, esi
mov edx, ecx
or edx, 4
and al, 4
cmove edx, ecx
mov ecx, ebx
and ecx, 0x10
mov eax, edx
or eax, 0x10
mov dword [esp + 0x14], ecx
test ecx, ecx
cmove eax, edx
mov edx, 0x81000000
mov ecx, eax
or ecx, 0x20
and bl, 0x20
mov ebx, 0x41000000
cmove ecx, eax
mov eax, dword [esp + 0x14]
test eax, eax
cmove ebx, edx
or ebx, ecx
test esi, esi
jne 0x422963
test eax, eax
mov ebx, 0x41800000
mov edx, 0x81800000
cmove ebx, edx
or ebx, ecx
push 0
push dword [edi + 0x64]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
xor ecx, ecx
mov dword [edi + 0x50], eax
mov dword [edi + 0x54], ecx
cmp eax, 0x28
jbe 0x422a44
mov eax, dword [edi + 0x18]
or eax, dword [edi + 0x1c]
jne 0x422a44
mov esi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push eax
push eax
push eax
push dword [edi + 0x64]
call esi
push 0
lea eax, [esp + 0x18]
push eax
push 2
lea eax, [esp + 0x1c]
push eax
push dword [edi + 0x64]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
push 0
push 0x24
push dword [edi + 0x64]
call esi
push 0
lea eax, [esp + 0x18]
push eax
push 4
lea eax, [esp + 0x24]
push eax
push dword [edi + 0x64]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, 0x54ad
cmp word [esp + 0x10], ax
jne 0x422a39
cmp dword [edi + 0x54], 0
mov eax, dword [esp + 0x18]
lea ecx, [eax + 0x34]
jb 0x422a39
ja 0x4229f2
cmp dword [edi + 0x50], ecx
jbe 0x422a39
push 0
push 0
push eax
push dword [edi + 0x64]
call esi
push 0
lea eax, [esp + 0x18]
push eax
push 4
lea eax, [esp + 0x28]
push eax
push dword [edi + 0x64]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x1c]
cmp eax, 0x5a4d
je 0x422a33
cmp eax, 0x454e
je 0x422a33
cmp eax, 0x454c
je 0x422a33
cmp eax, 0x4550
jne 0x422a39
or ebx, 0x400000
push 0
push 0
push 0
push dword [edi + 0x64]
call esi
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x30]
sub ecx, 0xd53e8000
push 0
push 0x989680
sbb eax, 0x19db1de
mov dword [ebp + 0x10], ebx
push eax
push ecx
call fcn.004c1b70
mov ecx, dword [esp + 0x34]
mov dword [ebp], eax
sub ecx, 0xd53e8000
mov eax, dword [esp + 0x38]
push 0
push 0x989680
sbb eax, 0x19db1de
push eax
push ecx
call fcn.004c1b70
mov ecx, dword [esp + 0x24]
mov dword [ebp + 4], eax
sub ecx, 0xd53e8000
mov eax, dword [esp + 0x28]
push 0
push 0x989680
sbb eax, 0x19db1de
push eax
push ecx
call fcn.004c1b70
mov dword [ebp + 8], eax
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToDosDateTime]
movzx ecx, word [esp + 0x10]
movzx eax, word [esp + 0x14]
shl ecx, 0x10
pop edi
or ecx, eax
xor eax, eax
pop esi
mov dword [ebp + 0xc], ecx
pop ebp
pop ebx
add esp, 0x44
ret
Function at 0x4245f0
Capabilities:
Enumerate pe sections

Disassembly:
push ebx
push esi
mov esi, edx
push edi
mov edi, ecx
mov ecx, esi
cmp dword [esi], 0
jge 0x42464b
mov edx, 0x8b1f
call fcn.00425030
mov edx, 0x808
mov ecx, esi
call fcn.00425030
mov edx, dword [edi + 4]
mov ecx, esi
call fcn.00425030
movzx edx, word [edi + 6]
mov ecx, esi
call fcn.00425030
mov edx, 0xb02
mov ecx, esi
call fcn.00425030
mov eax, dword [edi + 0x20]
lea edx, [edi + 0x48]
inc eax
mov ecx, esi
push eax
call fcn.004251a0
add esp, 4
pop edi
pop esi
pop ebx
ret
mov edx, 0x4034b50
call fcn.00425030
mov edx, 0x403
mov ecx, esi
call fcn.00425030
mov edx, 0x2d
mov ecx, esi
call fcn.00425030
movzx edx, word [edi + 0x30]
mov ecx, esi
call fcn.00425030
movzx edx, word [edi + 2]
mov ecx, esi
call fcn.00425030
mov edx, dword [edi + 4]
mov ecx, esi
call fcn.00425030
movzx edx, word [edi + 6]
mov ecx, esi
call fcn.00425030
mov edx, dword [edi + 8]
mov ecx, esi
call fcn.00425030
movzx edx, word [edi + 0xa]
mov ecx, esi
call fcn.00425030
or edx, 0xffffffff
mov ecx, esi
call fcn.00425030
or edx, 0xffffffff
mov ecx, esi
call fcn.00425030
or edx, 0xffffffff
mov ecx, esi
call fcn.00425030
or edx, 0xffffffff
mov ecx, esi
call fcn.00425030
mov edx, dword [edi + 0x20]
mov ecx, esi
call fcn.00425030
mov edx, dword [edi + 0x24]
mov ecx, esi
add edx, 0x14
call fcn.00425030
push dword [edi + 0x20]
lea edx, [edi + 0x48]
mov ecx, esi
call fcn.004251a0
add esp, 4
mov edx, 1
mov ecx, esi
call fcn.00425030
mov edx, 0x10
mov ecx, esi
call fcn.00425030
mov edx, dword [edi + 0x18]
mov ecx, esi
call fcn.00425030
mov edx, dword [edi + 0x18]
mov ecx, esi
mov eax, dword [edi + 0x1c]
shrd edx, eax, 0x10
call fcn.00425030
mov eax, dword [edi + 0x18]
mov cl, 0x20
mov edx, dword [edi + 0x1c]
call fcn.004c1e40
mov edx, eax
mov ecx, esi
call fcn.00425030
movzx edx, word [edi + 0x1e]
mov ecx, esi
call fcn.00425030
mov edx, dword [edi + 0x10]
mov ecx, esi
call fcn.00425030
mov edx, dword [edi + 0x10]
mov ecx, esi
mov eax, dword [edi + 0x14]
shrd edx, eax, 0x10
call fcn.00425030
mov eax, dword [edi + 0x10]
mov cl, 0x20
mov edx, dword [edi + 0x14]
call fcn.004c1e40
mov edx, eax
mov ecx, esi
call fcn.00425030
movzx edx, word [edi + 0x16]
mov ecx, esi
call fcn.00425030
mov eax, dword [edi + 0x24]
test eax, eax
je 0x4247a1
mov edx, dword [edi + 0x40]
mov ecx, esi
push eax
call fcn.004251a0
add esp, 4
pop edi
pop esi
pop ebx
ret
Function at 0x424f40
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
test edx, edx
jne 0x424f47
xor eax, eax
ret
push esi
mov esi, dword [esp + 8]
not ecx
cmp esi, 8
jb 0x425007
push edi
mov edi, esi
shr edi, 3
nop dword [eax]
movzx eax, byte [edx]
sub esi, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4c6ae8]
movzx eax, byte [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4c6ae8]
movzx eax, byte [edx + 2]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4c6ae8]
movzx eax, byte [edx + 3]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4c6ae8]
movzx eax, byte [edx + 4]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4c6ae8]
movzx eax, byte [edx + 5]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4c6ae8]
movzx eax, byte [edx + 6]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4c6ae8]
movzx eax, byte [edx + 7]
add edx, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4c6ae8]
sub edi, 1
jne 0x424f60
pop edi
test esi, esi
je 0x42502a
nop dword [eax + eax]
movzx eax, byte [edx]
lea edx, [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4c6ae8]
sub esi, 1
jne 0x425010
not ecx
mov eax, ecx
pop esi
ret
Function at 0x425030
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32
Write file on windows

Disassembly:
sub esp, 0xc
push edi
mov edi, ecx
mov dword [esp + 0xc], edx
cmp dword [edi + 0x20], 0
jne 0x42518f
mov eax, edx
mov byte [esp + 4], dl
shr eax, 8
mov dword [esp + 8], eax
mov byte [esp + 5], al
mov eax, dword [edi]
test al, 0x10
je 0x425117
push ebx
mov ebx, dword [edi + 0x38]
movsx eax, dl
xor eax, ebx
shr ebx, 8
movzx eax, al
push esi
mov esi, dword [edi + 0x40]
mov ecx, esi
and ecx, 0xfffd
xor ebx, dword [eax*4 + 0x4c6ae8]
or ecx, 2
movzx eax, bl
add eax, dword [edi + 0x3c]
imul edx, eax, 0x8088405
inc edx
mov eax, edx
shr eax, 0x18
xor eax, esi
shr esi, 8
movzx eax, al
xor esi, dword [eax*4 + 0x4c6ae8]
mov eax, ecx
xor eax, 1
imul eax, ecx
mov ecx, esi
and ecx, 0xfffd
or ecx, 2
shr eax, 8
xor al, byte [esp + 0x14]
mov byte [esp + 0xc], al
mov eax, dword [esp + 0x10]
movsx eax, al
xor eax, ebx
shr ebx, 8
movzx eax, al
xor ebx, dword [eax*4 + 0x4c6ae8]
movzx eax, bl
add eax, edx
mov dword [edi + 0x38], ebx
imul eax, eax, 0x8088405
inc eax
mov dword [edi + 0x3c], eax
shr eax, 0x18
xor eax, esi
shr esi, 8
movzx eax, al
xor esi, dword [eax*4 + 0x4c6ae8]
mov eax, ecx
xor eax, 1
mov dword [edi + 0x40], esi
imul eax, ecx
pop esi
pop ebx
shr eax, 8
xor al, byte [esp + 8]
mov byte [esp + 5], al
mov eax, dword [edi]
test al, 1
je 0x425157
mov edx, dword [edi + 0x28]
mov ecx, edx
mov eax, dword [edi + 0x2c]
add ecx, 2
adc eax, 0
cmp eax, dword [edi + 0x34]
jb 0x425141
ja 0x425135
cmp ecx, dword [edi + 0x30]
jb 0x425141
mov dword [edi + 0x20], 0xb
pop edi
add esp, 0xc
ret
mov ecx, dword [edi + 4]
mov ax, word [esp + 4]
mov word [edx + ecx], ax
add dword [edi + 0x28], 2
adc dword [edi + 0x2c], 0
jmp 0x425180
push 0
lea eax, [esp + 0x10]
push eax
push 2
lea eax, [esp + 0x10]
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x425179
cmp dword [esp + 0xc], 2
je 0x425180
mov dword [edi + 0x20], 3
test dword [edi], 0x40000000
je 0x42518f
mov dword [edi + 0x20], 0x14
pop edi
add esp, 0xc
ret
Function at 0x4251a0
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg
Hash data with crc32
Write file on windows

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push esi
mov esi, ecx
push edi
mov edi, edx
test ebp, ebp
je 0x42530b
cmp dword [esi + 0x20], 0
jne 0x42530b
test byte [esi], 0x10
je 0x425299
mov ecx, dword [esi + 0x44]
mov eax, ecx
test ecx, ecx
je 0x4251e4
cmp dword [esi + 0x48], ebp
jae 0x4251e4
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [esi + 0x44], 0
jmp 0x4251e8
test eax, eax
jne 0x42520e
lea eax, [ebp*2]
push eax
push 0
mov dword [esi + 0x48], eax
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [esi + 0x44], eax
test eax, eax
jne 0x42520e
mov dword [esi + 0x20], 2
jmp 0x4252fc
push ebp
push edi
push eax
call sub.VCRUNTIME140.dll_memcpy
xor edx, edx
add esp, 0xc
mov dword [esp + 0x10], edx
test ebp, ebp
je 0x425296
push ebx
mov eax, dword [esi + 0x44]
mov ecx, dword [esi + 0x38]
mov bl, byte [edx + eax]
mov edx, dword [esi + 0x40]
mov edi, edx
movsx eax, bl
and edi, 0xfffd
xor eax, ecx
or edi, 2
movzx eax, al
shr ecx, 8
xor ecx, dword [eax*4 + 0x4c6ae8]
movzx eax, cl
add eax, dword [esi + 0x3c]
imul eax, eax, 0x8088405
mov dword [esi + 0x38], ecx
mov ecx, edi
xor ecx, 1
imul ecx, edi
inc eax
mov dword [esi + 0x3c], eax
shr eax, 0x18
xor eax, edx
shr ecx, 8
movzx eax, al
xor cl, bl
shr edx, 8
xor edx, dword [eax*4 + 0x4c6ae8]
mov dword [esi + 0x40], edx
mov edx, dword [esp + 0x14]
mov eax, dword [esi + 0x44]
mov byte [edx + eax], cl
inc edx
mov dword [esp + 0x14], edx
cmp edx, ebp
jb 0x425224
pop ebx
mov edi, dword [esi + 0x44]
test byte [esi], 1
je 0x4252d9
mov edx, dword [esi + 0x28]
mov ecx, edx
mov eax, dword [esi + 0x2c]
add ecx, ebp
adc eax, 0
cmp eax, dword [esi + 0x34]
jb 0x4252c0
ja 0x4252b7
cmp ecx, dword [esi + 0x30]
jb 0x4252c0
mov dword [esi + 0x20], 0xb
jmp 0x4252fc
mov eax, dword [esi + 4]
push ebp
add eax, edx
push edi
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
add dword [esi + 0x28], ebp
adc dword [esi + 0x2c], 0
jmp 0x4252fc
push 0
lea eax, [esp + 0x14]
push eax
push ebp
push edi
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4252f5
cmp dword [esp + 0x10], ebp
je 0x4252fc
mov dword [esi + 0x20], 3
test dword [esi], 0x40000000
je 0x42530b
mov dword [esi + 0x20], 0x14
pop edi
pop esi
pop ebp
ret