joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41b394
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push 0xb0
mov eax, 0x4b9a81
call fcn.0048ff65
mov esi, ecx
cmp dword [esi], 0xffffffff
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x18]
mov edi, dword [ebp + 0x10]
mov ebx, dword [sym.imp.WS2_32.dll_closesocket]
mov dword [ebp - 0xbc], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xac], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0xb4], eax
mov dword [ebp - 0xb8], ecx
je 0x41b3ea
push dword [esi]
call ebx
or dword [esi], 0xffffffff
mov eax, dword [ebp - 0xb4]
mov ecx, dword [ebp - 0xb8]
and dword [esi + 4], 0
push ecx
push eax
push edi
push dword [ebp - 0xac]
lea ecx, [ebp - 0xa8]
call fcn.00423a37
and dword [ebp - 4], 0
cmp dword [esi + 0x1018], 0
je 0x41b447
lea edi, [esi + 0x1008]
mov ecx, edi
call fcn.0041b6d2
mov ecx, dword [eax]
test ecx, ecx
je 0x41b428
mov eax, dword [ecx]
push 1
call dword [eax]
mov eax, dword [edi + 0x10]
test eax, eax
je 0x41b43e
dec eax
mov dword [edi + 0x10], eax
jne 0x41b43b
and dword [edi + 0xc], 0
jmp 0x41b43e
inc dword [edi + 0xc]
cmp dword [esi + 0x1018], 0
jne 0x41b415
mov ecx, dword [esi + 0x1020]
test ecx, ecx
je 0x41b45e
mov eax, dword [ecx]
push 1
call dword [eax]
and dword [esi + 0x1020], 0
xor eax, eax
mov word [ebp - 0x20], ax
lea edi, [ebp - 0x1e]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0xac]
call fcn.0041b647
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
or edi, 0xffffffff
mov dword [esi], eax
cmp eax, edi
jne 0x41b4b2
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 0x4d65d4
lea ecx, [ebp - 0x48]
call fcn.0041ae69
push 0x4e0fc8
lea eax, [ebp - 0x48]
push eax
call fcn.0048fea5
push 4
lea ecx, [ebp - 0xb0]
push ecx
push 0x1005
push 0xffff
push eax
mov dword [ebp - 0xb0], 0x2bf20
call dword [sym.imp.WS2_32.dll_setsockopt]
lea eax, [esi + 0x101c]
lea ecx, [esi + 0x1008]
push eax
push ecx
lea ecx, [ebp - 0xa8]
call fcn.00423b0d
push 0x12
push 0x4c8
push dword [ebp - 0xbc]
push dword [esi]
call dword [sym.imp.WS2_32.dll_WSAAsyncSelect]
cmp eax, edi
jne 0x41b51c
push dword [esi]
call ebx
mov dword [esi], edi
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 0x4d65e4
jmp 0x41b49c
push 0x10
lea eax, [ebp - 0x20]
push eax
push dword [esi]
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, edi
jne 0x41b551
mov edi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call edi
cmp eax, 0x2733
je 0x41b551
push dword [esi]
call ebx
or dword [esi], 0xffffffff
call edi
push eax
push 0x4d6600
jmp 0x41b49c
lea ecx, [ebp - 0x60]
call fcn.004073c4
lea ecx, [ebp - 0x78]
call fcn.004073c4
push 0
push 1
lea ecx, [ebp - 0x90]
call fcn.00405ac5
push 0
push 1
lea ecx, [ebp - 0xa8]
call fcn.00405ac5
call fcn.0048ff14
ret 0x14
Function at 0x41b647
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x4eb664]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
movsx eax, byte [edi]
push eax
call fcn.00494d4b
pop ecx
push edi
test eax, eax
je 0x41b681
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x41b6af
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
jmp 0x41b687
call dword [sym.imp.WS2_32.dll_inet_addr]
push 2
mov dword [esi + 4], eax
pop eax
push 0x1f90
mov word [esi], ax
call dword [sym.imp.WS2_32.dll_htons]
mov ecx, dword [ebp - 4]
pop edi
mov word [esi + 2], ax
xor ecx, ebp
pop esi
call fcn.0048f059
leave
ret 8
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 0x4d6624
lea ecx, [ebp - 0x2c]
call fcn.0041ae69
push 0x4e0fc8
lea eax, [ebp - 0x2c]
push eax
call fcn.0048fea5
int3
Function at 0x41bc61
Capabilities:
Check if file exists
Read .ini file

Disassembly:
push 0x8d0
mov eax, 0x4b9b37
call fcn.0048ff65
mov eax, dword [ebp + 8]
mov dword [ebp - 0x8d8], eax
xor ebx, ebx
xor eax, eax
mov esi, ebx
mov dword [ebp - 0x818], 7
mov dword [ebp - 0x81c], ebx
mov word [ebp - 0x82c], ax
lea eax, [ebp - 0x82c]
push eax
mov dword [ebp - 4], ebx
call fcn.0041b89f
cmp dword [ebp - 0x818], 8
lea eax, [ebp - 0x82c]
cmovae eax, dword [ebp - 0x82c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x41bcc9
jmp 0x41bde7
xor eax, eax
push 0x7fe
mov word [ebp - 0x814], ax
lea eax, [ebp - 0x812]
push ebx
push eax
call fcn.004921d0
add esp, 0xc
cmp dword [ebp - 0x818], 8
lea eax, [ebp - 0x82c]
cmovae eax, dword [ebp - 0x82c]
push eax
push 0x400
lea eax, [ebp - 0x814]
push eax
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov edi, eax
test edi, edi
je 0x41bde7
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0048eb44
pop ecx
mov ebx, eax
push edi
xor eax, eax
push eax
push ebx
call fcn.004921d0
xor edx, edx
add esp, 0xc
mov ecx, edx
mov esi, edx
test edi, edi
je 0x41bddb
mov ax, word [ebp + esi*2 - 0x814]
mov word [ebx + ecx*2], ax
inc ecx
cmp word [ebp + esi*2 - 0x814], dx
jne 0x41bdd2
lea ecx, [ebp - 0x8d4]
call fcn.004078de
mov byte [ebp - 4], 1
cmp dword [ebp - 0x818], 8
lea eax, [ebp - 0x82c]
cmovae eax, dword [ebp - 0x82c]
push eax
push ebx
lea eax, [ebp - 0x8d4]
push eax
call fcn.0041b98d
mov ecx, dword [ebp - 0x8d8]
lea eax, [ebp - 0x8d4]
push eax
call fcn.0041be04
push edi
xor eax, eax
push eax
push ebx
call fcn.004921d0
xor eax, eax
add esp, 0xc
lea ecx, [ebp - 0x8d4]
mov dword [ebp - 0x8dc], eax
mov byte [ebp - 4], al
call fcn.0041b7ac
mov ecx, dword [ebp - 0x8dc]
xor edx, edx
inc esi
cmp esi, edi
jb 0x41bd4d
push ebx
call fcn.0048eb4d
xor esi, esi
inc esi
pop ecx
xor ebx, ebx
push ebx
push 1
lea ecx, [ebp - 0x82c]
call fcn.00405ac5
mov eax, esi
call fcn.0048ff14
ret 4

Function at 0x41c9f3
Capabilities:
Encode data using base64

Disassembly:
push esi
push edi
mov edi, ecx
xor ecx, ecx
mov esi, ecx
mov al, byte [esi + edx]
cmp al, 0x41
jl 0x41ca13
cmp al, 0x5a
jg 0x41ca13
shl ecx, 6
add ecx, 0xffffffbf
movsx eax, al
add ecx, eax
jmp 0x41ca52
cmp al, 0x61
jl 0x41ca23
cmp al, 0x7a
jg 0x41ca23
shl ecx, 6
add ecx, 0xffffffb9
jmp 0x41ca0c
cmp al, 0x30
jl 0x41ca33
cmp al, 0x39
jg 0x41ca33
shl ecx, 6
add ecx, 4
jmp 0x41ca0c
cmp al, 0x2b
jne 0x41ca3f
shl ecx, 6
add ecx, 0x3e
jmp 0x41ca52
cmp al, 0x2f
jne 0x41ca4b
shl ecx, 6
add ecx, 0x3f
jmp 0x41ca52
cmp al, 0x3d
jne 0x41ca52
shl ecx, 6
inc esi
cmp esi, 4
jl 0x41c9fb
mov byte [edi + 2], cl
shr ecx, 8
mov byte [edi + 1], cl
shr ecx, 8
mov byte [edi], cl
pop edi
pop esi
ret
Function at 0x41df0c
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0xc
mov eax, 0x4b9cd9
call fcn.0048ff32
mov dword [ebp - 0x18], ecx
xor ebx, ebx
push 0x4eb630
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x10], ebx
call fcn.004044ee
mov dword [ebp - 4], ebx
cmp dword [ebp + 8], ebx
je 0x41dfad
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocStringLen
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x41dfad
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x10], eax
inc eax
push eax
call fcn.0048eb44
mov edi, eax
pop ecx
test edi, edi
je 0x41dfa6
push ebx
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x10]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41df9f
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0x14]
mov ecx, edi
mov byte [edi + eax], bl
call fcn.0041dfc2
push dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
call fcn.0041de6a
mov ebx, eax
push edi
call fcn.0048eb4d
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.00404f8d
mov eax, ebx
call fcn.0048ff00
ret 4

Function at 0x4222e4
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov eax, ecx
mov ecx, dword [ebp + 8]
push esi
xor esi, esi
mov dword [ecx], esi
lea ecx, [ebp - 4]
push ecx
push eax
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], esi
mov dword [edx], esi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov ebx, eax
test ebx, ebx
je 0x422370
push edi
push ebx
call fcn.0048eb44
pop ecx
mov edi, eax
push edi
push ebx
push dword [ebp - 4]
push dword [ebp - 0x10]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x422364
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x4d3c8c
push edi
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], esi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x422364
cmp dword [ebp - 8], esi
je 0x422364
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x14]
mov eax, dword [ecx + 8]
mov dword [edx], eax
mov eax, dword [ecx + 0xc]
mov ecx, dword [ebp + 8]
inc esi
mov dword [ecx], eax
test edi, edi
je 0x42236f
push edi
call fcn.0048eb4d
pop ecx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x422f59
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
mov eax, dword [0x4eb664]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor eax, eax
push 0x7fe
push eax
mov word [ebp - 0x804], ax
lea eax, [ebp - 0x802]
push eax
mov esi, ecx
call fcn.004921d0
mov eax, dword [esi + 0x20]
add esp, 0xc
cmp dword [eax + 0x14], 8
jb 0x422f98
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jne 0x422fd1
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
pop esi
call fcn.0048f059
leave
ret
cmp word [ebp + eax*2 - 0x804], 0x5c
je 0x422fd4
dec eax
jns 0x422fc6
add eax, eax
cmp eax, 0x800
jae 0x423002
xor ecx, ecx
push 5
mov word [ebp + eax - 0x804], cx
lea eax, [ebp - 0x804]
push eax
push ecx
push eax
push 0x4d3ae8
push dword [esi + 4]
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
jmp 0x422fb7
call fcn.00492b3a
int3
Function at 0x42336d
Capabilities:
Get file attributes

Disassembly:
push 8
mov eax, 0x4ba6bc
call fcn.0048ff32
mov ebx, ecx
and dword [ebp - 4], 0
or edi, 0xffffffff
cmp dword [ebx + 0x20c], 0
je 0x42342c
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, edi
je 0x42342c
test al, 0x10
jne 0x42342c
push 0x4eb630
lea ecx, [ebp - 0x10]
call fcn.004044ee
mov byte [ebp - 4], 1
push 0x5c
push dword [ebp + 8]
call fcn.004937d5
pop ecx
pop ecx
test eax, eax
je 0x4233fe
sub eax, dword [ebp + 8]
sar eax, 1
cmp eax, edi
je 0x4233fe
inc eax
push eax
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp + 8]
call fcn.0040dc50
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.00406bd9
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.00404f8d
jmp 0x42340a
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x10]
call fcn.00406bd9
mov esi, dword [ebp - 0x10]
push ecx
push ecx
push dword [ebp + 8]
mov ecx, dword [ebx + 0x20c]
mov edx, esi
call fcn.004278bb
add esp, 0xc
lea ecx, [esi - 0x10]
mov edi, eax
call fcn.00404f8d
mov ecx, dword [ebp + 8]
lea ecx, [ecx - 0x10]
call fcn.00404f8d
mov eax, edi
call fcn.0048ff00
ret 4
Function at 0x42404f
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x4eb664]
xor eax, ebp
mov dword [ebp - 8], eax
push esi
mov esi, ecx
push 0
mov eax, dword [esi + 0xc]
sub eax, dword [esi + 4]
push eax
mov eax, dword [esi + 8]
add eax, dword [esi + 4]
push eax
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x424085
add dword [esi + 4], eax
jmp 0x424096
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call esi
cmp eax, 0x2733
jne 0x4240a5
xor eax, eax
mov ecx, dword [ebp - 8]
xor ecx, ebp
pop esi
call fcn.0048f059
leave
ret 4
call esi
push eax
push 0x4d6d80
lea ecx, [ebp - 0x30]
call fcn.0041ae69
push 0x4e0fc8
lea eax, [ebp - 0x30]
push eax
call fcn.0048fea5
int3

Function at 0x424fb3
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, ecx
mov ecx, dword [ebp + 8]
mov eax, dword [esi + 0x1af2c]
push edi
mov byte [esi + eax + 0x1f2c], cl
inc dword [esi + 0x1af2c]
test edx, edx
jne 0x424fdf
inc word [esi + ecx*4 + 0x14]
jmp 0x425072
dec edx
mov eax, 0x7efa
mov edi, 0x100
cmp dx, ax
jae 0x425014
lea eax, [edi - 1]
cmp cx, ax
ja 0x425014
cmp edx, edi
jge 0x425004
mov al, byte [esi + edx + 0x1c3d]
jmp 0x425010
mov eax, edx
sar eax, 7
mov al, byte [eax + esi + 0x1d3d]
cmp al, 0x1e
jb 0x42501e
mov dword [esi + 0x6afa4], str.ct_tally:_bad_match
movzx eax, byte [esi + ecx + 0x1b3d]
inc word [esi + eax*4 + 0x418]
cmp edx, edi
jge 0x42503b
mov al, byte [esi + edx + 0x1c3d]
jmp 0x425047
mov eax, edx
sar eax, 7
mov al, byte [eax + esi + 0x1d3d]
movzx eax, al
inc word [esi + eax*4 + 0x908]
mov eax, dword [esi + 0x1af30]
mov word [esi + eax*2 + 0x9f2c], dx
mov al, byte [esi + 0x1af39]
inc dword [esi + 0x1af30]
or byte [esi + 0x1af38], al
shl byte [esi + 0x1af39], 1
xor ebx, ebx
test byte [esi + 0x1af2c], 7
jne 0x4250a5
mov ecx, dword [esi + 0x1af34]
mov al, byte [esi + 0x1af38]
mov byte [ecx + esi + 0x19f2c], al
inc dword [esi + 0x1af34]
mov word [esi + 0x1af38], 0x100
cmp dword [esi + 4], 2
jle 0x42511e
mov edi, dword [esi + 0x1af2c]
test edi, 0xfff
jne 0x42511e
mov eax, dword [esi + 0x6af84]
mov edx, edi
shl edx, 3
sub eax, dword [esi + 0x6af74]
mov ebx, 0x4d5948
mov dword [ebp + 8], eax
lea edi, [esi + 0x908]
mov ecx, dword [ebx]
movzx eax, word [edi]
add ecx, 5
imul ecx, eax
add ebx, 4
add edx, ecx
lea edi, [edi + 4]
cmp ebx, 0x4d59c0
jl 0x4250d8
mov edi, dword [esi + 0x1af2c]
shr edi, 1
push 0
pop ebx
cmp dword [esi + 0x1af30], edi
jae 0x42511e
mov ecx, dword [ebp + 8]
shr edx, 2
and edx, 0x3ffffffe
and ecx, 0xfffffffe
cmp edx, ecx
jae 0x42511e
xor eax, eax
inc eax
jmp 0x42513b
cmp dword [esi + 0x1af2c], 0x7fff
je 0x425136
cmp dword [esi + 0x1af30], 0x8000
jne 0x425139
xor ebx, ebx
inc ebx
mov eax, ebx
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x425552
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, edx
push esi
lea eax, [ebx - 1]
push edi
mov esi, ecx
cmp eax, 7
jbe 0x42556e
mov dword [esi + 0x6afa4], str.bad_pack_level
xor edi, edi
mov dword [esi + 0x6af78], edi
cmp dword [esi + 0x6af70], edi
jne 0x425592
mov dword [esi + 0x6af78], 1
mov dword [esi + 0x6af70], 0x10000
push 0x1fffc
lea eax, [esi + 0x4af70]
push edi
push eax
mov dword [esi + 0x6af6c], edi
call fcn.004921d0
movzx eax, word [ebx*8 + 0x4d58fa]
mov dword [esi + 0x6af98], eax
movzx eax, word [ebx*8 + 0x4d58f8]
mov dword [esi + 0x6af9c], eax
movzx eax, word [ebx*8 + 0x4d58fc]
add esp, 0xc
mov dword [esi + 0x6afa0], eax
movzx eax, word [ebx*8 + 0x4d58fe]
push 2
pop ecx
mov dword [esi + 0x6af94], eax
cmp ebx, ecx
jg 0x4255f5
mov eax, dword [ebp + 8]
or word [eax], 4
jmp 0x425600
cmp ebx, 8
jl 0x425600
mov eax, dword [ebp + 8]
or word [eax], cx
push 0x10000
lea ebx, [esi + 0x1af70]
push ebx
push esi
mov dword [esi + 0x6af84], edi
mov dword [esi + 0x6af74], edi
call dword [esi + 0xc]
add esp, 0xc
mov dword [esi + 0x6af90], eax
test eax, eax
je 0x425667
cmp eax, 0xffffffff
je 0x425667
mov dword [esi + 0x6af8c], edi
cmp eax, 0x106
jae 0x425642
mov ecx, esi
call fcn.00425822
mov dword [esi + 0x6af7c], edi
mov ecx, edi
movzx eax, byte [ebx + edi]
shl ecx, 5
xor ecx, eax
and ecx, 0x7fff
inc edi
mov dword [esi + 0x6af7c], ecx
cmp edi, 2
jb 0x42564a
jmp 0x425677
mov dword [esi + 0x6af8c], 1
mov dword [esi + 0x6af90], edi
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x425963
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
xor edi, edi
mov esi, ecx
mov ecx, edi
mov dword [ebp - 4], ecx
mov ebx, edi
mov dword [esi + 0x6af80], 2
jmp 0x425b61
cmp dword [esi + 0x6af90], 3
jb 0x4259e0
mov edx, dword [esi + 0x6af84]
mov eax, dword [esi + 0x6af7c]
movzx ecx, byte [edx + esi + 0x1af72]
shl eax, 5
xor ecx, eax
and ecx, 0x7fff
mov dword [esi + 0x6af7c], ecx
mov eax, dword [esi + ecx*4 + 0x4af70]
and edx, 0x7fff
mov dword [ebp - 4], eax
mov dword [esi + edx*4 + 0x2af70], eax
mov ecx, dword [esi + 0x6af7c]
mov eax, dword [esi + 0x6af84]
mov dword [esi + ecx*4 + 0x4af70], eax
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x425a1d
mov eax, dword [esi + 0x6af84]
sub eax, ecx
cmp eax, 0x7efa
ja 0x425a1d
mov eax, dword [esi + 0x6af90]
cmp dword [esi + 0x6afa0], eax
jbe 0x425a07
mov dword [esi + 0x6afa0], eax
mov edx, ecx
mov ecx, esi
call fcn.0042567c
mov ecx, dword [esi + 0x6af90]
mov ebx, eax
cmp ebx, ecx
cmova ebx, ecx
mov ecx, esi
cmp ebx, 3
jb 0x425aef
mov edx, dword [esi + 0x6af84]
sub edx, dword [esi + 0x6af88]
lea eax, [ebx - 3]
push eax
call fcn.00424fb3
sub dword [esi + 0x6af90], ebx
pop ecx
mov dword [ebp - 8], eax
cmp ebx, dword [esi + 0x6af98]
ja 0x425ab6
cmp dword [esi + 0x6af90], 3
jb 0x425ab6
dec ebx
inc dword [esi + 0x6af84]
mov edx, dword [esi + 0x6af84]
mov eax, dword [esi + 0x6af7c]
movzx ecx, byte [esi + edx + 0x1af72]
shl eax, 5
xor ecx, eax
and ecx, 0x7fff
mov dword [esi + 0x6af7c], ecx
mov eax, dword [esi + ecx*4 + 0x4af70]
and edx, 0x7fff
mov dword [ebp - 4], eax
mov dword [esi + edx*4 + 0x2af70], eax
mov ecx, dword [esi + 0x6af7c]
mov eax, dword [esi + 0x6af84]
mov dword [esi + ecx*4 + 0x4af70], eax
dec ebx
jne 0x425a59
mov eax, dword [ebp - 8]
jmp 0x425b0c
add dword [esi + 0x6af84], ebx
mov eax, dword [esi + 0x6af84]
mov ebx, edi
movzx ecx, byte [eax + esi + 0x1af70]
mov dword [esi + 0x6af7c], ecx
movzx eax, byte [eax + esi + 0x1af71]
shl ecx, 5
xor eax, ecx
and eax, 0x7fff
mov dword [esi + 0x6af7c], eax
mov eax, dword [ebp - 8]
jmp 0x425b12
mov eax, dword [esi + 0x6af84]
xor edx, edx
movzx eax, byte [eax + esi + 0x1af70]
push eax
call fcn.00424fb3
dec dword [esi + 0x6af90]
pop ecx
inc dword [esi + 0x6af84]
test eax, eax
je 0x425b4b
mov ecx, dword [esi + 0x6af74]
test ecx, ecx
js 0x425b2a
lea edx, [esi + 0x1af70]
add edx, ecx
jmp 0x425b2c
mov edx, edi
mov eax, dword [esi + 0x6af84]
sub eax, ecx
push edi
push eax
mov ecx, esi
call fcn.00424dbb
mov eax, dword [esi + 0x6af84]
pop ecx
pop ecx
mov dword [esi + 0x6af74], eax
cmp dword [esi + 0x6af90], 0x106
jae 0x425b5e
mov ecx, esi
call fcn.00425822
mov ecx, dword [ebp - 4]
cmp dword [esi + 0x6af90], edi
jne 0x425985
mov ecx, dword [esi + 0x6af74]
test ecx, ecx
js 0x425b7f
lea edi, [esi + 0x1af70]
add edi, ecx
mov eax, dword [esi + 0x6af84]
sub eax, ecx
push 1
push eax
mov edx, edi
mov ecx, esi
call fcn.00424dbb
pop ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x426768
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
test edx, edx
jne 0x426773
xor eax, eax
pop ebp
ret
push ebx
push esi
mov esi, dword [ebp + 8]
not ecx
mov ebx, 0xff
cmp esi, 8
jb 0x42682b
push edi
mov edi, esi
shr edi, 3
movzx eax, byte [edx]
xor eax, ecx
and eax, ebx
shr ecx, 8
xor ecx, dword [eax*4 + 0x4d59c0]
movzx eax, byte [edx + 1]
xor eax, ecx
and eax, ebx
shr ecx, 8
xor ecx, dword [eax*4 + 0x4d59c0]
movzx eax, byte [edx + 2]
xor eax, ecx
and eax, ebx
shr ecx, 8
xor ecx, dword [eax*4 + 0x4d59c0]
movzx eax, byte [edx + 3]
xor eax, ecx
and eax, ebx
shr ecx, 8
xor ecx, dword [eax*4 + 0x4d59c0]
movzx eax, byte [edx + 4]
xor eax, ecx
and eax, ebx
shr ecx, 8
xor ecx, dword [eax*4 + 0x4d59c0]
movzx eax, byte [edx + 5]
xor eax, ecx
and eax, ebx
shr ecx, 8
xor ecx, dword [eax*4 + 0x4d59c0]
movzx eax, byte [edx + 6]
xor eax, ecx
and eax, ebx
shr ecx, 8
xor ecx, dword [eax*4 + 0x4d59c0]
movzx eax, byte [edx + 7]
xor eax, ecx
and eax, ebx
shr ecx, 8
xor ecx, dword [eax*4 + 0x4d59c0]
add edx, 8
sub esi, 8
dec edi
jne 0x42678e
pop edi
test esi, esi
je 0x426844
movzx eax, byte [edx]
xor eax, ecx
and eax, ebx
shr ecx, 8
xor ecx, dword [eax*4 + 0x4d59c0]
inc edx
dec esi
jne 0x42682f
not ecx
pop esi
mov eax, ecx
pop ebx
pop ebp
ret

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

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x4eb664]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp + 0x10]
push esi
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x50], eax
lea eax, [ebp - 0x38]
mov ebx, ecx
push eax
push ebx
mov dword [ebp - 0x54], edx
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
jne 0x426a2f
mov eax, 0x200
jmp 0x426ba7
mov eax, dword [ebp - 0x38]
xor ecx, ecx
inc ecx
mov edx, eax
push 0
and edx, ecx
pop esi
cmovne esi, ecx
test al, 2
je 0x426a46
or esi, 2
test al, 4
je 0x426a4d
or esi, 4
mov ecx, eax
and ecx, 0x10
je 0x426a57
or esi, 0x10
test al, 0x20
je 0x426a5e
or esi, 0x20
test ecx, ecx
je 0x426a6a
or esi, 0x40000000
jmp 0x426a70
or esi, 0x80000000
or esi, 0x1000000
test edx, edx
jne 0x426a80
or esi, 0x800000
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x3c], eax
cmp eax, 0x28
jbe 0x426b31
xor eax, eax
push eax
push eax
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 0x44]
push eax
push 2
lea eax, [ebp - 0x40]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
push 0
push 0x24
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 0x44]
push eax
push 4
lea eax, [ebp - 0x58]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, 0x54ad
cmp word [ebp - 0x40], ax
jne 0x426b2e
mov ecx, dword [ebp - 0x58]
lea eax, [ecx + 0x34]
cmp dword [ebp - 0x3c], eax
jbe 0x426b2e
push 0
push 0
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 0x44]
push eax
push 4
lea eax, [ebp - 0x48]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 0x48]
cmp eax, 0x5a4d
je 0x426b28
cmp eax, 0x454e
je 0x426b28
cmp eax, 0x454c
je 0x426b28
cmp eax, 0x4550
jne 0x426b2e
or esi, 0x400000
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x54]
test ecx, ecx
je 0x426b3a
mov dword [ecx], esi
mov ecx, dword [ebp - 0x4c]
test ecx, ecx
je 0x426b43
mov dword [ecx], eax
test edi, edi
je 0x426b7c
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
call fcn.0042695c
push dword [ebp - 0x20]
mov dword [edi], eax
push dword [ebp - 0x24]
mov dword [edi + 4], edx
call fcn.0042695c
push dword [ebp - 0x30]
mov dword [edi + 8], eax
push dword [ebp - 0x34]
mov dword [edi + 0xc], edx
call fcn.0042695c
add esp, 0x18
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], edx
mov esi, dword [ebp - 0x50]
test esi, esi
je 0x426ba5
push dword [ebp - 0x20]
lea edx, [ebp - 0x3c]
push dword [ebp - 0x24]
lea ecx, [ebp - 0x40]
call fcn.00426980
movzx eax, word [ebp - 0x3c]
pop ecx
pop ecx
movzx ecx, word [ebp - 0x40]
shl ecx, 0x10
or ecx, eax
mov dword [esi], ecx
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0048f059
leave
ret