joyce8/EMBER2024-capa huggingface dataset:
Function at 0x409b7f
Capabilities:
Extract http body

Disassembly:
mov eax, 0x43f91c
call fcn.0043e4e0
sub esp, 0x10
push ebx
lea eax, [ebp - 0x18]
push esi
push eax
xor ebx, ebx
push 0x96
push 2
mov esi, ecx
push ebx
push ebx
push dword [esi + 4]
mov dword [ebp - 0x1c], ebx
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_SendMessageTimeoutA]
mov esi, dword [esi + 0xc]
cmp esi, ebx
je 0x409c68
mov dword [ebp + 0xc], ebx
lea eax, [ebp + 0xc]
mov dword [ebp - 4], ebx
push eax
push ebx
push str._D_3
push dword [ebp - 0x18]
call esi
cmp eax, ebx
jl 0x409c57
mov dword [ebp - 0x10], ebx
mov eax, dword [ebp + 0xc]
lea edx, [ebp - 0x10]
push edx
push eax
mov ecx, dword [eax]
mov byte [ebp - 4], 1
call dword [ecx + 0x24]
mov eax, dword [ebp - 0x10]
cmp eax, ebx
je 0x409c57
mov ecx, dword [eax]
lea edx, [ebp - 0x1c]
push edx
push eax
call dword [ecx + 0xf0]
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x14]
call fcn.00409c88
mov ecx, dword [eax]
mov byte [ebp - 4], 2
cmp ecx, ebx
je 0x409c1a
call fcn.00409d10
jmp 0x409c1c
xor eax, eax
mov ecx, dword [ebp + 8]
push eax
call sub.MFC42.DLL_CString::CString_3
mov ecx, dword [ebp - 0x14]
cmp ecx, ebx
je 0x409c34
call fcn.004096dd
mov dword [ebp - 0x14], ebx
mov eax, dword [ebp - 0x10]
mov byte [ebp - 4], bl
cmp eax, ebx
je 0x409c44
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp + 0xc]
or dword [ebp - 4], 0xffffffff
cmp eax, ebx
je 0x409c75
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x409c75
mov eax, dword [ebp + 0xc]
or dword [ebp - 4], 0xffffffff
cmp eax, ebx
je 0x409c68
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [ebp + 8]
push 0x4550cc
call sub.MFC42.DLL_CString::CString_3
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8

Function at 0x40bbe2
Capabilities:
Encode data using xor
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
xor ebx, ebx
push edi
push ebx
push ebx
push 3
push ebx
push 1
push closesocket
push dword [ebp + 8]
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x40bc35
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, 0x1070
cmp eax, ecx
je 0x40bc1c
push edi
jmp 0x40bc2f
lea eax, [ebp + 8]
push ebx
push eax
push ecx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
push edi
jne 0x40bc39
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x40bc55
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esi + 0x1070]
mov eax, esi
cmp esi, ecx
jae 0x40bc53
xor byte [eax], 0xaa
inc eax
cmp eax, ecx
jb 0x40bc4b
mov al, 1
pop edi
pop esi
pop ebx
pop ebp
ret 4
Function at 0x40bc5c
Capabilities:
Encode data using xor
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1074
call fcn.0043e690
push ebx
push esi
xor esi, esi
push edi
push esi
push 0x80
push 2
push esi
push esi
push 0x40000000
push dword [ebp + 8]
mov ebx, ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40bc93
xor al, al
jmp 0x40bceb
push ebx
lea ecx, [ebp - 0x1074]
call fcn.0040bcf2
lea eax, [ebp - 0x1074]
xor byte [eax], 0xaa
inc eax
lea ecx, [ebp - 4]
cmp eax, ecx
jb 0x40bca5
lea eax, [ebp - 4]
push esi
push eax
mov esi, 0x1070
lea eax, [ebp - 0x1074]
push esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
push edi
jne 0x40bcd6
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40bc8f
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp + 8]
call fcn.0042aafa
cmp dword [ebp - 4], esi
pop ecx
sete al
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x40c33b
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x43fd6c
call fcn.0043e4e0
sub esp, 0x38
push ebx
push esi
push edi
push 1
mov esi, ecx
pop edi
push esi
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x10], edi
call fcn.0040c4a1
mov eax, dword [esi + 8]
xor ebx, ebx
sub eax, ebx
mov dword [ebp - 4], ebx
mov dword [esi + 0x28], ebx
je 0x40c47e
dec eax
je 0x40c438
dec eax
je 0x40c42f
dec eax
je 0x40c426
dec eax
je 0x40c41d
dec eax
je 0x40c39a
mov dword [ebp - 0x10], ebx
mov dword [esi + 0x24], 0xfffffffe
jmp 0x40c3f4
lea edi, [esi + 0xc]
lea eax, [ebp - 0x18]
push edi
push str.mailto:
push eax
mov dword [ebp - 0x14], str.open
call sub.MFC42.DLL_operator_1
push eax
mov ecx, edi
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::operator_1
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], bl
call sub.MFC42.DLL_CString::CString
push dword [esi + 0x18]
mov eax, dword [esi + 0x14]
mov ecx, dword [esi + 0x10]
mov edx, dword [esi + 0xc]
push eax
push ecx
push edx
push dword [ebp - 0x14]
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, 0x20
mov dword [esi + 0x28], eax
ja 0x40c3f4
mov dword [ebp - 0x10], ebx
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], ebx
mov eax, dword [esi + 0x24]
mov ecx, esi
mov dword [ebp - 0x20], eax
mov eax, dword [esi + 0x28]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x44]
push eax
call fcn.0040c2de
cmp dword [ebp - 0x10], ebx
jne 0x40c469
cmp dword [ebp + 8], ebx
je 0x40c46d
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
jmp 0x40c46d
mov dword [ebp - 0x14], str.explore
jmp 0x40c3ca
mov dword [ebp - 0x14], str.print
jmp 0x40c3ca
mov dword [ebp - 0x14], str.open
jmp 0x40c3ca
mov ecx, dword [esi + 0x20]
mov eax, 0xffff
push esi
push ebx
push dword [esi + 0x1c]
cmp ecx, eax
jne 0x40c452
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
jmp 0x40c459
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
cmp eax, ebx
mov dword [ebp - 0x10], eax
jne 0x40c47e
mov dword [esi + 0x24], 0xfffffffd
jmp 0x40c3f4
or dword [esi + 0x24], 0xffffffff
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44]
call fcn.00403fbc
mov eax, dword [ebp - 0x10]
jmp 0x40c490
or dword [esi + 0x24], 0xffffffff
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44]
call fcn.00403fbc
mov eax, edi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x40fea7
Capabilities:
Get graphical window text

Disassembly:
mov eax, 0x440448
call fcn.0043e4e0
sub esp, 0xc
push ebx
push esi
push edi
xor esi, esi
mov dword [ebp - 0x10], esp
push dword [ebp + 0xc]
mov dword [ebp - 0x18], esi
mov dword [ebp - 4], esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x40ff45
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push esi
push esi
push 0xe
push dword [ebp + 0xc]
call edi
mov esi, eax
add esi, 0xc8
lea ebx, [esi + 3]
push ebx
call sub.MFC42.DLL_operatornew
pop ecx
mov dword [ebp - 0x14], eax
push ebx
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
add esi, 2
push dword [ebp - 0x14]
push esi
push 0xd
push dword [ebp + 0xc]
call edi
push dword [ebp - 0x14]
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::CString_3
push dword [ebp - 0x14]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_operatordelete
pop ecx
lea eax, [ebp - 0x18]
mov ecx, dword [ebp + 8]
push eax
call sub.MFC42.DLL_CString::CString_5
and byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::CString
jmp 0x40ff56
mov ecx, dword [ebp + 8]
or dword [ebp - 4], 0xffffffff
push 0x4550cc
call sub.MFC42.DLL_CString::CString_3
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret

Function at 0x410bfe
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push esi
push 0
push 1
mov esi, ecx
push 2
call sub.WSOCK32.dll_socket
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov dword [esi], eax
mov eax, ecx
pop esi
ret

Function at 0x410c1a
Capabilities:
Resolve dns
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push esi
mov esi, dword [ebp + 0x10]
test esi, esi
mov dword [ebp - 4], ecx
je 0x410c8e
push esi
call sub.MSVCRT.dll_strlen
test eax, eax
pop ecx
je 0x410c8e
push 0x10
lea eax, [ebp - 0x14]
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
mov word [ebp - 0x14], 2
push 0
call sub.WSOCK32.dll_htons
push esi
mov word [ebp - 0x12], ax
call sub.WSOCK32.dll_inet_addr
cmp eax, 0xffffffff
mov dword [ebp - 0x10], eax
jne 0x410c79
push esi
call sub.WSOCK32.dll_gethostbyname
test eax, eax
je 0x410ce9
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x14]
push 0x10
push eax
mov eax, dword [ebp - 4]
push dword [eax]
call sub.WSOCK32.dll_bind
cmp eax, 0xffffffff
je 0x410cf3
push 0x10
lea eax, [ebp - 0x24]
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
mov word [ebp - 0x24], 2
push dword [ebp + 0xc]
call sub.WSOCK32.dll_htons
push dword [ebp + 8]
mov word [ebp - 0x22], ax
call sub.WSOCK32.dll_inet_addr
cmp eax, 0xffffffff
mov dword [ebp - 0x20], eax
jne 0x410cd6
push dword [ebp + 8]
call sub.WSOCK32.dll_gethostbyname
test eax, eax
je 0x410ce9
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 4]
lea eax, [ebp - 0x24]
push 0x10
push eax
call fcn.00410cf7
pop esi
leave
ret 0xc
push 0x2726
call sub.WSOCK32.dll_WSASetLastError
xor eax, eax
jmp 0x410ce4
Function at 0x410cf7
Capabilities:
Connect socket

Disassembly:
push dword [esp + 8]
push dword [esp + 8]
push dword [ecx]
call sub.WSOCK32.dll_connect
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
ret 8

Function at 0x410d13
Capabilities:
Send data
Send data on socket

Disassembly:
push 0
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [ecx]
call sub.WSOCK32.dll_send
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
ret 8

Function at 0x410d31
Capabilities:
Receive data
Receive data on socket

Disassembly:
push 0
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [ecx]
call sub.WSOCK32.dll_recv
ret 8

Function at 0x410d5a
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [ecx]
push esi
mov dword [ebp - 0x108], eax
lea eax, [ebp - 8]
xor esi, esi
push eax
push esi
lea eax, [ebp - 0x10c]
push esi
push eax
push esi
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x10c], 1
call sub.WSOCK32.dll_select
cmp eax, 0xffffffff
jne 0x410d9a
xor eax, eax
jmp 0x410da9
xor ecx, ecx
cmp eax, esi
mov eax, dword [ebp + 8]
push 1
setne cl
mov dword [eax], ecx
pop eax
pop esi
leave
ret 4

Function at 0x413b03
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
push ebx
mov ebx, dword [ebp + 0x14]
push esi
push edi
push 0x40
pop edi
cmp ebx, edi
jle 0x413b50
lea eax, [ebp - 0x148]
push eax
call fcn.00406c13
push ebx
lea eax, [ebp - 0x148]
push dword [ebp + 0x10]
push eax
call fcn.00406c3b
lea eax, [ebp - 0x148]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00406cd9
add esp, 0x18
lea esi, [ebp - 0x10]
push 0x10
pop ebx
jmp 0x413b53
mov esi, dword [ebp + 0x10]
push edi
lea eax, [ebp - 0xf0]
push 0
push eax
call sub.MSVCRT.dll_memset
push edi
lea eax, [ebp - 0xac]
push 0
push eax
call sub.MSVCRT.dll_memset
push ebx
lea eax, [ebp - 0xf0]
push esi
push eax
call sub.MSVCRT.dll_memcpy
push ebx
lea eax, [ebp - 0xac]
push esi
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0x30
xor eax, eax
xor byte [ebp + eax - 0xf0], 0x36
xor byte [ebp + eax - 0xac], 0x5c
inc eax
cmp eax, edi
jl 0x413b92
lea eax, [ebp - 0x68]
push eax
call fcn.00406c13
lea eax, [ebp - 0xf0]
push edi
push eax
lea eax, [ebp - 0x68]
push eax
call fcn.00406c3b
push dword [ebp + 0xc]
lea eax, [ebp - 0x68]
push dword [ebp + 8]
push eax
call fcn.00406c3b
lea eax, [ebp - 0x68]
push eax
push dword [ebp + 0x18]
call fcn.00406cd9
lea eax, [ebp - 0x68]
push eax
call fcn.00406c13
lea eax, [ebp - 0xac]
push edi
push eax
lea eax, [ebp - 0x68]
push eax
call fcn.00406c3b
push 0x10
lea eax, [ebp - 0x68]
push dword [ebp + 0x18]
push eax
call fcn.00406c3b
add esp, 0x40
lea eax, [ebp - 0x68]
push eax
push dword [ebp + 0x18]
call fcn.00406cd9
pop ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 0x14
Function at 0x4148f9
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x440e78
call fcn.0043e4e0
sub esp, 0x14
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x20], edi
and dword [ebp - 4], 0
mov esi, 0x454228
push esi
push dword [ebp + 0xc]
call sub.MSVCRT.dll_strcmp
pop ecx
test eax, eax
pop ecx
jne 0x414956
push esi
push dword [ebp + 8]
call sub.MSVCRT.dll_strcmp
pop ecx
test eax, eax
pop ecx
jne 0x414956
lea ecx, [ebp + 0xc]
mov dword [ebp - 4], 1
call sub.MFC42.DLL_CString::CString
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::CString
mov al, 1
jmp 0x414a61
push ebx
lea eax, [ebp - 0x1c]
push 0x454224
push eax
lea ecx, [ebp + 0x10]
call sub.MFC42.DLL_CTime::Format
push 0x4541c8
push eax
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 2
push eax
call sub.MFC42.DLL_operator_4
lea ecx, [ebp + 8]
mov byte [ebp - 4], 3
push ecx
push eax
lea eax, [ebp - 0x14]
push eax
call sub.MFC42.DLL_operator_2
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 6
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 5
call sub.MFC42.DLL_CString::CString
push dword [ebp - 0x14]
call fcn.00429085
pop ecx
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString_5
push dword [ebp - 0x10]
mov byte [ebp - 4], 7
call fcn.00429085
mov eax, dword [edi + 0x24]
mov dword [esp], 0x454220
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov ebx, eax
pop ecx
test ebx, ebx
pop ecx
je 0x414a22
mov eax, dword [ebp - 0x14]
mov esi, dword [sym.imp.MSVCRT.dll_fwrite]
push ebx
push 1
mov ecx, dword [eax - 8]
push ecx
push eax
call esi
push ebx
push 1
mov edi, 0x453c48
push 2
push edi
call esi
mov eax, dword [ebp - 0x10]
push ebx
push 1
mov ecx, dword [eax - 8]
push ecx
push eax
call esi
push ebx
push 1
push 2
push edi
call esi
add esp, 0x40
push ebx
call dword [sym.imp.MSVCRT.dll_fclose]
mov edi, dword [ebp - 0x20]
pop ecx
push dword [edi + 0x24]
call fcn.0042aafa
pop ecx
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString
and byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp + 0xc]
mov dword [ebp - 4], 8
call sub.MFC42.DLL_CString::CString
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::CString
mov al, 1
pop ebx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 0xc
Function at 0x4161f8
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
push 1
xor edi, edi
pop eax
cmp ebx, eax
jl 0x41620d
cmp ebx, 8
jle 0x41620f
xor eax, eax
mov esi, dword [esp + 0x10]
push str.bad_pack_level
push eax
push esi
call fcn.00414d82
lea ecx, [esi + 0x6af70]
lea eax, [esi + 0x6af78]
add esp, 0xc
cmp dword [ecx], edi
mov dword [eax], edi
jne 0x416240
mov dword [eax], 1
mov dword [ecx], 0x10000
push 0x1fffc
lea eax, [esi + 0x4af70]
push edi
push eax
mov dword [esi + 0x6af6c], edi
call sub.MSVCRT.dll_memset
mov eax, ebx
add esp, 0xc
shl eax, 3
cmp ebx, 2
movzx ecx, word [eax + 0x4473c2]
mov dword [esi + 0x6af98], ecx
movzx ecx, word [eax + 0x4473c0]
mov dword [esi + 0x6af9c], ecx
movzx ecx, word [eax + 0x4473c4]
mov dword [esi + 0x6afa0], ecx
movzx eax, word [eax + 0x4473c6]
mov dword [esi + 0x6af94], eax
jg 0x4162a2
mov eax, dword [esp + 0x18]
or byte [eax], 4
jmp 0x4162ae
cmp ebx, 8
jl 0x4162ae
mov eax, dword [esp + 0x18]
or byte [eax], 2
lea ebx, [esi + 0x1af70]
push 0x10000
push ebx
push esi
mov dword [esi + 0x6af84], edi
mov dword [esi + 0x6af74], edi
call dword [esi + 0xc]
add esp, 0xc
cmp eax, edi
mov dword [esi + 0x6af90], eax
je 0x41631e
cmp eax, 0xffffffff
je 0x41631e
cmp eax, 0x106
mov dword [esi + 0x6af8c], edi
jae 0x4162f0
push esi
call fcn.004164f5
pop ecx
mov dword [esi + 0x6af7c], edi
movzx eax, byte [ebx + edi]
mov ecx, dword [esi + 0x6af7c]
and eax, 0x7fff
and ecx, 0x3ff
shl ecx, 5
xor eax, ecx
inc edi
cmp edi, 2
mov dword [esi + 0x6af7c], eax
jb 0x4162f6
jmp 0x41632e
mov dword [esi + 0x6af8c], 1
mov dword [esi + 0x6af90], edi
pop edi
pop esi
pop ebx
ret
Function at 0x416620
Capabilities:
Encode data using xor

Disassembly:
push ebp
push esi
mov esi, dword [esp + 0xc]
push edi
xor ebp, ebp
xor edi, edi
mov eax, dword [esi + 0x6af90]
mov dword [esi + 0x6af80], 2
test eax, eax
je 0x41683a
push ebx
mov ebx, 0x7fff
cmp eax, 3
jb 0x416698
mov ecx, dword [esi + 0x6af84]
mov edx, dword [esi + 0x6af7c]
and edx, 0x3ff
movzx eax, byte [ecx + esi + 0x1af72]
and eax, ebx
shl edx, 5
xor eax, edx
and ecx, ebx
mov dword [esi + 0x6af7c], eax
mov ebp, dword [esi + eax*4 + 0x4af70]
mov dword [esi + ecx*4 + 0x2af70], ebp
mov eax, dword [esi + 0x6af7c]
mov ecx, dword [esi + 0x6af84]
mov dword [esi + eax*4 + 0x4af70], ecx
test ebp, ebp
je 0x4166d4
mov eax, dword [esi + 0x6af84]
sub eax, ebp
cmp eax, 0x7efa
ja 0x4166d4
mov ecx, dword [esi + 0x6af90]
lea eax, [esi + 0x6afa0]
cmp dword [eax], ecx
jbe 0x4166bd
mov dword [eax], ecx
push ebp
push esi
call fcn.00416332
mov edi, eax
mov eax, dword [esi + 0x6af90]
pop ecx
cmp edi, eax
pop ecx
jbe 0x4166d4
mov edi, eax
cmp edi, 3
jb 0x4167b1
lea eax, [edi - 3]
push eax
mov eax, dword [esi + 0x6af84]
sub eax, dword [esi + 0x6af88]
push eax
push esi
call fcn.00415b6a
sub dword [esi + 0x6af90], edi
add esp, 0xc
cmp edi, dword [esi + 0x6af98]
mov dword [esp + 0x14], eax
mov eax, dword [esi + 0x6af90]
ja 0x41676a
cmp eax, 3
jb 0x41676a
dec edi
inc dword [esi + 0x6af84]
mov ecx, dword [esi + 0x6af84]
mov edx, dword [esi + 0x6af7c]
movzx eax, byte [esi + ecx + 0x1af72]
and edx, 0x3ff
and eax, ebx
shl edx, 5
xor eax, edx
and ecx, ebx
mov dword [esi + 0x6af7c], eax
dec edi
mov ebp, dword [esi + eax*4 + 0x4af70]
mov dword [esi + ecx*4 + 0x2af70], ebp
mov eax, dword [esi + 0x6af7c]
mov ecx, dword [esi + 0x6af84]
mov dword [esi + eax*4 + 0x4af70], ecx
jne 0x416715
jmp 0x4167d5
add dword [esi + 0x6af84], edi
mov eax, dword [esi + 0x6af84]
lea edx, [esi + 0x6af7c]
push str.Call_UPDATE_HASH___MIN_MATCH_3_more_times
lea ecx, [eax + esi]
push 1
push esi
xor edi, edi
movzx eax, byte [ecx + 0x1af70]
mov dword [edx], eax
and eax, 0x3ff
movzx ecx, byte [ecx + 0x1af71]
and ecx, ebx
shl eax, 5
xor ecx, eax
mov dword [edx], ecx
call fcn.00414d82
add esp, 0xc
jmp 0x4167db
mov eax, dword [esi + 0x6af84]
movzx eax, byte [eax + esi + 0x1af70]
push eax
push 0
push esi
call fcn.00415b6a
add esp, 0xc
dec dword [esi + 0x6af90]
mov dword [esp + 0x14], eax
inc dword [esi + 0x6af84]
cmp dword [esp + 0x14], 0
je 0x416818
mov eax, dword [esi + 0x6af74]
test eax, eax
jl 0x4167f5
lea ecx, [eax + esi + 0x1af70]
jmp 0x4167f7
xor ecx, ecx
mov edx, dword [esi + 0x6af84]
push 0
sub edx, eax
push edx
push ecx
push esi
call fcn.0041595a
mov eax, dword [esi + 0x6af84]
add esp, 0x10
mov dword [esi + 0x6af74], eax
cmp dword [esi + 0x6af90], 0x106
jae 0x41682b
push esi
call fcn.004164f5
pop ecx
mov eax, dword [esi + 0x6af90]
test eax, eax
jne 0x416649
pop ebx
mov eax, dword [esi + 0x6af74]
test eax, eax
jl 0x41684d
lea ecx, [eax + esi + 0x1af70]
jmp 0x41684f
xor ecx, ecx
mov edx, dword [esi + 0x6af84]
push 1
sub edx, eax
push edx
push ecx
push esi
call fcn.0041595a
add esp, 0x10
pop edi
pop esi
pop ebp
ret
Function at 0x417392
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x4173a0
xor eax, eax
pop ebp
ret
mov eax, dword [ebp + 8]
cmp dword [ebp + 0x10], 8
push esi
push edi
not eax
mov ecx, 0xff
jb 0x417481
mov edi, dword [ebp + 0x10]
push ebx
shr edi, 3
movzx ebx, byte [edx]
mov esi, eax
sub dword [ebp + 0x10], 8
and esi, ecx
xor esi, ebx
mov ebx, eax
shr ebx, 8
mov eax, dword [esi*4 + 0x447410]
xor eax, ebx
inc edx
mov esi, eax
movzx ebx, byte [edx]
and esi, ecx
xor esi, ebx
movzx ebx, byte [edx + 1]
mov esi, dword [esi*4 + 0x447410]
shr eax, 8
xor esi, eax
inc edx
mov eax, esi
and eax, ecx
xor eax, ebx
movzx ebx, byte [edx + 1]
mov eax, dword [eax*4 + 0x447410]
shr esi, 8
xor eax, esi
inc edx
mov esi, eax
and esi, ecx
xor esi, ebx
movzx ebx, byte [edx + 1]
mov esi, dword [esi*4 + 0x447410]
shr eax, 8
xor esi, eax
inc edx
mov eax, esi
and eax, ecx
xor eax, ebx
movzx ebx, byte [edx + 1]
mov eax, dword [eax*4 + 0x447410]
shr esi, 8
xor eax, esi
inc edx
mov esi, eax
and esi, ecx
xor esi, ebx
movzx ebx, byte [edx + 1]
mov esi, dword [esi*4 + 0x447410]
shr eax, 8
xor esi, eax
inc edx
mov eax, esi
and eax, ecx
xor eax, ebx
movzx ebx, byte [edx + 1]
mov eax, dword [eax*4 + 0x447410]
shr esi, 8
xor eax, esi
inc edx
mov esi, eax
and esi, ecx
xor esi, ebx
shr eax, 8
mov esi, dword [esi*4 + 0x447410]
xor eax, esi
inc edx
dec edi
jne 0x4173bd
pop ebx
cmp dword [ebp + 0x10], 0
je 0x4174a2
movzx edi, byte [edx]
mov esi, eax
and esi, ecx
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x447410]
xor eax, esi
inc edx
dec dword [ebp + 0x10]
jne 0x417487
pop edi
pop esi
not eax
pop ebp
ret

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

Disassembly:
mov ecx, dword [esp + 4]
push esi
push edi
mov edx, 0xff
mov esi, dword [ecx]
movzx edi, byte [esp + 0x10]
mov eax, esi
and eax, edx
xor eax, edi
shr esi, 8
mov eax, dword [eax*4 + 0x447410]
xor eax, esi
mov esi, dword [ecx + 8]
mov dword [ecx], eax
and eax, edx
add eax, dword [ecx + 4]
mov edi, esi
and edi, edx
imul eax, eax, 0x8088405
inc eax
mov dword [ecx + 4], eax
shr eax, 0x18
xor eax, edi
pop edi
shr esi, 8
mov eax, dword [eax*4 + 0x447410]
xor eax, esi
pop esi
mov dword [ecx + 8], eax
ret
Function at 0x417665
Capabilities:
Get file size
Parse pe header
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x4c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
jne 0x417688
mov eax, 0x200
jmp 0x4177fd
mov ecx, dword [ebp - 0x4c]
push ebx
push esi
push 1
mov edx, ecx
pop eax
xor ebx, ebx
and edx, eax
mov dword [ebp - 8], ebx
je 0x41769e
mov dword [ebp - 8], eax
test cl, 2
je 0x4176a7
or dword [ebp - 8], 2
test cl, 4
je 0x4176b0
or dword [ebp - 8], 4
mov eax, ecx
and eax, 0x10
je 0x4176bb
or dword [ebp - 8], 0x10
test cl, 0x20
je 0x4176c4
or dword [ebp - 8], 0x20
cmp eax, ebx
je 0x4176ce
or byte [ebp - 5], 0x40
jmp 0x4176d2
or byte [ebp - 5], 0x80
or byte [ebp - 5], 1
cmp edx, ebx
jne 0x4176de
or byte [ebp - 6], 0x80
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0x28
mov dword [ebp - 0x10], eax
jbe 0x417779
mov esi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
push ebx
push ebx
push edi
call esi
lea eax, [ebp - 0xc]
push ebx
push eax
lea eax, [ebp - 2]
push 2
push eax
push edi
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
call edi
push ebx
push ebx
push 0x24
push dword [ebp + 8]
call esi
lea eax, [ebp - 0xc]
push ebx
push eax
lea eax, [ebp - 0x14]
push 4
push eax
push dword [ebp + 8]
call edi
cmp word [ebp - 2], 0x54ad
jne 0x417779
mov eax, dword [ebp - 0x14]
lea ecx, [eax + 0x34]
cmp dword [ebp - 0x10], ecx
jbe 0x417779
push ebx
push ebx
push eax
push dword [ebp + 8]
call esi
lea eax, [ebp - 0xc]
push ebx
push eax
lea eax, [ebp - 0x18]
push 4
push eax
push dword [ebp + 8]
call edi
mov eax, dword [ebp - 0x18]
cmp eax, 0x5a4d
je 0x417775
cmp eax, 0x454e
je 0x417775
cmp eax, 0x454c
je 0x417775
cmp eax, 0x4550
jne 0x417779
or byte [ebp - 6], 0x40
mov eax, dword [ebp + 0xc]
cmp eax, ebx
je 0x417785
mov ecx, dword [ebp - 8]
mov dword [eax], ecx
mov eax, dword [ebp + 0x10]
cmp eax, ebx
je 0x417791
mov ecx, dword [ebp - 0x10]
mov dword [eax], ecx
mov esi, dword [ebp + 0x14]
cmp esi, ebx
je 0x4177cd
push dword [ebp - 0x3c]
push dword [ebp - 0x40]
call fcn.004175e4
push dword [ebp - 0x34]
mov dword [esi], eax
mov dword [esi + 4], edx
push dword [ebp - 0x38]
call fcn.004175e4
push dword [ebp - 0x44]
mov dword [esi + 8], eax
mov dword [esi + 0xc], edx
push dword [ebp - 0x48]
call fcn.004175e4
mov dword [esi + 0x10], eax
add esp, 0x18
mov dword [esi + 0x14], edx
mov esi, dword [ebp + 0x18]
cmp esi, ebx
je 0x4177f9
lea eax, [ebp + 0xe]
push eax
lea eax, [ebp + 0xa]
push eax
push dword [ebp - 0x34]
push dword [ebp - 0x38]
call fcn.00417606
movzx eax, word [ebp + 0xa]
movzx ecx, word [ebp + 0xe]
shl eax, 0x10
add esp, 0x10
or eax, ecx
mov dword [esi], eax
pop esi
xor eax, eax
pop ebx
pop edi
leave
ret