joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6d530f0e
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [eax + 0x124]
push esi
lea esi, [eax + 0x12c]
mov ecx, dword [esi]
cmp ecx, dword [eax + 0x128]
push edi
mov edi, dword [ebp + 0xc]
jae 0x6d5310f1
mov eax, dword [esi]
mov dl, byte [eax + ebx]
mov cl, dl
inc eax
and cl, 0xe0
cmp cl, 0x80
mov byte [ebp + 0xf], dl
mov dword [esi], eax
je case.default.0x6d531099
and dl, 0xf0
cmp dl, 0xa0
mov byte [ebp - 1], dl
jne 0x6d530f63
inc eax
mov dword [esi], eax
jmp case.default.0x6d531099
mov dl, byte [ebp + 0xf]
and dl, 0xf8
cmp dl, 0xb0
je 0x6d530f5b
mov dl, byte [ebp + 0xf]
cmp dl, 0xb8
jne 0x6d530f88
mov ecx, dword [edi + 0x20]
add ecx, 3
shr ecx, 2
add ecx, eax
mov dword [esi], ecx
jmp case.default.0x6d531099
cmp dl, 0xb9
jne 0x6d530f92
add eax, 3
jmp 0x6d530f5c
cmp cl, 0xc0
je case.default.0x6d531099
cmp byte [ebp - 1], 0xe0
jne 0x6d53107c
mov al, dl
and al, 0xf
movzx eax, al
cmp eax, 0xf
mov dword [ebp - 0xc], eax
ja case.default.0x6d531099
movzx eax, byte [eax + 0x6d531112]
jmp dword [eax*4 + 0x6d531102]
push esi
push ebx
call fcn.6d5308a9
push esi
push ebx
mov dword [ebp - 8], eax
call fcn.6d5308a9
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x134]
add edx, dword [ebp - 8]
cmp dword [ecx + 0x130], edx
ja 0x6d530ff5
cmp dword [edi + 0x20], 0
jne case.default.0x6d531099
shl eax, 2
add dword [edi + 0xc], eax
mov eax, dword [ebp - 8]
mov dword [edi + 0x10], eax
jmp case.default.0x6d531099
push esi
push ebx
call fcn.6d5308a9
mov dword [edi + 0x18], eax
mov dword [edi + 0x14], eax
jmp case.default.0x6d531099
push esi
push ebx
call fcn.6d5308a9
cmp byte [edi + 4], 0
mov dword [ebp - 8], eax
je case.default.0x6d531099
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x134]
add ecx, dword [ebp - 8]
cmp dword [eax + 0x130], ecx
jbe case.default.0x6d531099
mov eax, dword [ebp - 0xc]
movzx ecx, byte [eax + 0x6d513934]
movzx edx, word [edi + 6]
xor eax, eax
inc eax
shl eax, cl
test edx, eax
jne case.default.0x6d531099
xor edx, edx
xor eax, eax
mov ax, word [edi + 6]
inc edx
shl edx, cl
or edx, eax
mov eax, dword [ebp + 8]
mov word [edi + 6], dx
mov edx, dword [ebp - 8]
mov dword [eax + ecx*8 + 4], edx
jmp case.default.0x6d531099
cmp dl, 0xf0
jne 0x6d5310a9
mov cl, byte [eax + ebx]
inc eax
mov dword [esi], eax
movzx eax, cl
cmp eax, 0x12
mov dword [ebp - 0xc], eax
ja case.default.0x6d531099
movzx eax, byte [eax + 0x6d53112a]
jmp dword [eax*4 + 0x6d531122]
push esi
push ebx
call fcn.6d5308a9
jmp case.default.0x6d531099
cmp dl, 0xf1
jne 0x6d5310ba
add eax, 2
mov dword [esi], eax
push 0x6d513984
jmp 0x6d5310da
cmp dl, 0xff
jne 0x6d5310f1
mov dl, byte [eax + ebx]
inc eax
mov dword [esi], eax
mov cl, byte [eax + ebx]
inc eax
cmp dl, 2
mov dword [esi], eax
mov eax, dword [ebp + 0x10]
mov byte [eax], cl
je case.default.0x6d531099
push 0x6d513964
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [esi]
mov ecx, dword [ebp + 8]
cmp eax, dword [ecx + 0x128]
jb 0x6d530f37
mov eax, dword [esi]
dec eax
dec eax
mov dword [edi + 0x30], eax
mov al, byte [ebp + 0xf]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x6d53220e
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 0xc]
mov eax, dword [esi + 0x84]
add eax, dword [esi + 0x80]
push edi
mov edi, dword [esi + 0x88]
lea ecx, [edi + ebx]
cmp ecx, eax
ja 0x6d532276
push 0
push 0
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x6d532276
push 0
lea eax, [ebp + 0xc]
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x6d532276
cmp dword [ebp + 0xc], ebx
jne 0x6d532276
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x6d53226b
mov dword [eax], edi
add dword [esi + 0x88], ebx
xor eax, eax
inc eax
jmp 0x6d532278
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 0x14

Function at 0x6d53227f
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ecx, dword [esi + 0x64]
mov edx, dword [esi + 0x60]
add edx, dword [esi + 0x5c]
mov eax, dword [esi + 0x70]
mov dword [ebp - 8], ecx
add ecx, 0x10
cmp ecx, edx
push edi
mov dword [ebp - 4], eax
ja 0x6d53234a
mov ecx, dword [esi + 0x6c]
mov ebx, dword [ebp + 0x1c]
add ecx, dword [esi + 0x68]
lea edx, [eax + ebx]
cmp edx, ecx
ja 0x6d53234a
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
push 0
push eax
push dword [ebp + 8]
call edi
cmp eax, 0xffffffff
je 0x6d53234a
push 0
lea eax, [ebp + 0xc]
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x6d53234a
cmp dword [ebp + 0xc], ebx
jne 0x6d53234a
mov eax, dword [ebp + 0x14]
push 0
push 0
push dword [ebp - 8]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x18]
push dword [ebp + 8]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], eax
call edi
cmp eax, 0xffffffff
je 0x6d53234a
push 0
lea eax, [ebp + 0xc]
push eax
push 0x10
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x6d53234a
cmp dword [ebp + 0xc], 0x10
jne 0x6d53234a
mov eax, dword [ebp + 0x20]
add dword [esi + 0x64], 0x10
add dword [esi + 0x70], ebx
test eax, eax
je 0x6d532345
mov ecx, dword [ebp - 4]
mov dword [eax], ecx
xor eax, eax
inc eax
jmp 0x6d53234c
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0x1c
Function at 0x6d5323d4
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 0xc]
mov eax, dword [esi + 0x30]
add eax, dword [esi + 0x2c]
push edi
mov edi, dword [esi + 0x34]
lea ecx, [edi + ebx]
cmp ecx, eax
ja 0x6d532430
push 0
push 0
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x6d532430
push 0
lea eax, [ebp + 0xc]
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x6d532430
cmp dword [ebp + 0xc], ebx
jne 0x6d532430
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x6d532428
mov dword [eax], edi
add dword [esi + 0x34], ebx
xor eax, eax
inc eax
jmp 0x6d532432
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 0x14

Function at 0x6d532439
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push dword [ebp + 0x10]
call fcn.6d535927
mov esi, dword [ebp + 0xc]
mov ebx, dword [esi + 0x7c]
shl eax, 1
mov dword [ebp - 4], eax
add eax, 6
pop ecx
mov ecx, dword [esi + 0x78]
add ecx, dword [esi + 0x74]
mov dword [ebp - 0xc], eax
add eax, ebx
cmp eax, ecx
jbe 0x6d53246b
xor eax, eax
jmp 0x6d5324d7
push edi
xor edi, edi
push edi
push edi
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x6d5324d4
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
lea eax, [ebp - 8]
push eax
push 4
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
call edi
test eax, eax
je 0x6d5324d4
cmp dword [ebp - 8], 4
jne 0x6d5324d4
add dword [ebp - 4], 2
push 0
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
push dword [ebp + 0x10]
push dword [ebp + 8]
call edi
test eax, eax
je 0x6d5324d4
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 4]
jne 0x6d5324d4
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x6d5324c9
mov dword [eax], ebx
mov eax, dword [ebp - 0xc]
add dword [esi + 0x7c], eax
xor eax, eax
inc eax
jmp 0x6d5324d6
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0x10

Function at 0x6d5324dd
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
mov eax, dword [esi + 0x40]
add eax, dword [esi + 0x3c]
push edi
mov edi, dword [esi + 0x44]
lea ecx, [edi + 0x6c]
cmp ecx, eax
ja 0x6d532538
push 0
push 0
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x6d532538
push 0
lea eax, [ebp + 0xc]
push eax
push 0x6c
push dword [ebp + 0x10]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x6d532538
cmp dword [ebp + 0xc], 0x6c
jne 0x6d532538
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x6d53252f
mov dword [eax], edi
add dword [esi + 0x44], 0x6c
xor eax, eax
inc eax
jmp 0x6d53253a
xor eax, eax
pop edi
pop esi
pop ebp
ret 0x10
Function at 0x6d532540
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
mov eax, dword [esi + 0x4c]
add eax, dword [esi + 0x48]
push edi
mov edi, dword [esi + 0x50]
lea ecx, [edi + 0x18]
cmp ecx, eax
ja 0x6d53259b
push 0
push 0
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x6d53259b
push 0
lea eax, [ebp + 0xc]
push eax
push 0x18
push dword [ebp + 0x10]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x6d53259b
cmp dword [ebp + 0xc], 0x18
jne 0x6d53259b
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x6d532592
mov dword [eax], edi
add dword [esi + 0x50], 0x18
xor eax, eax
inc eax
jmp 0x6d53259d
xor eax, eax
pop edi
pop esi
pop ebp
ret 0x10
Function at 0x6d5325a3
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
push ebx
push esi
mov esi, dword [ebp + 0x10]
mov eax, dword [esi + 0x2c]
push edi
mov edi, dword [ebp + 0xc]
xor ebx, ebx
push ebx
push ebx
push dword [edi + 0x2c]
mov dword [ebp - 0xc], eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x6d53262e
push ebx
lea eax, [ebp - 0x10]
push eax
push 4
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x6d53262e
cmp dword [ebp - 0x10], 4
jne 0x6d53262e
add dword [edi + 0x34], 4
lea eax, [esi + 0x44]
mov ebx, dword [eax]
jmp 0x6d53274b
lea esi, [ebx - 0x318]
mov eax, dword [esi + 0x314]
test al, 1
mov ebx, dword [ebx]
je 0x6d532745
test al, 4
je 0x6d532637
lea eax, [ebp - 8]
push eax
push dword [esi + 0x2f0]
lea eax, [esi + 0x24]
push eax
push edi
push dword [ebp + 8]
call fcn.6d53220e
test eax, eax
jne 0x6d53263b
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0x10
and dword [ebp - 8], 0
test byte [esi + 0x314], 2
je 0x6d532676
mov eax, dword [esi + 0x300]
lea ecx, [ebp + 0xc]
push ecx
mov ecx, dword [ebp + 0x14]
push 2
shr ecx, 3
and ecx, 1
push ecx
mov ecx, dword [esi + 0x2f8]
sub ecx, eax
push ecx
push eax
push dword [ebp + 0x10]
push edi
push dword [ebp + 8]
call fcn.6d532353
test eax, eax
je 0x6d53262e
jmp 0x6d53267a
and dword [ebp + 0xc], 0
test byte [esi + 0x314], 8
je 0x6d5326ba
mov eax, dword [esi + 0x310]
test eax, eax
je 0x6d5326ba
lea ecx, [ebp - 4]
push ecx
mov ecx, dword [ebp + 0x14]
push 3
shr ecx, 3
and ecx, 1
push ecx
push eax
push dword [esi + 0x308]
push dword [ebp + 0x10]
push edi
push dword [ebp + 8]
call fcn.6d532353
test eax, eax
je 0x6d53262e
jmp 0x6d5326be
and dword [ebp - 4], 0
mov eax, dword [esi]
mov dword [ebp - 0x50], eax
mov eax, dword [esi + 8]
mov dword [ebp - 0x4c], eax
mov eax, dword [esi + 0xc]
mov dword [ebp - 0x48], eax
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x44], eax
mov eax, dword [esi + 0x18]
mov dword [ebp - 0x40], eax
mov eax, dword [esi + 0x1c]
mov dword [ebp - 0x3c], eax
lea eax, [esi + 0x300]
mov ecx, dword [eax]
mov dword [ebp - 0x38], ecx
mov ecx, dword [eax + 4]
mov dword [ebp - 0x34], ecx
mov ecx, dword [esi + 0x2f8]
sub ecx, dword [eax]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], ecx
mov eax, dword [esi + 0x308]
mov dword [ebp - 0x20], eax
mov eax, dword [esi + 0x30c]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0x310]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x14], eax
mov eax, dword [esi + 0x2f0]
push 0
push dword [edi + 0x38]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x50]
push eax
push edi
push dword [ebp + 8]
call fcn.6d5323d4
mov eax, dword [ebp + 0x10]
add eax, 0x44
cmp ebx, eax
jne 0x6d5325f9
xor eax, eax
inc eax
jmp 0x6d532630
Function at 0x6d53275b
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x6c]
sub esp, 0x84
push ebx
push esi
mov esi, dword [ebp + 0x7c]
mov eax, dword [esi + 0x38]
push edi
mov edi, dword [ebp + 0x78]
xor ebx, ebx
push ebx
push ebx
push dword [edi + 0x44]
mov dword [ebp + 0x54], eax
push dword [ebp + 0x74]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x6d53281e
push ebx
lea eax, [ebp + 0x60]
push eax
push 4
lea eax, [ebp + 0x54]
push eax
push dword [ebp + 0x74]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x6d53281e
cmp dword [ebp + 0x60], 4
jne 0x6d53281e
add dword [edi + 0x44], 4
lea ecx, [esi + 0x4c]
mov eax, dword [ecx]
cmp eax, ecx
mov dword [ebp + 0x58], ecx
je 0x6d5328da
jmp 0x6d5327c5
mov eax, dword [ebp + 0x64]
lea ebx, [eax - 0x274]
test byte [ebx + 0x270], 1
mov eax, dword [eax]
mov dword [ebp + 0x64], eax
je 0x6d5328d1
lea eax, [ebp + 0x5c]
push eax
push dword [ebx + 0x26c]
push edi
push dword [ebp + 0x74]
call fcn.6d532439
test eax, eax
je 0x6d53281e
test byte [ebx + 0x270], 8
je 0x6d53282a
mov ecx, dword [ebx + 0x50]
test ecx, ecx
je 0x6d53282a
mov eax, dword [ebx + 0x54]
test eax, eax
je 0x6d53282a
lea edx, [ebp + 0x7c]
push edx
push eax
push ecx
push edi
push dword [ebp + 0x74]
call fcn.6d53220e
test eax, eax
jne 0x6d53282e
xor eax, eax
pop edi
pop esi
pop ebx
add ebp, 0x6c
leave
ret 0xc
and dword [ebp + 0x7c], 0
test byte [ebx + 0x270], 4
je 0x6d53285a
mov ecx, dword [ebx + 0x58]
test ecx, ecx
je 0x6d53285a
mov eax, dword [ebx + 0x5c]
test eax, eax
je 0x6d53285a
lea edx, [ebp + 0x68]
push edx
push eax
push ecx
push edi
push dword [ebp + 0x74]
call fcn.6d53220e
test eax, eax
je 0x6d53281e
jmp 0x6d53285e
and dword [ebp + 0x68], 0
mov eax, dword [ebx + 8]
mov dword [ebp - 0x18], eax
mov eax, dword [ebx + 0xc]
mov dword [ebp - 0x14], eax
mov eax, dword [ebx + 0x10]
mov dword [ebp - 0x10], eax
mov eax, dword [ebx + 0x14]
mov dword [ebp - 0xc], eax
mov eax, dword [ebx + 0x18]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x7c]
push 0xd
pop ecx
lea esi, [ebx + 0x1c]
lea edi, [ebp]
rep movsd dword es:[edi], dword [esi]
mov dword [ebp + 0x38], eax
mov eax, dword [ebx + 0x54]
mov dword [ebp + 0x34], eax
mov eax, dword [ebp + 0x68]
mov dword [ebp + 0x40], eax
mov eax, dword [ebx + 0x5c]
mov dword [ebp + 0x3c], eax
mov eax, dword [ebp + 0x5c]
mov dword [ebp - 4], eax
xor eax, eax
push eax
mov dword [ebp + 0x44], eax
mov dword [ebp + 0x48], eax
mov dword [ebp + 0x4c], eax
mov dword [ebp + 0x50], eax
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 0x78]
push dword [ebp + 0x74]
call fcn.6d5324dd
test eax, eax
je 0x6d53281e
mov edi, dword [ebp + 0x78]
mov ecx, dword [ebp + 0x58]
cmp dword [ebp + 0x64], ecx
jne 0x6d5327c2
xor eax, eax
inc eax
jmp 0x6d532820
Function at 0x6d5328e2
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [ebp + 0x10]
push esi
lea esi, [eax + 0x54]
cmp dword [esi], esi
mov dword [ebp - 4], esi
jne 0x6d5328fe
xor eax, eax
inc eax
jmp 0x6d5329b8
push ebx
mov ebx, dword [ebp + 0xc]
push edi
mov edi, dword [eax + 0x3c]
push 0
push 0
push dword [ebx + 0x50]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x6d5329b4
push 0xc
pop eax
push 0
lea ecx, [ebp + 0x10]
push ecx
push eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
mov dword [ebp - 0xc], 0x18
mov dword [ebp - 8], edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x6d5329b4
cmp dword [ebp + 0x10], 0xc
jne 0x6d5329b4
add dword [ebx + 0x50], 0xc
mov edi, dword [esi]
cmp edi, esi
je 0x6d5329af
lea eax, [ebp + 0xc]
push eax
lea esi, [edi - 0x220]
mov edi, dword [edi]
lea eax, [esi + 0x14]
push eax
push ebx
push dword [ebp + 8]
call fcn.6d532439
test eax, eax
je 0x6d5329b4
mov eax, dword [esi]
mov dword [ebp - 0x28], eax
mov eax, dword [esi + 4]
mov dword [ebp - 0x24], eax
mov eax, dword [esi + 8]
mov dword [ebp - 0x20], eax
mov eax, dword [esi + 0xc]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0xc]
push 0
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x28]
push eax
push ebx
push dword [ebp + 8]
call fcn.6d532540
test eax, eax
je 0x6d5329b4
cmp edi, dword [ebp - 4]
jne 0x6d532957
xor eax, eax
inc eax
jmp 0x6d5329b6
xor eax, eax
pop edi
pop ebx
pop esi
leave
ret 0xc
Function at 0x6d5329bd
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push ebx
mov ebx, dword [ebp + 0x10]
lea eax, [ebx + 0x5c]
cmp dword [eax], eax
mov dword [ebp - 4], eax
jne 0x6d5329d9
xor eax, eax
inc eax
jmp 0x6d532b2e
mov eax, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [eax + 0x54]
push 0
push 0
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x6d532b2a
mov eax, dword [ebx + 0x40]
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
push 0x18
pop esi
mov dword [ebp - 0xc], eax
add edi, esi
mov eax, edi
add edi, 7
and edi, 0xfffffff8
push 0
mov ecx, edi
sub ecx, eax
lea eax, [ebp + 0x10]
push eax
push esi
lea eax, [ebp - 0x1c]
push eax
push dword [ebp + 8]
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], 0x20
mov dword [ebp - 0x14], 0x28
mov dword [ebp - 0x10], 8
mov dword [ebp - 8], ecx
call ebx
test eax, eax
je 0x6d532b2a
cmp dword [ebp + 0x10], esi
jne 0x6d532b2a
mov ecx, dword [ebp - 4]
mov eax, dword [ecx]
cmp eax, ecx
je 0x6d532b25
jmp 0x6d532a63
mov eax, dword [ebp + 0xc]
push 0
push 0
push edi
push dword [ebp + 8]
lea esi, [eax - 0x4c]
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x6d532b2a
mov eax, dword [esi]
mov dword [ebp - 0x3c], eax
mov eax, dword [esi + 4]
mov dword [ebp - 0x38], eax
mov eax, dword [esi + 8]
mov dword [ebp - 0x34], eax
mov eax, dword [esi + 0xc]
mov dword [ebp - 0x30], eax
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x2c], eax
mov eax, dword [esi + 0x14]
mov dword [ebp - 0x28], eax
mov eax, dword [esi + 0x18]
mov dword [ebp - 0x24], eax
mov eax, dword [esi + 0x18]
lea eax, [edi + eax*8 + 0x48]
lea edi, [eax + 7]
and edi, 0xfffffff8
push 0
mov ecx, edi
sub ecx, eax
lea eax, [ebp + 0x10]
push eax
push 0x20
lea eax, [ebp - 0x3c]
push eax
push dword [ebp + 8]
mov dword [ebp - 0x20], ecx
call ebx
test eax, eax
je 0x6d532b2a
cmp dword [ebp + 0x10], 0x20
jne 0x6d532b2a
push 0
lea eax, [ebp + 0x10]
push eax
push 0x28
lea eax, [esi + 0x20]
push eax
push dword [ebp + 8]
call ebx
test eax, eax
je 0x6d532b2a
cmp dword [ebp + 0x10], 0x28
jne 0x6d532b2a
push 0
lea eax, [ebp + 0x10]
push eax
mov eax, dword [esi + 0x18]
shl eax, 3
push eax
push dword [esi + 0x48]
push dword [ebp + 8]
call ebx
test eax, eax
je 0x6d532b2a
mov eax, dword [esi + 0x18]
shl eax, 3
cmp dword [ebp + 0x10], eax
jne 0x6d532b2a
mov eax, dword [ebp - 4]
cmp dword [ebp + 0xc], eax
jne 0x6d532a60
xor eax, eax
inc eax
jmp 0x6d532b2c
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x6d534296
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
push ebx
push esi
push edi
xor esi, esi
push esi
push esi
push 3
push esi
push 3
mov ebx, 0x80000000
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, esi
mov dword [ebp - 4], edi
je 0x6d5342f7
cmp edi, 0xffffffff
je 0x6d5342f7
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 8]
call dword [0x6d583fcc]
cmp eax, esi
je 0x6d5342e4
cmp eax, dword [ebp + 0x14]
jb 0x6d534395
push dword [ebp + 0x14]
push dword [ebp + 8]
push dword [ebp + 0x10]
call fcn.6d5358e4
jmp 0x6d534395
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x6d534389
push esi
push esi
mov edi, 0x10e
push edi
lea eax, [ebp - 0x114]
push eax
push 0xffffffffffffffff
push dword [ebp + 8]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jle 0x6d534389
push esi
push esi
push 3
push esi
push 3
push ebx
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x6d534389
push edi
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x114]
push eax
call dword [0x6d583fd0]
cmp eax, esi
je 0x6d53437b
cmp eax, edi
jae 0x6d53437b
push dword [ebp + 0x14]
lea eax, [ebp - 0x114]
push dword [ebp + 0x10]
push 0xffffffffffffffff
push eax
push esi
push esi
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x6d534389
push dword [ebp + 0x14]
push dword [ebp + 8]
push dword [ebp + 0x10]
call fcn.6d5358e4
mov edi, dword [ebp - 4]
cmp edi, esi
je 0x6d5343c6
cmp edi, 0xffffffff
je 0x6d5343c6
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
jne 0x6d5343aa
push edi
jmp 0x6d5343c0
push esi
push esi
push esi
push 2
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov edi, eax
cmp edi, esi
jne 0x6d5343d6
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [0x6d584014], 4
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0x10
push esi
push esi
push esi
push 4
push edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, eax
call edi
push dword [ebp - 4]
call edi
cmp ebx, esi
jne 0x6d5343fd
or dword [0x6d584014], 4
mov eax, ebx
jmp 0x6d5343cf

Function at 0x6d534401
Capabilities:
Resume thread

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 8], 0xffffffff
je 0x6d534423
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [esi], eax
je 0x6d534423
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
or dword [esi + 8], 0xffffffff
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [esi + 4], 0
push esi
call fcn.6d5340e5
pop esi
ret 4