joyce8/EMBER2024-capa huggingface dataset:
Function at 0x436420
Capabilities:
Accept command line arguments
Shutdown system

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x48
mov eax, dword [0x496004]
xor eax, esp
mov dword [esp + 0x44], eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
push esi
push edi
push dword [ebp + 0x14]
push eax
call fcn.00434a00
mov edi, eax
mov dword [esp + 0x14], edi
cmp edi, 0xbc2
jne 0x4365e5
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], 0
push ecx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov dword [esp + 0x18], eax
test eax, eax
je 0x4364dc
xor esi, esi
cmp dword [esp + 0x1c], esi
jle 0x4364d5
mov edi, dword [sym.imp.KERNEL32.dll_CompareStringOrdinal]
nop word [eax + eax]
push 1
push 0xffffffffffffffff
push dword [eax + esi*4]
push 0xffffffffffffffff
push 0x48cbec
call edi
cmp eax, 2
je 0x4365f8
mov eax, dword [esp + 0x18]
push 1
push 0xffffffffffffffff
push dword [eax + esi*4]
push 0xffffffffffffffff
push str._suppressReboot
call edi
cmp eax, 2
je 0x4365f8
mov eax, dword [esp + 0x18]
inc esi
cmp esi, dword [esp + 0x1c]
jl 0x436490
mov edi, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], esi
push ecx
push 0x28
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x43650f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x43650f
movzx esi, si
or esi, 0x80070000
xorps xmm0, xmm0
movaps xmmword [esp + 0x20], xmm0
test esi, esi
js 0x436556
lea eax, [esp + 0x24]
mov dword [esp + 0x20], 1
push eax
push str.SeShutdownPrivilege
push 0
mov dword [esp + 0x38], 2
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
jne 0x436556
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x436556
movzx esi, si
or esi, 0x80070000
xorps xmm0, xmm0
movaps xmmword [esp + 0x30], xmm0
test esi, esi
js 0x4365ca
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0
push eax
lea eax, [esp + 0x34]
push eax
push 0x10
lea eax, [esp + 0x2c]
push eax
push 0
push dword [esp + 0x28]
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x4365a4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x4365a2
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x4365ca
push 0x40002
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
jne 0x4365ca
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x4365ca
movzx esi, si
or esi, 0x80070000
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4365d9
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x669
test esi, esi
cmovns edi, eax
mov eax, edi
pop edi
pop esi
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.00436a29
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [esp + 0x4c]
mov eax, dword [esp + 0x14]
pop edi
pop esi
xor ecx, esp
call fcn.00436a29
mov esp, ebp
pop ebp
ret 0x10
Function at 0x437beb
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x437c2a
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x437c2a
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x437c2a
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x437c2a
cmp dword [ecx + 0x74], 0xe
jbe 0x437c2a
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x464375
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x486464
push 0x48645c
push str.FlsAlloc
push 0x1e
call fcn.00464045
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4643a9
push dword [ebp + 8]
mov ecx, esi
call dword [0x484338]
call esi
jmp 0x4643af
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4643f3
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x486474
push 0x48646c
push str.FlsGetValue
push 0x20
call fcn.00464045
mov esi, eax
add esp, 0x10
test esi, esi
je 0x46442a
push dword [ebp + 8]
mov ecx, esi
call dword [0x484338]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x4652b2
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00465186
Function at 0x465bbe
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x496004]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x465c09
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.00466066
test al, al
jne 0x465c03
sub edx, 2
cmp edx, edi
jne 0x465be9
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x465c2b
lea eax, [edi + 2]
cmp edx, eax
je 0x465c2b
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.00465885
add esp, 0x10
jmp 0x465d25
push esi
lea ecx, [ebp - 0x255]
call fcn.00466066
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x465c6e
push dword [ebp - 0x25c]
jmp 0x465c1b
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x465cab
cmp word [ebp - 0x226], 0
je 0x465ccc
cmp word [ebp - 0x226], ax
jne 0x465cab
cmp word [ebp - 0x224], 0
je 0x465ccc
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.00465885
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x465d18
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x465c85
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x465d00
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x465d25
push 0x4652d5
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.0046fa60
add esp, 0x10
jmp 0x465cf5
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00436a29
leave
ret
Function at 0x4676a1
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x46773e
push ebx
push esi
call fcn.0046765d
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0046754f
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x4676eb
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x46773d
push edi
push eax
call fcn.004629e2
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x46770b
call fcn.004629a8
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x46773c
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0046754f
add esp, 0x20
test eax, eax
jne 0x46772a
push edi
call fcn.004629a8
jmp 0x467732
push ebx
call fcn.004629a8
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x467741
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x467752
pop esi
ret
push ebx
push edi
push esi
call fcn.0046765d
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.004629e2
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x46777a
push ebx
push esi
push edi
call fcn.00441fd0
add esp, 0xc
push 0
call fcn.004629a8
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x46805b
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004679ed
Function at 0x477c45
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x498600]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x477c85
cmp byte [ebx], 0xa
jne 0x477c85
or byte [eax + edi + 0x28], 4
jmp 0x477c8a
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x477d88
mov al, byte [edx]
cmp al, 0x1a
je 0x477d6a
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x477cb9
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x477cde
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x477ce8
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x477c9b
jmp 0x477d88
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x477d65
cmp dword [ebp - 0xc], 0
je 0x477d65
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x498600]
test byte [eax + edi + 0x28], 0x48
je 0x477d3f
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x477d2a
mov byte [esi], dl
jmp 0x477d3b
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x498600]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x477d88
cmp byte [ebp - 1], 0xa
jne 0x477d4e
cmp esi, ebx
jne 0x477d4e
mov byte [esi], 0xa
jmp 0x477d87
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00477a97
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x477d88
mov byte [esi], 0xd
jmp 0x477d87
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x498600]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x477d84
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x477d88
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x477d91
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x498600]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x477dd4
cmp word [esi], dx
jne 0x477dd4
or byte [edi + eax + 0x28], 4
jmp 0x477dd9
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x477f2c
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x477f0c
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x477e1b
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x477e51
cmp eax, edx
jae 0x477e5d
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x477df3
jmp 0x477f2c
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x477f08
cmp dword [ebp - 0x14], 0
je 0x477f08
mov eax, dword [ebx*4 + 0x498600]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x477ee0
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x477ea9
mov word [esi], cx
jmp 0x477edc
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x498600]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x498600]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x498600]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x477f2c
pop ebx
cmp word [ebp - 4], bx
jne 0x477ef1
cmp esi, dword [ebp + 0xc]
jne 0x477ef1
mov word [esi], bx
jmp 0x477f29
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00477a97
add esp, 0x10
cmp word [ebp - 4], bx
je 0x477f2c
push 0xd
jmp 0x477f25
mov ecx, dword [ebx*4 + 0x498600]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x477f23
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x477f2c
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x47c9b0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x47c9dd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x47c9dd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x40d93c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], edx
xor ecx, ecx
xor ebx, ebx
xor esi, esi
cmp dword [ebp + 8], ecx
jbe 0x40d9a6
nop dword [eax]
lea eax, [ebx + 1]
movzx ebx, al
mov dl, byte [ebx + edi]
movzx eax, dl
add eax, ecx
movzx ecx, al
mov dword [ebp - 8], ecx
movzx eax, byte [ecx + edi]
mov byte [ebx + edi], al
mov byte [ecx + edi], dl
movzx ecx, byte [ebx + edi]
movzx eax, dl
add ecx, eax
and ecx, 0x800000ff
jns 0x40d993
dec ecx
or ecx, 0xffffff00
inc ecx
movzx eax, byte [ecx + edi]
mov ecx, dword [ebp - 4]
xor byte [esi + ecx], al
inc esi
mov ecx, dword [ebp - 8]
cmp esi, dword [ebp + 8]
jb 0x40d95c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40ae00
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 4], eax
mov dword [ebp - 8], edx
mov byte [ebp - 0xc], cl
push 2
lea eax, [ebp - 0x14]
push eax
push edx
push dword [ebp - 4]
call sub.kernel32.dll_GetLocaleInfoA
test eax, eax
jle 0x40ae2a
mov al, byte [ebp - 0x14]
mov byte [ebp - 0x10], al
jmp 0x40ae30
mov al, byte [ebp - 0xc]
mov byte [ebp - 0x10], al
mov al, byte [ebp - 0x10]
leave
ret
Function at 0x40b42f
Capabilities:
Get common file path
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2bc
push ebx
push esi
lea eax, [ebp - 4]
push edi
xor ebx, ebx
push eax
mov edi, 0x4dd208
push ebx
push ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
mov esi, 0x2b4
lea eax, [ebp - 0x2bc]
push esi
push ebx
push eax
call fcn.00476c20
lea eax, [ebp - 8]
add esp, 0xc
neg eax
sbb eax, eax
lea ecx, [ebp - 4]
and eax, ecx
xor ecx, ecx
cmp dword [ebp + 8], ebx
mov eax, dword [eax]
sete cl
or cx, 0x4008
push ecx
lea ecx, [ebp - 0x2bc]
push esi
push ecx
push ebx
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
lea ecx, [ebp - 8]
mov esi, eax
neg ecx
sbb ecx, ecx
lea eax, [ebp - 4]
and ecx, eax
mov dword [ebp - 8], edi
call fcn.0040b7a3
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x40c019
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2b4
push esi
mov esi, 0x2b4
push edi
push esi
lea eax, [ebp - 0x2b4]
push 0
mov edi, ecx
push eax
call fcn.00476c20
mov eax, dword [ebp + 8]
add esp, 0xc
or ax, 0x4008
push eax
lea eax, [ebp - 0x2b4]
push esi
push eax
push 0
push dword [edi + 4]
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov eax, dword [ebp - 0x2b0]
pop edi
pop esi
leave
ret 4

Function at 0x41266f
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x4d3018
call fcn.00476bf8
sub esp, 0xc
push ebx
push esi
push edi
mov esi, ecx
push dword [ebp + 8]
lea ecx, [ebp - 0x18]
call fcn.004b9192
mov eax, dword [ebp - 0x18]
xor edi, edi
mov dword [ebp - 4], edi
cmp dword [eax - 8], edi
jne 0x4126a9
push eax
mov ecx, esi
call fcn.004bd2f1
or ebx, 0xffffffff
jmp 0x41273b
mov edx, dword [esi]
push eax
push edi
mov ecx, esi
call dword [edx + 0xe0]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x41271b
mov eax, dword [esi]
or dword [ebp - 0x10], 0xffffffff
or dword [ebp - 0x14], 0xffffffff
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x10]
push ecx
push ebx
mov ecx, esi
call dword [eax + 0xd4]
push ebx
mov ecx, esi
call fcn.004b7751
cmp dword [ebp - 0x10], edi
jge 0x412705
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x412705
push edi
push 1
push dword [ebp + 8]
call fcn.00413f80
add esp, 0xc
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], eax
push dword [ebp - 0x14]
mov eax, dword [esi]
mov ecx, esi
push dword [ebp - 0x10]
push dword [ebp + 8]
push edi
call dword [eax + 0xd8]
jmp 0x412729
push dword [ebp - 0x18]
mov eax, dword [esi]
mov ecx, esi
push edi
call dword [eax + 0xf0]
mov ebx, eax
push edi
push ebx
push 0x14e
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_SendMessageW]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.004b911e
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, ebx
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8

Function at 0x4130b0
Capabilities:
Get graphical window text

Disassembly:
mov eax, 0x4d30d4
call fcn.00476bf8
sub esp, 0x80
push ebx
push esi
mov esi, dword [ebp + 8]
push dword [ebp + 0xc]
mov ecx, esi
call fcn.004c4093
cmp dword [esi], 0
mov ebx, eax
je 0x4130fd
lea eax, [ebp - 0x8c]
push 0x40
push eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea eax, [ebp - 0x8c]
push eax
call fcn.004238bf
pop ecx
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
mov dword [ecx + 4], edx
jmp 0x413130
mov eax, dword [ebp + 0x10]
push 1
push 1
push 0
push dword [eax + 4]
push dword [eax]
lea eax, [ebp + 0x10]
push eax
call fcn.004236c6
add esp, 0x18
push dword [ebp + 0x10]
and dword [ebp - 4], 0
push ebx
call fcn.004c3710
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x10]
call fcn.004b911e
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0xc
Function at 0x4135f0
Capabilities:
Copy file

Disassembly:
mov eax, 0x4d3160
call fcn.00476bf8
mov eax, 0x1024
call fcn.00477a10
push ebx
lea ecx, [ebp - 0x10]
push dword [ebp + 0xc]
call fcn.004b9192
xor ebx, ebx
cmp dword [ebp + 0x10], ebx
mov dword [ebp - 4], ebx
jne 0x413640
push dword [ebp + 0xc]
lea eax, [ebp + 0x10]
push eax
call fcn.004138b8
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.004b9265
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], bl
call fcn.004b911e
push dword [ebp - 0x10]
call fcn.00413b2d
cmp eax, 0xffffffff
pop ecx
jne 0x413655
push 0xfffffffffffffffe
jmp 0x41371b
push esi
mov esi, 0x3ff
push esi
lea eax, [ebp - 0x830]
push dword [ebp + 8]
push eax
call fcn.00476c78
lea eax, [ebp - 0x830]
push eax
call fcn.004775d8
mov word [ebp + eax*2 - 0x82e], bx
lea eax, [ebp - 0x830]
push 0x7c
push eax
call fcn.004775f5
add esp, 0x18
cmp eax, ebx
je 0x4136a6
mov word [eax], bx
add eax, 2
push 0x7c
push eax
call fcn.004775f5
pop ecx
pop ecx
jmp 0x413690
push esi
lea eax, [ebp - 0x1030]
push dword [ebp + 0xc]
push eax
call fcn.00476c78
lea eax, [ebp - 0x1030]
push eax
call fcn.004775d8
mov word [ebp + eax*2 - 0x102e], bx
push 0x1e
lea eax, [ebp - 0x30]
push ebx
push eax
call fcn.00476c20
mov eax, dword [ebp + 0x18]
add esp, 0x1c
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x830]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x1030]
mov dword [ebp - 0x24], eax
mov ax, word [ebp + 0x14]
mov word [ebp - 0x20], ax
lea eax, [ebp - 0x30]
push eax
mov dword [ebp - 0x2c], 2
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
test eax, eax
pop esi
je 0x413714
or ebx, 0xffffffff
jmp 0x41371c
cmp dword [ebp - 0x1e], ebx
je 0x41371c
push 1
pop ebx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004b911e
mov ecx, dword [ebp - 0xc]
mov eax, ebx
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x413bfd
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x4d31f7
call fcn.00476bf8
sub esp, 0x10
and dword [ebp - 0x1c], 0
push ebx
push esi
push edi
push dword [ebp + 0x14]
lea ecx, [ebp - 0x14]
call fcn.004b9192
push 1
lea ecx, [ebp - 0x14]
pop ebx
push 0x2e
mov dword [ebp - 4], ebx
call fcn.004b6750
push dword [ebp + 0x10]
lea ecx, [ebp + 0x14]
call fcn.004b9192
mov eax, dword [0x573c38]
mov dword [ebp - 0x10], eax
push dword [ebp - 0x14]
mov edi, str._s_s._s
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 3
push dword [ebp + 0x14]
push dword [ebp + 0xc]
push edi
push eax
call fcn.004b66b1
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
add esp, 0x14
push dword [ebp - 0x10]
call esi
test eax, eax
jne 0x413c7e
mov ecx, dword [ebp + 8]
lea eax, [ebp + 0x14]
push eax
call fcn.004b8e8b
mov dword [ebp - 0x1c], ebx
jmp 0x413cd4
push ebx
mov dword [ebp - 0x18], ebx
push dword [ebp + 0x10]
mov ebx, str._s___d_
lea eax, [ebp + 0x14]
push ebx
push eax
call fcn.004b66b1
add esp, 0x10
lea eax, [ebp - 0x10]
push dword [ebp - 0x14]
push dword [ebp + 0x14]
push dword [ebp + 0xc]
push edi
push eax
call fcn.004b66b1
add esp, 0x14
push dword [ebp - 0x10]
call esi
test eax, eax
je 0x413cc1
inc dword [ebp - 0x18]
push dword [ebp - 0x18]
push dword [ebp + 0x10]
jmp 0x413c8a
mov ecx, dword [ebp + 8]
lea eax, [ebp + 0x14]
push eax
call fcn.004b8e8b
mov dword [ebp - 0x1c], 1
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.004b911e
lea ecx, [ebp + 0x14]
mov byte [ebp - 4], 1
call fcn.004b911e
and byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.004b911e
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret