joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4035da
Capabilities:
Delete directory
Get common file path
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc44
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
push ebx
push esi
xor esi, esi
cmp dword [0x5559f8], 0x594
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], eax
jne 0x403614
push 0x402cf0
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalAddAtomW]
mov eax, dword [0x4a5418]
mov edi, dword [0x4a541c]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 8]
mov dword [ebp - 8], esi
mov dword [ebp - 0x28], 0x9e3779b9
call fcn.004035d3
mov eax, dword [0x4a5420]
add dword [ebp - 8], 0x23f
mov ebx, dword [0x4a5424]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x1c], 0x20
mov dword [ebp - 0x14], 2
add dword [ebp - 0x14], 3
mov eax, dword [ebp - 0xc]
mov ecx, eax
shl ecx, 4
cmp dword [0x5559f8], 0xc
mov dword [ebp - 4], ecx
jne 0x4036b8
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0xc44]
push eax
push esi
push 0x402d10
push 0x402d4c
push 0x402d88
call dword [sym.imp.KERNEL32.dll_SearchPathW]
push esi
lea eax, [ebp - 0x444]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
lea eax, [ebp - 0x30]
push eax
push esi
lea eax, [ebp - 0x44]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadConsoleInputA]
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x24]
add dword [ebp - 4], ecx
mov ecx, dword [0x5559f8]
cmp ecx, 0xfa9
jne 0x4036d6
mov dword [0x554f94], 0xedeb2e40
cmp ecx, 0x3eb
jne 0x4036e4
mov dword [0x554944], esi
mov ecx, dword [ebp - 8]
add ecx, eax
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp - 0x14]
shr eax, cl
mov dword [0x554f90], 0xf4ea3dee
add eax, ebx
mov ecx, eax
mov eax, dword [ebp - 0x18]
xor dword [ebp - 4], eax
xor ecx, dword [ebp - 4]
cmp dword [0x5559f8], 0x213
mov dword [ebp - 0x18], ecx
jne 0x403723
push esi
push 0x402db4
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, dword [ebp - 0x18]
add dword [ebp - 0x10], 0x64
sub dword [ebp - 0x10], eax
sub dword [ebp - 0x10], 0x64
cmp dword [0x5559f8], 0xc
jne 0x403756
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_PrepareTape]
push esi
lea eax, [ebp - 0x444]
push eax
push 0x402de0
call dword [sym.imp.KERNEL32.dll_GetVolumePathNameA]
mov eax, dword [ebp - 0x10]
shl eax, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x20]
add dword [ebp - 4], eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 8]
lea edx, [ecx + eax]
mov ecx, dword [ebp - 0x14]
shr eax, cl
add eax, edi
xor eax, edx
xor dword [ebp - 4], eax
mov eax, dword [ebp - 4]
sub dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x28]
sub dword [ebp - 8], eax
dec dword [ebp - 0x1c]
jne 0x403650
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
mov dword [eax], ecx
mov ecx, dword [ebp - 0x10]
pop esi
mov dword [eax + 4], ecx
pop ebx
leave
ret 4
Function at 0x4037a4
Capabilities:
Create pipe
Get common file path
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x5559f8]
mov ecx, dword [0x554948]
sub esp, 0x42c
push esi
shr eax, 3
xor esi, esi
cmp eax, esi
jbe 0x403898
push ebx
push edi
mov ebx, ecx
mov dword [ebp - 4], eax
cmp dword [0x5559f8], 0x959
jne 0x403884
lea eax, [ebp - 0x18]
push eax
push esi
lea eax, [ebp - 0x2c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadConsoleInputA]
xor eax, eax
mov word [ebp - 8], ax
lea edi, [ebp - 6]
stosw word es:[edi], ax
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 8]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_FillConsoleOutputCharacterA]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_EnumDateFormatsExW]
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push 0x402e3c
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
push esi
call dword [sym.imp.KERNEL32.dll_GetPriorityClass]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
push 0x402e68
push esi
push esi
call dword [sym.imp.KERNEL32.dll_OpenWaitableTimerA]
push esi
push esi
push esi
push esi
push esi
push esi
push 0x402e78
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push esi
lea eax, [ebp - 0x42c]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
call dword [sym.imp.KERNEL32.dll_InitializeSListHead]
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push ebx
call fcn.004035da
add ebx, 8
dec dword [ebp - 4]
jne 0x4037cd
pop edi
pop ebx
pop esi
leave
ret
Function at 0x40396a
Capabilities:
Get common file path

Disassembly:
mov eax, 0x4a2b44
call fcn.004a2a50
mov eax, 0x1428
call fcn.0040f5b0
push ebx
push esi
xor esi, esi
cmp dword [0x5559f8], 0x5b1
push edi
jne 0x403a16
push esi
lea eax, [ebp - 0x434]
push eax
push esi
push 0x402f04
push esi
call dword [sym.imp.KERNEL32.dll_FoldStringA]
push esi
call dword [sym.imp.KERNEL32.dll_SetLocalTime]
lea eax, [ebp - 0x34]
call fcn.00403c7e
mov dword [ebp - 4], esi
call fcn.00404821
push 0x402f54
lea ecx, [ebp - 0x18]
call fcn.00403400
lea ecx, [ebp - 0x18]
call fcn.0040341c
lea ecx, [ebp - 0x18]
call fcn.00403462
lea ecx, [ebp - 0x18]
call fcn.0040347b
push esi
push esi
call fcn.00404d83
push esi
call fcn.00404d54
push esi
call fcn.00404d3d
push esi
call fcn.00404f2e
add esp, 0x10
mov dword [esp], esi
call fcn.004035b4
fstp st(0)
push esi
call fcn.00404d3d
pop ecx
call fcn.00404e48
add dword [0x5559f8], 0x1134b
push dword [0x5559f8]
push esi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [0x554948], eax
call fcn.004038b5
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
call ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp edi, 0x206d47
jg 0x403a5f
inc edi
cmp edi, 0x4f6a4
jl 0x403a3f
mov eax, dword [0x5559f8]
xor ecx, ecx
cmp eax, esi
jbe 0x403a85
mov edx, dword [0x5559fc]
mov dl, byte [edx + ecx + 0x1134b]
mov edi, dword [0x554948]
mov byte [edi + ecx], dl
inc ecx
cmp ecx, eax
jb 0x403a6a
xor edi, edi
lea ecx, [eax + edi]
cmp ecx, 0xe
jne 0x403ad4
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasW]
push esi
lea eax, [ebp - 0x434]
push eax
push esi
push 0x402f68
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetNumberFormatA]
push 0x402fb0
push 0x402fcc
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push esi
push esi
lea eax, [ebp - 0xc34]
push eax
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesA]
mov eax, dword [0x5559f8]
inc edi
cmp edi, 0x39621
jl 0x403a87
call fcn.004037a4
xor edi, edi
call ebx
cmp edi, 0x26
jne 0x403af0
call fcn.0040389b
inc edi
cmp edi, 0x6753f
jl 0x403ae4
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
push 0x7b
pop ebx
cmp dword [0x5559f8], 0x86
jne 0x403b4b
push 0x402fdc
push 0x403014
call dword [sym.imp.KERNEL32.dll_SetVolumeLabelW]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_EndUpdateResourceA]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_AddConsoleAliasA]
push esi
lea eax, [ebp - 0xc34]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryA]
push esi
lea eax, [ebp - 0x834]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
cmp dword [0x5559f8], 0xf
jne 0x403b73
push esi
push esi
call edi
push esi
lea eax, [ebp - 0x1434]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_AddConsoleAliasW]
push 0x403034
push 0x403068
call edi
dec ebx
jne 0x403b02
push 0x4030bc
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x40562b
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4a455c]
jne 0x405635
repz ret
jmp fcn.00409e6c
Function at 0x40d5ff
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00407adc
and dword [ebp - 4], 0
cmp dword [0x4a656c], 0
mov ebx, eax
jne 0x40d6b0
push 0x402c3c
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40d761
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x402c30
push edi
call esi
test eax, eax
je 0x40d761
push eax
call fcn.00407a6a
mov dword [esp], 0x402c20
push edi
mov dword [0x4a656c], eax
call esi
push eax
call fcn.00407a6a
mov dword [esp], 0x402c0c
push edi
mov dword [0x4a6570], eax
call esi
push eax
call fcn.00407a6a
mov dword [esp], 0x402bf0
push edi
mov dword [0x4a6574], eax
call esi
push eax
call fcn.00407a6a
pop ecx
mov dword [0x4a657c], eax
test eax, eax
je 0x40d6b0
push 0x402bd8
push edi
call esi
push eax
call fcn.00407a6a
pop ecx
mov dword [0x4a6578], eax
mov eax, dword [0x4a6578]
cmp eax, ebx
je 0x40d708
cmp dword [0x4a657c], ebx
je 0x40d708
push eax
call fcn.00407ae5
push dword [0x4a657c]
mov esi, eax
call fcn.00407ae5
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40d708
test edi, edi
je 0x40d708
call esi
test eax, eax
je 0x40d6ff
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40d6ff
test byte [ebp - 0xc], 1
jne 0x40d708
or dword [ebp + 0x10], 0x200000
jmp 0x40d741
mov eax, dword [0x4a6570]
cmp eax, ebx
je 0x40d741
push eax
call fcn.00407ae5
pop ecx
test eax, eax
je 0x40d741
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40d741
mov eax, dword [0x4a6574]
cmp eax, ebx
je 0x40d741
push eax
call fcn.00407ae5
pop ecx
test eax, eax
je 0x40d741
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4a656c]
call fcn.00407ae5
pop ecx
test eax, eax
je 0x40d761
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40d763
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402804
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 4], edx
mov edi, eax
test esi, esi
je 0x40292c
cmp dword [edi + 0xc], 0
je 0x402843
mov eax, dword [edi + 0xc]
dec eax
je 0x40282d
dec eax
je 0x402839
jmp 0x402843
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
mov dword [edi + 4], eax
jmp 0x402843
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
mov dword [edi + 4], eax
cmp dword [edi + 0xc], 0
je 0x402896
xor ebx, ebx
cmp esi, ebx
jle 0x4028b3
push 0
lea eax, [ebp - 0xc]
push eax
mov edx, esi
sub edx, ebx
cmp edx, 0x4000
jge 0x402867
mov ecx, esi
sub ecx, ebx
jmp 0x40286c
mov ecx, 0x4000
push ecx
mov eax, dword [ebp - 4]
add eax, ebx
push eax
push dword [edi + 4]
call sub.KERNEL32.DLL_WriteFile
test eax, eax
setne dl
and edx, 1
mov byte [ebp - 5], dl
test dl, dl
je 0x4028b3
add ebx, 0x4000
cmp esi, ebx
jg 0x40284f
jmp 0x4028b3
push 0
lea eax, [ebp - 0xc]
push eax
push esi
push dword [ebp - 4]
push dword [edi + 4]
call sub.KERNEL32.DLL_WriteFile
test eax, eax
setne cl
and ecx, 1
mov byte [ebp - 5], cl
cmp byte [ebp - 5], 0
jne 0x402928
cmp byte [edi + 0x14], 0
je 0x402928
cmp dword [edi + 0xc], 0
jne 0x402928
lea edx, [edi + 0x17]
mov eax, 0x412870
call fcn.0040dc14
test al, al
je 0x402912
mov ecx, dword [ebp - 0xc]
cmp ecx, esi
jae 0x402843
cmp dword [ebp - 0xc], 0
jbe 0x402843
mov eax, edi
call fcn.00402b58
push edx
push eax
mov eax, dword [ebp - 0xc]
xor edx, edx
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
push edx
push eax
xor edx, edx
mov eax, edi
call fcn.00402aa0
jmp 0x402843
lea ecx, [edi + 0x17]
mov eax, 0x412870
xor edx, edx
call fcn.0040dbfc
jmp 0x402928
mov byte [edi + 8], 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x402a1c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, eax
push esi
push edi
mov edi, edx
cmp dword [ebx + 0xc], 1
mov esi, ecx
jne 0x402a46
cmp esi, 0x4e20
jle 0x402a3c
mov esi, 0x4e20
push 0xfffffffffffffff6
call sub.KERNEL32.DLL_GetStdHandle
mov dword [ebx + 4], eax
push 0
lea eax, [ebp - 4]
push eax
push esi
push edi
push dword [ebx + 4]
call sub.KERNEL32.DLL_ReadFile
test eax, eax
jne 0x402a96
mov eax, ebx
call fcn.00402d68
test al, al
je 0x402a7d
cmp esi, 0x4e20
jle 0x402a7d
mov ecx, 0x4e20
mov edx, edi
mov eax, ebx
call fcn.00402a1c
jmp 0x402a99
cmp dword [ebx + 0xc], 1
jne 0x402a91
call sub.KERNEL32.DLL_GetLastError
cmp eax, 0x6d
jne 0x402a91
xor eax, eax
jmp 0x402a99
or eax, 0xffffffff
jmp 0x402a99
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x411958
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 4
add esp, 0xfffff004
push eax
dec eax
jne 0x411961
add esp, 0xfffff914
mov eax, dword [ebp - 4]
mov eax, 0x412870
mov dl, 1
push ebx
push esi
call fcn.0040de3c
call fcn.00411948
push 0x400
lea ecx, [ebp - 0x400]
push ecx
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
push 0x8005
call sub.KERNEL32.DLL_SetErrorMode
lea edx, [ebp - 0x400]
mov eax, 0x41287c
call fcn.0040aa0c
lea eax, [ebp - 0x46f0]
call fcn.0040a308
mov edx, 0x412468
lea eax, [ebp - 0x1c44]
call fcn.0040144c
xor esi, esi
call sub.KERNEL32.DLL_GetCommandLineA
mov ebx, eax
test ebx, ebx
je 0x4119f4
xor eax, eax
mov al, byte [ebx]
cmp eax, 0x22
jne 0x4119f4
lea eax, [ebx + 1]
mov edx, 0x22
call fcn.004013e0
mov ebx, eax
test ebx, ebx
je 0x411a2a
mov edx, 0x41246a
mov eax, ebx
call fcn.00401420
mov ebx, eax
test eax, eax
je 0x411a2a
jmp 0x411a0d
inc ebx
xor eax, eax
mov al, byte [ebx]
cmp eax, 0x20
je 0x411a1f
cmp eax, 9
je 0x411a1f
xor edx, edx
jmp 0x411a24
mov edx, 1
test dl, dl
jne 0x411a0c
mov esi, ebx
test esi, esi
je 0x411a71
xor edx, edx
lea eax, [ebp - 0x46f0]
mov dl, byte [esi]
call fcn.0040a894
test al, al
je 0x411a71
xor eax, eax
mov al, byte [esi + 1]
call fcn.00401a64
mov edx, eax
sub edx, 0x3f
je 0x411a66
sub edx, 0x15
je 0x411a5e
sub edx, 2
je 0x411a5e
jmp 0x411a71
mov byte [ebp - 0x1c44], al
jmp 0x411a71
lea eax, [ebp - 0x46f0]
call fcn.0040a610
lea edx, [ebp - 0x400]
lea eax, [ebp - 0x46f0]
xor ecx, ecx
call fcn.0040a854
lea eax, [ebp - 0x46f0]
call fcn.0040a4f0
mov dl, byte [ebp - 0x2650]
mov eax, dword [ebp - 0x2654]
call fcn.00409d8c
lea eax, [ebp - 0x2a57]
call fcn.00409d58
cmp byte [ebp - 0x2608], 0
jne 0x411ac1
cmp dword [ebp - 0x2654], 3
je 0x411ac1
xor eax, eax
jmp 0x411ac6
mov eax, 1
mov byte [0x412879], al
mov al, byte [ebp - 0x205a]
mov byte [0x41287a], al
lea eax, [ebp - 0x46f0]
call fcn.0040a588
lea eax, [ebp - 0x46f0]
call fcn.0040a7b0
lea eax, [ebp - 0x46f0]
mov edx, 2
call fcn.0040a340
call fcn.00402d90
mov eax, dword [0x412870]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401087
Capabilities:
Create process on windows
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x428
push edi
lea eax, [ebp - 0x21c]
push eax
mov edi, 0x104
push edi
mov byte [ebp - 2], 0
mov byte [ebp - 1], 0
call dword [sym.imp.KERNEL32.DLL_GetCurrentDirectoryW]
push dword [ebp + 8]
call fcn.004013f9
call fcn.0040e28e
test eax, eax
je 0x4010d6
push 0x10
push 0x46ad86
push str.This_is_a_compiled_AutoIt_script._AV_researchers_please_email_avsupport_autoitscript.com_for_support.
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x4012b0
cmp dword [0x48a7e0], 0
push ebx
push esi
mov ebx, 0x48a7f4
jne 0x401106
push 0xffffffffffffffff
push dword [0x48a7e8]
mov esi, 0x48c898
push 1
call fcn.004064c8
mov al, byte [0x4785bc]
mov byte [0x48c89a], al
jmp 0x401154
lea eax, [ebp - 2]
push eax
push 0x48a7e0
mov esi, ebx
mov eax, 0x48c898
call fcn.00406b22
test al, al
jne 0x40112e
mov dword [0x4785d4], 1
jmp 0x4012a1
mov al, byte [0x48c898]
mov byte [0x48a7e4], al
mov al, byte [0x48c899]
push 0x48a7dc
mov byte [ebp - 1], al
lea eax, [ebp - 0x428]
push eax
push edi
push ebx
call dword [sym.imp.KERNEL32.DLL_GetFullPathNameW]
push dword [0x48a7e0]
push ebx
call fcn.004192cb
test eax, eax
je 0x40118a
mov edi, 0x48c898
call fcn.00406694
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.DLL_SetCurrentDirectoryW]
mov dword [0x4785d4], 1
jmp 0x4012ae
cmp byte [ebp - 1], 1
jne 0x40123c
cmp byte [0x48a7b5], 1
jne 0x40123c
call fcn.0040d978
test al, al
jne 0x40123c
push edi
lea eax, [ebp - 0x428]
push eax
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameW]
cmp byte [ebp - 2], 0
je 0x401215
mov edi, 0x46adf0
push edi
lea esi, [ebp - 0x10]
call fcn.0040e2e3
push ebx
mov eax, esi
call fcn.0040e4de
push edi
mov eax, esi
call fcn.0040e4de
push 1
lea eax, [ebp - 0x21c]
push eax
push dword [ebp - 0x10]
lea eax, [ebp - 0x428]
push eax
push 0x46adf4
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push dword [ebp - 0x10]
call fcn.0044e346
pop ecx
jmp 0x401297
push 1
lea eax, [ebp - 0x21c]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x428]
push eax
push 0x46adf4
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
jmp 0x401297
call fcn.004012b5
call fcn.00401388
cmp byte [0x48a7e4], 0
jne 0x401259
mov edi, 0x48b240
call fcn.00409f2f
push 1
mov eax, 0x48aa00
call fcn.0041942d
cmp byte [0x48a7e4], 0
jne 0x401297
mov edi, 0x48c064
mov esi, dword [edi]
test esi, esi
je 0x40128c
push dword [esi + 8]
call fcn.0044e346
push esi
call fcn.0044e346
and dword [edi], 0
pop ecx
pop ecx
add edi, 4
cmp edi, 0x48c880
jl 0x401273
mov edi, 0x48c898
call fcn.00406694
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.DLL_SetCurrentDirectoryW]
pop esi
pop ebx
pop edi
leave
ret 4
Function at 0x401e77
Capabilities:
Log keystrokes

Disassembly:
push ebx
push ebp
push edi
push 1
push dword [esi]
call fcn.004035f3
mov edi, dword [sym.imp.USER32.dll_MapVirtualKeyW]
xor ebp, ebp
push ebp
push 0x25
call edi
mov ebx, dword [sym.imp.USER32.dll_PostMessageW]
shl eax, 0x10
or eax, 1
cmp dword [esp + 0x10], ebp
push eax
jge 0x401ec7
push 0x25
push 0x100
push dword [esi]
call ebx
push ebp
call dword [sym.imp.KERNEL32.DLL_Sleep]
push ebp
push 0x25
call edi
shl eax, 0x10
or eax, 0xc0000001
push eax
push 0x25
jmp 0x401ee9
push 0x27
push 0x100
push dword [esi]
call ebx
push ebp
call dword [sym.imp.KERNEL32.DLL_Sleep]
push ebp
push 0x25
call edi
shl eax, 0x10
or eax, 0xc0000001
push eax
push 0x27
push 0x101
push dword [esi]
call ebx
push ebp
call dword [sym.imp.KERNEL32.DLL_Sleep]
push ebp
push dword [esi]
call fcn.004035f3
pop edi
pop ebp
mov al, 1
pop ebx
ret 4

Function at 0x402347
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
mov ebx, eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push 0xb0
push dword [ebx]
call esi
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 8]
jne 0x402374
xor al, al
jmp 0x402388
push edi
push 0
push 0
push 0xe
push dword [ebx]
call esi
mov edi, eax
test edi, edi
jne 0x40238e
xor al, al
pop edi
pop esi
pop ebx
leave
ret 4
xor ecx, ecx
push 2
pop edx
lea eax, [edi + 0x101]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0044e2dc
pop ecx
push eax
mov dword [ebp - 4], eax
lea eax, [edi + 1]
push eax
push 0xd
push dword [ebx]
call esi
test eax, eax
je 0x4023eb
mov eax, dword [ebp - 8]
cmp eax, edi
je 0x4023ca
mov ecx, dword [ebp - 4]
and word [ecx + eax*2], 0
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
lea eax, [ecx + eax*2]
push eax
mov eax, dword [ebp + 8]
call fcn.0040e446
mov bl, 1
push dword [ebp - 4]
call fcn.0044e346
pop ecx
mov al, bl
jmp 0x402387
xor bl, bl
jmp 0x4023de
Function at 0x4032f4
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80c
and dword [ebp - 8], 0
and dword [ebp - 4], 0
cmp byte [esi + 8], 0
push edi
je 0x40332c
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
cmp dword [esi + 0x30], eax
jne 0x403325
mov dword [esi + 0x3c], edi
xor eax, eax
jmp 0x40343d
mov dword [ebp - 4], 1
cmp byte [esi + 4], 0
mov edi, dword [sym.imp.USER32.dll_GetClassNameW]
push ebx
mov ebx, 0x100
je 0x40336b
push ebx
lea eax, [ebp - 0x80c]
push eax
push dword [ebp + 8]
call edi
mov eax, dword [esi + 0xc]
lea ecx, [ebp - 0x80c]
push ecx
push eax
call fcn.0044e81b
test eax, eax
pop ecx
pop ecx
jne 0x403368
mov dword [ebp - 8], 1
inc dword [ebp - 4]
cmp byte [esi + 7], 0
je 0x4033d6
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x80c]
push eax
push ebx
call edi
mov edi, dword [esi + 0x18]
lea eax, [ebp - 0x80c]
push eax
call fcn.0044e874
push eax
lea eax, [ebp - 0x80c]
push eax
push edi
call fcn.0044e920
add esp, 0x10
test eax, eax
jne 0x4033d1
inc dword [esi + 0x40]
push dword [esi + 0x40]
lea eax, [ebp - 0x80c]
push eax
push str._s_u
push eax
call fcn.0044e88a
push dword [esi + 0x18]
lea eax, [ebp - 0x80c]
push eax
call fcn.0044e81b
add esp, 0x18
test eax, eax
je 0x403432
inc dword [ebp - 4]
jmp 0x4033d9
mov ebx, dword [ebp + 8]
cmp byte [esi + 6], 0
je 0x40340b
push 0x400
lea eax, [ebp - 0x80c]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov eax, dword [esi + 0x24]
lea ecx, [ebp - 0x80c]
push ecx
push eax
call fcn.0044e81b
test eax, eax
pop ecx
pop ecx
je 0x403432
inc dword [ebp - 4]
cmp byte [esi + 5], 0
je 0x40342a
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 4]
jne 0x403427
inc dword [esi + 0x40]
mov eax, dword [esi + 0x40]
cmp eax, dword [esi + 0x34]
jne 0x403427
inc dword [ebp - 8]
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp dword [ebp - 8], eax
jne 0x403439
mov dword [esi + 0x3c], ebx
xor eax, eax
jmp 0x40343c
xor eax, eax
inc eax
pop ebx
pop edi
leave
ret 4

Function at 0x4035f3
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
cmp byte [ebp + 0xc], 1
jne 0x40361e
lea eax, [ebp + 0xc]
push eax
push 0x1388
push 2
push 0
push 0
push 0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageTimeoutW]
test eax, eax
je 0x403639
push 1
jmp 0x403620
push 0
push 0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push eax
call dword [sym.imp.KERNEL32.DLL_GetCurrentThreadId]
push eax
call dword [sym.imp.USER32.dll_AttachThreadInput]
pop ebp
ret 8