joyce8/EMBER2024-capa huggingface dataset:
Function at 0x484cc0
Capabilities:
Set registry value

Disassembly:
mov eax, dword [esp + 0x28]
sub esp, 0x18
push ebx
push ebp
xor ebx, ebx
xor ebp, ebp
cmp eax, 0x80000301
ja 0x484d40
je 0x484d31
cmp eax, 0x80000101
ja 0x484d2a
je 0x484d31
cmp eax, reloc.WS2_32.dll_connect
je 0x484d0c
cmp eax, 0x80000005
jne 0x484d55
mov eax, dword [esp + 0x40]
mov dword [esp + 8], 3
test eax, eax
je 0x484da2
mov ebx, dword [eax + 4]
lea ebp, [eax + 8]
jmp 0x484da2
mov eax, dword [esp + 0x40]
mov dword [esp + 8], 1
push eax
call fcn.0048a8d0
mov ebp, dword [esp + 0x44]
mov ebx, eax
add esp, 4
inc ebx
jmp 0x484da2
cmp eax, 0x80000201
jne 0x484d55
mov ebx, 4
lea ebp, [esp + 0x40]
mov dword [esp + 8], ebx
jmp 0x484da2
cmp eax, 0x80000401
je 0x484d8d
cmp eax, 0x80000501
je 0x484d75
cmp eax, 0x80000601
je 0x484d5d
pop ebp
xor eax, eax
pop ebx
add esp, 0x18
ret
fld qword [esp + 0x40]
mov ebx, 4
mov dword [esp + 8], ebx
call fcn.004949e4
mov dword [esp + 0xc], eax
jmp 0x484d9e
fld dword [esp + 0x40]
mov ebx, 4
mov dword [esp + 8], ebx
call fcn.004949e4
mov dword [esp + 0xc], eax
jmp 0x484d9e
mov ecx, dword [esp + 0x40]
mov ebx, 4
mov dword [esp + 8], ebx
mov dword [esp + 0xc], ecx
lea ebp, [esp + 0xc]
mov edx, dword [esp + 0x28]
push esi
push edx
call fcn.0048b560
mov esi, eax
mov eax, dword [esp + 0x3c]
push eax
mov dword [esp + 0x28], esi
mov dword [esp + 0x20], 0
call fcn.0048a8d0
add esp, 8
test esi, esi
je 0x484e7a
test eax, eax
je 0x484e7a
inc eax
push edi
push eax
call fcn.004a03a8
mov edi, dword [esp + 0x40]
mov edx, eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x5c
mov eax, ecx
mov esi, edi
mov edi, edx
push edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov dword [esp + 0x2c], edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.00494d00
mov esi, eax
add esp, 0xc
test esi, esi
je 0x484e1c
mov byte [esi], 0
inc esi
mov edi, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
lea ecx, [esp + 0x18]
push 0
push ecx
push 0
push 0x20006
push 0
push 0
push 0
push edi
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x484e70
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
push ebx
push ebp
push eax
push 0
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x484e65
mov dword [esp + 0x1c], 1
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
call fcn.004a03d1
add esp, 4
pop edi
mov eax, dword [esp + 0x18]
pop esi
pop ebp
pop ebx
add esp, 0x18
ret

Function at 0x4856a0
Capabilities:
Set file attributes

Disassembly:
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 8]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
ret
Function at 0x485910
Capabilities:
Delete directory

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
jne 0x48591d
xor eax, eax
pop esi
ret
push esi
call fcn.0048a8d0
add esp, 4
test eax, eax
jne 0x48592c
pop esi
ret
cmp eax, 1
jne 0x48593a
cmp byte [esi], 0x5c
jne 0x48593a
xor eax, eax
pop esi
ret
push esi
call fcn.004856c0
add esp, 4
test eax, eax
je 0x48594e
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
pop esi
ret

Function at 0x485950
Capabilities:
Copy file
Delete file
Move file

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0x1c]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
jne 0x48597a
push eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x48597a
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop edi
pop esi
ret

Function at 0x487980
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x140
push ebx
mov ebx, dword [esp + 0x154]
push ebp
push esi
mov esi, dword [ebx]
push edi
mov edi, dword [esp + 0x154]
xor ebp, ebp
test edi, edi
je 0x4879ff
push edi
call fcn.0048a8d0
add esp, 4
test eax, eax
jbe 0x4879ff
test esi, esi
je 0x4879bd
cmp esi, 0xffffffff
je 0x4879bd
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea eax, [esp + 0x10]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
mov dword [ebx], esi
je 0x487a41
mov eax, dword [esp + 0x15c]
test eax, eax
je 0x4879eb
mov ecx, dword [esp + 0x10]
and ecx, 0x10
cmp cl, 0x10
je 0x4879ff
jmp 0x4879fa
mov edx, dword [esp + 0x158]
mov eax, dword [esp + 0x10]
test edx, eax
je 0x4879ff
mov ebp, 1
test esi, esi
je 0x487a41
cmp esi, 0xffffffff
je 0x487a41
test ebp, ebp
jne 0x487a78
mov eax, dword [esp + 0x15c]
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
lea eax, [esp + 0x10]
push eax
push esi
je 0x487a4e
call edi
test eax, eax
je 0x487a41
mov ecx, dword [esp + 0x10]
and ecx, 0x10
cmp cl, 0x10
jne 0x487a78
lea edx, [esp + 0x10]
push edx
push esi
call edi
test eax, eax
jne 0x487a29
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x140
ret
call edi
test eax, eax
je 0x487a41
mov ebx, dword [esp + 0x158]
test dword [esp + 0x10], ebx
jne 0x487a78
lea ecx, [esp + 0x10]
push ecx
push esi
call edi
test eax, eax
jne 0x487a5b
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x140
ret
lea edx, [esp + 0x3c]
push edx
call fcn.0048a8d0
inc eax
push eax
call fcn.004836d0
mov edx, eax
lea edi, [esp + 0x44]
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x140
ret
Function at 0x487af0
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
mov esi, dword [esp + 0x1c]
test esi, esi
push edi
jne 0x487b09
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
push esi
call fcn.0048be50
add esp, 4
test eax, eax
jne 0x487b1e
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
mov eax, dword [esi]
xor edi, edi
cmp eax, 1
jne 0x487c5e
mov edi, dword [esi + 4]
mov esi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push eax
push 0
push 0
push edi
mov dword [esp + 0x24], edi
call esi
cmp eax, 0xffffffff
mov dword [esp + 0x10], eax
jne 0x487b5c
push 2
push 0
push 0
push edi
call esi
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
push 0x1000
xor ebp, ebp
call fcn.00494465
add esp, 4
mov ebx, eax
lea eax, [esp + 0x20]
mov esi, ebx
push ebp
push eax
push 0x1000
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x487c3e
mov edx, dword [esp + 0x20]
xor ecx, ecx
test edx, edx
jle 0x487ba4
mov al, byte [esi]
cmp al, 0xd
je 0x487be6
cmp al, 0xa
je 0x487be6
inc ecx
inc esi
cmp ecx, edx
jl 0x487b94
add ebp, edx
cmp edx, 0x1000
jl 0x487be8
push 0x1000
push ebx
call fcn.00494f9c
mov ebx, eax
mov eax, dword [esp + 0x28]
add esp, 8
cmp eax, 0x1000
jne 0x487be8
lea ecx, [esp + 0x20]
push 0
lea esi, [ebx + ebp]
push ecx
push 0x1000
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x487c3e
jmp 0x487b8a
add ebp, ecx
lea edx, [ebp + 1]
push edx
call fcn.004836d0
mov ecx, dword [esp + 0x14]
mov edi, eax
mov al, byte [esi]
add esp, 4
add ecx, ebp
cmp al, 0xd
je 0x487c06
cmp al, 0xa
jne 0x487c0f
mov al, byte [esi + 1]
inc ecx
cmp al, 0xa
jne 0x487c0f
inc ecx
mov eax, dword [esp + 0x14]
push 0
push 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebp
push ebx
push edi
call fcn.00494850
push ebx
mov byte [edi + ebp], 0
call fcn.0049459f
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
push 2
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
call fcn.0049459f
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
cmp eax, 2
jne 0x487cec
mov esi, dword [esi + 4]
mov ecx, esi
mov edx, dword [esi]
call dword [edx + 0x14]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x20]
push ecx
mov dword [esp + 0x18], eax
mov eax, dword [esi]
push edx
push 0xffffffffffffffff
push 0
mov ecx, esi
call dword [eax + 0x30]
mov ebp, dword [esp + 0x20]
xor ebx, ebx
test eax, eax
jle 0x487ca7
mov cl, byte [ebp]
cmp cl, 0xd
je 0x487ca7
cmp cl, 0xa
je 0x487ca7
inc ebx
inc ebp
cmp ebx, eax
jl 0x487c94
lea eax, [ebx + 1]
push eax
call fcn.004836d0
mov ecx, dword [esp + 0x18]
mov edi, eax
mov al, byte [ebp]
add esp, 4
add ecx, ebx
cmp al, 0xd
je 0x487cc6
cmp al, 0xa
jne 0x487ccf
mov al, byte [ebp + 1]
inc ecx
cmp al, 0xa
jne 0x487ccf
inc ecx
mov edx, dword [esi]
push 0
push ecx
mov ecx, esi
call dword [edx + 0x18]
mov eax, dword [esp + 0x20]
push ebx
push eax
push edi
call fcn.00494850
add esp, 0xc
mov byte [ebx + edi], 0
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
Function at 0x487e40
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 0xc
push esi
mov esi, dword [esp + 0x18]
test esi, esi
jne 0x487e56
mov eax, 1
pop esi
add esp, 0xc
ret
push esi
call fcn.0048be50
add esp, 4
test eax, eax
jne 0x487e6d
mov eax, 1
pop esi
add esp, 0xc
ret
mov eax, dword [esi]
push ebx
push ebp
cmp eax, 1
push edi
mov dword [esp + 0x10], 1
jne 0x487f1d
mov esi, dword [esi + 4]
lea eax, [esp + 0x14]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebp, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 1
push 0
push 0
push esi
mov ebx, eax
call ebp
mov edi, eax
cmp edi, 0xffffffff
je 0x487f85
cmp edi, ebx
jae 0x487f85
mov eax, dword [esp + 0x38]
mov dword [esp + 0x10], 0
test eax, eax
je 0x487f85
mov eax, dword [esp + 0x30]
test eax, eax
je 0x487f85
lea ecx, [esp + 0x18]
push 0
push ecx
lea edx, [esp + 0x2c]
push 1
push edx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
push 0
push edi
push esi
mov ebx, eax
call ebp
test ebx, ebx
je 0x487f85
mov al, byte [esp + 0x24]
test al, al
je 0x487f7d
cmp al, 0x1a
jne 0x487f85
pop edi
mov dword [esp + 0xc], 1
mov eax, dword [esp + 0xc]
pop ebp
pop ebx
pop esi
add esp, 0xc
ret
cmp eax, 2
jne 0x487f85
mov esi, dword [esi + 4]
mov ecx, esi
call fcn.0048c1d0
mov ebx, eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x14]
mov edi, eax
cmp edi, ebx
jae 0x487f85
mov eax, dword [esp + 0x38]
mov dword [esp + 0x10], 0
test eax, eax
je 0x487f85
mov eax, dword [esp + 0x30]
test eax, eax
je 0x487f85
mov edx, dword [esi]
lea eax, [esp + 0x24]
push 1
push eax
mov ecx, esi
call dword [edx + 0x20]
mov edx, dword [esi]
push 0
push edi
mov ecx, esi
mov ebp, eax
call dword [edx + 0x18]
test ebp, ebp
je 0x487f85
mov al, byte [esp + 0x24]
test al, al
je 0x487f7d
cmp al, 0x1a
jne 0x487f85
mov dword [esp + 0x10], 1
mov eax, dword [esp + 0x10]
pop edi
pop ebp
pop ebx
pop esi
add esp, 0xc
ret
Function at 0x4880b0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0xc
push esi
mov esi, dword [esp + 0x18]
test esi, esi
jne 0x4880c3
xor eax, eax
pop esi
add esp, 0xc
ret
push esi
call fcn.0048be50
add esp, 4
test eax, eax
jne 0x4880d5
pop esi
add esp, 0xc
ret
mov eax, dword [esi]
mov ecx, 1
push ebx
push ebp
cmp eax, ecx
push edi
mov dword [esp + 0x10], 0
jne 0x48818a
mov eax, dword [esi + 4]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x20]
cmp eax, ecx
mov ebp, ecx
jle 0x4881fd
lea edi, [esp + 0x30]
mov eax, dword [edi + 8]
xor ebx, ebx
cmp eax, reloc.WS2_32.dll_connect
jne 0x48811c
mov esi, dword [edi]
jmp 0x488130
push edi
call fcn.0048c1e0
mov esi, eax
add esp, 4
test esi, esi
je 0x488172
mov ebx, 1
push esi
call fcn.0048a8d0
add esp, 4
test eax, eax
jle 0x488159
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x18]
push 0
push ecx
push eax
push esi
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x488159
mov dword [esp + 0x10], eax
test ebx, ebx
je 0x488166
push esi
call fcn.0049459f
add esp, 4
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4881fd
mov eax, dword [esp + 0x20]
inc ebp
add edi, 0xc
cmp ebp, eax
jl 0x48810c
mov eax, dword [esp + 0x10]
pop edi
pop ebp
pop ebx
pop esi
add esp, 0xc
ret
cmp eax, 2
jne 0x4881fd
mov eax, dword [esp + 0x20]
mov ebp, dword [esi + 4]
cmp eax, ecx
mov dword [esp + 0x10], ecx
jle 0x4881fd
dec eax
lea edi, [esp + 0x30]
mov dword [esp + 0x20], eax
mov eax, dword [edi + 8]
xor ebx, ebx
cmp eax, reloc.WS2_32.dll_connect
jne 0x4881b7
mov esi, dword [edi]
jmp 0x4881cb
push edi
call fcn.0048c1e0
mov esi, eax
add esp, 4
test esi, esi
je 0x4881ef
mov ebx, 1
push esi
call fcn.0048a8d0
add esp, 4
test eax, eax
jle 0x4881e2
mov edx, dword [ebp]
push eax
push esi
mov ecx, ebp
call dword [edx + 0x24]
test ebx, ebx
je 0x4881ef
push esi
call fcn.0049459f
add esp, 4
mov eax, dword [esp + 0x20]
add edi, 0xc
dec eax
mov dword [esp + 0x20], eax
jne 0x4881a7
mov eax, dword [esp + 0x10]
pop edi
pop ebp
pop ebx
pop esi
add esp, 0xc
ret

Function at 0x488270
Capabilities:
Get file size

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
jne 0x48827e
or eax, 0xffffffff
pop esi
ret
push esi
call fcn.0048be50
add esp, 4
test eax, eax
jne 0x488290
or eax, 0xffffffff
pop esi
ret
mov ecx, dword [esi]
or eax, 0xffffffff
cmp ecx, 1
jne 0x4882ab
mov esi, dword [esi + 4]
lea eax, [esp + 0xc]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
pop esi
ret
cmp ecx, 2
jne 0x4882b8
mov ecx, dword [esi + 4]
call fcn.0048c1d0
pop esi
ret
Function at 0x4882c0
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
test ebx, ebx
push edi
jne 0x4882d3
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
push ebx
call fcn.0048be50
add esp, 4
test eax, eax
jne 0x4882e5
pop edi
pop esi
pop ebp
pop ebx
ret
mov edi, dword [esp + 0x24]
test edi, edi
jg 0x4882f4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
mov eax, dword [ebx]
xor esi, esi
cmp eax, 1
jne 0x48834b
mov ebx, dword [ebx + 4]
push edi
call fcn.004a03a8
add esp, 4
mov ebp, eax
lea eax, [esp + 0x18]
push esi
push eax
push edi
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x48832e
push ebp
call fcn.004a03d1
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov ecx, dword [esp + 0x18]
push ecx
push ebp
call fcn.0048aba0
push ebp
mov esi, eax
call fcn.004a03d1
add esp, 0xc
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret
cmp eax, 2
jne 0x48838d
mov ebx, dword [ebx + 4]
lea edx, [edi + 8]
push edx
call fcn.004836d0
mov esi, eax
add esp, 4
lea ecx, [esi + 8]
mov dword [esi], 1
mov dword [esi + 4], edi
mov eax, dword [ebx]
push edi
push ecx
mov ecx, ebx
call dword [eax + 0x20]
test eax, eax
jne 0x48838a
push esi
call fcn.00483790
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov dword [esi + 4], eax
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x48cb20
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov eax, dword [esp + 4]
push esi
mov esi, dword [esp + 0x10]
test esi, esi
not eax
je 0x48cb53
mov ecx, dword [esp + 0xc]
push ebx
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x4ab5a8]
xor eax, edx
inc ecx
dec esi
jne 0x48cb34
pop ebx
not eax
pop esi
ret

Function at 0x48d100
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x48d11d
and eax, 0x10
test al, al
jne 0x48d11d
mov eax, 1
ret
xor eax, eax
ret

Function at 0x48d570
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x14
push esi
mov esi, dword [esp + 0x1c]
push edi
mov edi, dword [sym.imp.WS2_32.dll_setsockopt]
lea eax, [esp + 0xc]
push 4
push eax
push 0xffffff7f
push 0xffff
push esi
mov byte [esp + 0x1f], 1
mov word [esp + 0x20], 0
mov word [esp + 0x22], 0
call edi
lea ecx, [esp + 0xb]
push 1
push ecx
push 8
push 0xffff
push esi
call edi
mov eax, 0xbb8
push 0
lea edx, [esp + 0x24]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
push 0
push edx
lea eax, [esp + 0x1c]
push 0xc
push eax
lea ecx, [esp + 0x24]
push 0xc
push ecx
push 0x98000004
push esi
mov dword [esp + 0x34], 1
mov dword [esp + 0x44], 0
call dword [sym.imp.WS2_32.dll_WSAIoctl]
lea edx, [esp + 0xb]
push 1
push edx
push 0xa
push 0
push esi
call edi
lea eax, [esp + 0xb]
push 1
push eax
push 0x20
push 0xffff
push esi
call edi
lea ecx, [esp + 0xb]
push 1
push ecx
push 1
push 0
push esi
call edi
lea edx, [esp + 0xb]
push 1
push edx
push 4
push 0xffff
push esi
call edi
pop edi
pop esi
add esp, 0x14
ret
Function at 0x4909f0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x4909fb
xor eax, eax
ret
mov eax, dword [esp + 4]
push ebx
push esi
mov esi, dword [esp + 0x14]
cmp esi, 8
not eax
jb 0x490afe
push edi
mov edi, esi
shr edi, 3
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
mov ebx, eax
shr ebx, 8
mov eax, dword [edx*4 + 0x4ad31c]
sub esi, 8
xor eax, ebx
inc ecx
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x4ad31c]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x4ad31c]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x4ad31c]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x4ad31c]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x4ad31c]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x4ad31c]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x4ad31c]
xor eax, edx
inc ecx
dec edi
jne 0x490a16
pop edi
test esi, esi
je 0x490b20
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x4ad31c]
xor eax, edx
inc ecx
dec esi
jne 0x490b02
pop esi
pop ebx
not eax
ret

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

Disassembly:
mov ecx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
mov edx, dword [ecx]
and esi, 0xff
mov eax, edx
and eax, 0xff
xor eax, esi
shr edx, 8
mov eax, dword [eax*4 + 0x4ad31c]
xor eax, edx
mov edx, dword [ecx + 4]
mov dword [ecx], eax
and eax, 0xff
add eax, edx
mov edx, dword [ecx + 8]
imul eax, eax, 0x8088405
inc eax
mov esi, edx
mov dword [ecx + 4], eax
and esi, 0xff
shr eax, 0x18
xor eax, esi
pop esi
shr edx, 8
mov eax, dword [eax*4 + 0x4ad31c]
xor eax, edx
mov dword [ecx + 8], eax
ret
Function at 0x491530
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 0x14]
push ebp
mov ebp, dword [esp + 0x10]
mov cl, byte [ebx]
mov eax, ebp
imul eax, dword [esp + 0x14]
test cl, cl
je 0x491571
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0xc]
push 0
push ecx
push eax
mov eax, dword [ebx + 4]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x491566
mov byte [ebx + 8], 1
mov eax, dword [esp + 0xc]
xor edx, edx
div ebp
pop ebp
pop ebx
ret
mov edx, dword [ebx + 0x1c]
mov ecx, dword [ebx + 0x18]
push esi
push edi
lea esi, [edx + eax]
cmp esi, ecx
jbe 0x491584
sub ecx, edx
mov eax, ecx
mov esi, dword [ebx + 0x14]
mov edi, dword [esp + 0x14]
mov ecx, eax
add esi, edx
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
xor edx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx + 0x1c]
pop edi
add ecx, eax
pop esi
div ebp
mov dword [ebx + 0x1c], ecx
pop ebp
pop ebx
ret
Function at 0x492240
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 8
push ebx
push esi
push edi
mov edi, dword [esp + 0x18]
xor ebx, ebx
cmp edi, ebx
jne 0x49225c
pop edi
pop esi
mov eax, 0xffffff9a
pop ebx
add esp, 8
ret
cmp dword [edi + 0x18], ebx
jne 0x49226d
pop edi
pop esi
mov eax, 0xffffff9a
pop ebx
add esp, 8
ret
cmp dword [edi + 0x7c], ebx
je 0x49227b
push edi
call fcn.004926b0
add esp, 4
lea eax, [esp + 0xc]
lea ecx, [esp + 0x18]
push eax
lea edx, [esp + 0x14]
push ecx
push edx
push edi
call fcn.00492040
add esp, 0x10
test eax, eax
je 0x4922a3
pop edi
pop esi
mov eax, 0xffffff99
pop ebx
add esp, 8
ret
push 0x84
call fcn.00494465
mov esi, eax
add esp, 4
cmp esi, ebx
jne 0x4922c2
pop edi
pop esi
mov eax, 0xffffff98
pop ebx
add esp, 8
ret
push 0x4000
call fcn.00494465
mov dword [esi], eax
mov ecx, dword [esp + 0x1c]
mov dword [esi + 0x44], ecx
mov edx, dword [esp + 0x10]
add esp, 4
cmp eax, ebx
mov dword [esi + 0x48], edx
mov dword [esi + 0x4c], ebx
jne 0x4922fb
push esi
call fcn.0049459f
add esp, 4
mov eax, 0xffffff98
pop edi
pop esi
pop ebx
add esp, 8
ret
mov dword [esi + 0x40], ebx
mov edx, dword [edi + 0x34]
mov ecx, dword [edi + 0x3c]
xor eax, eax
cmp edx, ebx
mov dword [esi + 0x54], ecx
mov dword [esi + 0x50], ebx
mov edx, dword [edi + 0x34]
mov dword [esi + 0x64], edx
mov ecx, dword [edi]
sete al
mov dword [esi + 0x60], ecx
mov edx, dword [edi + 0xc]
cmp eax, ebx
mov dword [esi + 0x68], edx
mov dword [esi + 0x18], ebx
jne 0x492349
lea eax, [esi + 4]
mov dword [esi + 0x24], ebx
push eax
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
call fcn.00490dc0
add esp, 4
test eax, eax
jne 0x492349
mov dword [esi + 0x40], 1
mov ecx, dword [edi + 0x40]
mov dword [esi + 0x58], ecx
mov edx, dword [edi + 0x44]
mov dword [esi + 0x5c], edx
mov al, byte [edi + 0x30]
and al, 1
mov byte [esi + 0x6c], al
mov ecx, dword [edi + 0x30]
shr ecx, 3
test cl, 1
je 0x492376
mov edx, dword [edi + 0x38]
shr edx, 8
mov byte [esi + 0x80], dl
jmp 0x492382
mov eax, dword [edi + 0x3c]
shr eax, 0x18
mov byte [esi + 0x80], al
mov cl, byte [esi + 0x6c]
push ebp
mov ebp, dword [esp + 0x20]
lea ebx, [esi + 0x70]
neg cl
sbb ecx, ecx
mov dword [ebx], 0x12345678
and ecx, 0xc
mov dword [esi + 0x74], 0x23456789
test ebp, ebp
mov dword [esi + 0x7c], ecx
mov dword [esi + 0x78], 0x34567890
je 0x4923c3
mov al, byte [ebp]
test al, al
je 0x4923c3
push eax
push ebx
call fcn.00490b30
add esp, 8
inc ebp
jne 0x4923af
mov edx, dword [edi + 0x78]
mov eax, dword [esp + 0x14]
mov dword [esi + 8], 0
pop ebp
lea ecx, [edx + eax + 0x1e]
xor eax, eax
mov dword [esi + 0x3c], ecx
mov dword [edi + 0x7c], esi
pop edi
pop esi
pop ebx
add esp, 8
ret