joyce8/EMBER2024-capa huggingface dataset:
Function at 0x435586
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4b73f0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00431975
mov dword [ebp - 0x14], eax
cmp dword [0x4c81f0], esi
jne 0x435679
push 0x800
push esi
push 0x49e9e8
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x435606
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x435759
push esi
push esi
push 0x49e9e8
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x435759
push 0x49ea00
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x435759
push eax
call ebx
push 0x49ea0c
push edi
mov dword [0x4c81f0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x4c81f4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x4c81f8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4c8200], eax
test eax, eax
je 0x435676
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4c81fc], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x43569e
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x435691
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x4356b3
push 4
pop eax
jmp 0x43575b
cmp dword [ebp - 0x14], esi
je 0x4356b3
push dword [0x4c81f0]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x435698
mov eax, dword [0x4c81fc]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x435711
cmp dword [0x4c8200], edi
je 0x435711
push eax
call ebx
push dword [0x4c8200]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x435711
test eax, eax
je 0x435711
call ecx
test eax, eax
je 0x435706
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x435706
test byte [ebp - 8], 1
jne 0x435711
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x435741
mov eax, dword [0x4c81f4]
cmp eax, edi
je 0x43573e
push eax
call ebx
test eax, eax
je 0x43573e
call eax
mov esi, eax
test esi, esi
je 0x43573e
mov eax, dword [0x4c81f8]
cmp eax, edi
je 0x43573e
push eax
call ebx
test eax, eax
je 0x43573e
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x4c81f0]
call ebx
test eax, eax
je 0x435759
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x43575b
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042932e
mov esp, ebp
pop ebp
ret
Function at 0x44766c
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret
Function at 0x45a28e
Capabilities:
Print debug messages

Disassembly:
push edi
mov edi, ecx
push dword [edi + 0xc]
mov ecx, dword [edi]
push dword [edi + 8]
push dword [edi + 4]
call fcn.00459ec2
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push str._DONE__r_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push dword [edi + 4]
call fcn.0042490f
pop ecx
push dword [edi + 8]
call fcn.0042490f
pop ecx
push dword [edi + 0xc]
call fcn.0042490f
pop ecx
push edi
call fcn.0042490f
pop ecx
pop edi
ret

Function at 0x45a3cc
Capabilities:
Create http request
Create thread

Disassembly:
push ebx
push esi
push edi
xor ebx, ebx
mov edi, ecx
push ebx
push ebx
push ebx
push ebx
push str.VIP_TRACKING
mov dword [edi + 8], ebx
call dword [sym.imp.WININET.dll_InternetOpenA]
push ebx
push ebx
push ebx
push ebx
mov dword [edi + 0xc], eax
call dword [sym.imp.KERNEL32.dll_CreateEventA]
lea ecx, [edi + 4]
mov esi, eax
push ecx
push ebx
push esi
push 0x45a2d9
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0xffffffffffffffff
push esi
mov dword [edi], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, edi
pop edi
pop esi
pop ebx
ret

Function at 0x45ab1e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov byte [ebp - 0x14], 0
lea edi, [ebp - 0x13]
xor eax, eax
lea esi, [ecx + 1]
stosd dword es:[edi], eax
mov ebx, edx
mov edx, ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov al, byte [ecx]
inc ecx
test al, al
jne 0x45ab3e
sub ecx, esi
push ecx
lea ecx, [ebp - 0x14]
call fcn.00461ace
pop ecx
push 5
lea ecx, [ebp - 0x14]
pop edi
xor edx, edx
lea esi, [ecx + 3]
mov al, byte [esi]
xor byte [ecx + edx], al
mov al, byte [ecx + edx]
xor byte [esi], al
mov al, byte [esi]
xor byte [ecx + edx], al
inc edx
dec esi
cmp edx, 2
jl 0x45ab5c
add ecx, 4
dec edi
jne 0x45ab57
push dword [ebp + 8]
lea ecx, [ebp - 0x14]
push ebx
push 0x10
pop edx
call fcn.00461765
pop ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45ab90
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
mov esi, 0x4a5578
mov dword [ebp - 4], edi
push esi
mov dword [edi], ebx
mov dword [edi + 4], ebx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 3
jne 0x45aced
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 8]
push eax
push ebx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
je 0x45aced
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileA]
push ebx
push ebx
push 3
push ebx
push 2
push ebx
push str..C:
call esi
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x45ac98
xor eax, eax
push eax
push 0x4000000
push eax
push eax
push eax
push eax
push str..VWIN32
call esi
mov ebx, eax
cmp ebx, 0xffffffff
je 0x45aced
push 0
lea eax, [ebp - 0x58]
mov byte [ebp - 0x58], 0
mov dword [ebp - 0x2c], eax
xor ecx, ecx
lea eax, [ebp - 0xc]
mov dword [ebp - 0x30], 3
push eax
push 0x1c
lea eax, [ebp - 0x30]
mov dword [ebp - 0x28], 0x860
push eax
push 0x1c
inc ecx
mov dword [ebp - 0x24], 0x440d
push eax
push ecx
push ebx
mov dword [ebp - 0x18], ecx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x45ace6
test byte [ebp - 0x18], 1
jne 0x45ace6
and dword [edi], 0
and dword [edi + 4], 0
movzx edi, word [ebp - 0x51]
movzx edx, word [ebp - 0x44]
mov ecx, edi
mov esi, dword [ebp - 8]
mov eax, edx
not eax
shl ecx, 2
xor ecx, eax
not edi
mov eax, dword [ebp - 4]
xor ecx, esi
not esi
mov dword [eax], ecx
mov eax, edx
mov ecx, dword [ebp - 4]
shl eax, 2
xor eax, edi
xor eax, esi
mov dword [ecx + 4], eax
jmp 0x45ace6
xor ecx, ecx
lea eax, [ebp - 4]
push ecx
push eax
push 0x18
lea eax, [ebp - 0x30]
push eax
push ecx
push ecx
push 0x70000
push ebx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x45ace6
cmp dword [ebp - 4], 0
jbe 0x45ace6
mov esi, dword [ebp - 0x1c]
mov ecx, esi
mov edx, dword [ebp - 0x20]
not esi
and dword [edi], 0
mov eax, edx
shl ecx, 2
not eax
xor ecx, eax
shl edx, 2
mov eax, dword [ebp - 8]
xor edx, esi
xor ecx, eax
not eax
xor edx, eax
mov dword [edi], ecx
mov dword [edi + 4], edx
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x45ae09
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, ecx
mov eax, dword [edi + 0x114]
cmp eax, 0xffffffff
je 0x45ae42
push ebx
xor ebx, ebx
lea ecx, [ebp - 4]
push ebx
push ecx
push dword [ebp + 0xc]
mov dword [ebp - 4], ebx
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x45ae3d
cmp dword [ebp - 4], ebx
je 0x45ae3d
inc ebx
mov al, bl
pop ebx
jmp 0x45ae6c
mov ecx, dword [edi + 4]
cmp ecx, dword [edi + 0x118]
jb 0x45ae51
xor al, al
jmp 0x45ae6c
mov eax, dword [edi]
push esi
mov esi, dword [ebp + 0xc]
add eax, ecx
push esi
push eax
push dword [ebp + 8]
call fcn.0042a2c0
add esp, 0xc
mov al, 1
add dword [edi + 4], esi
pop esi
pop edi
mov esp, ebp
pop ebp
ret 8
Function at 0x45b139
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x33c
push ebx
push esi
push edi
mov edi, ecx
mov dword [esp + 0xc], edx
push edi
call fcn.00424e20
xor ebx, ebx
mov dword [esp], 0x103
lea eax, [esp + 0x245]
mov byte [esp + 0x244], bl
push ebx
push eax
call fcn.0042a910
add esp, 0xc
push ebx
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
push 0x124
mov esi, eax
lea eax, [esp + 0x18]
push ebx
push eax
call fcn.0042a910
add esp, 0xc
mov dword [esp + 0x10], pe_nt_image_headers32
lea eax, [esp + 0x10]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32First]
push 0x103
lea eax, [esp + 0x13d]
mov byte [esp + 0x13c], bl
push ebx
push eax
call fcn.0042a910
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x148]
push 0x104
push eax
call fcn.0042528b
lea eax, [esp + 0x150]
push eax
call fcn.00424e20
lea eax, [esp + 0x154]
push eax
push edi
call fcn.00424ef0
add esp, 0x24
test eax, eax
je 0x45b245
push dword [esp + 0x18]
push ebx
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push 0x104
lea ecx, [esp + 0x244]
push ecx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_K32GetModuleFileNameExA]
test eax, eax
je 0x45b245
lea eax, [esp + 0x240]
push eax
call fcn.00424e20
lea eax, [esp + 0x244]
push edi
push eax
call fcn.00424ef0
add esp, 0xc
test eax, eax
jne 0x45b25b
lea eax, [esp + 0x10]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x45b1a7
jmp 0x45b268
mov ecx, dword [esp + 0xc]
xor ebx, ebx
mov eax, dword [esp + 0x18]
inc ebx
mov dword [ecx], eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45b2e0
Capabilities:
Delete directory
Enumerate files on windows
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x56c
push ebx
push esi
push edi
mov esi, 0x103
mov byte [ebp - 0x460], 0
push esi
lea eax, [ebp - 0x45f]
mov ebx, edx
push 0
push eax
mov dword [ebp - 4], ebx
mov edi, ecx
call fcn.0042a910
push esi
lea eax, [ebp - 0x24f]
mov byte [ebp - 0x250], 0
push 0
push eax
call fcn.0042a910
push esi
lea eax, [ebp - 0x357]
mov byte [ebp - 0x358], 0
push 0
push eax
call fcn.0042a910
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpynA]
lea eax, [ebp - 0x358]
add esp, 0x24
push 0x104
push edi
push eax
call esi
push 0x104
push edi
lea eax, [ebp - 0x460]
push eax
call esi
push 0x104
push ebx
lea eax, [ebp - 0x250]
push eax
call esi
xor ebx, ebx
lea eax, [ebp - 0x144]
push 0x13c
push ebx
push eax
mov dword [ebp - 0x148], ebx
call fcn.0042a910
pop ecx
pop ecx
mov edx, 0x4a5644
lea ecx, [ebp - 0x358]
call fcn.00463128
pop ecx
lea eax, [ebp - 0x148]
push eax
lea eax, [ebp - 0x358]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x45b3f8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x103
mov esi, eax
mov byte [ebp - 0x568], bl
lea eax, [ebp - 0x567]
push ebx
push eax
call fcn.0042a910
add esp, 0xc
lea eax, [ebp - 0x568]
push ebx
push 0x104
push eax
push ebx
push esi
push ebx
push 0x1000
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
jmp 0x45b46e
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
cmp byte [ebp - 0x11c], 0x2e
je 0x45b44e
lea eax, [ebp - 0x11c]
push eax
push edi
lea eax, [ebp - 0x460]
push 0x4a5648
push eax
call ebx
lea eax, [ebp - 0x11c]
push eax
push dword [ebp - 4]
lea eax, [ebp - 0x250]
push 0x4a5648
push eax
call ebx
add esp, 0x20
lea eax, [ebp - 0x250]
push 1
push eax
lea eax, [ebp - 0x460]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
lea eax, [ebp - 0x148]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x45b3fe
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45b475
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x45c
push ebx
push esi
push edi
push 0x103
lea eax, [ebp - 0x34f]
mov byte [ebp - 0x350], 0
push 0
push eax
mov bl, dl
mov esi, ecx
call fcn.0042a910
add esp, 0xc
lea eax, [ebp - 0x350]
push esi
push str._s.
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
and dword [ebp - 0x140], 0
lea eax, [ebp - 0x13c]
add esp, 0xc
push 0x13c
push 0
push eax
call fcn.0042a910
add esp, 0xc
lea eax, [ebp - 0x140]
push eax
lea eax, [ebp - 0x350]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
jmp 0x45b5bf
cmp byte [ebp - 0x114], 0x2e
je 0x45b5a3
test byte [ebp - 0x140], 0x10
je 0x45b55c
test bl, bl
je 0x45b55c
push 0x103
lea eax, [ebp - 0x247]
mov byte [ebp - 0x248], 0
push 0
push eax
call fcn.0042a910
lea edx, [ebp - 0x248]
add esp, 0xc
mov ecx, esi
sub edx, esi
mov al, byte [ecx]
mov byte [edx + ecx], al
inc ecx
test al, al
jne 0x45b531
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x248]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
mov dl, bl
lea ecx, [ebp - 0x248]
call fcn.0045b475
push 0x103
lea eax, [ebp - 0x457]
mov byte [ebp - 0x458], 0
push 0
push eax
call fcn.0042a910
add esp, 0xc
lea eax, [ebp - 0x114]
push eax
push esi
lea eax, [ebp - 0x458]
push 0x4a563c
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x458]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x140]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x45b5bf
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
or edi, 0xffffffff
cmp edi, 0xffffffff
jne 0x45b4f0
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x45b5f9
Capabilities:
Create directory
Get file attributes

Disassembly:
push edi
mov edi, ecx
cmp byte [edi], 0
je 0x45b61f
push esi
mov esi, edi
cmp byte [esi], 0x5c
jne 0x45b618
push 0
push edi
mov byte [esi], 0
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov byte [esi], 0x5c
inc esi
cmp byte [esi], 0
jne 0x45b604
pop esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
neg eax
pop edi
sbb eax, eax
neg eax
ret

Function at 0x45b62e
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
lea edx, [ebp - 0x108]
sub edx, ecx
push esi
mov al, byte [ecx]
mov byte [edx + ecx], al
inc ecx
test al, al
jne 0x45b640
xor esi, esi
cmp byte [ebp - 0x108], al
je 0x45b689
cmp byte [ebp + esi - 0x108], 0x5c
jne 0x45b67e
cmp esi, 2
jle 0x45b67e
lea ecx, [ebp - 0x108]
mov byte [ebp + esi - 0x108], 0
call fcn.00460d69
mov byte [ebp + esi - 0x108], 0x5c
inc esi
cmp byte [ebp + esi - 0x108], 0
jne 0x45b654
lea ecx, [ebp - 0x108]
call fcn.00460d69
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
neg eax
pop esi
sbb eax, eax
neg eax
mov esp, ebp
pop ebp
ret
Function at 0x45b767
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x1864
call fcn.00433a00
push ebx
push esi
push edi
push 0x2e
pop eax
push eax
mov esi, ecx
mov dword [esp + 0x10], eax
call fcn.0042493a
pop ecx
push dword [esp + 0xc]
mov ebx, eax
push 0
push ebx
call fcn.0042a910
add esp, 0xc
mov byte [esp + 0x70], 0
mov edi, 0x3ff
lea eax, [esp + 0x71]
push edi
push 0
push eax
call fcn.0042a910
add esp, 0xc
mov byte [esp + 0x870], 0
lea eax, [esp + 0x871]
push edi
push 0
push eax
call fcn.0042a910
add esp, 0xc
mov byte [esp + 0x1070], 0
lea eax, [esp + 0x1071]
push edi
push 0
push eax
call fcn.0042a910
add esp, 0xc
mov byte [esp + 0x470], 0
lea eax, [esp + 0x471]
push edi
push 0
push eax
call fcn.0042a910
add esp, 0xc
mov byte [esp + 0xc70], 0
lea eax, [esp + 0xc71]
push edi
push 0
push eax
call fcn.0042a910
add esp, 0xc
mov byte [esp + 0x1470], 0
lea eax, [esp + 0x1471]
push edi
push 0
push eax
call fcn.0042a910
lea eax, [esp + 0x7c]
mov dword [esp + 0x20], 0x3c
mov dword [esp + 0x54], eax
add esp, 0xc
lea eax, [esp + 0x870]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x1070]
mov dword [esp + 0x38], eax
lea eax, [esp + 0x470]
mov dword [esp + 0x18], eax
lea eax, [esp + 0xc70]
mov dword [esp + 0x40], eax
lea eax, [esp + 0x1470]
mov dword [esp + 0x30], eax
lea eax, [edi + 1]
mov dword [esp + 0x4c], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x34], eax
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x45b8a3
lea eax, [esp + 0x14]
sub ecx, edx
push eax
push 0
push ecx
push esi
call dword [sym.imp.WININET.dll_InternetCrackUrlA]
and dword [esp + 0x10], 0
lea edi, [esp + 0x50]
movdqa xmm0, xmmword [0x4ab7f0]
xor eax, eax
mov esi, dword [esp + 0x24]
push 8
pop ecx
rep stosd dword es:[edi], eax
mov eax, dword [0x4cb7e0]
movdqu xmmword [esp + 0x50], xmm0
test eax, eax
jne 0x45b8f0
call fcn.00406ab0
mov dword [0x4cb7e0], eax
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x54]
push ecx
push 0
push esi
call eax
mov esi, eax
push esi
call dword [sym.imp.WSOCK32.dll_WSASetLastError]
test esi, esi
jne 0x45b968
mov esi, dword [esp + 0x10]
jmp 0x45b964
mov eax, dword [esi + 4]
sub eax, 0
je 0x45b95e
dec eax
dec eax
je 0x45b942
sub eax, 0x15
jne 0x45b961
mov eax, dword [esi + 0x18]
lea ecx, [esp + 0xc]
push ecx
push ebx
push 0
mov dword [esp + 0x18], 0x2e
push dword [esi + 0x10]
push eax
call dword [sym.imp.WS2_32.dll_WSAAddressToStringA]
jmp 0x45b961
mov eax, dword [esi + 0x18]
push dword [eax + 4]
call dword [sym.imp.WSOCK32.dll_inet_ntoa]
mov edx, ebx
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x45b952
jmp 0x45b961
mov byte [ebx], 0
mov esi, dword [esi + 0x1c]
test esi, esi
jne 0x45b912
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45b971
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x514
lea eax, [ebp - 0x114]
push esi
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeA]
mov esi, eax
test esi, esi
jne 0x45b9b0
mov eax, 0x4cb3e0
jmp 0x45ba40
push ebx
push edi
push esi
call fcn.0042493a
pop ecx
mov edi, eax
lea eax, [ebp - 0x114]
push edi
push esi
push dword [ebp - 0x10]
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoA]
and dword [ebp - 4], 0
lea eax, [ebp - 8]
mov esi, dword [sym.imp.VERSION.dll_VerQueryValueA]
push eax
lea eax, [ebp - 4]
push eax
push str.VarFileInfoTranslation
push edi
call esi
mov ecx, dword [ebp - 4]
push 0x4a7238
movzx eax, word [ecx + 2]
push eax
movzx eax, word [ecx]
push eax
lea eax, [ebp - 0x514]
push str.StringFileInfo_04x_04x_s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x514]
push eax
push edi
call esi
mov edx, dword [ebp - 0xc]
mov ebx, 0x4cb3e0
mov esi, ebx
sub esi, edx
mov cl, byte [edx]
mov byte [esi + edx], cl
inc edx
test cl, cl
jne 0x45ba2b
push edi
call fcn.0042490f
pop ecx
pop edi
mov eax, ebx
pop ebx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x45ba45
Capabilities:
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x608
push ebx
xor eax, eax
mov ebx, 0x80004005
push 0x206
push eax
mov word [ebp - 0x208], ax
lea eax, [ebp - 0x206]
push eax
call fcn.0042a910
add esp, 0xc
lea eax, [ebp - 0x208]
push eax
xor eax, eax
push eax
push eax
push 0x10
push eax
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x45bb3a
push edi
push dword [ebp + 8]
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea edi, [ebp - 0x208]
sub edi, 2
xor ecx, ecx
mov ax, word [edi + 2]
add edi, 2
cmp ax, cx
jne 0x45baaa
push esi
mov esi, str..url
mov byte [ebp - 0x608], cl
push 0x3ff
push ecx
lea eax, [ebp - 0x607]
movsd dword es:[edi], dword [esi]
push eax
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
call fcn.0042a910
push dword [ebp + 0x14]
lea eax, [ebp - 0x608]
push dword [ebp + 0xc]
push str._InternetShortcut__r_nURL_S_r_nIconFile_S_r_nIconIndex0_r_n
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x1c
mov edi, eax
xor eax, eax
push eax
push eax
push 2
push eax
push eax
push 0xc0000000
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x45bb38
and dword [ebp + 8], 0
lea eax, [ebp + 8]
push 0
push eax
push edi
lea eax, [ebp - 0x608]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebx, ebx
pop esi
pop edi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x45bb43
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push esi
xor eax, eax
xor esi, esi
push 0x206
mov word [ebp - 0x208], ax
lea eax, [ebp - 0x206]
push esi
push eax
call fcn.0042a910
add esp, 0xc
lea eax, [ebp - 0x208]
push eax
push esi
push esi
push 0x10
push esi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x45bbcf
push edi
push dword [ebp + 8]
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea edi, [ebp - 0x208]
sub edi, 2
mov ax, word [edi + 2]
add edi, 2
cmp ax, si
jne 0x45bb9d
mov esi, str..url
lea eax, [ebp - 0x208]
push eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
pop edi
cmp eax, 0xffffffff
je 0x45bbcf
shr eax, 4
not eax
and eax, 1
jmp 0x45bbd1
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x45bbd8
Capabilities:
Create http request
Delete file
Download and write a file
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
push ebx
xor eax, eax
mov dword [ebp - 4], ecx
push eax
push eax
push eax
push 1
push str.Mozilla_4.0__compatible__MSIE_5.5__Windows_NT_5.0_
mov ebx, 0x80004005
call dword [sym.imp.WININET.dll_InternetOpenW]
mov edx, eax
mov dword [ebp - 8], edx
test edx, edx
je 0x45bced
push esi
push edi
push 8
pop ecx
mov esi, str.Accept:___r_n_r_n
lea edi, [ebp - 0x2c]
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebp - 0x2c]
xor edi, edi
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x45bc20
push edi
push 0x4000000
sub ecx, esi
lea eax, [ebp - 0x2c]
sar ecx, 1
push ecx
push eax
mov eax, dword [ebp - 4]
push dword [eax + 0x80]
push edx
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
mov edi, eax
test edi, edi
je 0x45bcde
xor eax, eax
push eax
push eax
push 2
push eax
push eax
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x45bcd0
xor eax, eax
push 0xff
push eax
mov byte [ebp - 0x12c], al
lea eax, [ebp - 0x12b]
push eax
call fcn.0042a910
add esp, 0xc
jmp 0x45bcb1
cmp dword [ebp - 4], 0
je 0x45bcce
xor eax, eax
push eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 4]
lea eax, [ebp - 0x12c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea eax, [ebp - 4]
push eax
push 0x100
lea eax, [ebp - 0x12c]
push eax
push edi
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x45bc90
jmp 0x45bcd0
xor ebx, ebx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push dword [ebp - 8]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
pop edi
pop esi
test ebx, ebx
jns 0x45bcf6
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 4