joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408f20
Capabilities:
Initialize winsock library

Disassembly:
push 0xffffffffffffffff
push 0x45cf53
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x474cb0]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
lea eax, [esi + 4]
push eax
mov dword [esi], vtable.CSpeedMonitor.0
call fcn.00409810
mov dword [esp + 0x14], 0
lea eax, [esi + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov byte [esp + 0x14], 1
lea eax, [esi + 0x1c8]
push eax
mov dword [esi + 0x1c4], 0
mov dword [esp + 0xc], eax
call fcn.00409e30
mov byte [esp + 0x14], 3
lea eax, [esi + 0x1e8]
push eax
mov dword [esp + 0xc], eax
call fcn.00409e30
mov byte [esp + 0x14], 5
lea eax, [esi + 0x208]
push eax
mov dword [esp + 0xc], eax
call fcn.00409e30
mov byte [esp + 0x14], 7
lea ecx, [esi + 0x34]
push ecx
push 0x202
mov dword [esi + 0x22c], 0
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x408fe3
push 0x469978
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [esi + 0x228], eax
mov dword [esp + 0x14], 0xffffffff
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret 4

Function at 0x409330
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x10
push esi
push edi
lea eax, [ebx + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, dword [ebx + 0x14]
cmp dword [ebx + 0x10], esi
lea edi, [ebx + 4]
jbe 0x409355
call fcn.004465ac
mov ecx, dword [edi + 0xc]
mov eax, dword [edi]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], ecx
cmp ecx, dword [edi + 0x10]
jbe 0x409370
call fcn.004465ac
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
mov eax, dword [edi]
push esi
push edx
push ecx
push eax
lea eax, [esp + 0x20]
push eax
call fcn.00409d00
mov ecx, dword [ebx + 0x1e0]
mov edx, dword [ecx + 4]
lea esi, [ebx + 0x1c8]
push edx
mov ecx, esi
call fcn.004127f0
mov eax, dword [esi + 0x18]
mov dword [eax + 4], eax
mov eax, dword [esi + 0x18]
mov dword [esi + 0x1c], 0
mov dword [eax], eax
mov esi, dword [esi + 0x18]
lea eax, [ebx + 0x1c]
push eax
mov dword [esi + 8], esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0
push 0
push ebx
push 0x4093e0
push 0
push 0
call fcn.0044af39
add esp, 0x18
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40b800
Capabilities:
Access peb ldr_data
Get process heap flags
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x45b3da
mov eax, dword fs:[0]
push eax
push esi
mov eax, dword [0x474cb0]
xor eax, esp
push eax
lea eax, [esp + 8]
mov dword fs:[0], eax
mov esi, dword [esp + 0x18]
push esi
call fcn.004013e0
mov dword [esp + 0x10], 0
lea eax, [esi + 8]
push eax
call fcn.004013e0
mov byte [esp + 0x10], 1
lea ecx, [esi + 0xc]
push ecx
call fcn.004013e0
mov byte [esp + 0x10], 2
lea edx, [esi + 0x10]
push edx
call fcn.004013e0
mov byte [esp + 0x10], 3
lea eax, [esi + 0x14]
push eax
call fcn.004013e0
mov byte [esp + 0x10], 4
lea ecx, [esi + 0x18]
push ecx
call fcn.004013e0
mov byte [esp + 0x10], 5
lea edx, [esi + 0x1c]
push edx
call fcn.004013e0
mov byte [esp + 0x10], 6
lea eax, [esi + 0x20]
push eax
call fcn.004013e0
mov byte [esp + 0x10], 7
lea ecx, [esi + 0x24]
push ecx
call fcn.004013e0
mov byte [esp + 0x10], 8
lea edx, [esi + 0x28]
push edx
call fcn.004013e0
mov byte [esp + 0x10], 9
lea eax, [esi + 0x2c]
push eax
call fcn.004013e0
mov byte [esp + 0x10], 0xa
lea ecx, [esi + 0x30]
push ecx
call fcn.004013e0
mov byte [esp + 0x10], 0xb
lea edx, [esi + 0x34]
push edx
call fcn.004013e0
mov byte [esp + 0x10], 0xc
lea eax, [esi + 0x38]
push eax
call fcn.004013e0
mov byte [esp + 0x10], 0xd
lea ecx, [esi + 0x40]
push ecx
call fcn.004013e0
mov byte [esp + 0x10], 0xe
lea edx, [esi + 0x44]
push edx
call fcn.004013e0
mov byte [esp + 0x10], 0xf
lea eax, [esi + 0x48]
push eax
call fcn.004013e0
mov dword [esp + 0x10], 0xffffffff
mov eax, esi
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0xc
ret 4
Function at 0x40b930
Capabilities:
Access peb ldr_data
Get process heap flags
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x45b3da
mov eax, dword fs:[0]
push eax
push esi
mov eax, dword [0x474cb0]
xor eax, esp
push eax
lea eax, [esp + 8]
mov dword fs:[0], eax
mov esi, dword [esp + 0x18]
mov dword [esp + 0x10], 0xf
lea eax, [esi + 0x48]
push eax
call fcn.004014e0
mov byte [esp + 0x10], 0xe
lea ecx, [esi + 0x44]
push ecx
call fcn.004014e0
mov byte [esp + 0x10], 0xd
lea edx, [esi + 0x40]
push edx
call fcn.004014e0
mov byte [esp + 0x10], 0xc
lea eax, [esi + 0x38]
push eax
call fcn.004014e0
mov byte [esp + 0x10], 0xb
lea ecx, [esi + 0x34]
push ecx
call fcn.004014e0
mov byte [esp + 0x10], 0xa
lea edx, [esi + 0x30]
push edx
call fcn.004014e0
mov byte [esp + 0x10], 9
lea eax, [esi + 0x2c]
push eax
call fcn.004014e0
mov byte [esp + 0x10], 8
lea ecx, [esi + 0x28]
push ecx
call fcn.004014e0
mov byte [esp + 0x10], 7
lea edx, [esi + 0x24]
push edx
call fcn.004014e0
mov byte [esp + 0x10], 6
lea eax, [esi + 0x20]
push eax
call fcn.004014e0
mov byte [esp + 0x10], 5
lea ecx, [esi + 0x1c]
push ecx
call fcn.004014e0
mov byte [esp + 0x10], 4
lea edx, [esi + 0x18]
push edx
call fcn.004014e0
mov byte [esp + 0x10], 3
lea eax, [esi + 0x14]
push eax
call fcn.004014e0
mov byte [esp + 0x10], 2
lea ecx, [esi + 0x10]
push ecx
call fcn.004014e0
mov byte [esp + 0x10], 1
lea edx, [esi + 0xc]
push edx
call fcn.004014e0
mov byte [esp + 0x10], 0
lea eax, [esi + 8]
push eax
call fcn.004014e0
mov dword [esp + 0x10], 0xffffffff
push esi
call fcn.004014e0
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0xc
ret 4
Function at 0x40dad0
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x45cc92
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push ebp
push esi
push edi
mov eax, dword [0x474cb0]
xor eax, esp
push eax
lea eax, [esp + 0x34]
mov dword fs:[0], eax
lea eax, [esp + 0x14]
push eax
xor ebx, ebx
xor ebp, ebp
call fcn.004013e0
mov ecx, dword [esp + 0x44]
push 0x5c
push ecx
lea edx, [esp + 0x20]
push edx
mov dword [esp + 0x48], ebx
call fcn.0040f0e0
add esp, 0xc
mov byte [esp + 0x3c], 1
mov eax, dword [esp + 0x28]
sub eax, dword [esp + 0x24]
sar eax, 2
cmp eax, 2
jb 0x40dbbb
cmp eax, ebx
ja 0x40db3f
call fcn.004465ac
mov eax, dword [esp + 0x24]
lea edi, [esp + 0x14]
call fcn.004058c0
mov eax, dword [esp + 0x28]
sub eax, dword [esp + 0x24]
mov esi, 1
sar eax, 2
cmp eax, esi
jbe 0x40dba9
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp esi, eax
jb 0x40db6f
call fcn.004465ac
mov eax, dword [esp + 0x24]
mov ecx, dword [eax + esi*4]
push ecx
push 0x469f0c
lea edi, [esp + 0x1c]
call fcn.0040def0
mov edx, dword [esp + 0x1c]
add esp, 8
push 0
push edx
call ebx
mov ebp, eax
mov eax, dword [esp + 0x28]
sub eax, dword [esp + 0x24]
inc esi
sar eax, 2
cmp esi, eax
jb 0x40db6f
xor ebx, ebx
test ebp, ebp
jne 0x40dbbb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40dbbb
mov ebp, 1
mov byte [esp + 0x3c], 0
mov esi, dword [esp + 0x24]
cmp esi, ebx
je 0x40dbea
mov edi, dword [esp + 0x28]
cmp esi, edi
je 0x40dbe1
push esi
call fcn.004014e0
add esi, 4
cmp esi, edi
jne 0x40dbd0
mov esi, dword [esp + 0x24]
push esi
call fcn.004462c0
add esp, 4
mov eax, dword [esp + 0x18]
push eax
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
call fcn.004462c0
add esp, 4
lea ecx, [esp + 0x14]
push ecx
mov dword [esp + 0x40], 0xffffffff
call fcn.004014e0
mov eax, ebp
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret

Function at 0x40dc30
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x45b87a
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x474cb0]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
mov dword [esp + 0x14], 0
push esi
mov dword [esp + 0xc], 0
call fcn.004013e0
mov dword [esp + 0x14], 0
mov eax, dword [esi]
sub eax, 0x10
mov ecx, 1
mov dword [esp + 8], ecx
sub ecx, dword [eax + 0xc]
mov eax, dword [eax + 8]
sub eax, 0x104
or eax, ecx
jge 0x40dc9d
mov ecx, 0x104
mov eax, esi
call fcn.004016f0
mov eax, dword [esi]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
cmp eax, 0xffffffff
jne 0x40dcc3
mov eax, dword [esi]
mov ecx, dword [eax - 8]
test eax, eax
je 0x40dcc7
push ecx
push eax
call fcn.004467c9
add esp, 8
test eax, eax
jl 0x40dcec
mov ecx, dword [esi]
cmp eax, dword [ecx - 8]
jg 0x40dcec
mov dword [ecx - 0xc], eax
mov ecx, dword [esi]
xor edx, edx
mov word [ecx + eax*2], dx
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret
push 0x80070057
call fcn.00401a10
int3
Function at 0x40dd00
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x45bd44
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x474cb0]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [esp + 0x28]
xor ebx, ebx
mov dword [esp + 0x20], ebx
push esi
mov dword [esp + 0x14], ebx
call fcn.004013e0
mov dword [esp + 0x20], ebx
mov dword [esp + 0x10], 1
cmp edi, ebx
jne 0x40dda6
lea eax, [esp + 0x14]
push eax
call fcn.0040dc30
add esp, 4
mov edi, eax
mov dword [esp + 0x20], 1
mov eax, dword [esi]
sub eax, 0x10
mov ecx, 1
sub ecx, dword [eax + 0xc]
mov eax, dword [eax + 8]
sub eax, 0x104
or eax, ecx
jge 0x40dd88
mov ecx, 0x104
mov eax, esi
call fcn.004016f0
mov eax, dword [esi]
mov edi, dword [edi]
push eax
push ebx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea ecx, [esp + 0x14]
push ecx
mov byte [esp + 0x24], bl
call fcn.004014e0
jmp 0x40ddd7
mov eax, dword [esi]
sub eax, 0x10
mov ecx, 1
sub ecx, dword [eax + 0xc]
mov eax, dword [eax + 8]
sub eax, 0x104
or eax, ecx
jge 0x40ddcb
mov ecx, 0x104
mov eax, esi
call fcn.004016f0
mov eax, dword [esi]
push eax
push ebx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
mov eax, dword [esi]
mov ecx, dword [eax - 8]
cmp eax, ebx
jne 0x40dde4
xor eax, eax
jmp 0x40ddf2
push ecx
push eax
call fcn.004467c9
add esp, 8
cmp eax, ebx
jl 0x40de19
mov ecx, dword [esi]
cmp eax, dword [ecx - 8]
jg 0x40de19
mov dword [ecx - 0xc], eax
mov edx, dword [esi]
xor ecx, ecx
mov word [edx + eax*2], cx
mov eax, esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x14
ret
push 0x80070057
call fcn.00401a10
int3

Function at 0x40df80
Capabilities:
Check internet connectivity via wininet

Disassembly:
push ecx
push 0
lea eax, [esp + 4]
push eax
mov dword [esp + 8], 0
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
test eax, eax
je 0x40dfdc
test esi, esi
je 0x40dfd8
mov eax, dword [esp]
mov ecx, eax
and ecx, 1
jne 0x40dfcb
mov ecx, eax
and ecx, 2
jne 0x40dfcb
mov ecx, eax
and ecx, 4
jne 0x40dfcb
mov ecx, eax
and ecx, 8
jne 0x40dfcb
mov ecx, eax
and ecx, 0x10
jne 0x40dfcb
mov ecx, eax
and ecx, 0x20
je 0x40dfd1
mov dword [esi], ecx
mov al, 1
pop ecx
ret
and eax, 0x40
je 0x40dfd8
mov dword [esi], eax
mov al, 1
pop ecx
ret
test esi, esi
je 0x40dfe6
mov dword [esi], 0
xor al, al
pop ecx
ret
Function at 0x40dff0
Capabilities:
Parse url

Disassembly:
push 0xffffffffffffffff
push 0x45c204
mov eax, dword fs:[0]
push eax
sub esp, 0x44
push ebx
push ebp
push esi
push edi
mov eax, dword [0x474cb0]
xor eax, esp
push eax
lea eax, [esp + 0x58]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x68]
mov edi, edx
xor ebx, ebx
cmp ecx, ebx
je 0x40e0a0
lea eax, [esp + 0x14]
push eax
call fcn.00405480
mov dword [esp + 0x60], ebx
mov eax, dword [esp + 0x14]
mov esi, 1
xor ecx, ecx
lea edx, [esp + 0x1c]
push edx
mov dword [esp + 0x20], 0x3c
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], esi
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], esi
mov word [esp + 0x38], cx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], esi
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], esi
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], esi
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], esi
mov ecx, dword [eax - 0xc]
push ebx
push ecx
push eax
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
jne 0x40e0b6
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x64], 0xffffffff
call fcn.004014e0
xor al, al
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x50
ret
cmp edi, ebx
je 0x40e0f1
cmp dword [esp + 0x30], esi
jbe 0x40e0f1
mov edx, dword [esp + 0x2c]
call fcn.00405530
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x34]
mov edx, edi
call fcn.0040e150
mov byte [esp + 0x60], 1
call fcn.004058c0
lea edx, [esp + 0x18]
push edx
mov byte [esp + 0x64], bl
call fcn.004014e0
cmp ebp, ebx
je 0x40e0fe
mov ax, word [esp + 0x34]
mov word [ebp], ax
mov edi, dword [esp + 0x6c]
cmp edi, ebx
je 0x40e113
mov edx, dword [esp + 0x48]
cmp edx, ebx
je 0x40e113
call fcn.00405530
mov eax, dword [esp + 0x70]
cmp eax, ebx
je 0x40e121
mov ecx, dword [esp + 0x28]
mov dword [eax], ecx
lea edx, [esp + 0x14]
push edx
mov dword [esp + 0x64], 0xffffffff
call fcn.004014e0
mov al, 1
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x50
ret
Function at 0x40e250
Capabilities:
Enumerate processes
Terminate process

Disassembly:
sub esp, 0x234
mov eax, dword [0x474cb0]
xor eax, esp
mov dword [esp + 0x230], eax
mov eax, dword [esp + 0x238]
push ebx
push edi
xor edi, edi
push edi
push 2
mov dword [esp + 0x10], eax
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40e301
push ebp
push 0x228
lea ecx, [esp + 0x18]
push edi
push ecx
mov dword [esp + 0x1c], 0x22c
call fcn.00447390
add esp, 0xc
lea edx, [esp + 0x10]
push edx
push ebx
call sub.KERNEL32.dll_Process32FirstW
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x40e2fd
push esi
mov eax, dword [esp + 0x10]
push eax
lea ecx, [esp + 0x3c]
push ecx
call fcn.004469dd
add esp, 8
test eax, eax
jne 0x40e2ed
mov edx, dword [esp + 0x1c]
push edx
push eax
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
cmp esi, 0xffffffff
je 0x40e2ed
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
mov edi, eax
call ebp
lea eax, [esp + 0x14]
push eax
push ebx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x40e2b4
pop esi
push ebx
call ebp
pop ebp
mov ecx, dword [esp + 0x238]
mov eax, edi
pop edi
pop ebx
xor ecx, esp
call fcn.004462cb
add esp, 0x234
ret

Function at 0x40e320
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x234
mov eax, dword [0x474cb0]
xor eax, esp
mov dword [esp + 0x230], eax
push esi
push 0
push 2
mov dword [esp + 0xc], 0
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x40e38d
push 0x228
lea eax, [esp + 0x10]
push 0
push eax
mov dword [esp + 0x14], 0x22c
call fcn.00447390
add esp, 0xc
lea ecx, [esp + 8]
push ecx
push esi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x40e38d
cmp dword [esp + 0x10], ebx
je 0x40e3b0
lea edx, [esp + 8]
push edx
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x40e378
mov ecx, 0x469938
push edi
call fcn.00405480
mov ecx, dword [esp + 0x234]
pop esi
xor ecx, esp
mov eax, edi
call fcn.004462cb
add esp, 0x234
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x2c]
jmp 0x40e392

Function at 0x40e680
Capabilities:
Get file version info

Disassembly:
sub esp, 0xc
push edi
lea eax, [esp + 4]
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
test edi, edi
je 0x40e6c9
push edi
call fcn.00446245
mov ecx, dword [esp + 8]
add esp, 4
push eax
push edi
push ecx
push ebx
mov dword [esi], eax
call sub.VERSION.dll_GetFileVersionInfoW
mov edx, dword [esi]
test eax, eax
jne 0x40e6d0
push edx
call fcn.004470dc
add esp, 4
mov dword [esi], 0
mov dword [esi + 4], 0
xor eax, eax
pop edi
add esp, 0xc
ret
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0xc]
push ecx
push str.VarFileInfoTranslation
push edx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
jne 0x40e6ee
mov eax, dword [esi]
push eax
jmp 0x40e6b4
mov eax, dword [esp + 8]
movzx ecx, word [eax]
movzx edx, word [eax + 2]
shl ecx, 0x10
or ecx, edx
mov dword [esi + 4], ecx
mov eax, 1
pop edi
add esp, 0xc
ret
Function at 0x410c80
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebx]
push esi
push edi
test eax, eax
jne 0x410ca1
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov esi, dword [ebp + 8]
cmp dword [esi + 0x78], 0
jne 0x410cb8
mov eax, 0xfffffffe
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [eax + 0x10], 0
je 0x410ccc
mov eax, 0xfffffffd
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [esi + 0x60], 0
lea edi, [esi + 0x60]
mov dword [esp + 0x14], edi
jne 0x410ce7
mov eax, 0xfffffffc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebp + 0x10], 0
je 0x410d06
push eax
push esi
call fcn.00410f50
test eax, eax
je 0x410d06
mov eax, 0xfffffffb
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
inc dword [esi + 4]
mov eax, dword [esi + 4]
mov ecx, dword [ebx]
mov edx, dword [ebp + 0xc]
mov dword [ecx + 0x10], eax
mov ebx, dword [esi + 0x1c]
mov eax, dword [ebx + 4]
lea edi, [esi + 8]
push edx
push eax
push ebx
call fcn.00411e70
mov ecx, edi
mov dword [esp + 0xc], eax
call fcn.00411f20
mov eax, dword [esp + 0xc]
mov dword [ebx + 4], eax
mov ecx, dword [eax + 4]
mov dword [ecx], eax
cmp dword [esi + 0x20], 0x64
jbe 0x410d84
mov edx, dword [edi + 0x14]
mov eax, dword [edx]
mov ecx, dword [edi]
lea esi, [esp + 0xc]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], ecx
call fcn.00411ac0
mov ecx, dword [eax]
test ecx, ecx
je 0x410d6f
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
mov ecx, dword [edi + 0x14]
mov eax, dword [ecx]
mov ecx, dword [edi]
push eax
push ecx
lea ebx, [esp + 0x14]
call fcn.00411940
mov esi, dword [ebp + 8]
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edi, dword [ebp + 0xc]
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
push 0
call edx
mov dword [edi], 0
mov eax, dword [esi + 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
cmp dword [esi + 0x80], 0xffffffff
jne 0x410dda
push 0
push 0
push esi
push 0x410a50
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x80], eax
cmp eax, 0xffffffff
mov eax, 0xfffffff7
je 0x410ddd
mov eax, dword [esi + 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x412890
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x45c46a
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x474cb0]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, ecx
test edx, edx
jne 0x41292a
lea eax, [esp + 0x10]
push eax
call fcn.0040d9d0
add esp, 4
lea edi, [esi + 4]
mov dword [esp + 0x1c], 0
call fcn.004058c0
lea ecx, [esp + 0x10]
push ecx
mov dword [esp + 0x20], 0xffffffff
call fcn.004014e0
mov eax, dword [edi]
push 0x2e
push eax
call fcn.004472ff
add esp, 8
test eax, eax
jne 0x4128ff
or eax, 0xffffffff
jmp 0x412903
sub eax, dword [edi]
sar eax, 1
lea edx, [esp + 0x10]
push edx
mov ecx, eax
mov edx, edi
call fcn.0040e150
lea eax, [esp + 0x10]
push eax
call fcn.004014e0
push 4
push 0x46a158
push edi
call fcn.00412a90
jmp 0x41294b
mov eax, edx
lea edi, [esi + 4]
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x412932
sub eax, esi
sar eax, 1
mov ebx, eax
push edx
mov eax, edi
call fcn.004059b0
mov edi, dword [edi]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x41296e
xor eax, eax
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret
not al
movzx eax, al
shr eax, 4
and eax, 1
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret

Function at 0x412990
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x45b7ca
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x474cb0]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, dword [esp + 0x24]
mov dword [esp + 0x18], 0
push esi
mov dword [esp + 0x10], 0
call fcn.004013e0
mov eax, dword [esp + 0x20]
mov dword [esp + 0x18], 0
mov edi, dword [eax + 4]
mov eax, dword [esi]
sub eax, 0x10
mov ecx, 1
mov dword [esp + 0xc], ecx
sub ecx, dword [eax + 0xc]
mov eax, dword [eax + 8]
sub eax, 0x104
or eax, ecx
jge 0x412a05
mov ecx, 0x104
mov eax, esi
call fcn.004016f0
mov eax, dword [esi]
cmp dword [eax - 8], 0x104
jge 0x412a1a
push 0x80070057
call fcn.00401a10
push edi
push 0x104
push eax
push 0x469a1c
mov dword [eax - 0xc], 0x104
mov ecx, dword [esi]
push str.SPEEDTEST_URL
xor edx, edx
push str.CLIENT_BASE
mov word [ecx + 0x208], dx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov eax, dword [esi]
mov ecx, dword [eax - 8]
test eax, eax
je 0x412a5f
push ecx
push eax
call fcn.004467c9
add esp, 8
test eax, eax
jl 0x412a10
mov ecx, dword [esi]
cmp eax, dword [ecx - 8]
jg 0x412a10
mov dword [ecx - 0xc], eax
mov ecx, dword [esi]
xor edx, edx
mov word [ecx + eax*2], dx
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret 8