joyce8/EMBER2024-capa huggingface dataset:
Function at 0x458da0
Capabilities:
Check for peb ntglobalflag flag
Terminate process
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d8618
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x513330]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x18], esi
mov al, byte [ebp + 8]
push str.____________________Entrance____________________
lea ecx, [ebp - 0x20]
lea edi, [esi + 0x70]
push ecx
push edi
mov byte [esi + 0x68], al
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x20], str.Stop
call fcn.00471a00
add esp, 0xc
xor ebx, ebx
mov dword [ebp - 4], ebx
mov byte [ebp - 4], 1
push esi
mov byte [esi + 0xb0], 1
call fcn.0045a6a0
mov edx, dword [esi + 0x30]
cmp edx, 2
jne 0x458eb4
mov edx, dword [esi + 0xd8]
push 0
lea eax, [ebp - 0x14]
push eax
push 1
lea ecx, [ebp + 0xb]
push ecx
mov dword [ebp - 0x14], ebx
push edx
mov dword [esi + 0x30], 3
mov bl, 1
mov byte [ebp + 0xb], 0x71
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x458e48
xor bl, bl
jmp 0x458e61
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Failed_to_WriteFile_q_._err_d.
lea eax, [ebp - 0x20]
push eax
push edi
call fcn.00471980
add esp, 0x10
movzx edx, byte [esi + 0xc0]
movzx ecx, bl
push ecx
push edx
push str.quit_for_ffmpeg.exe_process_manual_d_bFail_d.
lea eax, [ebp - 0x20]
push eax
push edi
call fcn.004719c0
add esp, 0x14
cmp byte [esi + 0xc0], 0
jne 0x458e8c
test bl, bl
je 0x458eb4
mov ecx, dword [esi + 0x148]
push ecx
push str.TerminateProcess__d_
lea edx, [ebp - 0x20]
push edx
push edi
call fcn.004719c0
mov eax, dword [esi + 0x148]
add esp, 0x10
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [esi + 0x30]
cmp ecx, 7
je 0x458ed5
push str.Set_status__Canceled
lea edx, [ebp - 0x20]
push edx
push edi
mov dword [esi + 0x30], 3
call fcn.004719c0
add esp, 0xc
call fcn.0045a1a0
push str.______________________Exit______________________
lea eax, [ebp - 0x20]
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x1c]
push eax
push ecx
call fcn.00471a00
add esp, 0xc
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x459fd0
Capabilities:
Check if file exists
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x4d84b0
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push ebp
push edi
mov eax, dword [0x513330]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
push str.____________________Entrance____________________
lea ecx, [esp + 0x1c]
lea edi, [esi + 0x70]
mov eax, edi
push ecx
push eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], str.StoreFinalFile
call fcn.00471a00
add esp, 0xc
xor ebx, ebx
lea edx, [esp + 0x14]
mov dword [esp + 0x28], ebx
mov ecx, dword [esi + 0x24]
push edx
call fcn.00405a00
mov byte [esp + 0x28], 1
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x45a099
mov byte [esp + 0x28], bl
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45a065
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push str.______________________Exit______________________
lea ecx, [esp + 0x1c]
mov dword [esp + 0x2c], 0xffffffff
mov edx, dword [esp + 0x20]
push ecx
push edx
call fcn.00471a00
add esp, 0xc
xor al, al
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebp
pop ebx
add esp, 0x1c
ret
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp byte [esi + 0xc2], bl
je 0x45a0d2
mov eax, dword [esi + 0x20]
cmp dword [eax - 0xc], ebx
je 0x45a0bb
push eax
call ebp
test eax, eax
setne al
cmp al, bl
jne 0x45a0d2
mov eax, dword [esi + 0x20]
push eax
push str.Failed_to_FileUtils::DeleteFile__s_
lea ecx, [esp + 0x20]
push ecx
push edi
call fcn.00471980
add esp, 0x10
push esi
call fcn.0045a230
test al, al
jne 0x45a114
mov edx, dword [esi + 0x20]
mov eax, dword [esi + 0x24]
push edx
push eax
push str.Failed_to_RenameTempToFinalName___from__s_to__s
lea ecx, [esp + 0x24]
push ecx
push edi
call fcn.00471980
mov byte [esp + 0x3c], bl
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
add esp, 0x14
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x45a059
cmp byte [esi + 0xc3], bl
je 0x45a13d
mov eax, dword [esi + 0x1c]
push eax
call ebp
test eax, eax
jne 0x45a13d
mov eax, dword [esi + 0x1c]
push eax
push str.Failed_to_::DeleteFile__s_
lea ecx, [esp + 0x20]
push ecx
push edi
call fcn.00471980
add esp, 0x10
mov byte [esp + 0x28], bl
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x45a161
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push str.______________________Exit______________________
lea ecx, [esp + 0x1c]
mov dword [esp + 0x2c], 0xffffffff
mov edx, dword [esp + 0x20]
push ecx
push edx
call fcn.00471a00
add esp, 0xc
mov al, 1
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebp
pop ebx
add esp, 0x1c
ret
Function at 0x45a6a0
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d83f8
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x513330]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, dword [ebp + 8]
push str.____________________Entrance____________________
lea ecx, [ebp - 0x18]
lea edi, [esi + 0x70]
mov eax, edi
push ecx
push eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], str.ResumeFFMPEGThread
call fcn.00471a00
add esp, 0xc
mov dword [ebp - 4], 0
mov byte [ebp - 4], 1
mov edx, dword [esi + 0x30]
cmp edx, 5
je 0x45a70e
mov eax, dword [esi + 0x30]
cmp eax, 1
jne 0x45a7a6
mov eax, dword [esi + 0x14c]
test eax, eax
je 0x45a7a6
push eax
push str.Will_try_to_ResumeThread__d_.
lea ecx, [ebp - 0x18]
push ecx
push edi
call fcn.004719c0
mov edx, dword [esi + 0x14c]
add esp, 0x10
push edx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 1
lea eax, [ebp - 0x18]
jne 0x45a77a
mov dword [esi + 0x30], 2
push str.______________________Exit______________________
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x14]
push eax
push ecx
call fcn.00471a00
add esp, 0xc
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov edx, dword [esi + 0x14c]
push edx
push str.Failed_to_ResumeThread__d_.
push eax
push edi
call fcn.00471980
add esp, 0x10
push str.______________________Exit______________________
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x14]
push ecx
push edx
jmp 0x45a7d7
mov eax, dword [esi + 0x14c]
mov ecx, dword [esi + 0x30]
push eax
push ecx
push str.Failure__you_shouldnt_call_this_since_status_is__d_and_m_processInfo.hThread_d
lea edx, [ebp - 0x18]
push edx
push edi
call fcn.00471980
add esp, 0x14
push str.______________________Exit______________________
lea edx, [ebp - 0x18]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
push edx
push eax
call fcn.00471a00
add esp, 0xc
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x45c0a0
Capabilities:
Delete file

Disassembly:
mov eax, dword [esi]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x45c0c6
push eax
call edi
mov eax, dword [esi + 4]
mov dword [esi], 0
cmp dword [eax - 0xc], 0
je 0x45c0c6
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [esi + 4]
sub eax, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45c0e5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esi]
test eax, eax
je 0x45c0f4
push eax
call edi
mov dword [esi], 0
pop edi
ret

Function at 0x45c3b0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4dc490
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebp
push esi
push edi
mov eax, dword [0x513330]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x34]
mov edi, ecx
push str.____________________Entrance____________________
lea eax, [esp + 0x1c]
lea esi, [edi + 4]
push eax
push esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x24], str.SendReceive
call fcn.00471a00
add esp, 0xc
mov dword [esp + 0x28], 0
mov edx, dword [0x51856c]
mov eax, dword [edx + 0xc]
mov ecx, 0x51856c
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov edx, dword [esp + 0x30]
push 0
lea ecx, [esp + 0x38]
push ecx
push edx
mov byte [esp + 0x34], 1
push ebx
mov ecx, ebp
mov edx, edi
mov dword [esp + 0x44], 0
call fcn.0045c660
mov edi, eax
mov eax, dword [ebx]
push edi
push ebp
push eax
push str.GetSync_strRequestURL_s__parResponse_d__returned__d
lea ecx, [esp + 0x28]
push ecx
push esi
call fcn.004719c0
mov byte [esp + 0x40], 0
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
add esp, 0x18
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x45c47f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push str.______________________Exit______________________
lea ecx, [esp + 0x1c]
mov dword [esp + 0x2c], 0xffffffff
mov edx, dword [esp + 0x20]
push ecx
push edx
call fcn.00471a00
add esp, 0xc
mov eax, edi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x1c
ret 8
Function at 0x45c4c0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4dc460
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push ebp
push esi
mov eax, dword [0x513330]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x28]
mov ebx, ecx
push str.____________________Entrance____________________
lea ecx, [esp + 0x14]
lea esi, [ebx + 4]
mov eax, esi
push ecx
mov dword [esp + 0x28], 0
push eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], str.DownloadToFile
call fcn.00471a00
add esp, 0xc
mov byte [esp + 0x20], 1
mov edx, dword [edi]
mov eax, dword [esp + 0x2c]
mov ecx, dword [ebp]
push edx
push eax
push ecx
push str.strRequestURL_s__strFilePath_s__bStop_d
lea edx, [esp + 0x20]
push edx
push esi
call fcn.004719c0
add esp, 0x18
push 1
push edi
lea eax, [esp + 0x34]
push eax
push ebp
xor ecx, ecx
mov edx, ebx
call fcn.0045c660
mov ecx, dword [edi]
mov edx, dword [ebp]
mov ebx, eax
push ebx
push ecx
push edx
push str.GetSync_strRequestURL_s__bStop_d__returned__d
lea eax, [esp + 0x20]
push eax
push esi
call fcn.004719c0
push str.______________________Exit______________________
lea ecx, [esp + 0x2c]
mov byte [esp + 0x3c], 0
mov edx, dword [esp + 0x30]
push ecx
push edx
call fcn.00471a00
mov dword [esp + 0x44], 0xffffffff
mov eax, dword [esp + 0x50]
add eax, 0xfffffff0
add esp, 0x24
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45c5ac
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebx
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 8
Function at 0x45cbb0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4d8371
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push esi
push edi
mov eax, dword [0x513330]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov esi, dword [esp + 0x30]
mov edi, ecx
push str.____________________Entrance____________________
lea ecx, [esp + 0x1c]
mov dword [esp + 0x2c], 0
add edi, 4
mov eax, edi
push ecx
mov dword [esp + 0x18], 0
push eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], str.GetStatusCode
call fcn.00471a00
add esp, 0xc
mov dword [esp + 0x28], 1
mov edx, dword [0x51856c]
mov eax, dword [edx + 0xc]
mov ecx, 0x51856c
call eax
add eax, 0x10
mov dword [esi], eax
sub eax, 0x10
mov dword [esp + 0x14], 0x14
mov ecx, 1
sub ecx, dword [eax + 0xc]
mov eax, dword [eax + 8]
sub eax, 0xa
or eax, ecx
mov dword [esp + 0x10], 1
jge 0x45cc5d
mov ecx, 0xa
mov eax, esi
call fcn.00405d80
mov eax, dword [esi]
mov edx, dword [esp + 0x34]
push 0
lea ecx, [esp + 0x18]
push ecx
push eax
mov eax, dword [edx]
push 0x13
push eax
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
mov eax, dword [esi]
mov ecx, dword [eax - 8]
test eax, eax
je 0x45cc8d
push ecx
push eax
call fcn.004a5cf7
add esp, 8
test eax, eax
jl 0x45cce4
mov ecx, dword [esi]
cmp eax, dword [ecx - 8]
jg 0x45cce4
mov dword [ecx - 0xc], eax
mov ecx, dword [esi]
xor edx, edx
mov word [ecx + eax*2], dx
mov eax, dword [esi]
push eax
push str.Status_code:__s
lea ecx, [esp + 0x20]
push ecx
push edi
call fcn.00471a00
push str.______________________Exit______________________
lea edx, [esp + 0x2c]
mov byte [esp + 0x3c], 0
mov eax, dword [esp + 0x30]
push edx
push eax
call fcn.00471a00
add esp, 0x1c
mov eax, esi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x20
ret 8
push 0x80070057
call fcn.00405ef0
int3
Function at 0x45ccf0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4d8331
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push esi
mov eax, dword [0x513330]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov esi, dword [esp + 0x30]
mov dword [esp + 0x24], 0
mov dword [esp + 0xc], 0
mov eax, dword [esp + 0x2c]
push str.____________________Entrance____________________
lea ecx, [esp + 0x14]
add eax, 4
push ecx
push eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], str.GetRawHeader
call fcn.00471a00
add esp, 0xc
mov dword [esp + 0x24], 1
mov edx, dword [0x51856c]
mov eax, dword [edx + 0xc]
mov ecx, 0x51856c
mov dword [esp + 0x2c], 0x2000
call eax
add eax, 0x10
mov dword [esi], eax
mov ecx, dword [esp + 0x2c]
sub eax, 0x10
mov edx, 1
sub edx, dword [eax + 0xc]
mov eax, dword [eax + 8]
sub eax, ecx
or eax, edx
mov dword [esp + 0xc], 1
jge 0x45cd9a
mov eax, esi
call fcn.00405d80
mov eax, dword [esi]
mov edx, dword [esp + 0x34]
push 0
lea ecx, [esp + 0x30]
push ecx
push eax
mov eax, dword [edx]
push 0x16
push eax
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
mov eax, dword [esi]
mov ecx, dword [eax - 8]
test eax, eax
je 0x45cdca
push ecx
push eax
call fcn.004a5cf7
add esp, 8
test eax, eax
jl 0x45ce0c
mov ecx, dword [esi]
cmp eax, dword [ecx - 8]
jg 0x45ce0c
mov dword [ecx - 0xc], eax
mov ecx, dword [esi]
xor edx, edx
mov word [ecx + eax*2], dx
push str.______________________Exit______________________
lea eax, [esp + 0x14]
mov byte [esp + 0x28], dl
mov ecx, dword [esp + 0x18]
push eax
push ecx
call fcn.00471a00
add esp, 0xc
mov eax, esi
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x20
ret 0xc
push 0x80070057
call fcn.00405ef0
int3
Function at 0x45d430
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4d5eb9
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x513330]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov edi, dword [esp + 0x30]
xor esi, esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x14], esi
mov eax, dword [0x51856c]
mov edx, dword [eax + 0xc]
mov ecx, 0x51856c
call edx
add eax, 0x10
mov dword [edi], eax
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x28], esi
mov eax, dword [ecx + 0x18]
mov ebx, dword [eax]
mov esi, dword [ecx]
mov dword [esp + 0x14], 1
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], esi
mov ebp, dword [ecx + 0x18]
mov eax, dword [ecx]
test esi, esi
je 0x45d4a5
cmp esi, eax
je 0x45d4aa
call fcn.004a717b
cmp ebx, ebp
je 0x45d532
test esi, esi
jne 0x45d52a
call fcn.004a717b
xor eax, eax
cmp ebx, dword [eax + 0x18]
jne 0x45d4c7
call fcn.004a717b
mov eax, dword [ebx + 0xc]
mov ecx, dword [eax - 0xc]
push ecx
push eax
push edi
call fcn.0040e720
push 1
push 0x4e9db8
push edi
call fcn.0040e720
test esi, esi
jne 0x45d52e
call fcn.004a717b
cmp ebx, dword [esi + 0x18]
jne 0x45d4f5
call fcn.004a717b
mov eax, dword [ebx + 0x10]
mov edx, dword [eax - 0xc]
push edx
push eax
push edi
call fcn.0040e720
push 2
push 0x4ea7ac
push edi
call fcn.0040e720
lea esi, [esp + 0x18]
call fcn.004842e0
mov ebx, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
mov ecx, dword [esp + 0x34]
jmp 0x45d498
mov eax, dword [esi]
jmp 0x45d4bd
mov esi, dword [esi]
jmp 0x45d4eb
mov eax, edi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 8
Function at 0x45d550
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4d4660
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push edi
mov eax, dword [0x513330]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
push eax
push ecx
lea edx, [esp + 0x20]
push edx
call fcn.004610c0
lea ecx, [esp + 0x10]
push ecx
mov edi, eax
mov dword [esp + 0x3c], 0
call fcn.00461a20
mov eax, dword [ebp + 8]
lea edx, [esp + 0x10]
push edx
add eax, 0x84
push eax
lea ebx, [esp + 0x28]
mov byte [esp + 0x40], 1
call fcn.004608b0
cmp byte [eax + 8], 0
mov byte [esp + 0x38], 0
mov eax, dword [esp + 0x14]
sete bl
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45d5e6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45d606
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x38], 0xffffffff
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45d62e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45d64e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
movzx eax, bl
neg eax
sbb eax, eax
and eax, 2
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x45d670
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4d8268
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x513330]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov edi, ecx
mov esi, edx
push str.____________________Entrance____________________
lea ecx, [esp + 0x18]
lea eax, [esi + 4]
push ecx
push eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], str.GetRecvHeaderValue
call fcn.00471a00
add esp, 0xc
mov eax, dword [ebp + 8]
push 0x4e7868
xor ebx, ebx
mov dword [esp + 0x3c], 0
call fcn.00405e30
push edi
lea edx, [esp + 0x28]
add esi, 0x64
push edx
call fcn.00460a10
mov ecx, dword [eax]
mov ebx, dword [eax + 4]
mov eax, dword [esi + 0x18]
mov dword [esp + 0x20], eax
mov eax, dword [esi]
test ecx, ecx
je 0x45d6fd
cmp ecx, eax
je 0x45d702
call fcn.004a717b
cmp ebx, dword [esp + 0x20]
je 0x45d74f
mov ebx, edi
mov edi, esi
call fcn.00460710
mov edi, dword [ebp + 8]
call fcn.004082a0
push str.______________________Exit______________________
lea ecx, [esp + 0x18]
mov dword [esp + 0x3c], 0xffffffff
mov edx, dword [esp + 0x1c]
push ecx
push edx
call fcn.00471a00
add esp, 0xc
xor eax, eax
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push str.______________________Exit______________________
lea eax, [esp + 0x18]
mov dword [esp + 0x3c], 0xffffffff
mov ecx, dword [esp + 0x1c]
push eax
push ecx
call fcn.00471a00
add esp, 0xc
mov eax, 3
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x45d870
Capabilities:
Check internet connectivity via wininet

Disassembly:
push 0xffffffffffffffff
push 0x4d6de8
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
mov eax, dword [0x513330]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, ecx
push str.____________________Entrance____________________
lea ecx, [esp + 0x14]
add esi, 4
mov eax, esi
push ecx
push eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], str.HasInternetConnection
call fcn.00471a00
add esp, 0xc
xor ebx, ebx
push ebx
lea edx, [esp + 0x10]
mov dword [esp + 0x24], ebx
push edx
mov dword [esp + 0x14], ebx
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
test eax, eax
setne al
cmp al, bl
je 0x45d8e5
test byte [esp + 0xc], 0x20
jne 0x45d8e5
mov bl, 1
jmp 0x45d8f8
push str.Computer_is_not_connected.
lea eax, [esp + 0x14]
push eax
push esi
call fcn.00471980
add esp, 0xc
push str.______________________Exit______________________
lea ecx, [esp + 0x14]
mov dword [esp + 0x24], 0xffffffff
mov edx, dword [esp + 0x18]
push ecx
push edx
call fcn.00471a00
add esp, 0xc
mov al, bl
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x18
ret
Function at 0x462190
Capabilities:
Get file size

Disassembly:
sub esp, 0xc
mov edx, dword [ecx]
lea eax, [esp + 4]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esp], eax
cmp eax, 0xffffffff
jne 0x4621b5
call fcn.00405b90
test eax, eax
jl 0x4621c0
mov eax, dword [esp]
mov dword [esi], eax
mov eax, dword [esp + 4]
mov dword [esi + 4], eax
xor eax, eax
add esp, 0xc
ret