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

Disassembly:
push 0xffffffffffffffff
push 0x75cbdb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
push edi
mov edi, ecx
mov dword [esp + 0x10], edi
call fcn.006a0620
mov eax, dword [esp + 0x30]
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push ebx
push closesocket
push eax
call dword [sym.imp.kernel32.dll_CreateFileA]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x6a075f
pop edi
pop ebp
xor al, al
pop ebx
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
add esp, 0x20
ret 4
push esi
mov esi, dword [sym.imp.kernel32.dll_ReadFile]
lea ecx, [esp + 0x1c]
push ebx
push ecx
lea edx, [esp + 0x1b]
push 1
push edx
push ebp
call esi
lea eax, [esp + 0x1c]
push ebx
push eax
lea ecx, [esp + 0x3c]
push 4
push ecx
push ebp
mov dword [esp + 0x48], ebx
call esi
mov eax, dword [esp + 0x34]
mov dword [esp + 0x18], ebx
cmp eax, ebx
jle 0x6a0841
jmp 0x6a07a2
mov edi, dword [esp + 0x14]
xor ebx, ebx
push 0xa8
call fcn.00726f70
add esp, 4
mov dword [esp + 0x20], eax
cmp eax, ebx
mov dword [esp + 0x2c], ebx
je 0x6a07dd
lea ecx, [eax + 0x98]
xor edx, edx
mov dword [eax], 0x76e4d8
mov word [eax + 0x94], bx
mov dword [ecx], edx
mov ebx, eax
mov dword [ecx + 4], edx
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], edx
push ebp
mov ecx, ebx
mov dword [esp + 0x30], 0xffffffff
call fcn.006a01c0
mov esi, dword [edi + 8]
push 0xc
mov edi, dword [esi + 4]
call fcn.00726f70
add esp, 4
mov ecx, esi
test esi, esi
jne 0x6a0805
mov ecx, eax
test edi, edi
mov dword [eax], ecx
jne 0x6a080d
mov edi, eax
mov dword [eax + 4], edi
mov dword [esi + 4], eax
mov edx, dword [eax + 4]
mov dword [edx], eax
add eax, 8
test eax, eax
je 0x6a0821
mov dword [eax], ebx
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x34]
mov esi, dword [eax + 0xc]
inc esi
mov dword [eax + 0xc], esi
mov eax, dword [esp + 0x18]
inc eax
cmp eax, ecx
mov dword [esp + 0x18], eax
jl 0x6a079c
push ebp
call dword [sym.imp.kernel32.dll_CloseHandle]
mov ecx, dword [esp + 0x24]
pop esi
pop edi
pop ebp
mov al, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 4
Function at 0x6b7820
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x75ec10
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
push ebx
push ebp
push esi
mov esi, ecx
mov cl, byte [eax]
push edi
mov byte [esi], cl
mov al, byte [edx]
xor ebx, ebx
push 0x34
mov dword [esp + 0x14], esi
mov byte [esi + 1], al
mov byte [esi + 8], bl
call fcn.00726f70
mov edi, eax
add esp, 4
lea ecx, [esp + 0x28]
mov ebp, edi
mov dword [edi + 4], ebx
mov dword [edi + 0x30], 1
call fcn.007376fa
mov eax, dword [0x9367b4]
mov dword [esp + 0x1c], ebx
cmp eax, ebx
jne 0x6b7897
mov dword [0x9367b4], edi
mov dword [edi], ebx
mov ecx, dword [0x9367b4]
xor ebp, ebp
mov dword [ecx + 8], ebx
mov ecx, dword [0x93c9d4]
inc ecx
mov dword [0x93c9d4], ecx
lea ecx, [esp + 0x28]
mov dword [esp + 0x1c], 0xffffffff
call fcn.00737796
cmp ebp, ebx
je 0x6b78c2
push ebp
call fcn.00726ea6
add esp, 4
mov edi, dword [0x9367b4]
push 0x34
call fcn.00726f70
mov dword [eax + 4], edi
mov dword [eax + 0x30], ebx
mov dword [esi + 4], eax
mov dword [esi + 0xc], ebx
mov dword [eax], eax
mov eax, dword [esi + 4]
add esp, 4
mov dword [eax + 8], eax
mov ecx, dword [esp + 0x14]
mov eax, esi
pop edi
pop esi
mov dword [esp + 0x14], 0xffffffff
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 8
Function at 0x6cf850
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x7619c7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov eax, ecx
mov cl, byte [esp + 3]
mov dword [esp + 4], eax
mov byte [eax + 4], cl
xor ecx, ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov dl, byte [esp + 3]
mov dword [esp + 0x10], ecx
mov byte [eax + 0x14], dl
mov dword [eax + 0x18], ecx
mov dword [eax + 0x1c], ecx
mov dword [eax + 0x20], ecx
mov dl, byte [esp + 3]
mov byte [esp + 0x10], 1
mov byte [eax + 0x28], dl
mov dword [eax + 0x2c], ecx
mov dword [eax + 0x30], ecx
mov dword [eax + 0x34], ecx
mov dl, byte [esp + 3]
mov byte [esp + 0x10], 2
mov byte [eax + 0x3c], dl
mov dword [eax + 0x40], ecx
mov dword [eax + 0x44], ecx
mov dword [eax + 0x48], ecx
mov dl, byte [esp + 3]
mov byte [esp + 0x10], 3
mov byte [eax + 0x50], dl
mov dword [eax + 0x54], ecx
mov dword [eax + 0x58], ecx
mov dword [eax + 0x5c], ecx
mov ecx, dword [esp + 8]
mov dword [esp + 0x10], 0xffffffff
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x6d2880
Capabilities:
Enumerate pe sections

Disassembly:
push 0xffffffffffffffff
push 0x762116
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov eax, dword [esp + 0x18]
push ebx
push ebp
push esi
mov edx, dword [eax]
push edi
mov edi, dword [esp + 0x2c]
mov dword [ecx], edx
lea esi, [ecx + 4]
mov dword [esp + 0x10], ecx
mov eax, dword [edi]
xor ebx, ebx
mov dword [esi], eax
mov cl, byte [edi + 4]
mov byte [esi + 4], cl
mov dl, byte [edi + 5]
mov byte [esi + 5], dl
mov al, byte [edi + 6]
mov byte [esi + 6], al
mov cl, byte [edi + 7]
mov byte [esi + 7], cl
mov edx, dword [edi + 8]
mov dword [esi + 8], edx
mov al, byte [edi + 0xc]
mov byte [esi + 0xc], al
mov cl, byte [edi + 0xd]
mov byte [esi + 0xd], cl
mov dl, byte [edi + 0xe]
mov byte [esi + 0xe], dl
mov eax, dword [edi + 0x10]
mov dword [esi + 0x10], eax
mov ecx, dword [edi + 0x14]
lea eax, [edi + 0x18]
mov dword [esi + 0x14], ecx
lea ecx, [esi + 0x18]
mov dword [esp + 0x14], esi
mov dl, byte [eax]
mov byte [ecx], dl
mov dword [ecx + 4], ebx
mov dword [ecx + 8], ebx
mov dword [ecx + 0xc], ebx
mov edx, dword [0x76560c]
push edx
push ebx
push eax
call fcn.00404560
mov al, byte [edi + 0x28]
lea ebp, [esi + 0x2c]
mov dword [esp + 0x20], ebx
mov byte [esi + 0x28], al
mov dword [esp + 0x2c], ebp
lea ebx, [edi + 0x2c]
mov dword [esp + 0x28], 2
mov cl, byte [ebx]
xor eax, eax
mov byte [ebp], cl
mov dword [ebp + 4], eax
mov dword [ebp + 8], eax
mov dword [ebp + 0xc], eax
mov edx, dword [0x76560c]
mov ecx, ebp
push edx
push eax
push ebx
call fcn.00404560
mov eax, dword [ebx + 0x10]
mov byte [esp + 0x20], 1
mov dword [ebp + 0x10], eax
mov eax, dword [esp + 0x28]
add ebp, 0x14
add ebx, 0x14
dec eax
mov byte [esp + 0x20], 2
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x28], eax
jne 0x6d2932
mov ecx, dword [edi + 0x54]
mov dword [esi + 0x54], ecx
mov edx, dword [edi + 0x58]
mov dword [esi + 0x58], edx
mov al, byte [edi + 0x5c]
mov byte [esi + 0x5c], al
mov cx, word [edi + 0x5e]
mov word [esi + 0x5e], cx
mov edx, dword [edi + 0x60]
mov dword [esi + 0x60], edx
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
pop edi
pop esi
mov dword [esp + 0x18], 0xffffffff
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret 8
Function at 0x6e10b0
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.0x6e10c2
jmp dword [eax*4 + 0x6e12b8]
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, 0x7c4d88
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.00401450
test al, al
je 0x6e119f
mov edi, dword [ebx + 4]
mov ecx, ebp
mov edx, ecx
mov esi, 0x7c4d88
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 0x6e12a0
cmp esi, 0xffffffff
jne 0x6e11b6
call fcn.007373b0
mov ecx, ebx
call fcn.00404990
cmp eax, esi
jae 0x6e11c6
call fcn.007373b0
mov ecx, dword [ebx + 4]
test ecx, ecx
je 0x6e11eb
mov al, byte [ecx - 1]
test al, al
je 0x6e11eb
cmp al, 0xff
je 0x6e11eb
test esi, esi
jne 0x6e120f
dec al
push esi
mov byte [ecx - 1], al
mov ecx, ebx
call fcn.00404760
jmp 0x6e1239
test esi, esi
jne 0x6e11fa
push 1
mov ecx, ebx
call fcn.00404760
jmp 0x6e1239
mov eax, dword [ebx + 0xc]
cmp eax, 0x1f
ja 0x6e1206
cmp eax, esi
jae 0x6e1217
push 1
mov ecx, ebx
call fcn.00404760
push esi
mov ecx, ebx
call fcn.00401570
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 0x6e1268
mov al, byte [eax - 1]
test al, al
je 0x6e1258
cmp al, 0xff
je 0x6e1258
mov ecx, dword [ebx + 8]
push 0
push ecx
mov ecx, ebx
call fcn.00401450
mov eax, dword [ebx + 4]
test eax, eax
je 0x6e1263
mov byte [eax - 1], 0xff
mov ebx, dword [ebx + 4]
jmp 0x6e126d
mov ebx, 0x765608
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x18]
push 0
push edx
push eax
push ebx
jmp 0x6e1295
lea edx, [esp + 0x18]
push 0
push edx
push 4
jmp 0x6e1290
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 0x6e1530
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.0x6e1542
jmp dword [eax*4 + 0x6e1738]
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, 0x7c4d88
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.00401450
test al, al
je 0x6e161f
mov edi, dword [ebx + 4]
mov ecx, ebp
mov edx, ecx
mov esi, 0x7c4d88
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 0x6e1720
cmp esi, 0xffffffff
jne 0x6e1636
call fcn.007373b0
mov ecx, ebx
call fcn.00404990
cmp eax, esi
jae 0x6e1646
call fcn.007373b0
mov ecx, dword [ebx + 4]
test ecx, ecx
je 0x6e166b
mov al, byte [ecx - 1]
test al, al
je 0x6e166b
cmp al, 0xff
je 0x6e166b
test esi, esi
jne 0x6e168f
dec al
push esi
mov byte [ecx - 1], al
mov ecx, ebx
call fcn.00404760
jmp 0x6e16b9
test esi, esi
jne 0x6e167a
push 1
mov ecx, ebx
call fcn.00404760
jmp 0x6e16b9
mov eax, dword [ebx + 0xc]
cmp eax, 0x1f
ja 0x6e1686
cmp eax, esi
jae 0x6e1697
push 1
mov ecx, ebx
call fcn.00404760
push esi
mov ecx, ebx
call fcn.00401570
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 0x6e16e8
mov al, byte [eax - 1]
test al, al
je 0x6e16d8
cmp al, 0xff
je 0x6e16d8
mov ecx, dword [ebx + 8]
push 0
push ecx
mov ecx, ebx
call fcn.00401450
mov eax, dword [ebx + 4]
test eax, eax
je 0x6e16e3
mov byte [eax - 1], 0xff
mov ebx, dword [ebx + 4]
jmp 0x6e16ed
mov ebx, 0x765608
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x18]
push 0
push edx
push eax
push ebx
jmp 0x6e1715
lea edx, [esp + 0x18]
push 0
push edx
push 4
jmp 0x6e1710
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 0x6e19b0
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.0x6e19c2
jmp dword [eax*4 + 0x6e1bb8]
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, 0x7c4d88
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.00401450
test al, al
je 0x6e1a9f
mov edi, dword [ebx + 4]
mov ecx, ebp
mov edx, ecx
mov esi, 0x7c4d88
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 0x6e1ba0
cmp esi, 0xffffffff
jne 0x6e1ab6
call fcn.007373b0
mov ecx, ebx
call fcn.00404990
cmp eax, esi
jae 0x6e1ac6
call fcn.007373b0
mov ecx, dword [ebx + 4]
test ecx, ecx
je 0x6e1aeb
mov al, byte [ecx - 1]
test al, al
je 0x6e1aeb
cmp al, 0xff
je 0x6e1aeb
test esi, esi
jne 0x6e1b0f
dec al
push esi
mov byte [ecx - 1], al
mov ecx, ebx
call fcn.00404760
jmp 0x6e1b39
test esi, esi
jne 0x6e1afa
push 1
mov ecx, ebx
call fcn.00404760
jmp 0x6e1b39
mov eax, dword [ebx + 0xc]
cmp eax, 0x1f
ja 0x6e1b06
cmp eax, esi
jae 0x6e1b17
push 1
mov ecx, ebx
call fcn.00404760
push esi
mov ecx, ebx
call fcn.00401570
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 0x6e1b68
mov al, byte [eax - 1]
test al, al
je 0x6e1b58
cmp al, 0xff
je 0x6e1b58
mov ecx, dword [ebx + 8]
push 0
push ecx
mov ecx, ebx
call fcn.00401450
mov eax, dword [ebx + 4]
test eax, eax
je 0x6e1b63
mov byte [eax - 1], 0xff
mov ebx, dword [ebx + 4]
jmp 0x6e1b6d
mov ebx, 0x765608
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x18]
push 0
push edx
push eax
push ebx
jmp 0x6e1b95
lea edx, [esp + 0x18]
push 0
push edx
push 4
jmp 0x6e1b90
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 0x6e1e30
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.0x6e1e42
jmp dword [eax*4 + 0x6e2038]
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, 0x7c4d88
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.00401450
test al, al
je 0x6e1f1f
mov edi, dword [ebx + 4]
mov ecx, ebp
mov edx, ecx
mov esi, 0x7c4d88
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 0x6e2020
cmp esi, 0xffffffff
jne 0x6e1f36
call fcn.007373b0
mov ecx, ebx
call fcn.00404990
cmp eax, esi
jae 0x6e1f46
call fcn.007373b0
mov ecx, dword [ebx + 4]
test ecx, ecx
je 0x6e1f6b
mov al, byte [ecx - 1]
test al, al
je 0x6e1f6b
cmp al, 0xff
je 0x6e1f6b
test esi, esi
jne 0x6e1f8f
dec al
push esi
mov byte [ecx - 1], al
mov ecx, ebx
call fcn.00404760
jmp 0x6e1fb9
test esi, esi
jne 0x6e1f7a
push 1
mov ecx, ebx
call fcn.00404760
jmp 0x6e1fb9
mov eax, dword [ebx + 0xc]
cmp eax, 0x1f
ja 0x6e1f86
cmp eax, esi
jae 0x6e1f97
push 1
mov ecx, ebx
call fcn.00404760
push esi
mov ecx, ebx
call fcn.00401570
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 0x6e1fe8
mov al, byte [eax - 1]
test al, al
je 0x6e1fd8
cmp al, 0xff
je 0x6e1fd8
mov ecx, dword [ebx + 8]
push 0
push ecx
mov ecx, ebx
call fcn.00401450
mov eax, dword [ebx + 4]
test eax, eax
je 0x6e1fe3
mov byte [eax - 1], 0xff
mov ebx, dword [ebx + 4]
jmp 0x6e1fed
mov ebx, 0x765608
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x18]
push 0
push edx
push eax
push ebx
jmp 0x6e2015
lea edx, [esp + 0x18]
push 0
push edx
push 4
jmp 0x6e2010
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 0x6e22b0
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.0x6e22c2
jmp dword [eax*4 + 0x6e24b8]
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, 0x7c4d88
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.00401450
test al, al
je 0x6e239f
mov edi, dword [ebx + 4]
mov ecx, ebp
mov edx, ecx
mov esi, 0x7c4d88
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 0x6e24a0
cmp esi, 0xffffffff
jne 0x6e23b6
call fcn.007373b0
mov ecx, ebx
call fcn.00404990
cmp eax, esi
jae 0x6e23c6
call fcn.007373b0
mov ecx, dword [ebx + 4]
test ecx, ecx
je 0x6e23eb
mov al, byte [ecx - 1]
test al, al
je 0x6e23eb
cmp al, 0xff
je 0x6e23eb
test esi, esi
jne 0x6e240f
dec al
push esi
mov byte [ecx - 1], al
mov ecx, ebx
call fcn.00404760
jmp 0x6e2439
test esi, esi
jne 0x6e23fa
push 1
mov ecx, ebx
call fcn.00404760
jmp 0x6e2439
mov eax, dword [ebx + 0xc]
cmp eax, 0x1f
ja 0x6e2406
cmp eax, esi
jae 0x6e2417
push 1
mov ecx, ebx
call fcn.00404760
push esi
mov ecx, ebx
call fcn.00401570
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 0x6e2468
mov al, byte [eax - 1]
test al, al
je 0x6e2458
cmp al, 0xff
je 0x6e2458
mov ecx, dword [ebx + 8]
push 0
push ecx
mov ecx, ebx
call fcn.00401450
mov eax, dword [ebx + 4]
test eax, eax
je 0x6e2463
mov byte [eax - 1], 0xff
mov ebx, dword [ebx + 4]
jmp 0x6e246d
mov ebx, 0x765608
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x18]
push 0
push edx
push eax
push ebx
jmp 0x6e2495
lea edx, [esp + 0x18]
push 0
push edx
push 4
jmp 0x6e2490
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