joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6288f0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x7d1cf8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x5c
mov eax, dword [esp + 0x70]
push ebx
push ebp
push esi
push edi
xor ebx, ebx
mov edi, ecx
cmp eax, ebx
mov dword [esp + 0x10], edi
jle 0x628a8c
mov eax, dword [edi + 0x11c]
cmp dword [edi + eax*4 + 0xec], ebx
je 0x628a8c
fild dword [esp + 0x7c]
fidiv dword [esp + 0x80]
fld st(0)
fmul dword [0x7e68a0]
call fcn.007a2dec
fmul dword [0x7e680c]
lea esi, [edi + 0xe4]
mov dword [esp + 0x14], eax
mov dword [esp + 0x80], ebx
mov dword [esp + 0x7c], esi
fstp dword [esp + 0x18]
jmp 0x628974
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
cmp byte [esp + 0x84], bl
je 0x628981
push ebx
push ebx
jmp 0x62898b
push 0x42c80000
push 0x3e99999a
mov ecx, dword [esi + 8]
push eax
call fcn.00411990
mov ecx, dword [edi + 0x11c]
cmp dword [edi + ecx*4 + 0xe4], ebx
je 0x628a8c
fld dword [esp + 0x18]
sub esp, 8
lea edx, [esp + 0x34]
fstp qword [esp]
push 0x82ef68
push edx
call fcn.007a3155
mov al, byte [esp + 0x94]
lea edi, [esp + 0x3c]
mov byte [esp + 0x2c], al
or ecx, 0xffffffff
xor eax, eax
add esp, 0x10
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 1
mov ebp, ecx
lea ecx, [esp + 0x20]
push ebp
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
call fcn.00401b40
test al, al
je 0x628a21
mov edi, dword [esp + 0x20]
mov ecx, ebp
mov edx, ecx
lea esi, [esp + 0x2c]
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 [esp + 0x20]
mov esi, dword [esp + 0x7c]
mov dword [esp + 0x24], ebp
mov byte [eax + ebp], bl
mov ecx, dword [esi]
lea eax, [esp + 0x1c]
push eax
mov dword [esp + 0x78], ebx
mov edx, dword [ecx]
call dword [edx + 0x9c]
mov eax, dword [esp + 0x20]
mov dword [esp + 0x74], 0xffffffff
cmp eax, ebx
je 0x628a61
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x628a58
cmp al, 0xff
je 0x628a58
dec al
mov byte [ecx], al
jmp 0x628a61
push ecx
call fcn.007a02e0
add esp, 4
mov eax, dword [esp + 0x80]
add esi, 4
inc eax
mov dword [esp + 0x20], ebx
cmp eax, 2
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x80], eax
mov dword [esp + 0x7c], esi
jl 0x62896c
mov ecx, dword [esp + 0x6c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x68
ret 0xc
Function at 0x631e90
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], 0
mov al, byte [esi + 0xa8]
test al, al
jne 0x631eb3
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret 0xc
cmp dword [esi + 0x7c], 1
jne 0x631f02
test byte [esp + 0x18], 2
je 0x631ed6
mov eax, dword [esi]
push 0
mov ecx, esi
call dword [eax + 0x3c]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
pop ecx
ret 0xc
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov edx, dword [esi]
mov edi, dword [eax + 4]
mov ebp, dword [ecx + 4]
mov eax, dword [eax]
sub edi, ebp
push edi
mov edi, dword [ecx]
sub eax, edi
mov ecx, esi
push eax
call dword [edx + 0x34]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
pop ecx
ret 0xc
mov ebp, dword [esp + 0x1c]
mov ecx, dword [ebp + 4]
mov edx, dword [ebp]
push ecx
push edx
mov ecx, esi
call fcn.00402580
test al, al
jne 0x631f49
mov eax, dword [esp + 0x20]
mov ecx, dword [eax + 4]
mov edx, dword [eax]
push ecx
push edx
mov ecx, esi
call fcn.00402580
test al, al
jne 0x631f3f
cmp dword [esi + 0x7c], 0x11
je 0x631f3f
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret 0xc
mov dword [esp + 0x10], 8
jmp 0x631f5e
mov ecx, dword [0x870c04]
test ecx, ecx
je 0x631f5e
lea eax, [esi + 0x3c]
push 0xffffffffffffffff
push eax
call fcn.00415030
mov eax, dword [esi + 0x70]
mov edx, dword [esp + 0x10]
mov ebx, dword [esp + 0x18]
or edx, 4
mov edi, dword [eax]
mov dword [esp + 0x10], edx
cmp eax, edi
je 0x631f96
mov ecx, dword [edi + 8]
test ecx, ecx
je 0x631f8d
mov eax, dword [esp + 0x20]
mov edx, dword [ecx]
push eax
push ebp
push ebx
call dword [edx + 0x64]
test al, 1
jne 0x631ff4
mov edi, dword [edi]
mov eax, dword [esi + 0x70]
cmp eax, edi
jne 0x631f76
cmp dword [esi + 0x7c], 1
je 0x632002
mov ecx, dword [ebp + 4]
mov edx, dword [ebp]
push ecx
lea eax, [esi + 0x98]
push edx
push eax
call dword [sym.imp.user32.dll_PtInRect]
test eax, eax
je 0x632002
test bl, 1
je 0x632002
cmp dword [esi + 0x78], 0xc
jne 0x631fdd
mov eax, dword [esi + 0xbc]
test eax, eax
jne 0x631fdd
mov ecx, dword [0x9eba88]
mov edx, dword [ecx + 0x58]
mov al, byte [edx + 0xa8]
test al, al
jne 0x632002
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax + 0x3c]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
or al, 1
pop ebx
pop ecx
ret 0xc
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
or al, 3
pop ebx
pop ecx
ret 0xc
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0xc
Function at 0x650a80
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x7d3b21
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 [0x7e565c]
mov dword [esp + 0x10], ebx
push edx
push ebp
push eax
mov dword [esp + 0x30], esi
call fcn.00404c60
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 [0x7e565c]
push edx
push ebp
push eax
call fcn.00404c60
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 [edi + 0x88]
mov dword [esi + 0x88], ecx
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 0x652de0
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.0x652df2
jmp dword [eax*4 + 0x652fe8]
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, 0x870c08
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.00401b40
test al, al
je 0x652ecf
mov edi, dword [ebx + 4]
mov ecx, ebp
mov edx, ecx
mov esi, 0x870c08
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 0x652fd0
cmp esi, 0xffffffff
jne 0x652ee6
call fcn.007a02eb
mov ecx, ebx
call fcn.00405090
cmp eax, esi
jae 0x652ef6
call fcn.007a02eb
mov ecx, dword [ebx + 4]
test ecx, ecx
je 0x652f1b
mov al, byte [ecx - 1]
test al, al
je 0x652f1b
cmp al, 0xff
je 0x652f1b
test esi, esi
jne 0x652f3f
dec al
push esi
mov byte [ecx - 1], al
mov ecx, ebx
call fcn.00404e60
jmp 0x652f69
test esi, esi
jne 0x652f2a
push 1
mov ecx, ebx
call fcn.00404e60
jmp 0x652f69
mov eax, dword [ebx + 0xc]
cmp eax, 0x1f
ja 0x652f36
cmp eax, esi
jae 0x652f47
push 1
mov ecx, ebx
call fcn.00404e60
push esi
mov ecx, ebx
call fcn.00401c60
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 0x652f98
mov al, byte [eax - 1]
test al, al
je 0x652f88
cmp al, 0xff
je 0x652f88
mov ecx, dword [ebx + 8]
push 0
push ecx
mov ecx, ebx
call fcn.00401b40
mov eax, dword [ebx + 4]
test eax, eax
je 0x652f93
mov byte [eax - 1], 0xff
mov ebx, dword [ebx + 4]
jmp 0x652f9d
mov ebx, 0x7e5658
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x18]
push 0
push edx
push eax
push ebx
jmp 0x652fc5
lea edx, [esp + 0x18]
push 0
push edx
push 4
jmp 0x652fc0
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 0x653260
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.0x653272
jmp dword [eax*4 + 0x653468]
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, 0x870c08
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.00401b40
test al, al
je 0x65334f
mov edi, dword [ebx + 4]
mov ecx, ebp
mov edx, ecx
mov esi, 0x870c08
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 0x653450
cmp esi, 0xffffffff
jne 0x653366
call fcn.007a02eb
mov ecx, ebx
call fcn.00405090
cmp eax, esi
jae 0x653376
call fcn.007a02eb
mov ecx, dword [ebx + 4]
test ecx, ecx
je 0x65339b
mov al, byte [ecx - 1]
test al, al
je 0x65339b
cmp al, 0xff
je 0x65339b
test esi, esi
jne 0x6533bf
dec al
push esi
mov byte [ecx - 1], al
mov ecx, ebx
call fcn.00404e60
jmp 0x6533e9
test esi, esi
jne 0x6533aa
push 1
mov ecx, ebx
call fcn.00404e60
jmp 0x6533e9
mov eax, dword [ebx + 0xc]
cmp eax, 0x1f
ja 0x6533b6
cmp eax, esi
jae 0x6533c7
push 1
mov ecx, ebx
call fcn.00404e60
push esi
mov ecx, ebx
call fcn.00401c60
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 0x653418
mov al, byte [eax - 1]
test al, al
je 0x653408
cmp al, 0xff
je 0x653408
mov ecx, dword [ebx + 8]
push 0
push ecx
mov ecx, ebx
call fcn.00401b40
mov eax, dword [ebx + 4]
test eax, eax
je 0x653413
mov byte [eax - 1], 0xff
mov ebx, dword [ebx + 4]
jmp 0x65341d
mov ebx, 0x7e5658
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x18]
push 0
push edx
push eax
push ebx
jmp 0x653445
lea edx, [esp + 0x18]
push 0
push edx
push 4
jmp 0x653440
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 0x6536e0
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.0x6536f2
jmp dword [eax*4 + 0x6538e8]
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, 0x870c08
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.00401b40
test al, al
je 0x6537cf
mov edi, dword [ebx + 4]
mov ecx, ebp
mov edx, ecx
mov esi, 0x870c08
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 0x6538d0
cmp esi, 0xffffffff
jne 0x6537e6
call fcn.007a02eb
mov ecx, ebx
call fcn.00405090
cmp eax, esi
jae 0x6537f6
call fcn.007a02eb
mov ecx, dword [ebx + 4]
test ecx, ecx
je 0x65381b
mov al, byte [ecx - 1]
test al, al
je 0x65381b
cmp al, 0xff
je 0x65381b
test esi, esi
jne 0x65383f
dec al
push esi
mov byte [ecx - 1], al
mov ecx, ebx
call fcn.00404e60
jmp 0x653869
test esi, esi
jne 0x65382a
push 1
mov ecx, ebx
call fcn.00404e60
jmp 0x653869
mov eax, dword [ebx + 0xc]
cmp eax, 0x1f
ja 0x653836
cmp eax, esi
jae 0x653847
push 1
mov ecx, ebx
call fcn.00404e60
push esi
mov ecx, ebx
call fcn.00401c60
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 0x653898
mov al, byte [eax - 1]
test al, al
je 0x653888
cmp al, 0xff
je 0x653888
mov ecx, dword [ebx + 8]
push 0
push ecx
mov ecx, ebx
call fcn.00401b40
mov eax, dword [ebx + 4]
test eax, eax
je 0x653893
mov byte [eax - 1], 0xff
mov ebx, dword [ebx + 4]
jmp 0x65389d
mov ebx, 0x7e5658
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x18]
push 0
push edx
push eax
push ebx
jmp 0x6538c5
lea edx, [esp + 0x18]
push 0
push edx
push 4
jmp 0x6538c0
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 0x653b60
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.0x653b72
jmp dword [eax*4 + 0x653d68]
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, 0x870c08
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.00401b40
test al, al
je 0x653c4f
mov edi, dword [ebx + 4]
mov ecx, ebp
mov edx, ecx
mov esi, 0x870c08
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 0x653d50
cmp esi, 0xffffffff
jne 0x653c66
call fcn.007a02eb
mov ecx, ebx
call fcn.00405090
cmp eax, esi
jae 0x653c76
call fcn.007a02eb
mov ecx, dword [ebx + 4]
test ecx, ecx
je 0x653c9b
mov al, byte [ecx - 1]
test al, al
je 0x653c9b
cmp al, 0xff
je 0x653c9b
test esi, esi
jne 0x653cbf
dec al
push esi
mov byte [ecx - 1], al
mov ecx, ebx
call fcn.00404e60
jmp 0x653ce9
test esi, esi
jne 0x653caa
push 1
mov ecx, ebx
call fcn.00404e60
jmp 0x653ce9
mov eax, dword [ebx + 0xc]
cmp eax, 0x1f
ja 0x653cb6
cmp eax, esi
jae 0x653cc7
push 1
mov ecx, ebx
call fcn.00404e60
push esi
mov ecx, ebx
call fcn.00401c60
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 0x653d18
mov al, byte [eax - 1]
test al, al
je 0x653d08
cmp al, 0xff
je 0x653d08
mov ecx, dword [ebx + 8]
push 0
push ecx
mov ecx, ebx
call fcn.00401b40
mov eax, dword [ebx + 4]
test eax, eax
je 0x653d13
mov byte [eax - 1], 0xff
mov ebx, dword [ebx + 4]
jmp 0x653d1d
mov ebx, 0x7e5658
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x18]
push 0
push edx
push eax
push ebx
jmp 0x653d45
lea edx, [esp + 0x18]
push 0
push edx
push 4
jmp 0x653d40
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 0x653fe0
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.0x653ff2
jmp dword [eax*4 + 0x6541e8]
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, 0x870c08
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.00401b40
test al, al
je 0x6540cf
mov edi, dword [ebx + 4]
mov ecx, ebp
mov edx, ecx
mov esi, 0x870c08
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 0x6541d0
cmp esi, 0xffffffff
jne 0x6540e6
call fcn.007a02eb
mov ecx, ebx
call fcn.00405090
cmp eax, esi
jae 0x6540f6
call fcn.007a02eb
mov ecx, dword [ebx + 4]
test ecx, ecx
je 0x65411b
mov al, byte [ecx - 1]
test al, al
je 0x65411b
cmp al, 0xff
je 0x65411b
test esi, esi
jne 0x65413f
dec al
push esi
mov byte [ecx - 1], al
mov ecx, ebx
call fcn.00404e60
jmp 0x654169
test esi, esi
jne 0x65412a
push 1
mov ecx, ebx
call fcn.00404e60
jmp 0x654169
mov eax, dword [ebx + 0xc]
cmp eax, 0x1f
ja 0x654136
cmp eax, esi
jae 0x654147
push 1
mov ecx, ebx
call fcn.00404e60
push esi
mov ecx, ebx
call fcn.00401c60
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 0x654198
mov al, byte [eax - 1]
test al, al
je 0x654188
cmp al, 0xff
je 0x654188
mov ecx, dword [ebx + 8]
push 0
push ecx
mov ecx, ebx
call fcn.00401b40
mov eax, dword [ebx + 4]
test eax, eax
je 0x654193
mov byte [eax - 1], 0xff
mov ebx, dword [ebx + 4]
jmp 0x65419d
mov ebx, 0x7e5658
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x18]
push 0
push edx
push eax
push ebx
jmp 0x6541c5
lea edx, [esp + 0x18]
push 0
push edx
push 4
jmp 0x6541c0
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