joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4190f4
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [eax]
sub esp, 0x18
push ebx
push esi
push edi
xor edi, edi
cmp dword [eax - 0xc], edi
jne 0x41910d
xor eax, eax
jmp 0x4191c6
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x419131
push eax
jmp 0x4191bd
mov eax, dword [ebp + 0xc]
sub dword [ebp + 0x10], 2
push edi
lea ecx, [ebp - 0x10]
add eax, 2
push ecx
push eax
push ebx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x4191b8
mov eax, dword [ebp + 0x10]
shr eax, 1
push eax
push 0x78
pop ecx
lea edx, [ebp + 0xc]
call fcn.0040a9b6
push edi
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x10]
lea esi, [ebp + 0xc]
call fcn.00402073
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4191ad
cmp dword [ebp - 8], edi
je 0x4191ad
mov eax, esi
push eax
push dword [ebp + 8]
call fcn.00418be4
movzx esi, al
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
call fcn.00404645
cmp ebx, edi
je 0x4191a9
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
jmp 0x4191c6
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
call fcn.00404645
cmp ebx, edi
je 0x4191c3
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 2
pop eax
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x41aae3
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [esi + 0x14]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], 0x453ab0
test eax, eax
je 0x41ab35
push 0xea60
push eax
mov byte [esi + 9], 1
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 4]
push eax
push dword [esi + 0x14]
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x41ab30
cmp dword [ebp - 4], 0x103
jne 0x41ab30
push 0
push dword [esi + 0x14]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [esi + 0x14]
call edi
mov eax, dword [esi + 0x68]
sub eax, 0x10
call fcn.00404645
mov eax, dword [esi + 0x60]
test eax, eax
je 0x41ab4e
push eax
call edi
and dword [esi + 0x60], 0
mov eax, dword [esi + 0x58]
test eax, eax
je 0x41ab5c
push eax
call edi
and dword [esi + 0x58], 0
mov eax, dword [esi + 0x40]
push 0x10
pop edi
sub eax, edi
call fcn.00404645
mov eax, dword [esi + 0x38]
sub eax, edi
call fcn.00404645
mov eax, dword [esi + 0x20]
sub eax, edi
call fcn.00404645
mov eax, dword [esi + 0x1c]
sub eax, edi
call fcn.00404645
pop edi
leave
ret
Function at 0x41ab8a
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 + 0x20]
call fcn.00408905
mov eax, dword [ebp + 0xc]
lea edi, [esi + 0x1c]
call fcn.00408905
mov eax, dword [esi + 0x14]
xor ebx, ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
cmp eax, ebx
je 0x41abbe
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp + 8]
push eax
push ebx
push esi
push 0x41afff
push ebx
push ebx
mov dword [esi + 0x14], ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x14], eax
cmp eax, ebx
jne 0x41abe3
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x41abf3
cmp byte [ebp + 0x10], bl
je 0x41abf1
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x30]
jmp 0x41abf3
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 0xc

Function at 0x41ad7b
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x90
mov eax, dword [0x45a140]
push ebx
push esi
push edi
mov ecx, 0x45a140
mov dword [ebp - 0x14], str.http:__www.google.com
mov dword [ebp - 0x10], str.http:__www.yahoo.com
mov dword [ebp - 0xc], str.http:__www.example.com
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 8], eax
push str.tin9999.tmp
lea eax, [ebp - 4]
call fcn.0040455c
lea edi, [ebp - 8]
lea ecx, [ebp - 4]
call fcn.0040a23b
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.00404645
push dword [ebp + 0xc]
mov eax, dword [ebp + 8]
lea edi, [ebp - 0x90]
call fcn.0041aa45
xor ebx, ebx
mov dword [ebp - 0x24], ebx
xor esi, esi
push dword [ebp + esi*4 - 0x14]
lea eax, [ebp - 4]
call fcn.0040455c
push 1
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 0x90]
call fcn.0041ab8a
mov edi, eax
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.00404645
test edi, edi
je 0x41ae24
inc esi
cmp esi, 3
jl 0x41adea
jmp 0x41ae26
mov bl, 1
mov edi, dword [ebp - 8]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea esi, [ebp - 0x90]
call fcn.0041aae3
lea eax, [edi - 0x10]
call fcn.00404645
pop edi
pop esi
mov al, bl
pop ebx
leave
ret
Function at 0x41b871
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.0041cc11
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 + 0x3c], 0
mov dword [ebp + 0xc], eax
je 0x41b8a6
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 + 8], 1
call fcn.0041b7eb
mov ecx, dword [ebp + 0xc]
mov byte [esi + 8], 0
test ecx, ecx
jbe 0x41b8d0
cmp dword [ebp - 4], ecx
je 0x41b8d0
mov eax, 0x2ee2
test eax, eax
jne 0x41b8e7
mov esi, dword [esi + 0xc]
mov edi, dword [ebp + 0x10]
cmp esi, dword [edi]
je 0x41b8e5
call fcn.0041cc11
mov dword [edi], esi
xor eax, eax
pop edi
pop esi
leave
ret 0x10

Function at 0x41b8ed
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 0x41b983
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x41b985
jmp 0x41b960
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x41b965
lea esi, [edi + 4]
push ebx
call fcn.00428283
mov eax, esi
call fcn.0042826c
test al, al
jne 0x41b970
push 0xa
push dword [edi + 0x58]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp byte [ebx], 0
je 0x41b934
cmp dword [edi + 0x2c], 0
jne 0x41b977
mov eax, dword [edi + 0x28]
jmp 0x41b985
mov eax, 0xe0000008
jmp 0x41b985
mov edi, dword [edi + 0x28]
test edi, edi
jle 0x41b983
mov eax, dword [ebp + 0x14]
mov dword [eax], edi
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 0x10

Function at 0x41b98c
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 0x41ba20
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x41ba22
jmp 0x41b9fc
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x41ba01
lea esi, [edi + 4]
push ebx
call fcn.00428283
mov eax, esi
call fcn.0042826c
test al, al
jne 0x41ba0c
push 0xa
push dword [edi + 0x58]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp byte [ebx], 0
je 0x41b9d0
cmp dword [edi + 0x2c], 0
jne 0x41ba13
mov eax, dword [edi + 0x28]
jmp 0x41ba22
mov eax, 0xe0000008
jmp 0x41ba22
mov edi, dword [edi + 0x28]
test edi, edi
jle 0x41ba20
mov eax, dword [esp + 0x14]
mov dword [eax], edi
xor eax, eax
pop edi
pop esi
pop ebx
ret 8
Function at 0x41c397
Capabilities:
Connect to http server

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, eax
push dword [esi + 0x58]
and dword [esi + 0x30], 0
mov byte [esi + 0x34], 0
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push esi
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_InternetConnectW]
test eax, eax
jne 0x41c3d9
call fcn.0041c49f
test eax, eax
je 0x41c3dc
jmp 0x41c3e9
mov dword [esi + 0xc], eax
cmp dword [esi + 0xc], 0
jne 0x41c3e7
mov eax, dword [esi + 0x28]
jmp 0x41c3e9
xor eax, eax
pop esi
pop ebp
ret 0x1c

Function at 0x41c6d0
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push 0x3c
lea eax, [ebp - 0x3c]
push 0
push eax
call fcn.004318c0
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 0x41c70d
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x41c730
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
cmp eax, 3
je 0x41c72e
cmp eax, 4
je 0x41c72e
cmp eax, 1
je 0x41c72e
cmp eax, 2
je 0x41c72e
push 2
pop eax
jmp 0x41c730
xor eax, eax
leave
ret 8
Function at 0x41de9c
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 [0x458090]
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 edi, ecx
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
xor esi, esi
mov dword [ebp - 0x430], eax
cmp eax, esi
je 0x41e04a
lea eax, [ebp - 0x214]
push eax
push esi
push 0x44cc90
lea eax, [ebp - 0x41c]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x41e04a
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x420]
call fcn.0040455c
push str..url
lea eax, [ebp - 0x420]
push eax
call fcn.00402105
push esi
push 0x80
push 2
push esi
push esi
push 0x40000000
push dword [ebp - 0x420]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x41df59
push eax
jmp 0x41e036
mov eax, dword [0x45a140]
mov ecx, 0x45a140
call dword [eax + 0xc]
push dword [edi]
add eax, 0x10
mov dword [ebp - 0x424], eax
lea eax, [ebp - 0x42c]
call fcn.00401fac
push dword [ebp - 0x42c]
lea eax, [ebp - 0x424]
push str._InternetShortcut__r_nURL_s_r_n
call fcn.004022ab
mov edi, dword [ebp - 0x424]
mov eax, dword [edi - 0xc]
pop ecx
pop ecx
push esi
lea ecx, [ebp - 0x430]
push ecx
push eax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x424], eax
cmp ebx, esi
je 0x41dfc1
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebx, ebx
cmp dword [ebp - 0x424], esi
je 0x41dfdf
push 5
push esi
push esi
push dword [ebp - 0x420]
push str.open
push esi
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.00408c79
mov ecx, eax
lea edx, [ebp - 0x428]
mov eax, esi
call fcn.00408d86
push eax
call fcn.0040a2b1
mov eax, dword [ebp - 0x428]
pop ecx
pop ecx
add eax, 0xfffffff0
call fcn.00404645
mov eax, dword [ebp - 0x42c]
add eax, 0xfffffff0
call fcn.00404645
lea eax, [edi - 0x10]
call fcn.00404645
test ebx, ebx
je 0x41e03c
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x420]
add eax, 0xfffffff0
call fcn.00404645
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043189b
leave
ret 4
Function at 0x41e892
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
xor edi, edi
cmp dword [ebx + 0x28], edi
jle 0x41e8f5
lea esi, [ebx + 0x24]
mov eax, edi
mov ecx, esi
call fcn.004096f6
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push ebx
push 0x5c
mov eax, edi
mov ecx, esi
call fcn.004096f6
mov esi, eax
call fcn.00408c79
mov esi, eax
mov eax, edi
lea ecx, [ebx + 0x24]
call fcn.004096f6
mov ecx, esi
lea edx, [ebp - 4]
call fcn.00408d86
push eax
call fcn.0040a2b1
mov eax, dword [ebp - 4]
pop ecx
pop ecx
add eax, 0xfffffff0
call fcn.00404645
inc edi
cmp edi, dword [ebx + 0x28]
jl 0x41e89f
lea esi, [ebx + 0x24]
call fcn.00408e7c
lea edi, [ebx + 4]
call fcn.0041ebe2
mov eax, dword [ebx]
sub eax, 0x10
call fcn.00404645
pop edi
pop esi
leave
ret

Function at 0x41eed2
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.00410a14
pop ecx
push esi
call fcn.0040ec04
mov eax, dword [edi + 0x28]
push dword [eax]
mov ebx, dword [sym.imp.USER32.dll_SetWindowTextW]
push dword [esi]
call ebx
mov eax, dword [0x45a140]
mov ecx, 0x45a140
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 4], eax
push 0xdc
lea eax, [ebp - 4]
push eax
call fcn.00404378
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.00428e2c
lea eax, [ebp - 8]
push eax
xor eax, eax
push eax
lea ecx, [edi + 0x30]
push ecx
push 0x41ef64
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [edi + 0x38], eax
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.00404645
pop esi
xor eax, eax
pop ebx
leave
ret
Function at 0x4209d6
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x421
push dword [edi + 4]
call esi
push 0x422
push dword [edi + 4]
mov ebx, eax
call esi
push 0x430
push dword [edi + 4]
call esi
push 0
push 0
push 0xf0
push ebx
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
mov dword [ebp - 8], eax
call ebx
push 0x420
push dword [edi + 4]
mov dword [ebp - 0x10], eax
call esi
push 2
push 0xffffffffffffffff
push 0x100c
push eax
mov dword [ebp - 4], eax
call ebx
and dword [ebp - 0xc], 0
cmp eax, 0xffffffff
je 0x420a4b
push eax
lea eax, [ebp - 4]
push eax
call fcn.004215bb
mov dword [ebp - 0xc], eax
mov eax, dword [0x45a140]
mov ecx, 0x45a140
call dword [eax + 0xc]
push dword [ebp - 8]
add eax, 0x10
mov dword [ebp - 4], eax
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ebx, [eax + 1]
push ebx
lea esi, [ebp - 4]
call fcn.00404496
push ebx
push eax
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_GetWindowTextW]
call fcn.00409c5f
mov eax, esi
mov esi, dword [edi + 0x40]
push eax
xor eax, eax
cmp dword [ebp - 0x10], eax
sete al
push eax
mov eax, dword [ebp - 0xc]
call fcn.0041766f
movzx eax, word [ebp + 8]
push eax
push dword [edi + 4]
call dword [sym.imp.USER32.dll_EndDialog]
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.00404645
pop esi
xor eax, eax
pop ebx
leave
ret 4

Function at 0x4215fb
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 0x42160f
xor al, al
jmp 0x421675
mov eax, dword [0x45a140]
push edi
mov ecx, 0x45a140
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0xc], eax
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.00409762
mov edi, dword [ebp - 0xc]
mov esi, dword [esi]
add esp, 0xc
lea eax, [ebp - 4]
push eax
push edi
push esi
mov dword [ebp - 4], ebx
call sub.msi.dll_MsiEnumClientsA
test eax, eax
jne 0x42165d
push ebx
push dword [ebp - 4]
call sub.msi.dll_MsiViewModify
test eax, eax
je 0x42167b
cmp dword [ebp - 4], ebx
je 0x42166a
push dword [ebp - 4]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
lea eax, [edi - 0x10]
call fcn.00404645
xor al, al
pop edi
pop esi
pop ebx
leave
ret 8
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
mov dword [ebp - 8], ebx
call sub.msi.dll_MsiDatabaseIsTablePersistentA
test eax, eax
je 0x4216b4
cmp dword [ebp - 8], ebx
je 0x42169b
push dword [ebp - 8]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
cmp dword [ebp - 4], ebx
je 0x4216a8
push dword [ebp - 4]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
lea eax, [edi - 0x10]
call fcn.00404645
mov al, bl
jmp 0x421674
push dword [ebp + 0xc]
push dword [ebp - 8]
call fcn.004217d2
mov byte [ebp + 0xb], al
cmp dword [ebp - 8], ebx
je 0x4216cf
push dword [ebp - 8]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
cmp dword [ebp - 4], ebx
je 0x4216dc
push dword [ebp - 4]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
mov bl, byte [ebp + 0xb]
jmp 0x4216a8
Function at 0x4219f5
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 0x421a35
push edi
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea edi, [eax + 1]
push edi
call fcn.00404496
push edi
push eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextW]
call fcn.00409c5f
pop edi
jmp 0x421a3a
call fcn.004045a9
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 0x421a98
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [0x458090]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
test ecx, ecx
jne 0x421ab9
xor al, al
jmp 0x421bd9
push 2
lea esi, [ebp - 0x408]
pop edi
jmp 0x421acb
mov word [esi], ax
add ecx, edi
add esi, edi
movzx eax, word [ecx]
test ax, ax
jne 0x421ac4
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 0x421b09
cmp word [ebp - 0x406], bx
jne 0x421b09
mov byte [ebp - 0x409], 1
cmp word [esi], bx
je 0x421b10
inc al
jmp 0x421b10
cmp word [esi], bx
jne 0x421b10
mov dl, 1
lea ecx, [ebp - 0x404]
mov dword [ebp - 0x410], ecx
cmp word [ebp - 0x404], bx
je 0x421b32
add ecx, edi
cmp word [ecx], bx
jne 0x421b25
mov dword [ebp - 0x410], ecx
test al, al
jne 0x421b3c
test dl, dl
je 0x421b4c
jmp 0x421b45
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 0x421bba
cmp word [esi], bx
jne 0x421b88
jmp 0x421b86
cmp word [esi], bx
je 0x421b92
sub esi, edi
lea eax, [ebp - 0x408]
cmp esi, eax
ja 0x421b81
cmp esi, dword [ebp - 0x410]
jb 0x421ab2
cmp byte [ebp - 0x409], 0
jne 0x421baf
cmp esi, dword [ebp - 0x410]
jne 0x421bb1
add esi, edi
xor eax, eax
mov word [esi], ax
sub esi, edi
jmp 0x421b5a
mov eax, dword [ebp + 0xc]
cmp eax, dword [ebp - 0x414]
ja 0x421bd7
jb 0x421bd2
mov eax, dword [ebp + 8]
cmp eax, dword [ebp - 0x418]
jae 0x421bd7
xor eax, eax
inc eax
jmp 0x421bd9
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043189b
leave
ret
Function at 0x421c17
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
cmp byte [esi], bl
je 0x421c28
mov al, 1
jmp 0x421cac
mov al, byte [ebp + 8]
push edi
mov byte [esi + 1], al
mov eax, dword [ebp + 0xc]
lea edi, [esi + 4]
mov byte [esi], 1
call fcn.00408905
push 0x453ee8
lea eax, [ebp + 8]
call fcn.0040455c
mov edi, dword [edi]
push dword [edi - 0xc]
lea eax, [ebp + 8]
push edi
call fcn.004022f6
mov edi, dword [ebp + 8]
cmp byte [esi + 1], bl
je 0x421c85
push ebx
push 0x1388
mov eax, 0x7f90
push eax
push eax
push 0xff
push 6
push 3
push edi
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov dword [esi + 8], eax
cmp byte [esi + 1], bl
jne 0x421c9a
push ebx
push ebx
push 3
push ebx
push ebx
push 0xc0000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 8], eax
cmp dword [esi + 8], 0xffffffff
lea eax, [edi - 0x10]
setne bl
call fcn.00404645
mov al, bl
pop edi
pop ebx
pop ebp
ret 8

Function at 0x421ead
Capabilities:
Connect pipe
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor ebx, ebx
push edi
mov esi, eax
mov edi, ecx
cmp byte [ebp + 0xc], bl
jne 0x421ee4
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
jne 0x421ee4
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 0x217
neg eax
sbb eax, eax
inc eax
jne 0x421ee4
cmp byte [edi + 0x11], bl
je 0x421f38
mov eax, dword [edi + 0xc]
push ebx
lea ecx, [ebp + 0xc]
push ecx
push 0x7f90
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp + 0xc]
mov edx, dword [edi + 0xc]
shr ecx, 1
xor ebx, ebx
mov word [edx + ecx*2], bx
test eax, eax
je 0x421f38
cmp dword [ebp + 0xc], ebx
je 0x421f38
push dword [edi + 0xc]
lea eax, [ebp + 8]
call fcn.0040455c
mov edi, dword [ebp + 8]
add edi, 0xfffffff0
mov eax, edi
call fcn.00409c7d
add eax, 0x10
mov dword [esi], eax
mov eax, edi
call fcn.00404645
jmp 0x421f42
mov ecx, 0x45a140
call fcn.0040462a
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8

Function at 0x421f4b
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0xffffffff
push esi
mov esi, eax
jne 0x421f63
mov ecx, 0x45a140
call fcn.0040462a
jmp 0x421f91
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push 0
lea edx, [ebp + 0x10]
push edx
add ecx, ecx
push ecx
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x421f57
mov ecx, dword [ebp + 8]
push 1
push dword [ebp + 0xc]
mov eax, esi
call fcn.00421ead
mov eax, esi
pop esi
pop ebp
ret 0xc

Function at 0x421f98
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 + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
pop ecx
ret
Function at 0x422d16
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
xor esi, esi
inc esi
cmp byte [ebp + 0x10], 0
push edi
mov eax, esi
je 0x422d2f
mov eax, 0x101
lea ecx, [ebp - 0x14]
push ecx
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x14
mov dword [ebp - 0x10], esi
pop esi
push esi
mov edi, eax
call fcn.004318aa
push esi
mov ebx, eax
mov dword [ebp - 8], esi
call fcn.004318aa
push eax
mov dword [ebp - 4], esi
call fcn.004318b5
push esi
call fcn.004318aa
and dword [ebp + 0x10], 0
add esp, 0x10
mov dword [ebp - 0x1c], eax
test edi, edi
jne 0x422e48
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
mov dword [ebp - 0xc], str.InstallLanguage
dec dword [ebp - 0xc]
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
lea eax, [ebp - 0x10]
push eax
push 0
lea eax, [ebp - 8]
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp - 0x14]
call edi
mov dword [ebp - 0x18], eax
cmp eax, 0xea
jne 0x422df4
push ebx
call fcn.004318b5
push dword [ebp - 8]
call fcn.004318aa
push dword [ebp - 0x1c]
mov ebx, eax
call fcn.004318b5
push dword [ebp - 4]
call fcn.004318aa
add esp, 0x10
lea ecx, [ebp - 4]
push ecx
push eax
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x10]
push eax
push 0
lea eax, [ebp - 8]
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp - 0x14]
call edi
mov eax, dword [ebp - 0xc]
mov esi, ebx
sub esi, str.InstallLanguage
inc eax
mov cl, byte [esi + eax]
mov dl, byte [eax]
cmp cl, dl
jl 0x422e3b
jg 0x422e3b
test cl, cl
je 0x422e13
test dl, dl
jne 0x422dff
mov esi, dword [ebp - 0x1c]
or dword [ebp + 0x10], 0xffffffff
lea eax, [ebp + 0x10]
call fcn.0040133a
mov esi, eax
push dword [ebp - 0x1c]
call fcn.004318b5
push ebx
call fcn.004318b5
pop ecx
pop ecx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
inc dword [ebp + 0x10]
cmp dword [ebp - 0x18], 0
je 0x422d92
xor esi, esi
jmp 0x422e24