joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4be5c0
Capabilities:
Read file on windows
Read file via mapping

Disassembly:
sub esp, 0x148
mov eax, dword [esp + 0x154]
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x15c]
push edi
push eax
lea ecx, [esp + 0x5c]
push 0x64c6a0
push ecx
mov dword [esp + 0x20], 0
or ebp, 0xffffffff
call fcn.005faef4
mov eax, dword [esp + 0x178]
add esp, 0x10
test eax, eax
jne 0x4be66e
push 0
push 0x80
push 4
push 0
push 1
lea edx, [esp + 0x68]
push Ordinal_2
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4be7b9
push 0
push 0
push 0
push 2
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, eax
call esi
test ebx, ebx
je 0x4be7b9
push 0
push 0
push 0
push 4
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
mov dword [esp + 0x10], eax
je 0x4be7b9
push ebx
call esi
jmp 0x4be68b
lea eax, [esp + 0x54]
push 0x8000
push eax
call fcn.005fbe12
mov ebp, eax
add esp, 8
cmp ebp, 0xffffffff
je 0x4be7b9
push 0x114
call fcn.005fb0a6
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x4be7b9
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [ebx + 0x10]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 0x168]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
test eax, eax
mov dword [ebx + 0xc], 0
jne 0x4be6e6
mov eax, dword [esp + 0x10]
mov dword [ebx + 4], 0xffffffff
mov dword [ebx], eax
mov dword [ebx + 8], eax
jmp 0x4be743
push 1
push 0
push ebp
mov dword [ebx + 4], ebp
mov dword [ebx], 0
call fcn.005fc0f3
lea ecx, [esp + 0x20]
push 0x40
push ecx
push ebp
call fcn.005fbc1c
add esp, 0x18
cmp eax, 0x40
jne 0x4be7b9
mov edx, dword [esp + 0x50]
push edx
call fcn.005fb0a6
push 0
push 0
push ebp
mov dword [ebx + 8], eax
call fcn.005fc0f3
mov eax, dword [esp + 0x60]
mov ecx, dword [ebx + 8]
push eax
push ecx
push ebp
call fcn.005fbc1c
mov ecx, dword [esp + 0x6c]
add esp, 0x1c
cmp eax, ecx
jne 0x4be7b9
mov ecx, dword [0x73e8dc]
test ecx, ecx
jne 0x4be755
mov dword [0x73e8dc], ebx
jmp 0x4be768
mov eax, dword [ecx + 0xc]
test eax, eax
je 0x4be765
mov ecx, eax
mov eax, dword [ecx + 0xc]
test eax, eax
jne 0x4be75c
mov dword [ecx + 0xc], ebx
mov edi, dword [ebx + 8]
mov esi, dword [esp + 0x160]
lea eax, [edi + 0x2c]
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x4be79d
test cl, cl
je 0x4be799
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x4be79d
add eax, 2
add esi, 2
test cl, cl
jne 0x4be775
xor eax, eax
jmp 0x4be7a2
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4be7b9
push 4
add edi, 0x28
push str.1.00
push edi
call fcn.005fd930
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x148
ret
Function at 0x4be960
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, dword [esp + 0x10]
lea eax, [esp + 0x10]
push edi
mov edi, dword [esp + 0x18]
lea ecx, [esp + 0xc]
push eax
lea edx, [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x18]
push edx
mov edx, dword [esp + 0x18]
push eax
push ecx
mov dword [esi], 0xffffffff
push edx
mov dword [edi], 0
call fcn.004be880
add esp, 0x18
test eax, eax
jne 0x4be9a3
pop edi
pop esi
ret
mov eax, dword [esp + 0xc]
test eax, eax
je 0x4be9c3
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
mov dword [esi], 0
mov dword [edi], edx
lea esi, [ecx + eax]
mov eax, esi
pop edi
pop esi
ret
mov eax, dword [esp + 0x14]
mov dword [esi], 1
push eax
call fcn.005fb0a6
mov ecx, dword [esp + 0x18]
mov esi, eax
add esp, 4
mov dword [edi], ecx
test esi, esi
jne 0x4be9e5
pop edi
pop esi
ret
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
push 0
push edx
push eax
call fcn.005fc0f3
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
push ecx
push esi
push edx
call fcn.005fbc1c
mov ecx, dword [esp + 0x2c]
add esp, 0x18
cmp eax, ecx
je 0x4be9be
pop edi
xor eax, eax
pop esi
ret

Function at 0x4bea20
Capabilities:
Get common file path

Disassembly:
mov edx, dword [esp + 8]
sub esp, 0x10c
lea eax, [esp + 4]
lea ecx, [esp]
push ebx
mov ebx, dword [esp + 0x120]
push ebp
push eax
mov eax, dword [esp + 0x11c]
push ecx
push edx
push eax
mov dword [ebx], 0
call fcn.004be960
mov ebp, eax
add esp, 0x10
test ebp, ebp
jne 0x4bea63
pop ebp
pop ebx
add esp, 0x10c
ret
lea ecx, [esp + 0x10]
push esi
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
jne 0x4bea9e
push edi
mov edi, 0x6529a0
or ecx, 0xffffffff
lea edx, [esp + 0x18]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
mov esi, dword [esp + 0x124]
lea ecx, [esp + 0x14]
push esi
push 0
push str.temp
push ecx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
je 0x4beaf1
push 0x652994
push esi
call fcn.005faee1
add esp, 8
mov dword [ebx], eax
test eax, eax
je 0x4beaf1
mov ecx, dword [esp + 0x10]
test ecx, ecx
jle 0x4beaf1
push eax
push 1
push ecx
push ebp
call fcn.005fdd59
mov edx, dword [ebx]
push 0
push 0
push edx
call fcn.005fdccd
add esp, 0x1c
mov eax, dword [esp + 0xc]
pop esi
cmp eax, 1
jne 0x4beb04
push ebp
call fcn.005fabe7
add esp, 4
mov ecx, dword [ebx]
xor eax, eax
test ecx, ecx
pop ebp
pop ebx
setne al
add esp, 0x10c
ret

Function at 0x4bedf0
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
jl 0x4bee19
mov ecx, dword [esp + 8]
push esi
mov esi, dword [esp + 0x10]
push esi
push ecx
push eax
call fcn.005fbc1c
mov eax, dword [0x73ec4c]
add esp, 0xc
sub eax, esi
mov dword [0x73ec4c], eax
pop esi
ret
Function at 0x4bee50
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x6529a4]
mov ecx, dword [ebp + 0xc]
push ebx
push esi
test eax, eax
push edi
mov dword [ebp - 4], ecx
jne 0x4beec5
mov eax, dword [ebp + 8]
test eax, eax
jl 0x4bf05a
cmp eax, dword [0x73ec2c]
jne 0x4bf05a
mov esi, dword [ebp + 0x10]
push esi
push ecx
push eax
call fcn.005fbc1c
mov eax, dword [0x73ec28]
mov ebx, dword [0x73ec4c]
mov ecx, dword [0x6529a8]
add eax, esi
add esp, 0xc
sub ebx, esi
cmp eax, ecx
mov dword [0x73ec4c], ebx
mov dword [0x73ec28], eax
jle 0x4bf05a
add ecx, esi
cmp eax, ecx
jg 0x4bf05a
int3
mov esi, dword [ebp + 8]
test esi, esi
jl 0x4bf05a
cmp esi, dword [0x73ec2c]
jne 0x4bf05a
mov al, byte [0x73ec40]
test al, al
je 0x4bef75
call fcn.005ef045
push 1
push eax
call fcn.005fab6a
mov dword [0x73ec34], eax
mov eax, dword [0x73ec4c]
push 1
push eax
call fcn.005fab6a
mov ecx, dword [0x73ec4c]
mov dword [0x73ec48], eax
push ecx
push eax
push esi
call fcn.005fbc1c
mov edx, dword [0x73ec4c]
mov eax, dword [0x73ec34]
push 1
lea ecx, [ebp + 0xc]
mov dword [ebp + 8], edx
mov edx, dword [0x73ec44]
push eax
push ecx
mov ecx, dword [0x73ec48]
push 0
lea eax, [ebp + 8]
push edx
push eax
push 0
push ecx
mov dword [0x73ec30], 0
mov dword [ebp + 0xc], 0x10000
call fcn.005ef04b
mov edx, dword [ebp + 8]
mov eax, dword [0x73ec30]
add esp, 0x3c
add eax, edx
mov dword [0x73ec30], eax
mov byte [0x73ec40], 0
mov eax, dword [0x73ec38]
mov edx, dword [ebp + 0x10]
mov esi, dword [0x73ec3c]
lea ecx, [eax + edx]
cmp ecx, 0x10000
jl 0x4bf029
mov ebx, 0x10000
mov edi, dword [ebp - 4]
sub ebx, eax
push 1
mov ecx, ebx
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [ebp + 0xc]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [0x73ec4c]
mov ecx, dword [0x73ec34]
mov dword [ebp + 8], eax
mov eax, dword [0x73ec44]
push ecx
push edx
mov edx, dword [0x73ec30]
push 0
lea ecx, [ebp + 8]
push eax
mov eax, dword [0x73ec48]
push ecx
push edx
push eax
mov dword [ebp + 0xc], 0x10000
call fcn.005ef04b
mov ecx, dword [ebp + 8]
mov eax, dword [0x73ec30]
mov esi, dword [ebp - 4]
add eax, ecx
mov ecx, dword [ebp + 0x10]
add esi, ebx
mov dword [0x73ec30], eax
sub ecx, ebx
mov dword [ebp - 4], esi
mov esi, dword [0x73ec44]
add esp, 0x20
xor eax, eax
cmp ecx, 0x10000
mov dword [0x73ec38], eax
mov dword [ebp + 0x10], ecx
mov dword [0x73ec3c], esi
jge 0x4bef92
mov edx, ecx
test edx, edx
jle 0x4bf05a
mov edi, dword [ebp - 4]
mov ecx, edx
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [0x73ec38]
mov eax, dword [0x73ec3c]
add ecx, edx
add eax, edx
mov dword [0x73ec38], ecx
mov dword [0x73ec3c], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4bf380
Capabilities:
Read file on windows

Disassembly:
mov al, byte [ecx + 0x105]
push esi
test al, al
je 0x4bf3bf
mov ecx, dword [ecx + 0x108]
cmp ecx, 0xffffffff
je 0x4bf3bf
mov esi, dword [esp + 0xc]
test esi, esi
jle 0x4bf3bf
mov eax, dword [esp + 8]
test eax, eax
je 0x4bf3bf
push esi
push eax
push ecx
call fcn.005fbc1c
add esp, 0xc
test eax, eax
jle 0x4bf3bf
cmp eax, esi
jne 0x4bf3bf
mov al, 1
pop esi
ret 8
xor al, al
pop esi
ret 8
Function at 0x4cf000
Capabilities:
Get common file path

Disassembly:
sub esp, 0x16c
push ebp
mov ebp, ecx
mov ecx, dword [0x6633d4]
cmp dword [ecx + 0x1dc], 7
jne 0x4cf030
mov eax, dword [esp + 0x174]
mov eax, dword [ebp + eax*4 + 0x139c]
pop ebp
add esp, 0x16c
ret 8
mov edx, dword [ecx]
push ebx
push esi
push edi
lea eax, [esp + 0x10]
push 0x32
push eax
push 0xfaf
call dword [edx + 0x28]
mov ecx, dword [0x6633d4]
lea eax, [esp + 0x44]
push 0x32
push eax
mov edx, dword [ecx]
push 0xfae
call dword [edx + 0x28]
lea ecx, [esp + 0x78]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
jne 0x4cf093
mov edi, 0x6529a0
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x78]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x184]
mov ebx, dword [esp + 0x180]
cmp eax, 1
jne 0x4cf1c7
mov eax, dword [ebp + ebx*4 + 0x152c]
test eax, eax
jle 0x4cf11f
mov eax, dword [ebp + ebx*4 + 0x146c]
test eax, eax
je 0x4cf11f
lea ecx, [esp + 0x78]
push ebx
lea esi, [ebp + 0x123c]
push ecx
push str._stemp_AiRules_d.tmp
push esi
call fcn.005faef4
push 0x180
push 0x8301
push esi
call fcn.005fbe12
mov edi, eax
add esp, 0x1c
cmp edi, 0xffffffff
je 0x4cf11f
mov edx, dword [ebp + ebx*4 + 0x152c]
mov eax, dword [ebp + ebx*4 + 0x146c]
push edx
push eax
push edi
call fcn.005fc18d
push edi
call fcn.005fbb69
add esp, 0x10
mov eax, esi
pop edi
pop esi
pop ebx
pop ebp
add esp, 0x16c
ret 8
mov edi, dword [ebp + ebx*4 + 0x131c]
lea esi, [esp + 0x44]
mov eax, edi
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x4cf150
test cl, cl
je 0x4cf14c
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x4cf150
add eax, 2
add esi, 2
test cl, cl
jne 0x4cf12c
xor eax, eax
jmp 0x4cf155
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4cf1c7
lea esi, [esp + 0x10]
mov eax, edi
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x4cf183
test cl, cl
je 0x4cf17f
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x4cf183
add eax, 2
add esi, 2
test cl, cl
jne 0x4cf15f
xor eax, eax
jmp 0x4cf188
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4cf1c7
mov ecx, dword [0x6633d4]
mov eax, dword [ebp + ebx*4 + 0x139c]
push eax
lea esi, [ebp + 0x123c]
mov edx, dword [ecx + 0x28]
add edx, 0x156c
push edx
push str._s_s.per
push esi
call fcn.005faef4
add esp, 0x10
mov eax, esi
pop edi
pop esi
pop ebx
pop ebp
add esp, 0x16c
ret 8
mov eax, dword [ebp + ebx*4 + 0x139c]
lea esi, [ebp + 0x123c]
push eax
push 0x64c2b4
push esi
call fcn.005faef4
add esp, 0xc
mov eax, esi
pop edi
pop esi
pop ebx
pop ebp
add esp, 0x16c
ret 8
Function at 0x4e3c50
Capabilities:
Enumerate pe sections

Disassembly:
mov eax, dword [ecx + 0x17c4]
cmp eax, 3
jne 0x4e3c60
jmp fcn.004e6e30
cmp eax, 4
jne 0x4e3c6a
jmp fcn.004e6c10
ret

Function at 0x4e6c10
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x410
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov dword [edi + 0x17c4], 3
mov ecx, dword [0x6633d4]
call fcn.0041f8a0
lea ebp, [edi + 0x122c]
mov esi, eax
lea ebx, [edi + 0x1224]
push 0x76
push ebp
push ebx
mov ecx, esi
mov dword [esp + 0x20], esi
call fcn.0059f950
xor eax, eax
mov al, byte [esi + 0xa1]
cmp eax, 4
mov dword [esp + 0x1c], eax
jle 0x4e6c67
mov dword [esp + 0x1c], 2
mov ecx, edi
call fcn.004dfeb0
cmp word [ebp], 0
mov dword [esp + 0x18], 0
jle 0x4e6db2
xor ebp, ebp
mov eax, dword [ebx]
mov edx, dword [esi + 0x74]
movsx ecx, word [eax + ebp + 4]
xor eax, eax
mov esi, dword [edx + ecx*4]
mov al, byte [esi + 0x182]
cmp eax, 0xffffffff
mov dword [esp + 0x10], eax
jle 0x4e6d93
cmp eax, 0xe6
jge 0x4e6d93
cmp byte [esi + 0x97], 2
je 0x4e6cda
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 0xa8]
fld dword [ecx + 0x148]
fcomp dword [0x61b584]
fnstsw ax
test ah, 0x41
jne 0x4e6d93
mov ecx, dword [0x6633d4]
lea eax, [esp + 0x220]
push 0x200
push eax
movsx eax, word [esi + 0xc]
mov edx, dword [ecx]
push eax
call dword [edx + 0x28]
movsx ecx, word [esi + 0xe]
mov edx, dword [ebx]
push ecx
add edx, ebp
push 0x13
lea eax, [esp + 0x28]
push edx
push eax
mov ecx, edi
call fcn.004dff80
mov ecx, dword [esp + 0x10]
push ecx
mov ecx, edi
call fcn.004e01a0
mov edx, dword [ebx]
push 0
mov dword [esp + 0x14], eax
lea ecx, [edx + ebp]
lea edx, [esp + 0x24]
push edx
lea edx, [esp + 0x228]
push edx
mov edx, dword [esi + 0xac]
push 0
push edx
movsx edx, word [esi + 0xe]
add edx, 0x4e20
push 0
push edx
movsx edx, word [ecx + 4]
mov cx, word [ecx + 6]
push edx
add cx, word [esi + 0x1c2]
mov edx, dword [esp + 0x3c]
push 0x13
push ecx
push eax
mov eax, dword [edi + edx*4 + 0x1028]
mov ecx, edi
push eax
call fcn.004e0460
movsx edx, word [esp + 0x10]
mov ecx, dword [ebx]
mov eax, dword [edi + edx*4 + 0x1074]
movsx ecx, word [ecx + ebp + 4]
mov dword [eax + 0x140], 0x13
mov dword [eax + 0x144], ecx
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
movsx ecx, word [edi + 0x122c]
inc eax
add ebp, 0x28
cmp eax, ecx
mov dword [esp + 0x18], eax
jl 0x4e6c83
mov edx, dword [esi + 0xa8]
fld dword [edx + 0x148]
fcomp dword [0x61b584]
fnstsw ax
test ah, 0x41
je 0x4e6df2
push 0
push 0
mov eax, dword [edi + 0x101c]
push 0
push 0
push 0
push 0xffffffffffffffff
push 0x1330
push 0
push 0xc
push 0x20
push 0xd
push eax
mov ecx, edi
call fcn.004e0460
push 0
push 0
mov ecx, dword [edi + 0x101c]
push 0
push 0
push 0
push 0xffffffffffffffff
push 0x132f
push 0
push 0x89
push 0
push 0xe
push ecx
mov ecx, edi
call fcn.004e0460
mov ecx, edi
call fcn.004dff30
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x410
ret
Function at 0x51ef10
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x104
xor eax, eax
push ebp
mov ebp, ecx
mov ecx, dword [esp + 0x110]
push esi
cmp ecx, eax
push edi
mov dword [ebp + 0xc], eax
mov dword [ebp + 0x10], eax
mov byte [ebp + 0x14], al
mov dword [ebp + 0x18], eax
mov dword [ebp + 8], eax
jge 0x51f0b1
mov eax, dword [0x6633d4]
push ebx
mov ebx, dword [esp + 0x118]
mov ecx, dword [eax + 0x6c]
cmp byte [ecx + 0x3d], 1
jne 0x51eff6
or ecx, 0xffffffff
mov edi, str.WINDOW_
xor eax, eax
lea edx, [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
shr ecx, 2
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x10]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, ebx
lea edx, [esp + ecx + 0x10]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x10]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0x10]
mov edx, ecx
sub eax, 3
add edx, eax
mov edi, 0x654af0
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x10]
push ecx
call fcn.004bf3d0
add esp, 4
test al, al
jne 0x51f054
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x10]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0x10]
mov edx, ecx
sub eax, 3
add edx, eax
mov edi, 0x654af0
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x10]
push 0x8000
push ecx
call fcn.005fbe12
add esp, 8
mov esi, eax
cmp esi, 0xffffffff
pop ebx
je 0x51f0b1
push 2
push 0
push esi
call fcn.005fc0f3
push esi
call fcn.005fc0e2
mov edi, eax
push edi
call fcn.005fb0a6
push 0
push 0
push esi
mov dword [ebp + 0xc], eax
call fcn.005fc0f3
mov edx, dword [ebp + 0xc]
push edi
push edx
push esi
call fcn.005fbc1c
push esi
call fcn.005fbb69
add esp, 0x30
mov dword [ebp], 1
mov dword [ebp + 4], edi
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x51f0d9
mov eax, dword [esp + 0x118]
test eax, eax
jl 0x51f0d9
lea ecx, [ebp + 4]
push ecx
push ebp
push eax
push 0x736c7020
call fcn.004be960
add esp, 0x10
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x51f0f0
lea edx, [eax + 0x20]
mov dword [ebp + 0x10], edx
mov eax, dword [eax + 4]
mov dword [ebp + 0x18], eax
mov byte [ebp + 0x14], 1
pop edi
mov eax, ebp
pop esi
pop ebp
add esp, 0x104
ret 8
Function at 0x5224f0
Capabilities:
Read file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
push edi
push 0
mov eax, dword [esi + 0x258]
push 0
lea edx, [esp + 0x10]
push 0
push edx
lea edx, [esp + 0x20]
push edx
mov edx, dword [esi + 0x288]
push edx
mov edx, dword [esi + 0x280]
mov edi, ecx
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x2c]
test eax, eax
jne 0x522567
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x10]
push eax
push ecx
push esi
mov ecx, edi
call fcn.005228c0
mov eax, dword [esi + 0x288]
mov ecx, dword [esp + 8]
cmp ecx, eax
jb 0x522551
mov edx, dword [esi + 0x22c]
test edx, edx
je 0x52256f
mov esi, dword [esi + 0x258]
mov eax, dword [esp + 0x10]
push 0
push 0
mov edx, dword [esi]
push ecx
push eax
push esi
call dword [edx + 0x4c]
pop edi
xor eax, eax
pop esi
pop ecx
ret 4
mov dl, byte [esi + 0x298]
push ebx
test dl, dl
mov ebx, 1
je 0x522593
push ebx
push ecx
mov ecx, dword [esp + 0x1c]
push ecx
push esi
mov ecx, edi
call fcn.00522900
jmp 0x52263d
mov edx, dword [esi + 0x228]
mov ecx, dword [esi + 0x224]
test edx, edx
jne 0x522607
cmp ecx, eax
jge 0x5225ec
mov edx, dword [esp + 0x14]
mov eax, dword [esi + 0x214]
push ecx
push edx
push eax
call fcn.005fbc1c
add esp, 0xc
test eax, eax
jge 0x5225c2
xor eax, eax
mov edi, dword [esi + 0x228]
mov ecx, dword [esi + 0x280]
add edi, eax
add ecx, eax
mov dword [esi + 0x228], edi
mov dword [esi + 0x22c], ebx
mov dword [esi + 0x230], ebx
mov dword [esi + 0x240], ecx
jmp 0x52263d
mov edx, dword [esp + 0x14]
push eax
mov eax, dword [esi + 0x214]
push edx
push eax
call fcn.005fbc1c
add esp, 0xc
test eax, eax
jge 0x522637
jmp 0x522635
sub ecx, edx
cmp ecx, eax
jge 0x52261c
mov edx, dword [esi + 0x214]
push ecx
mov ecx, dword [esp + 0x18]
push ecx
push edx
jmp 0x5225b4
mov edx, dword [esp + 0x14]
push eax
mov eax, dword [esi + 0x214]
push edx
push eax
call fcn.005fbc1c
add esp, 0xc
test eax, eax
jge 0x522637
xor eax, eax
add dword [esi + 0x228], eax
mov esi, dword [esi + 0x258]
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 0x14]
push 0
mov ecx, dword [esi]
push 0
push edx
push eax
push esi
call dword [ecx + 0x4c]
mov eax, ebx
pop ebx
pop edi
pop esi
pop ecx
ret 4
Function at 0x522660
Capabilities:
Read file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
push edi
push 0
mov eax, dword [esi + 0x258]
push 0
lea edx, [esp + 0x10]
push 0
push edx
lea edx, [esp + 0x20]
push edx
mov edx, dword [esi + 0x294]
push edx
mov edx, dword [esi + 0x28c]
mov edi, ecx
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x2c]
test eax, eax
jne 0x5226d7
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x10]
push eax
push ecx
push esi
mov ecx, edi
call fcn.005228c0
mov eax, dword [esi + 0x294]
mov ecx, dword [esp + 8]
cmp ecx, eax
jb 0x5226c1
mov edx, dword [esi + 0x22c]
test edx, edx
je 0x5226df
mov esi, dword [esi + 0x258]
mov eax, dword [esp + 0x10]
push 0
push 0
mov edx, dword [esi]
push ecx
push eax
push esi
call dword [edx + 0x4c]
pop edi
xor eax, eax
pop esi
pop ecx
ret 4
mov dl, byte [esi + 0x298]
test dl, dl
je 0x5226fe
push 2
push ecx
mov ecx, dword [esp + 0x18]
push ecx
push esi
mov ecx, edi
call fcn.00522900
jmp 0x5227b0
mov edx, dword [esi + 0x228]
mov ecx, dword [esi + 0x224]
test edx, edx
jne 0x52277a
cmp ecx, eax
jge 0x52275f
mov edx, dword [esp + 0x10]
mov eax, dword [esi + 0x214]
push ecx
push edx
push eax
call fcn.005fbc1c
add esp, 0xc
test eax, eax
jge 0x52272d
xor eax, eax
mov edi, dword [esi + 0x228]
mov ecx, dword [esi + 0x28c]
add edi, eax
add ecx, eax
mov dword [esi + 0x228], edi
mov dword [esi + 0x22c], 1
mov dword [esi + 0x230], 2
mov dword [esi + 0x240], ecx
jmp 0x5227b0
mov edx, dword [esp + 0x10]
push eax
mov eax, dword [esi + 0x214]
push edx
push eax
call fcn.005fbc1c
add esp, 0xc
test eax, eax
jge 0x5227aa
jmp 0x5227a8
sub ecx, edx
cmp ecx, eax
jge 0x52278f
mov edx, dword [esi + 0x214]
push ecx
mov ecx, dword [esp + 0x14]
push ecx
push edx
jmp 0x52271f
mov edx, dword [esp + 0x10]
push eax
mov eax, dword [esi + 0x214]
push edx
push eax
call fcn.005fbc1c
add esp, 0xc
test eax, eax
jge 0x5227aa
xor eax, eax
add dword [esi + 0x228], eax
mov esi, dword [esi + 0x258]
mov edx, dword [esp + 8]
mov eax, dword [esp + 0x10]
push 0
mov ecx, dword [esi]
push 0
push edx
push eax
push esi
call dword [ecx + 0x4c]
pop edi
mov eax, 1
pop esi
pop ecx
ret 4

Function at 0x522aa0
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
push 0x1000
mov eax, dword [esi + 0x2cc]
mov ecx, dword [esi + 0x214]
push eax
push ecx
call fcn.005fbc1c
add esp, 0xc
cmp eax, 0xffffffff
je 0x522ae6
mov edx, dword [esi + 0x21c]
add edx, eax
test eax, eax
mov dword [esi + 0x21c], edx
jne 0x522ae8
mov edx, dword [esi + 0x214]
push edx
call fcn.005fe0a3
add esp, 4
xor eax, eax
pop esi
ret 4