joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47714e
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
push edi
xor esi, esi
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push esi
lea eax, [ebp - 0x10]
push eax
push 0x48487d
push esi
push esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
mov dword [ebp - 0x10], eax
mov ebx, 0x1ff
jmp 0x4771b2
push 1
push esi
push esi
push esi
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x4771b2
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push ebx
push 0xffffffffffffffff
push esi
lea eax, [ebp - 0x10]
push eax
push 1
call edi
cmp eax, 1
je 0x47718b
pop edi
pop esi
pop ebx
leave
ret

Function at 0x47796c
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x198]
sub esp, 0x218
mov eax, dword [0x52472c]
xor eax, ebp
mov dword [ebp + 0x194], eax
mov eax, dword [ebp + 0x1a0]
push ebx
push edi
lea ebx, [eax + 0x28]
xor edi, edi
mov dword [ebp - 0x80], eax
cmp dword [ebx], edi
jne 0x477ab1
push esi
lea esi, [eax + 0x20]
mov eax, dword [esi]
cmp dword [eax - 0xc], edi
jne 0x4779ec
push 0x208
lea eax, [ebp - 0x74]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xor ecx, ecx
mov word [ebp + eax*2 - 0x74], cx
lea eax, [ebp - 0x74]
push eax
push esi
call fcn.00405499
push 0x2e
call fcn.0044667d
mov ecx, eax
mov eax, dword [esi]
mov eax, dword [eax - 0xc]
sub eax, ecx
push esi
call fcn.00461690
push str..log
push esi
call fcn.00446716
mov esi, dword [esi]
push edi
push 0x80
push 4
push edi
push 3
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov esi, ebx
call fcn.004199db
cmp dword [ebx], 0xffffffff
je 0x477aa0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x477a39
mov eax, dword [ebx]
test eax, eax
je 0x477a6a
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x477a6a
test eax, eax
jne 0x477aa0
mov eax, dword [ebx]
test eax, eax
je 0x477a6a
push 2
pop ecx
push 0
lea edx, [ebp - 0x78]
push edx
push ecx
mov dword [ebp - 0x78], ecx
lea ecx, [ebp - 0x7c]
push ecx
push eax
mov dword [ebp - 0x7c], 0xfeff
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
cmp dword [ebx], 0
je 0x477ab0
mov edi, dword [ebp - 0x80]
lea eax, [edi + 0x24]
mov esi, edi
call fcn.00477aca
lea eax, [ebp - 0x78]
push eax
call fcn.00447480
lea esi, [ebp - 0x78]
call fcn.00477aef
mov eax, esi
mov esi, edi
call fcn.00477aca
lea ecx, [ebp - 0x78]
call fcn.004029ae
jmp 0x477ab0
mov eax, dword [ebx]
test eax, eax
je 0x477ab0
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [ebx], 0
pop esi
mov ecx, dword [ebp + 0x194]
pop edi
xor ecx, ebp
pop ebx
call fcn.004b1fae
add ebp, 0x198
leave
ret 4
Function at 0x477aca
Capabilities:
Write file on windows

Disassembly:
push ecx
mov eax, dword [eax]
push 0
lea ecx, [esp + 4]
push ecx
mov ecx, dword [eax - 0xc]
add ecx, ecx
push ecx
push eax
push dword [esi + 0x28]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [esi + 0x28]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
pop ecx
ret
Function at 0x47838f
Capabilities:
Query environment variable

Disassembly:
push ebp
lea ebp, [esp - 0x190]
sub esp, 0x210
mov eax, dword [0x52472c]
xor eax, ebp
mov dword [ebp + 0x18c], eax
push esi
call fcn.00471201
test al, al
jne 0x478447
push str.ProgramFilesFolder
push edi
call fcn.0043b5ea
mov esi, str.AppDataFolder
test eax, eax
je 0x4783e8
push str.ProgramFiles
push edi
call fcn.00473b0f
pop ecx
pop ecx
test al, al
jne 0x4783e8
push esi
push edi
call fcn.0043b5ea
test eax, eax
jne 0x478447
push esi
push edi
call fcn.0043b5ea
neg eax
sbb al, al
inc al
push 0
pop eax
mov word [ebp - 0x7c], ax
mov eax, str.APPDATA
jne 0x478408
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 0x478427
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 0x47843e
lea eax, [ebp - 0x7c]
push eax
push edi
call fcn.00405499
xor eax, eax
test esi, esi
setne al
jmp 0x478449
xor al, al
mov ecx, dword [ebp + 0x18c]
xor ecx, ebp
pop esi
call fcn.004b1fae
add ebp, 0x190
leave
ret

Function at 0x47860d
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
cmp byte [0x5283d4], 0
je 0x47863f
push dword [esi]
lea eax, [ebp - 4]
push eax
call fcn.0047845f
push eax
call fcn.0047846f
push eax
mov eax, 0x5283a4
call fcn.00477894
lea ecx, [ebp - 4]
call fcn.004029ae
cmp byte [0x525cd4], 0
je 0x478692
cmp byte [ebp + 8], 0
push edi
push 0x10
pop edi
je 0x478657
mov edi, 0x40010
push dword [esi]
lea eax, [ebp - 4]
push eax
call fcn.004054bc
push edi
lea eax, [ebp - 8]
push eax
call fcn.00447480
push eax
lea eax, [ebp - 4]
push eax
call dword [sym.imp.USER32.dll_GetActiveWindow]
call fcn.00473c94
add esp, 0xc
lea ecx, [ebp - 8]
call fcn.004029ae
lea ecx, [ebp - 4]
call fcn.004029ae
pop edi
leave
ret
push dword [esi]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
leave
ret

Function at 0x478c5d
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
xor eax, eax
lea ebx, [edi + 0x14]
mov ecx, dword [ebx]
push esi
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
cmp dword [ecx - 0xc], eax
je 0x478c82
lea esi, [ebp - 0xc]
call fcn.0045e2c0
lea ebx, [edi + 0x18]
mov eax, dword [ebx]
cmp dword [eax - 0xc], 0
je 0x478c95
lea esi, [ebp - 0xc]
call fcn.0045e2c0
xor esi, esi
cmp dword [ebp - 8], esi
jle 0x478cba
mov eax, esi
lea ecx, [ebp - 0xc]
call fcn.0044ba5a
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
inc esi
cmp esi, dword [ebp - 8]
jl 0x478c9c
lea esi, [ebp - 0xc]
call fcn.00447a36
pop esi
pop ebx
leave
ret
Function at 0x478f11
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
mov ebx, eax
push edi
lea eax, [ebp - 8]
push eax
call fcn.00447480
lea eax, [ebp - 0xc]
push eax
call fcn.00447480
lea eax, [ebp - 4]
push eax
call fcn.00447480
lea eax, [ebp - 0xc]
push eax
push dword [ebx + 0x10]
lea eax, [ebp - 4]
call fcn.0046e829
lea eax, [ebp - 4]
lea edi, [ebp - 8]
call fcn.00439ecc
xor ecx, ecx
mov edx, 0x4fec7c
lea esi, [ebp - 4]
call fcn.0045f200
test eax, eax
jne 0x478f73
mov eax, dword [ebp - 4]
add eax, 8
push eax
mov eax, edi
push eax
call fcn.00405499
lea eax, [ebp - 0x14]
push str.instname_target.msi
push eax
lea esi, [ebp - 8]
lea edi, [ebx + 0x14]
call fcn.00445e5f
pop ecx
pop ecx
call fcn.00439ecc
lea ecx, [ebp - 0x14]
call fcn.004029ae
lea eax, [ebp - 0x10]
push str.instname_custom.mst
lea edi, [ebx + 0x18]
push eax
mov dword [ebp - 0x14], edi
call fcn.00445e5f
pop ecx
pop ecx
call fcn.00439ecc
lea ecx, [ebp - 0x10]
call fcn.004029ae
lea esi, [ebx + 0x14]
mov eax, dword [esi]
push 0
push eax
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x478fd8
push dword [ebp + 8]
call fcn.00447480
jmp 0x479024
push 0x4ef50c
lea eax, [ebp - 0x10]
push eax
call fcn.004054bc
add ebx, 0xc
push ebx
lea edi, [ebp - 0x10]
mov eax, esi
call fcn.0047916c
mov ecx, edi
mov bl, al
call fcn.004029ae
test bl, bl
je 0x479019
push dword [ebp - 0x14]
lea eax, [ebp - 0x10]
push esi
push eax
lea eax, [ebp - 0xc]
call fcn.00479046
lea ecx, [ebp - 0x10]
call fcn.004029ae
push dword [ebp - 0x14]
push dword [ebp + 8]
call int.0041808f
lea ecx, [ebp - 4]
call fcn.004029ae
lea ecx, [ebp - 0xc]
call fcn.004029ae
lea ecx, [ebp - 8]
call fcn.004029ae
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x4796a7
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 [0x52472c]
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 0x4796f7
xor al, al
jmp 0x479804
mov eax, dword [edi]
mov ecx, dword [eax - 0xc]
cmp ecx, 0x4f
mov dword [ebp - 0x6c], eax
jle 0x47970e
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 0x47973d
cmp dword [ebp - 0x74], 0xc8
jbe 0x4797f3
lea eax, [ebp - 0x68]
push eax
call fcn.00447480
mov eax, dword [esi]
cmp dword [eax - 0xc], ebx
je 0x47979c
mov eax, dword [edi]
cmp dword [eax - 0xc], ebx
jge 0x47975e
push 0x80070057
call fcn.00402a1f
cmp word [eax], 0x22
je 0x47979c
push 0x20
xor ecx, ecx
mov esi, edi
call fcn.00446653
cmp eax, 0xffffffff
je 0x479799
push 0x22
lea edi, [ebp - 0x68]
call fcn.0045a1e0
mov eax, esi
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
mov eax, edi
call fcn.0044678f
push 0x22
call fcn.0045a1e0
mov esi, dword [ebp - 0x78]
jmp 0x4797a6
mov esi, dword [ebp - 0x78]
mov eax, edi
lea edi, [ebp - 0x68]
call fcn.00439ecc
mov eax, dword [esi]
mov ecx, dword [eax - 0xc]
cmp ecx, ebx
je 0x4797c1
jl 0x479754
cmp word [eax], 0x20
je 0x4797c1
push 0x20
lea edi, [ebp - 0x68]
call fcn.0045a1e0
mov eax, dword [esi]
push dword [eax - 0xc]
push eax
lea eax, [ebp - 0x68]
call fcn.0044678f
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.004029ae
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.004b1fae
add ebp, 0x130
leave
ret
Function at 0x47989d
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 0x4798c6
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 0x4798dc
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 0x479907
cmp edi, 0xea
jne 0x479913
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 0x47c73f
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 [0x52472c]
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 0x47c8db
lea eax, [ebp - 0x214]
push eax
push ebx
push 0x4f97d4
lea eax, [ebp - 0x41c]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x47c8db
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.004054bc
push str..url
lea eax, [ebp - 0x420]
push eax
call fcn.00446716
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 0x47c7fd
push eax
jmp 0x47c8ca
lea eax, [ebp - 0x424]
push eax
call fcn.00447480
push dword [esi]
lea eax, [ebp - 0x42c]
push eax
call fcn.004474a7
push dword [ebp - 0x42c]
lea eax, [ebp - 0x424]
push str._InternetShortcut__r_nURL_s_r_n
call fcn.0044784f
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 0x47c858
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor edi, edi
cmp esi, ebx
je 0x47c872
push 5
push ebx
push ebx
push dword [ebp - 0x420]
push 0x4f137c
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.0044667d
lea ecx, [ebp - 0x428]
push ecx
mov ecx, esi
push ecx
mov ecx, eax
call fcn.0043b439
push eax
call fcn.0045fea0
pop ecx
pop ecx
lea ecx, [ebp - 0x428]
call fcn.004029ae
lea eax, [ebp - 0x42c]
push eax
call fcn.004474e9
lea eax, [ebp - 0x424]
push eax
call fcn.004474e9
cmp edi, ebx
je 0x47c8d0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x420]
call fcn.004029ae
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004b1fae
leave
ret 4
Function at 0x47eae9
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [esi + 0x1c]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], 0x4ffb44
test eax, eax
je 0x47eb3b
push 0xea60
push eax
mov byte [esi + 0xd], 1
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 4]
push eax
push dword [esi + 0x1c]
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x47eb36
cmp dword [ebp - 4], 0x103
jne 0x47eb36
push 0
push dword [esi + 0x1c]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [esi + 0x1c]
call edi
lea ecx, [esi + 0x78]
call fcn.004029ae
mov eax, dword [esi + 0x70]
test eax, eax
je 0x47eb51
push eax
call edi
and dword [esi + 0x70], 0
mov eax, dword [esi + 0x68]
test eax, eax
je 0x47eb5f
push eax
call edi
and dword [esi + 0x68], 0
lea ecx, [esi + 0x50]
call fcn.004029ae
lea ecx, [esi + 0x48]
call fcn.004029ae
lea ecx, [esi + 0x30]
call fcn.004029ae
lea ecx, [esi + 0x2c]
call fcn.004029ae
lea ecx, [esi + 0x28]
call fcn.004029ae
pop edi
leave
ret

Function at 0x47eb8a
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, ecx
push edi
lea edi, [esi + 0x30]
call fcn.00439ecc
mov eax, dword [ebp + 0xc]
lea edi, [esi + 0x2c]
call fcn.00439ecc
mov eax, dword [ebp + 0x10]
xor ebx, ebx
mov dword [esi + 0x10], eax
mov eax, dword [esi + 0x1c]
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
cmp eax, ebx
je 0x47ebc4
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp + 8]
push eax
push ebx
push esi
push 0x47ef57
push ebx
push ebx
mov dword [esi + 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x1c], eax
cmp eax, ebx
jne 0x47ebe9
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x47ebf9
cmp byte [ebp + 0x14], bl
je 0x47ebf7
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x28]
jmp 0x47ebf9
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 0x10

Function at 0x47f807
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
mov edi, dword [ebp + 0x10]
mov esi, eax
call fcn.004808e4
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
and dword [ebp - 4], 0
push 0
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp byte [esi + 0x4c], 0
mov dword [ebp + 0xc], eax
je 0x47f83c
mov dword [ebp - 4], eax
push dword [ebp + 0x14]
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
mov edi, esi
mov byte [esi + 0xc], 1
call fcn.0047f780
mov ecx, dword [ebp + 0xc]
mov byte [esi + 0xc], 0
test ecx, ecx
jbe 0x47f866
cmp dword [ebp - 4], ecx
je 0x47f866
mov eax, 0x2ee2
test eax, eax
jne 0x47f87d
mov esi, dword [esi + 0x14]
mov edi, dword [ebp + 0x10]
cmp esi, dword [edi]
je 0x47f87b
call fcn.004808e4
mov dword [edi], esi
xor eax, eax
pop edi
pop esi
leave
ret 0x10
Function at 0x47f883
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 + 0x68]
lea ebx, [edi + 0x44]
mov byte [ebx], 0
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push dword [ebp + 0x14]
mov byte [edi + 0x4d], 0
push dword [ebp + 0x10]
mov dword [edi + 0x40], 3
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x47f919
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x47f91b
jmp 0x47f8f6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x47f8fb
lea esi, [edi + 4]
push ebx
call fcn.0048ce71
mov eax, esi
call fcn.0048ce5a
test al, al
jne 0x47f906
push 0xa
push dword [edi + 0x68]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp byte [ebx], 0
je 0x47f8ca
cmp dword [edi + 0x3c], 0
jne 0x47f90d
mov eax, dword [edi + 0x38]
jmp 0x47f91b
mov eax, 0xe0000008
jmp 0x47f91b
mov edi, dword [edi + 0x38]
test edi, edi
jle 0x47f919
mov eax, dword [ebp + 0x14]
mov dword [eax], edi
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 0x10

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

Disassembly:
push ebx
push esi
push edi
mov edi, eax
push dword [edi + 0x68]
lea ebx, [edi + 0x44]
mov byte [ebx], 0
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push 0
push 0
push dword [esp + 0x1c]
mov byte [edi + 0x4d], 0
push dword [esp + 0x1c]
mov dword [edi + 0x40], 8
call dword [sym.imp.WININET.dll_InternetQueryDataAvailable]
test eax, eax
jne 0x47f9b6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x47f9b8
jmp 0x47f992
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x47f997
lea esi, [edi + 4]
push ebx
call fcn.0048ce71
mov eax, esi
call fcn.0048ce5a
test al, al
jne 0x47f9a2
push 0xa
push dword [edi + 0x68]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp byte [ebx], 0
je 0x47f966
cmp dword [edi + 0x3c], 0
jne 0x47f9a9
mov eax, dword [edi + 0x38]
jmp 0x47f9b8
mov eax, 0xe0000008
jmp 0x47f9b8
mov edi, dword [edi + 0x38]
test edi, edi
jle 0x47f9b6
mov eax, dword [esp + 0x14]
mov dword [eax], edi
xor eax, eax
pop edi
pop esi
pop ebx
ret 8
Function at 0x4804f6
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push 0x3c
lea eax, [ebp - 0x3c]
push 0
push eax
call fcn.004b4140
mov eax, dword [ebp + 8]
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 0x480533
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x480556
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
cmp eax, 3
je 0x480554
cmp eax, 4
je 0x480554
cmp eax, 1
je 0x480554
cmp eax, 2
je 0x480554
push 2
pop eax
jmp 0x480556
xor eax, eax
leave
ret 8

Function at 0x481a2f
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 0x481a47
xor al, al
pop esi
pop ebx
leave
ret 8
lea eax, [ebp - 0xc]
push eax
call fcn.00447480
mov eax, dword [ebp + 8]
push dword [eax]
lea eax, [ebp - 0xc]
push 0x4ffbc0
push eax
call fcn.0044c153
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 0x481a93
cmp dword [ebp - 4], ebx
je 0x481a89
push dword [ebp - 4]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
lea ecx, [ebp - 0xc]
call fcn.004029ae
jmp 0x481a3f
push ebx
push dword [ebp - 4]
call sub.msi.dll_MsiViewModify
test eax, eax
jne 0x481a7c
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
mov dword [ebp - 8], ebx
call sub.msi.dll_MsiDatabaseIsTablePersistentA
test eax, eax
je 0x481adc
cmp dword [ebp - 8], ebx
je 0x481ac0
push dword [ebp - 8]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
cmp dword [ebp - 4], ebx
je 0x481acd
push dword [ebp - 4]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
lea ecx, [ebp - 0xc]
call fcn.004029ae
mov al, bl
jmp 0x481a41
push dword [ebp + 0xc]
push dword [ebp - 8]
call fcn.00481be1
mov byte [ebp + 0xb], al
cmp dword [ebp - 8], ebx
je 0x481af7
push dword [ebp - 8]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
cmp dword [ebp - 4], ebx
je 0x481b04
push dword [ebp - 4]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
mov bl, byte [ebp + 0xb]
jmp 0x481acd

Function at 0x481ded
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 0x481e2d
push edi
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea edi, [eax + 1]
push edi
call fcn.00402919
push edi
push eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextW]
call fcn.00402961
pop edi
jmp 0x481e32
call fcn.004053da
push 1
push dword [ebp + 4]
call dword [sym.imp.USER32.dll_EndDialog]
pop esi
pop ebp
xor eax, eax
pop ebx
ret 4