joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4f6f90
Capabilities:
Query or enumerate registry value
Read .ini file
Set registry value

Disassembly:
sub esp, 0x80
mov eax, dword [0x615370]
xor eax, esp
mov dword [esp + 0x7c], eax
push ebx
push esi
push edi
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x2c]
push edx
push str.vsoftmgrlite
push str.SOFTWARE360Safe_stat
mov esi, 4
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x3c], esi
mov dword [esp + 0x28], 0
mov dword [esp + 0x38], esi
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
mov ebx, dword [sym.imp.SHLWAPI.dll_SHSetValueW]
cmp eax, 2
je 0x4f6fef
cmp dword [esp + 0x10], 1
je 0x4f700f
push esi
lea eax, [esp + 0x18]
push eax
push esi
push str.vsoftmgrlite
push str.SOFTWARE360Safe_stat
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x2c], 1
call ebx
mov ecx, 0xb
mov esi, str.safemonSMLStarter.tpi
lea edi, [esp + 0x28]
rep movsd dword es:[edi], dword [esi]
push 4
lea ecx, [esp + 0x1c]
push ecx
push 4
push str.StartType
push str.Software360safe_tpi360softmgrlite
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x30], 1
movsw word es:[edi], word [esi]
call ebx
push 0x2e
lea edx, [esp + 0x2c]
push edx
push 1
push str.ImagePath
push str.Software360safe_tpi360softmgrlite
push reloc.OLEAUT32.dll_SysReAllocString
call ebx
mov ecx, 0xb
mov esi, str.safemon360TaskBar.tpi
lea edi, [esp + 0x58]
push 4
rep movsd dword es:[edi], dword [esi]
lea eax, [esp + 0x20]
push eax
push 4
push str.StartType
push str.Software360safe_tpi360TaskBar
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x34], 0
movsw word es:[edi], word [esi]
call ebx
push 0x2e
lea ecx, [esp + 0x5c]
push ecx
push 1
push str.ImagePath
push str.Software360safe_tpi360TaskBar
push reloc.OLEAUT32.dll_SysReAllocString
call ebx
mov edi, 0x5c9b08
lea ebx, [esp + 0xc]
call fcn.0051693e
mov edx, dword [esp + 0xc]
push edx
push 0
push str.SmlInstall
push str.SoftMgrLite
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
pop edi
pop esi
pop ebx
test eax, eax
jne 0x4f70f0
mov eax, dword [esp]
push eax
push 0x5cb5f8
push str.SmlInstall
push str.SoftMgrLite
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov eax, dword [esp]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4f710f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x7c]
xor ecx, esp
call fcn.005886fc
add esp, 0x80
ret
Function at 0x4f79d0
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5b5898
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x615370]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov ebx, ecx
xor esi, esi
cmp dword [ebx + 0x148], esi
je 0x4f7ba7
mov ecx, dword [0x622074]
mov eax, dword [ecx + 8]
mov dword [esp + 0x18], esi
cmp eax, esi
jne 0x4f7a22
lea eax, [esi + 0x3c]
jmp 0x4f7a3a
push 0x64
cmp eax, 1
jne 0x4f7a2f
mov eax, dword [ecx + 4]
push eax
jmp 0x4f7a32
mov ecx, dword [ecx]
push ecx
push 0x3c
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov ecx, dword [ebx + 0x148]
mov edx, dword [ecx]
mov dword [esp + 0x14], eax
mov eax, dword [edx + 0x40]
xor edi, edi
call eax
test eax, eax
jle 0x4f7aea
mov ecx, dword [ebx + 0x148]
mov edx, dword [ecx]
mov eax, dword [edx + 0x44]
push edi
call eax
xor ecx, ecx
mov dword [esp + 0x10], ecx
cmp eax, esi
je 0x4f7a82
mov ecx, dword [eax]
lea edx, [esp + 0x10]
push edx
push 0x5e02d4
push eax
mov eax, dword [ecx]
call eax
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x38], esi
cmp ecx, esi
je 0x4f7ac0
cmp dword [ecx + 0x1b0], esi
je 0x4f7ab1
mov eax, dword [ecx + 0x17c]
cmp eax, esi
je 0x4f7aab
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x60]
call eax
mov dword [esp + 0x14], eax
jmp 0x4f7abc
mov dword [esp + 0x14], esi
jmp 0x4f7ac0
mov edx, dword [ecx]
mov eax, dword [edx + 0x60]
call eax
add dword [esp + 0x18], eax
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x38], 0xffffffff
cmp ecx, esi
je 0x4f7ad4
mov edx, dword [ecx]
mov eax, dword [edx + 8]
push ecx
call eax
mov ecx, dword [ebx + 0x148]
mov edx, dword [ecx]
mov eax, dword [edx + 0x40]
inc edi
call eax
cmp edi, eax
jl 0x4f7a55
mov esi, dword [ebp + 8]
call fcn.004e6b10
mov ecx, dword [ebx + 0x178]
xor edi, edi
cmp ecx, edi
je 0x4f7b10
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
cmp eax, edi
je 0x4f7b10
mov dword [0x62425c], eax
jmp 0x4f7b15
mov eax, dword [0x62425c]
cmp eax, 1
je 0x4f7b77
cmp eax, 3
je 0x4f7b77
mov edx, dword [ebx + 0x58]
lea ecx, [esp + 0x1c]
push ecx
push edx
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], edi
call dword [sym.imp.USER32.dll_GetWindowRect]
cmp esi, edi
je 0x4f7b48
mov eax, dword [esp + 0x14]
jmp 0x4f7b4d
call fcn.004e6bd0
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov esi, dword [esp + 0x28]
add eax, ecx
add eax, dword [esp + 0x18]
push 1
mov dword [esp + 0x28], eax
sub esi, edx
push esi
sub eax, ecx
push eax
mov eax, dword [ebx + 0x58]
push edx
push ecx
push eax
call dword [sym.imp.USER32.dll_MoveWindow]
mov eax, str.switchtoso
cmp dword [ebp + 8], edi
je 0x4f7b86
mov eax, str.switchtotrade
push 0x5caac0
push 0x5caac0
push 0x5caac0
push eax
call fcn.004039e0
mov ecx, str.webhelper
mov ebx, eax
call fcn.00444560
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 0x4f7cb0
Capabilities:
Find taskbar

Disassembly:
push 0xffffffffffffffff
push 0x5b3698
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push ebp
push esi
push edi
mov eax, dword [0x615370]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x44]
mov eax, dword [esp + 0x3c]
mov ecx, dword [eax + 0x148]
xor ebx, ebx
cmp ecx, ebx
jne 0x4f7cf2
xor eax, eax
jmp 0x4f7e12
mov edx, dword [ecx]
mov eax, dword [edx + 0x40]
xor edi, edi
call eax
test eax, eax
jle 0x4f7db1
mov ecx, dword [esp + 0x3c]
mov esi, dword [ecx + 0x148]
mov edx, dword [esi]
mov eax, dword [edx + 0x40]
mov ecx, esi
call eax
cmp edi, eax
jl 0x4f7d1e
xor esi, esi
jmp 0x4f7d2a
mov edx, dword [esi]
mov eax, dword [edx + 0x44]
push edi
mov ecx, esi
call eax
mov esi, eax
mov dword [esp + 0x44], esi
cmp esi, ebx
je 0x4f7d3a
mov ecx, dword [esi]
mov edx, dword [ecx + 4]
push esi
call edx
mov dword [esp + 0x34], ebx
cmp esi, ebx
jne 0x4f7d4c
mov dword [esp + 0x34], 0xffffffff
jmp 0x4f7d97
mov ecx, dword [esi + 0x17c]
cmp ecx, ebx
je 0x4f7d5f
mov eax, dword [ecx]
mov edx, dword [eax + 0x60]
call edx
jmp 0x4f7d61
xor eax, eax
mov ecx, dword [esp + 0x40]
add dword [ecx], eax
cmp dword [esi + 0x1b0], ebx
jne 0x4f7d87
mov ecx, dword [esi + 0x17c]
cmp ecx, ebx
je 0x4f7d82
mov eax, dword [ecx]
mov edx, dword [eax + 0x60]
call edx
jmp 0x4f7d84
xor eax, eax
add dword [ebp], eax
mov dword [esp + 0x34], 0xffffffff
mov eax, dword [esi]
mov ecx, dword [eax + 8]
push esi
call ecx
mov edx, dword [esp + 0x3c]
mov ecx, dword [edx + 0x148]
mov eax, dword [ecx]
mov edx, dword [eax + 0x40]
inc edi
call edx
cmp edi, eax
jl 0x4f7d03
call fcn.004e6bd0
add eax, dword [ebp]
mov ecx, dword [esp + 0x4c]
mov dword [ecx], eax
call fcn.004e5870
add dword [ebp], eax
push ebx
push 0x5cc7b4
push ebx
push ebx
call dword [sym.imp.USER32.dll_FindWindowExW]
lea edx, [esp + 0x18]
push edx
push eax
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ecx, dword [esp + 0x20]
sub ecx, dword [esp + 0x18]
mov eax, 0x55555556
imul ecx
mov ecx, dword [esp + 0x48]
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ecx], eax
mov eax, 1
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret 0x14

Function at 0x4f8c50
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
mov eax, 4
mov dword [esp + 8], eax
mov dword [esp + 4], eax
lea eax, [esp + 4]
push eax
lea ecx, [esp + 4]
push ecx
lea edx, [esp + 0x10]
push edx
push str.TaskbarSmallIcons
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerAdvanced
push SysReAllocStringLen
mov dword [esp + 0x18], 0
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
cmp eax, 2
je 0x4f8c9b
mov eax, 1
cmp dword [esp], eax
je 0x4f8c9d
xor eax, eax
add esp, 0xc
ret
Function at 0x4f9170
Capabilities:
Read .ini file

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
cmp dword [ebp + 0x14], 0
push esi
push edi
je 0x4f91dd
mov edi, 0x5c9b08
lea ebx, [esp + 0x14]
call fcn.0051693e
mov eax, dword [esp + 0x14]
push eax
push 0
push str.BNavNeverPopNew
push str.TaskBarBtn
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov esi, eax
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 0x4f91c5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test esi, esi
jne 0x4f91dd
push ebp
call fcn.004f9090
test eax, eax
je 0x4f91dd
lea eax, [esi + 1]
pop edi
pop esi
pop ebp
pop ebx
ret 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 4

Function at 0x4f9300
Capabilities:
Read .ini file

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
xor ebp, ebp
call fcn.00516560
cmp dword [0x6230c0], 0x4000
jl 0x4f9320
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
mov edi, 0x5c9b08
lea ebx, [esp + 0x10]
call fcn.0051693e
mov eax, dword [esp + 0x10]
push eax
push 0
push str.BNavNeverPop
push str.TaskBarBtn
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov esi, 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 0x4f9367
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test esi, esi
jne 0x4f9374
call fcn.004e5f10
test eax, eax
je 0x4f9391
push str.BNavNSGLastShowTime
mov ecx, 0x5c9c9c
mov edx, str.NetSpeed
call fcn.004e6e20
or eax, edx
jne 0x4f9391
mov ebp, 1
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
pop ecx
ret
Function at 0x4fbbb0
Capabilities:
Check for unmoving mouse cursor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
push ebx
mov ebx, eax
cmp dword [ebx + 0x17c], 0
push esi
push edi
je 0x4fbce6
cmp dword [ebx + 0x1b0], 0
je 0x4fbc01
push 0
push str.XBrowserNavGuider
call dword [sym.imp.USER32.dll_FindWindowW]
mov esi, eax
test esi, esi
je 0x4fbc01
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4fbc01
push esi
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x4fbce6
mov ecx, dword [ebx + 0x17c]
mov eax, dword [ecx]
mov edx, dword [eax + 0xfc]
push 3
call edx
mov ecx, dword [ebx + 0x184]
test ecx, ecx
je 0x4fbc4f
mov eax, dword [ecx]
mov edx, dword [eax + 0xac]
call edx
test eax, eax
je 0x4fbc4f
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
mov esi, dword [ebx + 0x184]
lea edi, [esp + 0x20]
call fcn.00554ee0
mov ecx, dword [esp + 0x10]
cmp ecx, dword [esp + 0x20]
jg 0x4fbc64
mov eax, dword [ebx + 0x19c]
mov edx, dword [ebx]
mov edx, dword [edx + 0x24]
push eax
push 0x1771
mov ecx, ebx
call edx
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
lea edi, [esp + 0x20]
mov esi, ebx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
call fcn.00554ee0
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push ecx
push edx
push eax
call dword [sym.imp.USER32.dll_PtInRect]
mov ecx, dword [ebx + 0x17c]
mov esi, eax
mov eax, dword [ecx]
mov eax, dword [eax + 0xfc]
xor edx, edx
test esi, esi
setne dl
push edx
call eax
test esi, esi
jne 0x4fbce6
mov esi, ebx
call fcn.004fdfa0
mov ebx, dword [ebx + 0x188]
test ebx, ebx
je 0x4fbce6
cmp dword [ebx + 0x15c], 0
jne 0x4fbce6
mov edx, dword [ebx]
mov eax, dword [ebx + 0x150]
mov edx, dword [edx + 0x8c]
push eax
mov ecx, ebx
call edx
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4ff4e0
Capabilities:
Find taskbar

Disassembly:
sub esp, 0x18
push esi
push edi
mov edi, eax
xor esi, esi
mov dword [edi], 0x3c
mov dword [edi + 4], 0x28
cmp ecx, esi
je 0x4ff58d
mov eax, dword [ecx]
mov eax, dword [eax + 0x30]
lea edx, [esp + 8]
push edx
call eax
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov eax, dword [esp + 0x24]
mov dword [edi], ecx
mov dword [edi + 4], edx
cmp dword [eax + 0x1ac], esi
je 0x4ff525
call fcn.004225b0
push esi
push 0x5cc7b4
push esi
push esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], esi
call dword [sym.imp.USER32.dll_FindWindowExW]
cmp eax, esi
je 0x4ff58b
lea ecx, [esp + 0x10]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ecx, dword [esp + 0x1c]
sub ecx, dword [esp + 0x14]
mov esi, dword [edi + 4]
cmp ecx, esi
jge 0x4ff56f
mov eax, dword [edi]
imul eax, ecx
cdq
idiv esi
mov dword [edi + 4], ecx
mov dword [edi], eax
mov ecx, dword [esp + 0x18]
sub ecx, dword [esp + 0x10]
mov esi, dword [edi]
cmp ecx, esi
jge 0x4ff58b
mov eax, dword [edi + 4]
imul eax, ecx
cdq
idiv esi
mov dword [edi], ecx
mov dword [edi + 4], eax
mov eax, edi
pop edi
pop esi
add esp, 0x18
ret 4
Function at 0x502c80
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5b7ed8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x615370]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
push str.LastWeather.dat
lea ebx, [esp + 0x18]
call fcn.00511140
add esp, 4
xor esi, esi
push esi
push 0x80
push 3
push esi
push 5
mov dword [esp + 0x4c], esi
mov eax, dword [esp + 0x28]
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
or ebx, 0xffffffff
cmp edi, ebx
je 0x502dd8
lea ecx, [esp + 0x24]
push ecx
push edi
mov dword [esp + 0x24], ebx
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x502d2a
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x38], ebx
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
mov ecx, ebx
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x502def
mov ebx, dword [esp + 0x24]
mov dword [esp + 0x20], ebx
cmp ebx, esi
jbe 0x502d90
inc ebx
push ebx
call fcn.00587d67
mov esi, eax
add esp, 4
test esi, esi
je 0x502d90
push ebx
push 0
push esi
call fcn.0058e300
mov ebx, dword [esp + 0x2c]
add esp, 0xc
push 0
lea ecx, [esp + 0x1c]
push ecx
push ebx
push esi
push edi
mov dword [esp + 0x2c], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x502d87
cmp dword [esp + 0x18], ebx
jne 0x502d87
mov edx, dword [ebp + 8]
push edx
mov ecx, esi
call fcn.00502e20
mov dword [esp + 0x1c], eax
push esi
call fcn.00588add
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x38], 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 0x502dbf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x1c]
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
mov dword [esp + 0x38], ebx
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, ebx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x502dfb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebx
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 0x5065a0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5af101
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x615370]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
mov dword [esi], vtable._WeatherPostDay.0
mov eax, dword [edi + 4]
sub eax, 0x10
call fcn.00406580
add eax, 0x10
mov dword [esi + 4], eax
lea ecx, [edi + 8]
lea eax, [esi + 8]
push ecx
push eax
mov dword [esp + 0x1c], 0
call fcn.00506b80
mov byte [esp + 0x14], 1
mov eax, dword [edi + 0x28]
sub eax, 0x10
call fcn.00406580
add eax, 0x10
mov dword [esi + 0x28], eax
mov byte [esp + 0x14], 2
mov eax, dword [edi + 0x2c]
sub eax, 0x10
call fcn.00406580
add eax, 0x10
mov dword [esi + 0x2c], eax
mov edx, dword [edi + 0x30]
mov dword [esi + 0x30], edx
mov eax, dword [edi + 0x34]
mov dword [esi + 0x34], eax
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret 4
Function at 0x50f0d0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5b7ed8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x615370]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
push str.LastPm.dat
lea ebx, [esp + 0x18]
call fcn.00511140
add esp, 4
xor esi, esi
push esi
push 0x80
push 3
push esi
push 5
mov dword [esp + 0x4c], esi
mov eax, dword [esp + 0x28]
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
or ebx, 0xffffffff
cmp edi, ebx
je 0x50f227
lea ecx, [esp + 0x24]
push ecx
push edi
mov dword [esp + 0x24], ebx
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x50f17a
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x38], ebx
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
mov ecx, ebx
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x50f23e
mov ebx, dword [esp + 0x24]
mov dword [esp + 0x20], ebx
cmp ebx, esi
jbe 0x50f1df
inc ebx
push ebx
call fcn.00587d67
mov esi, eax
add esp, 4
test esi, esi
je 0x50f1df
push ebx
push 0
push esi
call fcn.0058e300
mov ebx, dword [esp + 0x2c]
add esp, 0xc
push 0
lea ecx, [esp + 0x1c]
push ecx
push ebx
push esi
push edi
mov dword [esp + 0x2c], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x50f1d6
cmp dword [esp + 0x18], ebx
jne 0x50f1d6
mov ecx, dword [ebp + 8]
mov edx, esi
call fcn.0050ec10
mov dword [esp + 0x1c], eax
push esi
call fcn.00588add
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x38], 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
jg 0x50f20e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x1c]
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
mov dword [esp + 0x38], ebx
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, ebx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x50f24a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebx
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 0x510890
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
push 0xffffffffffffffff
push 0x5ac08b
mov eax, dword fs:[0]
push eax
sub esp, 0x91c
mov eax, dword [0x615370]
xor eax, esp
mov dword [esp + 0x918], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x615370]
xor eax, esp
push eax
lea eax, [esp + 0x930]
mov dword fs:[0], eax
mov eax, dword [esp + 0x940]
push 0
push 0
push 0
push 0
push str.Mozilla_4.0__compatible__MSIE_6.0__Windows_NT_5.1__
mov dword [esp + 0x34], eax
mov esi, ecx
call dword [sym.imp.WININET.dll_InternetOpenW]
mov ebx, eax
test ebx, ebx
je 0x510940
mov eax, dword [esi]
push 3
lea ecx, [esp + 0x2c]
push eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x2c], ecx
call fcn.00510f70
mov edx, dword [esp + 0x24]
push 0
push 0x80080000
push 0
push 0
push edx
push ebx
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov esi, eax
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x28]
cmp eax, ecx
je 0x510935
push eax
call fcn.0058870b
add esp, 4
test esi, esi
jne 0x510947
push ebx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
xor al, al
jmp 0x510a93
push 0
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x20]
push eax
push 0x20000013
push esi
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], 4
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
mov eax, 0x51eb851f
mul dword [esp + 0x18]
push 0x484
lea ecx, [esp + 0xac]
mov edi, edx
push 0
push ecx
shr edi, 5
call fcn.0058e300
mov eax, dword [0x621148]
xor edx, edx
add esp, 0xc
cmp edi, 2
setne dl
mov ecx, 0x621148
add edx, 2
mov dword [esp + 0xac], edx
mov edx, dword [eax + 0xc]
call edx
lea ebp, [eax + 0x10]
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x938], 0
cmp edi, 2
jne 0x510a43
mov ebp, dword [sym.imp.WININET.dll_InternetReadFile]
push 0x3ff
lea eax, [esp + 0x531]
push 0
push eax
mov byte [esp + 0x538], 0
call fcn.0058e300
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
push 0x400
lea edx, [esp + 0x534]
push edx
push esi
call ebp
test eax, eax
je 0x510a20
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x52c]
push eax
lea ecx, [esp + 0x20]
push ecx
call fcn.0040f130
cmp dword [esp + 0x14], 0
jne 0x5109d2
mov ebp, dword [esp + 0x1c]
cmp dword [ebp - 0xc], 0
je 0x510a43
mov dword [esp + 0xb8], ebp
mov dword [esp + 0xc0], 0
mov eax, dword [esp + 0x20]
mov edx, dword [eax]
mov edx, dword [edx]
lea ecx, [esp + 0xa8]
push ecx
push 0
push eax
call edx
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push ebx
call esi
cmp edi, 2
lea eax, [ebp - 0x10]
sete bl
mov dword [esp + 0x938], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x510a91
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, bl
mov ecx, dword [esp + 0x930]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x918]
xor ecx, esp
call fcn.005886fc
add esp, 0x928
ret 4