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

Disassembly:
mov eax, dword [esp + 4]
push esi
test eax, eax
mov esi, ecx
je 0x485408
push edi
push 0
push eax
mov eax, dword [0x67a8cc]
push eax
call dword [sym.imp.MSVCRT.dll_fseek]
mov ecx, dword [0x67a8cc]
push ecx
push 1
push 0xc
push esi
call dword [sym.imp.MSVCRT.dll_fread]
push 0xc
call sub.MFC42u.DLL_operatornew
add esp, 0x20
test eax, eax
je 0x4853f7
mov ecx, eax
call fcn.00482d20
mov edx, dword [esi + 4]
mov edi, eax
push edx
mov ecx, edi
call fcn.00482d30
mov dword [esi + 4], edi
pop edi
pop esi
ret 4
mov edx, dword [esi + 4]
xor edi, edi
push edx
mov ecx, edi
call fcn.00482d30
mov dword [esi + 4], edi
pop edi
pop esi
ret 4
Function at 0x485620
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x4504
call fcn.005322e0
mov eax, dword [esp + 0x4508]
push esi
test eax, eax
mov esi, ecx
je 0x48582f
push ebp
mov ebp, dword [sym.imp.MSVCRT.dll_fseek]
push edi
push 0
push eax
mov eax, dword [0x67a8cc]
push eax
call ebp
mov ecx, dword [0x67a8cc]
push ecx
push 1
push 0x50
push esi
call dword [sym.imp.MSVCRT.dll_fread]
push 0x14
call sub.MFC42u.DLL_operatornew
mov edx, dword [esi + 4]
add esp, 0x20
mov edi, eax
push edx
mov ecx, edi
call fcn.00485200
push 0xc
mov dword [esi + 4], edi
call sub.MFC42u.DLL_operatornew
add esp, 4
test eax, eax
je 0x485694
mov ecx, eax
call fcn.00482d20
mov edi, eax
jmp 0x485696
xor edi, edi
mov eax, dword [esi + 8]
mov ecx, edi
push eax
call fcn.00482d30
push 0xc
mov dword [esi + 8], edi
call sub.MFC42u.DLL_operatornew
add esp, 4
test eax, eax
je 0x4856bd
mov ecx, eax
call fcn.00482d20
mov edi, eax
jmp 0x4856bf
xor edi, edi
mov ecx, dword [esi + 0xc]
push ecx
mov ecx, edi
call fcn.00482d30
mov eax, dword [esi + 0x20]
mov dword [esi + 0xc], edi
test eax, eax
jle 0x48575e
lea edx, [eax*4]
push ebx
push edx
call fcn.00478e60
mov ecx, dword [0x67a8cc]
mov ebx, eax
mov eax, dword [esi + 0x24]
push 0
push eax
push ecx
mov dword [esp + 0x20], ebx
call ebp
mov edx, dword [0x67a8cc]
mov eax, dword [esi + 0x20]
push edx
push eax
lea ecx, [esp + 0x52c]
push 0xc
push ecx
call dword [sym.imp.MSVCRT.dll_fread]
mov eax, dword [esi + 0x20]
add esp, 0x20
xor ebp, ebp
test eax, eax
jle 0x485758
lea edx, [esp + 0x514]
lea edi, [esp + 0x514]
sub ebx, edx
push 0xc
call sub.MFC42u.DLL_operatornew
add esp, 4
mov dword [ebx + edi], eax
mov ecx, dword [edi]
push ecx
mov ecx, eax
call fcn.004853a0
mov eax, dword [esi + 0x20]
inc ebp
add edi, 4
cmp ebp, eax
jl 0x485732
mov ebx, dword [esp + 0x10]
mov dword [esi + 0x24], ebx
pop ebx
jmp 0x485765
mov dword [esi + 0x24], 0
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x11]
mov byte [esp + 0x10], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x211]
mov byte [esp + 0x210], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x411]
mov byte [esp + 0x410], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea edx, [esp + 0x410]
lea eax, [esp + 0x210]
push edx
lea ecx, [esp + 0x14]
push eax
push ecx
mov ecx, dword [esi + 4]
call fcn.00485360
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x111]
mov byte [esp + 0x110], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x311]
mov byte [esp + 0x310], 0
rep stosd dword es:[edi], eax
mov ecx, dword [esi + 8]
stosw word es:[edi], ax
stosb byte es:[edi], al
pop edi
pop ebp
test ecx, ecx
je 0x485819
lea edx, [esp + 0x108]
push edx
call fcn.00482e90
mov esi, dword [esi + 0xc]
test esi, esi
je 0x48582f
lea eax, [esp + 0x308]
mov ecx, esi
push eax
call fcn.00482e90
pop esi
add esp, 0x4504
ret 4
Function at 0x485ac0
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
push esi
test eax, eax
mov esi, ecx
je 0x485b55
push edi
push 0
push eax
mov eax, dword [0x67a8cc]
push eax
call dword [sym.imp.MSVCRT.dll_fseek]
mov ecx, dword [0x67a8cc]
push ecx
push 1
push 0x10
push esi
call dword [sym.imp.MSVCRT.dll_fread]
push 0xc
call sub.MFC42u.DLL_operatornew
add esp, 0x20
test eax, eax
je 0x485b0a
mov ecx, eax
call fcn.00482d20
mov edi, eax
jmp 0x485b0c
xor edi, edi
mov edx, dword [esi + 8]
mov ecx, edi
push edx
call fcn.00482d30
push 0xc
mov dword [esi + 8], edi
call sub.MFC42u.DLL_operatornew
add esp, 4
test eax, eax
je 0x485b44
mov ecx, eax
call fcn.00482d20
mov edi, eax
mov eax, dword [esi + 0xc]
push eax
mov ecx, edi
call fcn.00482d30
mov dword [esi + 0xc], edi
pop edi
pop esi
ret 4
mov eax, dword [esi + 0xc]
xor edi, edi
push eax
mov ecx, edi
call fcn.00482d30
mov dword [esi + 0xc], edi
pop edi
pop esi
ret 4

Function at 0x485d60
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
push esi
push edi
xor edi, edi
cmp eax, edi
mov esi, ecx
je 0x485d91
push edi
push eax
mov eax, dword [0x67a8cc]
push eax
call dword [sym.imp.MSVCRT.dll_fseek]
mov ecx, dword [0x67a8cc]
push ecx
push 1
push 0x24
push esi
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x1c
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
pop edi
pop esi
ret 4

Function at 0x485da0
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
push esi
test eax, eax
mov esi, ecx
je 0x485e38
push ebx
push ebp
push edi
push 0
push eax
mov eax, dword [0x67a8cc]
push eax
call dword [sym.imp.MSVCRT.dll_fseek]
mov ecx, dword [0x67a8cc]
mov edi, dword [sym.imp.MSVCRT.dll_fread]
push ecx
push 1
push 4
push esi
call edi
mov edx, dword [0x67a8cc]
lea ebx, [esi + 4]
push edx
push 1
push 4
push ebx
call edi
mov eax, dword [0x67a8cc]
lea ebp, [esi + 8]
push eax
push 1
push 4
push ebp
call edi
mov ecx, dword [ebp]
push ecx
call fcn.00478e60
mov ecx, dword [ebp]
add esp, 0x40
mov dword [esi + 0xc], eax
mov edx, dword [0x67a8cc]
push edx
push ecx
push 1
push eax
call edi
mov edx, dword [ebx]
shl edx, 2
push edx
call fcn.00478e60
mov edx, dword [ebx]
mov dword [esi + 0x10], eax
mov ecx, dword [0x67a8cc]
push ecx
push edx
push 4
push eax
call edi
add esp, 0x24
pop edi
pop ebp
pop ebx
pop esi
ret 4

Function at 0x485e80
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
push ebx
test eax, eax
mov ebx, ecx
je 0x485ef5
push ebp
push esi
push edi
push 0
push eax
mov eax, dword [0x67a8cc]
push eax
call dword [sym.imp.MSVCRT.dll_fseek]
mov ecx, dword [0x67a8cc]
push ecx
push 1
push 0x10
push ebx
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x1c
lea esi, [ebx + 4]
mov ebp, 3
cmp dword [esi], 0
je 0x485ee6
push 0x10
call fcn.004784b0
add esp, 4
test eax, eax
je 0x485ed8
mov ecx, eax
call fcn.00482f70
mov edi, eax
jmp 0x485eda
xor edi, edi
mov edx, dword [esi]
mov ecx, edi
push edx
call fcn.00482fb0
mov dword [esi], edi
add esi, 4
dec ebp
jne 0x485eba
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
ret 4
mov eax, ebx
pop ebx
ret 4
Function at 0x486600
Capabilities:
Read file on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x547748
push eax
mov eax, dword [esp + 0x10]
mov dword fs:[0], esp
sub esp, 8
test eax, eax
push esi
push edi
mov esi, ecx
je 0x4866bd
push 0
push eax
mov eax, dword [0x67a8cc]
push eax
call dword [sym.imp.MSVCRT.dll_fseek]
mov ecx, dword [0x67a8cc]
mov edi, dword [sym.imp.MSVCRT.dll_fread]
push ecx
push 1
push 4
push esi
call edi
mov edx, dword [0x67a8cc]
add esi, 4
push edx
push 1
push 4
push esi
call edi
mov eax, dword [esi]
add esp, 0x2c
test eax, eax
je 0x4866bd
mov ecx, dword [0x67a8cc]
push ebx
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], 0x549d88
push eax
lea ecx, [esp + 0x10]
mov dword [esp + 0x20], 0
call fcn.00483660
mov dword [esi], eax
mov ebx, dword [eax + 4]
xor edi, edi
test ebx, ebx
jle 0x4866b3
mov eax, dword [esi]
cmp edi, dword [eax + 4]
jae 0x4866ae
mov ecx, dword [eax + 8]
mov edx, dword [eax + 0xc]
imul ecx, edi
add ecx, edx
je 0x4866ae
call fcn.00485fb0
inc edi
cmp edi, ebx
jl 0x486695
lea ecx, [esp + 0xc]
call fcn.00483770
pop ebx
mov ecx, dword [esp + 0x10]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret 4

Function at 0x486740
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
push esi
test eax, eax
mov esi, ecx
je 0x4867f1
push edi
push 0
push eax
mov eax, dword [0x67a8cc]
push eax
call dword [sym.imp.MSVCRT.dll_fseek]
mov ecx, dword [0x67a8cc]
push ecx
push 1
push 0x1bc
push esi
call dword [sym.imp.MSVCRT.dll_fread]
lea eax, [esi + 0xac]
xor edx, edx
mov ecx, 0x40
lea edi, [esi + 0xb4]
mov dword [eax], edx
add esp, 0x1c
mov dword [eax + 4], edx
xor eax, eax
rep stosd dword es:[edi], eax
mov dword [esi + 0x1b4], eax
mov al, byte [esi]
test al, 0x10
pop edi
je 0x4867c8
push 0x24
call fcn.004784b0
add esp, 4
test eax, eax
je 0x4867c0
lea ecx, [esi + 0x98]
push 1
push ecx
mov ecx, eax
call fcn.00495db0
jmp 0x4867c2
xor eax, eax
mov dword [esi + 0x1b4], eax
test byte [esi], 0x20
jne 0x4867d9
lea edx, [esi + 0xa8]
mov dword [edx], 0
mov eax, dword [0x6d7478]
mov dword [esi + 0x1b8], eax
mov al, byte [esi]
test al, 1
je 0x4867f1
mov ecx, esi
call fcn.004868e0
pop esi
ret 4
Function at 0x486b70
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x2000
call fcn.005322e0
mov eax, dword [esp + 0x2004]
push ebx
push ebp
push esi
test eax, eax
push edi
mov ebx, ecx
je 0x486c79
push 0
push eax
mov eax, dword [0x67a8cc]
push eax
call dword [sym.imp.MSVCRT.dll_fseek]
mov ecx, dword [0x67a8cc]
mov esi, dword [sym.imp.MSVCRT.dll_fread]
push ecx
push 1
push 4
push ebx
call esi
mov edx, dword [0x67a8cc]
lea eax, [ebx + 4]
push edx
push 1
push 2
push eax
call esi
mov ecx, dword [0x67a8cc]
lea edi, [ebx + 6]
push ecx
push 1
push 2
push edi
call esi
movsx eax, word [edi]
mov edx, dword [0x67a8cc]
lea ecx, [esp + 0x4c]
push edx
push eax
push 8
push ecx
call esi
xor ebp, ebp
add esp, 0x4c
cmp word [edi], bp
jle 0x486c79
lea esi, [esp + 0x14]
mov eax, dword [esi - 4]
sub eax, 0xff01
je 0x486c44
dec eax
je 0x486c27
dec eax
jne 0x486c6e
push 0x21c
call fcn.004784b0
add esp, 4
test eax, eax
je 0x486c6e
mov edx, dword [esi]
mov ecx, eax
push edx
call fcn.00473fe0
jmp 0x486c5f
push 0x208
call fcn.004784b0
add esp, 4
test eax, eax
je 0x486c6e
mov ecx, dword [esi]
push ecx
mov ecx, eax
call fcn.00473e70
jmp 0x486c5f
push 0x220
call fcn.004784b0
add esp, 4
test eax, eax
je 0x486c6e
mov edx, dword [esi]
mov ecx, eax
push edx
call fcn.00473900
test eax, eax
je 0x486c6e
lea ecx, [ebx + 8]
push ecx
mov ecx, eax
call fcn.0041cd10
movsx edx, word [edi]
inc ebp
add esi, 8
cmp ebp, edx
jl 0x486bfa
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2000
ret 4

Function at 0x486d60
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
push esi
test eax, eax
mov esi, ecx
je 0x486d8f
push 0
push eax
mov eax, dword [0x67a8cc]
push eax
call dword [sym.imp.MSVCRT.dll_fseek]
mov ecx, dword [0x67a8cc]
push ecx
push 1
push 0x58
push esi
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x1c
pop esi
ret 4
Function at 0x487010
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x50008
call fcn.005322e0
mov eax, dword [esp + 0x5000c]
push ebx
push ebp
push esi
test eax, eax
push edi
mov ebx, ecx
je 0x487120
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
push 0
push eax
mov eax, dword [0x67a8cc]
push eax
call edi
mov ecx, dword [0x67a8cc]
mov ebp, dword [sym.imp.MSVCRT.dll_fread]
push ecx
push 1
push 4
push ebx
call ebp
mov edx, dword [0x67a8cc]
lea eax, [ebx + 4]
push edx
push 1
push 2
push eax
call ebp
mov ecx, dword [0x67a8cc]
lea esi, [ebx + 6]
push ecx
push 1
push 2
push esi
call ebp
mov edx, dword [0x67a8cc]
lea eax, [esp + 0x50]
push edx
push 1
push 4
push eax
mov dword [esp + 0x60], 0
call ebp
mov ecx, dword [esp + 0x60]
mov edx, dword [0x67a8cc]
add esp, 0x4c
push 0
push ecx
push edx
call edi
mov ecx, 0x13fff
xor eax, eax
lea edi, [esp + 0x28]
mov dword [esp + 0x24], 0
rep stosd dword es:[edi], eax
mov eax, dword [0x67a8cc]
xor ecx, ecx
mov cx, word [esi]
push eax
push ecx
lea edx, [esp + 0x2c]
push 4
push edx
call ebp
xor eax, eax
mov ax, word [esi]
lea ecx, [eax + eax*4]
lea edx, [eax + ecx*2]
shl edx, 3
push edx
call fcn.00478e60
xor edi, edi
add esp, 0x20
cmp word [esi], di
mov dword [ebx + 8], eax
jbe 0x487120
mov dword [esp + 0x10], edi
lea ebp, [esp + 0x18]
mov eax, dword [ebp]
mov ecx, dword [ebx + 8]
mov edx, dword [esp + 0x10]
push eax
add ecx, edx
call fcn.00486d60
mov ecx, dword [esp + 0x10]
inc edi
add ecx, 0x58
add ebp, 4
mov dword [esp + 0x10], ecx
xor ecx, ecx
mov cx, word [esi]
cmp edi, ecx
jl 0x4870f6
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x50008
ret 4

Function at 0x4872f0
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x408
test eax, eax
push ebx
push ebp
push esi
push edi
mov ebx, ecx
je 0x4873dc
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
push 0
push eax
mov eax, dword [0x67a8cc]
push eax
call edi
mov ecx, dword [0x67a8cc]
mov ebp, dword [sym.imp.MSVCRT.dll_fread]
push ecx
push 1
push 4
push ebx
call ebp
mov edx, dword [0x67a8cc]
lea esi, [ebx + 4]
push edx
push 1
push 4
push esi
call ebp
mov eax, dword [0x67a8cc]
lea ecx, [esp + 0x40]
push eax
push 1
push 4
push ecx
mov dword [esp + 0x50], 0
call ebp
mov edx, dword [esp + 0x50]
mov eax, dword [0x67a8cc]
push 0
push edx
push eax
call edi
mov edx, dword [esi]
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x64]
mov dword [esp + 0x60], 0
add esp, 0x48
rep stosd dword es:[edi], eax
mov ecx, dword [0x67a8cc]
lea eax, [esp + 0x18]
push ecx
push edx
push 4
push eax
call ebp
mov eax, dword [esi]
lea ecx, [eax + eax*2]
shl ecx, 2
push ecx
call fcn.00478e60
mov dword [ebx + 8], eax
mov eax, dword [esi]
xor edi, edi
add esp, 0x14
cmp eax, edi
jle 0x4873dc
mov dword [esp + 0x10], edi
lea ebp, [esp + 0x18]
mov edx, dword [ebp]
mov ecx, dword [ebx + 8]
push edx
mov edx, dword [esp + 0x14]
add ecx, edx
call fcn.00487010
mov ecx, dword [esp + 0x10]
mov eax, dword [esi]
inc edi
add ebp, 4
add ecx, 0xc
cmp edi, eax
mov dword [esp + 0x10], ecx
jl 0x4873b5
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x408
ret 4
Function at 0x487400
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [0x67a8cc]
sub esp, 0x14
push ebx
push esi
push edi
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
push 0
push 0
mov esi, ecx
push eax
call edi
mov ecx, dword [0x67a8cc]
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push ecx
push 1
push 0x20
push 0x67a7e8
call ebx
mov edx, dword [0x67a7fc]
mov eax, dword [0x67a8cc]
push 0
push edx
push eax
call edi
mov ecx, dword [0x67a8cc]
push ecx
push 1
push 0x14
push 0x67a7d0
call ebx
mov edx, dword [0x67a7d0]
mov eax, dword [0x67a8cc]
push 0
push edx
push eax
call edi
mov ecx, dword [0x67a8cc]
add esp, 0x44
lea edx, [esp + 0xc]
push ecx
push 1
push 0x14
push edx
call ebx
mov eax, dword [esp + 0x2c]
mov ecx, dword [0x67a8cc]
push 0
push eax
push ecx
call edi
mov edx, dword [0x67a8cc]
push edx
push 1
push 0x350
push 0x6969c0
call ebx
add esp, 0x2c
mov ecx, 0x6969c0
call fcn.004b4820
push eax
mov ecx, esi
call fcn.00487510
mov eax, dword [esi + 4]
mov cx, word [esi + 8]
cmp ax, 1
jb 0x4874d5
cmp cx, 1
jb 0x4874d5
mov dword [0x5974c0], eax
mov eax, dword [esi + 8]
mov dword [0x5974c4], eax
mov al, byte [esi]
pop edi
pop esi
pop ebx
test al, 8
push 1
push 0x26d0
je 0x4874f5
call fcn.00493e00
mov ecx, eax
call fcn.004903e0
add esp, 0x14
ret
call fcn.00493e00
mov ecx, eax
call fcn.00490410
add esp, 0x14
ret

Function at 0x487510
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
push esi
test eax, eax
mov esi, ecx
je 0x487560
push 0
push eax
mov eax, dword [0x67a8cc]
push eax
call dword [sym.imp.MSVCRT.dll_fseek]
mov ecx, dword [0x67a8cc]
push ecx
push 1
push 0x14
push esi
call dword [sym.imp.MSVCRT.dll_fread]
mov eax, dword [esi + 4]
mov cx, word [esi + 8]
add esp, 0x1c
cmp ax, 1
jb 0x487560
cmp cx, 1
jb 0x487560
mov dword [0x67a8d0], eax
mov edx, dword [esi + 8]
mov dword [0x67a8d4], edx
pop esi
ret 4

Function at 0x487640
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
push esi
test eax, eax
mov esi, ecx
je 0x4876f3
push edi
push 0
push eax
mov eax, dword [0x67a8cc]
push eax
call dword [sym.imp.MSVCRT.dll_fseek]
mov ecx, dword [0x67a8cc]
push ecx
push 1
push 0x90
push esi
call dword [sym.imp.MSVCRT.dll_fread]
mov edx, dword [0x67a8e4]
mov eax, dword [esi]
add esp, 0x1c
test edx, eax
je 0x4876de
mov edi, dword [esi + 0x88]
test edi, edi
je 0x4876e8
push 0xc
call sub.MFC42u.DLL_operatornew
add esp, 4
test eax, eax
je 0x4876bf
mov ecx, eax
call fcn.00482d20
push edi
mov ecx, eax
mov dword [esi + 0x88], eax
call fcn.00482d30
mov dword [esi + 0x8c], 0
pop edi
pop esi
ret 4
xor eax, eax
push edi
mov ecx, eax
mov dword [esi + 0x88], eax
call fcn.00482d30
mov dword [esi + 0x8c], 0
pop edi
pop esi
ret 4
mov dword [esi + 0x88], 0
mov dword [esi + 0x8c], 0
pop edi
pop esi
ret 4
Function at 0x4878d0
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x1000
call fcn.005322e0
mov eax, dword [esp + 0x1004]
push ebx
push ebp
xor ebp, ebp
push esi
cmp eax, ebp
push edi
mov esi, ecx
je 0x487995
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
push ebp
push eax
mov eax, dword [0x67a8cc]
push eax
call edi
mov ecx, dword [0x67a8cc]
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push ecx
push 1
push 0xc
push esi
call ebx
mov eax, dword [esi + 4]
add esp, 0x1c
cmp eax, ebp
jle 0x487995
mov eax, dword [esi + 8]
cmp eax, ebp
je 0x487995
mov edx, dword [0x67a8cc]
push ebp
push eax
push edx
call edi
mov ecx, 0x3ff
xor eax, eax
lea edi, [esp + 0x20]
mov dword [esp + 0x1c], ebp
rep stosd dword es:[edi], eax
mov eax, dword [0x67a8cc]
mov ecx, dword [esi + 4]
push eax
push ecx
lea edx, [esp + 0x24]
push 4
push edx
call ebx
mov eax, dword [esi + 4]
lea eax, [eax + eax*8]
shl eax, 4
push eax
call fcn.00478e60
mov dword [esi + 8], eax
mov eax, dword [esi + 4]
add esp, 0x20
xor edi, edi
cmp eax, ebp
jle 0x487995
lea ebx, [esp + 0x10]
mov ecx, dword [ebx]
push ecx
mov ecx, dword [esi + 8]
add ecx, ebp
call fcn.00487640
mov eax, dword [esi + 4]
inc edi
add ebx, 4
add ebp, 0x90
cmp edi, eax
jl 0x487977
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1000
ret 4
Function at 0x488db0
Capabilities:
Read file on windows

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
test edi, 0x40000000
je 0x488df6
push edi
call fcn.00488f20
test eax, eax
je 0x488def
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
lea esi, [eax + edx]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, 1
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
ret 0x10
pop edi
xor eax, eax
pop esi
ret 0x10
mov esi, dword [esp + 0x14]
push ebx
mov ebx, dword [esp + 0x14]
push ebp
mov ebp, dword [esp + 0x20]
mov dword [esp + 0x14], 7
push 0
push ebx
push edi
call dword [sym.imp.MSVCRT.dll__lseek]
push esi
push ebp
push edi
call dword [sym.imp.MSVCRT.dll__read]
add esp, 0x18
cmp eax, esi
je 0x488e3b
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esp + 0x14]
dec eax
test eax, eax
mov dword [esp + 0x14], eax
jg 0x488e0c
mov ecx, dword [esp + 0x14]
mov eax, 1
test ecx, ecx
jg 0x488e59
push esi
push ebx
push str.read_0X_X___d__d_error_
call fcn.00458ab0
add esp, 0xc
xor eax, eax
pop ebp
pop ebx
pop edi
pop esi
ret 0x10
Function at 0x489740
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x510
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 8]
cmp eax, 1
jne 0x4897f3
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x21]
mov byte [esp + 0x20], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esi + 0xc]
xor edx, edx
mov ecx, 5
div ecx
cmp edx, 1
je 0x489793
push 0
call fcn.004c2ad0
mov cl, byte [eax + 0x3ee]
add esp, 4
test cl, 0x20
je 0x4897ad
push 0
call fcn.004c2ad0
add esp, 4
mov ecx, eax
call fcn.004c29b0
test eax, eax
je 0x4897ad
cmp byte [eax], 0
jne 0x4897c0
mov edx, dword [esi + 0xc]
inc edx
mov eax, edx
mov dword [esi + 0xc], edx
and eax, 3
mov eax, dword [eax*4 + 0x586fa0]
push str._tmp_ping.txt
push eax
lea edx, [esp + 0x28]
push str.ping__s__c_1____s_
push edx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x10
mov dword [esi + 8], 2
mov eax, dword [0x6d7478]
mov dword [esi + 0x10], eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x510
ret
mov ebx, 2
cmp eax, ebx
jne 0x489918
mov eax, dword [0x6d7478]
mov edi, dword [esi + 0x10]
mov ecx, eax
sub ecx, edi
cmp ecx, 0x64
jb 0x48982d
mov ecx, esi
mov dword [esi + 0x10], eax
call fcn.00489930
mov eax, dword [esi + 0x18]
pop edi
inc eax
mov dword [esi + 0x18], eax
pop esi
pop ebp
pop ebx
add esp, 0x510
ret
push 0x585050
push str._tmp_ping.txt
call dword [sym.imp.MSVCRT.dll_fopen]
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x489918
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x121]
mov byte [esp + 0x120], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push ebp
push 0x400
lea edx, [esp + 0x128]
push 1
push edx
stosb byte es:[edi], al
call dword [sym.imp.MSVCRT.dll_fread]
push ebp
call dword [sym.imp.MSVCRT.dll_fclose]
lea eax, [esp + 0x134]
add esp, 0x14
test eax, eax
je 0x489915
mov al, byte [esp + 0x120]
test al, al
je 0x489915
mov dword [esp + 0x14], ebx
mov ebx, dword [sym.imp.MSVCRT.dll_strstr]
mov dword [esp + 0x18], str.ttl
mov dword [esp + 0x1c], str.error
mov dword [esp + 0x10], 1
xor edi, edi
lea ebp, [esp + 0x18]
mov ecx, dword [ebp]
lea edx, [esp + 0x120]
push ecx
push edx
call ebx
add esp, 8
test eax, eax
je 0x4898e1
cmp byte [eax], 0
jne 0x4898ec
inc edi
add ebp, 4
cmp edi, 2
jae 0x489918
jmp 0x4898c7
mov ecx, esi
call fcn.00489930
mov edi, dword [esp + edi*4 + 0x10]
cmp edi, 1
mov dword [esi + 4], edi
jne 0x48981b
mov dword [esi + 0x18], 0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x510
ret
mov dword [esi + 4], ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x510
ret