joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405010
Capabilities:
Encode data using base64

Disassembly:
push 0xffffffffffffffff
push 0x43de19
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov eax, dword [0x451d80]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x34]
mov esi, ecx
xor ebx, ebx
mov dword [esp + 0x1c], ebx
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], ebx
mov dword [esp + 0x20], esi
mov byte [esi + 4], bl
xor edi, edi
cmp dword [esp + 0x38], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x1c], 1
je 0x4051cf
mov al, byte [ebp]
sub dword [esp + 0x38], 1
mov byte [esp + edi + 0x14], al
add edi, 1
add ebp, 1
cmp edi, 3
jne 0x405109
mov al, byte [esp + 0x14]
mov cl, al
shr cl, 2
mov dl, al
mov al, byte [esp + 0x15]
and dl, 3
mov byte [esp + 0x18], cl
shl dl, 4
mov cl, al
shr cl, 4
add dl, cl
mov byte [esp + 0x19], dl
mov dl, al
mov al, byte [esp + 0x16]
and dl, 0xf
add dl, dl
mov cl, al
add dl, dl
shr cl, 6
add dl, cl
and al, 0x3f
mov byte [esp + 0x1a], dl
mov byte [esp + 0x1b], al
xor edi, edi
jmp 0x4050d0
movzx ebx, byte [esp + edi + 0x18]
cmp ebx, dword [0x453314]
jbe 0x4050e2
call fcn.004269df
cmp dword [0x453318], 0x10
mov eax, dword [0x453304]
jae 0x4050f5
mov eax, 0x453304
mov bl, byte [eax + ebx]
call fcn.004051f0
add edi, 1
cmp edi, 4
jl 0x4050d0
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x38], ebx
jne 0x40506c
cmp edi, ebx
je 0x4051cf
cmp edi, 3
jge 0x405136
mov edx, 3
sub edx, edi
push edx
lea eax, [esp + edi + 0x18]
push ebx
push eax
call fcn.0042a080
add esp, 0xc
mov cl, byte [esp + 0x14]
mov al, cl
shr al, 2
mov byte [esp + 0x18], al
mov al, byte [esp + 0x15]
mov dl, al
and cl, 3
shl cl, 4
shr dl, 4
add cl, dl
and al, 0xf
mov byte [esp + 0x19], cl
mov cl, byte [esp + 0x16]
add al, al
mov dl, cl
add al, al
shr dl, 6
add al, dl
mov byte [esp + 0x1a], al
and cl, 0x3f
lea eax, [edi + 1]
xor ebp, ebp
cmp eax, ebx
mov byte [esp + 0x1b], cl
jle 0x4051b7
lea ecx, [ecx]
movzx ebx, byte [esp + ebp + 0x18]
cmp ebx, dword [0x453314]
jbe 0x405192
call fcn.004269df
cmp dword [0x453318], 0x10
mov eax, dword [0x453304]
jae 0x4051a5
mov eax, 0x453304
mov bl, byte [eax + ebx]
call fcn.004051f0
add ebp, 1
lea eax, [edi + 1]
cmp ebp, eax
jl 0x405180
cmp edi, 3
jge 0x4051cf
mov ebp, 3
sub ebp, edi
mov bl, 0x3d
call fcn.004051f0
sub ebp, 1
jne 0x4051c3
mov eax, esi
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
Function at 0x405280
Capabilities:
Create directory

Disassembly:
sub esp, 0x214
mov eax, dword [0x451d80]
xor eax, esp
mov dword [esp + 0x20c], eax
push ebx
push edi
push 0x206
lea eax, [esp + 0xe]
push 0
push eax
mov ebx, ecx
mov dword [0x4561d8], 0
mov word [esp + 0x14], 0
call fcn.0042a080
add esp, 0xc
push 0x104
lea ecx, [esp + 0xc]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea edx, [esp + 8]
push 0x5c
push edx
call fcn.00426f79
push 0x444fd8
mov word [eax + 2], 0
lea eax, [esp + 0x14]
push 0x104
push eax
call fcn.00427905
add esp, 0x14
push 0
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0x444fe0
lea edx, [esp + 0xc]
push 0x104
push edx
call fcn.00427905
lea eax, [esp + 0x14]
add esp, 0xc
push eax
mov ecx, 3
call fcn.00415470
add esp, 4
push ebx
push 0x402d70
push 0x1010001
push str.Enter_HttpDownInitialize_0x_08x__0x_08x__0x_08x_
mov edi, 1
call fcn.00415780
push 0xd0
call fcn.00419243
add esp, 0x14
test eax, eax
je 0x405361
push eax
call fcn.00405570
jmp 0x405363
xor eax, eax
mov dword [0x4561d4], eax
call fcn.00405770
push str.Leave_HttpDownInitialize
call fcn.00415780
mov ecx, dword [esp + 0x218]
add esp, 4
mov eax, edi
pop edi
pop ebx
xor ecx, esp
call fcn.0042655f
add esp, 0x214
ret

Function at 0x405570
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x43dfd7
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x451d80]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, dword [esp + 0x24]
xor ebx, ebx
mov dword [esi], vtable.CHttpDownTaskManage.0
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
mov dword [esp + 0x1c], ebx
call fcn.00406580
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], ebx
lea eax, [esi + 0x30]
push eax
mov byte [esp + 0x20], 1
call fcn.004148a0
mov byte [esp + 0x1c], 2
call fcn.004066c0
mov dword [esi + 0x5c], eax
mov dword [esi + 0x60], ebx
lea ecx, [esi + 0x68]
push ecx
mov byte [esp + 0x20], 3
call fcn.004148a0
mov byte [esp + 0x1c], 4
lea edi, [esi + 0x88]
mov dword [edi], ebx
mov dword [edi + 0x10], ebx
mov byte [edi + 0x14], 1
mov byte [edi + 0x15], bl
mov dword [edi + 0x18], ebx
mov dword [edi + 0x1c], ebx
mov dword [edi + 0x20], ebx
mov dword [edi + 0x24], ebx
mov byte [edi + 0x28], bl
mov dword [edi + 0x2c], ebx
mov byte [edi + 0x30], 1
mov dword [edi + 0x34], ebx
mov dword [edi + 0x38], ebx
call fcn.00406580
mov dword [edi + 0x40], eax
mov dword [edi + 0x44], ebx
mov dword [0x456184], edi
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], 0xffffffff
mov dword [esi + 0x50], ebx
mov dword [esi + 0x64], ebx
mov dword [esi + 0x54], ebx
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret 4
Function at 0x405770
Capabilities:
Create thread

Disassembly:
push ecx
push esi
mov eax, 0x402d70
test eax, eax
push edi
mov edi, dword [0x4561d4]
je 0x405786
test ebx, ebx
je 0x4057cb
lea esi, [edi + 0x88]
call fcn.0040cb20
push 0
push 0
push 0
push 0
mov dword [edi + 8], 0x402d70
mov dword [edi + 0xc], ebx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push 0
push 0
push edi
push 0x4060f0
push 0
push 0
mov dword [edi + 0x64], eax
mov dword [0x4561dc], edi
call fcn.00427857
add esp, 0x18
mov dword [edi + 0x50], eax
pop edi
pop esi
pop ecx
ret
Function at 0x407710
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x43e308
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x451d80]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 0x4f8]
mov edx, dword [eax]
lea ebp, [esi + 0x4f8]
push 0xffffffffffffffff
mov ecx, ebp
mov dword [esp + 0x18], vtable.CScopedLock.0
mov dword [esp + 0x1c], ebp
call edx
xor edi, edi
mov dword [esp + 0x28], edi
mov eax, dword [esi]
mov edx, dword [eax + 0x6c]
mov ecx, esi
call edx
test eax, eax
lea ebx, [edi + 1]
jne 0x407795
mov eax, dword [esi + 0x46c]
mov ecx, dword [esi + 0x220]
push eax
push ecx
push str.Task__s__No_Start__status___d
call fcn.004156d0
add esp, 0xc
jmp 0x40787a
mov edx, dword [esi + 4]
mov eax, dword [esi + 0x458]
lea ecx, [esi + 0x18]
push ecx
mov ecx, dword [esi + 0x454]
push edx
mov edx, dword [esi + 0x220]
push eax
push ecx
push edx
push str.Enter_CHttpDownTask::Start____Task:_s__threadcount:_d__limitspeed:_d__url:_s__file:_s
call fcn.004156d0
add esp, 0x18
lea eax, [esi + 0x598]
mov dword [esi + 0x4a0], edi
mov dword [esi + 0x4a8], edi
call fcn.00406be0
push edi
push edi
push esi
push 0x4086f0
push edi
push edi
mov dword [esi + 0x59c], edi
mov dword [esi + 0x5ac], edi
mov dword [esi + 0x5a8], edi
mov dword [esi + 0x5a4], edi
mov dword [esi + 0x5a0], edi
call fcn.00427857
add esp, 0x18
cmp eax, edi
mov dword [esi + 0x4ac], eax
jne 0x407840
mov edi, 0xf
call fcn.00408680
mov dword [esp + 0x28], 0xffffffff
mov eax, dword [ebp]
mov edx, dword [eax + 8]
mov ecx, ebp
call edx
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0x46c], ebx
je 0x407866
cmp dword [esi + 0x4a8], edi
jne 0x407866
cmp dword [0x4561dc], edi
mov dword [esi + 0x46c], ebx
je 0x407866
push ebx
push ebx
push esi
call fcn.00405ee0
mov eax, dword [esi + 0x220]
push eax
push str.Leave_CHttpDownTask::Start____Task:_s
call fcn.004156d0
add esp, 8
mov dword [esp + 0x28], 0xffffffff
mov edx, dword [ebp]
mov eax, dword [edx + 8]
mov ecx, ebp
call eax
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x407d00
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x43e308
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x451d80]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 0x4f8]
mov edx, dword [eax]
lea edi, [esi + 0x4f8]
push 0xffffffffffffffff
mov ecx, edi
mov dword [esp + 0x18], vtable.CScopedLock.0
mov dword [esp + 0x1c], edi
call edx
xor ebx, ebx
mov dword [esp + 0x28], ebx
mov eax, dword [esi]
mov edx, dword [eax + 0x7c]
mov ecx, esi
call edx
test eax, eax
je 0x407dd6
mov eax, dword [ebp + 8]
push eax
lea ecx, [esi + 0x18]
push ecx
call fcn.0040f9f0
add esp, 8
cmp dword [esi + 0x42c], ebx
je 0x407d86
lea edx, [esi + 0x224]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [esi + 0x46c], ebx
mov dword [esi + 0x470], ebx
mov dword [esi + 0x474], ebx
mov dword [esi + 0x478], ebx
mov dword [esi + 0x47c], ebx
je 0x407dc5
cmp dword [esi + 0x4a8], ebx
jne 0x407dc5
cmp dword [0x4561dc], ebx
mov dword [esi + 0x46c], ebx
je 0x407dd6
push ebx
push 1
push esi
call fcn.00405ee0
cmp dword [0x4561dc], ebx
je 0x407dd6
push ebx
push 2
push esi
call fcn.00405ee0
mov dword [esp + 0x28], 0xffffffff
mov eax, dword [edi]
mov edx, dword [eax + 8]
mov ecx, edi
call edx
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x40c6a0
Capabilities:
Check mutex on windows

Disassembly:
sub esp, 0x18
push ebx
push ebp
mov ebp, dword [esp + 0x24]
xor ebx, ebx
cmp dword [ebp + 8], ebx
push esi
push edi
jne 0x40c6d6
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
cmp eax, ebx
mov dword [ebp + 8], eax
jne 0x40c6d6
push str._CPDLDownload___GetHttpBlockDownloader__mem_not_enough1
mov ebx, 4
call fcn.004156d0
add esp, 4
xor ebx, ebx
cmp dword [ebp], ebx
jne 0x40c737
push 0x40
call fcn.00419243
add esp, 4
cmp eax, ebx
je 0x40c71c
xor ecx, ecx
mov dword [eax], ebx
mov byte [eax + 4], bl
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x38], ebx
mov dword [eax + 0x3c], ebx
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x18], ecx
mov dword [eax + 0x1c], ecx
mov dword [eax + 0x20], ecx
mov dword [eax + 0x24], ecx
mov dword [eax + 0x28], ecx
mov dword [eax + 0x2c], ecx
mov dword [eax + 0x30], ecx
mov dword [eax + 0x34], ecx
jmp 0x40c71e
xor eax, eax
cmp eax, ebx
mov dword [ebp], eax
jne 0x40c737
push str._CPDLDownload___GetHttpBlockDownloader__mem_not_enough2
mov ebx, 4
call fcn.004156d0
add esp, 4
mov dword [esp + 0x2c], 1
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 8]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea edi, [ebp + 0xc]
lea ebx, [esp + 0x10]
lea eax, [esp + 0x14]
mov esi, edi
call fcn.0040d170
mov esi, dword [esp + 0x14]
test esi, esi
mov ebx, dword [edi + 4]
je 0x40c776
cmp esi, edi
je 0x40c77b
call fcn.004269df
cmp dword [esp + 0x18], ebx
je 0x40c7aa
test esi, esi
jne 0x40c78a
call fcn.004269df
mov ecx, dword [esp + 0x18]
cmp ecx, dword [esi + 4]
jne 0x40c798
call fcn.004269df
mov edx, dword [esp + 0x18]
mov eax, dword [edx + 0x10]
mov ecx, dword [esp + 0x30]
mov dword [ecx], eax
jmp 0x40c845
push 0x448
call fcn.00419243
mov esi, eax
add esp, 4
test esi, esi
je 0x40c812
mov edx, dword [esp + 0x34]
push edx
mov dword [esi], 0
mov byte [esi + 4], 0
mov byte [esi + 5], 1
mov dword [esi + 8], 0
mov ecx, dword [ebp]
push 0x40a0e0
call fcn.0040b770
cmp eax, 1
mov dword [esp + 0x2c], eax
jne 0x40c82e
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x20]
push edx
mov ebx, edi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], esi
call fcn.0040d090
mov eax, dword [esp + 0x30]
mov dword [eax], esi
jmp 0x40c845
push str._CPDLDownload___GetHttpBlockDownloader__mem_not_enough3
mov ebx, 4
call fcn.004156d0
add esp, 4
mov dword [esp + 0x2c], 0
jmp 0x40c845
push str._CPDLDownload___GetHttpBlockDownloader__downloader_init_fail
mov ebx, 4
call fcn.004156d0
add esp, 4
call fcn.0040c860
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, dword [esp + 0x2c]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 0xc
Function at 0x40cb20
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [esi + 0x10], 0
push ebx
push edi
mov ebx, 1
jne 0x40cc7d
cmp dword [esi + 0x38], 0
mov edi, dword [sym.imp.KERNEL32.dll_CreateMutexW]
jne 0x40cb5f
push 0
push 0
push 0
call edi
test eax, eax
mov dword [esi + 0x38], eax
jne 0x40cb5f
push str._CHTTPTaskStatistics___Init__mem_not_enough1
lea ebx, [eax + 4]
call fcn.004156d0
add esp, 4
xor ebx, ebx
cmp dword [esi + 0x20], 0
jne 0x40cb8b
push 0
push 0
push 0
call edi
test eax, eax
mov dword [esi + 0x20], eax
jne 0x40cb8b
push str._CHTTPTaskStatistics___Init__mem_not_enough2
lea ebx, [eax + 4]
call fcn.004156d0
add esp, 4
xor ebx, ebx
jmp 0x40cc42
cmp ebx, 1
jne 0x40cc3e
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateWaitableTimerW]
test eax, eax
mov dword [esi], eax
jne 0x40cbbd
push str._CHTTPTaskStatistics___Init__CreateWaitableTimer_fail
lea ebx, [eax + 4]
call fcn.004156d0
add esp, 4
xor ebx, ebx
jmp 0x40cc42
push 0
push 0
push 0
lea ecx, [esi + 8]
push 0x3e8
push ecx
push eax
mov dword [ecx], 0xff676980
mov dword [ecx + 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_SetWaitableTimer]
test eax, eax
jne 0x40cbf8
push str._CHTTPTaskStatistics___Init__SetWaitableTimer_fail
lea ebx, [eax + 4]
call fcn.004156d0
add esp, 4
xor ebx, ebx
jmp 0x40cc42
push 0
push 0
push esi
push 0x40c520
push 0
push 0
mov byte [esi + 0x15], 0
mov dword [esi + 0x10], 0
call fcn.00427857
add esp, 0x18
test eax, eax
mov dword [esi + 0x10], eax
jne 0x40cc34
push str._CHTTPTaskStatistics___Init__OnTimerForSpeedTest_thread_create_fail
lea ebx, [eax + 4]
call fcn.004156d0
add esp, 4
xor ebx, ebx
jmp 0x40cc42
mov byte [esi + 0x14], 0
mov eax, ebx
pop edi
pop ebx
pop ecx
ret
test ebx, ebx
jne 0x40cc7d
mov eax, dword [esi + 0x38]
test eax, eax
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [esi + 0x15], 0
je 0x40cc5d
push eax
call edi
mov dword [esi + 0x38], 0
mov eax, dword [esi]
test eax, eax
je 0x40cc6c
push eax
call edi
mov dword [esi], 0
mov eax, dword [esi + 0x20]
test eax, eax
je 0x40cc7d
push eax
call edi
mov dword [esi + 0x20], 0
pop edi
mov eax, ebx
pop ebx
pop ecx
ret
Function at 0x40dc90
Capabilities:
Initialize winhttp library

Disassembly:
push ecx
push ebx
push ebp
mov ebp, dword [esp + 0x14]
push esi
push edi
mov esi, ecx
mov edi, eax
mov bl, 1
call fcn.0040dde0
lea eax, [esi + 0xc]
call fcn.00406be0
test edi, edi
mov dword [esi + 0x10], 0
je 0x40dcba
mov dword [esi + 0x64], edi
test ebp, ebp
je 0x40dcc1
mov dword [esi + 0x68], ebp
mov edi, dword [esp + 0x18]
test edi, edi
jne 0x40dd13
push str._CHTTPRequest___Init__Invalid_param
mov ebx, 4
call fcn.004156d0
mov eax, dword [esi]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
add esp, 4
xor bl, bl
test eax, eax
je 0x40dcf2
push eax
call edi
mov dword [esi], 0
mov eax, dword [esi + 0x8c]
test eax, eax
je 0x40dd09
push eax
call edi
mov dword [esi + 0x8c], 0
mov al, bl
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
test eax, eax
mov dword [esi + 0x8c], eax
jne 0x40dd33
push str._CSpeedTester___ComputeSpeed__mem_not_enough
lea ebx, [eax + 2]
jmp 0x40dcd3
mov eax, dword [0x456188]
push 0
push 0
push 0
push 0
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
test eax, eax
mov dword [esi], eax
jne 0x40dd57
push str._CHTTPRequest___Init__WinHttpOpen_fail
jmp 0x40dcce
push 4
lea ecx, [esp + 0x20]
push ecx
push 0x2d
push eax
mov dword [esp + 0x2c], esi
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
mov edx, dword [esi]
push 0
push 2
push 0x40ed50
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpSetStatusCallback]
mov dword [esi + 0x20], edi
pop edi
pop esi
pop ebp
mov al, bl
pop ebx
pop ecx
ret 8
Function at 0x40edb0
Capabilities:
Read http header

Disassembly:
sub esp, 8
mov eax, dword [eax]
test eax, eax
push ebx
mov ebx, 4
mov dword [esp + 4], 0
mov dword [esp + 8], ebx
jne 0x40ede1
push str._CHTTPResponseHeader___GetStatusCode__invalid_handle
call fcn.004156d0
mov eax, dword [esp + 8]
add esp, 4
pop ebx
add esp, 8
ret
push 0
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0xc]
push edx
push 0
push 0x20000013
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
jne 0x40ee17
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._CHTTPResponseHeader___GetStatusCode__query_STATUS_CODE_fail___ERROR_CODE___d
call fcn.004156d0
add esp, 8
mov eax, dword [esp + 4]
pop ebx
add esp, 8
ret

Function at 0x40ee20
Capabilities:
Read http header

Disassembly:
sub esp, 0x90
mov eax, dword [0x451d80]
xor eax, esp
mov dword [esp + 0x88], eax
push ebx
push 0x7e
lea eax, [esp + 0xe]
push 0
push eax
mov word [esp + 0x14], 0
call fcn.0042a080
mov eax, dword [esi]
add esp, 0xc
test eax, eax
mov dword [esp + 4], 0x80
jne 0x40ee6d
push str._CHTTPResponseHeader___GetContentLength__invalid_handle
lea ebx, [eax + 4]
call fcn.004156d0
add esp, 4
jmp 0x40eed5
push 0
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 0x10]
push edx
push 0
push 5
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
je 0x40eebc
mov eax, dword [esp + 4]
push 0xa
lea ecx, [esp + 0xc]
shr eax, 1
push 0
push ecx
mov word [esp + eax*2 + 0x14], 0
call fcn.00427fc2
add esp, 0xc
pop ebx
mov ecx, dword [esp + 0x88]
xor ecx, esp
call fcn.0042655f
add esp, 0x90
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._CHTTPResponseHeader___GetContentLength__query_Content_length_fail___ERROR_CODE___d
mov ebx, 4
call fcn.004156d0
add esp, 8
mov ecx, dword [esp + 0x8c]
pop ebx
xor ecx, esp
or eax, 0xffffffff
or edx, 0xffffffff
call fcn.0042655f
add esp, 0x90
ret

Function at 0x40ef00
Capabilities:
Read http header

Disassembly:
mov eax, dword [eax]
sub esp, 8
test eax, eax
push ebx
jne 0x40ef21
push str._CHTTPResponseHeader___GetModifyTime__invalid_handle
lea ebx, [eax + 3]
call fcn.004156d0
add esp, 4
xor eax, eax
pop ebx
add esp, 8
ret
test ecx, ecx
jne 0x40ef3c
push str._CHTTPResponseHeader___GetModifyTime__invalid_param
lea ebx, [ecx + 3]
call fcn.004156d0
add esp, 4
xor eax, eax
pop ebx
add esp, 8
ret
push 0
lea edx, [esp + 0xc]
push edx
push ecx
push 0
push 0x4000000b
push eax
mov dword [esp + 0x20], 0x10
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
jne 0x40ef7e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._CHTTPResponseHeader___GetModifyTime__query_Last_Modified_time_fail___ERROR_CODE___d
mov ebx, 3
call fcn.004156d0
add esp, 8
xor eax, eax
pop ebx
add esp, 8
ret
mov eax, 1
pop ebx
add esp, 8
ret
Function at 0x40ef90
Capabilities:
Read http header

Disassembly:
push 0xffffffffffffffff
push 0x43e21b
mov eax, dword fs:[0]
push eax
sub esp, 0x210
mov eax, dword [0x451d80]
xor eax, esp
mov dword [esp + 0x208], eax
push ebx
push esi
mov eax, dword [0x451d80]
xor eax, esp
push eax
lea eax, [esp + 0x21c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x22c]
xor ecx, ecx
mov dword [esp + 0xc], ecx
mov esi, dword [0x45353c]
mov dword [esp + 0x10], esi
mov dword [esp + 0x224], ecx
mov eax, dword [eax]
cmp eax, ecx
mov dword [esp + 0xc], 0x200
jne 0x40f007
push str._CHTTPResponseHeader___GetContentMd5__invalid_handle
lea ebx, [ecx + 3]
call fcn.004156d0
add esp, 4
jmp 0x40f039
push ecx
lea edx, [esp + 0x10]
push edx
lea edx, [esp + 0x1c]
push edx
push ecx
push 0x34
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
jne 0x40f039
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._CHTTPResponseHeader___GetModifyTime__query_ContentMD5_fail___ERROR_CODE___d
mov ebx, 3
call fcn.004156d0
add esp, 8
lea ecx, [esp + 0x10]
mov eax, edi
call fcn.00406b30
lea eax, [esi - 0xc]
cmp eax, 0x45352c
je 0x40f065
add esi, 0xfffffff4
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x40f065
push esi
call fcn.00419273
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0x21c]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.0042655f
add esp, 0x21c
ret 4

Function at 0x40f0b0
Capabilities:
Check mutex on windows

Disassembly:
push ecx
cmp byte [esi + 4], 0
push ebx
push edi
jne 0x40f0f3
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
test eax, eax
mov dword [esi + 0x3c], eax
jne 0x40f0e2
push str._CSpeedTester___ComputeSpeed__mem_not_enough
lea ebx, [eax + 2]
call fcn.004156d0
add esp, 4
xor eax, eax
pop edi
pop ebx
pop ecx
ret
mov eax, 1
add dword [esi + 0xc], eax
mov byte [esi + 4], al
xor eax, eax
pop edi
pop ebx
pop ecx
ret
mov eax, dword [esi + 0x3c]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esi + 0xc]
xor edi, edi
test eax, eax
je 0x40f123
cmp eax, 0xa
jae 0x40f113
mov edi, dword [esi + eax*4 + 0xc]
jmp 0x40f123
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x40f11f
mov edi, dword [esi + 0x34]
jmp 0x40f123
mov edi, dword [esi + ecx*4 + 0xc]
cmp eax, 0xa
jne 0x40f15e
mov ecx, dword [esi + 0x38]
mov edx, dword [esi + ecx*4 + 0x10]
sub dword [esi + 8], edx
lea eax, [esi + ecx*4 + 0x10]
mov dword [eax], 0
mov eax, dword [esi + 0x38]
xor edx, edx
add eax, 1
mov ecx, 0xa
div ecx
mov dword [esi + 0x38], edx
mov edx, dword [esi + 0x3c]
push edx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, edi
pop edi
pop ebx
pop ecx
ret
mov edx, dword [esi + 0x3c]
add eax, 1
push edx
mov dword [esi + 0xc], eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, edi
pop edi
pop ebx
pop ecx
ret
Function at 0x40f790
Capabilities:
Hash data with md5

Disassembly:
xor ecx, ecx
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret