joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40fdb0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x44b728
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x466910]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov esi, ecx
cmp byte [ebp + 8], 0
jne 0x40fded
mov eax, dword [esi + 0x20]
mov dword [esi + 0x914], eax
lea eax, [esi + 0x670]
lea ebx, [esi + 4]
push eax
call fcn.004141c0
test al, al
je 0x40ff7e
jmp 0x40fe10
cmp dword [0x46ac04], 0
jne 0x40ff95
call fcn.004163a8
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x40ffac
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov dword [esp + 0x28], 0
mov ecx, dword [esi + 0x44]
mov edx, dword [esi + 0x40]
push ecx
push edx
lea eax, [esi + 0x45c]
push eax
lea ecx, [esi + 0x254]
push ecx
lea edx, [esp + 0x24]
push str._s_s__d__d.tmp
push edx
call fcn.00404600
mov eax, dword [esp + 0x2c]
push eax
lea edi, [esi + 0x4c]
push 0x104
push edi
call fcn.0043349d
add esp, 0x24
cmp byte [esi + 0x668], 0
jne 0x40fe94
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edx, dword [esi + 0xbfc]
mov ecx, dword [esi + 0x48]
lea ebx, [esi + 0x918]
push 0xffffffffffffffff
push edx
mov dword [esp + 0x20], ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x80
je 0x40fedd
cmp eax, 0x102
je 0x40fed0
cmp eax, 0xffffffff
jne 0x40fef0
push 1
push 0
push 0
push str.Wait_failed__may_result_in_unexpected_behaviour
jmp 0x40fee8
push 1
push 0
push 0
push str.Wait_timeout__should_not_have_timed_out_as_waiting_for_infinite
jmp 0x40fee8
push 1
push 0
push 0
push str.Wait_abandoned__protected_data_may_be_corrupt
call fcn.00404830
add esp, 0x10
mov ecx, dword [ebx + 0x2e4]
mov eax, dword [esp + 0x18]
push ecx
mov dword [ebx + 0x2d0], eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
cmp byte [esi + 0x669], 0
je 0x40ff2e
mov dword [esp + 0x28], 0xffffffff
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
jmp 0x40ff5b
mov ecx, dword [esi + 0x3c]
mov edx, dword [esi + 0x38]
push ecx
push edx
mov eax, edi
mov ecx, ebx
call fcn.004151c0
mov dword [esp + 0x28], 0xffffffff
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 0x40ff67
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi + 0x670]
push eax
lea ebx, [esi + 4]
call fcn.004141c0
test al, al
jne 0x40fe10
mov al, 1
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
xor al, al
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
push 0x80004005
call fcn.004017a0
int3
Function at 0x410300
Capabilities:
Get file size

Disassembly:
sub esp, 0xc
push esi
push 0
push 0x80
push 3
lea eax, [esp + 0x10]
push eax
push 1
push SysReAllocStringLen
push ecx
mov dword [esp + 0x20], 0xc
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x410365
push edi
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
test esi, esi
je 0x41035d
push esi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
add esp, 0xc
ret
xor eax, eax
pop esi
add esp, 0xc
ret
Function at 0x4122c0
Capabilities:
Suspend thread

Disassembly:
cmp dword [edi + 8], 0
je 0x4122ee
push esi
xor esi, esi
cmp dword [edi + 0x50], esi
jle 0x4122ed
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_SuspendThread]
mov eax, dword [edi + 8]
cmp dword [eax + esi*4], 0xffffffff
lea eax, [eax + esi*4]
je 0x4122e6
mov ecx, dword [eax]
push ecx
call ebx
inc esi
cmp esi, dword [edi + 0x50]
jl 0x4122d5
pop ebx
pop esi
ret

Function at 0x4122f0
Capabilities:
Resume thread

Disassembly:
cmp dword [edi + 8], 0
je 0x41231e
push esi
xor esi, esi
cmp dword [edi + 0x50], esi
jle 0x41231d
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, dword [edi + 8]
cmp dword [eax + esi*4], 0xffffffff
lea eax, [eax + esi*4]
je 0x412316
mov ecx, dword [eax]
push ecx
call ebx
inc esi
cmp esi, dword [edi + 0x50]
jl 0x412305
pop ebx
pop esi
ret
Function at 0x4123b0
Capabilities:
Create thread

Disassembly:
sub esp, 0xc8
mov eax, dword [0x466910]
xor eax, esp
mov dword [esp + 0xc4], eax
push ebx
push ebp
mov ebp, dword [esp + 0xd4]
push esi
mov esi, dword [0x467bb4]
push edi
xor ebx, ebx
push 0x60
lea eax, [esp + 0x70]
push ebx
push eax
mov dword [esp + 0x74], ebx
call fcn.00437170
add esp, 0xc
cmp dword [ebp + 8], ebx
jne 0x412563
cmp esi, ebx
jg 0x4123ff
mov dword [ebp + 0x50], 4
mov edi, dword [sym.imp.KERNEL32.dll_CreateEventW]
push ebx
push ebx
push 1
push ebx
mov dword [ebp + 0x50], esi
call edi
mov dword [ebp + 0x54], eax
cmp eax, ebx
jne 0x41241d
xor al, al
jmp 0x412565
mov eax, dword [ebp + 0x50]
xor ecx, ecx
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041595d
mov dword [ebp + 8], eax
mov eax, dword [ebp + 0x50]
xor ecx, ecx
add esp, 4
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041595d
mov dword [ebp], eax
mov eax, dword [ebp + 0x50]
xor ecx, ecx
add esp, 4
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041595d
xor esi, esi
add esp, 4
cmp dword [ebp + 0x50], ebx
mov dword [ebp + 4], eax
mov dword [esp + 0x10], esi
jle 0x412563
jmp 0x41249c
mov edi, dword [sym.imp.KERNEL32.dll_CreateEventW]
mov esi, dword [esp + 0x10]
xor ebx, ebx
lea eax, [esp + 0x14]
push eax
push 4
push ebp
push 0x411ea0
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [ebp + 8]
mov dword [ecx + esi*4], eax
mov edx, dword [esp + 0x14]
push edx
push str.Thread__d
lea eax, [esp + 0x70]
push 0x32
push eax
call fcn.004338a8
mov ecx, dword [ebp + 8]
add esp, 0x10
cmp dword [ecx + esi*4], ebx
je 0x412416
lea edx, [esp + 0x68]
push edx
push ebx
push 1
push ebx
mov byte [esp + 0x28], 1
call edi
push ebx
push ebx
push 1
push ebx
mov dword [esp + 0x2c], eax
call edi
mov ecx, dword [ebp]
push ebx
push ebx
push 1
push ebx
mov dword [esp + 0x30], eax
mov dword [ecx + esi*4], eax
call edi
mov edx, dword [ebp + 4]
mov dword [edx + esi*4], eax
mov dword [esp + 0x24], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + esi*4]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x44], eax
lea edx, [esp + 0x44]
mov dword [esp + 0x28], ecx
push edx
lea eax, [esp + 0x3c]
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov ecx, 8
lea esi, [esp + 0x1c]
lea edi, [esp + 0x4c]
push eax
lea ebx, [ebp + 0x2c]
rep movsd dword es:[edi], dword [esi]
call fcn.00412e90
mov eax, dword [esp + 0x10]
inc eax
cmp eax, dword [ebp + 0x50]
mov dword [esp + 0x10], eax
jl 0x412490
mov al, 1
mov ecx, dword [esp + 0xd4]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004331c4
add esp, 0xc8
ret 4
Function at 0x412810
Capabilities:
Resume thread

Disassembly:
sub esp, 0x34
push ebx
push ebp
push esi
mov esi, eax
lea eax, [esi + 0x28]
push edi
mov dword [esp + 0x14], eax
call fcn.0040f050
mov eax, dword [esi + 0x44]
mov eax, dword [eax]
lea ebx, [esi + 0x2c]
mov esi, dword [ebx]
mov ebp, eax
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], ebp
lea esp, [esp]
mov edi, dword [ebx + 0x18]
mov eax, dword [ebx]
test esi, esi
je 0x41284d
cmp esi, eax
je 0x412852
call fcn.00434079
cmp ebp, edi
je 0x4128c8
test esi, esi
jne 0x4128c4
call fcn.00434079
cmp ebp, dword [esi + 0x18]
jne 0x412869
call fcn.00434079
lea esi, [ebp + 0x10]
mov ecx, 8
lea edi, [esp + 0x20]
rep movsd dword es:[edi], dword [esi]
mov esi, 1
cmp dword [esp + 0x38], esi
je 0x41289a
mov ecx, dword [esp + 0x30]
push ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push ebx
lea eax, [esp + 0x38]
call fcn.00412dc0
mov dword [eax + 0x18], esi
cmp byte [esp + 0x20], 0
je 0x4128ae
push ebx
lea eax, [esp + 0x38]
call fcn.00412dc0
mov byte [eax], 0
lea esi, [esp + 0x18]
call fcn.00413ec0
mov ebp, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
jmp 0x412840
mov esi, dword [esi]
jmp 0x41285f
mov edx, dword [esp + 0x14]
mov eax, dword [edx]
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret
Function at 0x4142a0
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x44b66d
mov eax, dword fs:[0]
push eax
sub esp, 0x2b4
mov eax, dword [0x466910]
xor eax, esp
mov dword [esp + 0x2ac], eax
push ebx
push esi
mov eax, dword [0x466910]
xor eax, esp
push eax
lea eax, [esp + 0x2c0]
mov dword fs:[0], eax
lea eax, [esp + 0x10]
push eax
mov ebx, ecx
call fcn.00413fe0
xor eax, eax
mov dword [esp + 0x2c8], eax
xor ecx, ecx
lea esi, [esp + 0x1c]
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], eax
mov word [esp + 0x20], cx
call fcn.00414070
mov eax, ebx
mov byte [esp + 0x2c8], 1
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x414320
sub eax, edx
sar eax, 1
push eax
mov eax, ebx
lea esi, [esp + 0x20]
call fcn.0040c460
mov edx, dword [edi + 0x1c]
inc edx
mov dword [esp + 0x38], 0
cmp dword [edi + 0x14], edx
ja 0x414353
mov ebx, edi
call fcn.00414510
mov esi, dword [edi + 0x18]
add esi, dword [edi + 0x1c]
mov eax, dword [edi + 0x14]
cmp eax, esi
ja 0x414362
sub esi, eax
mov eax, dword [edi + 0x10]
cmp dword [eax + esi*4], 0
jne 0x41437b
mov ecx, 1
call fcn.00414760
mov ecx, dword [edi + 0x10]
mov dword [ecx + esi*4], eax
mov edx, dword [edi + 0x10]
mov esi, dword [edx + esi*4]
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], esi
mov byte [esp + 0x2c8], 2
test esi, esi
je 0x4143a1
lea eax, [esp + 0x1c]
push eax
mov ebx, esi
call fcn.004147b0
inc dword [edi + 0x1c]
cmp dword [esp + 0x34], 8
jb 0x4143b8
mov ecx, dword [esp + 0x20]
push ecx
call fcn.00415952
add esp, 4
mov eax, dword [esp + 0x10]
xor edx, edx
push eax
mov dword [esp + 0x38], 7
mov dword [esp + 0x34], 0
mov word [esp + 0x24], dx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x2c0]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x2ac]
xor ecx, esp
call fcn.004331c4
mov esp, ebp
pop ebp
ret

Function at 0x414880
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov eax, dword [edi]
lea ecx, [esp]
push ecx
push esi
add eax, eax
lea edx, [esp + 0x10]
push edx
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x14]
push 0
mov dword [edi], 0
mov ecx, dword [eax]
push str.ProxyServer
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4148ee
mov eax, dword [esp + 8]
cmp eax, 1
je 0x4148bf
cmp eax, 2
jne 0x4148da
mov eax, dword [esp]
test esi, esi
je 0x4148e8
test eax, eax
je 0x4148e3
test al, 1
jne 0x4148da
mov edx, eax
shr edx, 1
cmp word [esi + edx*2 - 2], 0
je 0x4148e8
mov eax, 0xd
pop ecx
ret 4
xor ecx, ecx
mov word [esi], cx
shr eax, 1
mov dword [edi], eax
xor eax, eax
pop ecx
ret 4
Function at 0x414aa0
Capabilities:
Initialize winhttp library

Disassembly:
push ebx
mov ebx, eax
push esi
call fcn.00414920
test al, al
jne 0x414ac4
push ebx
push str.CWinHttpManager::Initialize_CrackURL_connection_failed_for_URL__s
mov ecx, 0x467be0
call fcn.0040f810
add esp, 8
xor al, al
pop ebx
ret
cmp dword [esi + 0x2d4], 0
jne 0x414b0c
push esi
call fcn.00414b30
test al, al
jne 0x414af0
push 0
push 0
push 0
push 0
push 0x4548f0
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov dword [esi + 0x2d4], eax
mov eax, dword [esi + 0x2d4]
test eax, eax
je 0x414b10
push 0
push 0x50
push esi
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov dword [esi + 0x2d8], eax
mov al, 1
pop ebx
ret
push ebx
push str.CWinHttpManager::Initialize_connection_failed_for_URL__s
mov ecx, 0x467be0
call fcn.0040f810
add esp, 8
xor al, al
pop ebx
ret
Function at 0x414b30
Capabilities:
Initialize winhttp library
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x449aeb
mov eax, dword fs:[0]
push eax
sub esp, 0x228
mov eax, dword [0x466910]
xor eax, esp
mov dword [esp + 0x220], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x466910]
xor eax, esp
push eax
lea eax, [esp + 0x23c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x24c]
xor ebx, ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
lea eax, [esp + 0x20]
push eax
push 0x20019
push ebx
push str.SoftwareMicrosoftWindowsCurrentVersionInternet_Settings
mov dword [esp + 0x254], ebx
push SysReAllocStringLen
mov dword [esp + 0x34], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x414bf0
mov esi, dword [esp + 0x20]
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x2c]
push eax
push ebx
push str.ProxyEnable
mov edi, 4
push esi
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x38], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, ebx
jne 0x414be5
cmp dword [esp + 0x24], edi
je 0x414bf7
cmp esi, ebx
je 0x414bf0
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
jmp 0x414cb2
cmp dword [esp + 0x28], ebx
je 0x414be5
push str._Machine_has_Proxy_Settings_
mov ecx, 0x467be0
call fcn.0040f810
push 0x206
lea edx, [esp + 0x36]
xor ecx, ecx
push ebx
push edx
mov word [esp + 0x3c], cx
call fcn.00437170
add esp, 0x10
lea eax, [esp + 0x18]
push eax
lea edi, [esp + 0x28]
lea esi, [esp + 0x30]
mov dword [esp + 0x28], 0x104
call fcn.00414880
lea ecx, [esp + 0x18]
test eax, eax
je 0x414c60
call fcn.00401950
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x414c5c
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
jmp 0x414cb2
call fcn.00401950
lea ecx, [esp + 0x2c]
push ecx
push str._Using_Proxy_Server:__s
mov ecx, 0x467be0
call fcn.0040f810
add esp, 8
push ebx
push str._local_
lea edx, [esp + 0x34]
push edx
push 3
push 0x4548f0
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov dword [ebp + 0x2d4], eax
lea ecx, [esp + 0x18]
cmp eax, ebx
jne 0x414cab
call fcn.00401930
xor al, al
jmp 0x414cb2
call fcn.00401930
mov al, 1
mov ecx, dword [esp + 0x23c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x220]
xor ecx, esp
call fcn.004331c4
add esp, 0x234
ret 4
Function at 0x414ce0
Capabilities:
Read http header

Disassembly:
push esi
mov esi, eax
cmp dword [esi + 0x2d8], 0
jne 0x414cf2
xor al, al
pop esi
ret 0xc
cmp dword [esi + 0x2dc], 0
push edi
jne 0x414d27
lea edi, [esi + 0x208]
mov eax, edi
call fcn.00414d70
test al, al
jne 0x414d27
push edi
push str.URL_Doest_not_exits:__s
mov ecx, 0x467be0
call fcn.0040f810
add esp, 8
pop edi
xor al, al
pop esi
ret 0xc
mov eax, dword [esi + 0x2dc]
test eax, eax
je 0x414d52
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push 0
push ecx
mov ecx, dword [esp + 0x14]
push edx
push 0
push ecx
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
pop edi
mov al, 1
pop esi
ret 0xc
push esi
push str.WinHttpReceiveResponse_failed_to_connect_to_host__:__s
mov ecx, 0x467be0
call fcn.0040f810
add esp, 8
pop edi
xor al, al
pop esi
ret 0xc

Function at 0x414d70
Capabilities:
Prepare http request
Read http header
Receive http response

Disassembly:
sub esp, 8
cmp dword [0x46ac04], 0
jne 0x414e48
cmp dword [esi + 0x2dc], 0
je 0x414d8f
mov al, 1
add esp, 8
ret
test eax, eax
je 0x414da5
push eax
lea eax, [esi + 0x208]
push 0x64
push eax
call fcn.0043349d
add esp, 0xc
mov eax, dword [esi + 0x2d8]
test eax, eax
je 0x414dd3
push 0
push 0x467b70
push 0
push 0
lea ecx, [esi + 0x208]
push ecx
push 0x459610
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov dword [esi + 0x2dc], eax
mov eax, dword [esi + 0x2dc]
test eax, eax
je 0x414e48
push 0
push 0
push 0
push 0
push 0
push 0
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
je 0x414e48
mov edx, dword [esi + 0x2dc]
push 0
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x414e48
mov edx, dword [esi + 0x2dc]
push 0
lea eax, [esp + 8]
push eax
lea ecx, [esp + 8]
push ecx
push 0
push 0x20000013
push edx
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 4
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
mov eax, dword [esp]
add eax, 0xffffff9c
cmp eax, 0x12b
jbe 0x414d89
xor al, al
add esp, 8
ret
Function at 0x414e50
Capabilities:
Receive http response
Set http header

Disassembly:
sub esp, 0x20c
mov eax, dword [0x466910]
xor eax, esp
mov dword [esp + 0x208], eax
xor eax, eax
cmp dword [0x46ac04], eax
jne 0x414f36
push edi
push 0x206
xor edi, edi
lea ecx, [esp + 0xa]
push edi
push ecx
mov word [esp + 0x10], ax
call fcn.00437170
mov edx, dword [esp + 0x224]
mov eax, dword [esp + 0x220]
push edx
push eax
push str.Range:_bytes_ld__ld
lea ecx, [esp + 0x1c]
push 0x104
push ecx
call fcn.004338a8
mov eax, dword [esi + 0x2dc]
add esp, 0x20
test eax, eax
je 0x414ed0
push 0x20000000
push 0xffffffffffffffff
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
mov edi, eax
mov eax, dword [esi + 0x2dc]
test eax, eax
je 0x414eef
push 0
push 0
push 0
push 0
push 0
push 0
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
mov edi, eax
test edi, edi
pop edi
jne 0x414f27
lea eax, [esi + 0x208]
push eax
push esi
push str.SetByteRange_Handle_failed_for:__s:_s
mov ecx, 0x467be0
call fcn.0040f810
add esp, 0xc
xor eax, eax
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.004331c4
add esp, 0x20c
ret 8
mov ecx, dword [esi + 0x2dc]
push 0
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.004331c4
add esp, 0x20c
ret 8
Function at 0x4151c0
Capabilities:
Check if file exists
Prepare http request

Disassembly:
push esi
push edi
mov esi, ecx
mov edi, eax
mov eax, dword [esi + 0x2dc]
test eax, eax
je 0x4151e1
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov dword [esi + 0x2dc], 0
mov eax, dword [esi + 0x2d8]
test eax, eax
je 0x41520c
push 0
push 0
push 0
push 0
lea ecx, [esi + 0x208]
push ecx
push 0x459610
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov dword [esi + 0x2dc], eax
cmp dword [esi + 0x2dc], 0
je 0x41527f
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0xc]
push edx
push eax
call fcn.00414e50
test eax, eax
je 0x41527f
push ebx
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push 0
push 0x80
push 4
push 0
push 0
push 0x40000000
push edi
test eax, eax
je 0x415263
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ecx, dword [esi + 0x2d0]
push 0
push 0
mov ebx, eax
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x41526b
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
test ebx, ebx
je 0x41527e
push ebx
mov edi, esi
call fcn.00414f50
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop edi
xor al, al
pop esi
ret 8
Function at 0x415290
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x44b60b
mov eax, dword fs:[0]
push eax
sub esp, 0x708
mov eax, dword [0x466910]
xor eax, esp
mov dword [esp + 0x700], eax
push ebx
push esi
push edi
mov eax, dword [0x466910]
xor eax, esp
push eax
lea eax, [esp + 0x718]
mov dword fs:[0], eax
xor ebx, ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esp + 0x2f8], eax
cmp eax, ebx
jne 0x4152f7
push 1
push ebx
push ebx
push str.Mutex_creation_failed_for_thread_synchronization
call fcn.00404830
add esp, 0x10
mov dword [esp + 0x2e8], ebx
mov dword [esp + 0x2ec], ebx
mov dword [esp + 0x2f0], ebx
mov dword [esp + 0x2e4], ebx
mov byte [esp + 0x2f4], bl
mov dword [0x46ac04], ebx
push 0x1a0
lea eax, [esp + 0x570]
push ebx
mov dword [esp + 0x728], ebx
mov ecx, 0x1a
mov esi, str.http:__www.spywaredetectornew.com_checkinternet.txt
lea edi, [esp + 0x50c]
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.00437170
mov ecx, 0x19
mov esi, str.http:__www.maxspywaredetector.us_checkinternet.txt
lea edi, [esp + 0x308]
rep movsd dword es:[edi], dword [esi]
add esp, 0xc
push 0x1a2
lea ecx, [esp + 0x366]
push ebx
push ecx
movsw word es:[edi], word [esi]
call fcn.00437170
add esp, 0xc
lea eax, [esp + 0x504]
lea esi, [esp + 0x14]
call fcn.00414aa0
mov edi, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
test al, al
je 0x4153b0
push str.In_1
call edi
xor eax, eax
call fcn.00414d70
test al, al
je 0x4153b0
push str.Got_1
call edi
jmp 0x4153dd
push str.In_2
call edi
lea eax, [esp + 0x2fc]
lea esi, [esp + 0x14]
call fcn.00414aa0
test al, al
je 0x4153df
push str.Got_2
call edi
xor eax, eax
call fcn.00414d70
test al, al
je 0x4153df
mov bl, 1
lea esi, [esp + 0x14]
call fcn.00414a30
mov edx, dword [esp + 0x2f8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
mov ecx, dword [esp + 0x718]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x700]
xor ecx, esp
call fcn.004331c4
mov esp, ebp
pop ebp
ret
Function at 0x4157d0
Capabilities:
Print debug messages

Disassembly:
push 0xffffffffffffffff
push 0x449e38
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x466910]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
push 0x11c
call fcn.00415923
push 0x11c
mov esi, eax
push 0
push esi
call fcn.00437170
add esp, 0x10
push esi
mov dword [esi], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x41583f
push esi
call fcn.00415952
add esp, 4
xor al, al
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret 8
mov eax, dword [esi + 4]
mov ecx, dword [esi + 8]
mov dword [0x46b24c], eax
mov dword [0x46b250], ecx
call fcn.004163a8
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x41586a
push 0x80004005
call fcn.004017a0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0xc], eax
mov dword [esp + 0x18], 0
mov ecx, dword [0x46b250]
mov edx, dword [0x46b24c]
push ecx
push edx
lea eax, [esp + 0x14]
push str.______Major:__d__Minor:__d
push eax
call fcn.00404600
mov edi, dword [esp + 0x1c]
add esp, 0x10
push edi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push esi
call fcn.00415952
lea eax, [edi - 0x10]
add esp, 4
mov dword [esp + 0x18], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4158da
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [0x46b24c]
mov edx, dword [esp + 0x20]
mov eax, dword [0x46b250]
mov dword [edx], ecx
mov ecx, dword [esp + 0x24]
mov dword [ecx], eax
mov al, 1
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret 8

Function at 0x418e00
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x418e48
call fcn.00417e56
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x418e48
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x418e8b
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x418e74
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x418e74
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x418e88
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc