joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a02d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x4a0323
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x4a030a
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4a6cb0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4d3ece
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x10], edi
call fcn.004a75d0
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0xfb0db4
call fcn.004c4f40
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x4a6d43
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.004c4f40
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x4a6d3c
push 0
mov ecx, eax
call fcn.0049de50
mov dword [esi + 0xc], eax
jmp 0x4a6d45
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x4a6d45
xor esi, esi
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x30], esi
mov dword [edi + 0x34], 0
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8

Function at 0x4c75cd
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4c7605
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004c565a
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004c5632
jmp 0x4c7611
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4c8cbe
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4c8d00
call fcn.004ce7ba
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4c8d00
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4c8cf7
xor eax, eax
jmp 0x4c8d08
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004c8d0e
pop edi
pop esi
pop ebx
ret 4
Function at 0x4cecea
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4ced18
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4ced36
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004cec50
jmp 0x4ced36
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4ced36
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004cec50
test edi, edi
mov eax, edi
jne 0x4ced20
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x40330c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x424
mov eax, 0x43e34f
call fcn.0041efec
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
xor ebx, ebx
mov dword [ebp - 0x430], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], ebx
mov dword [ebp - 0x418], ebx
mov byte [ebp - 4], 1
push 2
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [ebp - 0x41c], eax
cmp eax, ebx
jne 0x403365
call fcn.0040142c
mov esi, eax
jmp 0x40343b
push edi
push esi
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
cmp esi, ebx
jne 0x40337e
call fcn.0040142c
jmp 0x40342d
push esi
push dword [ebp - 0x41c]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x420], eax
cmp eax, ebx
je 0x403374
push esi
push dword [ebp - 0x41c]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
mov dword [ebp - 0x424], esi
lea eax, [esi + 1]
cmp eax, esi
jae 0x4033b8
mov esi, 0x8007000e
jmp 0x40342f
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x418]
call fcn.004023f4
mov dword [ebp - 4], 1
jmp 0x4033e6
cmp dword [ebp - 0x418], ebx
je 0x4033b1
push esi
push dword [ebp - 0x418]
push esi
push dword [ebp - 0x420]
push ebx
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, ebx
je 0x403374
xor ecx, ecx
mov edx, dword [ebp - 0x418]
mov word [edx + eax*2], cx
push dword [ebp + 0x14]
push dword [ebp - 0x418]
lea ecx, [ebp - 0x42c]
call fcn.00403128
mov esi, eax
push dword [ebp - 0x41c]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov byte [ebp - 4], bl
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x403457
lea ecx, [ebp - 0x418]
call fcn.00401d1b
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.0041f048
ret 0x10

Function at 0x40393d
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0x10]
mov eax, dword [esi]
and dword [esi], 0
push edi
mov edi, dword [ebp + 0xc]
add eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp + 0x10]
push eax
push 0
push dword [ebp + 8]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4039a6
cmp dword [ebp + 0x10], 1
je 0x40397e
cmp dword [ebp + 0x10], 2
je 0x40397e
push 0xd
pop eax
jmp 0x4039a6
mov eax, dword [ebp - 4]
test edi, edi
je 0x4039a0
test eax, eax
je 0x40399b
test al, 1
jne 0x403979
mov ecx, eax
shr ecx, 1
cmp word [edi + ecx*2 - 2], 0
je 0x4039a0
jmp 0x403979
xor ecx, ecx
mov word [edi], cx
shr eax, 1
mov dword [esi], eax
xor eax, eax
pop edi
pop esi
leave
ret 0xc
Function at 0x405846
Capabilities:
Terminate thread

Disassembly:
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x18], ebx
je 0x405856
cmp dword [esi + 0x1c], ebx
jne 0x40585d
pop esi
pop ebx
jmp fcn.00404502
push edi
push dword [esi + 0xcc]
call dword [sym.imp.USER32.dll_DestroyWindow]
push ebx
push dword [esi + 0xc0]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [esi + 0xdc]
call fcn.0041f057
push dword [esi + 0x34]
call fcn.0041f057
pop ecx
pop ecx
mov dword [esi + 0xdc], ebx
mov dword [esi + 0x34], ebx
pop edi
cmp byte [esi + 0x30], bl
je 0x4058a2
mov ecx, esi
call fcn.0040464a
fldz
mov eax, 0x80000000
fst dword [esi + 0x2c]
mov ecx, esi
fstp dword [esi + 0x28]
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x50], eax
mov dword [esi + 0x4c], eax
mov byte [esi + 0x30], bl
mov byte [esi + 0x60], 1
mov dword [esi + 0x34], ebx
call fcn.00404502
mov eax, esi
pop esi
pop ebx
ret

Function at 0x4062f8
Capabilities:
Check mutex on windows
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
push esi
xor ebx, ebx
push edi
mov esi, ecx
mov dword [ebp + 0x10], eax
cmp eax, ebx
jne 0x406314
mov dword [ebp + 0x10], 0x479d22
push dword [ebp + 0x10]
call fcn.0041fe90
mov edi, eax
inc edi
pop ecx
je 0x40632e
push edi
call fcn.0041f5c9
pop ecx
mov dword [ebp - 4], eax
jmp 0x406331
mov dword [ebp - 4], ebx
cmp edi, ebx
je 0x406344
push edi
push dword [ebp + 0x10]
push dword [ebp - 4]
call fcn.00420be0
add esp, 0xc
cmp dword [esi + 0x18], ebx
je 0x406355
cmp dword [esi + 0x1c], ebx
je 0x406355
mov ecx, esi
call fcn.00405846
call fcn.0040453b
cmp eax, dword [ebp + 8]
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0x10]
jb 0x406368
lea eax, [ebp + 8]
mov eax, dword [eax]
mov dword [esi + 0x18], eax
call fcn.00404583
cmp eax, dword [ebp + 0xc]
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
jb 0x406380
lea eax, [ebp + 0xc]
mov eax, dword [eax]
mov dword [esi + 0x1c], eax
mov eax, dword [ebp + 0x14]
cmp eax, 4
jb 0x406390
push 3
pop eax
mov dword [esi + 0x20], eax
mov al, byte [ebp + 0x18]
mov byte [esi + 0x30], al
mov eax, 0x80000000
mov dword [esi + 0x50], eax
mov dword [esi + 0x4c], eax
mov al, byte [ebp + 0x1c]
mov byte [esi + 0x60], al
mov eax, dword [ebp - 4]
mov ecx, esi
mov word [esi + 0xbc], 0x100
mov dword [esi + 0x34], eax
call fcn.00404502
cmp byte [esi + 0x30], bl
je 0x4063cc
mov ecx, esi
call fcn.004045cb
push 8
call fcn.0041f5c9
pop ecx
mov edi, eax
push ebx
mov dword [edi], esi
mov eax, dword [esi + 0x34]
push ebx
push ebx
mov dword [edi + 4], eax
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
push ebx
push ebx
push ebx
push ebx
mov dword [esi + 0xc8], eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push ebx
push ebx
push edi
push 0x4054cd
push ebx
push ebx
mov dword [esi + 0xc4], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0xffffffffffffffff
push dword [esi + 0xc4]
mov dword [esi + 0xc0], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0x18
Function at 0x408782
Capabilities:
Get common file path
Get program files directory

Disassembly:
push 0
mov eax, 0x43eaa2
call fcn.0041ef4d
xor ebx, ebx
test byte [0x48ed10], 1
jne 0x4087d6
or dword [0x48ed10], 1
mov dword [ebp - 4], ebx
push 0x440902
mov dword [0x48ecf8], ebx
mov dword [0x48ecfc], ebx
mov dword [0x48ed00], ebx
mov dword [0x48ed04], ebx
mov byte [0x48ed08], bl
mov dword [0x48ed0c], ebx
call fcn.0041f6f7
pop ecx
or dword [ebp - 4], 0xffffffff
push 1
push 7
call fcn.00403bcd
pop ecx
pop ecx
mov esi, 0x48ecf8
cmp byte [ebp + 0xc], bl
je 0x4087f2
mov ecx, esi
call fcn.00404976
cmp dword [ebp + 8], ebx
je 0x40881b
cmp dword [0x48ed0c], ebx
jne 0x408811
push 1
push 1
push 1
push 0x400
mov ecx, esi
call fcn.00406f29
push 0x3ff
push dword [ebp + 8]
jmp 0x408865
cmp dword [0x48ed0c], ebx
jne 0x408887
push 1
push 1
push 1
push 0x104
mov ecx, esi
call fcn.00406f29
mov eax, dword [0x48ed0c]
push ebx
push 0x26
mov byte [eax], bl
push dword [0x48ed0c]
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
jne 0x408887
push str.PROGRAMFILES
call fcn.00420fc8
pop ecx
cmp eax, ebx
je 0x408875
push 0x103
push eax
push dword [0x48ed0c]
call fcn.0041fd60
add esp, 0xc
jmp 0x408887
push str.C:PROGRA1
push dword [0x48ed0c]
call fcn.0041ffd0
pop ecx
pop ecx
call fcn.00403b95
push dword [eax + 0x1c]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, dword [0x48ed0c]
call fcn.0041f025
ret
Function at 0x418e90
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8cc
mov eax, dword [0x48d84c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x8cc], ecx
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
xor ebx, ebx
push esi
mov dword [ebp - 0x8c0], ecx
mov dword [ebp - 0x8bc], esi
mov dword [ebp - 0x8c8], edi
mov dword [ebp - 0x8b8], ebx
call dword [eax + 8]
test al, al
je 0x4190af
xor eax, eax
push 0x206
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push ebx
push eax
call fcn.0041f170
add esp, 0xc
push edi
push esi
mov esi, dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x20c]
push eax
call esi
mov edi, 0x24c
push edi
lea eax, [ebp - 0x8b0]
push ebx
push eax
mov dword [ebp - 0x8b4], ebx
call fcn.0041f170
add esp, 0xc
lea eax, [ebp - 0x8b4]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x8c4], eax
cmp eax, 0xffffffff
je 0x418f96
mov eax, dword [ebp - 0x8b4]
and eax, 0x10
cmp al, 0x10
je 0x418f72
mov ecx, dword [ebp - 0x8c0]
mov eax, dword [ecx]
inc dword [ebp - 0x8b8]
lea edx, [ebp - 0x8b4]
push edx
push dword [ebp - 0x8bc]
call dword [eax + 0x10]
lea eax, [ebp - 0x8b4]
push eax
push dword [ebp - 0x8c4]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
cmp eax, 1
je 0x418f47
push dword [ebp - 0x8c4]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp byte [ebp + 0x14], bl
je 0x41909e
push 0x47bdb0
push dword [ebp - 0x8bc]
lea eax, [ebp - 0x20c]
push eax
call esi
push edi
lea eax, [ebp - 0x660]
push ebx
push eax
mov dword [ebp - 0x664], ebx
call fcn.0041f170
add esp, 0xc
push ebx
push ebx
push 1
lea eax, [ebp - 0x664]
push eax
push ebx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov edi, eax
cmp edi, 0xffffffff
je 0x41909e
xor eax, eax
push 0x206
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push ebx
push eax
call fcn.0041f170
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpW]
add esp, 0xc
mov eax, dword [ebp - 0x664]
and eax, 0x10
cmp al, 0x10
jne 0x419080
lea eax, [ebp - 0x638]
push eax
push 0x47bdac
call ebx
test eax, eax
je 0x419080
lea eax, [ebp - 0x638]
push eax
push 0x47bda4
call ebx
test eax, eax
je 0x419080
lea eax, [ebp - 0x638]
push eax
push dword [ebp - 0x8bc]
lea eax, [ebp - 0x414]
push eax
call esi
push dword [ebp + 0x14]
mov ecx, dword [ebp - 0x8cc]
push dword [ebp - 0x8c8]
lea eax, [ebp - 0x414]
push eax
push dword [ebp - 0x8c0]
call fcn.00418e90
add dword [ebp - 0x8b8], eax
lea eax, [ebp - 0x664]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
cmp eax, 1
je 0x419012
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 0x8c0]
push dword [ebp - 0x8bc]
mov eax, dword [ecx]
call dword [eax + 0xc]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x8b8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041ef3e
leave
ret 0x10
Function at 0x419bd8
Capabilities:
Write file on windows

Disassembly:
push 8
mov eax, 0x440042
call fcn.0041ef4d
mov esi, ecx
mov ecx, dword [esi + 4]
lea eax, [ebp - 0x10]
push eax
call fcn.004199a7
xor ebx, ebx
mov dword [ebp - 4], ebx
push eax
lea ecx, [esi + 8]
call fcn.00419a8d
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.004039ac
mov ecx, dword [esi + 4]
call fcn.00418e0c
push ebx
push 0x80
push 2
push ebx
push ebx
mov dword [esi + 0x10], eax
mov eax, dword [esi + 8]
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 0xc], eax
cmp eax, 0xffffffff
jne 0x419c54
push dword [esi + 8]
lea eax, [esi + 0x18]
push str.Unable_to_open_the_file__s_for_writing.
push eax
mov byte [esi + 0x14], bl
call fcn.00417bad
add esp, 0xc
jmp 0x419c92
mov ecx, dword [esi + 0x10]
dec ecx
mov byte [esi + 0x14], 1
je 0x419c77
dec ecx
jne 0x419c92
push ebx
lea ecx, [ebp - 0x14]
push ecx
mov word [ebp - 0x10], 0xbbef
mov byte [ebp - 0xe], 0xbf
push 3
lea ecx, [ebp - 0x10]
jmp 0x419c87
push ebx
lea ecx, [ebp - 0x14]
push ecx
mov word [ebp - 0x10], 0xfeff
push 2
lea ecx, [ebp - 0x10]
push ecx
push eax
mov dword [ebp - 0x14], ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov al, byte [esi + 0x14]
call fcn.0041f025
ret

Function at 0x41a577
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x4401b7
call fcn.0041ef4d
mov esi, ecx
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0
mov ebx, 0xf0
push ebx
push dword [esi + 0x58]
call edi
push 0
cmp eax, 1
je 0x41a5af
push 0
push ebx
push dword [esi + 0x5c]
call edi
cmp eax, 1
jne 0x41a5bc
push eax
mov ecx, dword [esi + 0x54]
call fcn.00418de2
jmp 0x41a68c
push 0
push 0
push ebx
push dword [esi + 0x60]
call edi
xor ebx, ebx
inc ebx
cmp eax, ebx
jne 0x41a68c
mov ecx, dword [esi + 0x54]
push 2
call fcn.00418de2
push 0x48d7fc
lea ecx, [ebp - 0x10]
call fcn.00405a79
mov dword [ebp - 4], ebx
push dword [esi + 0x68]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov ebx, eax
lea eax, [ebx + 1]
push eax
lea ecx, [ebp - 0x10]
call fcn.004065d4
lea ecx, [ebx + 1]
push ecx
push eax
push dword [esi + 0x68]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push ebx
lea ecx, [ebp - 0x10]
call fcn.004059b3
lea ecx, [ebp - 0x10]
call fcn.0041a321
lea ecx, [ebp - 0x10]
call fcn.0041a2cf
mov ebx, dword [ebp - 0x10]
cmp dword [ebx - 0xc], 1
jge 0x41a660
push 0x30
push str.No_File_Name
push 0x47c168
push dword [esi + 4]
call dword [sym.imp.USER32.dll_MessageBoxW]
push dword [esi + 0x68]
call dword [sym.imp.USER32.dll_SetFocus]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebx - 0x10]
call fcn.004039ac
xor al, al
jmp 0x41a68e
mov ecx, dword [esi + 0x54]
push ebx
call fcn.00419ce5
push 0
push 0
push 0x147
push dword [esi + 0x74]
call edi
mov ecx, dword [esi + 0x54]
push eax
call fcn.00418df1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebx - 0x10]
call fcn.004039ac
mov al, 1
call fcn.0041f025
ret
Function at 0x41a6b1
Capabilities:
Check if file exists
Get file attributes
Get graphical window text

Disassembly:
push 0x490
mov eax, 0x440240
call fcn.0041efb6
mov esi, ecx
push dword [esi + 4]
xor edi, edi
push str.Text_Documents__.txt_
push 0x88080e
push edi
push 0x47c23c
push edi
lea ecx, [ebp - 0x494]
call fcn.0041a37d
mov dword [ebp - 4], edi
mov dword [ebp - 0x494], 0x47c158
mov dword [ebp - 4], 1
mov ecx, dword [esi + 0x54]
lea eax, [ebp - 0x498]
push eax
mov dword [ebp - 0x444], str.Select_where_to_output_the_file_list
call fcn.00419943
mov byte [ebp - 4], 2
push 0x48d7fc
lea ecx, [ebp - 0x49c]
call fcn.00405a79
mov byte [ebp - 4], 4
push dword [esi + 0x68]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov edi, eax
lea ebx, [edi + 1]
push ebx
lea ecx, [ebp - 0x49c]
call fcn.004065d4
push ebx
push eax
push dword [esi + 0x68]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push edi
lea ecx, [ebp - 0x49c]
call fcn.004059b3
lea ecx, [ebp - 0x49c]
call fcn.0041a321
lea ecx, [ebp - 0x49c]
call fcn.0041a2cf
mov edi, dword [ebp - 0x49c]
mov eax, dword [edi - 0xc]
test eax, eax
jle 0x41a7af
lea eax, [ebp - 0x49c]
push eax
lea ecx, [ebp - 0x498]
call fcn.00419a8d
push 0
lea ecx, [ebp - 0x498]
call fcn.004065d4
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x498]
call fcn.004059b3
mov eax, dword [ebp - 0x498]
cmp dword [eax - 0xc], 0
jle 0x41a7d3
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x41a7d3
mov eax, dword [ebp - 0x498]
mov dword [ebp - 0x448], eax
call dword [sym.imp.USER32.dll_GetActiveWindow]
push eax
lea ecx, [ebp - 0x494]
call fcn.0041a210
cmp eax, 1
jne 0x41a7fa
lea eax, [ebp - 0x218]
push eax
push dword [esi + 0x68]
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov byte [ebp - 4], 2
lea ecx, [edi - 0x10]
call fcn.004039ac
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x498]
add ecx, 0xfffffff0
call fcn.004039ac
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x494]
call fcn.0040479f
xor eax, eax
call fcn.0041f039
ret 0x10
Function at 0x41af63
Capabilities:
Get graphical window text

Disassembly:
push 8
mov eax, 0x4403be
call fcn.0041ef4d
mov esi, ecx
push 0x48d7fc
lea ecx, [ebp - 0x10]
call fcn.00405a79
mov dword [ebp - 4], 1
push dword [esi + 0x5c]
mov edi, dword [sym.imp.USER32.dll_GetWindowTextLengthW]
call edi
lea ebx, [eax + 1]
push ebx
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x14], eax
call fcn.004065d4
push ebx
mov ebx, dword [sym.imp.USER32.dll_GetWindowTextW]
push eax
push dword [esi + 0x5c]
call ebx
push dword [ebp - 0x14]
lea ecx, [ebp - 0x10]
call fcn.004059b3
lea ecx, [ebp - 0x10]
call fcn.0041a321
lea ecx, [ebp - 0x10]
call fcn.0041a2cf
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], 1
jge 0x41b00e
push 0x30
push str.No_path
push str.Please_provide_a_location_to_find_files.
push dword [esi + 4]
call dword [sym.imp.USER32.dll_MessageBoxW]
push dword [esi + 0x5c]
call dword [sym.imp.USER32.dll_SetFocus]
mov dword [ebp - 4], 2
xor bl, bl
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.004039ac
mov al, bl
call fcn.0041f025
ret
mov ecx, dword [esi + 0x54]
push eax
call fcn.00419c9b
push 0
push 0
push 0xf0
push dword [esi + 0x64]
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [esi + 0x54]
dec eax
neg eax
sbb al, al
inc al
mov byte [ebp - 0x14], al
push dword [ebp - 0x14]
call fcn.00418dd3
push 0
push 0
push 0xf0
push dword [esi + 0x70]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 1
jne 0x41b068
push dword [0x4894b0]
mov ecx, dword [esi + 0x54]
call fcn.00419cc0
jmp 0x41b0f6
push 0x48d7fc
lea ecx, [ebp - 0x14]
call fcn.00405a79
mov byte [ebp - 4], 4
push dword [esi + 0x78]
call edi
mov edi, eax
lea eax, [edi + 1]
push eax
lea ecx, [ebp - 0x14]
call fcn.004065d4
lea ecx, [edi + 1]
push ecx
push eax
push dword [esi + 0x78]
call ebx
push edi
lea ecx, [ebp - 0x14]
call fcn.004059b3
lea ecx, [ebp - 0x14]
call fcn.0041a321
lea ecx, [ebp - 0x14]
call fcn.0041a2cf
mov edi, dword [ebp - 0x14]
cmp dword [edi - 0xc], 1
jge 0x41b0e1
push 0
push 0
push 0xf5
push dword [esi + 0x70]
call dword [sym.imp.USER32.dll_SendMessageW]
push dword [0x4894b0]
push dword [esi + 0x78]
call dword [sym.imp.USER32.dll_SetWindowTextW]
push dword [0x4894b0]
jmp 0x41b0e2
push edi
mov ecx, dword [esi + 0x54]
call fcn.00419cc0
mov byte [ebp - 4], 1
lea ecx, [edi - 0x10]
call fcn.004039ac
mov dword [ebp - 4], 6
mov bl, 1
jmp 0x41aff7
Function at 0x41e3a5
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x48d84c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x110], eax
lea eax, [ebp - 0x10c]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x41e47a
push edi
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x114]
push eax
push esi
push esi
push dword [ebp - 0x10c]
mov edi, 0x104
mov dword [ebp - 0x118], edi
mov dword [ebp - 0x114], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x41e469
cmp dword [ebp - 0x114], 2
mov byte [ebp - 5], al
lea eax, [ebp - 0x108]
jne 0x41e453
push edi
push dword [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
dec eax
lea ecx, [edi - 1]
cmp ecx, eax
sbb esi, esi
inc esi
jmp 0x41e469
push eax
push edi
push dword [ebp - 0x110]
call fcn.0041e342
xor ecx, ecx
test eax, eax
setge cl
mov esi, ecx
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
jmp 0x41e47c
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0041ef3e
leave
ret 4

Function at 0x41e827
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x48effc], 0
push esi
push edi
jne 0x41e79d
call fcn.0041e709
test eax, eax
je 0x41e7e2
mov eax, dword [0x48effc]
cmp eax, 1
jne 0x41e7be
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x41e7e2
jmp 0x41e824
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedPopEntrySList]
push eax
call edi
test eax, eax
jne 0x41e824
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x41e7e6
xor eax, eax
jmp 0x41e824
mov eax, dword [esi]
push dword [0x48effc]
call edi
mov edi, eax
test edi, edi
je 0x41e808
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x41e824
lea edi, [esi + 0xff0]
push esi
push dword [0x48effc]
call dword [sym.imp.KERNEL32.dll_InterlockedPushEntrySList]
add esi, 0x10
cmp esi, edi
jb 0x41e80e
mov eax, esi
pop edi
pop esi
ret
jmp 0x41e789

Function at 0x41ef3e
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x48d84c]
jne 0x41ef48
repz ret
jmp fcn.0042305c