joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43c806
Capabilities:
Delete registry value
Persist via windows service
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x5382cc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor eax, eax
push 0x206
mov word [ebp - 0x20c], ax
xor edi, edi
lea eax, [ebp - 0x20a]
push edi
push eax
call fcn.004b4620
add esp, 0xc
mov dword [ebp - 0x224], 3
mov dword [ebp - 0x21c], edi
call fcn.0043bd64
test al, al
jne 0x43c85f
mov al, 1
jmp 0x43c94c
lea eax, [ebp - 0x20c]
push eax
push esi
call fcn.0043c577
pop ecx
pop ecx
test al, al
je 0x43c94a
push 1
lea eax, [ebp - 0x20c]
push str.DllRegisterServer
push eax
call fcn.0043c159
add esp, 0xc
test eax, eax
jne 0x43c94a
lea eax, [ebp - 0x220]
push eax
push 1
push edi
mov edi, str.SYSTEMCurrentControlSetServices360netmon
push edi
mov esi, 0x80000002
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x43c94a
push dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 4
lea eax, [ebp - 0x224]
push eax
push 4
push str.Start
push edi
push esi
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
test eax, eax
jne 0x43c94a
mov ebx, str.DeleteFlag
push ebx
push edi
push esi
call dword [sym.imp.SHLWAPI.dll_SHDeleteValueW]
test eax, eax
je 0x43c858
and dword [ebp - 0x210], 0
push 4
pop eax
mov dword [ebp - 0x218], eax
mov dword [ebp - 0x214], eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x214]
push eax
push ebx
push edi
push esi
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x43c94a
push 4
lea eax, [ebp - 0x21c]
push eax
push 4
push ebx
push edi
push esi
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
neg eax
sbb al, al
inc al
jmp 0x43c94c
xor al, al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004b46ff
leave
ret
Function at 0x43e5cf
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3a8
mov eax, dword [0x5382cc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x3a8], eax
xor eax, eax
push 0x18e
push eax
mov word [ebp - 0x3a4], ax
lea eax, [ebp - 0x3a2]
push eax
call fcn.004b4620
add esp, 0xc
lea eax, [ebp - 0x3a4]
push eax
push 0xc7
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
je 0x43e6c4
push esi
push edi
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x214], ax
lea eax, [ebp - 0x212]
push eax
call fcn.004b4620
mov esi, 0x4f9544
lea edi, [ebp - 0xc]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
add esp, 0xc
lea edi, [ebp - 0x3a4]
mov ax, word [edi]
mov word [ebp - 0xc], ax
push 0x104
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x43e6b1
lea eax, [ebp - 0x214]
push eax
call fcn.004b5d07
pop ecx
mov esi, eax
push 0x5c
pop eax
mov word [ebp + esi*2 - 0x214], ax
xor eax, eax
inc esi
mov word [ebp + esi*2 - 0x214], ax
push esi
lea eax, [ebp - 0x214]
push eax
push ebx
call dword [sym.imp.SHLWAPI.dll_StrCmpNIW]
test eax, eax
je 0x43e6d1
mov ax, word [edi]
inc edi
inc edi
test ax, ax
jne 0x43e6b1
cmp word [edi], ax
jne 0x43e658
xor eax, eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004b46ff
leave
ret
lea eax, [ebx + esi*2]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x4f9538
push dword [ebp + 0x10]
push dword [ebp - 0x3a8]
call fcn.0043e544
xor eax, eax
add esp, 0x14
inc eax
jmp 0x43e6c2
Function at 0x43e702
Capabilities:
Check if file exists
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x628
mov eax, dword [0x5382cc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x624], edi
mov dword [ebp - 0x628], ebx
mov dword [ebp - 0x620], eax
test edi, edi
je 0x43e8af
test ebx, ebx
je 0x43e8af
test eax, eax
je 0x43e8af
xor eax, eax
mov esi, 0x206
push esi
push eax
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push eax
call fcn.004b4620
xor eax, eax
push esi
push eax
mov word [ebp - 0x61c], ax
lea eax, [ebp - 0x61a]
push eax
call fcn.004b4620
xor eax, eax
push esi
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.004b4620
add esp, 0x24
mov esi, 0x104
push esi
lea eax, [ebp - 0x61c]
push eax
push str._appdata_
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp dword [ebp + 0x14], 2
push dword [ebp - 0x620]
lea eax, [ebp - 0x20c]
push ebx
push edi
jne 0x43e80b
push dword [0x5352b4]
push esi
push eax
call fcn.0043e544
add esp, 0x18
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x43e8af
mov al, 1
jmp 0x43e8b1
push dword [0x5352ac]
push esi
push eax
call fcn.0043e544
mov ebx, dword [sym.imp.SHLWAPI.dll_PathCombineW]
add esp, 0x18
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0x414]
push eax
call ebx
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x43e804
mov edi, 0x208
push edi
push eax
lea eax, [ebp - 0x414]
push eax
call fcn.004b4620
push edi
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.004b4620
push dword [ebp - 0x620]
lea eax, [ebp - 0x20c]
push dword [ebp - 0x628]
push dword [ebp - 0x624]
push dword [0x5352b0]
push esi
push eax
call fcn.0043e544
add esp, 0x30
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0x414]
push eax
call ebx
jmp 0x43e7ef
xor al, al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004b46ff
leave
ret

Function at 0x43e8fe
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 4]
lea ecx, [ebp - 4]
push ecx
mov ecx, dword [esi + 0xc]
or ecx, 1
push ecx
push 0
push eax
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x43e952
push dword [ebp + 0x14]
mov esi, dword [esi + 8]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
mov esi, eax
neg esi
sbb esi, esi
inc esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x43e954
xor eax, eax
pop esi
leave
ret
Function at 0x43e9c6
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 4]
push edi
xor edi, edi
push edi
lea ecx, [ebp - 4]
push ecx
mov ecx, dword [esi + 0xc]
push edi
or ecx, 0x20006
push ecx
push edi
push edi
push edi
push eax
push dword [esi]
mov dword [ebp - 4], edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x43ea22
push dword [ebp + 0x14]
mov esi, dword [esi + 8]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
mov esi, eax
neg esi
sbb esi, esi
inc esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x43ea24
xor eax, eax
pop edi
pop esi
leave
ret

Function at 0x43ea6a
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 4]
lea ecx, [ebp - 4]
push ecx
mov ecx, dword [esi + 0xc]
or ecx, 2
push ecx
push 0
push eax
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x43eab3
push dword [esi + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 4]
mov esi, eax
neg esi
sbb esi, esi
inc esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x43eab5
xor eax, eax
pop esi
leave
ret

Function at 0x43ecf9
Capabilities:
Check if file exists
Create process on windows

Disassembly:
push 0x84c
push 0x51ae20
call fcn.004b755c
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x820], eax
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp esi, ebx
je 0x43ee27
cmp word [esi], bx
je 0x43ee27
push esi
call fcn.004b5d07
pop ecx
cmp eax, 0x104
ja 0x43ee27
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x43ee27
xor eax, eax
mov word [ebp - 0x81c], ax
push 0x7fe
push ebx
lea eax, [ebp - 0x81a]
push eax
call fcn.004b4620
push esi
push str.__s_
push 0x3ff
lea eax, [ebp - 0x81c]
push eax
call fcn.0043e544
push 0x3c
pop esi
push esi
push ebx
lea eax, [ebp - 0x85c]
push eax
call fcn.004b4620
add esp, 0x28
mov dword [ebp - 0x85c], esi
lea eax, [ebp - 0x81c]
mov dword [ebp - 0x84c], eax
mov dword [ebp - 0x850], str.open
mov dword [ebp - 0x848], edi
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x840], eax
mov dword [ebp - 0x858], 0x440
lea eax, [ebp - 0x85c]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov esi, eax
cmp dword [ebp + 0x18], ebx
je 0x43edeb
push 0xffffffffffffffff
push dword [ebp - 0x824]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [ebp - 0x820], ebx
je 0x43ee05
push dword [ebp - 0x820]
push dword [ebp - 0x824]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
cmp esi, ebx
je 0x43ee15
push dword [ebp - 0x824]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
jmp 0x43ee30
mov dword [ebp - 4], 0xfffffffe
xor eax, eax
call fcn.004b75a4
ret
Function at 0x440d48
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x5382cc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
lea eax, [ebp - 0x90]
push eax
push esi
mov byte [ebp - 0x85], 0
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
test edi, edi
jne 0x440d85
xor al, al
jmp 0x440e42
push edi
call fcn.004b53ff
pop ecx
push eax
push edi
push 0
push esi
mov dword [ebp - 0x8c], eax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x440e30
lea eax, [ebp - 0x90]
push eax
lea eax, [ebp - 0x98]
push eax
push str.VarFileInfoTranslation
push dword [ebp - 0x8c]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x440e30
test ebx, ebx
je 0x440e30
mov eax, dword [ebp - 0x98]
movzx ecx, word [eax + 2]
movzx eax, word [eax]
push ecx
push eax
push 0x4f9768
lea eax, [ebp - 0x84]
push 0x80
push eax
call fcn.00411380
add esp, 0x14
lea eax, [ebp - 0x90]
push eax
lea eax, [ebp - 0x94]
push eax
lea eax, [ebp - 0x84]
push eax
push dword [ebp - 0x8c]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x440e30
push dword [ebp - 0x94]
push dword [ebp + 0x10]
push ebx
call fcn.0040b640
test eax, eax
jl 0x440e30
mov byte [ebp - 0x85], 1
push dword [ebp - 0x8c]
call fcn.004b5322
mov al, byte [ebp - 0x85]
pop ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004b46ff
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x5382cc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x214], eax
xor eax, eax
mov esi, 0x208
push esi
push eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push eax
call fcn.004b4620
mov eax, dword [edi]
add esp, 0xc
lea ecx, [ebp - 0x218]
push ecx
lea ecx, [ebp - 0x210]
push ecx
push 0
push 0
push eax
push dword [ebp - 0x214]
mov dword [ebp - 0x218], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
xor ecx, ecx
mov word [ebp - 8], cx
mov ecx, dword [ebx]
mov esi, dword [ecx - 0xc]
lea esi, [esi + esi + 2]
test eax, eax
jne 0x441108
push ecx
lea eax, [ebp - 0x210]
push eax
call fcn.004b55d7
pop ecx
pop ecx
test eax, eax
jne 0x441108
xor al, al
jmp 0x44111f
push esi
push dword [ebx]
push 1
push 0
push dword [edi]
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov al, 1
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004b46ff
leave
ret
Function at 0x442fd0
Capabilities:
Get common file path

Disassembly:
push 0x10
mov eax, 0x4dba40
call fcn.004b51ee
mov esi, ecx
xor ebx, ebx
cmp byte [esi + 0x418], bl
jne 0x443131
lea eax, [esi + 0x41c]
push eax
lea ecx, [ebp - 0x10]
call fcn.0043c97c
mov dword [ebp - 4], ebx
cmp byte [esi + 0x418], bl
jne 0x443124
push ebx
push 0x28
xor eax, eax
push esi
lea edi, [esi + 0x20c]
push ebx
mov dword [esi + 0x208], ebx
mov dword [esi + 0x414], ebx
mov word [esi], ax
mov word [edi], ax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x443047
push 0x4f9a74
push esi
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x4430cf
mov dword [ebp - 0x14], ebx
call fcn.0043a66f
test al, al
jne 0x443124
cmp dword [ebp + 8], ebx
je 0x443124
push dword [ebp + 8]
push ebx
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 4], 1
cmp dword [0x536040], eax
je 0x4430bf
cmp eax, ebx
je 0x4430bf
lea ecx, [ebp + 8]
push ecx
push 8
push eax
mov dword [ebp + 8], ebx
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x4430bf
lea eax, [ebp - 0x18]
push eax
push esi
push dword [ebp + 8]
mov dword [ebp - 0x18], 0x104
call dword [sym.imp.USERENV.dll_GetUserProfileDirectoryW]
test eax, eax
je 0x4430b6
mov dword [ebp - 0x14], 1
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x1c]
call fcn.0043f1fb
cmp dword [ebp - 0x14], ebx
je 0x443124
push esi
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push esi
call fcn.004b5d07
mov dword [esp], 0x104
push edi
push esi
mov dword [esi + 0x208], eax
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
cmp eax, ebx
je 0x4430fc
cmp eax, 0x104
jb 0x443101
xor eax, eax
mov word [edi], ax
push edi
push esi
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
jne 0x443110
mov word [edi], ax
push edi
call fcn.004b5d07
pop ecx
mov dword [esi + 0x414], eax
mov byte [esi + 0x418], 1
or dword [ebp - 4], 0xffffffff
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.004b52c6
ret 4
Function at 0x44593c
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x5382cc]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp byte [esi + 0x270], 0
jne 0x445b4a
call fcn.0043a311
xor eax, eax
push 0x40e
push eax
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push eax
call fcn.004b4620
add esp, 0xc
push str.360TSCommon.dll
lea eax, [esi + 4]
push eax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x414]
push eax
mov ecx, esi
call fcn.004448f1
test al, al
je 0x445b4a
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [esi], eax
test eax, eax
je 0x445b4a
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.OpenLinkLowPermission
push eax
call edi
push str.OpenBrowser
push dword [esi]
mov dword [esi + 0x20c], eax
call edi
push str.GetDeviceRegistration
push dword [esi]
mov dword [esi + 0x210], eax
call edi
push str.ShowPromotion
push dword [esi]
mov dword [esi + 0x214], eax
call edi
push str.GetThemeName
push dword [esi]
mov dword [esi + 0x218], eax
call edi
push str.ValidateTheme
push dword [esi]
mov dword [esi + 0x21c], eax
call edi
push str.OpenLinkByBrowserLowPermission
push dword [esi]
mov dword [esi + 0x220], eax
call edi
push str.IsOpera360e
push dword [esi]
mov dword [esi + 0x224], eax
call edi
push str.IsOpera360eByAppPath
push dword [esi]
mov dword [esi + 0x228], eax
call edi
push str.GetEdition
push dword [esi]
mov dword [esi + 0x22c], eax
call edi
push str.PromoOpera
push dword [esi]
mov dword [esi + 0x230], eax
call edi
push str.PromoBoottime
push dword [esi]
mov dword [esi + 0x234], eax
call edi
push str.PromoUpgradeNow
push dword [esi]
mov dword [esi + 0x238], eax
call edi
push str.PromoMedal
push dword [esi]
mov dword [esi + 0x23c], eax
call edi
push str.PromoPopup
push dword [esi]
mov dword [esi + 0x240], eax
call edi
push str.PromoReminder
push dword [esi]
mov dword [esi + 0x244], eax
call edi
push str.PromoNews
push dword [esi]
mov dword [esi + 0x248], eax
call edi
push str.PromoAutoPopup
push dword [esi]
mov dword [esi + 0x24c], eax
call edi
push str.PromoFullCheck
push dword [esi]
mov dword [esi + 0x250], eax
call edi
push str.PromoDesktopPlus
push dword [esi]
mov dword [esi + 0x254], eax
call edi
push str.GetMachineSpec
push dword [esi]
mov dword [esi + 0x258], eax
call edi
push str.UpdateTrialInfo
push dword [esi]
mov dword [esi + 0x25c], eax
call edi
push str.UpdateToolUsageCount
push dword [esi]
mov dword [esi + 0x260], eax
call edi
push str.GetToolUsageCount
push dword [esi]
mov dword [esi + 0x264], eax
call edi
push str.TriggerToolPromotion
push dword [esi]
mov dword [esi + 0x268], eax
call edi
mov dword [esi + 0x26c], eax
mov byte [esi + 0x270], 1
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004b46ff
leave
ret
Function at 0x446661
Capabilities:
Write file on windows

Disassembly:
push 0x48
mov eax, 0x4dbf9b
call fcn.004b5257
mov esi, ecx
xor edi, edi
cmp dword [esi + 0x3c], edi
je 0x446771
cmp byte [esi + 0x41], 0
je 0x446771
mov eax, dword [esi]
push 0xffffffffffffffff
call dword [eax + 4]
cmp eax, 0xffffffff
jne 0x446697
xor al, al
jmp 0x446773
push edi
push 8
lea ecx, [ebp - 0x2c]
call fcn.004464c2
mov dword [ebp - 4], edi
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp - 0x2c]
call fcn.0040c520
mov ecx, eax
call fcn.0043ef4a
mov edi, dword [ebp - 0x18]
mov ebx, eax
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x2c]
call fcn.0040c520
mov ecx, eax
call fcn.0043ef4a
mov ecx, dword [esi + 0x3c]
mov edx, dword [ecx]
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x30]
push eax
add edi, ebx
push edi
push dword [ebp - 0x34]
lea eax, [esi + 0x44]
push eax
call dword [edx + 0x18]
sub eax, 0
je 0x44670b
dec eax
je 0x44670f
dec eax
dec eax
je 0x44676d
xor bl, bl
or dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.0040d2f0
mov al, bl
jmp 0x446773
mov byte [esi + 0x41], 0
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x2c]
call fcn.0040c520
mov ecx, eax
call fcn.0043ef4a
mov edi, dword [ebp - 0x30]
sub edi, eax
je 0x44674f
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x2c]
call fcn.0040c520
mov ecx, eax
call fcn.0043ef4a
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.004b8bef
add esp, 0x10
cmp edi, eax
jne 0x4466f5
cmp byte [esi + 0x41], 0
je 0x44676d
test edi, edi
jne 0x4466a5
push edi
push 8
lea ecx, [ebp - 0x2c]
call fcn.00432b50
jmp 0x4466a5
mov bl, 1
jmp 0x4466f7
mov al, 1
call fcn.004b52da
ret
Function at 0x4471bf
Capabilities:
Query environment variable

Disassembly:
push 0x244
mov eax, 0x4dc13c
call fcn.004b5257
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x21c], ecx
mov dword [ebp - 0x22c], eax
mov dword [ebp - 0x228], 1
call fcn.00428e60
mov eax, dword [ebx]
xor esi, esi
cmp dword [eax - 0xc], esi
jle 0x4473dc
push esi
mov ecx, ebx
call fcn.0040c870
mov ecx, ebx
cmp ax, 0x25
jne 0x4473bb
lea edi, [esi + 1]
push edi
push 0x25
mov dword [ebp - 0x230], edi
call fcn.004420e7
mov ecx, ebx
test eax, eax
jge 0x447246
push esi
call fcn.0040c870
mov ecx, dword [ebp - 0x21c]
movzx eax, ax
push eax
call fcn.0044686a
mov esi, edi
jmp 0x4473d1
mov edi, eax
sub edi, esi
lea eax, [edi - 1]
push eax
push dword [ebp - 0x230]
lea eax, [ebp - 0x23c]
push eax
call fcn.00443d2a
and dword [ebp - 4], 0
mov ecx, eax
call fcn.00445121
push eax
lea ecx, [ebp - 0x220]
call fcn.004420c1
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x23c]
call fcn.0040d610
mov ecx, dword [ebp - 0x22c]
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x250]
push eax
call fcn.00444bf1
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 0x234], eax
mov eax, dword [ebp - 0x22c]
push eax
push dword [eax + 0x18]
mov dword [ebp - 0x238], ecx
lea ecx, [ebp - 0x248]
call fcn.004424c1
lea eax, [ebp - 0x248]
push eax
lea ecx, [ebp - 0x238]
call fcn.0043cc0e
test al, al
jne 0x447307
lea ecx, [ebp - 0x238]
call fcn.00478005
mov ecx, dword [ebp - 0x21c]
add eax, 4
push eax
call fcn.00446855
mov eax, dword [ebp - 0x220]
mov eax, dword [eax - 0xc]
lea esi, [esi + eax + 2]
jmp 0x4473aa
inc edi
push edi
push esi
lea eax, [ebp - 0x240]
push eax
mov ecx, ebx
call fcn.00443d2a
mov byte [ebp - 4], 3
mov ecx, eax
call fcn.00445121
push eax
lea ecx, [ebp - 0x224]
call fcn.004420c1
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x240]
call fcn.0040d610
mov edi, 0x104
push edi
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x224]
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov ecx, dword [ebp - 0x21c]
cmp eax, edi
ja 0x44737c
lea eax, [ebp - 0x218]
push eax
call fcn.00444b0f
mov eax, dword [ebp - 0x220]
mov eax, dword [eax - 0xc]
lea esi, [esi + eax + 2]
jmp 0x44739b
mov eax, dword [ebp - 0x224]
push dword [eax - 0xc]
and dword [ebp - 0x228], 0
push eax
call fcn.00444290
mov eax, dword [ebp - 0x224]
add esi, dword [eax - 0xc]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x224]
call fcn.0040d610
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x220]
call fcn.0040d610
jmp 0x4473d1
push esi
call fcn.0040c870
mov ecx, dword [ebp - 0x21c]
movzx eax, ax
push eax
call fcn.0044686a
inc esi
mov eax, dword [ebx]
cmp esi, dword [eax - 0xc]
jl 0x4471ff
mov eax, dword [ebp - 0x228]
call fcn.004b52da
ret