joyce8/EMBER2024-capa huggingface dataset:
Function at 0x449a50
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebx
xor ebx, ebx
push ebp
push edi
cmp dword [esi + 0x34], ebx
ja 0x449a64
cmp dword [esi + 0x30], 0x40
jbe 0x449b68
mov edi, dword [esi + 0x28]
mov ebp, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
push 0x40
push edi
call ebp
test eax, eax
jne 0x449b6d
mov eax, 0x5a4d
cmp word [edi], ax
jne 0x449b6d
mov byte [esi + 0x38], 1
mov eax, dword [edi + 0x3c]
mov edi, dword [esi + 0x34]
xor ecx, ecx
lea edx, [eax + 0xf8]
cmp edi, ecx
jb 0x449b68
ja 0x449aaf
mov ecx, dword [esi + 0x30]
cmp ecx, edx
jbe 0x449b68
mov edx, dword [esi + 0x28]
add eax, edx
push 0xf8
push eax
mov dword [esi + 0x24], eax
call ebp
test eax, eax
jne 0x449b6d
mov eax, dword [esi + 0x24]
cmp dword [eax], 0x4550
jne 0x449b6d
mov ecx, 0x2000
test word [eax + 0x16], cx
jne 0x449ae5
mov byte [esi + 0x44], 1
mov edx, eax
movzx eax, word [edx + 0x18]
mov ecx, 0x10b
cmp ax, cx
jne 0x449b01
mov dword [esi + 0x40], 1
add edx, 0x78
jmp 0x449b18
mov ecx, 0x20b
cmp ax, cx
jne 0x449b1b
mov dword [esi + 0x40], 2
add edx, 0x88
mov dword [esi + 0x20], edx
cmp dword [esi + 0x20], ebx
je 0x449b6d
mov eax, dword [esi + 0x24]
movzx ecx, word [eax + 6]
mov dword [esi + 0x3c], ecx
test ecx, ecx
je 0x449b6d
movzx edx, word [eax + 0x14]
mov ebx, dword [esi + 0x34]
lea ecx, [ecx + ecx*4]
add ecx, ecx
add ecx, ecx
add ecx, ecx
sub ecx, dword [esi + 0x28]
add ecx, edx
lea edi, [ecx + eax + 0x18]
xor ecx, ecx
cmp ebx, ecx
jb 0x449b68
ja 0x449b56
mov ecx, dword [esi + 0x30]
cmp ecx, edi
jbe 0x449b68
pop edi
mov ebx, 1
lea edx, [edx + eax + 0x18]
pop ebp
mov eax, ebx
mov dword [esi + 0x1c], edx
pop ebx
ret
mov ebx, 2
pop edi
pop ebp
mov eax, ebx
pop ebx
ret

Function at 0x449ce0
Capabilities:
Enumerate pe sections

Disassembly:
mov eax, dword [eax + 0x24]
movzx ecx, word [eax + 0x14]
push ebx
push esi
movzx esi, word [eax + 6]
xor edx, edx
lea ecx, [ecx + eax + 0x18]
test esi, esi
jbe 0x449d0f
mov eax, dword [ecx + 0xc]
cmp edi, eax
jb 0x449d07
mov ebx, dword [ecx + 8]
add ebx, eax
cmp edi, ebx
jb 0x449d14
inc edx
add ecx, 0x28
cmp edx, esi
jb 0x449cf7
pop esi
xor eax, eax
pop ebx
ret
mov eax, dword [ecx + 0x14]
sub eax, dword [ecx + 0xc]
pop esi
add eax, edi
pop ebx
ret

Function at 0x449d20
Capabilities:
Enumerate pe sections

Disassembly:
mov eax, dword [ebx + 0x24]
movzx ecx, word [eax + 0x14]
push ebp
push esi
movzx esi, word [eax + 6]
xor edx, edx
lea ecx, [ecx + eax + 0x18]
test esi, esi
jbe 0x449d4f
mov eax, dword [ecx + 0xc]
cmp edi, eax
jb 0x449d47
mov ebp, dword [ecx + 8]
add ebp, eax
cmp edi, ebp
jb 0x449d54
inc edx
add ecx, 0x28
cmp edx, esi
jb 0x449d37
pop esi
xor eax, eax
pop ebp
ret
mov eax, dword [ecx + 0x14]
sub eax, dword [ecx + 0xc]
pop esi
add eax, dword [ebx + 0x28]
pop ebp
add eax, edi
ret
Function at 0x44a110
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4cfbb8
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4ff0f4]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x3c]
mov edi, dword [esp + 0x30]
mov ebx, dword [esp + 0x2c]
mov dword [esp + 0x14], 0
cmp ecx, 0x64
ja 0x44a23d
mov eax, dword [edx]
cmp eax, 0x4e20
jg 0x44a23d
inc eax
mov dword [edx], eax
mov eax, dword [ebx + 4]
test eax, eax
jns 0x44a190
push edx
mov edx, dword [esp + 0x3c]
push ebp
push edx
mov edx, dword [esp + 0x40]
push edx
mov edx, dword [ebx]
push edx
push ecx
mov ecx, dword [esp + 0x40]
and eax, 0x7fffffff
push edi
add eax, edi
push eax
call fcn.0044a260
jmp 0x44a23f
mov esi, dword [ebx]
push edi
push ecx
lea eax, [esp + 0x44]
push eax
call fcn.0044a040
add esp, 0xc
mov dword [esp + 0x20], 0
mov esi, dword [ebx + 4]
add esi, edi
je 0x44a22c
mov edi, dword [esi]
mov ebx, dword [esp + 0x28]
call fcn.00449d20
lea ecx, [esp + 0x34]
push 0x4eb4f8
push ecx
mov ecx, dword [esp + 0x3c]
mov edi, eax
call fcn.00405720
mov byte [esp + 0x28], 1
lea edx, [esp + 0x44]
push edx
lea ecx, [esp + 0x34]
push ecx
mov ecx, eax
call fcn.00405670
add esp, 0x10
mov byte [esp + 0x20], 2
mov edx, dword [esi + 4]
push ebp
push edx
push edi
push eax
call dword [esp + 0x48]
mov bl, al
mov byte [esp + 0x20], 1
lea ecx, [esp + 0x28]
call fcn.00405410
mov byte [esp + 0x20], 0
lea ecx, [esp + 0x34]
call fcn.00405410
mov dword [esp + 0x20], 0xffffffff
lea ecx, [esp + 0x3c]
call fcn.00405410
mov al, bl
jmp 0x44a23f
mov dword [esp + 0x20], 0xffffffff
lea ecx, [esp + 0x3c]
call fcn.00405410
mov al, 1
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 0x18

Function at 0x44a940
Capabilities:
Read file via mapping

Disassembly:
push edi
push 0
push 0
push 0
push 2
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov edi, eax
mov eax, dword [esi + 4]
cmp edi, eax
je 0x44a966
test eax, eax
je 0x44a966
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
mov dword [esi + 4], edi
test eax, eax
je 0x44a99e
push 0
push 0
push 0
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
mov eax, dword [esi + 8]
cmp edi, eax
je 0x44a992
test eax, eax
je 0x44a992
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
xor eax, eax
cmp edi, eax
mov dword [esi + 8], edi
setne al
pop edi
ret
xor al, al
pop edi
ret
Function at 0x454600
Capabilities:
Get file size
Hash data with md5
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4c9404
mov eax, dword fs:[0]
push eax
sub esp, 0x84
mov eax, dword [0x4ff0f4]
xor eax, esp
mov dword [esp + 0x80], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4ff0f4]
xor eax, esp
push eax
lea eax, [esp + 0x98]
mov dword fs:[0], eax
xor ebp, ebp
mov dword [esp + 0xa0], ebp
mov esi, ecx
mov dword [esp + 0x2c], esi
mov edi, edx
mov dword [esp + 0x34], ebp
call fcn.004175c0
mov dword [esp + 0xa0], ebp
push ebp
push 0x8000000
push 3
push ebp
mov ebx, 1
push ebx
push SysReAllocString
push edi
mov dword [esp + 0x50], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [esp + 0x28], edi
mov dword [esp + 0x38], edi
mov dword [esp + 0xa0], ebx
cmp edi, 0xffffffff
je 0x454803
lea eax, [esp + 0x1c]
push eax
push edi
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], ebp
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x454803
mov eax, dword [esp + 0x20]
mov ebx, dword [esp + 0x1c]
cmp eax, ebp
ja 0x4546c5
cmp ebx, ebp
jbe 0x454803
cmp eax, 0xffffffff
ja 0x454803
jb 0x4546d9
cmp ebx, 0xffffffff
jae 0x454803
lea ecx, [esp + 0x30]
push ecx
mov edi, 0x10000
xor esi, esi
call fcn.004492a0
mov byte [esp + 0xa0], 2
mov edi, dword [esp + 0x30]
mov edx, dword [edi + 4]
xor eax, eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov dword [esp + 0x3c], 0x67452301
mov dword [esp + 0x40], 0xefcdab89
mov dword [esp + 0x44], 0x98badcfe
mov dword [esp + 0x48], 0x10325476
cmp ecx, eax
ja 0x454733
jb 0x454735
cmp edx, ebx
jb 0x454735
mov edx, ebx
push 0
lea ecx, [esp + 0x1c]
push ecx
mov dword [esp + 0x20], edx
mov eax, dword [edi]
push edx
mov edx, dword [esp + 0x34]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4547ac
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4547ac
mov ecx, dword [edi]
push ecx
lea ecx, [esp + 0x40]
call fcn.004549c0
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
mov ebx, dword [edi + 4]
add esp, 4
add ebp, dword [esp + 0x18]
adc esi, 0
sub ecx, ebp
sbb eax, esi
xor edx, edx
cmp edx, eax
ja 0x45478e
jb 0x45478c
cmp ebx, ecx
jae 0x45478e
mov ecx, ebx
push 0
lea edx, [esp + 0x1c]
push edx
mov dword [esp + 0x20], ecx
mov eax, dword [edi]
push ecx
push eax
mov eax, dword [esp + 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x454753
cmp ebp, dword [esp + 0x1c]
jne 0x4547ea
cmp esi, dword [esp + 0x20]
jne 0x4547ea
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x40]
push edx
call fcn.00454590
mov byte [esp + 0xa0], 3
mov edi, dword [esp + 0x2c]
push eax
call fcn.00417630
mov byte [esp + 0xa0], 2
lea edi, [esp + 0x1c]
call fcn.00449350
mov byte [esp + 0xa0], 1
lea edi, [esp + 0x30]
call fcn.00449350
mov esi, dword [esp + 0x2c]
mov edi, dword [esp + 0x28]
mov byte [esp + 0xa0], 0
cmp edi, 0xffffffff
je 0x454817
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
mov ecx, dword [esp + 0x98]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x80]
xor ecx, esp
call fcn.004a974c
add esp, 0x90
ret
Function at 0x454850
Capabilities:
Check for peb ntglobalflag flag
Hash data with md5

Disassembly:
push 0xffffffffffffffff
push 0x4cec21
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x4ff0f4]
xor eax, esp
mov dword [esp + 0x68], eax
push ebx
push edi
mov eax, dword [0x4ff0f4]
xor eax, esp
push eax
lea eax, [esp + 0x7c]
mov dword fs:[0], eax
xor eax, eax
xor ebx, ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x8c]
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], 0x67452301
mov dword [esp + 0x24], 0xefcdab89
mov dword [esp + 0x28], 0x98badcfe
mov dword [esp + 0x2c], 0x10325476
call fcn.004549c0
add esp, 4
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x20]
push ecx
call fcn.00454590
mov edi, 1
mov dword [esp + 0x84], edi
push eax
push esi
call fcn.00448c20
add esp, 8
mov dword [esp + 0x14], edi
mov byte [esp + 0x84], bl
mov eax, dword [esp + 0x10]
dec dword [eax + 8]
mov edi, eax
add eax, 8
cmp dword [eax], ebx
jne 0x45492f
cmp dword [edi + 4], ebx
je 0x45491e
mov eax, dword [edi]
push ebx
push eax
call fcn.004aa29f
add esp, 8
mov dword [edi], eax
mov dword [edi + 4], ebx
mov edx, dword [esp + 0x10]
push edx
call fcn.004a9741
add esp, 4
mov dword [esp + 0x10], ebx
mov eax, esi
mov ecx, dword [esp + 0x7c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.004a974c
add esp, 0x7c
ret

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

Disassembly:
push esi
cmp edx, 8
jb 0x455268
mov ecx, dword [edi]
mov esi, edx
shr esi, 3
push ebx
movzx ebx, byte [eax]
xor ebx, ecx
and ebx, 0xff
shr ecx, 8
xor ecx, dword [ebx*4 + 0x4e3280]
movzx ebx, byte [eax + 1]
xor ebx, ecx
and ebx, 0xff
inc eax
shr ecx, 8
xor ecx, dword [ebx*4 + 0x4e3280]
movzx ebx, byte [eax + 1]
xor ebx, ecx
and ebx, 0xff
inc eax
shr ecx, 8
xor ecx, dword [ebx*4 + 0x4e3280]
movzx ebx, byte [eax + 1]
xor ebx, ecx
inc eax
and ebx, 0xff
shr ecx, 8
xor ecx, dword [ebx*4 + 0x4e3280]
movzx ebx, byte [eax + 1]
xor ebx, ecx
inc eax
and ebx, 0xff
shr ecx, 8
xor ecx, dword [ebx*4 + 0x4e3280]
movzx ebx, byte [eax + 1]
xor ebx, ecx
inc eax
and ebx, 0xff
shr ecx, 8
xor ecx, dword [ebx*4 + 0x4e3280]
movzx ebx, byte [eax + 1]
inc eax
xor ebx, ecx
and ebx, 0xff
shr ecx, 8
xor ecx, dword [ebx*4 + 0x4e3280]
movzx ebx, byte [eax + 1]
inc eax
xor ebx, ecx
and ebx, 0xff
shr ecx, 8
xor ecx, dword [ebx*4 + 0x4e3280]
inc eax
sub edx, 8
sub esi, 1
jne 0x4551a2
mov dword [edi], ecx
pop ebx
test edx, edx
je 0x45528d
mov ecx, dword [edi]
mov edi, edi
movzx esi, byte [eax]
xor esi, ecx
and esi, 0xff
shr ecx, 8
xor ecx, dword [esi*4 + 0x4e3280]
inc eax
sub edx, 1
jne 0x455270
mov dword [edi], ecx
pop esi
ret

Function at 0x45a94f
Capabilities:
Encode data using xor

Disassembly:
mov cl, byte [edx]
xor eax, eax
test cl, cl
je 0x45a973
push esi
movzx ecx, cl
movzx ecx, byte [ecx + 0x4d6840]
mov esi, eax
shl esi, 3
xor ecx, esi
inc edx
xor eax, ecx
mov cl, byte [edx]
test cl, cl
jne 0x45a958
pop esi
ret
Function at 0x4668d1
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
test ebx, ebx
jne 0x4668e0
xor eax, eax
leave
ret
push esi
mov esi, dword [ebp + 8]
push 0
push 8
call fcn.00461e6f
pop ecx
pop ecx
mov ecx, eax
mov dword [ebp - 8], ecx
test ecx, ecx
je 0x4669ab
test byte [ebp + 0xc], 1
mov eax, dword [ebx]
mov dword [ecx], eax
jne 0x466915
mov ecx, dword [ebx]
xor eax, eax
inc eax
cmp ecx, eax
jle 0x466915
add eax, eax
cmp eax, ecx
jl 0x46690f
imul eax, eax, 0x18
push edi
push 0
push eax
call fcn.00461e6f
mov edx, dword [ebp - 8]
mov edi, eax
pop ecx
pop ecx
mov dword [edx + 4], edi
test edi, edi
jne 0x46693a
mov ecx, esi
call fcn.00459a66
xor eax, eax
jmp 0x4669aa
and dword [ebp - 4], 0
cmp dword [ebx], 0
mov esi, dword [ebx + 4]
jle 0x4669a7
mov eax, dword [esi]
push 0
push dword [ebp + 0xc]
push eax
push dword [ebp + 8]
call fcn.0046fabc
mov dword [edi], eax
push dword [esi + 4]
push dword [ebp + 8]
call fcn.00461fce
mov dword [edi + 4], eax
push dword [esi + 8]
push dword [ebp + 8]
call fcn.00461fce
mov dword [edi + 8], eax
mov al, byte [esi + 0xc]
and dword [edi + 0x10], 0xfffffffe
mov byte [edi + 0xc], al
mov eax, dword [edi + 0x10]
mov ecx, dword [esi + 0x10]
xor ecx, eax
and ecx, 2
xor ecx, eax
mov dword [edi + 0x10], ecx
mov eax, dword [esi + 0x14]
add esp, 0x20
inc dword [ebp - 4]
mov dword [edi + 0x14], eax
mov eax, dword [ebp - 4]
add edi, 0x18
add esi, 0x18
cmp eax, dword [ebx]
jl 0x466946
mov eax, dword [ebp - 8]
pop edi
pop esi
leave
ret
Function at 0x48de37
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov edi, ecx
mov esi, dword [edi]
mov dword [ebp - 4], eax
mov eax, dword [esi + 4]
xor ebx, ebx
cmp byte [edi + 0x49], 4
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], eax
jne 0x48de62
mov eax, dword [edi + 0x44]
jmp 0x48dfed
mov ecx, dword [edi + 0x3c]
push edi
call fcn.0048d6ef
pop ecx
cmp eax, ebx
jne 0x48dfed
cmp dword [edi + 0x10], ebx
jne 0x48deb9
push ebx
push dword [ebp + 0x10]
mov eax, esi
push dword [ebp + 0xc]
call fcn.0045cffa
add esp, 0xc
test byte [edi + 0x48], 2
je 0x48deb9
cmp dword [ebp + 0x10], ebx
jl 0x48deb9
jg 0x48de9c
cmp dword [ebp + 0xc], ebx
jbe 0x48deb9
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov edx, dword [edi + 0x18]
sub eax, 1
sbb ecx, ebx
cmp edx, eax
jne 0x48deb9
mov eax, dword [edi + 0x1c]
cmp eax, ecx
jne 0x48deb9
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 4], ebx
jne 0x48dedf
push dword [ebp + 0x20]
lea ecx, [ebp - 4]
push dword [ebp + 0x10]
mov esi, edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0048d727
add esp, 0x10
cmp eax, ebx
jne 0x48dfed
movsx eax, word [edi + 0x4c]
mov esi, dword [edi + eax*4 + 0x78]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x50]
lea ecx, [ebp - 0x10]
push ecx
push dword [ebp + 0x1c]
mov dword [ebp - 0x14], eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push eax
mov eax, esi
call fcn.00486453
add esp, 0x20
mov dword [ebp - 8], eax
cmp eax, ebx
jne 0x48dfed
movsx eax, word [edi + 0x4c]
lea eax, [edi + eax*2 + 0x4e]
movzx ecx, word [eax]
mov dword [ebp - 0xc], ecx
cmp dword [ebp - 4], ebx
jne 0x48df94
mov eax, dword [esi + 0x44]
call fcn.00477846
cmp eax, ebx
jne 0x48dfed
mov eax, dword [esi + 0x40]
mov ecx, dword [ebp - 0xc]
lea ecx, [eax + ecx*2]
movzx eax, byte [ecx]
movzx ecx, byte [ecx + 1]
shl eax, 8
or eax, ecx
movzx ecx, word [esi + 0x14]
and eax, ecx
add eax, dword [esi + 0x38]
cmp byte [esi + 5], bl
jne 0x48df69
mov ecx, dword [eax]
mov edx, dword [ebp - 0x14]
mov dword [edx], ecx
lea ecx, [ebp - 4]
push ecx
mov ecx, esi
call fcn.00486333
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
movzx eax, word [ebp - 4]
push eax
push dword [ebp - 0xc]
call fcn.0046ae06
mov eax, dword [ebp - 8]
add esp, 0x10
cmp eax, ebx
jne 0x48dfed
jmp 0x48dfab
jge 0x48dfab
cmp word [esi + 0x12], bx
jbe 0x48dfab
inc word [eax]
movsx eax, word [edi + 0x4c]
movzx eax, word [edi + eax*2 + 0x4e]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0xc]
push ebx
push ebx
push dword [ebp - 0x10]
mov ecx, esi
push dword [ebp - 0x14]
call fcn.00477d0a
xor eax, eax
mov word [edi + 0x2c], ax
mov eax, dword [ebp - 8]
add esp, 0x14
cmp eax, ebx
jne 0x48dfed
cmp byte [esi + 1], bl
je 0x48dfed
and byte [edi + 0x48], 0xfd
call fcn.0048a5c1
movsx ecx, word [edi + 0x4c]
mov ecx, dword [edi + ecx*4 + 0x78]
mov byte [ecx + 1], bl
mov byte [edi + 0x49], bl
pop edi
pop esi
pop ebx
leave
ret
Function at 0x48dff2
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
mov edi, eax
mov eax, dword [edi]
movsx ebx, word [edi + 0x4c]
mov ecx, dword [edi + ebx*4 + 0x78]
mov dx, word [edi + ebx*2 + 0x4e]
mov dword [ebp - 4], eax
mov eax, dword [eax + 4]
mov dword [ebp - 0xc], eax
xor eax, eax
inc eax
mov dword [ebp - 0x1c], ebx
cmp dx, word [ecx + 0x12]
jae 0x48e1c3
cmp byte [edi + 0x49], al
jne 0x48e1c3
mov esi, ecx
mov ecx, dword [esi + 0x40]
movzx eax, dx
lea ecx, [ecx + eax*2]
mov dword [ebp - 0x10], eax
movzx eax, byte [ecx]
movzx ecx, byte [ecx + 1]
shl eax, 8
or eax, ecx
movzx ecx, word [esi + 0x14]
and eax, ecx
add eax, dword [esi + 0x38]
cmp byte [esi + 5], 0
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], eax
jne 0x48e077
and dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
push edi
call fcn.0048ddec
pop ecx
pop ecx
test eax, eax
jne 0x48e1c3
mov ecx, dword [edi + 0x3c]
mov eax, dword [ebp - 0xc]
push edi
call fcn.0048d6ef
pop ecx
test eax, eax
jne 0x48e1c3
cmp dword [edi + 0x10], eax
jne 0x48e0a3
push eax
push dword [edi + 0x1c]
mov eax, dword [ebp - 4]
push dword [edi + 0x18]
call fcn.0045cffa
add esp, 0xc
mov eax, dword [esi + 0x44]
call fcn.00477846
test eax, eax
jne 0x48e1c3
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 0x14]
mov ecx, esi
call fcn.00486333
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
movzx eax, word [ebp - 4]
push eax
push dword [ebp - 0x10]
call fcn.0046ae06
mov eax, dword [ebp - 8]
add esp, 0x10
test eax, eax
jne 0x48e1c3
cmp byte [esi + 5], al
jne 0x48e17f
movsx eax, word [edi + 0x4c]
mov esi, dword [edi + eax*4 + 0x78]
mov eax, dword [edi + ebx*4 + 0x7c]
mov eax, dword [eax + 0x48]
mov ecx, dword [esi + 0x40]
mov dword [ebp - 0x14], eax
movzx eax, word [esi + 0x12]
lea eax, [ecx + eax*2]
movzx ebx, byte [eax - 2]
movzx eax, byte [eax - 1]
shl ebx, 8
or ebx, eax
movzx eax, word [esi + 0x14]
and ebx, eax
add ebx, dword [esi + 0x38]
mov edx, esi
push ebx
call fcn.0045d19f
movzx eax, ax
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x50]
mov dword [ebp - 0xc], eax
mov eax, dword [esi + 0x44]
call fcn.00477846
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push dword [ebp - 0x14]
mov eax, dword [ebp - 4]
push dword [ebp - 0xc]
add eax, 4
push eax
mov eax, dword [ebp - 0x10]
add ebx, 0xfffffffc
push ebx
call fcn.00477d0a
lea eax, [ebp - 8]
push eax
movzx eax, word [esi + 0x12]
push dword [ebp - 4]
dec eax
push eax
call fcn.0046ae06
mov eax, dword [ebp - 8]
add esp, 0x24
test eax, eax
jne 0x48e1c3
mov ebx, dword [ebp - 0x1c]
call fcn.0048a5c1
mov esi, eax
test esi, esi
jne 0x48e1c1
movsx eax, word [edi + 0x4c]
cmp eax, ebx
jle 0x48e1ba
movzx ecx, word [edi + 0x4c]
movsx eax, cx
mov eax, dword [edi + eax*4 + 0x78]
dec ecx
mov word [edi + 0x4c], cx
call fcn.00484bf1
movsx eax, word [edi + 0x4c]
cmp eax, ebx
jg 0x48e192
call fcn.0048a5c1
mov esi, eax
test esi, esi
jne 0x48e1c1
mov eax, edi
call fcn.00489560
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4a0955
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, eax
mov eax, 0x100
push edi
mov ebx, eax
or esi, eax
shl dword [ebp + 0x10], 1
mov eax, esi
shr eax, 7
and eax, 1
push eax
mov eax, ebx
and eax, dword [ebp + 0x10]
mov ecx, esi
add eax, ebx
shr ecx, 8
add ecx, eax
mov eax, dword [ebp + 0xc]
lea edi, [eax + ecx*2]
mov eax, dword [ebp + 8]
call fcn.004a08c5
add esi, esi
mov eax, esi
xor eax, dword [ebp + 0x10]
pop ecx
not eax
and ebx, eax
cmp esi, 0x10000
jb 0x4a0968
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x4a09a9
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
xor eax, eax
or ecx, 0x100
push esi
mov esi, dword [ebp + 8]
mov edx, ecx
shr edx, 8
movzx edx, word [esi + edx*2]
mov esi, ecx
shr esi, 7
and esi, 1
neg esi
sar esi, 4
and esi, 0x7f
shr edx, 4
xor edx, esi
mov esi, dword [ebp + 0xc]
add eax, dword [esi + edx*4]
add ecx, ecx
cmp ecx, 0x10000
jb 0x4a09b7
pop esi
pop ebp
ret

Function at 0x4a09eb
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, 0x100
push esi
xor eax, eax
or edx, ecx
push edi
shl dword [ebp + 0xc], 1
mov esi, ecx
and esi, dword [ebp + 0xc]
mov edi, edx
add esi, ecx
shr edi, 8
add edi, esi
mov esi, dword [ebp + 8]
movzx esi, word [esi + edi*2]
mov edi, edx
shr edi, 7
and edi, 1
neg edi
shr esi, 4
sar edi, 4
and edi, 0x7f
xor esi, edi
mov edi, dword [ebp + 0x10]
add eax, dword [edi + esi*4]
add edx, edx
mov esi, edx
xor esi, dword [ebp + 0xc]
not esi
and ecx, esi
cmp edx, 0x10000
jb 0x4a09fb
pop edi
pop esi
pop ebp
ret

Function at 0x4a0afb
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
xor edx, edx
push esi
mov esi, eax
xor eax, eax
inc edx
test esi, esi
je 0x4a0b3c
push ebx
push edi
mov ecx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
movzx edi, word [edi + edx*2]
shr dword [ebp + 0xc], 1
and ecx, 1
mov ebx, ecx
neg ebx
sar ebx, 4
and ebx, 0x7f
shr edi, 4
xor edi, ebx
mov ebx, dword [ebp + 0x10]
add eax, dword [ebx + edi*4]
add edx, edx
or edx, ecx
dec esi
jne 0x4a0b0e
pop edi
pop ebx
pop esi
pop ebp
ret

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor ecx, ecx
push 4
pop edx
mov dword [eax + 0x34], ecx
mov byte [eax + 0x1f], cl
mov dword [eax + 0x24], ecx
mov dword [eax + 0x30], 0x20
mov byte [eax + 0x1d], 1
mov dword [eax + 0x48], edx
mov byte [eax + 0x1e], cl
xor esi, esi
add eax, 0x60
push 8
mov ecx, esi
pop edi
mov ebx, ecx
and ebx, 1
dec ebx
not ebx
and ebx, 0xedb88320
shr ecx, 1
xor ecx, ebx
dec edi
jne 0x4a627e
mov dword [eax], ecx
inc esi
add eax, edx
cmp esi, 0x100
jb 0x4a6279
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x4a7096
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
xor eax, eax
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
push eax
call fcn.004a9f99
mov ecx, dword [ebp + 8]
push eax
mov dword [ecx], eax
call fcn.004a7039
add esp, 0x1c
leave
ret