joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42a170
Capabilities:
Get token privileges

Disassembly:
push 0xffffffffffffffff
push 0x4ae9fb
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x4dc104]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x24], ebx
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x42a1b3
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x10], ebx
lea eax, [esp + 0x10]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x42a2bf
push 0xc
call fcn.004896b9
mov esi, eax
add esp, 4
mov dword [esp + 0x18], esi
mov byte [esp + 0x24], 1
cmp esi, ebx
je 0x42a22c
push 0x1000
push ebx
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], 1
call fcn.00489372
mov ecx, dword [esi + 4]
add esp, 8
mov dword [esi], eax
cmp ecx, 0x1000
jae 0x42a223
mov edx, 0x1000
sub edx, ecx
push edx
add ecx, eax
push ebx
push ecx
call fcn.0048ad80
add esp, 0xc
mov dword [esi + 4], 0x1000
jmp 0x42a22e
xor esi, esi
mov byte [esp + 0x24], bl
mov dword [esp + 0x18], esi
mov byte [esp + 0x24], 2
mov eax, dword [esi + 4]
mov edi, dword [esi]
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push ecx
mov dword [esp + 0x18], eax
mov eax, dword [esi + 4]
push eax
push edi
push 3
push edx
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x42a292
xor eax, eax
cmp dword [edi], ebx
jbe 0x42a27e
lea ecx, [edi + 0xc]
jmp 0x42a270
mov dword [ecx], 2
inc eax
add ecx, 0xc
cmp eax, dword [edi]
jb 0x42a270
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
push ebx
push ebx
push eax
push edi
push ebx
push ecx
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov byte [esp + 0x24], bl
add dword [esi + 8], 0xffffffff
jne 0x42a2bf
cmp dword [esi + 4], ebx
je 0x42a2b2
mov eax, dword [esi]
push ebx
push eax
call fcn.00489372
add esp, 8
mov dword [esi], eax
mov dword [esi + 4], ebx
push esi
call fcn.0048867e
add esp, 4
mov dword [esp + 0x18], ebx
mov dword [esp + 0x24], 0xffffffff
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x42a2d6
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x18
ret
Function at 0x42a2f0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4b07d9
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4dc104]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x2c]
xor ebx, ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x18], ebx
mov eax, dword [0x4ee75c]
mov edx, dword [eax + 0xc]
mov ecx, 0x4ee75c
call edx
add eax, 0x10
mov dword [ebp], eax
mov dword [esp + 0x24], ebx
lea eax, [esp + 0x14]
push eax
mov edi, 0x400
mov dword [esp + 0x1c], 1
call fcn.00429f30
mov dword [esp + 0x24], 2
mov esi, dword [esp + 0x14]
mov eax, dword [esi]
push 1
push ebx
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x42a399
mov edx, dword [esi]
cmp edx, ebx
jne 0x42a37c
xor eax, eax
jmp 0x42a390
mov eax, edx
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x42a381
sub eax, edi
sar eax, 1
push eax
push edx
mov ecx, ebp
call fcn.0040658b
mov byte [esp + 0x24], bl
add dword [esi + 8], 0xffffffff
jne 0x42a3b7
xor edi, edi
call fcn.0042a010
push esi
call fcn.0048867e
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 0x42a730
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x4b1fe2
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push ebp
push esi
mov eax, dword [0x4dc104]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov dword [esp + 0x14], 0
mov eax, dword [0x4ee75c]
mov edx, dword [eax + 0xc]
mov ecx, 0x4ee75c
call edx
lea esi, [eax + 0x10]
mov dword [esp + 0x10], esi
mov dword [esp + 0x20], 1
mov eax, 0x4c5c28
push 0
test eax, 0xffff0000
jne 0x42a877
mov ecx, eax
movzx ebp, cx
push ebp
call fcn.004011a5
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x42a889
mov edx, ebp
shr edx, 4
inc edx
movzx eax, dx
push 6
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x42a889
push ebp
push eax
push ebx
call fcn.004010e8
mov ebp, eax
add esp, 0xc
test ebp, ebp
je 0x42a889
movzx ebx, word [ebp]
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, ebx
or eax, ecx
jge 0x42a7f9
push ebx
lea ecx, [esp + 0x14]
call fcn.00407fde
mov esi, dword [esp + 0x10]
movzx eax, word [ebp]
lea edx, [ebp + 2]
cmp eax, 0xffffffff
jne 0x42a820
mov eax, edx
lea ebp, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x42a810
sub eax, ebp
sar eax, 1
inc eax
lea ecx, [eax + eax]
push ecx
push edx
lea ebp, [ebx + ebx]
push ebp
push esi
call fcn.00489281
add esp, 0x10
cmp eax, 0x50
ja case.0x42a83e.1
movzx edx, byte [eax + 0x42a96c]
jmp dword [edx*4 + 0x42a95c]
push 0x8007000e
call fcn.0040103e
push 0x80070057
call fcn.0040103e
test ebx, ebx
jl case.0x42a83e.22
cmp ebx, dword [esi - 8]
jg case.0x42a83e.22
xor eax, eax
mov dword [esi - 0xc], ebx
mov word [esi + ebp], ax
jmp 0x42a889
push 0x80004005
call fcn.0040103e
push 0x4c5c28
lea ecx, [esp + 0x18]
call fcn.0040658b
mov esi, dword [esp + 0x10]
mov dword [esp + 0x20], 2
lea ebp, [edi + 0xc]
lea eax, [esp + 0x10]
mov ecx, ebp
call fcn.0042a460
mov dword [esp + 0x20], 0
lea eax, [esi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42a8c3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebx, dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp byte [edi + 8], 0
jne 0x42a8fc
mov eax, dword [edi]
push ebp
push eax
mov byte [edi + 8], 1
call ebx
mov esi, eax
mov eax, dword [edi + 0x260]
cmp esi, eax
je 0x42a8f1
cmp eax, 0xffffffff
je 0x42a8f1
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [edi + 0x260], esi
cmp esi, 0xffffffff
jmp 0x42a911
mov eax, dword [edi + 0x260]
cmp eax, 0xffffffff
je 0x42a929
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x42a929
lea esi, [edi + 0x38]
call fcn.00427840
test al, al
jne 0x42a8c9
lea eax, [edi + 4]
mov ecx, ebp
call fcn.0042a460
mov esi, dword [esp + 0x28]
push ebp
push esi
call fcn.0042a9c0
mov dword [esp + 0x20], 0
mov dword [esp + 0x14], 1
mov eax, esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 4
Function at 0x42aac0
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 0x42aae6
test eax, eax
je 0x42aae6
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
mov dword [esi + 4], edi
test eax, eax
je 0x42ab1e
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 0x42ab12
test eax, eax
je 0x42ab12
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 0x42ac20
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0xffffffffffffffff
push 0x4adc29
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4dc104]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov esi, dword [esp + 0x34]
xor ebx, ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x14], ebx
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esp + 0x2c], ebx
push 0x4c6de4
push 0x5371
push ebx
mov dword [esp + 0x20], 1
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
cmp edi, ebx
je 0x42acdc
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebp, eax
cmp ebp, ebx
je 0x42acdc
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
mov dword [esp + 0x18], edi
mov dword [esp + 0x2c], 1
cmp edi, ebx
je 0x42accd
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, ebp
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ecx
mov byte [esp + 0x2c], 2
mov dword [esi], eax
mov dword [esi + 4], ecx
mov byte [esp + 0x2c], 1
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov byte [esp + 0x2c], bl
cmp edi, ebx
je 0x42acdc
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
Function at 0x42ad00
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0xffffffffffffffff
push 0x4ae8b4
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4dc104]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0x28], ebx
push 0xc
mov dword [esp + 0x1c], ebx
call fcn.004896b9
add esp, 4
mov dword [esp + 0x14], eax
mov ecx, 1
mov dword [esp + 0x28], ecx
cmp eax, ebx
je 0x42ad56
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov dword [eax + 8], ecx
jmp 0x42ad58
xor eax, eax
mov byte [esp + 0x28], bl
mov edi, dword [esp + 0x30]
mov dword [edi], eax
mov dword [esp + 0x28], ebx
push 0x4c6de4
push 0x536f
push ebx
mov dword [esp + 0x24], ecx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
cmp esi, ebx
je 0x42ae3e
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebp, eax
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x28], 2
cmp ebp, ebx
je 0x42ae17
push ebp
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
cmp edi, ebx
je 0x42ae17
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
cmp eax, ebx
je 0x42ae17
push edi
lea ecx, [esp + 0x18]
push ecx
mov edi, eax
call fcn.0042ae70
add esp, 8
mov byte [esp + 0x28], 3
mov ebx, dword [esp + 0x30]
push eax
call fcn.004041b1
mov byte [esp + 0x28], 2
mov esi, dword [esp + 0x14]
dec dword [esi + 8]
cmp dword [esi + 8], 0
lea eax, [esi + 8]
jne 0x42ae15
xor edi, edi
cmp dword [esi + 4], edi
je 0x42ae04
mov eax, dword [esi]
push edi
push eax
call fcn.00489372
add esp, 8
mov dword [esi], eax
mov dword [esi + 4], edi
mov edx, dword [esp + 0x14]
push edx
call fcn.0048867e
add esp, 4
mov dword [esp + 0x14], edi
xor ebx, ebx
mov byte [esp + 0x28], bl
cmp ebp, ebx
je 0x42ae26
push ebp
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
mov eax, edi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret

Function at 0x42b120
Capabilities:
Hash data with md5

Disassembly:
xor ecx, ecx
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret
Function at 0x42c020
Capabilities:
Hash data using sha1

Disassembly:
push 0xffffffffffffffff
push 0x4ad938
mov eax, dword fs:[0]
push eax
mov eax, dword [0x4dc104]
xor eax, esp
push eax
lea eax, [esp + 4]
mov dword fs:[0], eax
mov eax, dword [esp + 0x14]
xor ecx, ecx
mov dword [eax], vtable.SHA1.0
mov dword [eax + 0x18], ecx
mov dword [eax + 0x1c], ecx
mov dword [eax + 0x60], ecx
mov dword [eax + 4], 0x67452301
mov dword [eax + 8], 0xefcdab89
mov dword [eax + 0xc], 0x98badcfe
mov dword [eax + 0x10], 0x10325476
mov dword [eax + 0x14], 0xc3d2e1f0
mov byte [eax + 0x64], cl
mov byte [eax + 0x65], cl
mov dword [esp + 0xc], 0xffffffff
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
pop ecx
add esp, 0xc
ret 4
Function at 0x437eb0
Capabilities:
Check for peb ntglobalflag flag
Hash data with md5

Disassembly:
push 0xffffffffffffffff
push 0x4b33a1
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x4dc104]
xor eax, esp
mov dword [esp + 0x68], eax
push ebx
push edi
mov eax, dword [0x4dc104]
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.004388c0
add esp, 4
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x20]
push ecx
call fcn.00437de0
mov edi, 1
mov dword [esp + 0x84], edi
push eax
push esi
call fcn.004293f0
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 0x437f8f
cmp dword [edi + 4], ebx
je 0x437f7e
mov eax, dword [edi]
push ebx
push eax
call fcn.00489372
add esp, 8
mov dword [edi], eax
mov dword [edi + 4], ebx
mov edx, dword [esp + 0x10]
push edx
call fcn.0048867e
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.00488689
add esp, 0x7c
ret
Function at 0x4387c0
Capabilities:
Encode data using xor
Hash data with crc32

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

Function at 0x43d928
Capabilities:
Encode data using xor

Disassembly:
mov cl, byte [edx]
xor eax, eax
test cl, cl
je 0x43d94c
push esi
movzx ecx, cl
movzx ecx, byte [ecx + 0x4b88e8]
mov esi, eax
shl esi, 3
xor ecx, esi
inc edx
xor eax, ecx
mov cl, byte [edx]
test cl, cl
jne 0x43d931
pop esi
ret
Function at 0x4498ad
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
test ebx, ebx
jne 0x4498bc
xor eax, eax
leave
ret
push esi
mov esi, dword [ebp + 8]
push 0
push 8
call fcn.00444e4b
pop ecx
pop ecx
mov ecx, eax
mov dword [ebp - 8], ecx
test ecx, ecx
je 0x449987
test byte [ebp + 0xc], 1
mov eax, dword [ebx]
mov dword [ecx], eax
jne 0x4498f1
mov ecx, dword [ebx]
xor eax, eax
inc eax
cmp ecx, eax
jle 0x4498f1
add eax, eax
cmp eax, ecx
jl 0x4498eb
imul eax, eax, 0x18
push edi
push 0
push eax
call fcn.00444e4b
mov edx, dword [ebp - 8]
mov edi, eax
pop ecx
pop ecx
mov dword [edx + 4], edi
test edi, edi
jne 0x449916
mov ecx, esi
call fcn.0043ca3f
xor eax, eax
jmp 0x449986
and dword [ebp - 4], 0
cmp dword [ebx], 0
mov esi, dword [ebx + 4]
jle 0x449983
mov eax, dword [esi]
push 0
push dword [ebp + 0xc]
push eax
push dword [ebp + 8]
call fcn.00452a2a
mov dword [edi], eax
push dword [esi + 4]
push dword [ebp + 8]
call fcn.00444faa
mov dword [edi + 4], eax
push dword [esi + 8]
push dword [ebp + 8]
call fcn.00444faa
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 0x449922
mov eax, dword [ebp - 8]
pop edi
pop esi
leave
ret
Function at 0x470d7d
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 0x470da8
mov eax, dword [edi + 0x44]
jmp 0x470f33
mov ecx, dword [edi + 0x3c]
push edi
call fcn.00470635
pop ecx
cmp eax, ebx
jne 0x470f33
cmp dword [edi + 0x10], ebx
jne 0x470dff
push ebx
push dword [ebp + 0x10]
mov eax, esi
push dword [ebp + 0xc]
call fcn.0043ffe3
add esp, 0xc
test byte [edi + 0x48], 2
je 0x470dff
cmp dword [ebp + 0x10], ebx
jl 0x470dff
jg 0x470de2
cmp dword [ebp + 0xc], ebx
jbe 0x470dff
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 0x470dff
mov eax, dword [edi + 0x1c]
cmp eax, ecx
jne 0x470dff
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 4], ebx
jne 0x470e25
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.0047066d
add esp, 0x10
cmp eax, ebx
jne 0x470f33
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.00469399
add esp, 0x20
mov dword [ebp - 8], eax
cmp eax, ebx
jne 0x470f33
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 0x470eda
mov eax, dword [esi + 0x44]
call fcn.0045a78e
cmp eax, ebx
jne 0x470f33
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 0x470eaf
mov ecx, dword [eax]
mov edx, dword [ebp - 0x14]
mov dword [edx], ecx
lea ecx, [ebp - 4]
push ecx
mov ecx, esi
call fcn.00469279
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
movzx eax, word [ebp - 4]
push eax
push dword [ebp - 0xc]
call fcn.0044dde0
mov eax, dword [ebp - 8]
add esp, 0x10
cmp eax, ebx
jne 0x470f33
jmp 0x470ef1
jge 0x470ef1
cmp word [esi + 0x12], bx
jbe 0x470ef1
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.0045ac52
xor eax, eax
mov word [edi + 0x2c], ax
mov eax, dword [ebp - 8]
add esp, 0x14
cmp eax, ebx
jne 0x470f33
cmp byte [esi + 1], bl
je 0x470f33
and byte [edi + 0x48], 0xfd
call fcn.0046d507
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 0x470f38
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 0x471109
cmp byte [edi + 0x49], al
jne 0x471109
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 0x470fbd
and dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
push edi
call fcn.00470d32
pop ecx
pop ecx
test eax, eax
jne 0x471109
mov ecx, dword [edi + 0x3c]
mov eax, dword [ebp - 0xc]
push edi
call fcn.00470635
pop ecx
test eax, eax
jne 0x471109
cmp dword [edi + 0x10], eax
jne 0x470fe9
push eax
push dword [edi + 0x1c]
mov eax, dword [ebp - 4]
push dword [edi + 0x18]
call fcn.0043ffe3
add esp, 0xc
mov eax, dword [esi + 0x44]
call fcn.0045a78e
test eax, eax
jne 0x471109
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 0x14]
mov ecx, esi
call fcn.00469279
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
movzx eax, word [ebp - 4]
push eax
push dword [ebp - 0x10]
call fcn.0044dde0
mov eax, dword [ebp - 8]
add esp, 0x10
test eax, eax
jne 0x471109
cmp byte [esi + 5], al
jne 0x4710c5
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.00440188
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.0045a78e
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.0045ac52
lea eax, [ebp - 8]
push eax
movzx eax, word [esi + 0x12]
push dword [ebp - 4]
dec eax
push eax
call fcn.0044dde0
mov eax, dword [ebp - 8]
add esp, 0x24
test eax, eax
jne 0x471109
mov ebx, dword [ebp - 0x1c]
call fcn.0046d507
mov esi, eax
test esi, esi
jne 0x471107
movsx eax, word [edi + 0x4c]
cmp eax, ebx
jle 0x471100
movzx ecx, word [edi + 0x4c]
movsx eax, cx
mov eax, dword [edi + eax*4 + 0x78]
dec ecx
mov word [edi + 0x4c], cx
call fcn.00467b37
movsx eax, word [edi + 0x4c]
cmp eax, ebx
jg 0x4710d8
call fcn.0046d507
mov esi, eax
test esi, esi
jne 0x471107
mov eax, edi
call fcn.0046c4a6
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret