joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4708c0
Capabilities:
Check if file exists
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x60fd61
mov eax, dword fs:[0]
push eax
sub esp, 0x270
mov eax, dword [0x69f000]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
lea esi, [edi + 0x4c]
push esi
lea ecx, [ebp - 0x230]
call fcn.0040bb80
mov dword [ebp - 4], 0
lea eax, [ebp - 0x230]
cmp dword [ebp - 0x21c], 8
cmovae eax, dword [ebp - 0x230]
push eax
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.005d894d
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveExtensionW]
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x470944
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x230]
call fcn.0040be20
xorps xmm0, xmm0
mov dword [ebp - 0x250], 0
xor eax, eax
mov dword [ebp - 0x24c], 7
movups xmmword [ebp - 0x260], xmm0
mov word [ebp - 0x260], ax
lea ecx, [ebp - 0x260]
mov byte [ebp - 4], 1
call fcn.00471c00
lea eax, [ebp - 0x260]
mov edx, 0x6653e4
push eax
lea ecx, [ebp - 0x278]
call fcn.0041d990
add esp, 4
mov byte [ebp - 4], 2
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x4709c4
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0x230]
call fcn.0040ff20
lea ecx, [ebp - 0x278]
call fcn.0040bd90
xorps xmm0, xmm0
mov dword [ebp - 0x238], 0
xor eax, eax
mov dword [ebp - 0x234], 7
movups xmmword [ebp - 0x248], xmm0
mov word [ebp - 0x248], ax
lea edx, [ebp - 0x248]
mov byte [ebp - 4], 3
mov ecx, esi
call fcn.00471f70
lea edx, [ebp - 0x248]
lea ecx, [ebp - 0x230]
call fcn.00471da0
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
je 0x470ab3
cmp dword [esi + 0x10], 0
je 0x470ab3
cmp dword [ebp - 0x220], 0
je 0x470ab3
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
cmp dword [esi + 0x14], 8
jb 0x470a72
mov esi, dword [esi]
push eax
push esi
call fcn.005e107a
add esp, 8
test eax, eax
jne 0x470ab3
lea ecx, [edi + 0x98]
lea eax, [ebp - 0x230]
cmp ecx, eax
je 0x470aaa
cmp dword [ebp - 0x21c], 8
push dword [ebp - 0x220]
cmovae eax, dword [ebp - 0x230]
push eax
call fcn.0040be20
mov byte [ebp - 0x279], 1
jmp 0x470aba
mov byte [ebp - 0x279], 0
lea ecx, [ebp - 0x248]
call fcn.0040bd90
lea ecx, [ebp - 0x260]
call fcn.0040bd90
lea ecx, [ebp - 0x230]
call fcn.0040bd90
mov al, byte [ebp - 0x279]
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.005d077b
mov esp, ebp
pop ebp
ret
Function at 0x471520
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x60ff57
mov eax, dword fs:[0]
push eax
sub esp, 0x258
mov eax, dword [0x69f000]
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, ecx
mov eax, dword [ebp + 8]
xorps xmm0, xmm0
mov dword [esi + 0x64], eax
xor eax, eax
movups xmmword [ebp - 0x230], xmm0
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.DLL_GetTempPathW]
test eax, eax
je 0x4717c1
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4715a2
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x230]
call fcn.0040be20
lea eax, [esi + 0x34]
push eax
lea ecx, [ebp - 0x260]
call fcn.0040bb80
push str..trace
lea ecx, [ebp - 0x248]
mov byte [ebp - 4], 1
call fcn.0040bb30
lea edx, [ebp - 0x248]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x260]
call fcn.00471e40
lea ecx, [ebp - 0x248]
mov byte [ebp - 0x261], al
mov byte [ebp - 4], 1
call fcn.0040bd90
cmp byte [ebp - 0x261], 0
je 0x4717b6
lea edx, [ebp - 0x260]
lea ecx, [ebp - 0x230]
call fcn.00471d00
test al, al
je 0x4717b6
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmovae eax, dword [ebp - 0x230]
push eax
call edi
cmp eax, 1
je 0x471736
push str..debug
lea ecx, [ebp - 0x248]
call fcn.0040bb30
lea edx, [ebp - 0x248]
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x230]
call fcn.00471e40
lea ecx, [ebp - 0x248]
mov byte [ebp - 0x261], al
mov byte [ebp - 4], 1
call fcn.0040bd90
cmp byte [ebp - 0x261], 0
je 0x4716c0
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push eax
call edi
cmp eax, 1
je 0x4717a9
lea ecx, [ebp - 0x230]
call fcn.00471ee0
test al, al
je 0x4717b6
push str.adm.trace
lea ecx, [ebp - 0x248]
call fcn.0040bb30
lea edx, [ebp - 0x248]
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x230]
call fcn.00471d00
lea ecx, [ebp - 0x248]
mov byte [ebp - 0x261], al
mov byte [ebp - 4], 1
call fcn.0040bd90
cmp byte [ebp - 0x261], 0
je 0x4717b6
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push eax
call edi
cmp eax, 1
jne 0x47173f
mov dword [esi + 0x64], 0xa
jmp 0x4717b6
lea ecx, [ebp - 0x230]
call fcn.00471ee0
test al, al
je 0x4717b6
push str.adm.debug
lea ecx, [ebp - 0x248]
call fcn.0040bb30
lea edx, [ebp - 0x248]
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x230]
call fcn.00471d00
lea ecx, [ebp - 0x248]
mov byte [ebp - 0x261], al
call fcn.0040bd90
cmp byte [ebp - 0x261], 0
je 0x4717b6
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push eax
call edi
cmp eax, 1
jne 0x4717b6
cmp dword [ebp + 8], 0x14
jle 0x4717b6
mov dword [esi + 0x64], 0x14
lea ecx, [ebp - 0x260]
call fcn.0040bd90
lea ecx, [ebp - 0x230]
call fcn.0040bd90
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.005d077b
mov esp, ebp
pop ebp
ret 4
Function at 0x472010
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2010
call fcn.005d11a0
mov eax, dword [0x69f000]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor eax, eax
mov esi, edx
cmp dword [ecx + 0x14], 8
push edi
mov dword [ebp - 0x200c], eax
jb 0x47203c
mov ecx, dword [ecx]
mov ebx, dword [sym.imp.KERNEL32.DLL_CreateFileW]
push 0
push 0x80
push 3
push 0
push 3
push 0xc0000000
push ecx
call ebx
cmp dword [esi + 0x14], 8
mov edi, eax
jb 0x472061
mov esi, dword [esi]
push 0
push 0x80
push 4
push 0
push 0
push 0x40000000
push esi
call ebx
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x472097
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005d077b
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.KERNEL32.DLL_GetLastError]
nop dword [eax]
push 0
lea eax, [ebp - 0x2008]
push eax
push 0x1000
lea eax, [ebp - 0x2004]
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x4720df
push 0
lea eax, [ebp - 0x2010]
push eax
push dword [ebp - 0x2008]
lea eax, [ebp - 0x2004]
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_WriteFile]
jmp 0x4720e7
call esi
mov dword [ebp - 0x200c], eax
cmp dword [ebp - 0x2008], 0x1000
je 0x4720a0
mov esi, dword [sym.imp.KERNEL32.DLL_CloseHandle]
push edi
call esi
push ebx
call esi
cmp dword [ebp - 0x200c], 0
mov ecx, dword [ebp - 4]
pop edi
sete al
xor ecx, ebp
pop esi
pop ebx
call fcn.005d077b
mov esp, ebp
pop ebp
ret
Function at 0x4724d0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x61007e
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x69f000]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
xorps xmm0, xmm0
xor eax, eax
movups xmmword [edi], xmm0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 7
mov word [edi], ax
movups xmmword [edi + 0x18], xmm0
mov dword [edi + 0x28], eax
mov dword [edi + 0x2c], 7
mov dword [ebp - 4], eax
mov word [edi + 0x18], ax
mov dword [edi + 0x30], eax
movups xmmword [edi + 0x34], xmm0
mov dword [edi + 0x44], eax
mov dword [edi + 0x48], 7
mov word [edi + 0x34], ax
movups xmmword [edi + 0x4c], xmm0
mov dword [edi + 0x5c], eax
mov dword [edi + 0x60], 7
mov word [edi + 0x4c], ax
lea esi, [edi + 0x84]
mov dword [edi + 0x64], 0x200000
mov dword [edi + 0x68], eax
mov dword [edi + 0x70], eax
mov dword [edi + 0x74], eax
mov dword [edi + 0x78], eax
mov dword [edi + 0x7c], eax
mov byte [edi + 0x80], al
push 0x40
mov byte [ebp - 4], 3
mov dword [ebp - 0x14], esi
mov dword [esi], eax
mov dword [esi + 4], eax
call fcn.00486cd6
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
mov eax, edi
mov word [edi + 0x8c], 0
mov dword [edi + 0x90], 0
mov dword [edi + 0x94], 0
mov dword [edi + 0x98], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x475c80
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0
push dword [ebp + 8]
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
test eax, eax
je 0x475cd4
cmp eax, 0xb7
je 0x475cd4
cmp eax, 0x50
je 0x475cd4
push esi
push edi
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
call fcn.00472b10
mov esi, eax
mov edi, dword [esi]
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push str.failed_to_create_dir._Error____d
push 0x65fe6c
push esi
call dword [edi + 0x24]
add esp, 0x10
xor al, al
pop edi
pop esi
pop ebp
ret
mov al, 1
pop ebp
ret
Function at 0x476c80
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x476cae
call fcn.00472b10
push ebx
push str.File_does_not_exist_at__s
push eax
mov ecx, dword [eax]
call dword [ecx + 4]
add esp, 0xc
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
push ebx
mov byte [ebp - 1], 0
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
test eax, eax
jne 0x476ca7
mov ebx, dword [sym.imp.KERNEL32.DLL_GetLastError]
push esi
push edi
call ebx
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
call fcn.00472b10
mov esi, eax
mov edi, dword [esi]
call ebx
push eax
push dword [ebp + 8]
push str.Failed_to_delete_file_at_path:_ls_error:_d
push esi
call dword [edi + 4]
mov al, byte [ebp - 1]
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x476d00
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
push 0
push 0x80
push 3
push 0
push 1
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov ebx, eax
mov dword [ebp - 8], ebx
cmp ebx, 0xffffffff
jne 0x476d64
mov esi, dword [sym.imp.KERNEL32.DLL_GetLastError]
call esi
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
call fcn.00472b10
mov edi, eax
mov ebx, dword [edi]
call esi
push eax
push dword [ebp + 8]
push str.Failed_to_open_the_file_handle_at__s._Error___d_
push 0x65fe6c
push edi
call dword [ebx + 0x24]
add esp, 0x14
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.00472b10
mov esi, dword [ebp + 0x14]
mov edi, dword [ebp + 0x10]
push esi
mov ecx, dword [eax]
push edi
push str.file_size_to_which_we_have_to_extend_is__llu
push eax
call dword [ecx + 4]
add esp, 0x10
push 0
push 0
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.DLL_SetFilePointerEx]
test eax, eax
je 0x476dd8
push ebx
call dword [sym.imp.KERNEL32.DLL_SetEndOfFile]
test eax, eax
je 0x476db0
push ebx
mov byte [ebp - 1], 1
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.KERNEL32.DLL_GetLastError]
call esi
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
call fcn.00472b10
mov edi, eax
mov ebx, dword [edi]
call esi
push eax
mov eax, dword [ebp + 0x14]
push eax
mov eax, dword [ebp + 0x10]
push eax
push str.Failed_to_set_the_end_of_the_file_to_size__llu._Error____d
jmp 0x476dfe
mov esi, dword [sym.imp.KERNEL32.DLL_GetLastError]
call esi
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
call fcn.00472b10
mov edi, eax
mov ebx, dword [edi]
call esi
push eax
mov eax, dword [ebp + 0x14]
push eax
mov eax, dword [ebp + 0x10]
push eax
push str.Failed_to_resize_the_file_to_size__ld._Error____d
push 0x65fe6c
push edi
call dword [ebx + 0x24]
mov ebx, dword [ebp - 8]
add esp, 0x18
mov byte [ebp - 1], 0
push ebx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x477220
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x477237
xor al, al
pop esi
pop ebp
ret
push ebx
push esi
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x477272
push edi
call fcn.00472b10
mov esi, eax
mov edi, dword [esi]
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push dword [ebp + 8]
push str.Failed_to_get_the_directory_attributes_for____s._Error_is__d.
push 0x65fe6c
push esi
call dword [edi + 0x24]
add esp, 0x14
xor al, al
pop edi
pop ebx
pop esi
pop ebp
ret
call fcn.00472b10
push ebx
push esi
push str.The_file_attributes_of_directory____s_is__d
mov ecx, dword [eax]
push eax
call dword [ecx + 4]
add esp, 0x10
shr ebx, 4
and bl, 1
mov al, bl
pop ebx
pop esi
pop ebp
ret

Function at 0x4772a0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4772ca
call fcn.00472b10
push dword [ebp + 8]
push str.File_does_not_exist_at__s
mov ecx, dword [eax]
push eax
call dword [ecx + 4]
add esp, 0xc
xor al, al
pop ebp
ret
mov al, 1
pop ebp
ret

Function at 0x477300
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x47735f
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x47735f
push ebx
push eax
call fcn.005e107a
add esp, 8
test eax, eax
je 0x47735a
push esi
push edi
call fcn.005d892f
mov ecx, dword [eax]
mov eax, dword [ebp + 0x10]
mov dword [eax], ecx
call fcn.00472b10
mov esi, eax
mov edi, dword [esi]
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push ebx
push dword [ebp + 0xc]
push str.Failed_to_rename_file_from__s_to__s._The_error_is_:_d
push 0x65fe6c
push esi
call dword [edi + 0x24]
add esp, 0x18
xor al, al
pop edi
pop esi
pop ebx
pop ebp
ret
mov al, 1
pop ebx
pop ebp
ret
call fcn.00472b10
push 0x623844
push eax
mov ecx, dword [eax]
call dword [ecx + 4]
add esp, 8
xor al, al
pop ebx
pop ebp
ret

Function at 0x477600
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_GetTempPathW]
mov edi, eax
test edi, edi
je 0x477640
lea ecx, [edi*2 + 2]
push ecx
call fcn.005d89b1
mov esi, eax
add esp, 4
test esi, esi
je 0x477640
push esi
push edi
call dword [sym.imp.KERNEL32.DLL_GetTempPathW]
test eax, eax
jne 0x477646
push esi
call fcn.005d8486
add esp, 4
pop edi
xor al, al
pop esi
pop ebp
ret
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x477650
sub ecx, edx
sar ecx, 1
push ecx
mov ecx, dword [ebp + 8]
push esi
call fcn.0040be20
push esi
call fcn.005d8486
add esp, 4
mov al, 1
pop edi
pop esi
pop ebp
ret
Function at 0x4797a0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, ecx
push esi
push edi
mov dword [ebp - 8], ebx
cmp dword [ebx], 0
jne 0x4797cb
call fcn.00472b10
push str.file_handler_to_read_not_initialized
push eax
mov edx, dword [eax]
call dword [edx + 4]
add esp, 8
jmp 0x479895
lea eax, [ebx + 8]
mov ecx, eax
mov dword [ebp - 4], eax
call fcn.00477680
push 0
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.KERNEL32.DLL_SetFilePointerEx]
test eax, eax
je 0x47985e
mov esi, dword [ebp + 0x14]
lea eax, [ebp + 0xc]
push 0
push eax
push esi
push dword [ebp + 0x10]
mov dword [ebp + 0xc], 0
push dword [ebx]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
mov dword [ebp + 0x14], eax
cmp dword [ebp + 0xc], esi
jb 0x479816
test eax, eax
jne 0x479845
mov esi, dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebx + 0x24], 1
call esi
mov dword [ebx + 0x28], eax
call fcn.00472b10
mov edi, eax
mov ebx, dword [edi]
call esi
push eax
push str.failed_to_read_data._Error_code____d
push 0x65fe6c
push edi
call dword [ebx + 0x24]
add esp, 0x10
mov ecx, dword [ebp - 4]
call fcn.004776a0
cmp dword [ebp + 0x14], 1
jne 0x479895
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov esi, dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebx + 0x24], 1
call esi
mov dword [ebx + 0x28], eax
call fcn.00472b10
mov edi, eax
mov ebx, dword [edi]
call esi
push eax
push str.file_pointer_set_error____d
push 0x65fe6c
push edi
call dword [ebx + 0x24]
mov ecx, dword [ebp - 4]
add esp, 0x10
call fcn.004776a0
mov ecx, dword [ebp - 8]
push 0x33
push str.Failed_to_read_the_segment_from_the_downloaded_file
add ecx, 0x2c
call fcn.0040be20
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4798c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, ecx
push esi
push edi
mov dword [ebp - 8], ebx
cmp dword [ebx], 0
jne 0x4798eb
call fcn.00472b10
push str.file_handler_not_initialized
push eax
mov edx, dword [eax]
call dword [edx + 4]
add esp, 8
jmp 0x4799b5
lea eax, [ebx + 8]
mov ecx, eax
mov dword [ebp - 4], eax
call fcn.00477680
push 0
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.KERNEL32.DLL_SetFilePointerEx]
test eax, eax
je 0x47997e
mov esi, dword [ebp + 0x14]
lea eax, [ebp + 0xc]
push 0
push eax
push esi
push dword [ebp + 0x10]
mov dword [ebp + 0xc], 0
push dword [ebx]
call dword [sym.imp.KERNEL32.DLL_WriteFile]
mov edi, eax
cmp dword [ebp + 0xc], esi
jb 0x479935
test edi, edi
jne 0x479966
mov esi, dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebx + 0x24], 1
call esi
mov dword [ebx + 0x28], eax
call fcn.00472b10
mov edi, eax
mov ebx, dword [edi]
call esi
push eax
push str.failed_to_write_data._Error_code____d
push 0x65fe6c
push edi
call dword [ebx + 0x24]
add esp, 0x10
xor edi, edi
mov ecx, dword [ebp - 4]
call fcn.004776a0
cmp edi, 1
jne 0x4799b5
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov esi, dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebx + 0x24], 1
call esi
mov dword [ebx + 0x28], eax
call fcn.00472b10
mov edi, eax
mov ebx, dword [edi]
call esi
push eax
push str.file_pointer_set_error____d
push 0x65fe6c
push edi
call dword [ebx + 0x24]
mov ecx, dword [ebp - 4]
add esp, 0x10
call fcn.004776a0
mov ecx, dword [ebp - 8]
push 0x41
push str.Failed_to_write_the_segment_in_the_file_which_is_to_be_downloaded
add ecx, 0x2c
call fcn.0040be20
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x47ba10
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x610bd8
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x69f000]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x14], edi
call fcn.0047b980
lea ecx, [edi + 0x30]
mov dword [ebp - 4], 0
call fcn.0047b980
lea ecx, [edi + 0x60]
mov dword [ebp - 4], 1
call fcn.004839a0
lea esi, [edi + 0x1e8]
mov byte [ebp - 4], 2
mov dword [ebp - 0x14], esi
push 0x20
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.00486cd6
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
lea ecx, [edi + 0x1f8]
mov byte [ebp - 4], 3
call fcn.004791e0
mov byte [edi + 0x2a0], 0
mov word [edi + 0x2a1], 0x100
mov byte [edi + 0x2a3], 0
mov dword [edi + 0x2a4], 0
lea ecx, [edi + 0x2ac]
mov byte [ebp - 4], 5
call fcn.004781b0
lea ecx, [edi + 0x300]
mov byte [ebp - 4], 6
mov dword [edi + 0x2f0], 0
mov dword [edi + 0x2f4], 0
mov dword [edi + 0x2f8], 0
mov dword [edi + 0x2fc], 3
call fcn.004725f0
lea esi, [edi + 0x328]
mov byte [ebp - 4], 7
mov dword [ebp - 0x14], esi
push 0x20
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.00486cd6
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
lea ecx, [edi + 0x330]
mov byte [ebp - 4], 8
call fcn.00479fb0
lea ecx, [edi + 0x43c]
mov byte [ebp - 4], 9
call fcn.004799e0
lea ecx, [edi + 0x460]
mov byte [ebp - 4], 0xa
call fcn.0040bcc0
lea ecx, [edi + 0x47c]
mov byte [ebp - 4], 0xb
call fcn.0040bcc0
mov eax, edi
mov byte [ebp - 4], 0xc
mov dword [eax + 0x498], 0
mov dword [eax + 0x49c], 0
mov dword [eax + 0x4a0], 0
mov dword [eax + 0x4a4], 0
lea esi, [eax + 0x4b8]
mov dword [eax + 0x4a8], 0
mov dword [eax + 0x4ac], 0
mov byte [eax + 0x4b0], 0
mov dword [eax + 0x4b4], 0
mov dword [ebp - 0x14], esi
push 0x40
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.00486cd6
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
mov esi, edi
mov byte [ebp - 4], 0xd
add esi, 0x4c0
mov dword [ebp - 0x14], esi
push 0x40
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.00486cd6
add esp, 8
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
mov esi, edi
mov byte [ebp - 4], 0xe
lea ecx, [edi + 0x460]
mov dword [esi + 0x4c8], 0
mov dword [esi + 0x4cc], 0
call fcn.004776b0
lea ecx, [edi + 0x47c]
call fcn.004776b0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x47eed0
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x60f840
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x69f000]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 0x24]
mov dword [esi], vtable.WorkerThread.0
test eax, eax
je 0x47ef44
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
mov edi, eax
test edi, edi
je 0x47ef34
call fcn.00472b10
push edi
push dword [esi + 0x38]
mov ecx, dword [eax]
push str.Forcing_the_thread___d__to_terminate_forcibly._Thread_seem_to_get_hanged._Error____d
push eax
call dword [ecx + 0x14]
add esp, 0x10
push 0
push dword [esi + 0x24]
call dword [sym.imp.KERNEL32.DLL_TerminateThread]
push dword [esi + 0x24]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov dword [esi + 0x24], 0
lea ecx, [esi + 8]
call fcn.00477690
lea ecx, [esi + 8]
call fcn.004084f0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret