joyce8/EMBER2024-capa huggingface dataset:
Function at 0x454d26
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
and dword [ebp - 4], 0
push ebx
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, ecx
lea ecx, [ebp - 4]
push ecx
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 0xc]
push ecx
mov esi, eax
mov eax, dword [ebx]
push 0
push eax
push dword [ebp + 8]
call edi
mov dword [ebp - 8], eax
cmp eax, 0xea
jne 0x454d88
push dword [ebp - 4]
call fcn.00407301
mov ebx, dword [ebx]
lea eax, [ebp - 4]
push eax
call fcn.00405d11
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push ebx
push dword [ebp + 8]
call edi
mov dword [ebp - 8], eax
or eax, 0xffffffff
call fcn.00416360
xor eax, eax
cmp dword [ebp - 8], eax
pop edi
pop esi
setne al
pop ebx
leave
ret 4

Function at 0x4558fd
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
cmp byte [esi], bl
je 0x45590e
mov al, 1
jmp 0x455991
mov eax, dword [ebp + 8]
push edi
lea edi, [esi + 4]
mov byte [esi], 1
mov byte [esi + 1], bl
call fcn.00406165
push str..pipeToServer
lea eax, [ebp + 8]
push eax
call fcn.0040f504
mov edi, dword [edi]
push dword [edi - 0xc]
lea eax, [ebp + 8]
push edi
call fcn.0042e514
pop edi
cmp byte [esi + 1], bl
je 0x455969
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 0x455980
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.004071b8
mov al, bl
pop ebx
pop ebp
ret 4

Function at 0x455ac2
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [esi + 0xc]
push ebx
push 0
lea ecx, [ebp + 8]
push ecx
push 0x7f90
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp + 8]
mov edx, dword [esi + 0xc]
xor ebx, ebx
shr ecx, 1
mov word [edx + ecx*2], bx
pop ebx
test eax, eax
je 0x455b18
cmp dword [ebp + 8], 0
je 0x455b18
push dword [esi + 0xc]
lea eax, [ebp - 4]
push eax
call fcn.0040f504
lea eax, [ebp - 4]
push eax
push edi
call fcn.00416651
lea ecx, [ebp - 4]
call fcn.004071b8
jmp 0x455b1e
push edi
call fcn.00407441
mov eax, edi
leave
ret 4

Function at 0x455b24
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0xffffffff
push edi
mov edi, eax
jne 0x455b38
push edi
call fcn.00407441
jmp 0x455b5f
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push 0
lea edx, [ebp + 0xc]
push edx
add ecx, ecx
push ecx
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x455b30
push dword [ebp + 8]
call fcn.00455ac2
mov eax, edi
pop edi
pop ebp
ret 8
Function at 0x455eec
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov ebx, ecx
push edi
xor esi, esi
mov edi, eax
mov dword [ebx + 0x10], edi
cmp dword [ebx + 4], esi
je 0x455f79
cmp edi, esi
je 0x455f24
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push eax
lea esi, [ebx + 0x14]
call fcn.004093fc
push dword [ebx + 0x14]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x20]
xor esi, esi
lea eax, [ebp - 4]
push eax
push esi
push ebx
push 0x455f80
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebx, eax
cmp edi, esi
je 0x455f44
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
push 0xffffffffffffffff
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 4]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x455f6e
mov edi, dword [ebp - 4]
cmp ebx, esi
je 0x455f6a
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
jmp 0x455f7b
cmp ebx, esi
je 0x455f79
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x456465
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 0x2e
mov esi, ebx
mov edi, eax
call fcn.0042e22b
test eax, eax
jg 0x456487
mov al, 1
jmp 0x4565c3
lea ecx, [ebp - 8]
push ecx
push ebx
mov ecx, eax
call fcn.0042e282
lea eax, [ebp - 0x14]
push eax
call fcn.00407441
push dword [ebp - 8]
mov eax, dword [ebp + 0xc]
push dword [ebx]
push dword [eax]
lea eax, [ebp - 0x14]
push str.__verbose___log_file__s____remove_pack_file___s____s_
push eax
call fcn.0042ec93
add esp, 0x14
cmp dword [edi + 0x10], 0
je 0x4564c6
mov ecx, dword [edi + 0x10]
mov eax, dword [ecx]
push ebx
call dword [eax + 0x14]
push 0
push 0x8000008
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [edi + 0xc]
push eax
call fcn.004534a5
add esp, 0x14
lea esi, [ebp - 8]
mov byte [ebp - 1], 1
call fcn.0043f720
test al, al
je 0x4564fe
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x456594
lea eax, [ebp - 0x10]
push eax
call fcn.00407441
push dword [ebp + 0xc]
lea ecx, [ebp - 0x10]
call fcn.00453b15
pop ecx
lea eax, [ebp - 0xc]
push eax
call fcn.00407441
push 0xca
lea esi, [ebp - 0x18]
call fcn.0045419c
mov eax, dword [ebp - 8]
mov ebx, dword [eax - 0xc]
mov eax, dword [ebp - 0x18]
pop ecx
push 0x5c
lea esi, [ebp - 8]
mov dword [ebp - 0x1c], eax
call fcn.0042e22b
mov ecx, ebx
sub ecx, eax
lea eax, [ebp - 0x20]
push eax
mov eax, esi
call fcn.0044b327
push dword [ebp - 0x10]
push dword [eax]
lea eax, [ebp - 0xc]
push dword [ebp - 0x1c]
push eax
call fcn.0042ec93
add esp, 0x10
lea ecx, [ebp - 0x20]
call fcn.004071b8
push 0
lea esi, [ebp - 0xc]
call fcn.0044b4be
pop ecx
lea ecx, [ebp - 0x18]
mov byte [ebp - 1], 0
call fcn.004071b8
mov ecx, esi
call fcn.004071b8
lea ecx, [ebp - 0x10]
call fcn.004071b8
mov ebx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [edi + 0x10], 0
je 0x4565b0
mov edi, dword [edi + 0x10]
mov eax, dword [edi]
push ebx
mov ecx, edi
call dword [eax + 0x18]
lea ecx, [ebp - 0x14]
call fcn.004071b8
lea ecx, [ebp - 8]
call fcn.004071b8
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x456694
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
mov dword [edi + 0x10], eax
cmp dword [eax], ebx
je 0x4566c7
push ebx
push ebx
push ebx
push ebx
lea esi, [edi + 0x14]
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push eax
call fcn.004093fc
mov eax, dword [edi + 0x10]
mov ecx, dword [eax]
push dword [esi]
mov eax, dword [ecx]
call dword [eax + 0x10]
lea eax, [ebp - 4]
push eax
push ebx
push edi
push 0x4568ee
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
mov eax, dword [edi + 0x10]
mov dword [ebp - 0x18], esi
cmp dword [eax], ebx
je 0x45671b
call fcn.00456757
mov ebx, dword [edi + 4]
mov esi, eax
mov eax, dword [edi]
mov dword [ebp - 0xc], edx
call fcn.00446979
add esi, eax
adc dword [ebp - 0xc], edx
mov eax, dword [edi + 0x10]
push dword [ebp - 0xc]
mov ecx, dword [eax]
mov eax, dword [ecx]
push esi
call dword [eax]
mov eax, dword [edi + 0x10]
mov ecx, dword [eax]
mov eax, dword [ecx]
call dword [eax + 8]
mov esi, dword [ebp - 0x18]
xor ebx, ebx
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 4]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x456745
mov edi, dword [ebp - 4]
cmp esi, ebx
je 0x456741
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
jmp 0x456752
cmp esi, ebx
je 0x456750
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x456987
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x18
mov eax, dword [ebx + 0x28]
push esi
push edi
push dword [eax]
lea esi, [ebx + 4]
push dword [esi]
call dword [sym.imp.USER32.dll_SetWindowTextW]
push dword [esi]
call fcn.00456b16
mov dword [esp], 0x414
push dword [esi]
mov edi, eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push 0x170
push eax
call edi
push esi
call fcn.00407526
push dword [esi]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push 0x412
push dword [esi]
call dword [sym.imp.USER32.dll_GetDlgItem]
and dword [esp + 0xc], 0
mov dword [esp + 0x10], eax
mov eax, dword [ebx + 0x24]
mov eax, dword [eax + 4]
mov dword [esp + 0x18], eax
test eax, eax
jle 0x456a87
push dword [esp + 0xc]
mov ecx, dword [ebx + 0x24]
call fcn.00445d64
movzx eax, word [eax]
push 0
push 0x49fc88
push 2
push eax
mov dword [esp + 0x2c], eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov esi, eax
lea eax, [esi - 1]
push eax
push 0x78
pop ecx
lea edx, [esp + 0x18]
call fcn.004326c5
push esi
lea esi, [esp + 0x18]
call fcn.00405d11
push eax
push 2
push dword [esp + 0x28]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
push dword [esp + 0x14]
push 0
push 0x143
push dword [esp + 0x1c]
call edi
push dword [esp + 0x1c]
push eax
push 0x151
push dword [esp + 0x1c]
call edi
mov ecx, esi
call fcn.004071b8
inc dword [esp + 0xc]
mov eax, dword [esp + 0xc]
cmp eax, dword [esp + 0x18]
jl 0x456a01
xor esi, esi
cmp dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
jle 0x456ab4
push 0
push esi
push 0x150
push dword [esp + 0x1c]
call edi
movzx ecx, word [ebx + 0x2c]
cmp ecx, eax
jne 0x456aad
mov dword [esp + 0x1c], esi
inc esi
cmp esi, dword [esp + 0x18]
jl 0x456a93
push 0
push dword [esp + 0x20]
push 0x14e
push dword [esp + 0x1c]
call edi
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x457798
Capabilities:
Create process on windows
Query service status
Start service

Disassembly:
push ebp
lea ebp, [esp - 0x304]
sub esp, 0x384
mov eax, dword [0x4bf490]
xor eax, ebp
mov dword [ebp + 0x300], eax
push esi
push edi
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 0x1c], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0xc], 1
jne 0x457863
push 0x4a8eac
push str.SAGEWINDOWCLASS
call dword [sym.imp.USER32.dll_FindWindowW]
test eax, eax
je 0x4577eb
xor eax, eax
jmp 0x4578c6
push 0x44
pop esi
push esi
xor edi, edi
lea eax, [ebp - 0x80]
push edi
push eax
call fcn.004773f0
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp + 0xf8]
push eax
push 0x104
push edi
push str.mstask.exe
push edi
mov dword [ebp - 0x80], esi
call dword [sym.imp.KERNEL32.dll_SearchPathW]
test eax, eax
jne 0x45782d
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4578c6
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x80]
push eax
push edi
push edi
push 0x210
push edi
push edi
push edi
push edi
lea eax, [ebp + 0xf8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x457822
push dword [ebp - 0x30]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x2c]
call esi
jmp 0x4577e4
push 1
xor edi, edi
push edi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
cmp esi, edi
je 0x457822
push ebx
push 0x14
push str.Schedule
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ebx, eax
call esi
cmp ebx, edi
je 0x4578b8
lea eax, [ebp - 0x3c]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x4578b5
cmp dword [ebp - 0x38], 4
je 0x4578c0
push edi
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x4578c0
push ebx
call esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4578c5
push ebx
call esi
xor eax, eax
pop ebx
mov ecx, dword [ebp + 0x300]
pop edi
xor ecx, ebp
pop esi
call fcn.00476b4b
add ebp, 0x304
leave
ret
Function at 0x457e39
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push esi
call fcn.00453c0b
test eax, eax
je 0x457ed6
lea eax, [esp + 8]
push eax
xor esi, esi
push 0x28
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x457e86
cmp dword [esp + 8], esi
je 0x457e82
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x457eed
lea eax, [esp + 0x14]
push eax
push str.SeShutdownPrivilege
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
push esi
push esi
push esi
lea eax, [esp + 0x1c]
push eax
push esi
push dword [esp + 0x1c]
mov dword [esp + 0x28], 1
mov dword [esp + 0x34], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x457e72
cmp dword [esp + 8], esi
je 0x457edb
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x457edb
call fcn.00457ef2
push 0x80040002
push 6
call dword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
setne al
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x457ef2
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x248
mov eax, dword [0x4bf490]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
push str.CreateToolhelp32Snapshot
push ebx
call esi
test eax, eax
je 0x458015
push 0
push 2
call eax
mov dword [ebp - 0x244], eax
cmp eax, 0xffffffff
jne 0x457f48
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x458015
lea eax, [ebp - 0x23c]
push eax
mov eax, 0x4c25b4
call fcn.0044ac20
mov dword [esp], str.Process32FirstW
push ebx
call esi
push str.Process32NextW
push ebx
mov edi, eax
call esi
push 0x228
mov dword [ebp - 0x248], eax
lea eax, [ebp - 0x234]
push 0
push eax
call fcn.004773f0
add esp, 0xc
lea eax, [ebp - 0x238]
push eax
push dword [ebp - 0x244]
mov dword [ebp - 0x238], 0x22c
call edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x457ff5
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x23c]
push eax
call fcn.0044a3b2
test eax, eax
jne 0x457fe2
push dword [ebp - 0x230]
push eax
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test esi, esi
je 0x457fe2
push esi
call edi
lea eax, [ebp - 0x238]
push eax
push dword [ebp - 0x244]
call dword [ebp - 0x248]
test eax, eax
jne 0x457faa
lea ecx, [ebp - 0x23c]
call fcn.004071b8
cmp dword [ebp - 0x244], 0
je 0x458015
push dword [ebp - 0x244]
call edi
test ebx, ebx
je 0x458020
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00476b4b
leave
ret
Function at 0x45c0d5
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
lea eax, [ebp - 0x14]
push eax
call fcn.00407441
mov edi, dword [ebp + 8]
mov eax, dword [edi + 0x80]
mov ecx, dword [eax]
mov ebx, dword [ebp + 0x10]
mov eax, dword [ebx + 0x10]
add ecx, 4
call fcn.0044a475
add eax, 0x1c
push eax
lea eax, [ebp - 8]
push eax
call fcn.00416651
mov eax, dword [ebp - 8]
cmp dword [eax - 0xc], 0
je 0x45c1f0
push dword [edi + 0x84]
lea eax, [ebp - 4]
push eax
call fcn.00416651
lea eax, [ebp - 4]
call fcn.0043e5d0
mov eax, dword [ebx + 0x14]
push dword [eax - 0xc]
push eax
lea eax, [ebp - 4]
call fcn.0042e514
lea eax, [ebp - 4]
call fcn.0043e5d0
lea eax, [ebp - 0x10]
push eax
call fcn.004579b8
mov eax, dword [eax]
pop ecx
push dword [eax - 0xc]
push eax
lea eax, [ebp - 4]
call fcn.0042e514
lea ecx, [ebp - 0x10]
call fcn.004071b8
xor bl, bl
mov esi, edi
call fcn.0045c29e
push 0x8a
lea esi, [ebp - 0xc]
call fcn.0045419c
pop ecx
push dword [ebp - 0xc]
push 2
push dword [edi + 0xf4]
push dword [ebp + 0xc]
call fcn.0042253c
lea eax, [ebp - 8]
push 0
push eax
lea edx, [ebp - 4]
call fcn.00453436
mov bl, al
pop ecx
pop ecx
test bl, bl
jne 0x45c1dc
lea esi, [ebp - 4]
call fcn.00405d11
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0x5c
call fcn.0042e22b
lea ecx, [ebp - 0x10]
push ecx
mov ecx, esi
push ecx
mov ecx, eax
call fcn.0042e282
push dword [eax]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
lea ecx, [ebp - 0x10]
call fcn.004071b8
lea ecx, [ebp - 0xc]
call fcn.004071b8
lea ecx, [ebp - 4]
call fcn.004071b8
test bl, bl
je 0x45c218
push dword [edi + 0xf4]
push dword [ebp + 0xc]
call fcn.00422df6
mov ecx, dword [edi + 0x80]
mov ecx, dword [ecx]
add ecx, 4
call fcn.0044a475
mov byte [eax + 0x5c], 1
mov byte [ebp + 0xf], 1
jmp 0x45c272
inc dword [edi + 0x17c]
lea eax, [ebp - 4]
push eax
call fcn.00407441
push 0x8b
lea esi, [ebp - 0x10]
call fcn.0045419c
pop ecx
lea edi, [ebp - 4]
call fcn.00406165
mov ecx, esi
call fcn.004071b8
push dword [ebp - 4]
mov eax, dword [ebp + 8]
push 2
push dword [eax + 0xf4]
push dword [ebp + 0xc]
call fcn.0042253c
mov eax, dword [ebp + 0x10]
mov ecx, edi
mov dword [eax + 0xc], 1
mov byte [ebp + 0xf], 0
call fcn.004071b8
mov edi, dword [ebp + 8]
mov eax, dword [ebp - 8]
cmp dword [eax - 0xc], 0
je 0x45c284
mov bl, 1
mov esi, edi
call fcn.0045c29e
lea ecx, [ebp - 8]
call fcn.004071b8
lea ecx, [ebp - 0x14]
call fcn.004071b8
mov al, byte [ebp + 0xf]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x45e1a0
Capabilities:
Create thread

Disassembly:
push ecx
push ebx
push esi
push edi
mov edi, eax
mov esi, dword [edi + 0x74]
call fcn.0044e886
mov eax, dword [edi + 0x74]
xor esi, esi
push esi
push 0x3025
call fcn.0044e91f
mov eax, dword [edi + 0x74]
push esi
push 0x3023
call fcn.0044e91f
mov eax, dword [edi + 0x74]
push esi
push 0x3024
call fcn.0044e91f
mov ebx, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x401
push dword [edi + 4]
call ebx
push 1
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
push 0x7f04
push edi
call fcn.0045dbdf
push edi
call fcn.0045d99f
mov dword [edi + 0x88], esi
push 0
lea esi, [edi + 0x80]
push dword [esi]
call fcn.0044ddda
test eax, eax
jne 0x45d968
mov esi, dword [esi]
add esi, 0x28
add edi, 0x7c
mov byte [esi + 0x15], al
mov byte [esi + 0x14], al
mov dword [esi + 0xc], edi
call dword [sym.imp.USER32.dll_GetActiveWindow]
mov dword [esi + 0x18], eax
lea eax, [esp + 0xc]
push eax
xor eax, eax
push eax
push esi
push 0x457c93
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
jmp 0x45d998
mov eax, dword [edi + 0x74]
mov esi, dword [sym.imp.USER32.dll_GetParent]
mov byte [eax + 0x85], 1
push dword [edi + 4]
call esi
push 2
push eax
call ebx
push dword [edi + 4]
mov ebx, eax
call esi
push ebx
push 2
push 0x111
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
pop edi
pop esi
xor eax, eax
pop ebx
pop ecx
ret
push esi
mov esi, eax
mov eax, dword [edi + 4]
cmp dword [esi], eax
je 0x45e1bd
push eax
call dword [sym.imp.USER32.dll_GetParent]
cmp dword [esi], eax
je 0x45e1bd
and dword [ebx], 0
xor eax, eax
inc eax
pop esi
ret
mov esi, dword [esi + 8]
lea ecx, [esi + 0xd1]
xor eax, eax
cmp ecx, 9
ja case.0x45e1cd.204
jmp dword [ecx*4 + 0x45e1f4]
mov eax, edi
pop esi
jmp 0x45d8b9
mov eax, 0xca
pop esi
ret
mov ecx, dword [edi + 0x74]
mov byte [ecx + 0x85], al
pop esi
ret
mov dword [ebx], eax
pop esi
ret

Function at 0x45e476
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push dword [edi + 4]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
jne 0x45e48c
xor al, al
jmp 0x45e4f9
push ebx
push esi
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov eax, dword [eax - 0xc]
lea esi, [eax + eax]
lea eax, [esi + 2]
push eax
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
mov dword [edi], ebx
test ebx, ebx
je 0x45e4c1
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 4], eax
test eax, eax
jne 0x45e4c5
xor al, al
jmp 0x45e4f7
mov ecx, dword [ebp + 8]
push esi
push dword [ecx]
push eax
call fcn.00478cd0
mov ecx, dword [ebp - 4]
add esp, 0xc
xor eax, eax
push ebx
mov word [esi + ecx], ax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [edi]
push dword [edi + 8]
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov al, 1
pop esi
pop ebx
leave
ret 4
Function at 0x46576d
Capabilities:
Write file on windows

Disassembly:
push 0x30
mov eax, 0x49346c
call fcn.0047ab6e
push dword [ebp + 0xc]
push dword [ebp + 8]
call sub.msi.dll_MsiRecordGetStringW
push ecx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], esp
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x1c], esp
push eax
xor ebx, ebx
xor edi, edi
call fcn.0043c640
mov dword [ebp - 4], ebx
lea eax, [ebp - 0xd]
push eax
lea eax, [ebp - 0x3c]
push eax
mov byte [ebp - 0xd], bl
call fcn.004670f5
xor eax, eax
inc eax
mov dword [ebp - 4], eax
push ebx
push 0x80
push 2
push ebx
push eax
push 0x40000000
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], ebx
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x2c]
sub eax, dword [ebp - 0x30]
mov dword [ebp - 0x14], 0xc800
jne 0x4657ec
call fcn.00476d83
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x30]
push dword [ebp + 0xc]
push dword [ebp + 8]
call sub.msi.dll_MsiRecordSetStringA
test eax, eax
jne 0x465829
mov eax, dword [ebp - 0x2c]
sub eax, dword [ebp - 0x30]
jne 0x46580f
call fcn.00476d83
push ebx
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x14]
push dword [ebp - 0x30]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
add edi, dword [ebp - 0x14]
cmp dword [ebp - 0x14], ebx
jne 0x4657d8
cmp dword [ebp - 0x18], edi
sete byte [ebp - 0xd]
mov byte [ebp - 4], 1
cmp esi, ebx
je 0x465842
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x24], ebx
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x3c]
push eax
call fcn.0043c3c0
mov al, byte [ebp - 0xd]
call fcn.0047ac46
ret

Function at 0x4696ee
Capabilities:
Create pipe

Disassembly:
push 0x20
mov eax, 0x493246
call fcn.0047abd7
mov eax, dword [ebp + 8]
xor ebx, ebx
cmp byte [esi + 0x1c], bl
jne 0x46978e
push 0xffffffffffffffff
push ebx
mov byte [esi + 0x1d], cl
push eax
lea ecx, [esi + 0x20]
mov byte [esi + 0x1c], 1
call fcn.00403486
lea edi, [ebp - 0x2c]
mov ecx, esi
call fcn.00469bd9
mov dword [ebp - 4], ebx
cmp byte [esi + 0x1d], bl
je 0x46975e
cmp dword [ebp - 0x14], 8
mov ecx, dword [ebp - 0x28]
jae 0x469739
lea ecx, [ebp - 0x28]
push ebx
push 0x1388
mov eax, 0x400
push eax
push eax
push 0xff
push 6
push 3
push ecx
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov dword [esi + 0x3c], eax
cmp byte [esi + 0x1d], bl
jne 0x46977f
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x46976a
lea eax, [ebp - 0x28]
push ebx
push ebx
push 3
push ebx
push ebx
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 0x3c], eax
or dword [ebp - 4], 0xffffffff
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.0040292b
mov al, 1
call fcn.0047ac5a
ret 4