joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44fb20
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 8
push ebx
mov eax, dword [esp + 0x10]
push esi
xor esi, esi
push esi
push 0x20
push 3
push esi
push 1
push SysReAllocStringLen
push eax
mov dword [esp + 0x28], esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
mov dword [esp + 8], ebx
je 0x44fd05
push ebp
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
test esi, esi
je 0x44fcf2
lea edi, [esi + 2]
push edi
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x44fcf2
mov ecx, edi
xor eax, eax
mov edx, ecx
mov edi, ebp
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push 0
and ecx, 3
mov dword [esp + 0x20], 0
rep stosb byte es:[edi], al
lea eax, [esp + 0x20]
push eax
push esi
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x44fce9
cmp esi, dword [esp + 0x1c]
jne 0x44fce9
push ebp
mov dword [esp + 0x18], 1
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, dword [esp + 0x20]
mov esi, eax
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
mov eax, dword [ebx]
mov edx, dword [eax - 0xc]
lea ecx, [eax - 0xc]
cmp edx, 1
jg 0x44fbe7
cmp esi, dword [eax - 4]
jle 0x44fc49
mov edx, dword [0x52d120]
add eax, 0xfffffff4
cmp eax, edx
je 0x44fc11
push ecx
call edi
test eax, eax
jg 0x44fc09
mov ecx, dword [ebx]
sub ecx, 0xc
push ecx
call fcn.00512b1a
add esp, 4
mov edx, dword [0x52d194]
mov dword [ebx], edx
test esi, esi
jne 0x44fc1c
mov eax, dword [0x52d194]
jmp 0x44fc47
lea ecx, [esi + esi + 0xe]
push ecx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
test eax, eax
je 0x44fce5
mov dword [eax], 1
mov word [eax + esi*2 + 0xc], 0
mov dword [eax + 4], esi
mov dword [eax + 8], esi
add eax, 0xc
mov dword [ebx], eax
lea eax, [esi + 1]
mov esi, dword [ebx]
test eax, eax
jne 0x44fc56
test esi, esi
jne 0x44fc70
push eax
push esi
push 0xffffffffffffffff
push ebp
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jle 0x44fc70
mov word [esi + eax*2 - 2], 0
mov eax, dword [ebx]
mov ecx, dword [eax - 0xc]
lea esi, [eax - 0xc]
cmp ecx, 1
jle 0x44fccf
mov ecx, dword [0x52d120]
add eax, 0xfffffff4
cmp eax, ecx
je 0x44fca6
push esi
call edi
test eax, eax
jg 0x44fc9f
mov edx, dword [ebx]
sub edx, 0xc
push edx
call fcn.00512b1a
add esp, 4
mov eax, dword [0x52d194]
mov dword [ebx], eax
mov ecx, dword [esi + 4]
push ecx
mov ecx, ebx
call fcn.0041b330
test eax, eax
je 0x44fccf
mov edx, dword [esi + 4]
mov edi, dword [ebx]
add esi, 0xc
lea ecx, [edx + edx + 2]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edx, dword [ebx]
mov dword [edx - 8], eax
mov ecx, dword [ebx]
mov word [ecx + eax*2], 0
mov ebx, dword [esp + 0x10]
push ebp
call fcn.00512b1a
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x14]
pop edi
pop ebp
pop esi
pop ebx
add esp, 8
ret
mov eax, esi
pop esi
pop ebx
add esp, 8
ret
Function at 0x44fed0
Capabilities:
Get common file path
Get program files directory

Disassembly:
sub esp, 0x410
push esi
push edi
xor esi, esi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0xa]
mov word [esp + 8], si
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [esp + 0x41c]
lea ecx, [esp + 8]
push eax
push 0x52e450
push 0x103
push ecx
call dword [sym.imp.MSVCRT.dll__snwprintf]
lea edx, [esp + 0x18]
push edx
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 0x14
cmp word [esp + eax*2 + 6], 0x5c
je 0x44ff34
lea eax, [esp + 8]
push 0x52e88c
push eax
call dword [sym.imp.MSVCRT.dll_wcscat]
add esp, 8
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathIsRootW]
test eax, eax
je 0x44ff51
pop edi
mov eax, 1
pop esi
add esp, 0x410
ret
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x212]
mov word [esp + 0x210], 0
rep stosd dword es:[edi], eax
push ebx
mov ebx, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0
lea edx, [esp + 0x218]
push 0x24
push edx
push 0
stosw word es:[edi], ax
call ebx
test eax, eax
je 0x44ffa7
lea eax, [esp + 0x214]
lea ecx, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.MSVCRT.dll_wcsstr]
add esp, 8
test eax, eax
je 0x44ffa7
mov esi, 1
xor eax, eax
lea edx, [esp + 0x214]
push eax
mov ecx, 0x82
lea edi, [esp + 0x218]
push 0x26
push edx
push eax
rep stosd dword es:[edi], eax
call ebx
test eax, eax
pop ebx
je 0x44ffe9
lea eax, [esp + 0x210]
lea ecx, [esp + 8]
push eax
push ecx
call dword [sym.imp.MSVCRT.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x44ffe9
mov esi, 1
mov eax, esi
pop edi
pop esi
add esp, 0x410
ret

Function at 0x450000
Capabilities:
Check if file exists
Write file on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x450047
push 0x54df0c
push esi
call dword [sym.imp.MSVCRT.dll__wfopen]
mov esi, eax
add esp, 8
test esi, esi
mov dword [esp + 8], 0xfeff
je 0x450047
push esi
push 1
lea eax, [esp + 0x10]
push 2
push eax
call dword [sym.imp.MSVCRT.dll_fwrite]
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 0x14
pop esi
ret

Function at 0x450050
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x10
push ebx
push esi
mov esi, dword [esp + 0x1c]
xor ebx, ebx
cmp esi, ebx
jne 0x450067
pop esi
xor eax, eax
pop ebx
add esp, 0x10
ret
push ebx
push esi
call dword [sym.imp.MSVCRT.dll__waccess]
add esp, 8
test eax, eax
je 0x45007e
pop esi
xor eax, eax
pop ebx
add esp, 0x10
ret
xor eax, eax
push edi
mov dword [esp + 0xd], eax
push 0x54df18
mov dword [esp + 0x15], eax
push esi
mov dword [esp + 0x1d], eax
mov byte [esp + 0x14], bl
mov word [esp + 0x21], ax
mov byte [esp + 0x23], al
call dword [sym.imp.MSVCRT.dll__wfopen]
mov edi, eax
add esp, 8
cmp edi, ebx
je 0x4500c9
push edi
push 2
lea ecx, [esp + 0x14]
push 1
push ecx
call dword [sym.imp.MSVCRT.dll_fread]
push edi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 0x14
lea edx, [esp + 0xc]
push 0x54df14
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
pop edi
jne 0x4500e9
push esi
call fcn.004aa540
add esp, 4
mov ebx, eax
mov eax, ebx
pop esi
pop ebx
add esp, 0x10
ret
Function at 0x450260
Capabilities:
Create thread
Resume thread

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
test edi, edi
je 0x450368
cmp word [edi], 0
je 0x450368
push 0x2210
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x450368
mov esi, 0x104
mov ecx, eax
sub edi, eax
lea edx, [esi + 0x7ffffefa]
test edx, edx
je 0x4502bb
mov dx, word [edi + ecx]
test dx, dx
je 0x4502bb
mov word [ecx], dx
add ecx, 2
dec esi
jne 0x45029d
jmp 0x4502bf
test esi, esi
jne 0x4502c2
sub ecx, 2
mov esi, dword [esp + 0x14]
mov word [ecx], 0
test esi, esi
je 0x45030c
cmp word [esi], 0
je 0x45030c
lea ecx, [eax + 0x208]
mov edi, 0x1000
sub esi, ecx
lea edx, [edi + 0x7fffeffe]
test edx, edx
je 0x450300
mov dx, word [esi + ecx]
test dx, dx
je 0x450300
mov word [ecx], dx
add ecx, 2
dec edi
jne 0x4502e2
jmp 0x450304
test edi, edi
jne 0x450307
sub ecx, 2
mov word [ecx], 0
mov ecx, dword [esp + 0x10]
mov edi, dword [esp + 0x18]
push 0
push 4
push eax
push 0x450120
push 0
push 0
mov dword [eax + 0x2208], ecx
mov dword [eax + 0x220c], edi
call dword [sym.imp.MSVCRT.dll__beginthreadex]
mov esi, eax
add esp, 0x18
test esi, esi
je 0x450368
test edi, edi
je 0x45034a
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push esi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x450361
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
ret

Function at 0x450370
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x210
push esi
push edi
xor esi, esi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x12]
mov word [esp + 0x10], si
lea edx, [esp + 8]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0xc]
lea ecx, [esp + 0x10]
push eax
push ecx
push edx
push str.Path
push str.SoftwareMicrosoftWindowsCurrentVersionApp_Paths360Safe.exe
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x20], 1
mov dword [esp + 0x24], 0x208
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x45042c
cmp word [esp + 0x10], si
je 0x45042c
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
cmp word [esp + eax*2 + 0xe], 0x5c
je 0x4503f6
lea ecx, [esp + 0x10]
push 0x52e88c
push ecx
call dword [sym.imp.MSVCRT.dll_wcscat]
add esp, 8
mov eax, dword [esp + 0x220]
mov ecx, dword [esp + 0x21c]
lea edx, [esp + 0x10]
push str.360ver.dll
push edx
push 0x52e930
push eax
push ecx
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x14
mov eax, 1
pop edi
pop esi
add esp, 0x210
ret
mov eax, esi
pop edi
pop esi
add esp, 0x210
ret
Function at 0x450440
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x210
push esi
push edi
xor esi, esi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x12]
mov word [esp + 0x10], si
lea edx, [esp + 8]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0xc]
lea ecx, [esp + 0x10]
push eax
push ecx
push edx
push str.Path
push str.SoftwareMicrosoftWindowsCurrentVersionApp_Paths360sd.exe
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x20], 1
mov dword [esp + 0x24], 0x208
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x4504fc
cmp word [esp + 0x10], si
je 0x4504fc
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
cmp word [esp + eax*2 + 0xe], 0x5c
je 0x4504c6
lea ecx, [esp + 0x10]
push 0x52e88c
push ecx
call dword [sym.imp.MSVCRT.dll_wcscat]
add esp, 8
mov eax, dword [esp + 0x220]
mov ecx, dword [esp + 0x21c]
lea edx, [esp + 0x10]
push str.SDVersion.dll
push edx
push 0x52e930
push eax
push ecx
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x14
mov eax, 1
pop edi
pop esi
add esp, 0x210
ret
mov eax, esi
pop edi
pop esi
add esp, 0x210
ret

Function at 0x450510
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x210
push esi
push edi
xor esi, esi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x12]
mov word [esp + 0x10], si
lea edx, [esp + 8]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0xc]
lea ecx, [esp + 0x10]
push eax
push ecx
push edx
push str.Path
push str.SoftwareMicrosoftWindowsCurrentVersionApp_Paths360safe.exe
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x20], 1
mov dword [esp + 0x24], 0x208
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x4505cc
cmp word [esp + 0x10], si
je 0x4505cc
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
cmp word [esp + eax*2 + 0xe], 0x5c
je 0x450596
lea ecx, [esp + 0x10]
push 0x52e88c
push ecx
call dword [sym.imp.MSVCRT.dll_wcscat]
add esp, 8
mov eax, dword [esp + 0x220]
mov ecx, dword [esp + 0x21c]
lea edx, [esp + 0x10]
push str.safemon_safemon.dll
push edx
push 0x52e930
push eax
push ecx
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x14
mov eax, 1
pop edi
pop esi
add esp, 0x210
ret
mov eax, esi
pop edi
pop esi
add esp, 0x210
ret

Function at 0x450910
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
mov ecx, dword [esp + 0x18]
mov eax, 4
mov dword [esp + 4], eax
mov dword [esp], eax
lea eax, [esp]
lea edx, [esp + 4]
push eax
mov eax, dword [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x18]
push edx
mov edx, dword [esp + 0x18]
push eax
push ecx
push edx
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
neg eax
sbb eax, eax
inc eax
add esp, 8
ret
Function at 0x450950
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x210
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0xe]
mov word [esp + 0xc], 0
mov edx, dword [esp + 0x224]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [esp + 0x228]
lea ecx, [esp + 8]
dec eax
push ecx
mov ecx, dword [esp + 0x224]
mov dword [esp + 0xc], eax
lea eax, [esp + 8]
push edx
mov edx, dword [esp + 0x224]
push eax
mov eax, dword [esp + 0x224]
push ecx
push edx
push eax
mov dword [esp + 0x1c], 1
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
pop edi
jne 0x4509c9
cmp word [esp + 8], ax
je 0x4509c9
mov eax, 1
add esp, 0x210
ret
xor eax, eax
add esp, 0x210
ret

Function at 0x4509e0
Capabilities:
Set registry value

Disassembly:
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
lea eax, [esp + 0x10]
push 4
push eax
mov eax, dword [esp + 0xc]
push 4
push ecx
push edx
push eax
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
neg eax
sbb eax, eax
inc eax
ret
Function at 0x451a50
Capabilities:
Capture screenshot

Disassembly:
push ebx
push edi
mov edi, dword [esp + 0x2c]
test edi, edi
jle 0x451b78
mov eax, dword [esp + 0x30]
test eax, eax
jle 0x451b78
mov ebx, dword [esp + 0x18]
test ebx, ebx
jle 0x451b78
mov eax, dword [esp + 0x1c]
test eax, eax
jle 0x451b78
push ebp
mov ebp, dword [esp + 0x24]
push esi
push ebp
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov esi, eax
mov eax, dword [esp + 0x24]
push eax
push ebx
push ebp
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
push esi
mov dword [esp + 0x30], eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
push 0xcc0020
push ecx
push edx
push ebp
mov ebp, dword [esp + 0x48]
mov dword [esp + 0x30], eax
push ebp
push edi
push 0
push 0
push esi
call dword [sym.imp.GDI32.dll_BitBlt]
cmp edi, ebx
mov dword [esp + 0x34], edi
jge 0x451b05
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
push 0xcc0020
push 0
push 0
push esi
push eax
push edi
push 0
push ecx
push esi
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esp + 0x34]
add eax, edi
add edi, edi
cmp eax, ebx
mov dword [esp + 0x34], eax
jl 0x451ad7
mov edi, dword [esp + 0x38]
mov eax, dword [esp + 0x24]
cmp edi, eax
jge 0x451b33
push 0xcc0020
push 0
push 0
push esi
push ebp
push ebx
push edi
push 0
push esi
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esp + 0x24]
add edi, ebp
add ebp, ebp
cmp edi, eax
jl 0x451b11
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
push 0xcc0020
push 0
push 0
push esi
push edx
mov edx, dword [esp + 0x28]
push ebx
push eax
push ecx
push edx
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esp + 0x20]
push eax
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [esp + 0x28]
push ecx
call dword [sym.imp.GDI32.dll_DeleteObject]
push esi
call dword [sym.imp.GDI32.dll_DeleteDC]
pop esi
pop ebp
pop edi
pop ebx
ret 0x28

Function at 0x454520
Capabilities:
Get process heap flags

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x514938
push eax
mov dword fs:[0], esp
push esi
push edi
mov esi, ecx
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push eax
push ecx
push edx
mov ecx, esi
mov dword [esp + 0x1c], 0
call fcn.004545a0
mov edi, eax
sub esp, 0xc
lea eax, [esp + 0x30]
mov ecx, esp
mov dword [esp + 0x2c], esp
push eax
call fcn.0041fdf0
push edi
mov ecx, esi
call fcn.004542b0
lea ecx, [esp + 0x24]
mov dword [esp + 0x10], 0xffffffff
call fcn.0041fd30
mov ecx, dword [esp + 8]
pop edi
mov dword fs:[0], ecx
pop esi
add esp, 0xc
ret 0x18
Function at 0x454a70
Capabilities:
Get file size
Read file on windows

Disassembly:
push ecx
mov eax, dword [esp + 8]
push ebx
push ebp
xor ebp, ebp
push esi
cmp eax, ebp
push edi
mov esi, ecx
mov dword [esp + 0x10], ebp
je 0x454b62
push ebp
push 0x80
push 4
push ebp
push 3
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x454b62
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0x6400000
mov dword [esi + 0x244], eax
mov dword [esi + 0x248], eax
mov dword [esp + 0x18], ebp
jbe 0x454ad4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret 4
inc eax
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov edi, eax
add esp, 4
cmp edi, ebp
mov dword [esi + 0x240], edi
jne 0x454af4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret 4
mov ecx, dword [esi + 0x244]
xor eax, eax
inc ecx
push ebp
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [esi + 0x244]
mov edx, dword [esi + 0x240]
lea eax, [esp + 0x1c]
push eax
push ecx
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x454b42
mov eax, dword [esi + 0x244]
mov ecx, dword [esp + 0x18]
cmp eax, ecx
jne 0x454b42
mov dword [esp + 0x10], 1
jmp 0x454b5b
mov eax, dword [esi + 0x240]
cmp eax, ebp
je 0x454b5b
push eax
call fcn.00512b1a
add esp, 4
mov dword [esi + 0x240], ebp
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
mov dword [esi + 0x24c], ebp
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4

Function at 0x454e10
Capabilities:
Set file attributes
Write file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
push edi
test ebx, ebx
je 0x454e76
mov esi, dword [esp + 0x18]
test esi, esi
je 0x454e76
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0
push 0x80000080
push 2
push 0
push 3
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x454e76
mov edi, dword [esp + 0x14]
lea eax, [esp + 0x10]
push 0
push eax
push edi
push ebx
push esi
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
push esi
jne 0x454e7e
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
ret 0xc
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x10]
xor eax, eax
cmp ecx, edi
pop edi
pop esi
pop ebx
sete al
ret 0xc
Function at 0x455390
Capabilities:
Parse url

Disassembly:
sub esp, 0x654
push esi
mov esi, dword [esp + 0x65c]
test esi, esi
je 0x455483
mov dx, word [0x560ec0]
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x46]
mov word [esp + 0x44], dx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x24e]
mov word [esp + 0x24c], dx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x456]
mov word [esp + 0x454], dx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 8]
lea edx, [esp + 0x454]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x44]
lea ecx, [esp + 0x24c]
mov dword [esp + 0xc], eax
mov eax, 0x104
mov dword [esp + 0x10], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x38], eax
lea eax, [esp + 8]
push eax
push 0
push esi
mov dword [esp + 0x14], 0x3c
mov dword [esp + 0x24], ecx
mov dword [esp + 0x40], edx
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
push eax
push esi
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
pop edi
je 0x455483
mov eax, dword [esp + 0x30]
test eax, eax
je 0x455476
cmp word [eax], 0
je 0x455476
push 0x54bc3c
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
jne 0x455483
mov eax, 1
pop esi
add esp, 0x654
ret
xor eax, eax
pop esi
add esp, 0x654
ret
Function at 0x4580c0
Capabilities:
Check if file exists

Disassembly:
sub esp, 0x70
push ebx
mov ebx, ecx
push 0
push str.history.dat
mov ecx, 0x560ee8
call fcn.0040a620
test eax, eax
je 0x4580ea
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x45828a
push esi
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
call fcn.004480e0
mov esi, eax
test esi, esi
mov dword [esp + 0x10], esi
je 0x45827b
mov eax, dword [esi]
lea ecx, [esp + 8]
push ecx
push esi
call dword [eax + 0x1c]
test eax, eax
jl 0x458275
mov edx, dword [esp + 8]
test edx, edx
je 0x458275
push edi
mov ecx, 0xa
xor eax, eax
lea edi, [esp + 0x54]
rep stosd dword es:[edi], eax
mov dword [esp + 0x54], 0x28
mov eax, dword [edx]
push edx
call dword [eax + 0x14]
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x10]
push edx
lea edx, [esp + 0x58]
mov dword [esp + 0x14], 0
mov ecx, dword [eax]
push edx
push 1
push eax
call dword [ecx + 0xc]
test eax, eax
jne 0x45826a
mov esi, dword [sym.imp.MSVCRT.dll_mktime]
or edi, 0xffffffff
cmp dword [esp + 0x10], 1
jne 0x458266
mov eax, dword [esp + 0x5c]
test eax, eax
je 0x458248
mov eax, dword [esp + 0x58]
test eax, eax
je 0x458248
lea eax, [esp + 0x18]
lea ecx, [esp + 0x60]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
test eax, eax
je 0x458230
lea edx, [esp + 0x20]
lea eax, [esp + 0x18]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
test eax, eax
je 0x458230
mov eax, dword [esp + 0x20]
cmp ax, 0x76c
jae 0x4581cd
xor eax, eax
jmp 0x458230
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x2a]
and ecx, 0xffff
and edx, 0xffff
mov dword [esp + 0x30], ecx
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x34], edx
mov edx, dword [esp + 0x26]
and ecx, 0xffff
and edx, 0xffff
mov dword [esp + 0x38], ecx
mov ecx, dword [esp + 0x22]
mov dword [esp + 0x3c], edx
and ecx, 0xffff
and eax, 0xffff
lea edx, [esp + 0x30]
dec ecx
sub eax, 0x76c
push edx
mov dword [esp + 0x44], ecx
mov dword [esp + 0x48], eax
mov dword [esp + 0x54], edi
call esi
add esp, 4
mov ecx, dword [esp + 0x5c]
push 1
push eax
mov eax, dword [esp + 0x60]
push 0
push eax
push ecx
push 0
mov ecx, ebx
call fcn.00455710
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x58]
mov edx, dword [eax]
push ecx
push 1
push eax
call dword [edx + 0xc]
test eax, eax
je 0x458170
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0xc]
push eax
mov edx, dword [eax]
call dword [edx + 8]
pop edi
mov eax, dword [esi]
push esi
call dword [eax + 8]
lea ecx, [ebx + 0x68]
call fcn.004548a0
call dword [sym.imp.ole32.dll_CoUninitialize]
pop esi
pop ebx
add esp, 0x70
ret
Function at 0x45ed80
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10
push esi
mov esi, dword [sym.imp.SHLWAPI.dll_SHGetValueW]
lea eax, [esp + 4]
push edi
lea ecx, [esp + 0x10]
push eax
lea edx, [esp + 0x10]
push ecx
push edx
push str.IECompatVersionHigh
mov edi, 4
push str.SoftwareMicrosoftInternet_ExplorerBrowserEmulation
push SysReAllocStringLen
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], 0
mov dword [esp + 0x20], edi
call esi
test eax, eax
jne 0x45ee13
mov dword [esp + 0x14], eax
lea eax, [esp + 8]
lea ecx, [esp + 0x14]
push eax
lea edx, [esp + 0x10]
push ecx
push edx
push str.IECompatVersionLow
push str.SoftwareMicrosoftInternet_ExplorerBrowserEmulation
push SysReAllocStringLen
mov dword [esp + 0x24], edi
mov dword [esp + 0x20], edi
call esi
test eax, eax
jne 0x45ee13
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x20]
pop edi
mov dword [eax], ecx
mov eax, dword [esp + 0x10]
mov dword [edx], eax
mov eax, 1
pop esi
add esp, 0x10
ret
pop edi
xor eax, eax
pop esi
add esp, 0x10
ret
Function at 0x45fbc0
Capabilities:
Allocate or change rwx memory

Disassembly:
sub esp, 8
push ebx
push esi
push edi
mov dword [esp + 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov ebx, dword [esp + 0x18]
mov edi, eax
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0xc]
mov edx, dword [ebx]
push ecx
lea esi, [eax*4]
push 0x40
add edx, esi
push 4
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov edx, dword [ebx]
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x14]
push 4
add edx, esi
push ecx
push edx
push edi
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x45fc57
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x20]
cmp ecx, eax
je 0x45fc6d
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0xc]
push edx
push 4
mov dword [ecx], eax
mov ecx, dword [ebx]
lea eax, [esp + 0x28]
add ecx, esi
push eax
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x45fc57
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 8
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
push eax
push 0x76d
call fcn.004cfdf0
add esp, 0xc
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 8
ret