joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44a2c0
Capabilities:
Check if file exists
Create directory
Delete file
Get file attributes
Set file attributes

Disassembly:
sub esp, 0x10c
mov eax, dword [0x480630]
xor eax, esp
mov dword [esp + 0x108], eax
mov eax, dword [esp + 0x114]
push ebx
push esi
mov esi, dword [esp + 0x118]
push edi
mov dword [esp + 0xc], eax
xor eax, eax
test esi, esi
mov byte [esp + 0x10], 0
mov ecx, 0x40
lea edi, [esp + 0x11]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ebx, 1
stosb byte es:[edi], al
je 0x44a326
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push esi
call edi
test eax, eax
jle 0x44a326
push esi
call edi
cmp eax, 0x104
jbe 0x44a340
push 0x6f
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x108]
xor ecx, esp
call fcn.004570de
add esp, 0x10c
ret
push ebp
push 0x103
push esi
lea ecx, [esp + 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.SHLWAPI.dll_PathSkipRootA]
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ebp, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea esp, [esp]
test eax, eax
je 0x44a3e1
push 0x5c
push eax
call fcn.00457c44
mov esi, eax
add esp, 8
test esi, esi
je 0x44a3e1
lea eax, [esp + 0x14]
push eax
mov byte [esi], 0
call edi
cmp eax, 0xffffffff
je 0x44a398
test al, 0x10
jne 0x44a3d9
test al, 0x10
jne 0x44a3b3
push 0x80
lea ecx, [esp + 0x18]
push ecx
call ebp
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [esp + 0x10]
push eax
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
and ebx, eax
jne 0x44a3d9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x44a3d9
mov ebx, 1
mov byte [esi], 0x5c
lea eax, [esi + 1]
jmp 0x44a370
lea edx, [esp + 0x14]
push edx
call edi
cmp eax, 0xffffffff
je 0x44a3f1
test al, 0x10
jne 0x44a432
test al, 0x10
jne 0x44a40c
push 0x80
lea eax, [esp + 0x18]
push eax
call ebp
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov edx, dword [esp + 0x10]
push edx
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
and ebx, eax
jne 0x44a432
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x44a432
mov ebx, 1
mov ecx, dword [esp + 0x118]
pop ebp
pop edi
pop esi
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.004570de
add esp, 0x10c
ret
Function at 0x44a450
Capabilities:
Get disk size

Disassembly:
sub esp, 0x2c
push esi
mov esi, dword [esp + 0x34]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 3
jge 0x44a473
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop esi
add esp, 0x2c
ret
push ebx
push 3
xor eax, eax
lea ecx, [esp + 0xc]
mov word [esp + 0xd], ax
push esi
xor ebx, ebx
push ecx
mov byte [esp + 0x14], bl
mov byte [esp + 0x17], al
call fcn.00457970
add esp, 0xc
push str.GetDiskFreeSpaceExA
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x44a4dd
lea edx, [esp + 0x1c]
push edx
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x34]
push edx
lea ecx, [esp + 0x14]
push ecx
call eax
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x3c]
mov dword [ecx], edx
mov edx, dword [esp + 0x20]
pop ebx
mov dword [ecx + 4], edx
pop esi
add esp, 0x2c
ret
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x18]
push ecx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x2c], ebx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
cmp eax, ebx
je 0x44a527
mov edx, dword [esp + 0xc]
imul edx, dword [esp + 0x10]
imul edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x3c]
mov dword [ecx], edx
mov dword [ecx + 4], ebx
pop ebx
pop esi
add esp, 0x2c
ret
Function at 0x44a530
Capabilities:
Delete file
Enumerate files on windows
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x45c
mov eax, dword [0x480630]
xor eax, ebp
push ebx
mov dword [esp + 0x45c], eax
push esi
mov esi, dword [ebp + 8]
push edi
xor eax, eax
mov byte [esp + 0x258], 0
mov ecx, 0x81
lea edi, [esp + 0x259]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea edx, [esp + 0x258]
stosb byte es:[edi], al
mov eax, esi
sub edx, esi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x44a576
lea eax, [esp + 0x258]
push 0x5c
push eax
call fcn.00457e22
add esp, 8
test eax, eax
je 0x44a6b1
mov byte [eax], 0
xor eax, eax
mov ecx, 0x50
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov ecx, 0x41
lea edi, [esp + 0x150]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x258]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x44a5c2
sub eax, edx
mov dword [esp + 0xc], eax
je 0x44a6b1
lea ecx, [esp + 0x10]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x44a603
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x458]
xor ecx, ebp
call fcn.004570de
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
nop
lea edx, [esp + 0x3c]
push edx
lea eax, [esp + 0x25c]
push eax
lea ecx, [esp + 0x158]
push 0x473128
push ecx
call esi
mov al, byte [esp + 0x20]
add esp, 0x10
test al, 0x10
jne 0x44a654
push 0x80
lea edx, [esp + 0x154]
push edx
call ebx
lea eax, [esp + 0x150]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x10]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x44a610
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0x12
je 0x44a693
call esi
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x458]
xor ecx, ebp
call fcn.004570de
mov esp, ebp
pop ebp
ret
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x458]
xor ecx, ebp
call fcn.004570de
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x464]
pop edi
pop esi
xor ecx, ebp
mov eax, 0x80070057
pop ebx
call fcn.004570de
mov esp, ebp
pop ebp
ret
Function at 0x44a6d0
Capabilities:
Check if file exists
Copy file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x114
mov eax, dword [0x480630]
xor eax, ebp
push ebx
mov ebx, dword [ebp + 8]
mov dword [esp + 0x114], eax
push esi
mov esi, dword [ebp + 0xc]
push edi
xor eax, eax
mov byte [esp + 0x10], 0
mov ecx, 0x40
lea edi, [esp + 0x11]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, esi
mov dword [esp + 0xc], ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x44a711
sub eax, edx
cmp eax, 0x103
jbe 0x44a728
push 0x6f
jmp 0x44a7f0
push 0x103
lea eax, [esp + 0x14]
push esi
push eax
call fcn.00457d8f
lea ecx, [esp + 0x1c]
push 0x5c
push ecx
call fcn.00457e22
add esp, 0x14
test eax, eax
je 0x44a7ee
lea edx, [esp + 0x10]
push edx
mov byte [eax], 0
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 3
jge 0x44a772
push 0x4708a4
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
push ebx
call edi
test eax, eax
jne 0x44a783
push 2
jmp 0x44a7f0
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x44a7a1
lea ecx, [esp + 0x10]
push 0
push ecx
call fcn.0044a2c0
add esp, 8
test eax, eax
jne 0x44a7a1
push 0x52
jmp 0x44a7f0
push esi
call edi
test eax, eax
mov ebx, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
je 0x44a7b6
push 0x80
push esi
call ebx
mov edx, dword [ebp + 0x10]
mov eax, dword [esp + 0xc]
push edx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov edi, eax
test edi, edi
je 0x44a7d7
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x44a7d7
push eax
push esi
call ebx
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x110]
xor ecx, ebp
call fcn.004570de
mov esp, ebp
pop ebp
ret
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [esp + 0x11c]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.004570de
mov esp, ebp
pop ebp
ret
Function at 0x451af0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xb4
mov eax, dword [0x480630]
xor eax, ebp
push ebx
mov ebx, dword [ebp + 8]
mov dword [esp + 0xb4], eax
mov eax, dword [ebp + 0x10]
push esi
push edi
mov dword [esp + 0x1c], eax
xor eax, eax
mov ecx, 0x25
lea edi, [esp + 0x20]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x20]
push ecx
mov dword [esp + 0x24], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x451c08
mov eax, dword [esp + 0x30]
xor edi, edi
cmp eax, edi
je 0x451c08
cmp eax, 1
mov eax, str.SystemCurrentControlSetServicesVxDMSTCP
je 0x451b5c
mov eax, str.SYSTEMCurrentControlSetServicesTcpipParameters
lea edx, [esp + 0x14]
push edx
push 0x20019
push edi
push eax
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x28], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x451c08
mov edx, dword [esp + 0x14]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [esp + 0x10]
push eax
push edi
lea ecx, [esp + 0x20]
push ecx
push edi
push str.NameServer
push edx
mov dword [esp + 0x30], 1
mov dword [esp + 0x28], edi
call esi
test eax, eax
jne 0x451bfd
mov eax, dword [esp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [esp + 0x14]
inc eax
cmp ecx, eax
mov dword [esp + 0x10], eax
jae 0x451be5
mov ecx, dword [esp + 0x1c]
push edx
mov dword [ecx], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xb0]
xor ecx, ebp
call fcn.004570de
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x10]
push eax
push ebx
lea ecx, [esp + 0x20]
push ecx
push edi
push str.NameServer
push edx
call esi
test eax, eax
je 0x451c1f
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xb0]
xor ecx, ebp
call fcn.004570de
mov esp, ebp
pop ebp
ret
mov edx, dword [esp + 0x10]
mov cl, byte [ebx]
inc edx
test cl, cl
mov dword [esp + 0x10], edx
mov eax, ebx
je 0x451c40
cmp byte [eax], 0x20
jne 0x451c38
mov byte [eax], 0
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x451c30
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
mov byte [eax + 1], 0
mov eax, dword [esp + 0x14]
push eax
mov dword [ecx], edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0xbc]
pop edi
pop esi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.004570de
mov esp, ebp
pop ebp
ret
Function at 0x452510
Capabilities:
Connect socket
Get socket status
Receive data
Receive data on socket
Send data
Send data on socket
Set socket configuration

Disassembly:
sub esp, 0x128
mov eax, dword [0x480630]
xor eax, esp
push ebx
push esi
push edi
xor ebx, ebx
push ebx
push 2
push 2
mov dword [esp + 0x13c], eax
mov edi, ecx
mov byte [esp + 0x1b], bl
call sub.WSOCK32.dll_socket
mov esi, eax
cmp esi, 0xffffffff
jne 0x45256d
call sub.WSOCK32.dll_WSAGetLastError
push eax
push str.socket___failed___d_n
call fcn.004589d2
add esp, 8
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [esp + 0x124]
xor ecx, esp
call fcn.004570de
add esp, 0x128
ret
push 0x35
mov word [esp + 0x124], 2
call sub.WSOCK32.dll_htons
mov word [esp + 0x122], ax
lea eax, [edi + 6]
push eax
call sub.WSOCK32.dll_inet_addr
push 0x10
lea ecx, [esp + 0x124]
push ecx
push esi
mov dword [esp + 0x130], eax
call sub.WSOCK32.dll_connect
cmp eax, 0xffffffff
jne 0x4525cb
push esi
call sub.WSOCK32.dll_closesocket
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [esp + 0x124]
xor ecx, esp
call fcn.004570de
add esp, 0x128
ret
mov dword [esp + 0x10], ebx
nop
mov edx, dword [edi + 0x1c]
mov eax, dword [edi + 0x20]
push ebx
push edx
push eax
push esi
call sub.WSOCK32.dll_send
cmp eax, 0xffffffff
je 0x452643
lea ecx, [esp + 0x14]
push ecx
push ebx
push ebx
lea edx, [esp + 0x28]
push edx
push ebx
mov dword [esp + 0x34], esi
mov dword [esp + 0x30], 1
mov dword [esp + 0x28], 2
mov dword [esp + 0x2c], ebx
call sub.WSOCK32.dll_select
cmp eax, 0xffffffff
je 0x45262b
cmp eax, ebx
je 0x45262b
mov eax, dword [edi + 0x28]
mov ecx, dword [edi + 0x2c]
push ebx
push eax
push ecx
push esi
call sub.WSOCK32.dll_recv
cmp eax, 0xffffffff
jne 0x45263b
mov eax, dword [esp + 0x10]
inc eax
cmp eax, 3
mov dword [esp + 0x10], eax
jl 0x4525d0
jmp 0x452643
mov dword [edi + 0x24], eax
mov byte [esp + 0xf], 1
push esi
call sub.WSOCK32.dll_closesocket
mov ecx, dword [esp + 0x130]
mov al, byte [esp + 0xf]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004570de
add esp, 0x128
ret

Function at 0x452890
Capabilities:
Set socket configuration

Disassembly:
push esi
mov esi, dword [esp + 8]
mov eax, esi
push edi
mov edi, ecx
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4528a0
sub eax, edx
cmp eax, 0xf
ja 0x4528b9
push esi
call sub.WSOCK32.dll_inet_addr
cmp eax, 0xffffffff
jne 0x4528c0
pop edi
xor al, al
pop esi
ret 4
push 0xf
push esi
add edi, 6
push edi
call fcn.00457970
add esp, 0xc
pop edi
mov al, 1
pop esi
ret 4
Function at 0x4528e0
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x194
mov eax, dword [0x480630]
xor eax, esp
push esi
mov dword [esp + 0x194], eax
lea eax, [esp + 4]
push eax
push 0x101
mov esi, ecx
call sub.WSOCK32.dll_WSAStartup
test eax, eax
je 0x452928
mov dword [esi], 2
xor al, al
pop esi
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.004570de
add esp, 0x194
ret
xor ecx, ecx
lea edx, [esi + 0x18]
mov dword [edx], ecx
mov dword [edx + 4], ecx
mov dword [edx + 8], ecx
xor eax, eax
lea ecx, [esi + 0x24]
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov ecx, esi
call fcn.004521e0
mov ecx, dword [esp + 0x194]
mov dword [esi], 0
pop esi
xor ecx, esp
mov al, 1
call fcn.004570de
add esp, 0x194
ret

Function at 0x452e70
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x124
mov eax, dword [0x480630]
xor eax, ebp
push ebx
mov dword [esp + 0x124], eax
mov eax, dword [ebp + 8]
push esi
push edi
mov dword [esp + 0x1c], eax
xor eax, eax
xor ebx, ebx
mov byte [esp + 0x20], bl
mov ecx, 0x40
lea edi, [esp + 0x21]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push str.WININET.DLL
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp eax, ebx
mov dword [esp + 0x10], ebx
je 0x452f31
push 0x104
lea ecx, [esp + 0x24]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jbe 0x452f31
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x24]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov edi, eax
cmp edi, ebx
jbe 0x452f31
push edi
call fcn.00456452
mov ecx, dword [esp + 0x14]
add esp, 4
mov esi, eax
push esi
push edi
push ecx
lea edx, [esp + 0x2c]
push edx
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x452f28
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x18]
push ecx
push 0x4708a4
push esi
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
jne 0x452f48
push esi
call fcn.004572e5
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x120]
xor ecx, ebp
call fcn.004570de
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x14]
movzx edx, word [eax + 8]
movzx eax, word [eax + 0xa]
mov ecx, dword [esp + 0x1c]
push edx
push eax
push str.MSIE__d._d
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
push esi
call fcn.004572e5
mov ecx, dword [esp + 0x140]
add esp, 0x14
pop edi
pop esi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.004570de
mov esp, ebp
pop ebp
ret
Function at 0x452f90
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xa8
mov eax, dword [0x480630]
xor eax, ebp
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [esp + 0xac], eax
xor eax, eax
mov ecx, 0x27
lea edi, [esp + 8]
rep stosd dword es:[edi], eax
mov edi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
lea eax, [esp + 8]
push eax
mov dword [esp + 0xc], 0x9c
call edi
test eax, eax
jne 0x452ffe
lea ecx, [esp + 8]
push ecx
mov dword [esp + 0xc], 0x94
call edi
test eax, eax
jne 0x452ffe
mov byte [esi], al
pop edi
pop esi
mov ecx, dword [esp + 0xa4]
xor ecx, ebp
call fcn.004570de
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x18]
sub eax, 0
je 0x45307d
dec eax
je 0x453028
dec eax
jne 0x45308c
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0xc]
push edx
push eax
push str.Windows_NT__d._d
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
jmp 0x45308c
cmp dword [esp + 0xc], 4
jne 0x45308c
mov eax, dword [esp + 0x10]
test eax, eax
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
jne 0x453051
push str.Windows_95
push esi
call edi
mov eax, dword [esp + 0x14]
add esp, 8
cmp eax, 4
jne 0x45308c
cmp dword [esp + 0x10], 0xa
jne 0x45306c
push str.Windows_98
push esi
call edi
mov eax, dword [esp + 0x14]
add esp, 8
cmp eax, 4
jne 0x45308c
cmp dword [esp + 0x10], 0x5a
jne 0x45308c
push str.Windows_Me
push esi
call edi
jmp 0x453089
push str.Windows
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 8
mov ecx, dword [esp + 0xac]
pop edi
xor ecx, ebp
mov eax, 1
pop esi
call fcn.004570de
mov esp, ebp
pop ebp
ret
Function at 0x4530b0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x114
mov eax, dword [0x480630]
xor eax, ebp
mov dword [esp + 0x110], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov esi, ecx
mov dword [esp + 0xc], eax
xor eax, eax
test esi, esi
mov byte [esp + 0x10], 0
mov ecx, 0x40
lea edi, [esp + 0x11]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ebx, 1
stosb byte es:[edi], al
je 0x453113
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push esi
call edi
test eax, eax
jle 0x453113
push esi
call edi
cmp eax, 0x104
jbe 0x45312a
push 0x6f
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x110]
xor ecx, ebp
call fcn.004570de
mov esp, ebp
pop ebp
ret
push 0x103
push esi
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov eax, dword [ebp + 8]
test eax, eax
je 0x45314d
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.SHLWAPI.dll_PathSkipRootA]
mov esi, eax
push esi
call edi
test eax, eax
jne 0x45317b
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x110]
xor ecx, ebp
call fcn.004570de
mov esp, ebp
pop ebp
ret
push 0x5c
push esi
call fcn.00457c44
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov esi, eax
add esp, 8
test esi, esi
je 0x4531cc
mov ecx, dword [esp + 0xc]
push ecx
lea edx, [esp + 0x14]
push edx
mov byte [esi], 0
call edi
and ebx, eax
jne 0x4531b7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4531b7
mov ebx, 1
mov byte [esi], 0x5c
push 0x5c
inc esi
push esi
call fcn.00457c44
mov esi, eax
add esp, 8
test esi, esi
jne 0x453192
mov eax, dword [esp + 0xc]
push eax
lea ecx, [esp + 0x14]
push ecx
call edi
and ebx, eax
jne 0x4531ee
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4531ee
mov ebx, 1
mov ecx, dword [esp + 0x11c]
pop edi
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.004570de
mov esp, ebp
pop ebp
ret
Function at 0x4538c0
Capabilities:
Parse url

Disassembly:
sub esp, 0x3c
push ebx
push ebp
push esi
mov esi, dword [esp + 0x4c]
push edi
mov ebp, ecx
lea eax, [esi + 1]
mov cl, byte [esi]
inc esi
test cl, cl
jne 0x4538d0
sub esi, eax
xor eax, eax
mov ecx, 0xf
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
push esi
mov ecx, ebp
mov dword [esp + 0x14], 0x3c
call fcn.004042d0
lea edi, [ebp + 8]
push esi
mov ecx, edi
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], esi
call fcn.004042d0
lea ebx, [ebp + 0x10]
push esi
mov ecx, ebx
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], esi
call fcn.004042d0
lea ecx, [ebp + 0x14]
push esi
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], esi
call fcn.004042d0
lea ecx, [ebp + 0x18]
push esi
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], esi
call fcn.004042d0
lea ecx, [ebp + 0x1c]
push esi
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], esi
call fcn.004042d0
mov ecx, dword [esp + 0x50]
mov dword [esp + 0x44], eax
lea eax, [esp + 0x10]
push eax
push 0
push 0
push ecx
mov dword [esp + 0x58], esi
call dword [sym.imp.WININET.dll_InternetCrackUrlA]
test eax, eax
mov ecx, ebp
setne byte [esp + 0x50]
call fcn.00404410
mov edx, dword [ebp]
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push edx
call esi
mov ecx, dword [ebp]
mov dword [ecx - 8], eax
mov edx, dword [ebp]
mov ecx, edi
mov byte [eax + edx], 0
call fcn.00404410
mov eax, dword [edi]
push eax
call esi
mov ecx, dword [edi]
mov dword [ecx - 8], eax
mov edx, dword [edi]
mov ecx, ebx
mov byte [eax + edx], 0
call fcn.00404410
mov eax, dword [ebx]
push eax
call esi
mov ecx, dword [ebx]
mov dword [ecx - 8], eax
mov edx, dword [ebx]
lea edi, [ebp + 0x14]
mov ecx, edi
mov byte [eax + edx], 0
call fcn.00404410
mov eax, dword [edi]
push eax
call esi
mov ecx, dword [edi]
mov dword [ecx - 8], eax
mov edx, dword [edi]
lea edi, [ebp + 0x18]
mov ecx, edi
mov byte [eax + edx], 0
call fcn.00404410
mov eax, dword [edi]
push eax
call esi
mov ecx, dword [edi]
mov dword [ecx - 8], eax
mov edx, dword [edi]
lea edi, [ebp + 0x1c]
mov ecx, edi
mov byte [eax + edx], 0
call fcn.00404410
mov eax, dword [edi]
push eax
call esi
mov ecx, dword [edi]
mov dword [ecx - 8], eax
mov edx, dword [edi]
mov byte [eax + edx], 0
mov eax, dword [esp + 0x1c]
mov cx, word [esp + 0x28]
pop edi
pop esi
mov dword [ebp + 4], eax
mov al, byte [esp + 0x48]
mov word [ebp + 0xc], cx
pop ebp
pop ebx
add esp, 0x3c
ret 4
Function at 0x453c20
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x46ef3e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x220
mov eax, dword [0x480630]
push ebx
push esi
mov esi, ecx
xor eax, ebp
mov dword [esi], 0x4759a4
mov dword [esp + 0x220], eax
mov eax, dword [0x4800d8]
push edi
mov dword [esp + 0xc], esi
mov dword [esi + 0x10], eax
mov ecx, dword [0x4800d8]
xor ebx, ebx
mov dword [esp + 0x234], ebx
mov dword [esi + 0x14], ecx
mov edx, dword [0x4800d8]
mov dword [esi + 0x20], edx
mov eax, dword [0x4800d8]
mov dword [esi + 0x24], eax
mov ecx, dword [0x4800d8]
mov dword [esi + 0x28], ecx
mov edx, dword [0x4800d8]
mov dword [esi + 0x2c], edx
mov eax, dword [0x4800d8]
mov dword [esi + 0x3c], eax
mov ecx, dword [0x4800d8]
mov dword [esi + 0x40], ecx
mov edx, dword [0x4800d8]
mov dword [esi + 0x4c], edx
xor eax, eax
mov byte [esp + 0x118], bl
mov ecx, 0x40
lea edi, [esp + 0x119]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x118]
push 0x104
push eax
mov byte [esp + 0x23c], 8
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x48], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x44], ebx
mov word [esi + 0x18], 0x50
mov word [esi + 0x30], bx
mov dword [esi + 0x54], ebx
mov dword [esi + 0x50], ebx
mov dword [esi + 0x58], ebx
mov dword [esi + 0x5c], ebx
call fcn.00452e70
mov byte [esp + 0x18], bl
xor eax, eax
mov ecx, 0x40
lea edi, [esp + 0x19]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x18]
push 0x104
push ecx
stosb byte es:[edi], al
call fcn.00452f90
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x12c]
push eax
push str.Mozilla_4.0__compatible___s___s__Rising_
lea eax, [esi + 0x10]
push eax
call fcn.00405ab0
mov ecx, dword [esp + 0x24c]
add esp, 0x20
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x224]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.004570de
mov esp, ebp
pop ebp
ret