joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46594b
Capabilities:
Query environment variable

Disassembly:
push ebp
lea ebp, [esp - 0x190]
sub esp, 0x210
mov eax, dword [0x501344]
xor eax, ebp
mov dword [ebp + 0x18c], eax
push esi
call fcn.0045ed35
test al, al
jne 0x465a03
push str.ProgramFilesFolder
push edi
call fcn.0042e27d
mov esi, str.AppDataFolder
test eax, eax
je 0x4659a4
push str.ProgramFiles
push edi
call fcn.0046020f
pop ecx
pop ecx
test al, al
jne 0x4659a4
push esi
push edi
call fcn.0042e27d
test eax, eax
jne 0x465a03
push esi
push edi
call fcn.0042e27d
neg eax
sbb al, al
inc al
push 0
pop eax
mov word [ebp - 0x7c], ax
mov eax, str.APPDATA
jne 0x4659c4
mov eax, str.PROGRAMFILES
push 0x104
lea ecx, [ebp - 0x7c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov esi, eax
test esi, esi
jbe 0x4659e3
push 0x5c
pop eax
mov word [ebp + esi*2 - 0x7c], ax
inc esi
xor eax, eax
mov word [ebp + esi*2 - 0x7c], ax
cmp word [ebp - 0x7c], ax
je 0x4659fa
lea eax, [ebp - 0x7c]
push eax
push edi
call fcn.00405cf1
xor eax, eax
test esi, esi
setne al
jmp 0x465a05
xor al, al
mov ecx, dword [ebp + 0x18c]
xor ecx, ebp
pop esi
call fcn.0049c07b
add ebp, 0x190
leave
ret

Function at 0x465c14
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
cmp byte [0x505028], 0
je 0x465c46
push dword [esi]
lea eax, [ebp - 4]
push eax
call fcn.00465a6a
push eax
call fcn.00465a7a
push eax
mov eax, 0x504ff8
call fcn.00464e5b
lea ecx, [ebp - 4]
call fcn.004058a3
cmp byte [0x502b78], 0
je 0x465c98
cmp byte [ebp + 8], 0
push edi
push 0x10
pop edi
je 0x465c5e
mov edi, 0x40010
push dword [esi]
lea eax, [ebp - 4]
push eax
call fcn.00405d14
push edi
lea ecx, [ebp - 8]
call fcn.0040932c
push eax
lea eax, [ebp - 4]
push eax
call dword [sym.imp.USER32.dll_GetActiveWindow]
call fcn.0046fd08
add esp, 0xc
lea ecx, [ebp - 8]
call fcn.004058a3
lea ecx, [ebp - 4]
call fcn.004058a3
pop edi
leave
ret
push dword [esi]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
leave
ret
Function at 0x46655a
Capabilities:
Persist via run registry key
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x130]
sub esp, 0x1b0
mov eax, dword [0x501344]
xor eax, ebp
mov dword [ebp + 0x12c], eax
push ebx
push esi
push edi
xor ebx, ebx
push ebx
lea eax, [ebp - 0x70]
push eax
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push str.SoftwareMicrosoftWindowsCurrentVersionRun
mov esi, edx
push SysReAllocStringLen
mov edi, ecx
mov dword [ebp - 0x78], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x4665aa
xor al, al
jmp 0x4666b6
mov eax, dword [edi]
mov ecx, dword [eax - 0xc]
cmp ecx, 0x4f
mov dword [ebp - 0x6c], eax
jle 0x4665c1
lea eax, [eax + ecx*2 - 0x9e]
mov dword [ebp - 0x6c], eax
lea ecx, [ebp - 0x74]
push ecx
lea ecx, [ebp - 0x64]
push ecx
push ebx
push ebx
push eax
push dword [ebp - 0x70]
mov dword [ebp - 0x74], 0xc8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x7c], eax
cmp eax, ebx
jne 0x4665f0
cmp dword [ebp - 0x74], 0xc8
jbe 0x4666a5
lea ecx, [ebp - 0x68]
call fcn.0040932c
mov eax, dword [esi]
cmp dword [eax - 0xc], ebx
je 0x46664e
mov eax, dword [edi]
cmp dword [eax - 0xc], ebx
jge 0x466610
push 0x80070057
call fcn.00405c3a
cmp word [eax], 0x22
je 0x46664e
push 0x20
xor ecx, ecx
mov esi, edi
call fcn.00438efd
cmp eax, 0xffffffff
je 0x46664b
push 0x22
lea edi, [ebp - 0x68]
call fcn.0044f390
mov eax, esi
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
mov eax, edi
call fcn.004390fc
push 0x22
call fcn.0044f390
mov esi, dword [ebp - 0x78]
jmp 0x466658
mov esi, dword [ebp - 0x78]
mov eax, edi
lea edi, [ebp - 0x68]
call fcn.00438ebc
mov eax, dword [esi]
mov ecx, dword [eax - 0xc]
cmp ecx, ebx
je 0x466673
jl 0x466606
cmp word [eax], 0x20
je 0x466673
push 0x20
lea edi, [ebp - 0x68]
call fcn.0044f390
mov eax, dword [esi]
push dword [eax - 0xc]
push eax
lea eax, [ebp - 0x68]
call fcn.004390fc
mov ecx, dword [ebp - 0x68]
mov eax, dword [ecx - 0xc]
add eax, eax
push eax
push ecx
push 1
push ebx
push dword [ebp - 0x6c]
push dword [ebp - 0x70]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea ecx, [ebp - 0x68]
mov dword [ebp - 0x7c], eax
call fcn.004058a3
push dword [ebp - 0x70]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp dword [ebp - 0x7c], ebx
sete al
mov ecx, dword [ebp + 0x12c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0049c07b
add ebp, 0x130
leave
ret
Function at 0x46674f
Capabilities:
Delete registry value
Persist via run registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x466778
xor al, al
leave
ret
mov eax, dword [ebp + 8]
push esi
mov esi, dword [eax]
mov eax, dword [esi - 0xc]
cmp eax, 0x4f
push edi
jle 0x46678e
lea esi, [esi + eax*2 - 0x9e]
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push 0
push 0
push esi
push dword [ebp - 8]
mov dword [ebp - 0xc], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test edi, edi
je 0x4667b9
cmp edi, 0xea
jne 0x4667c5
push esi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov edi, eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test edi, edi
pop edi
sete al
pop esi
leave
ret

Function at 0x466c76
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [eax]
push ebx
push esi
push edi
xor edi, edi
cmp dword [eax - 0xc], edi
jne 0x466c8e
xor eax, eax
jmp 0x466d35
push edi
push 0x80
push 3
push edi
push 1
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x466caf
push eax
jmp 0x466d2c
mov eax, dword [ebp + 0xc]
sub dword [ebp + 0x10], 2
push edi
push edi
add eax, 2
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x466d27
mov eax, dword [ebp + 0x10]
shr eax, 1
push eax
push 0x78
pop ecx
lea edx, [ebp - 4]
call fcn.0043dfc5
push edi
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x10]
lea esi, [ebp - 4]
call fcn.0040d2f8
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x466d1f
cmp dword [ebp - 8], edi
je 0x466d1f
mov eax, esi
push eax
push dword [ebp + 8]
call fcn.004668a0
lea ecx, [ebp - 4]
movzx esi, al
call fcn.004058a3
cmp ebx, edi
je 0x466d1b
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
jmp 0x466d35
lea ecx, [ebp - 4]
call fcn.004058a3
cmp ebx, edi
je 0x466d32
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 2
pop eax
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x468fab
Capabilities:
Create process on windows
Delete file
Get common file path
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x430
mov eax, dword [0x501344]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [ebp - 0x428], eax
lea eax, [ebp - 0x41c]
push eax
push 0x104
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
xor ebx, ebx
mov dword [ebp - 0x430], eax
cmp eax, ebx
je 0x469147
lea eax, [ebp - 0x214]
push eax
push ebx
push 0x4dbc1c
lea eax, [ebp - 0x41c]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x469147
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x420]
push eax
call fcn.00405d14
push str..url
lea eax, [ebp - 0x420]
push eax
call fcn.00439083
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
push dword [ebp - 0x420]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x469069
push eax
jmp 0x469136
lea eax, [ebp - 0x424]
push eax
call fcn.00439cea
push dword [esi]
lea eax, [ebp - 0x42c]
push eax
call fcn.00439d11
push dword [ebp - 0x42c]
lea eax, [ebp - 0x424]
push str._InternetShortcut__r_nURL_s_r_n
call fcn.0043a0b9
mov eax, dword [ebp - 0x424]
pop ecx
pop ecx
mov ecx, dword [eax - 0xc]
push ebx
lea edx, [ebp - 0x430]
push edx
push ecx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov esi, eax
cmp edi, ebx
je 0x4690c4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor edi, edi
cmp esi, ebx
je 0x4690de
push 5
push ebx
push ebx
push dword [ebp - 0x420]
push 0x4d42b4
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov eax, dword [ebp - 0x428]
add eax, 0x18
push eax
push 0x5c
lea esi, [ebp - 0x420]
call fcn.00438f27
lea ecx, [ebp - 0x428]
push ecx
mov ecx, esi
push ecx
mov ecx, eax
call fcn.0042e143
push eax
call fcn.0044ffc0
pop ecx
pop ecx
lea ecx, [ebp - 0x428]
call fcn.004058a3
lea eax, [ebp - 0x42c]
push eax
call fcn.00439d53
lea eax, [ebp - 0x424]
push eax
call fcn.00439d53
cmp edi, ebx
je 0x46913c
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x420]
call fcn.004058a3
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0049c07b
leave
ret 4
Function at 0x469e01
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
lea esi, [edi + 4]
push dword [esi]
call fcn.0046fc92
pop ecx
push esi
call fcn.00410db8
mov eax, dword [edi + 0x28]
push dword [eax]
mov ebx, dword [sym.imp.USER32.dll_SetWindowTextW]
push dword [esi]
call ebx
lea ecx, [ebp - 4]
call fcn.0040932c
push 0xdc
lea eax, [ebp - 4]
push eax
call fcn.00405a81
push 0x40a
push dword [esi]
call dword [sym.imp.USER32.dll_GetDlgItem]
push dword [ebp - 4]
push eax
call ebx
lea eax, [edi + 0x40]
push eax
mov eax, dword [esi]
call fcn.004727b3
lea eax, [ebp - 8]
push eax
xor eax, eax
push eax
lea ecx, [edi + 0x30]
push ecx
push 0x469e85
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
lea ecx, [ebp - 4]
mov dword [edi + 0x38], eax
call fcn.004058a3
pop esi
xor eax, eax
pop ebx
leave
ret

Function at 0x46b291
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [esi + 0xc]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], 0x4e0f08
test eax, eax
je 0x46b2e3
push 0xea60
push eax
mov byte [esi + 0x71], 1
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 4]
push eax
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x46b2de
cmp dword [ebp - 4], 0x103
jne 0x46b2de
push 0
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [esi + 0xc]
call edi
lea ecx, [esi + 0x68]
call fcn.004058a3
mov eax, dword [esi + 0x60]
test eax, eax
je 0x46b2f9
push eax
call edi
and dword [esi + 0x60], 0
mov eax, dword [esi + 0x58]
test eax, eax
je 0x46b307
push eax
call edi
and dword [esi + 0x58], 0
lea ecx, [esi + 0x38]
call fcn.004058a3
lea ecx, [esi + 0x20]
call fcn.004058a3
lea ecx, [esi + 0x1c]
call fcn.004058a3
lea ecx, [esi + 0x18]
call fcn.004058a3
pop edi
leave
ret

Function at 0x46b32a
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov esi, ecx
push edi
lea edi, [esi + 0x20]
call fcn.00438ebc
mov eax, dword [ebp + 0xc]
lea edi, [esi + 0x1c]
call fcn.00438ebc
mov eax, dword [ebp + 0x18]
mov dword [esi + 0x40], eax
mov al, byte [ebp + 0x1c]
mov byte [esi + 0x54], al
mov eax, dword [ebp + 0x10]
xor edi, edi
mov dword [esi + 0x74], eax
mov eax, dword [esi + 0xc]
mov dword [esi + 4], edi
mov dword [esi + 8], edi
cmp eax, edi
je 0x46b36f
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [ebp + 0x14]
push edi
mov dword [esi + 0xc], edi
mov byte [esi + 0x3c], al
mov dword [esi + 0x80], edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea eax, [ebp + 8]
push eax
push edi
push esi
push 0x46b6b8
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0xc], eax
cmp eax, edi
jne 0x46b3a7
push esi
call fcn.0046cd43
jmp 0x46b3a9
xor eax, eax
pop edi
pop esi
pop ebp
ret 0x18
Function at 0x46bce6
Capabilities:
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, eax
push dword [edi + 0x58]
lea ebx, [edi + 0x34]
mov byte [ebx], 0
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push dword [ebp + 0x14]
mov byte [edi + 0x3d], 0
push dword [ebp + 0x10]
mov dword [edi + 0x30], 3
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x46bd7c
push edi
call fcn.0046cd43
cmp eax, 0x3e5
jne 0x46bd7e
jmp 0x46bd59
push edi
call fcn.0046cd43
cmp eax, 0x3e5
jne 0x46bd5e
lea esi, [edi + 0x6c]
push ebx
call fcn.00479348
mov eax, esi
call fcn.00479331
test al, al
jne 0x46bd69
push 0xa
push dword [edi + 0x58]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp byte [ebx], 0
je 0x46bd2d
cmp dword [edi + 0x2c], 0
jne 0x46bd70
mov eax, dword [edi + 0x28]
jmp 0x46bd7e
mov eax, 0xe0000008
jmp 0x46bd7e
mov edi, dword [edi + 0x28]
test edi, edi
jle 0x46bd7c
mov eax, dword [ebp + 0x14]
mov dword [eax], edi
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 0x10

Function at 0x46bd85
Capabilities:
Query remote server for available data

Disassembly:
push ebx
push esi
push edi
mov edi, eax
push dword [edi + 0x58]
lea ebx, [edi + 0x34]
mov byte [ebx], 0
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push 0
push 0
push dword [esp + 0x1c]
mov byte [edi + 0x3d], 0
push dword [esp + 0x1c]
mov dword [edi + 0x30], 8
call dword [sym.imp.WININET.dll_InternetQueryDataAvailable]
test eax, eax
jne 0x46be19
push edi
call fcn.0046cd43
cmp eax, 0x3e5
jne 0x46be1b
jmp 0x46bdf5
push edi
call fcn.0046cd43
cmp eax, 0x3e5
jne 0x46bdfa
lea esi, [edi + 0x6c]
push ebx
call fcn.00479348
mov eax, esi
call fcn.00479331
test al, al
jne 0x46be05
push 0xa
push dword [edi + 0x58]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp byte [ebx], 0
je 0x46bdc9
cmp dword [edi + 0x2c], 0
jne 0x46be0c
mov eax, dword [edi + 0x28]
jmp 0x46be1b
mov eax, 0xe0000008
jmp 0x46be1b
mov edi, dword [edi + 0x28]
test edi, edi
jle 0x46be19
mov eax, dword [esp + 0x14]
mov dword [eax], edi
xor eax, eax
pop edi
pop esi
pop ebx
ret 8
Function at 0x46c947
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push 0x3c
lea eax, [ebp - 0x3c]
push 0
push eax
call fcn.0049cb00
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
add esp, 0xc
lea ecx, [ebp - 0x3c]
push ecx
push 0
push 0
push eax
mov dword [ebp - 0x3c], 0x3c
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
jne 0x46c986
push dword [ebp + 8]
call fcn.0046cd43
jmp 0x46c9a9
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
cmp eax, 3
je 0x46c9a7
cmp eax, 4
je 0x46c9a7
cmp eax, 1
je 0x46c9a7
cmp eax, 2
je 0x46c9a7
push 2
pop eax
jmp 0x46c9a9
xor eax, eax
leave
ret 0xc

Function at 0x46d813
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, eax
xor ebx, ebx
cmp dword [esi], ebx
jne 0x46d82b
xor al, al
pop esi
pop ebx
leave
ret 8
lea ecx, [ebp - 0xc]
call fcn.0040932c
mov eax, dword [ebp + 8]
push dword [eax]
lea eax, [ebp - 0xc]
push str.SELECT__Value__FROM__Property__WHERE__Property____s
push eax
call fcn.0043e898
mov esi, dword [esi]
add esp, 0xc
lea eax, [ebp - 4]
push eax
push dword [ebp - 0xc]
mov dword [ebp - 4], ebx
push esi
call sub.msi.dll_MsiEnumClientsA
test eax, eax
je 0x46d876
cmp dword [ebp - 4], ebx
je 0x46d86c
push dword [ebp - 4]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
lea ecx, [ebp - 0xc]
call fcn.004058a3
jmp 0x46d823
push ebx
push dword [ebp - 4]
call sub.msi.dll_MsiViewModify
test eax, eax
jne 0x46d85f
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
mov dword [ebp - 8], ebx
call sub.msi.dll_MsiDatabaseIsTablePersistentA
test eax, eax
je 0x46d8bf
cmp dword [ebp - 8], ebx
je 0x46d8a3
push dword [ebp - 8]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
cmp dword [ebp - 4], ebx
je 0x46d8b0
push dword [ebp - 4]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
lea ecx, [ebp - 0xc]
call fcn.004058a3
mov al, bl
jmp 0x46d825
push dword [ebp + 0xc]
push dword [ebp - 8]
call fcn.0046d9c2
mov byte [ebp + 0xb], al
cmp dword [ebp - 8], ebx
je 0x46d8da
push dword [ebp - 8]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
cmp dword [ebp - 4], ebx
je 0x46d8e7
push dword [ebp - 4]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
mov bl, byte [ebp + 0xb]
jmp 0x46d8b0

Function at 0x46dbce
Capabilities:
Get graphical window text

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
push 0x7d1
push dword [ebp + 4]
lea esi, [ebp + 0x20]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov ebx, eax
test ebx, ebx
je 0x46dc0e
push edi
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea edi, [eax + 1]
push edi
call fcn.00405bf9
push edi
push eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextW]
call fcn.004092df
pop edi
jmp 0x46dc13
call fcn.00405ac6
push 1
push dword [ebp + 4]
call dword [sym.imp.USER32.dll_EndDialog]
pop esi
pop ebp
xor eax, eax
pop ebx
ret 4
Function at 0x46dc70
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [0x501344]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
test ecx, ecx
jne 0x46dc91
xor al, al
jmp 0x46ddb1
push 2
lea esi, [ebp - 0x408]
pop edi
jmp 0x46dca3
mov word [esi], ax
add ecx, edi
add esi, edi
movzx eax, word [ecx]
test ax, ax
jne 0x46dc9c
xor eax, eax
mov word [esi], ax
push 0x5c
xor dl, dl
pop ebx
sub esi, edi
xor al, al
mov byte [ebp - 0x409], dl
cmp word [ebp - 0x408], bx
jne 0x46dce1
cmp word [ebp - 0x406], bx
jne 0x46dce1
mov byte [ebp - 0x409], 1
cmp word [esi], bx
je 0x46dce8
inc al
jmp 0x46dce8
cmp word [esi], bx
jne 0x46dce8
mov dl, 1
lea ecx, [ebp - 0x404]
mov dword [ebp - 0x410], ecx
cmp word [ebp - 0x404], bx
je 0x46dd0a
add ecx, edi
cmp word [ecx], bx
jne 0x46dcfd
mov dword [ebp - 0x410], ecx
test al, al
jne 0x46dd14
test dl, dl
je 0x46dd24
jmp 0x46dd1d
add esi, edi
mov eax, ebx
mov word [esi], ax
add esi, edi
xor eax, eax
mov word [esi], ax
sub esi, edi
and dword [ebp - 0x418], 0
and dword [ebp - 0x414], 0
lea eax, [ebp - 0x420]
push eax
push eax
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0x408]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
jne 0x46dd92
cmp word [esi], bx
jne 0x46dd60
jmp 0x46dd5e
cmp word [esi], bx
je 0x46dd6a
sub esi, edi
lea eax, [ebp - 0x408]
cmp esi, eax
ja 0x46dd59
cmp esi, dword [ebp - 0x410]
jb 0x46dc8a
cmp byte [ebp - 0x409], 0
jne 0x46dd87
cmp esi, dword [ebp - 0x410]
jne 0x46dd89
add esi, edi
xor eax, eax
mov word [esi], ax
sub esi, edi
jmp 0x46dd32
mov eax, dword [ebp + 0xc]
cmp eax, dword [ebp - 0x414]
ja 0x46ddaf
jb 0x46ddaa
mov eax, dword [ebp + 8]
cmp eax, dword [ebp - 0x418]
jae 0x46ddaf
xor eax, eax
inc eax
jmp 0x46ddb1
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0049c07b
leave
ret
Function at 0x46e0ac
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
push esi
push edi
push 0x3c
pop esi
push esi
lea eax, [ebp - 0x40]
push 0
push eax
call fcn.0049cb00
add esp, 0xc
push 0x64
pop eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov dword [ebp - 0x40], esi
mov edi, dword [eax - 0xc]
mov ebx, 0x503d84
push eax
mov ecx, ebx
lea esi, [ebp - 4]
call fcn.0042e397
lea eax, [ebp - 0x40]
push eax
push 0
push 0
push dword [ebp - 4]
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
jne 0x46e120
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
lea ecx, [ebp - 4]
call fcn.004058a3
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
push dword [ebp - 0x30]
mov edi, dword [ebp - 0x2c]
mov ecx, ebx
lea esi, [ebp + 8]
call fcn.0042e397
mov edi, dword [ebp + 0x14]
mov eax, esi
call fcn.00438ebc
mov ecx, esi
call fcn.004058a3
push dword [ebp - 0x14]
mov edi, dword [ebp - 0x10]
mov ecx, ebx
lea esi, [ebp + 8]
call fcn.0042e397
mov edi, dword [ebp + 0x18]
mov eax, esi
call fcn.00438ebc
mov ecx, esi
call fcn.004058a3
cmp dword [ebp - 0x24], 0
je 0x46e189
push dword [ebp - 0x24]
mov edi, dword [ebp - 0x20]
mov ecx, ebx
lea esi, [ebp + 8]
call fcn.0042e397
mov edi, dword [ebp + 0x1c]
mov eax, esi
call fcn.00438ebc
mov ecx, esi
call fcn.004058a3
cmp dword [ebp - 0x1c], 0
je 0x46e1b0
push dword [ebp - 0x1c]
mov edi, dword [ebp - 0x18]
mov ecx, ebx
lea esi, [ebp + 8]
call fcn.0042e397
mov edi, dword [ebp + 0x20]
mov eax, esi
call fcn.00438ebc
mov ecx, esi
call fcn.004058a3
cmp dword [ebp - 0xc], 0
je 0x46e1d7
push dword [ebp - 0xc]
mov edi, dword [ebp - 8]
mov ecx, ebx
lea esi, [ebp + 8]
call fcn.0042e397
mov edi, dword [ebp + 0x24]
mov eax, esi
call fcn.00438ebc
mov ecx, esi
call fcn.004058a3
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov ax, word [ebp - 0x28]
mov ecx, dword [ebp + 0x10]
mov word [ecx], ax
xor esi, esi
jmp 0x46e111
Function at 0x46e2f2
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x501344]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push 3
push SysReAllocStringLen
push ecx
mov dword [ebp - 0x90], eax
mov byte [eax], bl
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x98], esi
cmp esi, 0xffffffff
jne 0x46e33c
push eax
jmp 0x46e37a
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
je 0x46e375
cmp eax, dword [ebp + 0xc]
jbe 0x46e375
sub eax, dword [ebp + 0xc]
mov edi, 0x10000
mov dword [ebp - 0x8c], eax
push edi
lea eax, [ebp - 0x80]
push eax
mov dword [ebp - 0x80], ebx
call fcn.0043870c
cmp dword [ebp - 0x80], ebx
jne 0x46e391
push ebx
call fcn.0049c876
pop ecx
cmp esi, ebx
je 0x46e380
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0049c07b
leave
ret
lea eax, [ebp - 0x78]
mov dword [ebp - 0x84], ebx
mov dword [ebp - 0x88], ebx
mov byte [ebp - 0x79], bl
call fcn.00499de0
jmp 0x46e3b0
mov esi, dword [ebp - 0x98]
push ebx
lea eax, [ebp - 0x88]
push eax
push edi
push dword [ebp - 0x80]
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x46e40c
mov esi, dword [ebp - 0x88]
cmp esi, ebx
je 0x46e40c
mov eax, dword [ebp - 0x84]
lea ecx, [esi + eax]
cmp ecx, dword [ebp - 0x8c]
jbe 0x46e3f4
mov esi, dword [ebp - 0x8c]
sub esi, eax
mov dword [ebp - 0x88], esi
mov byte [ebp - 0x79], 1
push dword [ebp - 0x80]
mov eax, esi
lea ecx, [ebp - 0x78]
call fcn.00499c00
add dword [ebp - 0x84], esi
cmp byte [ebp - 0x79], bl
je 0x46e3aa
lea esi, [ebp - 0x78]
call fcn.00499cc0
mov ebx, dword [ebp - 0x90]
mov eax, esi
call fcn.00499d90
push dword [ebp - 0x80]
mov bl, al
call fcn.0049c876
cmp dword [ebp - 0x98], 0
pop ecx
je 0x46e441
push dword [ebp - 0x98]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
jmp 0x46e382

Function at 0x46e89a
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
cmp byte [esi], bl
je 0x46e8ab
mov al, 1
jmp 0x46e92e
mov eax, dword [ebp + 8]
push edi
lea edi, [esi + 4]
mov byte [esi], 1
mov byte [esi + 1], bl
call fcn.00438ebc
push str..pipeToServer
lea eax, [ebp + 8]
push eax
call fcn.00405d14
mov edi, dword [edi]
push dword [edi - 0xc]
lea eax, [ebp + 8]
push edi
call fcn.004390fc
pop edi
cmp byte [esi + 1], bl
je 0x46e906
push ebx
push 0x1388
mov eax, 0x7f90
push eax
push eax
push 0xff
push 6
push 3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov dword [esi + 8], eax
cmp byte [esi + 1], bl
jne 0x46e91d
push ebx
push ebx
push 3
push ebx
push ebx
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 8], eax
cmp dword [esi + 8], 0xffffffff
lea ecx, [ebp + 8]
setne bl
call fcn.004058a3
mov al, bl
pop ebx
pop ebp
ret 4