joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43aab0
Capabilities:
Move file

Disassembly:
sub esp, 0x208
push esi
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0xa]
mov word [esp + 8], 0
rep stosd dword es:[edi], eax
push 0
push str.user.dat
mov ecx, 0x503fe0
stosw word es:[edi], ax
call fcn.0040adf0
mov esi, eax
push str.user.dat
lea eax, [esp + 0xc]
push 0x103
push eax
call fcn.00433120
push 0
push esi
call fcn.00433030
mov edi, dword [sym.imp.KERNEL32.dll_MoveFileW]
add esp, 0x14
test eax, eax
jne 0x43ab12
lea ecx, [esp + 8]
push esi
push ecx
call edi
push str.history.dat
lea edx, [esp + 0xc]
push 0x103
push edx
call fcn.00433120
add esp, 0xc
mov ecx, 0x503fe0
push 0
push str.history.dat
call fcn.0040adf0
mov esi, eax
push 0
push esi
call fcn.00433030
add esp, 8
test eax, eax
jne 0x43ab53
lea eax, [esp + 8]
push esi
push eax
call edi
pop edi
pop esi
add esp, 0x208
ret

Function at 0x440a10
Capabilities:
Set file attributes

Disassembly:
mov eax, dword [0x5e2874]
push ebx
push esi
push edi
mov edi, ecx
push str.kbcache.ini
push 0x103
lea esi, [edi + 0x30]
push esi
push eax
call fcn.00433040
push 0
push esi
call fcn.00433030
add esp, 0x18
test eax, eax
jne 0x440a56
lea ebx, [edi + 0x2c]
push 2
push esi
push ebx
call fcn.0047cfd0
push 0
push ebx
call fcn.0047d1d0
add esp, 0x14
jmp 0x440a5d
mov dword [edi + 8], 1
mov ebx, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0x80
push esi
call ebx
push 1
add edi, 0x2c
push esi
push edi
call fcn.0047cfd0
add esp, 0xc
push 2
push esi
call ebx
pop edi
pop esi
pop ebx
ret
Function at 0x441220
Capabilities:
Delete file
Set file attributes

Disassembly:
push esi
mov esi, ecx
push edi
push 0
lea eax, [esi + 0x2c]
push eax
call fcn.0047d1d0
add esp, 8
lea edi, [esi + 0x30]
push 0x80
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [esi + 4]
pop edi
test eax, eax
pop esi
je 0x441265
push 1
push str.HasLastPage
push str.Main
call fcn.0040bb40
add esp, 0xc
ret

Function at 0x443000
Capabilities:
Parse url

Disassembly:
mov eax, 0x1494
call fcn.004d0e10
push ebx
push ebp
push esi
mov esi, dword [esp + 0x14a4]
test esi, esi
push edi
je 0x443169
cmp word [esi], 0
je 0x443169
mov eax, dword [esp + 0x14ac]
test eax, eax
je 0x443169
mov dx, word [0x503fd0]
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x256]
mov word [esp + 0x254], dx
mov word [esp + 0x4c], dx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x4e]
mov ebx, dword [sym.imp.MSVCRT.dll_wcslen]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0xe
xor eax, eax
lea edi, [esp + 0x14]
lea edx, [esp + 0x10]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x254]
push edx
mov dword [esp + 0x18], eax
mov eax, 0x104
lea ecx, [esp + 0x50]
push 0
push esi
mov dword [esp + 0x1c], 0x3c
mov dword [esp + 0x24], eax
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], eax
call ebx
mov ebp, dword [sym.imp.WININET.dll_InternetCrackUrlW]
add esp, 4
push eax
push esi
call ebp
test eax, eax
jne 0x443118
mov ecx, 0x411
lea edi, [esp + 0x45e]
mov word [esp + 0x45c], ax
push esi
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push str.http:___s_
lea eax, [esp + 0x464]
push 0x823
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x10
lea ecx, [esp + 0x10]
lea edx, [esp + 0x45c]
push ecx
push 0
push edx
call ebx
add esp, 4
push eax
lea eax, [esp + 0x468]
push eax
call ebp
test eax, eax
je 0x443169
mov edx, dword [esp + 0x14b0]
mov esi, dword [esp + 0x14ac]
xor eax, eax
mov edi, esi
lea ecx, [edx + edx]
mov ebx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, ebx
and ecx, 3
dec edx
rep stosb byte es:[edi], al
lea ecx, [esp + 0x4c]
lea eax, [esp + 0x254]
push ecx
push eax
push str._s:___s_favicon.ico
push edx
push esi
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x14
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1494
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1494
ret

Function at 0x443600
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0xc
push esi
mov esi, dword [esp + 0x18]
lea eax, [esp + 8]
push edi
mov edi, dword [esp + 0x18]
lea ecx, [esp + 8]
push eax
lea edx, [esp + 0x14]
push ecx
push edx
push esi
push edi
push SysReAllocString
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 4
mov dword [esp + 0x28], 4
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x443651
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0x20]
cmp ecx, edx
je 0x443667
lea edx, [esp + 0x20]
push 4
push edx
push 4
push esi
push edi
push SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
pop edi
pop esi
add esp, 0xc
ret
Function at 0x4436e0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x40
lea eax, [esp + 0xc]
push esi
lea ecx, [esp + 0x14]
push eax
xor esi, esi
push ecx
push 1
lea edx, [esp + 0x30]
push esi
push edx
mov dword [esp + 0x24], esi
mov dword [esp + 0x38], 0xbcde0395
mov word [esp + 0x3c], 0xe52f
mov word [esp + 0x3e], 0x467c
mov byte [esp + 0x40], 0x8e
mov byte [esp + 0x41], 0x3d
mov byte [esp + 0x42], 0xc4
mov byte [esp + 0x43], 0x57
mov byte [esp + 0x44], 0x92
mov byte [esp + 0x45], 0x91
mov byte [esp + 0x46], 0x69
mov byte [esp + 0x47], 0x2e
mov dword [esp + 0x28], 0xa95664d2
mov word [esp + 0x2c], 0x9614
mov word [esp + 0x2e], 0x4f35
mov byte [esp + 0x30], 0xa7
mov byte [esp + 0x31], 0x46
mov byte [esp + 0x32], 0xde
mov byte [esp + 0x33], 0x8d
mov byte [esp + 0x34], 0xb6
mov byte [esp + 0x35], 0x36
mov byte [esp + 0x36], 0x17
mov byte [esp + 0x37], 0xe6
mov dword [esp + 0x48], 0xbfa971f1
mov word [esp + 0x4c], 0x4d5e
mov word [esp + 0x4e], 0x40bb
mov byte [esp + 0x50], 0x93
mov byte [esp + 0x51], 0x5e
mov byte [esp + 0x52], 0x96
mov byte [esp + 0x53], 0x70
mov byte [esp + 0x54], 0x39
mov byte [esp + 0x55], 0xbf
mov byte [esp + 0x56], 0xbe
mov byte [esp + 0x57], 0xe4
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x44386d
mov eax, dword [esp + 0x10]
cmp eax, esi
je 0x44386d
lea edx, [esp + 0xc]
mov dword [esp + 0xc], esi
mov ecx, dword [eax]
push edx
push 1
push esi
push eax
call dword [ecx + 0x10]
test eax, eax
jl 0x443863
mov eax, dword [esp + 0xc]
cmp eax, esi
je 0x443863
lea edx, [esp + 8]
mov dword [esp + 8], esi
mov ecx, dword [eax]
push edx
push esi
lea edx, [esp + 0x3c]
push 1
push edx
push eax
call dword [ecx + 0xc]
test eax, eax
jl 0x443859
mov eax, dword [esp + 8]
cmp eax, esi
je 0x443859
lea edx, [esp + 4]
mov dword [esp + 4], esi
mov ecx, dword [eax]
push edx
push esi
push 0x5dacb8
push eax
call dword [ecx + 0x10]
test eax, eax
jl 0x44384f
mov eax, dword [esp + 4]
cmp eax, esi
je 0x44384f
mov edx, dword [esp + 0x48]
mov ecx, dword [eax]
push esi
push edx
push eax
call dword [ecx + 0x14]
mov esi, eax
mov eax, dword [esp + 4]
neg esi
mov ecx, dword [eax]
push eax
sbb esi, esi
inc esi
call dword [ecx + 8]
mov eax, dword [esp + 8]
push eax
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [esp + 0xc]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [esp + 0x10]
push eax
mov edx, dword [eax]
call dword [edx + 8]
mov eax, esi
pop esi
add esp, 0x40
ret
Function at 0x443880
Capabilities:
Create process on windows
Get common file path
Get program files directory
Initialize iwebbrowser2
Query or enumerate registry value

Disassembly:
sub esp, 0x440
push ebx
push ebp
mov ebp, dword [sym.imp.MSVCRT.dll_wcslen]
push esi
mov esi, dword [esp + 0x450]
push esi
call ebp
add esp, 4
test eax, eax
jne 0x4438aa
pop esi
pop ebp
pop ebx
add esp, 0x440
ret
push edi
xor ebx, ebx
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x42]
mov word [esp + 0x40], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x24a]
mov word [esp + 0x248], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push ebx
lea eax, [esp + 0x24c]
push 0x26
push eax
push ebx
mov dword [esp + 0x28], 1
mov dword [esp + 0x2c], 0x208
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea ecx, [esp + 0x248]
lea edx, [esp + 0x40]
push ecx
push str._sInternet_Exploreriexplore.exe
push 0x103
push edx
call dword [sym.imp.MSVCRT.dll__snwprintf]
lea eax, [esp + 0x50]
push ebx
push eax
call fcn.00433030
add esp, 0x18
test eax, eax
pop edi
jne 0x443968
lea ecx, [esp + 0x18]
lea edx, [esp + 0x3c]
push ecx
lea eax, [esp + 0x18]
push edx
push eax
push 0x503fd0
push str.SoftwareMicrosoftWindowsCurrentVersionApp_PathsIEXPLORE.EXE
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
lea ecx, [esp + 0x3c]
push ebx
push ecx
call fcn.00433030
add esp, 8
test eax, eax
jne 0x443968
mov word [esp + 0x3c], bx
lea edx, [esp + 0x3c]
push edx
call ebp
add esp, 4
test eax, eax
jbe 0x4439a0
push 0xa
push ebx
lea eax, [esp + 0x44]
push esi
push eax
push str.open
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x440
ret
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], ebx
push ecx
push 0x4dadf0
push 0x15
push ebx
push 0x4dadc0
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jge 0x4439cc
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x440
ret
mov eax, dword [esp + 0xc]
cmp eax, ebx
je 0x443a52
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], ebx
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 0x94]
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x443a02
push eax
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov edx, dword [esp + 0x10]
push 1
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
lea edx, [esp + 0x1c]
mov esi, eax
push edx
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x20]
mov word [esp + 0x20], bx
push edx
lea edx, [esp + 0x24]
push edx
lea edx, [esp + 0x28]
push edx
lea edx, [esp + 0x3c]
mov word [esp + 0x3c], 8
mov dword [esp + 0x44], esi
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0xd0]
mov eax, dword [esp + 0xc]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
push esi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x440
ret
Function at 0x443a70
Capabilities:
Get file version info

Disassembly:
sub esp, 8
push edi
mov edi, dword [esp + 0x10]
lea eax, [esp + 4]
push eax
push edi
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
mov dword [esp + 0x10], eax
jne 0x443a93
xor ax, ax
pop edi
add esp, 8
ret
push ebx
push esi
push eax
xor ebx, ebx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
add esp, 4
mov esi, eax
push esi
push ecx
push edx
push edi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x443ad7
lea eax, [esp + 0x18]
lea ecx, [esp + 0x10]
push eax
push ecx
push str.VarFileInfoTranslation
push esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x443ad7
mov edx, dword [esp + 0x10]
mov bx, word [edx]
push esi
call fcn.004d0de9
add esp, 4
mov ax, bx
pop esi
pop ebx
pop edi
add esp, 8
ret
Function at 0x443af0
Capabilities:
Delete registry value
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x214
push esi
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x16]
mov word [esp + 0x14], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
lea edx, [esp + 0xc]
push ecx
push edx
push str.Disable_Script_Debugger
push str.SoftwareMicrosoftInternet_ExplorerMain
push SysReAllocString
mov dword [esp + 0x20], 1
mov dword [esp + 0x28], 0x208
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
mov esi, dword [sym.imp.SHLWAPI.dll_SHSetValueW]
test eax, eax
jne 0x443b7d
lea eax, [esp + 0x14]
push 0x4f6c18
push eax
call dword [sym.imp.MSVCRT.dll_wcscmp]
add esp, 8
test eax, eax
je 0x443b7d
push 8
push 0x4f6c18
push 1
push str.Disable_Script_Debugger
push str.SoftwareMicrosoftInternet_ExplorerMain
push SysReAllocString
call esi
mov ecx, dword [0x5de624]
mov edx, dword [0x5de628]
test ecx, ecx
jne 0x443b95
test edx, edx
je 0x443c53
mov eax, dword [0x5e5560]
mov dword [esp + 0xc], 0
test eax, eax
je 0x443bd4
test ecx, ecx
mov eax, 0x1f40
je 0x443bb6
mov eax, 0x22b8
jmp 0x443bbf
test edx, edx
je 0x443bbf
mov eax, 0x2328
push eax
push 0x504454
push str.SoftwareMicrosoftInternet_ExplorerMainFeatureControlFEATURE_BROWSER_EMULATION
call fcn.00443600
add esp, 0xc
jmp 0x443c03
push 0x504454
push str.SoftwareMicrosoftInternet_ExplorerMainFeatureControlFEATURE_BROWSER_EMULATION
push SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHDeleteValueW]
lea ecx, [esp + 0xc]
push 4
push ecx
push 4
push str.160A
push str.SoftwareMicrosoftWindowsCurrentVersionInternet_SettingsZones3
push SysReAllocString
call esi
mov eax, dword [0x5de628]
test eax, eax
je 0x443c53
push 0
push 0x504454
push str.SoftwareMicrosoftInternet_ExplorerMainFeatureControlFEATURE_USE_LEGACY_JSCRIPT
call fcn.00443600
push 0
push 0x504454
push str.SoftwareMicrosoftInternet_ExplorerMainFeatureControlFEATURE_LAYOUT9_QUIRKS_EMULATION
call fcn.00443600
push 0
push 0x504454
push str.SoftwareMicrosoftInternet_ExplorerMainFeatureControlFEATURE_USE_WEBOC_OMNAVIGATOR_IMPLEMENTATION
call fcn.00443600
push 0
push 0x504454
push str.SoftwareMicrosoftInternet_ExplorerMainFeatureControlFeature_Enable_Compat_Logging
call fcn.00443600
add esp, 0x30
mov eax, dword [0x5de620]
pop edi
test eax, eax
pop esi
jne 0x443c72
push 1
push 0x504454
push str.SoftwareMicrosoftInternet_ExplorerMainFeatureControlFEATURE_SCRIPTURL_MITIGATION
call fcn.00443600
add esp, 0xc
mov eax, dword [0x5de610]
test eax, eax
je 0x443c8f
push 0
push 0x504454
push str.SoftwareMicrosoftInternet_ExplorerMainFeatureControlFEATURE_INTERNET_SHELL_FOLDERS
call fcn.00443600
add esp, 0xc
push 0
push 0x504454
push str.SoftwareMicrosoftInternet_ExplorerMainFeatureControlFEATURE_BLOCK_LMZ_SCRIPT
call fcn.00443600
add esp, 0x220
ret
Function at 0x443cb0
Capabilities:
Create shortcut via ishelllink

Disassembly:
sub esp, 8
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x4dad50
push 1
push 0
push 0x4dad80
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x443d4a
mov ecx, dword [esp]
test ecx, ecx
je 0x443d4a
mov eax, dword [esp + 0x10]
push esi
mov dword [esp + 8], 0
mov edx, dword [ecx]
push eax
push ecx
call dword [edx + 0x50]
mov eax, dword [esp + 4]
mov edx, dword [esp + 0x18]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov eax, dword [esp + 4]
lea edx, [esp + 8]
push edx
push 0x4dae60
mov ecx, dword [eax]
push eax
call dword [ecx]
mov esi, eax
test esi, esi
jl 0x443d3d
mov eax, dword [esp + 8]
test eax, eax
je 0x443d3d
mov edx, dword [esp + 0x10]
mov ecx, dword [eax]
push 1
push edx
push eax
call dword [ecx + 0x18]
mov esi, eax
mov eax, dword [esp + 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [esp + 4]
push eax
mov edx, dword [eax]
call dword [edx + 8]
mov eax, esi
pop esi
add esp, 8
ret
Function at 0x443ff0
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
push ebp
push 0x4f6d14
push eax
call dword [sym.imp.MSVCRT.dll__wfopen]
mov ebp, eax
add esp, 8
test ebp, ebp
mov dword [esp + 8], ebp
je 0x4441aa
push ebx
push esi
push edi
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
push 2
push 0
push ebp
call edi
push ebp
call dword [sym.imp.MSVCRT.dll_ftell]
push 0
push 0
push ebp
mov esi, eax
call edi
lea ecx, [esi + 1]
push ecx
call dword [sym.imp.MSVCRT.dll_malloc]
push ebp
mov ebx, eax
push 1
push esi
push ebx
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x30
mov byte [ebx + esi], 0
test ebx, ebx
je 0x44405f
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
jmp 0x444061
xor esi, esi
mov ebp, dword [esp + 0x18]
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
mov eax, dword [ebp]
mov edx, dword [eax - 0xc]
lea ecx, [eax - 0xc]
cmp edx, 1
jg 0x44407e
cmp esi, dword [eax - 4]
jle 0x4440e6
mov edx, dword [0x4e80f0]
add eax, 0xfffffff4
cmp eax, edx
je 0x4440a9
push ecx
call edi
test eax, eax
jg 0x4440a1
mov edx, dword [ebp]
sub edx, 0xc
push edx
call fcn.004d0de9
add esp, 4
mov eax, dword [0x4e8e78]
mov dword [ebp], eax
test esi, esi
jne 0x4440b8
mov ecx, dword [0x4e8e78]
mov dword [ebp], ecx
jmp 0x4440e6
lea edx, [esi + esi + 0xe]
push edx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
test eax, eax
je 0x44418b
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 [ebp], eax
lea eax, [esi + 1]
mov esi, dword [ebp]
test eax, eax
jne 0x4440f4
test esi, esi
jne 0x44410e
push eax
push esi
push 0xffffffffffffffff
push ebx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jle 0x44410e
mov word [esi + eax*2 - 2], 0
mov eax, dword [ebp]
mov ecx, dword [eax - 0xc]
lea esi, [eax - 0xc]
cmp ecx, 1
jle 0x444172
mov ecx, dword [0x4e80f0]
add eax, 0xfffffff4
cmp eax, ecx
je 0x444148
push esi
call edi
test eax, eax
jg 0x44413f
mov eax, dword [ebp]
sub eax, 0xc
push eax
call fcn.004d0de9
add esp, 4
mov ecx, dword [0x4e8e78]
mov dword [ebp], ecx
mov edx, dword [esi + 4]
mov ecx, ebp
push edx
call fcn.00408d20
test eax, eax
je 0x444172
mov eax, dword [esi + 4]
mov edi, dword [ebp]
add esi, 0xc
lea ecx, [eax + eax + 2]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp]
mov dword [ecx - 8], eax
mov edx, dword [ebp]
mov word [edx + eax*2], 0
push ebx
call dword [sym.imp.MSVCRT.dll_free]
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebx
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x4443d0
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 0x4e923c
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 0x444434
lea eax, [esp + 8]
push 0x4e980c
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 0x444451
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 0x4444a7
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 0x4444a7
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 0x4444e9
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 0x4444e9
mov esi, 1
mov eax, esi
pop edi
pop esi
add esp, 0x410
ret

Function at 0x444500
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 0x444547
push 0x4f6d1c
push esi
call dword [sym.imp.MSVCRT.dll__wfopen]
mov esi, eax
add esp, 8
test esi, esi
mov dword [esp + 8], 0xfeff
je 0x444547
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 0x4447d0
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x20
test eax, eax
push ebx
push ebp
push esi
push edi
mov esi, ecx
jne 0x4447ee
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x20
ret 4
lea edi, [esi + 0x218]
xor ebp, ebp
mov eax, dword [edi + 8]
test eax, eax
je 0x444825
mov ecx, dword [edi + 0xc]
sub ecx, eax
sar ecx, 2
cmp ebp, ecx
jae 0x444825
mov edx, eax
mov ebx, dword [edx + ebp*4]
test ebx, ebx
je 0x444822
mov ecx, ebx
call fcn.00444a00
push ebx
call fcn.004d0de9
add esp, 4
inc ebp
jmp 0x4447f6
mov edx, dword [edi + 0xc]
mov ecx, dword [edi + 8]
mov eax, edx
cmp eax, edx
je 0x44483f
mov ebx, dword [eax]
add eax, 4
mov dword [ecx], ebx
add ecx, 4
cmp eax, edx
jne 0x444831
mov eax, dword [edi + 0xc]
mov dword [edi + 0xc], ecx
mov dword [esp + 0x18], eax
mov eax, dword [esi + 0x23c]
test eax, eax
je 0x444867
push eax
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
mov dword [esi + 0x23c], 0
mov ebx, dword [esp + 0x34]
lea ecx, [esi + 0x10]
push ebx
push 0x4e923c
push 0x103
push ecx
call dword [sym.imp.MSVCRT.dll__snwprintf]
push 0x4f6d30
push ebx
call dword [sym.imp.MSVCRT.dll__wfopen]
add esp, 0x18
mov dword [esi + 0x23c], eax
test eax, eax
jne 0x4448a6
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x20
ret 4
xor edx, edx
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
mov dword [esp + 0x1e], edx
push eax
mov dword [esp + 0x26], edx
push 0xa
mov dword [esp + 0x2e], edx
lea eax, [esp + 0x24]
mov dword [esp + 0x32], edx
push 2
push eax
mov word [esp + 0x2c], 0
mov word [esp + 0x3e], dx
call ebx
add esp, 0x10
cmp eax, 0xa
jne 0x4449c8
lea ecx, [esp + 0x1c]
push str.TWHIS
push ecx
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
jne 0x4449c8
mov edx, dword [esi + 0x23c]
lea eax, [esp + 0x10]
push edx
push 1
push 4
push eax
call ebx
add esp, 0x10
cmp eax, 1
jne 0x4449c8
mov eax, dword [esp + 0x10]
mov ebp, 0x3e8
cmp eax, ebp
jne 0x4449c8
mov ecx, dword [esi + 0x23c]
lea edx, [esp + 0x14]
push ecx
push 1
push 4
push edx
call ebx
add esp, 0x10
cmp eax, 1
jne 0x4449c8
cmp dword [esp + 0x14], ebp
jne 0x4449c8
mov eax, dword [esi + 0x23c]
lea ecx, [esi + 0xc]
push eax
push 1
push 4
push ecx
call ebx
add esp, 0x10
cmp eax, 1
jne 0x4449c8
mov edx, dword [esi + 0x23c]
lea ebp, [esi + 8]
push edx
push eax
push 4
push ebp
call ebx
add esp, 0x10
cmp eax, 1
jne 0x4449c8
mov eax, dword [ebp]
test eax, eax
jle 0x4449c8
lea eax, [eax + eax*2]
shl eax, 2
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esi + 4], eax
test eax, eax
je 0x4449c8
mov ecx, dword [esi + 0x23c]
mov edx, dword [ebp]
push ecx
push edx
push 0xc
push eax
call ebx
mov ecx, dword [ebp]
add esp, 0x10
cmp eax, ecx
je 0x4449d5
mov eax, dword [esi + 4]
push eax
call fcn.004d0de9
add esp, 4
mov dword [esi + 4], 0
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x20
ret 4
mov ecx, esi
call fcn.00444760
push edi
push eax
mov ecx, esi
call fcn.00444c50
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x20
ret 4