joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47cbf0
Capabilities:
Get file size
Read file on windows
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x600f80]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0x1c], 0x10
lea eax, [ebp + 8]
push ebx
cmovae eax, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x30], edx
push 0x80
push eax
mov dword [ebp - 0x2c], edi
mov dword [edi], 0
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
cmp dword [ebp + 0x1c], 0x10
lea eax, [ebp + 8]
push 0
cmovae eax, dword [ebp + 8]
push 0x80
push 3
push 0
push 1
push bind
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x47cc5a
or esi, eax
jmp 0x47cd42
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x47cc74
mov esi, 0xfffffffe
jmp 0x47cd42
cmp esi, 0x11
jae 0x47cc83
mov esi, 0xfffffffd
jmp 0x47cd42
sub esi, 0x10
push esi
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [edi], eax
test eax, eax
jne 0x47cca4
lea esi, [eax - 4]
jmp 0x47cd42
push 0
lea ecx, [ebp - 0x28]
push ecx
push esi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x47ccbf
lea esi, [eax - 5]
jmp 0x47cd42
cmp dword [ebp - 0x28], esi
je 0x47cccb
mov esi, 0xfffffffa
jmp 0x47cd42
push 0
lea eax, [ebp - 0x28]
push eax
push 0x10
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x47cce7
lea esi, [eax - 7]
jmp 0x47cd42
cmp dword [ebp - 0x28], 0x10
je 0x47ccf4
mov esi, 0xfffffff8
jmp 0x47cd42
lea eax, [ebp - 0x14]
push eax
push esi
call fcn.0042c9c0
mov edx, dword [edi]
mov ecx, eax
call fcn.0049ab59
xorps xmm0, xmm0
lea ecx, [ebp - 0x24]
add esp, 8
movdqa xmmword [0xa95810], xmm0
lea edx, [ebp - 0x14]
mov edi, 0xc
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x47cd3a
add ecx, 4
add edx, 4
sub edi, 4
jae 0x47cd20
mov eax, dword [ebp - 0x30]
mov dword [eax], esi
xor esi, esi
jmp 0x47cd3f
mov esi, 0xfffffff7
mov edi, dword [ebp - 0x2c]
mov eax, dword [edi]
test eax, eax
je 0x47cd62
test esi, esi
je 0x47cd62
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [edi], 0
cmp ebx, 0xffffffff
je 0x47cd6e
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp + 0x1c], 0x10
jb 0x47cd7f
push dword [ebp + 8]
call fcn.0053e195
add esp, 4
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0053cd12
mov esp, ebp
pop ebp
ret
Function at 0x47d0e0
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x590358
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x600f80]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
sub esp, 0x18
mov dword [ebp - 4], 0
mov ecx, esp
lea eax, [ebp + 8]
push 0xffffffffffffffff
push 0
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push eax
mov byte [ecx], 0
call fcn.004083b0
mov edx, 1
lea ecx, [ebp - 0x28]
call fcn.0047cda0
add esp, 0x18
mov byte [ebp - 4], 1
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 0x10
mov esi, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
cmovae eax, dword [ebp - 0x28]
push 0x80
push eax
call esi
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
push 0
cmovae eax, dword [ebp - 0x28]
push 0x80
push 3
push 0
push 1
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
jne 0x47d18d
or esi, eax
jmp 0x47d236
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 0x18
lea eax, [ebp + 8]
mov ecx, esp
push 0xffffffffffffffff
push 0
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push eax
mov byte [ecx], 0
call fcn.004083b0
mov edx, 2
lea ecx, [ebp - 0x44]
call fcn.0047cda0
add esp, 0x18
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
cmp ecx, eax
je 0x47d1dc
push 0xffffffffffffffff
push 0
push eax
call fcn.004083b0
cmp dword [ebp - 0x30], 0x10
jb 0x47d1ed
push dword [ebp - 0x44]
call fcn.0053e195
add esp, 4
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
push 0x80
cmovae eax, dword [ebp - 0x28]
push eax
call esi
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
push 0
cmovae eax, dword [ebp - 0x28]
push 0x80
push 3
push 0
push 1
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
jne 0x47d22d
mov esi, 0xfffffffe
jmp 0x47d236
push eax
xor esi, esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x14], 0x10
jb 0x47d247
push dword [ebp - 0x28]
call fcn.0053e195
add esp, 4
cmp dword [ebp + 0x1c], 0x10
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
jb 0x47d26a
push dword [ebp + 8]
call fcn.0053e195
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0053cd12
mov esp, ebp
pop ebp
ret
Function at 0x47d930
Capabilities:
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x590408
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x600f80]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
sub esp, 0x18
mov dword [ebp - 4], 0
mov ecx, esp
lea eax, [ebp + 8]
push 0xffffffffffffffff
push 0
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push eax
mov byte [ecx], 0
call fcn.004083b0
mov edx, 3
lea ecx, [ebp - 0x28]
call fcn.0047cda0
add esp, 0x18
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 0x10
cmovae eax, dword [ebp - 0x28]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp dword [ebp - 0x14], 0x10
jb 0x47d9cc
push dword [ebp - 0x28]
call fcn.0053e195
add esp, 4
cmp dword [ebp + 0x1c], 0x10
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
jb 0x47d9ef
push dword [ebp + 8]
call fcn.0053e195
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0053cd12
mov esp, ebp
pop ebp
ret

Function at 0x47dd60
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5904b8
mov eax, dword fs:[0]
push eax
sub esp, 0x210
mov eax, dword [0x600f80]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x21c], 0
lea eax, [ebp - 0x114]
mov dword [ebp - 4], 0
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
cmp dword [ebp + 0x18], 0
je 0x47de1e
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push 0xffffffffffffffff
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x114]
push 0x104
push eax
call fcn.0053e40b
lea ecx, [ebp - 0x218]
add esp, 0x10
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x47ddf0
sub ecx, edx
lea eax, [ebp + 8]
cmp dword [ebp + 0x1c], 0x10
push 0xffffffffffffffff
cmovae eax, dword [ebp + 8]
push eax
mov eax, 0x104
sub eax, ecx
push eax
lea eax, [ebp - 0x114]
push eax
call fcn.0053d744
add esp, 0x10
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
mov byte [esi], 0
cmp byte [ebp - 0x114], 0
jne 0x47de3c
xor ecx, ecx
jmp 0x47de4e
lea ecx, [ebp - 0x114]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x47de45
sub ecx, edx
push ecx
lea eax, [ebp - 0x114]
mov ecx, esi
push eax
call fcn.004085a0
cmp dword [ebp + 0x1c], 0x10
jb 0x47de6e
push dword [ebp + 8]
call fcn.0053e195
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0053cd12
mov esp, ebp
pop ebp
ret
Function at 0x4808e0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x600f80]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
push ebx
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ecx
push ebx
push 0x80
push 3
push ebx
push 1
push bind
push eax
mov dword [ebp - 8], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
test edi, edi
je 0x4809fd
cmp edi, 0xffffffff
je 0x4809fd
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov dword [ebp - 0xc], eax
cmp eax, 0xffffffff
je 0x4809be
push eax
push 8
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
test ebx, ebx
je 0x4809be
push 0
lea eax, [ebp - 8]
push eax
push dword [ebp - 0xc]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4809be
mov eax, dword [ebp - 0xc]
add eax, eax
push eax
push 8
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [ebp - 0x10]
mov dword [ecx], eax
test eax, eax
je 0x4809be
mov edx, dword [ebp - 0xc]
mov ecx, ebx
push eax
call fcn.00498d5b
add esp, 4
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, esi
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053cd12
mov esp, ebp
pop ebp
ret 8
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [sym.imp.KERNEL32.dll_HeapFree]
test ebx, ebx
je 0x4809d7
push ebx
push 0
call esi
push eax
call edi
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
test eax, eax
je 0x4809e8
push eax
push 0
call esi
push eax
call edi
pop esi
pop edi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053cd12
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop ebx
call fcn.0053cd12
mov esp, ebp
pop ebp
ret 8
Function at 0x485040
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x5f6fd0
push 0x542a70
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x600f80]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov edi, edx
mov esi, ecx
mov dword [esi], edi
mov ebx, dword [ebp + 8]
mov dword [esi + 4], ebx
mov dword [ebp - 4], 0
push 0x40
call fcn.00484fb0
add esp, 4
mov dword [ebp - 4], 0xfffffffe
mov eax, 0x5a4d
cmp word [edi], ax
je 0x4850b8
mov eax, 0xc000012f
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 0x3c]
test eax, eax
jne 0x4850d6
mov eax, 0xc000007b
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp eax, 0x10000000
jae 0x4850bf
cmp eax, ebx
jae 0x4850bf
lea edx, [eax + edi]
mov dword [esi + 8], edx
mov dword [ebp - 4], 1
push 0x18
mov ecx, esi
call fcn.00484fb0
mov edx, dword [esi + 8]
movzx eax, word [edx + 6]
lea ecx, [eax + eax*4]
movzx eax, word [edx + 0x14]
lea eax, [eax + ecx*8]
add eax, 0x18
push eax
mov ecx, esi
call fcn.00484fb0
add esp, 8
mov dword [ebp - 4], 0xfffffffe
mov ecx, dword [esi + 8]
cmp dword [ecx], 0x4550
jne 0x4850bf
movzx eax, word [ecx + 0x18]
mov word [esi + 0x14], ax
mov edx, 0x10b
cmp ax, dx
je 0x485148
mov edx, 0x20b
cmp ax, dx
jne 0x4850bf
movzx eax, word [ecx + 6]
mov dword [esi + 0xc], eax
movzx eax, word [ecx + 0x14]
add eax, 0x18
add eax, ecx
mov dword [esi + 0x10], eax
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4851d0
Capabilities:
Get file attributes
Map section object

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x600f80]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x40], 0
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
test ecx, ecx
jne 0x485214
mov eax, 0xc0000030
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0053cd12
mov esp, ebp
pop ebp
ret
sub esp, 0x14
mov edx, ecx
lea ecx, [ebp - 0x48]
push 0x1000a1
call fcn.0048dba0
add esp, 0x18
test eax, eax
js 0x4852da
mov ebx, dword [ebp - 0x48]
lea eax, [ebp - 0x34]
push 5
push 0x18
push eax
lea eax, [ebp - 0x3c]
push eax
push ebx
call dword [sym.imp.ntdll.dll_NtQueryInformationFile]
mov ecx, eax
test ecx, ecx
jns 0x485251
mov esi, eax
jmp 0x48525f
mov eax, dword [ebp - 0x2c]
mov esi, ecx
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x10], eax
test ecx, ecx
js 0x4852c5
push ebx
push 0x8000000
push 0x20
lea eax, [ebp - 0x14]
push eax
push 0
push 0xf001f
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.ntdll.dll_NtCreateSection]
mov esi, eax
test esi, esi
js 0x4852c5
mov eax, dword [ebp - 0x14]
push 0x20
push 0
push 1
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x44]
mov dword [ebp - 0x44], 0
push eax
push 0xffffffffffffffff
push dword [ebp - 0x40]
call dword [sym.imp.ntdll.dll_NtMapViewOfSection]
mov esi, eax
test esi, esi
js 0x4852c5
mov ecx, dword [ebp - 0x4c]
mov eax, dword [ebp - 0x44]
mov dword [edi], eax
mov eax, dword [ebp - 0x14]
mov dword [ecx], eax
mov eax, dword [ebp - 0x40]
mov edi, dword [sym.imp.ntdll.dll_NtClose]
test eax, eax
je 0x4852d5
push eax
call edi
push ebx
call edi
mov eax, esi
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0053cd12
mov esp, ebp
pop ebp
ret

Function at 0x487ac0
Capabilities:
Terminate process

Disassembly:
push esi
push ecx
push 0
push 0x401
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
jne 0x487adc
test eax, eax
pop esi
setne al
ret
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
test eax, eax
pop esi
setne al
ret
Function at 0x487f50
Capabilities:
Hash data using sha1
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x590c8b
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x19094
call fcn.0053f970
mov eax, dword [0x600f80]
xor eax, esp
mov dword [esp + 0x19090], eax
push ebx
push esi
push edi
mov eax, dword [0x600f80]
xor eax, esp
push eax
lea eax, [esp + 0x190a8]
mov dword fs:[0], eax
mov dword [esp + 0x10], edx
mov edi, ecx
xorps xmm0, xmm0
mov dword [esp + 0x38], 0
xor bl, bl
movq qword [esp + 0x30], xmm0
mov byte [esp + 0x30], bl
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
lea eax, [esp + 0x14]
mov dword [esp + 0x190b0], 0
push eax
call fcn.00488850
cmp dword [eax + 0x14], 0x10
jb 0x487fdf
mov eax, dword [eax]
push eax
lea eax, [esp + 0x30]
push edi
push eax
call fcn.005418e3
add esp, 0xc
mov esi, eax
cmp dword [esp + 0x28], 0x10
jb 0x488003
push dword [esp + 0x14]
call fcn.0053e195
add esp, 4
test esi, esi
jne 0x48800f
mov eax, dword [esp + 0x2c]
test eax, eax
jne 0x48806c
lea ecx, [esp + 0x30]
call fcn.00493361
test al, al
je 0x48811d
lea eax, [esp + 0x14]
push eax
call fcn.00488850
cmp dword [eax + 0x14], 0x10
jb 0x488032
mov eax, dword [eax]
push eax
lea eax, [esp + 0x30]
push edi
push eax
call fcn.005418e3
add esp, 0xc
mov esi, eax
cmp dword [esp + 0x28], 0x10
jb 0x488056
push dword [esp + 0x14]
call fcn.0053e195
add esp, 4
test esi, esi
jne 0x48811d
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x48811d
mov bl, 1
mov dword [esp + 0x3c], 0x67452301
xor edi, edi
mov dword [esp + 0x40], 0xefcdab89
mov dword [esp + 0x44], 0x98badcfe
mov dword [esp + 0x48], 0x10325476
mov dword [esp + 0x4c], 0xc3d2e1f0
mov dword [esp + 0x54], 0
mov dword [esp + 0x50], 0
jmp 0x4880b0
push eax
push 0x19000
lea eax, [esp + 0xa4]
push 1
push eax
call fcn.00541aed
mov esi, eax
lea edx, [esp + 0xac]
push esi
lea ecx, [esp + 0x50]
add edi, esi
call fcn.00491311
add esp, 0x14
cmp esi, 0x19000
jne 0x4880f3
cmp edi, 0x186a0
jge 0x4880f3
mov eax, dword [esp + 0x2c]
jmp 0x4880b0
push dword [esp + 0x2c]
call fcn.005413f4
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x40]
add esp, 4
call fcn.004913b6
test bl, bl
je 0x488119
lea ecx, [esp + 0x30]
call fcn.004933e6
mov bl, 1
jmp 0x488128
lea ecx, [esp + 0x30]
call fcn.004933e6
xor bl, bl
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
mov eax, dword [esp + 0x34]
test eax, eax
je 0x48813d
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
mov ecx, dword [esp + 0x190a8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x19090]
xor ecx, esp
call fcn.0053cd12
mov esp, ebp
pop ebp
ret
Function at 0x488170
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x590ccb
mov eax, dword fs:[0]
push eax
mov eax, 0x7d0a4
call fcn.0053f970
mov eax, dword [0x600f80]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x7d094], edx
mov esi, ecx
xorps xmm0, xmm0
mov dword [ebp - 0x7d014], 0
movq qword [ebp - 0x7d01c], xmm0
mov byte [ebp - 0x7d08d], 0
mov byte [ebp - 0x7d01c], 0
mov dword [ebp - 0x7d018], 0
mov dword [ebp - 0x7d014], 0
lea eax, [ebp - 0x7d0ac]
mov dword [ebp - 4], 0
push eax
call fcn.00488850
cmp dword [eax + 0x14], 0x10
jb 0x4881fc
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x7d08c]
push esi
push eax
call fcn.005418e3
add esp, 0xc
mov edi, eax
cmp dword [ebp - 0x7d098], 0x10
jb 0x488226
push dword [ebp - 0x7d0ac]
call fcn.0053e195
add esp, 4
test edi, edi
jne 0x488234
mov edx, dword [ebp - 0x7d08c]
test edx, edx
jne 0x4882a2
lea ecx, [ebp - 0x7d01c]
call fcn.00493361
test al, al
je 0x488354
lea eax, [ebp - 0x7d0ac]
push eax
call fcn.00488850
cmp dword [eax + 0x14], 0x10
jb 0x48825b
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x7d08c]
push esi
push eax
call fcn.005418e3
add esp, 0xc
mov esi, eax
cmp dword [ebp - 0x7d098], 0x10
jb 0x488285
push dword [ebp - 0x7d0ac]
call fcn.0053e195
add esp, 4
test esi, esi
jne 0x488354
mov edx, dword [ebp - 0x7d08c]
test edx, edx
je 0x488354
mov byte [ebp - 0x7d08d], 1
lea ecx, [ebp - 0x7d088]
call fcn.0049f973
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
xor ebx, ebx
jmp 0x4882c0
push edx
push 0x7d000
lea eax, [ebp - 0x7d010]
inc ebx
push 1
push eax
call fcn.00541aed
mov edi, eax
lea edx, [ebp - 0x7d010]
push edi
lea ecx, [ebp - 0x7d088]
call fcn.0049f9bd
mov eax, 0x66666667
mov ecx, ebx
imul ebx
add esp, 0x14
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
lea eax, [eax + eax*4]
sub ecx, eax
jne 0x488309
push 5
jmp 0x48830b
push 1
call esi
cmp edi, 0x7d000
jne 0x48831d
mov edx, dword [ebp - 0x7d08c]
jmp 0x4882c0
push dword [ebp - 0x7d08c]
call fcn.005413f4
mov edx, dword [ebp - 0x7d094]
lea ecx, [ebp - 0x7d088]
call fcn.0049fa3d
add esp, 4
cmp byte [ebp - 0x7d08d], 0
je 0x488350
lea ecx, [ebp - 0x7d01c]
call fcn.004933e6
mov bl, 1
jmp 0x488361
lea ecx, [ebp - 0x7d01c]
call fcn.004933e6
xor bl, bl
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
mov eax, dword [ebp - 0x7d018]
test eax, eax
je 0x488378
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0053cd12
mov esp, ebp
pop ebp
ret
Function at 0x489210
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x590d38
mov eax, dword fs:[0]
push eax
sub esp, 0x130
mov eax, dword [0x600f80]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov edi, ecx
test edi, edi
je 0x4893d0
cmp edi, 0xffffffff
je 0x4893d0
test esi, esi
je 0x4893d0
call fcn.0048f120
test al, al
je 0x4893d0
push 0x5e61ac
lea ecx, [ebp - 0x28]
call fcn.00407be0
xorps xmm0, xmm0
mov dword [ebp - 4], 0
lea edx, [ebp - 0x138]
movsd qword [ebp - 0x138], xmm0
mov ecx, edi
call fcn.0048e250
test eax, eax
lea eax, [esi + 0x31]
jne 0x4892b8
push 0x5e61ac
push eax
call fcn.00484f60
add esp, 8
lea edx, [ebp - 0x28]
mov ecx, edi
call fcn.0048e010
mov byte [esi + 0x30], 0
jmp 0x4892da
movsd xmm0, qword [ebp - 0x138]
sub esp, 8
mov byte [esi + 0x30], 1
movsd qword [esp], xmm0
push str.p___f
push eax
call fcn.00484f60
add esp, 0x10
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
push 0x100
cmovae eax, dword [ebp - 0x28]
push eax
lea eax, [esi + 0x131]
push 0x100
push eax
call fcn.0053e40b
add esp, 0x10
lea edx, [esi + 0x18]
mov ecx, edi
call fcn.00489140
mov ecx, edi
call fcn.0048f050
mov ecx, edi
test al, al
je 0x489361
lea edx, [ebp - 0x120]
call fcn.0048eed0
test eax, eax
jne 0x489370
movzx eax, word [ebp - 0x108]
mov word [esi], ax
mov eax, dword [ebp - 0x118]
mov dword [esi + 4], eax
movzx eax, word [ebp - 0x10a]
push 0
mov word [esi + 8], ax
mov eax, dword [ebp - 0xd0]
push edi
mov dword [esi + 0xc], eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esi + 0x10], eax
movzx eax, word [ebp - 0xc4]
jmp 0x4893be
lea edx, [ebp - 0x130]
call fcn.0048ef90
test eax, eax
je 0x489384
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0x28]
mov esi, eax
call fcn.00407cb0
mov eax, esi
jmp 0x4893d3
movzx eax, word [ebp - 0x118]
mov word [esi], ax
mov eax, dword [ebp - 0x128]
mov dword [esi + 4], eax
movzx eax, word [ebp - 0x11a]
push 0
mov word [esi + 8], ax
mov eax, dword [ebp - 0xe0]
push edi
mov dword [esi + 0xc], eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esi + 0x10], eax
movzx eax, word [ebp - 0xd4]
mov word [esi + 0x14], ax
lea ecx, [ebp - 0x28]
xor esi, esi
call fcn.00407cb0
mov eax, esi
jmp 0x4893d3
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0053cd12
mov esp, ebp
pop ebp
ret
Function at 0x48a9b0
Capabilities:
Get networking parameters

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40c
mov eax, dword [0x600f80]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
push 0x400
lea eax, [ebp - 0x404]
mov dword [ebp - 0x40c], 0
push 0
push eax
mov ebx, ecx
call fcn.00540250
add esp, 0xc
mov dword [ebp - 0x408], 0x248
push 0x248
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
je 0x48aace
push esi
mov esi, dword [sym.imp.IPHLPAPI.DLL_GetNetworkParams]
lea eax, [ebp - 0x408]
push eax
push edi
call esi
cmp eax, 0x6f
jne 0x48aa52
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push 0
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push dword [ebp - 0x408]
push 8
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
je 0x48aacd
lea eax, [ebp - 0x408]
push eax
push edi
call esi
test eax, eax
jne 0x48aab9
push 0x400
push eax
lea eax, [ebp - 0x404]
push eax
lea esi, [edi + 0x10c]
call fcn.00540250
add esp, 0xc
test esi, esi
je 0x48aab9
nop
lea eax, [esi + 4]
push eax
lea eax, [ebp - 0x404]
push 0x400
push eax
call fcn.00556ade
mov esi, dword [esi]
add esp, 0xc
test esi, esi
je 0x48aab9
push 0x5e2c2c
lea eax, [ebp - 0x404]
push 0x400
push eax
call fcn.00556ade
add esp, 0xc
jmp 0x48aa80
test edi, edi
je 0x48aacd
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop esi
mov dword [ebx + 0x14], 0xf
mov dword [ebx + 0x10], 0
mov byte [ebx], 0
cmp byte [ebp - 0x404], 0
jne 0x48aaec
xor ecx, ecx
jmp 0x48aafe
lea ecx, [ebp - 0x404]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x48aaf5
sub ecx, edx
push ecx
lea eax, [ebp - 0x404]
mov ecx, ebx
push eax
call fcn.004085a0
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
xor ecx, ebp
pop ebx
call fcn.0053cd12
mov esp, ebp
pop ebp
ret