joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40f4e8
Capabilities:
Create directory
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x518
push ebx
push esi
lea eax, [ebp + 8]
push edi
push eax
lea eax, [ebp - 0x518]
mov esi, 0x104
push eax
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
test eax, eax
je 0x40f652
lea eax, [ebp - 0x518]
push eax
lea eax, [ebp - 0x108]
push str.___s
push eax
call fcn.00442173
lea eax, [ebp - 0x108]
push eax
call fcn.00441580
add esp, 0x10
xor ebx, ebx
cmp byte [ebp + eax - 0x109], 0x5c
jne 0x40f578
lea eax, [ebp - 0x108]
push eax
call fcn.00441580
pop ecx
lea ecx, [ebp - 0x108]
dec ecx
dec ecx
cmp byte [eax + ecx], 0x3a
je 0x40f578
lea eax, [ebp - 0x108]
push eax
call fcn.00441580
pop ecx
mov byte [ebp + eax - 0x109], bl
push ebx
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x40f58f
cmp byte [ebp + 0x10], bl
je 0x40f652
push ebx
push 0x2200000
push 3
push ebx
push ebx
push 0x40000000
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x40f649
push 0x14
lea eax, [ebp - 0x414]
push ebx
push eax
call fcn.00442b20
lea eax, [ebp - 0x108]
mov dword [ebp - 0x414], 0xa0000003
push eax
call fcn.00441580
shl eax, 1
mov word [ebp - 0x40a], ax
mov eax, dword [ebp - 0x40a]
add eax, 2
add esp, 0x10
mov word [ebp - 0x408], ax
lea eax, [ebp - 0x404]
push esi
push eax
lea eax, [ebp - 0x108]
push 0xffffffffffffffff
push eax
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [ebp - 0x40a]
lea ecx, [ebp - 4]
add eax, 0xc
push ebx
mov word [ebp - 0x410], ax
push ecx
movzx eax, ax
push ebx
add eax, 8
push ebx
push eax
lea eax, [ebp - 0x414]
push eax
push 0x900a4
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
push edi
jne 0x40f656
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
xor eax, eax
jmp 0x40f65f
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x41018c
Capabilities:
Enumerate files on windows
Enumerate files recursively
Get file attributes
Set current directory
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_FindFirstFileA]
lea eax, [ebp - 0x148]
push edi
push eax
push dword [ebp + 8]
mov dword [ebp - 8], ecx
call esi
mov ebx, eax
cmp ebx, 0xffffffff
mov dword [ebp - 4], ebx
jne 0x4101be
xor al, al
jmp 0x4102e3
lea eax, [ebp - 0x11c]
push str..__
push eax
call fcn.00441f20
mov edi, dword [sym.imp.KERNEL32.dll_FindClose]
pop ecx
test eax, eax
pop ecx
je 0x41021b
lea eax, [ebp - 0x11c]
push 0x456b10
push eax
call fcn.00441f20
pop ecx
test eax, eax
pop ecx
je 0x41021b
lea eax, [ebp - 0x11c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, dword [ebp + 0x10]
or eax, dword [ebp + 0xc]
not ecx
and eax, ecx
push eax
lea eax, [ebp - 0x11c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
je 0x41022f
lea eax, [ebp - 0x148]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x410236
jmp 0x4101be
xor bl, bl
jmp 0x4102dc
push ebx
call edi
cmp byte [ebp + 0x14], 0
jne 0x410246
mov al, 1
jmp 0x4102e3
lea eax, [ebp - 0x148]
push eax
push 0x456b0c
call esi
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x4102da
mov esi, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov eax, dword [ebp - 0x148]
and eax, 0x10
cmp al, 0x10
jne 0x4102c6
lea eax, [ebp - 0x11c]
push str..__
push eax
call fcn.00441f20
pop ecx
test eax, eax
pop ecx
je 0x4102c6
mov ebx, 0x456b10
lea eax, [ebp - 0x11c]
push ebx
push eax
call fcn.00441f20
pop ecx
test eax, eax
pop ecx
je 0x4102c6
lea eax, [ebp - 0x11c]
push eax
call esi
push dword [ebp + 0x14]
mov ecx, dword [ebp - 8]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0041018c
test al, al
je 0x41022f
push ebx
call esi
lea eax, [ebp - 0x148]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x410262
mov bl, 1
push dword [ebp - 4]
call edi
mov al, bl
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x410c9c
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
mov eax, 0x44f960
call fcn.004419dc
sub esp, 0x160
push ebx
push esi
push edi
mov dword [ebp - 0x1c], ecx
push dword [ebp + 8]
lea ecx, [ebp - 0x18]
call fcn.0040101d
and dword [ebp - 4], 0
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00401079
push 0x456b0c
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.0040125c
lea eax, [ebp - 0x16c]
mov byte [ebp + 0xb], 1
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0x20], eax
je 0x410e04
mov esi, dword [ebp + 0x14]
mov edi, dword [ebp + 0x10]
mov ebx, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x1c]
call fcn.0040b3f2
cmp eax, 1
je 0x410e00
cmp eax, 0xb
jne 0x410d27
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x410d07
lea eax, [ebp - 0x140]
push str..__
push eax
call fcn.00441f20
pop ecx
test eax, eax
pop ecx
je 0x410de7
lea eax, [ebp - 0x140]
push 0x456b10
push eax
call fcn.00441f20
pop ecx
test eax, eax
pop ecx
je 0x410de7
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0x18]
push eax
call fcn.004010e6
lea eax, [ebp - 0x140]
lea ecx, [ebp - 0x18]
push eax
call fcn.0040125c
test byte [ebp - 0x16c], 0x10
je 0x410dbe
cmp byte [ebp + 0x18], 0
je 0x410d8e
add dword [esi], 1
adc dword [esi + 4], 0
cmp byte [ebp + 0x1c], 0
je 0x410de7
push 0x456b28
lea ecx, [ebp - 0x18]
call fcn.0040125c
push dword [ebp + 0x1c]
mov ecx, dword [ebp - 0x1c]
push dword [ebp + 0x18]
push esi
push edi
push ebx
push dword [ebp - 0x18]
call fcn.00410c9c
test al, al
mov byte [ebp + 0xb], al
je 0x410e04
jmp 0x410de7
mov ecx, dword [ebp - 0x150]
mov edx, dword [ebp - 0x14c]
xor ebx, ebx
xor eax, eax
or ecx, ebx
mov ebx, dword [ebp + 0xc]
or eax, edx
add dword [ebx], eax
adc dword [ebx + 4], ecx
cmp byte [ebp + 0x18], 0
je 0x410de7
add dword [edi], 1
adc dword [edi + 4], 0
lea eax, [ebp - 0x16c]
push eax
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x410e04
jmp 0x410d07
and byte [ebp + 0xb], 0
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_FindClose]
push dword [ebp - 0x2c]
and byte [ebp - 4], 0
call fcn.004415fb
push dword [ebp - 0x18]
or dword [ebp - 4], 0xffffffff
call fcn.004415fb
mov al, byte [ebp + 0xb]
pop ecx
pop ecx
pop edi
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x18
Function at 0x418e42
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
push dword [ebp + 0xc]
mov word [esi], 2
call sub.WSOCK32.dll_inet_addr
cmp eax, 0xffffffff
jne 0x418e64
push 0
push 1
jmp 0x418e8a
cmp dword [ebp + 0x10], 0
mov dword [esi + 4], eax
jle 0x418e86
cmp dword [ebp + 0x10], 0xffff
jg 0x418e86
push dword [ebp + 0x10]
call sub.WSOCK32.dll_htons
mov word [esi + 2], ax
mov al, 1
jmp 0x418e93
push 0
push 2
mov ecx, edi
call fcn.0040cbad
xor al, al
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x419a06
Capabilities:
Connect network resource
Query or enumerate registry value

Disassembly:
mov eax, 0x44fba8
call fcn.004419dc
sub esp, 0x154
push ebx
xor ebx, ebx
push esi
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], ebx
call fcn.00401000
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], ebx
call fcn.00401000
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 1
call fcn.00401000
push str.SOFTWAREClasses_
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 2
mov dword [ebp - 0x18], 0xff
call fcn.00401132
push dword [ebp + 8]
lea ecx, [ebp - 0x30]
call fcn.0040125c
push str.CLSID
lea ecx, [ebp - 0x30]
call fcn.0040125c
push 0x45cb90
lea ecx, [ebp - 0x24]
call fcn.00401132
mov esi, dword [ebp + 0xc]
cmp esi, ebx
je 0x419aa4
cmp byte [esi], 0x5c
je 0x419aa4
cmp byte [esi + 1], 0x5c
je 0x419aa4
push 0x4572dc
lea ecx, [ebp - 0x24]
call fcn.00401132
push esi
lea ecx, [ebp - 0x24]
call fcn.0040125c
cmp dword [ebp + 0x14], ebx
je 0x419af4
push 0x20
lea eax, [ebp - 0x5c]
push ebx
push eax
call fcn.00442b20
add esp, 0xc
lea eax, [ebp - 0x24]
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x58], ebx
push eax
call fcn.004010e6
push str.IPC_
lea ecx, [ebp - 0x3c]
call fcn.0040125c
mov eax, dword [ebp - 0x3c]
push ebx
push dword [ebp + 0x14]
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x5c]
push dword [ebp + 0x18]
push eax
call sub.MPR.dll_WNetAddConnection2A
mov esi, eax
cmp esi, ebx
jne 0x419b87
lea eax, [ebp - 0x10]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_RegConnectRegistryA]
mov esi, eax
cmp esi, ebx
jne 0x419b87
lea eax, [ebp - 0x14]
push eax
push 0x20019
push ebx
push dword [ebp - 0x30]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
cmp esi, ebx
jne 0x419b7e
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x160]
push eax
push ebx
push ebx
push ebx
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
cmp esi, ebx
jne 0x419b75
mov eax, dword [ebp - 0x18]
push edi
push ebx
mov byte [ebp + eax - 0x160], bl
lea eax, [ebp - 0x160]
push eax
call fcn.0043f350
pop ecx
mov edi, eax
pop ecx
push dword [ebp + 0x10]
push edi
call dword [sym.imp.ole32.dll_CLSIDFromString]
push edi
mov esi, eax
call fcn.004415fb
pop ecx
pop edi
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x3c]
mov byte [ebp - 4], 1
call fcn.004415fb
push dword [ebp - 0x24]
mov byte [ebp - 4], bl
call fcn.004415fb
push dword [ebp - 0x30]
or dword [ebp - 4], 0xffffffff
call fcn.004415fb
mov ecx, dword [ebp - 0xc]
add esp, 0xc
mov eax, esi
mov dword fs:[0], ecx
pop esi
pop ebx
leave
ret
Function at 0x4205cf
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x4502f8
call fcn.004419dc
mov eax, 0x101c
call fcn.00442420
push ebx
push esi
push edi
lea ecx, [ebp - 0x18]
call fcn.00401000
and dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.00401000
mov ecx, dword [ebp + 8]
mov byte [ebp - 4], 1
call fcn.00403136
mov edi, eax
xor bl, bl
push 1
mov al, byte [edi]
pop esi
test al, al
mov byte [ebp - 0x1c], al
je 0x420705
cmp al, 0x25
jne 0x4206c0
cmp byte [edi + esi], al
jne 0x420639
push 0x25
lea ecx, [ebp - 0x18]
mov bl, 1
call fcn.004012c8
inc esi
jmp 0x4206cb
push 0x45cb90
lea ecx, [ebp - 0x28]
call fcn.00401132
mov al, byte [edi + esi]
cmp al, 0x25
je 0x42065d
test al, al
je 0x42065d
push eax
lea ecx, [ebp - 0x28]
inc esi
call fcn.004012c8
jmp 0x420646
cmp byte [edi + esi], 0
je 0x4206dc
and byte [ebp - 0x1028], 0
lea eax, [ebp - 0x1028]
push 0xfff
push eax
push dword [ebp - 0x28]
inc esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x420697
lea eax, [ebp - 0x1028]
lea ecx, [ebp - 0x18]
push eax
call fcn.0040125c
mov bl, 1
jmp 0x4206cb
push 0x457e54
lea ecx, [ebp - 0x18]
mov bl, 1
call fcn.0040125c
push dword [ebp - 0x28]
lea ecx, [ebp - 0x18]
call fcn.0040125c
push 0x457e54
lea ecx, [ebp - 0x18]
call fcn.0040125c
jmp 0x4206cb
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x18]
call fcn.004012c8
mov al, byte [edi + esi]
inc esi
test al, al
mov byte [ebp - 0x1c], al
jne 0x42061a
jmp 0x4206f6
push 0x457e54
lea ecx, [ebp - 0x18]
mov bl, 1
call fcn.0040125c
push dword [ebp - 0x28]
lea ecx, [ebp - 0x18]
call fcn.0040125c
test bl, bl
je 0x420705
push dword [ebp - 0x18]
mov ecx, dword [ebp + 8]
call fcn.00403875
push dword [ebp - 0x28]
and byte [ebp - 4], 0
call fcn.004415fb
push dword [ebp - 0x18]
or dword [ebp - 4], 0xffffffff
call fcn.004415fb
pop ecx
pop ecx
pop edi
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x426224
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
push ebx
push esi
lea eax, [ebp - 0x14]
push edi
xor ebx, ebx
push eax
push ebx
push ebx
lea eax, [ebp - 8]
push ebx
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
push eax
lea eax, [ebp - 0x114]
mov dword [ebp - 8], 0xff
push eax
push ebx
push dword [ebp + 8]
call esi
mov edi, 0x103
cmp eax, edi
je 0x4262e4
xor eax, eax
cmp byte [0x464ae8], bl
je 0x426273
mov eax, 0x100
lea ecx, [ebp - 0xc]
or eax, 0x20019
push ecx
push eax
lea eax, [ebp - 0x114]
push ebx
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4262e8
push dword [ebp - 0xc]
call fcn.00426224
pop ecx
mov byte [ebp - 1], al
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [ebp - 1], bl
je 0x4262e8
lea eax, [ebp - 0x114]
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x4262e8
lea eax, [ebp - 0x14]
mov dword [ebp - 8], 0xff
push eax
push ebx
push ebx
lea eax, [ebp - 8]
push ebx
push eax
lea eax, [ebp - 0x114]
push eax
push ebx
push dword [ebp + 8]
call esi
jmp 0x42625c
mov al, 1
jmp 0x4262ea
xor al, al
pop edi
pop esi
pop ebx
leave
ret
Function at 0x428d9e
Capabilities:
Enumerate gui resources

Disassembly:
mov eax, 0x450818
call fcn.004419dc
sub esp, 0xc
mov al, byte [ebp + 8]
push ebx
push esi
mov esi, ecx
mov byte [esi + 0x3182], al
call fcn.00428d2a
lea ebx, [esi + 0x3110]
mov ecx, ebx
call fcn.004047e1
test al, al
je 0x428e00
mov ecx, ebx
call fcn.004032f6
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x428f88
mov ecx, ebx
call fcn.004032f6
mov dword [esi + 0x3168], eax
push eax
mov ecx, esi
call fcn.00428d60
mov al, 1
jmp 0x428f8a
cmp dword [esi + 0x316c], 4
mov ecx, ebx
jne 0x428f1c
call fcn.00403136
cmp byte [eax], 0
je 0x428f0d
push str.last
mov ecx, ebx
call fcn.00403136
push eax
call fcn.00442c20
pop ecx
test eax, eax
pop ecx
je 0x428f0d
push str.active
mov ecx, ebx
call fcn.00403136
push eax
call fcn.00442c20
pop ecx
test eax, eax
pop ecx
je 0x428f36
push 7
push str.handle
mov ecx, ebx
call fcn.00403136
push eax
call fcn.0044d610
add esp, 0xc
test eax, eax
jne 0x428e86
push str.Use_directly_Windows_handle
push 0xb8
mov ecx, esi
call fcn.0040b16c
jmp 0x428f88
push 7
push str.regexp
mov ecx, ebx
call fcn.00403136
push eax
call fcn.0044d610
add esp, 0xc
test eax, eax
jne 0x428f41
push edi
lea edi, [esi + 0x3140]
mov ecx, edi
call fcn.0043959e
mov ecx, ebx
call fcn.00403136
add eax, 7
lea ecx, [ebp - 0x18]
push eax
call fcn.0040101d
lea eax, [ebp - 0x18]
xor ebx, ebx
push eax
mov ecx, edi
mov dword [ebp - 4], ebx
call fcn.00439194
push dword [ebp - 0x18]
test eax, eax
setl byte [ebp + 0xb]
or dword [ebp - 4], 0xffffffff
call fcn.004415fb
cmp byte [ebp + 0xb], bl
pop ecx
pop edi
je 0x428f43
push ebx
lea ecx, [esi + 0x140]
call fcn.0040374f
mov byte [esi + 0x158], 1
mov dword [esi + 0x94], ebx
jmp 0x428df9
mov eax, dword [esi + 0x3168]
test eax, eax
je 0x428f88
jmp 0x428df1
call fcn.00403136
cmp byte [eax], 0
jne 0x428f41
lea ecx, [esi + 0x3128]
call fcn.00403136
cmp byte [eax], 0
jne 0x428f41
call dword [sym.imp.USER32.dll_GetForegroundWindow]
jmp 0x428deb
xor ebx, ebx
cmp byte [esi + 0x3181], 0
push ebx
push 0x428f9a
jne 0x428f5a
call dword [sym.imp.USER32.dll_EnumWindows]
jmp 0x428f67
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_EnumChildWindows]
cmp dword [esi + 0x317c], ebx
je 0x428f82
mov eax, dword [esi + 0x3174]
mov eax, dword [eax]
mov dword [esi + 0x3168], eax
jmp 0x428df9
mov dword [esi + 0x3168], ebx
xor al, al
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x428faf
Capabilities:
Get graphical window text

Disassembly:
mov eax, 0x45082c
call fcn.004419dc
sub esp, 0x410
mov al, byte [0x45cb90]
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push edi
mov byte [ebp - 0x41c], al
mov ecx, 0x100
xor eax, eax
lea edi, [ebp - 0x41b]
rep stosd dword es:[edi], eax
mov edi, 0x400
lea eax, [ebp - 0x41c]
push edi
push eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov eax, dword [esi + 0x316c]
mov dword [esi + 0x3168], ebx
dec eax
je 0x429151
dec eax
je 0x429133
dec eax
je 0x429123
dec eax
jne 0x429181
lea ebx, [esi + 0x3110]
push 0xa
push str.classname
mov ecx, ebx
call fcn.00403136
push eax
call fcn.0044d610
add esp, 0xc
test eax, eax
jne 0x42906d
lea eax, [ebp - 0x41c]
push edi
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetClassNameA]
mov ecx, ebx
call fcn.00403136
add eax, 0xa
push eax
lea eax, [ebp - 0x41c]
push eax
call fcn.00441f20
pop ecx
pop ecx
jmp 0x42917d
push 0x456b64
mov ecx, ebx
call fcn.00403136
push eax
call fcn.00442c20
pop ecx
test eax, eax
pop ecx
je 0x42910c
mov ecx, ebx
call fcn.00403136
push eax
call fcn.00441580
pop ecx
push eax
lea eax, [ebp - 0x41c]
push eax
mov ecx, ebx
call fcn.00403136
push eax
call fcn.00443b10
add esp, 0xc
test eax, eax
je 0x42910c
push 7
push str.regexp
mov ecx, ebx
call fcn.00403136
push eax
call fcn.0044d610
add esp, 0xc
test eax, eax
jne 0x429181
lea eax, [ebp - 0x41c]
lea ecx, [ebp - 0x18]
push eax
call fcn.0040101d
xor ebx, ebx
lea eax, [ebp - 0x18]
push ebx
push ebx
push eax
lea ecx, [esi + 0x3140]
mov dword [ebp - 4], ebx
call fcn.00439264
push dword [ebp - 0x18]
or dword [ebp - 4], 0xffffffff
mov byte [ebp + 0xb], al
call fcn.004415fb
cmp byte [ebp + 0xb], bl
pop ecx
je 0x429181
mov ecx, esi
call fcn.00429195
cmp al, 1
jne 0x429181
cmp byte [esi + 0x3182], al
jne 0x429181
xor eax, eax
jmp 0x429184
lea ecx, [esi + 0x3110]
call fcn.00403136
jmp 0x429059
lea ecx, [esi + 0x3110]
call fcn.00403136
push eax
lea eax, [ebp - 0x41c]
push eax
call fcn.00442cf0
pop ecx
pop ecx
test eax, eax
jmp 0x42910a
lea edi, [esi + 0x3110]
mov ecx, edi
call fcn.00403136
push eax
call fcn.00441580
pop ecx
push eax
lea eax, [ebp - 0x41c]
push eax
mov ecx, edi
call fcn.00403136
push eax
call fcn.00443b10
add esp, 0xc
test eax, eax
je 0x42910c
push 1
pop eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8
Function at 0x42921b
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x8000
call fcn.00442420
and byte [ebp - 0x8000], 0
push esi
push dword [ebp + 8]
mov esi, ecx
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x429248
cmp byte [esi + 0x3180], 1
jne 0x4292b6
cmp dword [esi + 0x3170], 2
jne 0x429268
lea eax, [ebp - 0x8000]
push 0x7fff
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x42927f
lea eax, [ebp - 0x8000]
push eax
push 0x7fff
push 0xd
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageA]
and byte [ebp - 1], 0
test eax, eax
je 0x4292b6
lea ecx, [esi + 0x3128]
call fcn.00403136
push eax
lea eax, [ebp - 0x8000]
push eax
call fcn.00442cf0
pop ecx
test eax, eax
pop ecx
je 0x4292b6
push dword [esi + 0x3168]
mov ecx, esi
call fcn.00428d60
xor eax, eax
jmp 0x4292b9
push 1
pop eax
pop esi
leave
ret 8

Function at 0x4298ac
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
push ebx
push esi
mov esi, ecx
push edi
push 1
mov eax, dword [esi + 0x3190]
pop ebx
cmp eax, 2
jne 0x4298e5
lea ecx, [esi + 0x3198]
call fcn.004031ec
push dword [ebp + 8]
mov edi, eax
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
cmp edi, eax
jmp 0x4299a3
test eax, eax
jne 0x429972
lea eax, [ebp - 0x404]
push 0x100
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetClassNameA]
lea eax, [ebp - 0x404]
lea edi, [esi + 0x3198]
push eax
call fcn.00441580
pop ecx
push eax
lea eax, [ebp - 0x404]
push eax
mov ecx, edi
call fcn.00403136
push eax
call fcn.00443b10
add esp, 0xc
test eax, eax
jne 0x4299b7
inc dword [esi + 0x31b0]
push dword [esi + 0x31b0]
lea eax, [esi + 0x31b0]
lea eax, [ebp - 0x404]
push eax
lea eax, [ebp - 0x404]
push str._s_u
push eax
call fcn.00442173
add esp, 0x10
mov ecx, edi
call fcn.00403136
push eax
lea eax, [ebp - 0x404]
jmp 0x429999
lea eax, [ebp - 0x404]
push 0x400
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea eax, [ebp - 0x404]
lea ecx, [esi + 0x3198]
push eax
call fcn.00403136
push eax
call fcn.00441f20
pop ecx
pop ecx
test eax, eax
jne 0x4299b7
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [esi + 0x31b8], eax
mov byte [esi + 0x31b4], 1
pop edi
mov eax, ebx
pop esi
pop ebx
leave
ret 8
Function at 0x42bef4
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push ebx
push esi
lea eax, [ebp - 0x108]
push edi
push eax
mov esi, ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov ecx, esi
call fcn.0042c14d
cmp dword [esi + 0x10], 0
lea ebx, [esi + 0x10]
jne 0x42bf39
push 0xffffffffffffffff
mov edi, 0x4600b0
push dword [esi + 0x14]
mov ecx, edi
push 1
call fcn.00439859
jmp 0x42bf77
lea eax, [esi + 0x20]
mov edi, 0x4600b0
push ebx
push eax
mov ecx, edi
call fcn.00439cf4
test al, al
jne 0x42bf5d
mov dword [0x464af4], 1
jmp 0x42bfe5
lea eax, [esi + 0xc]
push eax
lea eax, [ebp - 0x210]
push eax
lea eax, [esi + 0x20]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
mov ecx, edi
call fcn.00439cbf
push dword [ebx]
lea eax, [esi + 0x20]
mov ebx, 0x4615a8
push eax
mov ecx, ebx
call fcn.0040b34b
test eax, eax
je 0x42bfb4
mov ecx, edi
call fcn.00439a1f
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov dword [0x464af4], 1
jmp 0x42bff2
mov ecx, esi
call fcn.0042bff7
mov ecx, esi
call fcn.0042c0dc
cmp byte [0x4600a9], 1
jne 0x42bfd5
mov ecx, 0x460400
call fcn.0043bf65
push 1
mov ecx, ebx
call fcn.0040b4ac
mov ecx, edi
call fcn.00439a1f
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x42d23d
Capabilities:
Create process on windows

Disassembly:
push ebx
push esi
push edi
xor ebx, ebx
push 0x44
mov edi, 0x4664c0
push ebx
push edi
call fcn.00442b20
push 0x10
mov esi, 0x4664b0
push ebx
push esi
call fcn.00442b20
add esp, 0x18
mov dword [0x4664c0], 0x44
push 1
pop eax
push esi
push edi
push ebx
push ebx
push 0x20
push ebx
push ebx
push ebx
push dword [esp + 0x30]
mov dword [0x4664ec], eax
mov word [0x4664f0], ax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
pop edi
pop esi
test eax, eax
pop ebx
je 0x42d2a0
push dword [0x4664b0]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
ret 4
Function at 0x42e8b5
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0xc]
push edi
mov edi, dword [esi]
mov dword [ebp - 4], ecx
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
mov eax, dword [ebp - 0xc]
mov dword [esi + 0x4120], eax
mov eax, dword [ebp - 8]
mov dword [esi + 0x4124], eax
lea eax, [ebp - 0xc]
push eax
push edi
call dword [sym.imp.USER32.dll_ScreenToClient]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
cmp ecx, dword [esi + 0x4128]
lea eax, [esi + 0x4128]
jne 0x42e908
cmp edx, dword [esi + 0x412c]
je 0x42e923
cmp byte [ebp + 0xc], 0
mov dword [eax], ecx
mov dword [esi + 0x412c], edx
je 0x42e923
push edx
push ecx
mov ecx, dword [ebp - 4]
push esi
push 0xfffffffffffffff5
call fcn.0042d0b2
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
push ebx
push 1
call edi
xor ebx, ebx
push 2
test ax, ax
setl bl
call edi
xor ecx, ecx
test ax, ax
setl cl
cmp ebx, dword [esi + 0x4130]
mov edi, ecx
je 0x42e9a1
cmp byte [ebp + 0xc], 0
je 0x42e9a1
push dword [ebp - 8]
test ebx, ebx
push dword [ebp - 0xc]
push esi
je 0x42e961
push 0xfffffffffffffff9
jmp 0x42e992
mov ecx, dword [ebp - 4]
push 0xfffffffffffffff8
call fcn.0042d0b2
cmp byte [esi + 0x4138], 0
je 0x42e99a
push 0xfffffffffffffff0
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindowLongA]
push dword [ebp - 8]
test eax, 0x1000000
push dword [ebp - 0xc]
push esi
je 0x42e990
push 0xfffffffffffffffa
jmp 0x42e992
push 0xfffffffffffffff4
mov ecx, dword [ebp - 4]
call fcn.0042d0b2
and byte [esi + 0x4138], 0
cmp edi, dword [esi + 0x4134]
mov dword [esi + 0x4130], ebx
pop ebx
je 0x42e9cf
cmp byte [ebp + 0xc], 0
je 0x42e9cf
push dword [ebp - 8]
test edi, edi
push dword [ebp - 0xc]
push esi
je 0x42e9c5
push 0xfffffffffffffff7
jmp 0x42e9c7
push 0xfffffffffffffff6
mov ecx, dword [ebp - 4]
call fcn.0042d0b2
mov dword [esi + 0x4134], edi
pop edi
pop esi
leave
ret 8