joyce8/EMBER2024-capa huggingface dataset:
Function at 0x442560
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 0x44258a
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.00432f10
add esp, 0x18
test eax, eax
pop edi
jne 0x442648
lea ecx, [esp + 0x18]
lea edx, [esp + 0x3c]
push ecx
lea eax, [esp + 0x18]
push edx
push eax
push 0x505000
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.00432f10
add esp, 8
test eax, eax
jne 0x442648
mov word [esp + 0x3c], bx
lea edx, [esp + 0x3c]
push edx
call ebp
add esp, 4
test eax, eax
jbe 0x442680
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 0x4da890
push 0x15
push ebx
push 0x4da860
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jge 0x4426ac
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x440
ret
mov eax, dword [esp + 0xc]
cmp eax, ebx
je 0x442732
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 0x4426e2
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 0x442750
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 0x442773
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 0x4427b7
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 0x4427b7
mov edx, dword [esp + 0x10]
mov bx, word [edx]
push esi
call fcn.004d0379
add esp, 4
mov ax, bx
pop esi
pop ebx
pop edi
add esp, 8
ret
Function at 0x4427d0
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 0x44285d
lea eax, [esp + 0x14]
push 0x4f6898
push eax
call dword [sym.imp.MSVCRT.dll_wcscmp]
add esp, 8
test eax, eax
je 0x44285d
push 8
push 0x4f6898
push 1
push str.Disable_Script_Debugger
push str.SoftwareMicrosoftInternet_ExplorerMain
push SysReAllocString
call esi
mov ecx, dword [0x5dc184]
mov edx, dword [0x5dc188]
test ecx, ecx
jne 0x442875
test edx, edx
je 0x442933
mov eax, dword [0x5e3560]
mov dword [esp + 0xc], 0
test eax, eax
je 0x4428b4
test ecx, ecx
mov eax, 0x1f40
je 0x442896
mov eax, 0x22b8
jmp 0x44289f
test edx, edx
je 0x44289f
mov eax, 0x2328
push eax
push 0x505484
push str.SoftwareMicrosoftInternet_ExplorerMainFeatureControlFEATURE_BROWSER_EMULATION
call fcn.004422e0
add esp, 0xc
jmp 0x4428e3
push 0x505484
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 [0x5dc188]
test eax, eax
je 0x442933
push 0
push 0x505484
push str.SoftwareMicrosoftInternet_ExplorerMainFeatureControlFEATURE_USE_LEGACY_JSCRIPT
call fcn.004422e0
push 0
push 0x505484
push str.SoftwareMicrosoftInternet_ExplorerMainFeatureControlFEATURE_LAYOUT9_QUIRKS_EMULATION
call fcn.004422e0
push 0
push 0x505484
push str.SoftwareMicrosoftInternet_ExplorerMainFeatureControlFEATURE_USE_WEBOC_OMNAVIGATOR_IMPLEMENTATION
call fcn.004422e0
push 0
push 0x505484
push str.SoftwareMicrosoftInternet_ExplorerMainFeatureControlFeature_Enable_Compat_Logging
call fcn.004422e0
add esp, 0x30
mov eax, dword [0x5dc180]
pop edi
test eax, eax
pop esi
jne 0x442952
push 1
push 0x505484
push str.SoftwareMicrosoftInternet_ExplorerMainFeatureControlFEATURE_SCRIPTURL_MITIGATION
call fcn.004422e0
add esp, 0xc
mov eax, dword [0x5dc170]
test eax, eax
je 0x44296f
push 0
push 0x505484
push str.SoftwareMicrosoftInternet_ExplorerMainFeatureControlFEATURE_INTERNET_SHELL_FOLDERS
call fcn.004422e0
add esp, 0xc
push 0
push 0x505484
push str.SoftwareMicrosoftInternet_ExplorerMainFeatureControlFEATURE_BLOCK_LMZ_SCRIPT
call fcn.004422e0
add esp, 0x220
ret
Function at 0x442990
Capabilities:
Create shortcut via ishelllink

Disassembly:
sub esp, 8
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x4da7f0
push 1
push 0
push 0x4da820
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x442a2a
mov ecx, dword [esp]
test ecx, ecx
je 0x442a2a
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 0x4da900
mov ecx, dword [eax]
push eax
call dword [ecx]
mov esi, eax
test esi, esi
jl 0x442a1d
mov eax, dword [esp + 8]
test eax, eax
je 0x442a1d
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 0x442cd0
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
push ebp
push 0x4f59f0
push eax
call dword [sym.imp.MSVCRT.dll__wfopen]
mov ebp, eax
add esp, 8
test ebp, ebp
mov dword [esp + 8], ebp
je 0x442e8a
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 0x442d3f
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
jmp 0x442d41
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 0x442d5e
cmp esi, dword [eax - 4]
jle 0x442dc6
mov edx, dword [0x4e80f0]
add eax, 0xfffffff4
cmp eax, edx
je 0x442d89
push ecx
call edi
test eax, eax
jg 0x442d81
mov edx, dword [ebp]
sub edx, 0xc
push edx
call fcn.004d0379
add esp, 4
mov eax, dword [0x4e8e98]
mov dword [ebp], eax
test esi, esi
jne 0x442d98
mov ecx, dword [0x4e8e98]
mov dword [ebp], ecx
jmp 0x442dc6
lea edx, [esi + esi + 0xe]
push edx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
test eax, eax
je 0x442e6b
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 0x442dd4
test esi, esi
jne 0x442dee
push eax
push esi
push 0xffffffffffffffff
push ebx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jle 0x442dee
mov word [esi + eax*2 - 2], 0
mov eax, dword [ebp]
mov ecx, dword [eax - 0xc]
lea esi, [eax - 0xc]
cmp ecx, 1
jle 0x442e52
mov ecx, dword [0x4e80f0]
add eax, 0xfffffff4
cmp eax, ecx
je 0x442e28
push esi
call edi
test eax, eax
jg 0x442e1f
mov eax, dword [ebp]
sub eax, 0xc
push eax
call fcn.004d0379
add esp, 4
mov ecx, dword [0x4e8e98]
mov dword [ebp], ecx
mov edx, dword [esi + 4]
mov ecx, ebp
push edx
call fcn.00408d60
test eax, eax
je 0x442e52
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 0x443050
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 0x4e925c
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 0x4430b4
lea eax, [esp + 8]
push 0x4e9830
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 0x4430d1
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 0x443127
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 0x443127
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 0x443169
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 0x443169
mov esi, 1
mov eax, esi
pop edi
pop esi
add esp, 0x410
ret

Function at 0x443180
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 0x4431c7
push 0x4f5a10
push esi
call dword [sym.imp.MSVCRT.dll__wfopen]
mov esi, eax
add esp, 8
test esi, esi
mov dword [esp + 8], 0xfeff
je 0x4431c7
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 0x4431d0
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 0x4431e7
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 0x4431fe
pop esi
xor eax, eax
pop ebx
add esp, 0x10
ret
xor eax, eax
push edi
mov dword [esp + 0xd], eax
push 0x4f59f0
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 0x443249
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 0x4f6994
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
pop edi
jne 0x443269
push esi
call fcn.00488360
add esp, 4
mov ebx, eax
mov eax, ebx
pop esi
pop ebx
add esp, 0x10
ret
Function at 0x4434d0
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 0x4434ee
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 0x443525
mov ecx, dword [edi + 0xc]
sub ecx, eax
sar ecx, 2
cmp ebp, ecx
jae 0x443525
mov edx, eax
mov ebx, dword [edx + ebp*4]
test ebx, ebx
je 0x443522
mov ecx, ebx
call fcn.00443700
push ebx
call fcn.004d0379
add esp, 4
inc ebp
jmp 0x4434f6
mov edx, dword [edi + 0xc]
mov ecx, dword [edi + 8]
mov eax, edx
cmp eax, edx
je 0x44353f
mov ebx, dword [eax]
add eax, 4
mov dword [ecx], ebx
add ecx, 4
cmp eax, edx
jne 0x443531
mov eax, dword [edi + 0xc]
mov dword [edi + 0xc], ecx
mov dword [esp + 0x18], eax
mov eax, dword [esi + 0x23c]
test eax, eax
je 0x443567
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 0x4e925c
push 0x103
push ecx
call dword [sym.imp.MSVCRT.dll__snwprintf]
push 0x4f69a4
push ebx
call dword [sym.imp.MSVCRT.dll__wfopen]
add esp, 0x18
mov dword [esi + 0x23c], eax
test eax, eax
jne 0x4435a6
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 0x4436c8
lea ecx, [esp + 0x1c]
push str.TWHIS
push ecx
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
jne 0x4436c8
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 0x4436c8
mov eax, dword [esp + 0x10]
mov ebp, 0x3e8
cmp eax, ebp
jne 0x4436c8
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 0x4436c8
cmp dword [esp + 0x14], ebp
jne 0x4436c8
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 0x4436c8
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 0x4436c8
mov eax, dword [ebp]
test eax, eax
jle 0x4436c8
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 0x4436c8
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 0x4436d5
mov eax, dword [esi + 4]
push eax
call fcn.004d0379
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.00443460
push edi
push eax
mov ecx, esi
call fcn.00443950
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x20
ret 4
Function at 0x443710
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov eax, 0x178c
call fcn.004d03a0
push ebx
push ebp
push esi
mov esi, ecx
xor ebx, ebx
push edi
cmp dword [esi + 8], ebx
je 0x4437d1
mov eax, dword [esi + 0x23c]
mov ebp, dword [sym.imp.MSVCRT.dll_fseek]
cmp eax, ebx
jne 0x44374f
lea eax, [esi + 0x10]
push 0x4f69ac
push eax
call dword [sym.imp.MSVCRT.dll__wfopen]
add esp, 8
jmp 0x4437c7
push ebx
push ebx
push eax
call ebp
mov edx, dword [esi + 0x23c]
xor ecx, ecx
mov dword [esp + 0x26], ecx
push edx
mov dword [esp + 0x2e], ecx
push 0xa
mov dword [esp + 0x36], ecx
lea eax, [esp + 0x2c]
mov dword [esp + 0x3a], ecx
push 2
push eax
mov word [esp + 0x34], bx
mov word [esp + 0x46], cx
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x1c
cmp eax, 0xa
jne 0x4437a2
lea eax, [esp + 0x18]
push str.TWHIS
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
je 0x4437df
mov ecx, dword [esi + 0x23c]
push ecx
call dword [sym.imp.MSVCRT.dll_fclose]
lea edx, [esi + 0x10]
push 0x4f69ac
push edx
mov dword [esi + 0x23c], ebx
call dword [sym.imp.MSVCRT.dll__wfopen]
add esp, 0xc
cmp eax, ebx
mov dword [esi + 0x23c], eax
jne 0x4437df
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x178c
ret
mov ecx, 0x1f3
xor eax, eax
lea edi, [esp + 0x2d]
mov byte [esp + 0x2c], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x3e7
xor eax, eax
lea edi, [esp + 0x7fe]
mov word [esp + 0x7fc], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [esi + 0x23c]
push ebx
push ebx
push eax
call ebp
mov ecx, dword [esi + 0x23c]
mov edi, dword [sym.imp.MSVCRT.dll_fwrite]
push ecx
push 0x7d0
lea edx, [esp + 0x40]
push 1
push edx
call edi
add esp, 0x1c
cmp eax, 0x7d0
jne 0x443918
mov eax, dword [esi + 0x23c]
push ebx
push ebx
push eax
call ebp
add esp, 0xc
lea ecx, [esp + 0x7fc]
mov eax, 0x3e8
push str.TWHIS
push 0x4e925c
push 9
push ecx
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
mov edx, dword [esi + 0x23c]
lea eax, [esp + 0x80c]
push edx
push 0xa
push 2
push eax
call edi
add esp, 0x20
cmp eax, 0xa
jne 0x443918
mov ecx, dword [esi + 0x23c]
lea edx, [esp + 0x10]
push ecx
push 1
push 4
push edx
call edi
add esp, 0x10
cmp eax, 1
jne 0x443918
mov eax, dword [esi + 0x23c]
lea ecx, [esp + 0x14]
push eax
push 1
push 4
push ecx
call edi
add esp, 0x10
cmp eax, 1
jne 0x443918
mov edx, dword [esi + 0x23c]
push edx
push eax
lea eax, [esi + 0xc]
push 4
push eax
call edi
add esp, 0x10
cmp eax, 1
jne 0x443918
mov ecx, dword [esi + 0x23c]
lea ebp, [esi + 8]
push ecx
push eax
push 4
push ebp
call edi
add esp, 0x10
cmp eax, 1
jne 0x443918
mov edx, dword [esi + 0x23c]
mov eax, dword [ebp]
mov ecx, dword [esi + 4]
push edx
push eax
push 0xc
push ecx
call edi
mov ecx, dword [ebp]
add esp, 0x10
cmp eax, ecx
je 0x44393c
mov edx, dword [esi + 0x23c]
push edx
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
mov dword [esi + 0x23c], ebx
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x178c
ret
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x178c
ret
Function at 0x443c80
Capabilities:
Read file on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4d4088
push eax
mov dword fs:[0], esp
sub esp, 0xc
mov eax, dword [esp + 0x20]
push ebx
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push ebp
push esi
mov esi, dword [esp + 0x30]
push edi
push esi
push 1
push 1
push eax
call ebx
mov ebp, dword [esp + 0x3c]
push esi
push 1
push 4
push ebp
call ebx
mov eax, dword [ebp]
add esp, 0x20
test eax, eax
jle 0x443deb
push esi
lea edi, [ebp + 4]
push 1
push 4
push edi
call ebx
mov eax, dword [edi]
add esp, 0x10
test eax, eax
jl 0x443deb
push esi
push 1
lea ecx, [ebp + 8]
push 4
push ecx
call ebx
push esi
push 1
lea edx, [ebp + 0xc]
push 4
push edx
call ebx
push esi
push 1
lea eax, [ebp + 0x10]
push 4
push eax
call ebx
push esi
push 1
lea ecx, [esp + 0x6c]
push 4
push ecx
mov dword [esp + 0x74], 0
call ebx
mov eax, dword [esp + 0x74]
add esp, 0x40
test eax, eax
jle 0x443deb
cmp eax, 0x1048
jae 0x443deb
lea edx, [ebp + 0x14]
mov ecx, 0x82
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x34]
push esi
push eax
push 2
push edx
call ebx
push esi
push 1
lea ecx, [esp + 0x4c]
push 4
push ecx
mov dword [esp + 0x54], 0
call ebx
mov eax, dword [esp + 0x54]
add esp, 0x20
test eax, eax
jle 0x443de4
inc eax
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov edi, eax
add esp, 4
test edi, edi
mov dword [esp + 0x30], edi
je 0x443de4
mov edx, dword [esp + 0x34]
xor eax, eax
push esi
mov esi, dword [esp + 0x34]
lea ecx, [edx + 1]
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 eax, dword [esp + 0x38]
push eax
push 1
push esi
call ebx
add esp, 0x10
lea ecx, [esp + 0x10]
push esi
call fcn.00419640
lea ecx, [esp + 0x10]
mov dword [esp + 0x24], 0
push ecx
lea ecx, [ebp + 0x21c]
call fcn.00419760
lea ecx, [esp + 0x10]
mov dword [esp + 0x24], 0xffffffff
call fcn.00419620
push esi
call fcn.004d0379
add esp, 4
mov eax, 1
jmp 0x443dee
or eax, 0xffffffff
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret 0xc
Function at 0x4440d0
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
mov esi, ecx
test ebx, ebx
je 0x44423c
mov eax, dword [esi + 0x23c]
test eax, eax
je 0x44423c
push ebp
mov ebp, dword [sym.imp.MSVCRT.dll_fseek]
push edi
push 2
push 0
push eax
call ebp
mov eax, dword [esi + 0x23c]
mov edi, dword [sym.imp.MSVCRT.dll_ftell]
push eax
call edi
add esp, 0x10
cmp eax, 0x7d0
jge 0x44412a
mov ecx, dword [esi + 0x23c]
push 0
push 0x7d0
push ecx
call ebp
add esp, 0xc
mov edx, dword [esi + 0x23c]
push edx
call edi
mov eax, dword [esi + 0x23c]
mov edi, dword [sym.imp.MSVCRT.dll_fwrite]
push eax
push 1
lea ecx, [esp + 0x24]
push 1
push ecx
mov byte [esp + 0x2c], 0
call edi
mov edx, dword [esi + 0x23c]
push edx
push 1
push 4
push ebx
call edi
mov eax, dword [esi + 0x23c]
lea ecx, [ebx + 4]
push eax
push 1
push 4
push ecx
call edi
mov edx, dword [esi + 0x23c]
lea eax, [ebx + 8]
push edx
push 1
push 4
push eax
call edi
mov ecx, dword [esi + 0x23c]
add esp, 0x44
lea edx, [ebx + 0xc]
push ecx
push 1
push 4
push edx
call edi
mov eax, dword [esi + 0x23c]
lea ecx, [ebx + 0x10]
push eax
push 1
push 4
push ecx
call edi
lea ebp, [ebx + 0x14]
push ebp
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 0x24
cmp eax, 0x103
mov dword [esp + 0x10], eax
jbe 0x4441c5
mov dword [esp + 0x10], 0x103
mov edx, dword [esi + 0x23c]
lea eax, [esp + 0x10]
push edx
push 1
push 4
push eax
call edi
mov ecx, dword [esi + 0x23c]
mov edx, dword [esp + 0x20]
push ecx
push edx
push 2
push ebp
call edi
add ebx, 0x21c
add esp, 0x20
mov ecx, ebx
call fcn.004197f0
inc eax
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0x23c]
push eax
push 1
push 4
push ecx
call edi
mov edx, dword [esi + 0x23c]
mov eax, dword [esp + 0x20]
add esp, 0x10
mov ecx, ebx
push edx
push eax
push 1
call fcn.00419810
push eax
call edi
mov ecx, dword [esi + 0x23c]
push ecx
call dword [sym.imp.MSVCRT.dll_fflush]
add esp, 0x14
pop edi
pop ebp
pop esi
pop ebx
pop ecx
ret 4