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

Disassembly:
push 8
mov eax, 0x50ae14
call fcn.004d2c19
mov eax, dword [ebp + 8]
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push ebx
push 0x80000000
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [ebp - 0x14], edi
cmp edi, 0xffffffff
je 0x49771b
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x10], eax
cmp eax, 0xffffffff
jne 0x497728
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x497841
inc eax
push 0x56a5cc
push eax
call fcn.004d271e
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x497744
push 8
pop ebx
jmp 0x49783a
push ebx
lea eax, [ebp + 8]
mov dword [ebp + 8], ebx
push eax
push dword [ebp - 0x10]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x497768
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x49783a
mov ecx, dword [ebp + 0x10]
call fcn.004092fd
mov eax, dword [ebp + 8]
test eax, eax
je 0x49783a
mov ecx, dword [ebp + 0xc]
push str.utf_8
mov byte [eax + esi], bl
call fcn.004504db
test eax, eax
jne 0x497799
push 0xfde9
jmp 0x49782f
mov ecx, dword [ebp + 0xc]
push str.utf_16
call fcn.004504db
test eax, eax
jne 0x4977df
mov edi, dword [ebp + 8]
shr edi, 1
call fcn.00406d01
push eax
push edi
push esi
lea ecx, [ebp + 0xc]
call fcn.00445221
mov ecx, dword [ebp + 0x10]
lea eax, [ebp + 0xc]
push eax
call fcn.004434b9
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp + 0xc]
lea ecx, [ecx - 0x10]
call fcn.00406df6
mov edi, dword [ebp - 0x14]
jmp 0x49783a
mov ecx, dword [ebp + 0xc]
push str.ISO_8859_1
call fcn.004504db
test eax, eax
jne 0x4977f7
push 0x6faf
jmp 0x49782f
mov ecx, dword [ebp + 0xc]
push str.US_ASCII
call fcn.004504db
test eax, eax
jne 0x49782e
push dword [ebp + 8]
lea ecx, [ebp + 0xc]
push esi
call fcn.004992ed
mov ecx, dword [ebp + 0x10]
push eax
call fcn.004434b9
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp + 0xc]
lea ecx, [ecx - 0x10]
call fcn.00406df6
jmp 0x49783a
push ebx
mov edx, dword [ebp + 0x10]
mov ecx, esi
call fcn.0046d350
pop ecx
push esi
call fcn.004d26a2
pop ecx
test edi, edi
je 0x49784c
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
call fcn.004d2be2
ret 0xc
Function at 0x497bfa
Capabilities:
Get file size

Disassembly:
push 0xc
mov eax, 0x50ae37
call fcn.004d2c19
mov ebx, ecx
mov edi, dword [ebp + 0x10]
mov ecx, edi
call fcn.004992af
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push 0
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
xor ecx, ecx
mov dword [ebp + 0x10], eax
cmp byte [ebx + 0x40], cl
mov byte [ebx + 0x10], 1
cmovne ecx, eax
mov dword [ebp + 0xc], ecx
lea ecx, [ebp - 0x14]
call fcn.00406e18
lea eax, [ebp - 0x18]
mov ecx, ebx
push eax
push dword [ebp + 0x14]
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
call fcn.00497b5d
mov esi, eax
mov byte [ebx + 0x10], 0
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x497c6d
cmp dword [ebp + 0xc], eax
mov ecx, 0x2ee2
cmovne esi, ecx
test esi, esi
jne 0x497c83
mov esi, dword [ebx + 4]
cmp esi, dword [edi]
je 0x497c81
mov ecx, edi
call fcn.004992af
mov dword [edi], esi
xor esi, esi
lea eax, [ebp - 0x14]
mov dword [ebp + 0xc], eax
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.00406df6
mov eax, esi
call fcn.004d2be2
ret 0x10

Function at 0x497ca2
Capabilities:
Read data from internet
Receive data

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, ecx
push dword [edi + 0x64]
lea ebx, [edi + 0x38]
mov byte [ebx], 0
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov ebp, dword [esp + 0x20]
push ebp
push dword [esp + 0x20]
mov byte [edi + 0x41], 0
push dword [esp + 0x20]
mov dword [edi + 0x34], 3
push dword [esp + 0x20]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x497d2e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x497d30
jmp 0x497d19
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x497d1e
push ebx
lea ecx, [edi + 0xc]
call fcn.004a1ff0
lea ecx, [edi + 0xc]
call fcn.004a1fd9
test al, al
jne 0x497d37
push 0xa
push dword [edi + 0x64]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp byte [ebx], 0
je 0x497cec
cmp dword [edi + 0x30], 0
mov eax, dword [edi + 0x2c]
je 0x497d30
test eax, eax
jle 0x497d2e
mov dword [ebp], eax
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret 0x10
mov eax, 0xe0000008
jmp 0x497d30
Function at 0x497d3e
Capabilities:
Query remote server for available data

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, ecx
push dword [edi + 0x64]
lea ebx, [edi + 0x38]
mov byte [ebx], 0
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov ebp, dword [esp + 0x18]
xor eax, eax
push eax
push eax
push ebp
push dword [esp + 0x20]
mov byte [edi + 0x41], al
mov dword [edi + 0x34], 8
call dword [sym.imp.WININET.dll_InternetQueryDataAvailable]
test eax, eax
jne 0x497dc5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x497dc7
jmp 0x497db0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x497db5
push ebx
lea ecx, [edi + 0xc]
call fcn.004a1ff0
lea ecx, [edi + 0xc]
call fcn.004a1fd9
test al, al
jne 0x497dce
push 0xa
push dword [edi + 0x64]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp byte [ebx], 0
je 0x497d83
cmp dword [edi + 0x30], 0
mov eax, dword [edi + 0x2c]
je 0x497dc7
test eax, eax
jle 0x497dc5
mov dword [ebp], eax
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret 8
mov eax, 0xe0000008
jmp 0x497dc7
Function at 0x498003
Capabilities:
Connect network resource

Disassembly:
push 0x3c
mov eax, 0x50aefd
call fcn.004d2c19
mov dword [ebp - 0x1c], ecx
call fcn.00406d01
push eax
lea ecx, [ebp - 0x14]
call fcn.00406b29
or dword [ebp - 4], 0xffffffff
call fcn.00406d01
push eax
lea ecx, [ebp - 0x10]
call fcn.00406b29
or dword [ebp - 4], 0xffffffff
xor edi, edi
mov edx, dword [ebp + 0xc]
lea ecx, [ebp - 0x18]
mov ebx, dword [ebp + 0x10]
mov esi, edi
call fcn.0046f880
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0x14]
test ecx, ecx
je 0x498056
mov eax, dword [ecx]
call dword [eax]
test ebx, ebx
je 0x49809f
push 0x20
lea eax, [ebp - 0x48]
push edi
push eax
call fcn.004d3e90
mov eax, dword [ebp - 0x18]
xor ecx, ecx
inc ecx
mov dword [ebp - 0x38], edi
add esp, 0xc
mov dword [ebp - 0x44], ecx
cmp dword [eax - 4], ecx
jle 0x498088
push dword [eax - 0xc]
lea ecx, [ebp - 0x18]
call fcn.00406951
mov eax, dword [ebp - 0x18]
push edi
push ebx
push dword [ebp + 0x14]
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x48]
push eax
mov dword [ebp - 0x2c], edi
call dword [sym.imp.MPR.dll_WNetAddConnection2W]
mov esi, eax
test esi, esi
jne 0x4980bc
push dword [ebp + 0x1c]
mov ecx, dword [ebp + 0xc]
lea edx, [ebp - 0x28]
call fcn.004709e0
mov esi, eax
pop ecx
test esi, esi
je 0x498177
cmp esi, 0x52e
je 0x4980d5
cmp esi, 0x56
je 0x4980d5
cmp esi, 0x89a
jne 0x498182
push str.Local_Network_Server
lea ecx, [ebp - 0x20]
call fcn.00409419
call fcn.00406d01
push eax
lea ecx, [ebp + 0x10]
call fcn.00406b29
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x10]
mov ecx, dword [ebp - 0x1c]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp + 0x10]
push eax
push edi
lea eax, [ebp - 0x20]
push eax
push dword [ebp + 8]
push edi
call fcn.00499163
mov bl, al
neg bl
sbb bl, bl
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp + 0x10]
add ecx, 0xfffffff0
call fcn.00406df6
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x20]
lea ecx, [ecx - 0x10]
call fcn.00406df6
add bl, 1
jne 0x49817e
mov ebx, dword [ebp - 0x14]
cmp dword [ebx - 4], 1
jle 0x498151
push dword [ebx - 0xc]
lea ecx, [ebp - 0x14]
call fcn.00406951
mov ebx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
mov dword [ebp + 0x14], eax
cmp dword [eax - 4], 1
jle 0x498056
push dword [eax - 0xc]
lea ecx, [ebp - 0x10]
call fcn.00406951
mov eax, dword [ebp - 0x10]
mov dword [ebp + 0x14], eax
jmp 0x498056
mov eax, dword [ebp + 0x18]
mov dword [eax], edi
jmp 0x498180
mov edi, esi
mov esi, edi
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
call fcn.00406df6
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.00406df6
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.00406df6
mov eax, esi
call fcn.004d2be2
ret 0x18
Function at 0x498df8
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push 0x3c
lea eax, [ebp - 0x3c]
push 0
push eax
call fcn.004d3e90
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x3c]
add esp, 0xc
mov dword [ebp - 0x3c], 0x3c
push ecx
push 0
push 0
push dword [eax]
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
jne 0x498e34
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x498e3e
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x30]
mov dword [ecx], eax
xor eax, eax
mov esp, ebp
pop ebp
ret 8

Function at 0x49956c
Capabilities:
Create thread

Disassembly:
push 0xc
mov eax, 0x50a652
call fcn.004d2c19
mov esi, ecx
mov dword [ebp - 0x14], esi
lea ebx, [esi + 4]
mov ecx, dword [ebx]
call fcn.0046bb30
push ecx
mov ecx, ebx
call fcn.00421149
mov eax, dword [esi + 0x28]
mov edi, dword [sym.imp.USER32.dll_SetWindowTextW]
push dword [eax]
push dword [ebx]
call edi
call fcn.00406d01
push eax
lea ecx, [ebp - 0x10]
call fcn.00406b29
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
push 0xdc
call fcn.0040928a
push 0x40a
push dword [ebx]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, dword [ebp - 0x10]
push esi
push eax
call edi
mov edi, dword [ebp - 0x14]
push dword [ebx]
lea ecx, [edi + 0x40]
call fcn.0049a98e
push dword [ebx]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
lea eax, [ebp - 0x18]
push eax
xor eax, eax
push eax
push edi
push 0x499614
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [edi + 0x30], eax
or dword [ebp - 4], 0xffffffff
lea ecx, [esi - 0x10]
call fcn.00406df6
xor eax, eax
call fcn.004d2be2
ret 0x10
Function at 0x499ef1
Capabilities:
Get graphical window text

Disassembly:
push ecx
push ecx
push ebx
push esi
push edi
xor edi, edi
lea ebx, [ecx - 0x40]
xor esi, esi
inc edi
test ecx, ecx
jne 0x499f04
mov ebx, esi
push ebp
push dword [esp + 0x1c]
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
mov dword [esp + 0x18], eax
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov ecx, dword [esp + 0x20]
mov ebp, eax
or dword [esp + 0x10], 0xffffffff
push ebp
call fcn.0042e730
mov ecx, eax
test ecx, ecx
je 0x499f52
lea eax, [ebp + 1]
push eax
push ecx
push dword [esp + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [esp + 0x20]
push 0xffffffffffffffff
mov dword [esp + 0x14], eax
call fcn.00406aa7
cmp dword [esp + 0x10], ebp
pop ebp
jge 0x499f7f
push 0xffffffffffffffff
mov edi, esi
call dword [sym.imp.USER32.dll_MessageBeep]
add ebx, 0x40
je 0x499f6b
lea esi, [ebx - 0x40]
push dword [esp + 0x18]
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, edi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
ret 0x18

Function at 0x49a29b
Capabilities:
Hide graphical window

Disassembly:
push edi
test ecx, ecx
je 0x49a2a5
lea edi, [ecx - 0x20]
jmp 0x49a2a7
xor edi, edi
cmp byte [ecx + 0x1c], 0
je 0x49a2dd
push 0xe801
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
cmp dword [esp + 0xc], 2
jne 0x49a2cd
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x49a2e4
cmp dword [esp + 0xc], 0
jne 0x49a2dd
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
cmp dword [esp + 0xc], 1
je 0x49a2fb
mov ecx, dword [esp + 0x10]
mov eax, ecx
shr eax, 0x10
cwde
push eax
movsx eax, cx
lea ecx, [edi + 0x20]
push eax
call fcn.00492f2f
xor eax, eax
pop edi
ret 0x10

Function at 0x49a7bd
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x5651c0]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x1c], 0
lea eax, [ebp - 0x1c]
and dword [ebp - 0x18], 0
push ebx
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x49a839
lea eax, [ebp - 0x10]
push eax
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
xor ecx, ecx
mov dword [ebp - 8], 2
push ecx
push ecx
push ecx
lea eax, [ebp - 0x14]
xor ebx, ebx
push eax
push ecx
push dword [ebp - 0x1c]
inc ebx
mov dword [ebp - 0x14], ebx
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x49a839
push 0x80040002
push 6
call dword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
jne 0x49a83b
xor bl, bl
cmp dword [ebp - 0x1c], 0
je 0x49a84a
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov al, bl
xor ecx, ebp
pop ebx
call fcn.004d207d
mov esp, ebp
pop ebp
ret
Function at 0x49b4e8
Capabilities:
Hide graphical window

Disassembly:
push edi
test ecx, ecx
je 0x49b4f2
lea edi, [ecx - 0x54]
jmp 0x49b4f4
xor edi, edi
cmp byte [ecx + 0x1c], 0
je 0x49b52a
push 0xe801
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
cmp dword [esp + 0xc], 2
jne 0x49b51a
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x49b531
cmp dword [esp + 0xc], 0
jne 0x49b52a
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
cmp dword [esp + 0xc], 1
je 0x49b548
mov ecx, dword [esp + 0x10]
mov eax, ecx
shr eax, 0x10
cwde
push eax
movsx eax, cx
lea ecx, [edi + 0x54]
push eax
call fcn.0049b962
xor eax, eax
pop edi
ret 0x10
Function at 0x49ca34
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x24
mov eax, dword [0x5651c0]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
mov ebx, dword [sym.imp.USER32.dll_GetDlgItem]
push ebp
push esi
push edi
mov ebp, ecx
push 0x3f7
push dword [ebp + 4]
call ebx
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
push 0
push eax
call edi
push 0x3eb
push dword [ebp + 4]
call ebx
mov esi, eax
push 0
push esi
call edi
push 0x3ec
push dword [ebp + 4]
call ebx
push 0
push eax
call edi
mov edi, dword [sym.imp.USER32.dll_GetWindowRect]
lea eax, [esp + 0x10]
push eax
lea ebx, [ebp + 0x8c]
xorps xmm0, xmm0
push dword [ebx]
movups xmmword [esp + 0x18], xmm0
call edi
lea eax, [esp + 0x20]
xorps xmm0, xmm0
push eax
push esi
movups xmmword [esp + 0x28], xmm0
call edi
mov eax, dword [esp + 0x2c]
mov ecx, ebx
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x10]
push 0x222
push eax
push 0
call fcn.00406495
mov ecx, dword [esp + 0x30]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004d207d
add esp, 0x24
ret
Function at 0x49f448
Capabilities:
Delete directory
Delete file

Disassembly:
push 0x14
mov eax, 0x50b62e
call fcn.004d2c19
mov edi, ecx
call fcn.00406d01
push eax
lea ecx, [ebp - 0x20]
call fcn.00406b29
or dword [ebp - 4], 0xffffffff
mov eax, dword [edi + 0x8c]
mov ecx, dword [eax + 0xc]
mov eax, dword [ebp + 0xc]
add ecx, 4
push dword [eax + 0x10]
call fcn.0047f2f2
add eax, 0x24
lea ecx, [ebp - 0x14]
push eax
call fcn.004073cf
mov eax, dword [ebp - 0x14]
cmp dword [eax - 0xc], 0
je 0x49f5f0
xor ebx, ebx
mov ecx, edi
push ebx
call fcn.0049f650
mov edx, 0x8a
lea ecx, [ebp - 0x1c]
call fcn.004945c5
mov ecx, dword [ebp + 8]
push ebx
sub esp, 0xc
push dword [ebp - 0x1c]
push 1
push 2
push dword [edi + 0x100]
call fcn.0043f373
mov edx, dword [ebp - 0x14]
lea esi, [edi + 0x1c4]
mov ecx, dword [esi]
push ebx
call fcn.004948c1
mov byte [ebp - 0xd], al
pop ecx
test al, al
jne 0x49f56c
cmp byte [0x56b83c], bl
je 0x49f529
call fcn.00406d01
push eax
lea ecx, [ebp - 0x18]
call fcn.00406b29
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
push str.MD5_of_downloaded_file_is_invalid.
call fcn.004072c4
lea eax, [ebp - 0x18]
mov ecx, 0x56b80c
push eax
call fcn.00489943
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
call fcn.00406df6
push dword [esi]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0x5c
push dword [esi]
call fcn.004d5852
pop ecx
pop ecx
test eax, eax
jne 0x49f545
or eax, 0xffffffff
jmp 0x49f549
sub eax, dword [esi]
sar eax, 1
push eax
lea eax, [ebp - 0x18]
mov ecx, esi
push eax
call fcn.00444ed9
push dword [eax]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
call fcn.00406df6
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x1c]
lea ecx, [ecx - 0x10]
call fcn.00406df6
cmp byte [ebp - 0xd], 0
jne 0x49f5f0
inc dword [edi + 0x1d0]
call fcn.00406d01
push eax
lea ecx, [ebp - 0x1c]
call fcn.00406b29
or dword [ebp - 4], 0xffffffff
mov edx, 0x8b
lea ecx, [ebp - 0x18]
call fcn.004945c5
push eax
lea ecx, [ebp - 0x1c]
call fcn.004434b9
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
call fcn.00406df6
mov esi, dword [ebp - 0x1c]
mov ecx, dword [ebp + 8]
push ebx
sub esp, 0xc
push esi
push 1
push 2
push dword [edi + 0x100]
call fcn.0043f373
mov eax, dword [ebp + 0xc]
mov dword [eax + 0xc], 1
or dword [ebp - 4], 0xffffffff
lea ecx, [esi - 0x10]
call fcn.00406df6
jmp 0x49f616
push dword [edi + 0x100]
mov ecx, dword [ebp + 8]
call fcn.0043f3cf
mov ecx, dword [edi + 0x8c]
push eax
mov ecx, dword [ecx + 0xc]
add ecx, 4
call fcn.0047f2f2
mov bl, 1
mov byte [eax + 0x6c], 1
mov eax, dword [ebp - 0x14]
cmp dword [eax - 0xc], 0
je 0x49f628
push 1
mov ecx, edi
call fcn.0049f650
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.00406df6
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
call fcn.00406df6
mov al, bl
call fcn.004d2be2
ret 8
Function at 0x4a0e99
Capabilities:
Create thread

Disassembly:
push 4
mov eax, 0x507569
call fcn.004d2c19
mov ebx, ecx
mov ecx, dword [ebx + 0x80]
call fcn.00491215
mov ecx, dword [ebx + 0x80]
push 0
push 0x3025
call fcn.004912f4
mov ecx, dword [ebx + 0x80]
xor edi, edi
push edi
push 0x3023
call fcn.004912f4
mov ecx, dword [ebx + 0x80]
push edi
push 0x3024
call fcn.004912f4
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x401
push dword [ebx + 4]
call esi
push 1
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
push 0x7f04
mov ecx, ebx
call fcn.004a128b
mov ecx, ebx
call fcn.004a0fd5
mov ecx, dword [ebx + 0x8c]
push edi
mov dword [ebx + 0x94], edi
call fcn.0049017e
test eax, eax
jne 0x4a0f9a
mov esi, dword [ebx + 0x8c]
lea ecx, [ebx + 0x88]
add esi, 0x48
mov word [esi + 0x18], di
mov dword [esi + 0x10], ecx
call dword [sym.imp.USER32.dll_GetActiveWindow]
mov dword [esi + 0x1c], eax
lea eax, [ebp - 0x10]
push eax
xor eax, eax
push eax
push esi
push 0x49a387
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edx, 0xae
lea ecx, [ebp - 0x10]
call fcn.004945c5
mov ecx, eax
call fcn.004a16f3
mov dword [ebx + 0xa0], eax
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.00406df6
push edi
push 0x3e8
push 1
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_SetTimer]
jmp 0x4a0fcd
mov eax, dword [ebx + 0x80]
mov edi, dword [sym.imp.USER32.dll_GetParent]
mov byte [eax + 0x99], 1
push dword [ebx + 4]
call edi
push 2
push eax
call esi
push dword [ebx + 4]
mov esi, eax
call edi
push esi
push 2
push 0x111
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
xor eax, eax
call fcn.004d2be2
ret
Function at 0x4a24ed
Capabilities:
Check if file exists
Copy file
Delete file
Move file

Disassembly:
push 0x14
mov eax, 0x50b8c8
call fcn.004d2c19
mov edi, ecx
mov ebx, dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
xor esi, esi
cmp byte [edi + 0x2a], 0
jne 0x4a250f
cmp word [edi + 0x1a], si
jbe 0x4a2558
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0x18]
call fcn.0046da40
mov esi, eax
test esi, esi
je 0x4a252f
push ecx
push esi
push ecx
mov ecx, edi
call fcn.004a29b3
jmp 0x4a264b
lea esi, [edi + 0x2c]
push esi
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
test eax, eax
jne 0x4a254b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x4a2520
lea eax, [ebp - 0x18]
push eax
push esi
call ebx
test eax, eax
je 0x4a2541
xor esi, esi
lea eax, [edi + 0x1a]
cmp word [eax], si
jbe 0x4a2587
lea ecx, [ebp - 0x20]
push ecx
push eax
call ebx
test eax, eax
je 0x4a2541
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
test eax, eax
js 0x4a2587
mov eax, 0xe0000013
jmp 0x4a264d
mov ebx, dword [ebp + 0xc]
lea ecx, [ebp - 0x10]
push ebx
call fcn.004073cf
push str..part
lea ecx, [ebp - 0x10]
call fcn.004072c4
push esi
xor dl, dl
lea ecx, [ebp - 0x10]
call fcn.00471150
mov esi, eax
pop ecx
test esi, esi
jne 0x4a2618
cmp byte [edi + 0x18], al
je 0x4a25d3
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4a25d3
lea eax, [ebp - 0x10]
push eax
call fcn.004a26e4
mov esi, eax
test esi, esi
jne 0x4a2618
push 2
pop ecx
xor eax, eax
cmp byte [edi + 0x3c], al
cmovne eax, ecx
push eax
mov eax, dword [ebp + 8]
push 0
push edi
push 0x4a2655
push dword [ebp - 0x10]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CopyFileExW]
test eax, eax
je 0x4a2610
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push dword [ebx]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x4a2624
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push ecx
push esi
push ecx
mov ecx, edi
call fcn.004a29b3
jmp 0x4a263c
cmp byte [edi + 4], 0
je 0x4a263a
mov ecx, dword [edi + 8]
test ecx, ecx
je 0x4a263a
mov eax, dword [ecx]
push 0
push 1
call dword [eax + 0x10]
xor esi, esi
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00406df6
mov eax, esi
call fcn.004d2be2
ret 8
Function at 0x4a2863
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push esi
mov esi, ecx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
jne 0x4a2877
xor al, al
jmp 0x4a28e8
push ebp
push edi
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov eax, dword [esp + 0x10]
mov eax, dword [eax]
mov eax, dword [eax - 0xc]
lea ebp, [eax + eax]
lea eax, [ebp + 2]
push eax
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
mov dword [esi], edi
test edi, edi
jne 0x4a28a3
xor al, al
jmp 0x4a28e6
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ebx, eax
test ebx, ebx
jne 0x4a28b5
xor al, al
jmp 0x4a28e5
mov eax, dword [esp + 0x14]
push ebp
push dword [eax]
push ebx
call fcn.004d3390
add esp, 0xc
xor eax, eax
mov word [ebx + ebp], ax
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [esi]
push dword [esi + 8]
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov al, 1
pop ebx
pop edi
pop ebp
pop esi
ret 4

Function at 0x4a5356
Capabilities:
Write file on windows

Disassembly:
push 0x20
mov eax, 0x50c27d
call fcn.004d2c19
mov ebx, edx
mov esi, ecx
mov dword [ebp - 0x18], esi
xor ecx, ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
jb 0x4a537f
mov eax, dword [eax]
push ecx
push 0x80
push 2
push ecx
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push eax
lea ecx, [ebp - 0x20]
call fcn.00422c5e
push ebx
push esi
call dword [sym.imp.msi.dll_MsiRecordGetStringW]
push 0xc800
lea ecx, [ebp - 0x2c]
mov dword [ebp + 8], eax
xor edi, edi
call fcn.0046e650
mov byte [ebp - 4], 1
mov esi, dword [ebp - 0x20]
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0xc800
push eax
push dword [ebp - 0x2c]
push ebx
push dword [ebp - 0x18]
call dword [sym.imp.msi.dll_MsiRecordSetStringA]
test eax, eax
jne 0x4a53f7
push eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x14]
push dword [ebp - 0x2c]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
add edi, dword [ebp - 0x14]
cmp dword [ebp - 0x14], 0
jne 0x4a53c0
cmp dword [ebp + 8], edi
sete bl
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.0046e6f0
or dword [ebp - 4], 0xffffffff
test esi, esi
je 0x4a541c
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [ebp - 0x20], 0
mov al, bl
call fcn.004d2be2
ret