joyce8/EMBER2024-capa huggingface dataset:
Function at 0x594720
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x697c01
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x14]
push ebx
push ebp
push esi
mov ebx, ecx
push edi
mov ecx, dword [eax]
mov edi, dword [esp + 0x28]
mov dword [ebx], ecx
lea esi, [ebx + 4]
mov edx, dword [edi]
lea eax, [edi + 4]
mov dword [esi], edx
lea ecx, [esi + 4]
mov dl, byte [eax]
xor ebp, ebp
mov byte [ecx], dl
mov dword [ecx + 4], ebp
mov dword [ecx + 8], ebp
mov dword [ecx + 0xc], ebp
mov edx, dword [0x6a3564]
mov dword [esp + 0x10], ebx
push edx
push ebp
push eax
mov dword [esp + 0x30], esi
call fcn.00402fc0
mov dl, byte [edi + 0x14]
lea eax, [edi + 0x14]
lea ecx, [esi + 0x14]
mov dword [esp + 0x1c], ebp
mov byte [ecx], dl
mov dword [ecx + 4], ebp
mov dword [ecx + 8], ebp
mov dword [ecx + 0xc], ebp
mov edx, dword [0x6a3564]
push edx
push ebp
push eax
call fcn.00402fc0
mov eax, dword [edi + 0x24]
mov byte [esp + 0x1c], 1
mov dword [esi + 0x24], eax
mov ecx, dword [edi + 0x28]
mov dword [esi + 0x28], ecx
mov edx, dword [edi + 0x2c]
mov dword [esi + 0x2c], edx
mov eax, dword [edi + 0x30]
mov dword [esi + 0x30], eax
mov ecx, dword [edi + 0x34]
mov dword [esi + 0x34], ecx
mov edx, dword [edi + 0x38]
mov dword [esi + 0x38], edx
mov eax, dword [edi + 0x3c]
mov dword [esi + 0x3c], eax
mov ecx, dword [edi + 0x40]
mov dword [esi + 0x40], ecx
mov edx, dword [edi + 0x44]
mov dword [esi + 0x44], edx
mov eax, dword [edi + 0x48]
mov dword [esi + 0x48], eax
mov ecx, dword [edi + 0x4c]
mov dword [esi + 0x4c], ecx
mov edx, dword [edi + 0x50]
mov dword [esi + 0x50], edx
mov eax, dword [edi + 0x54]
mov dword [esi + 0x54], eax
mov ecx, dword [edi + 0x58]
mov dword [esi + 0x58], ecx
mov edx, dword [edi + 0x5c]
mov dword [esi + 0x5c], edx
mov eax, dword [edi + 0x60]
mov dword [esi + 0x60], eax
mov ecx, dword [edi + 0x64]
mov dword [esi + 0x64], ecx
mov dl, byte [edi + 0x68]
mov byte [esi + 0x68], dl
mov eax, dword [edi + 0x6c]
mov dword [esi + 0x6c], eax
mov ecx, dword [edi + 0x70]
mov dword [esi + 0x70], ecx
mov edx, dword [edi + 0x74]
mov dword [esi + 0x74], edx
mov eax, dword [edi + 0x78]
mov dword [esi + 0x78], eax
mov cl, byte [edi + 0x7c]
mov byte [esi + 0x7c], cl
mov edx, dword [edi + 0x80]
mov dword [esi + 0x80], edx
mov eax, dword [edi + 0x84]
mov dword [esi + 0x84], eax
mov ecx, dword [esp + 0x14]
pop edi
pop esi
mov dword [esp + 0x14], 0xffffffff
mov eax, ebx
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 8
Function at 0x596a70
Capabilities:
Read file on windows

Disassembly:
push ecx
mov eax, dword [esp + 0xc]
push ebx
dec eax
push esi
cmp eax, 8
push edi
ja case.default.0x596a82
jmp dword [eax*4 + 0x596c78]
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x18]
push 0
push ecx
push 1
push edx
push eax
call dword [sym.imp.kernel32.dll_ReadFile]
pop edi
pop esi
mov eax, 1
pop ebx
pop ecx
ret 0xc
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x18]
push 0
push ecx
push 2
push edx
push eax
call dword [sym.imp.kernel32.dll_ReadFile]
pop edi
pop esi
mov eax, 1
pop ebx
pop ecx
ret 0xc
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x18]
push 0
push ecx
push 4
push edx
push eax
call dword [sym.imp.kernel32.dll_ReadFile]
pop edi
pop esi
mov eax, 1
pop ebx
pop ecx
ret 0xc
mov eax, dword [esp + 0x14]
push ebp
lea ecx, [esp + 0x1c]
push 0
push ecx
lea edx, [esp + 0x18]
push 4
push edx
push eax
mov dword [esp + 0x24], 0
call dword [sym.imp.kernel32.dll_ReadFile]
mov edi, 0x6dfe28
or ecx, 0xffffffff
xor eax, eax
mov ebx, dword [esp + 0x20]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 1
mov ebp, ecx
mov ecx, ebx
push ebp
call fcn.00403350
test al, al
je 0x596b5f
mov edi, dword [ebx + 4]
mov ecx, ebp
mov edx, ecx
mov esi, 0x6dfe28
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebx + 4]
mov dword [ebx + 8], ebp
mov byte [eax + ebp], 0
mov esi, dword [esp + 0x10]
pop ebp
test esi, esi
jle 0x596c60
cmp esi, 0xffffffff
jne 0x596b76
call fcn.006713ab
mov ecx, ebx
call fcn.00403470
cmp eax, esi
jae 0x596b86
call fcn.006713ab
mov ecx, dword [ebx + 4]
test ecx, ecx
je 0x596bab
mov al, byte [ecx - 1]
test al, al
je 0x596bab
cmp al, 0xff
je 0x596bab
test esi, esi
jne 0x596bcf
dec al
push esi
mov byte [ecx - 1], al
mov ecx, ebx
call fcn.004031c0
jmp 0x596bf9
test esi, esi
jne 0x596bba
push 1
mov ecx, ebx
call fcn.004031c0
jmp 0x596bf9
mov eax, dword [ebx + 0xc]
cmp eax, 0x1f
ja 0x596bc6
cmp eax, esi
jae 0x596bd7
push 1
mov ecx, ebx
call fcn.004031c0
push esi
mov ecx, ebx
call fcn.00403480
mov edi, dword [ebx + 4]
mov ecx, esi
mov edx, ecx
mov eax, 0x20202020
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [ebx + 4]
mov dword [ebx + 8], esi
mov byte [eax + esi], 0
mov eax, dword [ebx + 4]
test eax, eax
je 0x596c28
mov al, byte [eax - 1]
test al, al
je 0x596c18
cmp al, 0xff
je 0x596c18
mov ecx, dword [ebx + 8]
push 0
push ecx
mov ecx, ebx
call fcn.00403350
mov eax, dword [ebx + 4]
test eax, eax
je 0x596c23
mov byte [eax - 1], 0xff
mov ebx, dword [ebx + 4]
jmp 0x596c2d
mov ebx, 0x6a3560
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x18]
push 0
push edx
push eax
push ebx
jmp 0x596c55
lea edx, [esp + 0x18]
push 0
push edx
push 4
jmp 0x596c50
lea edx, [esp + 0x18]
push 0
push edx
push 8
mov eax, dword [esp + 0x28]
push eax
mov ecx, dword [esp + 0x24]
push ecx
call dword [sym.imp.kernel32.dll_ReadFile]
pop edi
pop esi
mov eax, 1
pop ebx
pop ecx
ret 0xc
pop edi
pop esi
xor eax, eax
pop ebx
pop ecx
ret 0xc
Function at 0x596ef0
Capabilities:
Read file on windows

Disassembly:
push ecx
mov eax, dword [esp + 0xc]
push ebx
dec eax
push esi
cmp eax, 8
push edi
ja case.default.0x596f02
jmp dword [eax*4 + 0x5970f8]
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x18]
push 0
push ecx
push 1
push edx
push eax
call dword [sym.imp.kernel32.dll_ReadFile]
pop edi
pop esi
mov eax, 1
pop ebx
pop ecx
ret 0xc
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x18]
push 0
push ecx
push 2
push edx
push eax
call dword [sym.imp.kernel32.dll_ReadFile]
pop edi
pop esi
mov eax, 1
pop ebx
pop ecx
ret 0xc
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x18]
push 0
push ecx
push 4
push edx
push eax
call dword [sym.imp.kernel32.dll_ReadFile]
pop edi
pop esi
mov eax, 1
pop ebx
pop ecx
ret 0xc
mov eax, dword [esp + 0x14]
push ebp
lea ecx, [esp + 0x1c]
push 0
push ecx
lea edx, [esp + 0x18]
push 4
push edx
push eax
mov dword [esp + 0x24], 0
call dword [sym.imp.kernel32.dll_ReadFile]
mov edi, 0x6dfe28
or ecx, 0xffffffff
xor eax, eax
mov ebx, dword [esp + 0x20]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 1
mov ebp, ecx
mov ecx, ebx
push ebp
call fcn.00403350
test al, al
je 0x596fdf
mov edi, dword [ebx + 4]
mov ecx, ebp
mov edx, ecx
mov esi, 0x6dfe28
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebx + 4]
mov dword [ebx + 8], ebp
mov byte [eax + ebp], 0
mov esi, dword [esp + 0x10]
pop ebp
test esi, esi
jle 0x5970e0
cmp esi, 0xffffffff
jne 0x596ff6
call fcn.006713ab
mov ecx, ebx
call fcn.00403470
cmp eax, esi
jae 0x597006
call fcn.006713ab
mov ecx, dword [ebx + 4]
test ecx, ecx
je 0x59702b
mov al, byte [ecx - 1]
test al, al
je 0x59702b
cmp al, 0xff
je 0x59702b
test esi, esi
jne 0x59704f
dec al
push esi
mov byte [ecx - 1], al
mov ecx, ebx
call fcn.004031c0
jmp 0x597079
test esi, esi
jne 0x59703a
push 1
mov ecx, ebx
call fcn.004031c0
jmp 0x597079
mov eax, dword [ebx + 0xc]
cmp eax, 0x1f
ja 0x597046
cmp eax, esi
jae 0x597057
push 1
mov ecx, ebx
call fcn.004031c0
push esi
mov ecx, ebx
call fcn.00403480
mov edi, dword [ebx + 4]
mov ecx, esi
mov edx, ecx
mov eax, 0x20202020
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [ebx + 4]
mov dword [ebx + 8], esi
mov byte [eax + esi], 0
mov eax, dword [ebx + 4]
test eax, eax
je 0x5970a8
mov al, byte [eax - 1]
test al, al
je 0x597098
cmp al, 0xff
je 0x597098
mov ecx, dword [ebx + 8]
push 0
push ecx
mov ecx, ebx
call fcn.00403350
mov eax, dword [ebx + 4]
test eax, eax
je 0x5970a3
mov byte [eax - 1], 0xff
mov ebx, dword [ebx + 4]
jmp 0x5970ad
mov ebx, 0x6a3560
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x18]
push 0
push edx
push eax
push ebx
jmp 0x5970d5
lea edx, [esp + 0x18]
push 0
push edx
push 4
jmp 0x5970d0
lea edx, [esp + 0x18]
push 0
push edx
push 8
mov eax, dword [esp + 0x28]
push eax
mov ecx, dword [esp + 0x24]
push ecx
call dword [sym.imp.kernel32.dll_ReadFile]
pop edi
pop esi
mov eax, 1
pop ebx
pop ecx
ret 0xc
pop edi
pop esi
xor eax, eax
pop ebx
pop ecx
ret 0xc
Function at 0x597370
Capabilities:
Read file on windows

Disassembly:
push ecx
mov eax, dword [esp + 0xc]
push ebx
dec eax
push esi
cmp eax, 8
push edi
ja case.default.0x597382
jmp dword [eax*4 + 0x597578]
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x18]
push 0
push ecx
push 1
push edx
push eax
call dword [sym.imp.kernel32.dll_ReadFile]
pop edi
pop esi
mov eax, 1
pop ebx
pop ecx
ret 0xc
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x18]
push 0
push ecx
push 2
push edx
push eax
call dword [sym.imp.kernel32.dll_ReadFile]
pop edi
pop esi
mov eax, 1
pop ebx
pop ecx
ret 0xc
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x18]
push 0
push ecx
push 4
push edx
push eax
call dword [sym.imp.kernel32.dll_ReadFile]
pop edi
pop esi
mov eax, 1
pop ebx
pop ecx
ret 0xc
mov eax, dword [esp + 0x14]
push ebp
lea ecx, [esp + 0x1c]
push 0
push ecx
lea edx, [esp + 0x18]
push 4
push edx
push eax
mov dword [esp + 0x24], 0
call dword [sym.imp.kernel32.dll_ReadFile]
mov edi, 0x6dfe28
or ecx, 0xffffffff
xor eax, eax
mov ebx, dword [esp + 0x20]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 1
mov ebp, ecx
mov ecx, ebx
push ebp
call fcn.00403350
test al, al
je 0x59745f
mov edi, dword [ebx + 4]
mov ecx, ebp
mov edx, ecx
mov esi, 0x6dfe28
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebx + 4]
mov dword [ebx + 8], ebp
mov byte [eax + ebp], 0
mov esi, dword [esp + 0x10]
pop ebp
test esi, esi
jle 0x597560
cmp esi, 0xffffffff
jne 0x597476
call fcn.006713ab
mov ecx, ebx
call fcn.00403470
cmp eax, esi
jae 0x597486
call fcn.006713ab
mov ecx, dword [ebx + 4]
test ecx, ecx
je 0x5974ab
mov al, byte [ecx - 1]
test al, al
je 0x5974ab
cmp al, 0xff
je 0x5974ab
test esi, esi
jne 0x5974cf
dec al
push esi
mov byte [ecx - 1], al
mov ecx, ebx
call fcn.004031c0
jmp 0x5974f9
test esi, esi
jne 0x5974ba
push 1
mov ecx, ebx
call fcn.004031c0
jmp 0x5974f9
mov eax, dword [ebx + 0xc]
cmp eax, 0x1f
ja 0x5974c6
cmp eax, esi
jae 0x5974d7
push 1
mov ecx, ebx
call fcn.004031c0
push esi
mov ecx, ebx
call fcn.00403480
mov edi, dword [ebx + 4]
mov ecx, esi
mov edx, ecx
mov eax, 0x20202020
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [ebx + 4]
mov dword [ebx + 8], esi
mov byte [eax + esi], 0
mov eax, dword [ebx + 4]
test eax, eax
je 0x597528
mov al, byte [eax - 1]
test al, al
je 0x597518
cmp al, 0xff
je 0x597518
mov ecx, dword [ebx + 8]
push 0
push ecx
mov ecx, ebx
call fcn.00403350
mov eax, dword [ebx + 4]
test eax, eax
je 0x597523
mov byte [eax - 1], 0xff
mov ebx, dword [ebx + 4]
jmp 0x59752d
mov ebx, 0x6a3560
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x18]
push 0
push edx
push eax
push ebx
jmp 0x597555
lea edx, [esp + 0x18]
push 0
push edx
push 4
jmp 0x597550
lea edx, [esp + 0x18]
push 0
push edx
push 8
mov eax, dword [esp + 0x28]
push eax
mov ecx, dword [esp + 0x24]
push ecx
call dword [sym.imp.kernel32.dll_ReadFile]
pop edi
pop esi
mov eax, 1
pop ebx
pop ecx
ret 0xc
pop edi
pop esi
xor eax, eax
pop ebx
pop ecx
ret 0xc
Function at 0x5977f0
Capabilities:
Read file on windows

Disassembly:
push ecx
mov eax, dword [esp + 0xc]
push ebx
dec eax
push esi
cmp eax, 8
push edi
ja case.default.0x597802
jmp dword [eax*4 + 0x5979f8]
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x18]
push 0
push ecx
push 1
push edx
push eax
call dword [sym.imp.kernel32.dll_ReadFile]
pop edi
pop esi
mov eax, 1
pop ebx
pop ecx
ret 0xc
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x18]
push 0
push ecx
push 2
push edx
push eax
call dword [sym.imp.kernel32.dll_ReadFile]
pop edi
pop esi
mov eax, 1
pop ebx
pop ecx
ret 0xc
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x18]
push 0
push ecx
push 4
push edx
push eax
call dword [sym.imp.kernel32.dll_ReadFile]
pop edi
pop esi
mov eax, 1
pop ebx
pop ecx
ret 0xc
mov eax, dword [esp + 0x14]
push ebp
lea ecx, [esp + 0x1c]
push 0
push ecx
lea edx, [esp + 0x18]
push 4
push edx
push eax
mov dword [esp + 0x24], 0
call dword [sym.imp.kernel32.dll_ReadFile]
mov edi, 0x6dfe28
or ecx, 0xffffffff
xor eax, eax
mov ebx, dword [esp + 0x20]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 1
mov ebp, ecx
mov ecx, ebx
push ebp
call fcn.00403350
test al, al
je 0x5978df
mov edi, dword [ebx + 4]
mov ecx, ebp
mov edx, ecx
mov esi, 0x6dfe28
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebx + 4]
mov dword [ebx + 8], ebp
mov byte [eax + ebp], 0
mov esi, dword [esp + 0x10]
pop ebp
test esi, esi
jle 0x5979e0
cmp esi, 0xffffffff
jne 0x5978f6
call fcn.006713ab
mov ecx, ebx
call fcn.00403470
cmp eax, esi
jae 0x597906
call fcn.006713ab
mov ecx, dword [ebx + 4]
test ecx, ecx
je 0x59792b
mov al, byte [ecx - 1]
test al, al
je 0x59792b
cmp al, 0xff
je 0x59792b
test esi, esi
jne 0x59794f
dec al
push esi
mov byte [ecx - 1], al
mov ecx, ebx
call fcn.004031c0
jmp 0x597979
test esi, esi
jne 0x59793a
push 1
mov ecx, ebx
call fcn.004031c0
jmp 0x597979
mov eax, dword [ebx + 0xc]
cmp eax, 0x1f
ja 0x597946
cmp eax, esi
jae 0x597957
push 1
mov ecx, ebx
call fcn.004031c0
push esi
mov ecx, ebx
call fcn.00403480
mov edi, dword [ebx + 4]
mov ecx, esi
mov edx, ecx
mov eax, 0x20202020
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [ebx + 4]
mov dword [ebx + 8], esi
mov byte [eax + esi], 0
mov eax, dword [ebx + 4]
test eax, eax
je 0x5979a8
mov al, byte [eax - 1]
test al, al
je 0x597998
cmp al, 0xff
je 0x597998
mov ecx, dword [ebx + 8]
push 0
push ecx
mov ecx, ebx
call fcn.00403350
mov eax, dword [ebx + 4]
test eax, eax
je 0x5979a3
mov byte [eax - 1], 0xff
mov ebx, dword [ebx + 4]
jmp 0x5979ad
mov ebx, 0x6a3560
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x18]
push 0
push edx
push eax
push ebx
jmp 0x5979d5
lea edx, [esp + 0x18]
push 0
push edx
push 4
jmp 0x5979d0
lea edx, [esp + 0x18]
push 0
push edx
push 8
mov eax, dword [esp + 0x28]
push eax
mov ecx, dword [esp + 0x24]
push ecx
call dword [sym.imp.kernel32.dll_ReadFile]
pop edi
pop esi
mov eax, 1
pop ebx
pop ecx
ret 0xc
pop edi
pop esi
xor eax, eax
pop ebx
pop ecx
ret 0xc
Function at 0x597c70
Capabilities:
Read file on windows

Disassembly:
push ecx
mov eax, dword [esp + 0xc]
push ebx
dec eax
push esi
cmp eax, 8
push edi
ja case.default.0x597c82
jmp dword [eax*4 + 0x597e78]
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x18]
push 0
push ecx
push 1
push edx
push eax
call dword [sym.imp.kernel32.dll_ReadFile]
pop edi
pop esi
mov eax, 1
pop ebx
pop ecx
ret 0xc
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x18]
push 0
push ecx
push 2
push edx
push eax
call dword [sym.imp.kernel32.dll_ReadFile]
pop edi
pop esi
mov eax, 1
pop ebx
pop ecx
ret 0xc
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x18]
push 0
push ecx
push 4
push edx
push eax
call dword [sym.imp.kernel32.dll_ReadFile]
pop edi
pop esi
mov eax, 1
pop ebx
pop ecx
ret 0xc
mov eax, dword [esp + 0x14]
push ebp
lea ecx, [esp + 0x1c]
push 0
push ecx
lea edx, [esp + 0x18]
push 4
push edx
push eax
mov dword [esp + 0x24], 0
call dword [sym.imp.kernel32.dll_ReadFile]
mov edi, 0x6dfe28
or ecx, 0xffffffff
xor eax, eax
mov ebx, dword [esp + 0x20]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 1
mov ebp, ecx
mov ecx, ebx
push ebp
call fcn.00403350
test al, al
je 0x597d5f
mov edi, dword [ebx + 4]
mov ecx, ebp
mov edx, ecx
mov esi, 0x6dfe28
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebx + 4]
mov dword [ebx + 8], ebp
mov byte [eax + ebp], 0
mov esi, dword [esp + 0x10]
pop ebp
test esi, esi
jle 0x597e60
cmp esi, 0xffffffff
jne 0x597d76
call fcn.006713ab
mov ecx, ebx
call fcn.00403470
cmp eax, esi
jae 0x597d86
call fcn.006713ab
mov ecx, dword [ebx + 4]
test ecx, ecx
je 0x597dab
mov al, byte [ecx - 1]
test al, al
je 0x597dab
cmp al, 0xff
je 0x597dab
test esi, esi
jne 0x597dcf
dec al
push esi
mov byte [ecx - 1], al
mov ecx, ebx
call fcn.004031c0
jmp 0x597df9
test esi, esi
jne 0x597dba
push 1
mov ecx, ebx
call fcn.004031c0
jmp 0x597df9
mov eax, dword [ebx + 0xc]
cmp eax, 0x1f
ja 0x597dc6
cmp eax, esi
jae 0x597dd7
push 1
mov ecx, ebx
call fcn.004031c0
push esi
mov ecx, ebx
call fcn.00403480
mov edi, dword [ebx + 4]
mov ecx, esi
mov edx, ecx
mov eax, 0x20202020
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [ebx + 4]
mov dword [ebx + 8], esi
mov byte [eax + esi], 0
mov eax, dword [ebx + 4]
test eax, eax
je 0x597e28
mov al, byte [eax - 1]
test al, al
je 0x597e18
cmp al, 0xff
je 0x597e18
mov ecx, dword [ebx + 8]
push 0
push ecx
mov ecx, ebx
call fcn.00403350
mov eax, dword [ebx + 4]
test eax, eax
je 0x597e23
mov byte [eax - 1], 0xff
mov ebx, dword [ebx + 4]
jmp 0x597e2d
mov ebx, 0x6a3560
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x18]
push 0
push edx
push eax
push ebx
jmp 0x597e55
lea edx, [esp + 0x18]
push 0
push edx
push 4
jmp 0x597e50
lea edx, [esp + 0x18]
push 0
push edx
push 8
mov eax, dword [esp + 0x28]
push eax
mov ecx, dword [esp + 0x24]
push ecx
call dword [sym.imp.kernel32.dll_ReadFile]
pop edi
pop esi
mov eax, 1
pop ebx
pop ecx
ret 0xc
pop edi
pop esi
xor eax, eax
pop ebx
pop ecx
ret 0xc
Function at 0x5980f0
Capabilities:
Read file on windows

Disassembly:
push ecx
mov eax, dword [esp + 0xc]
push ebx
dec eax
push esi
cmp eax, 8
push edi
ja case.default.0x598102
jmp dword [eax*4 + 0x5982f8]
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x18]
push 0
push ecx
push 1
push edx
push eax
call dword [sym.imp.kernel32.dll_ReadFile]
pop edi
pop esi
mov eax, 1
pop ebx
pop ecx
ret 0xc
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x18]
push 0
push ecx
push 2
push edx
push eax
call dword [sym.imp.kernel32.dll_ReadFile]
pop edi
pop esi
mov eax, 1
pop ebx
pop ecx
ret 0xc
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x18]
push 0
push ecx
push 4
push edx
push eax
call dword [sym.imp.kernel32.dll_ReadFile]
pop edi
pop esi
mov eax, 1
pop ebx
pop ecx
ret 0xc
mov eax, dword [esp + 0x14]
push ebp
lea ecx, [esp + 0x1c]
push 0
push ecx
lea edx, [esp + 0x18]
push 4
push edx
push eax
mov dword [esp + 0x24], 0
call dword [sym.imp.kernel32.dll_ReadFile]
mov edi, 0x6dfe28
or ecx, 0xffffffff
xor eax, eax
mov ebx, dword [esp + 0x20]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 1
mov ebp, ecx
mov ecx, ebx
push ebp
call fcn.00403350
test al, al
je 0x5981df
mov edi, dword [ebx + 4]
mov ecx, ebp
mov edx, ecx
mov esi, 0x6dfe28
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebx + 4]
mov dword [ebx + 8], ebp
mov byte [eax + ebp], 0
mov esi, dword [esp + 0x10]
pop ebp
test esi, esi
jle 0x5982e0
cmp esi, 0xffffffff
jne 0x5981f6
call fcn.006713ab
mov ecx, ebx
call fcn.00403470
cmp eax, esi
jae 0x598206
call fcn.006713ab
mov ecx, dword [ebx + 4]
test ecx, ecx
je 0x59822b
mov al, byte [ecx - 1]
test al, al
je 0x59822b
cmp al, 0xff
je 0x59822b
test esi, esi
jne 0x59824f
dec al
push esi
mov byte [ecx - 1], al
mov ecx, ebx
call fcn.004031c0
jmp 0x598279
test esi, esi
jne 0x59823a
push 1
mov ecx, ebx
call fcn.004031c0
jmp 0x598279
mov eax, dword [ebx + 0xc]
cmp eax, 0x1f
ja 0x598246
cmp eax, esi
jae 0x598257
push 1
mov ecx, ebx
call fcn.004031c0
push esi
mov ecx, ebx
call fcn.00403480
mov edi, dword [ebx + 4]
mov ecx, esi
mov edx, ecx
mov eax, 0x20202020
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [ebx + 4]
mov dword [ebx + 8], esi
mov byte [eax + esi], 0
mov eax, dword [ebx + 4]
test eax, eax
je 0x5982a8
mov al, byte [eax - 1]
test al, al
je 0x598298
cmp al, 0xff
je 0x598298
mov ecx, dword [ebx + 8]
push 0
push ecx
mov ecx, ebx
call fcn.00403350
mov eax, dword [ebx + 4]
test eax, eax
je 0x5982a3
mov byte [eax - 1], 0xff
mov ebx, dword [ebx + 4]
jmp 0x5982ad
mov ebx, 0x6a3560
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x18]
push 0
push edx
push eax
push ebx
jmp 0x5982d5
lea edx, [esp + 0x18]
push 0
push edx
push 4
jmp 0x5982d0
lea edx, [esp + 0x18]
push 0
push edx
push 8
mov eax, dword [esp + 0x28]
push eax
mov ecx, dword [esp + 0x24]
push ecx
call dword [sym.imp.kernel32.dll_ReadFile]
pop edi
pop esi
mov eax, 1
pop ebx
pop ecx
ret 0xc
pop edi
pop esi
xor eax, eax
pop ebx
pop ecx
ret 0xc
Function at 0x598570
Capabilities:
Read file on windows

Disassembly:
push ecx
mov eax, dword [esp + 0xc]
push ebx
dec eax
push esi
cmp eax, 8
push edi
ja case.default.0x598582
jmp dword [eax*4 + 0x598778]
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x18]
push 0
push ecx
push 1
push edx
push eax
call dword [sym.imp.kernel32.dll_ReadFile]
pop edi
pop esi
mov eax, 1
pop ebx
pop ecx
ret 0xc
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x18]
push 0
push ecx
push 2
push edx
push eax
call dword [sym.imp.kernel32.dll_ReadFile]
pop edi
pop esi
mov eax, 1
pop ebx
pop ecx
ret 0xc
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x18]
push 0
push ecx
push 4
push edx
push eax
call dword [sym.imp.kernel32.dll_ReadFile]
pop edi
pop esi
mov eax, 1
pop ebx
pop ecx
ret 0xc
mov eax, dword [esp + 0x14]
push ebp
lea ecx, [esp + 0x1c]
push 0
push ecx
lea edx, [esp + 0x18]
push 4
push edx
push eax
mov dword [esp + 0x24], 0
call dword [sym.imp.kernel32.dll_ReadFile]
mov edi, 0x6dfe28
or ecx, 0xffffffff
xor eax, eax
mov ebx, dword [esp + 0x20]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 1
mov ebp, ecx
mov ecx, ebx
push ebp
call fcn.00403350
test al, al
je 0x59865f
mov edi, dword [ebx + 4]
mov ecx, ebp
mov edx, ecx
mov esi, 0x6dfe28
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebx + 4]
mov dword [ebx + 8], ebp
mov byte [eax + ebp], 0
mov esi, dword [esp + 0x10]
pop ebp
test esi, esi
jle 0x598760
cmp esi, 0xffffffff
jne 0x598676
call fcn.006713ab
mov ecx, ebx
call fcn.00403470
cmp eax, esi
jae 0x598686
call fcn.006713ab
mov ecx, dword [ebx + 4]
test ecx, ecx
je 0x5986ab
mov al, byte [ecx - 1]
test al, al
je 0x5986ab
cmp al, 0xff
je 0x5986ab
test esi, esi
jne 0x5986cf
dec al
push esi
mov byte [ecx - 1], al
mov ecx, ebx
call fcn.004031c0
jmp 0x5986f9
test esi, esi
jne 0x5986ba
push 1
mov ecx, ebx
call fcn.004031c0
jmp 0x5986f9
mov eax, dword [ebx + 0xc]
cmp eax, 0x1f
ja 0x5986c6
cmp eax, esi
jae 0x5986d7
push 1
mov ecx, ebx
call fcn.004031c0
push esi
mov ecx, ebx
call fcn.00403480
mov edi, dword [ebx + 4]
mov ecx, esi
mov edx, ecx
mov eax, 0x20202020
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [ebx + 4]
mov dword [ebx + 8], esi
mov byte [eax + esi], 0
mov eax, dword [ebx + 4]
test eax, eax
je 0x598728
mov al, byte [eax - 1]
test al, al
je 0x598718
cmp al, 0xff
je 0x598718
mov ecx, dword [ebx + 8]
push 0
push ecx
mov ecx, ebx
call fcn.00403350
mov eax, dword [ebx + 4]
test eax, eax
je 0x598723
mov byte [eax - 1], 0xff
mov ebx, dword [ebx + 4]
jmp 0x59872d
mov ebx, 0x6a3560
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x18]
push 0
push edx
push eax
push ebx
jmp 0x598755
lea edx, [esp + 0x18]
push 0
push edx
push 4
jmp 0x598750
lea edx, [esp + 0x18]
push 0
push edx
push 8
mov eax, dword [esp + 0x28]
push eax
mov ecx, dword [esp + 0x24]
push ecx
call dword [sym.imp.kernel32.dll_ReadFile]
pop edi
pop esi
mov eax, 1
pop ebx
pop ecx
ret 0xc
pop edi
pop esi
xor eax, eax
pop ebx
pop ecx
ret 0xc