joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44a490
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4ccf01
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5000f4]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x18], ebx
mov ecx, dword [esp + 0x2c]
call fcn.00404eb0
mov dword [esp + 0x24], ebx
lea eax, [esp + 0x14]
mov ebp, 1
push eax
mov edi, 0x400
mov dword [esp + 0x1c], ebp
call fcn.00419520
mov dword [esp + 0x24], ebp
mov ecx, dword [esp + 0x30]
mov esi, dword [esp + 0x14]
mov eax, dword [esi]
push ebp
push ecx
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x44a53e
mov edx, dword [esi]
cmp edx, ebx
jne 0x44a519
mov ebp, dword [esp + 0x2c]
xor eax, eax
push eax
push edx
mov ecx, ebp
call fcn.00408e90
jmp 0x44a542
mov eax, edx
lea edi, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x44a520
mov ebp, dword [esp + 0x2c]
sub eax, edi
sar eax, 1
push eax
push edx
mov ecx, ebp
call fcn.00408e90
jmp 0x44a542
mov ebp, dword [esp + 0x2c]
mov byte [esp + 0x24], bl
add dword [esi + 8], 0xffffffff
jne 0x44a560
xor edi, edi
call fcn.0041bfa0
push esi
call fcn.0045a597
add esp, 4
mov dword [esp + 0x14], ebx
mov eax, ebp
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret

Function at 0x44a760
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x4ceae2
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5000f4]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov edi, ecx
push 0x4ebde0
lea ecx, [esp + 0x18]
mov dword [esp + 0x1c], 0
call fcn.004054b0
mov ebx, 1
mov dword [esp + 0x24], ebx
lea eax, [esp + 0x14]
lea ecx, [edi + 0x25c]
push eax
call fcn.00407780
mov byte [esp + 0x24], 0
lea ecx, [esp + 0x14]
call fcn.00405020
mov ebp, dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp byte [edi + 8], 0
jne 0x44a801
mov eax, dword [edi]
lea ecx, [edi + 0xc]
push ecx
push eax
mov byte [edi + 8], bl
call ebp
mov esi, eax
mov eax, dword [edi + 0x260]
cmp esi, eax
je 0x44a7f6
cmp eax, 0xffffffff
je 0x44a7f6
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [edi + 0x260], esi
cmp esi, 0xffffffff
jmp 0x44a819
mov eax, dword [edi + 0x260]
cmp eax, 0xffffffff
je 0x44a836
lea edx, [edi + 0xc]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x44a836
lea esi, [edi + 0x38]
call fcn.004489d0
test al, al
jne 0x44a7cc
lea eax, [edi + 4]
push eax
lea ecx, [edi + 0x25c]
call fcn.00407780
mov esi, dword [esp + 0x2c]
add edi, 0xc
push edi
push esi
call fcn.0044a870
mov dword [esp + 0x24], 0
mov dword [esp + 0x18], ebx
mov eax, esi
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 4
Function at 0x44a9b0
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 0x44a9c4
cmp dword [esi + 0x30], 0x40
jbe 0x44aac8
mov edi, dword [esi + 0x28]
mov ebp, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
push 0x40
push edi
call ebp
test eax, eax
jne 0x44aacd
mov eax, 0x5a4d
cmp word [edi], ax
jne 0x44aacd
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 0x44aac8
ja 0x44aa0f
mov ecx, dword [esi + 0x30]
cmp ecx, edx
jbe 0x44aac8
mov edx, dword [esi + 0x28]
add eax, edx
push 0xf8
push eax
mov dword [esi + 0x24], eax
call ebp
test eax, eax
jne 0x44aacd
mov eax, dword [esi + 0x24]
cmp dword [eax], 0x4550
jne 0x44aacd
mov ecx, 0x2000
test word [eax + 0x16], cx
jne 0x44aa45
mov byte [esi + 0x44], 1
mov edx, eax
movzx eax, word [edx + 0x18]
mov ecx, 0x10b
cmp ax, cx
jne 0x44aa61
mov dword [esi + 0x40], 1
add edx, 0x78
jmp 0x44aa78
mov ecx, 0x20b
cmp ax, cx
jne 0x44aa7b
mov dword [esi + 0x40], 2
add edx, 0x88
mov dword [esi + 0x20], edx
cmp dword [esi + 0x20], ebx
je 0x44aacd
mov eax, dword [esi + 0x24]
movzx ecx, word [eax + 6]
mov dword [esi + 0x3c], ecx
test ecx, ecx
je 0x44aacd
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 0x44aac8
ja 0x44aab6
mov ecx, dword [esi + 0x30]
cmp ecx, edi
jbe 0x44aac8
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 0x44ac40
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 0x44ac6f
mov eax, dword [ecx + 0xc]
cmp edi, eax
jb 0x44ac67
mov ebx, dword [ecx + 8]
add ebx, eax
cmp edi, ebx
jb 0x44ac74
inc edx
add ecx, 0x28
cmp edx, esi
jb 0x44ac57
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 0x44ac80
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 0x44acaf
mov eax, dword [ecx + 0xc]
cmp edi, eax
jb 0x44aca7
mov ebp, dword [ecx + 8]
add ebp, eax
cmp edi, ebp
jb 0x44acb4
inc edx
add ecx, 0x28
cmp edx, esi
jb 0x44ac97
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 0x44b070
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4d0a38
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5000f4]
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 0x44b19d
mov eax, dword [edx]
cmp eax, 0x4e20
jg 0x44b19d
inc eax
mov dword [edx], eax
mov eax, dword [ebx + 4]
test eax, eax
jns 0x44b0f0
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.0044b1c0
jmp 0x44b19f
mov esi, dword [ebx]
push edi
push ecx
lea eax, [esp + 0x44]
push eax
call fcn.0044afa0
add esp, 0xc
mov dword [esp + 0x20], 0
mov esi, dword [ebx + 4]
add esi, edi
je 0x44b18c
mov edi, dword [esi]
mov ebx, dword [esp + 0x28]
call fcn.0044ac80
lea ecx, [esp + 0x34]
push 0x4ec4f0
push ecx
mov ecx, dword [esp + 0x3c]
mov edi, eax
call fcn.00405330
mov byte [esp + 0x28], 1
lea edx, [esp + 0x44]
push edx
lea ecx, [esp + 0x34]
push ecx
mov ecx, eax
call fcn.00405280
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.00405020
mov byte [esp + 0x20], 0
lea ecx, [esp + 0x34]
call fcn.00405020
mov dword [esp + 0x20], 0xffffffff
lea ecx, [esp + 0x3c]
call fcn.00405020
mov al, bl
jmp 0x44b19f
mov dword [esp + 0x20], 0xffffffff
lea ecx, [esp + 0x3c]
call fcn.00405020
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 0x44b850
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 0x44b876
test eax, eax
je 0x44b876
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
mov dword [esi + 4], edi
test eax, eax
je 0x44b8ae
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 0x44b8a2
test eax, eax
je 0x44b8a2
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 0x4553e0
Capabilities:
Get file size
Hash data with md5
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4ca414
mov eax, dword fs:[0]
push eax
sub esp, 0x84
mov eax, dword [0x5000f4]
xor eax, esp
mov dword [esp + 0x80], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5000f4]
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.00417950
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 0x4555e3
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 0x4555e3
mov eax, dword [esp + 0x20]
mov ebx, dword [esp + 0x1c]
cmp eax, ebp
ja 0x4554a5
cmp ebx, ebp
jbe 0x4555e3
cmp eax, 0xffffffff
ja 0x4555e3
jb 0x4554b9
cmp ebx, 0xffffffff
jae 0x4555e3
lea ecx, [esp + 0x30]
push ecx
mov edi, 0x10000
xor esi, esi
call fcn.0044a200
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 0x455513
jb 0x455515
cmp edx, ebx
jb 0x455515
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 0x45558c
mov eax, dword [esp + 0x18]
test eax, eax
je 0x45558c
mov ecx, dword [edi]
push ecx
lea ecx, [esp + 0x40]
call fcn.004557a0
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 0x45556e
jb 0x45556c
cmp ebx, ecx
jae 0x45556e
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 0x455533
cmp ebp, dword [esp + 0x1c]
jne 0x4555ca
cmp esi, dword [esp + 0x20]
jne 0x4555ca
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x40]
push edx
call fcn.00455370
mov byte [esp + 0xa0], 3
mov edi, dword [esp + 0x2c]
push eax
call fcn.004179c0
mov byte [esp + 0xa0], 2
lea edi, [esp + 0x1c]
call fcn.0044a2b0
mov byte [esp + 0xa0], 1
lea edi, [esp + 0x30]
call fcn.0044a2b0
mov esi, dword [esp + 0x2c]
mov edi, dword [esp + 0x28]
mov byte [esp + 0xa0], 0
cmp edi, 0xffffffff
je 0x4555f7
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.004aa641
add esp, 0x90
ret
Function at 0x455630
Capabilities:
Check for peb ntglobalflag flag
Hash data with md5

Disassembly:
push 0xffffffffffffffff
push 0x4cfb11
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x5000f4]
xor eax, esp
mov dword [esp + 0x68], eax
push ebx
push edi
mov eax, dword [0x5000f4]
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.004557a0
add esp, 4
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x20]
push ecx
call fcn.00455370
mov edi, 1
mov dword [esp + 0x84], edi
push eax
push esi
call fcn.00449b50
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 0x45570f
cmp dword [edi + 4], ebx
je 0x4556fe
mov eax, dword [edi]
push ebx
push eax
call fcn.004ab194
add esp, 8
mov dword [edi], eax
mov dword [edi + 4], ebx
mov edx, dword [esp + 0x10]
push edx
call fcn.0045a597
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.004aa641
add esp, 0x7c
ret

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

Disassembly:
push esi
cmp edx, 8
jb 0x456048
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 + 0x4e4280]
movzx ebx, byte [eax + 1]
xor ebx, ecx
and ebx, 0xff
inc eax
shr ecx, 8
xor ecx, dword [ebx*4 + 0x4e4280]
movzx ebx, byte [eax + 1]
xor ebx, ecx
and ebx, 0xff
inc eax
shr ecx, 8
xor ecx, dword [ebx*4 + 0x4e4280]
movzx ebx, byte [eax + 1]
xor ebx, ecx
inc eax
and ebx, 0xff
shr ecx, 8
xor ecx, dword [ebx*4 + 0x4e4280]
movzx ebx, byte [eax + 1]
xor ebx, ecx
inc eax
and ebx, 0xff
shr ecx, 8
xor ecx, dword [ebx*4 + 0x4e4280]
movzx ebx, byte [eax + 1]
xor ebx, ecx
inc eax
and ebx, 0xff
shr ecx, 8
xor ecx, dword [ebx*4 + 0x4e4280]
movzx ebx, byte [eax + 1]
inc eax
xor ebx, ecx
and ebx, 0xff
shr ecx, 8
xor ecx, dword [ebx*4 + 0x4e4280]
movzx ebx, byte [eax + 1]
inc eax
xor ebx, ecx
and ebx, 0xff
shr ecx, 8
xor ecx, dword [ebx*4 + 0x4e4280]
inc eax
sub edx, 8
sub esi, 1
jne 0x455f82
mov dword [edi], ecx
pop ebx
test edx, edx
je 0x45606d
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 + 0x4e4280]
inc eax
sub edx, 1
jne 0x456050
mov dword [edi], ecx
pop esi
ret

Function at 0x45b707
Capabilities:
Encode data using xor

Disassembly:
mov cl, byte [edx]
xor eax, eax
test cl, cl
je 0x45b72b
push esi
movzx ecx, cl
movzx ecx, byte [ecx + 0x4d7840]
mov esi, eax
shl esi, 3
xor ecx, esi
inc edx
xor eax, ecx
mov cl, byte [edx]
test cl, cl
jne 0x45b710
pop esi
ret
Function at 0x467689
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
test ebx, ebx
jne 0x467698
xor eax, eax
leave
ret
push esi
mov esi, dword [ebp + 8]
push 0
push 8
call fcn.00462c27
pop ecx
pop ecx
mov ecx, eax
mov dword [ebp - 8], ecx
test ecx, ecx
je 0x467763
test byte [ebp + 0xc], 1
mov eax, dword [ebx]
mov dword [ecx], eax
jne 0x4676cd
mov ecx, dword [ebx]
xor eax, eax
inc eax
cmp ecx, eax
jle 0x4676cd
add eax, eax
cmp eax, ecx
jl 0x4676c7
imul eax, eax, 0x18
push edi
push 0
push eax
call fcn.00462c27
mov edx, dword [ebp - 8]
mov edi, eax
pop ecx
pop ecx
mov dword [edx + 4], edi
test edi, edi
jne 0x4676f2
mov ecx, esi
call fcn.0045a81e
xor eax, eax
jmp 0x467762
and dword [ebp - 4], 0
cmp dword [ebx], 0
mov esi, dword [ebx + 4]
jle 0x46775f
mov eax, dword [esi]
push 0
push dword [ebp + 0xc]
push eax
push dword [ebp + 8]
call fcn.00470872
mov dword [edi], eax
push dword [esi + 4]
push dword [ebp + 8]
call fcn.00462d86
mov dword [edi + 4], eax
push dword [esi + 8]
push dword [ebp + 8]
call fcn.00462d86
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 0x4676fe
mov eax, dword [ebp - 8]
pop edi
pop esi
leave
ret
Function at 0x48ebea
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 0x48ec15
mov eax, dword [edi + 0x44]
jmp 0x48eda0
mov ecx, dword [edi + 0x3c]
push edi
call fcn.0048e4a2
pop ecx
cmp eax, ebx
jne 0x48eda0
cmp dword [edi + 0x10], ebx
jne 0x48ec6c
push ebx
push dword [ebp + 0x10]
mov eax, esi
push dword [ebp + 0xc]
call fcn.0045ddb2
add esp, 0xc
test byte [edi + 0x48], 2
je 0x48ec6c
cmp dword [ebp + 0x10], ebx
jl 0x48ec6c
jg 0x48ec4f
cmp dword [ebp + 0xc], ebx
jbe 0x48ec6c
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 0x48ec6c
mov eax, dword [edi + 0x1c]
cmp eax, ecx
jne 0x48ec6c
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 4], ebx
jne 0x48ec92
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.0048e4da
add esp, 0x10
cmp eax, ebx
jne 0x48eda0
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.00487206
add esp, 0x20
mov dword [ebp - 8], eax
cmp eax, ebx
jne 0x48eda0
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 0x48ed47
mov eax, dword [esi + 0x44]
call fcn.004785fc
cmp eax, ebx
jne 0x48eda0
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 0x48ed1c
mov ecx, dword [eax]
mov edx, dword [ebp - 0x14]
mov dword [edx], ecx
lea ecx, [ebp - 4]
push ecx
mov ecx, esi
call fcn.004870e6
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
movzx eax, word [ebp - 4]
push eax
push dword [ebp - 0xc]
call fcn.0046bbbc
mov eax, dword [ebp - 8]
add esp, 0x10
cmp eax, ebx
jne 0x48eda0
jmp 0x48ed5e
jge 0x48ed5e
cmp word [esi + 0x12], bx
jbe 0x48ed5e
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.00478ac0
xor eax, eax
mov word [edi + 0x2c], ax
mov eax, dword [ebp - 8]
add esp, 0x14
cmp eax, ebx
jne 0x48eda0
cmp byte [esi + 1], bl
je 0x48eda0
and byte [edi + 0x48], 0xfd
call fcn.0048b374
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 0x48eda5
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 0x48ef76
cmp byte [edi + 0x49], al
jne 0x48ef76
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 0x48ee2a
and dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
push edi
call fcn.0048eb9f
pop ecx
pop ecx
test eax, eax
jne 0x48ef76
mov ecx, dword [edi + 0x3c]
mov eax, dword [ebp - 0xc]
push edi
call fcn.0048e4a2
pop ecx
test eax, eax
jne 0x48ef76
cmp dword [edi + 0x10], eax
jne 0x48ee56
push eax
push dword [edi + 0x1c]
mov eax, dword [ebp - 4]
push dword [edi + 0x18]
call fcn.0045ddb2
add esp, 0xc
mov eax, dword [esi + 0x44]
call fcn.004785fc
test eax, eax
jne 0x48ef76
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 0x14]
mov ecx, esi
call fcn.004870e6
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
movzx eax, word [ebp - 4]
push eax
push dword [ebp - 0x10]
call fcn.0046bbbc
mov eax, dword [ebp - 8]
add esp, 0x10
test eax, eax
jne 0x48ef76
cmp byte [esi + 5], al
jne 0x48ef32
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.0045df57
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.004785fc
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.00478ac0
lea eax, [ebp - 8]
push eax
movzx eax, word [esi + 0x12]
push dword [ebp - 4]
dec eax
push eax
call fcn.0046bbbc
mov eax, dword [ebp - 8]
add esp, 0x24
test eax, eax
jne 0x48ef76
mov ebx, dword [ebp - 0x1c]
call fcn.0048b374
mov esi, eax
test esi, esi
jne 0x48ef74
movsx eax, word [edi + 0x4c]
cmp eax, ebx
jle 0x48ef6d
movzx ecx, word [edi + 0x4c]
movsx eax, cx
mov eax, dword [edi + eax*4 + 0x78]
dec ecx
mov word [edi + 0x4c], cx
call fcn.004859a4
movsx eax, word [edi + 0x4c]
cmp eax, ebx
jg 0x48ef45
call fcn.0048b374
mov esi, eax
test esi, esi
jne 0x48ef74
mov eax, edi
call fcn.0048a313
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret