joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41dab9
Capabilities:
Enumerate files on windows
Enumerate files recursively
Get file attributes
Set current directory
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14c
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_FindFirstFileA]
push edi
lea eax, [esp + 0x18]
push eax
push dword [ebp + 8]
mov dword [esp + 0x1c], ecx
call esi
mov edi, eax
cmp edi, 0xffffffff
jne 0x41daee
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileA]
lea eax, [esp + 0x44]
push 0x469a60
push eax
call fcn.0044d5b0
test eax, eax
pop ecx
pop ecx
je 0x41db43
lea eax, [esp + 0x44]
push 0x46b2dc
push eax
call fcn.0044d5b0
test eax, eax
pop ecx
pop ecx
je 0x41db43
lea eax, [esp + 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
or eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
not ecx
and eax, ecx
push eax
lea eax, [esp + 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
je 0x41db62
lea eax, [esp + 0x18]
push eax
push edi
call ebx
test eax, eax
jne 0x41daf4
push edi
mov edi, dword [sym.imp.KERNEL32.dll_FindClose]
call edi
cmp byte [ebp + 0x14], 0
jne 0x41db6e
mov al, 1
jmp 0x41dae5
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x41dae3
lea eax, [esp + 0x18]
push eax
push 0x46b2d8
call esi
cmp eax, 0xffffffff
mov dword [esp + 0x10], eax
je 0x41dbf0
mov esi, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test byte [esp + 0x18], 0x10
je 0x41dbe1
lea eax, [esp + 0x44]
push 0x469a60
push eax
call fcn.0044d5b0
test eax, eax
pop ecx
pop ecx
je 0x41dbe1
lea eax, [esp + 0x44]
push 0x46b2dc
push eax
call fcn.0044d5b0
test eax, eax
pop ecx
pop ecx
je 0x41dbe1
lea eax, [esp + 0x44]
push eax
call esi
push dword [ebp + 0x14]
mov ecx, dword [esp + 0x18]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0041dab9
test al, al
je 0x41dbf4
push 0x46b2dc
call esi
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x14]
call ebx
test eax, eax
jne 0x41db89
mov bl, 1
jmp 0x41dbf6
xor bl, bl
push dword [esp + 0x10]
call edi
mov al, bl
jmp 0x41dae5
Function at 0x41e6db
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x164
push ebx
push esi
push edi
push dword [ebp + 8]
lea esi, [ebp - 0xc]
mov dword [ebp - 0x10], ecx
call fcn.0040dab0
mov edi, esi
lea esi, [ebp - 0x20]
call fcn.0040db02
push 0x46b2d8
mov eax, edi
call fcn.0040dc7f
lea eax, [ebp - 0x160]
push eax
push dword [ebp - 0xc]
mov byte [ebp + 0xb], 1
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0x14], eax
je 0x41e82e
mov edi, dword [ebp + 0x10]
mov esi, dword [ebp - 0x10]
call fcn.00418914
cmp eax, 1
je 0x41e82a
cmp eax, 0xb
jne 0x41e74e
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x41e72e
lea eax, [ebp - 0x134]
push 0x469a60
push eax
call fcn.0044d5b0
test eax, eax
pop ecx
pop ecx
je 0x41e810
lea eax, [ebp - 0x134]
push 0x46b2dc
push eax
call fcn.0044d5b0
test eax, eax
pop ecx
pop ecx
je 0x41e810
lea ebx, [ebp - 0x20]
lea eax, [ebp - 0xc]
call fcn.0040db98
lea eax, [ebp - 0x134]
push eax
lea eax, [ebp - 0xc]
call fcn.0040dc7f
test byte [ebp - 0x160], 0x10
je 0x41e7e8
mov esi, dword [ebp + 0x14]
xor ebx, ebx
cmp byte [ebp + 0x18], bl
je 0x41e7b7
add dword [esi], 1
adc dword [esi + 4], ebx
cmp byte [ebp + 0x1c], bl
je 0x41e810
push 0x469344
lea eax, [ebp - 0xc]
call fcn.0040dc7f
push dword [ebp + 0x1c]
mov ecx, dword [ebp - 0x10]
push dword [ebp + 0x18]
push esi
push edi
push dword [ebp + 0xc]
push dword [ebp - 0xc]
call fcn.0041e6db
cmp al, bl
mov byte [ebp + 0xb], al
je 0x41e82e
jmp 0x41e810
mov eax, dword [ebp - 0x140]
mov edx, dword [ebp - 0x144]
xor ecx, ecx
xor esi, esi
or ecx, eax
mov eax, dword [ebp + 0xc]
or edx, esi
add dword [eax], ecx
adc dword [eax + 4], edx
cmp byte [ebp + 0x18], 0
je 0x41e810
add dword [edi], 1
adc dword [edi + 4], esi
lea eax, [ebp - 0x160]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x41e72e
jmp 0x41e82e
mov byte [ebp + 0xb], 0
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_FindClose]
push dword [ebp - 0x20]
call fcn.0044d0f0
pop ecx
push dword [ebp - 0xc]
call fcn.0044d0f0
mov al, byte [ebp + 0xb]
pop ecx
pop edi
pop esi
pop ebx
leave
ret 0x18
Function at 0x426d12
Capabilities:
Set socket configuration

Disassembly:
push ebx
push edi
push dword [esp + 0x10]
mov word [esi], 2
call fcn.0040ceef
pop ecx
mov ebx, eax
push ebx
call sub.WSOCK32.dll_inet_addr
push ebx
mov edi, eax
call fcn.0044d0f0
cmp edi, 0xffffffff
pop ecx
jne 0x426d40
xor ecx, ecx
push 0
inc ecx
jmp 0x426d65
mov eax, dword [esp + 0x14]
lea ecx, [eax - 1]
cmp ecx, 0xfffe
mov dword [esi + 4], edi
ja 0x426d60
push eax
call sub.WSOCK32.dll_htons
mov word [esi + 2], ax
mov al, 1
jmp 0x426d70
push 0
push 2
pop ecx
mov eax, dword [esp + 0x10]
call fcn.00419e1f
xor al, al
pop edi
pop ebx
ret 0xc

Function at 0x4279a9
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x164
and dword [ebp - 8], 0
push ebx
push esi
push edi
lea ecx, [ebp - 0x24]
mov dword [ebp - 0xc], 0x80004002
mov dword [ebp - 4], 0x28
call fcn.0040da93
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [ebp - 0x10]
push eax
mov ebx, 0x20019
push ebx
push 0
push str.interface
mov edi, connect
push edi
call esi
test eax, eax
je 0x427a07
mov esi, 0x80004002
push dword [ebp - 0x24]
call fcn.0044d0f0
pop ecx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
lea eax, [ebp - 0x2c]
push eax
xor eax, eax
push eax
push eax
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x54]
push eax
push dword [ebp - 8]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x427ae6
mov eax, dword [ebp - 4]
mov byte [ebp + eax - 0x54], 0
push str.interface_
lea eax, [ebp - 0x24]
mov dword [ebp - 4], 0xff
call fcn.0040dbc1
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x24]
call fcn.0040dc7f
lea eax, [ebp - 0x14]
push eax
push ebx
push 0
push dword [ebp - 0x24]
push edi
call esi
test eax, eax
jne 0x427ad1
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x160]
push eax
xor eax, eax
push eax
push eax
push eax
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x427ac8
mov eax, dword [ebp - 4]
push dword [ebp + 0xc]
mov byte [ebp + eax - 0x160], 0
lea eax, [ebp - 0x160]
push eax
call fcn.0044ced8
test eax, eax
pop ecx
pop ecx
jne 0x427ac8
lea eax, [ebp - 0x54]
push eax
or eax, 0xffffffff
call fcn.0040d68b
pop ecx
push dword [ebp + 8]
mov dword [ebp - 0x18], eax
push eax
call dword [sym.imp.ole32.dll_IIDFromString]
push dword [ebp - 0x18]
mov dword [ebp - 0xc], eax
call fcn.0044d0f0
pop ecx
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0xc], 0
je 0x427ae6
inc dword [ebp - 8]
mov dword [ebp - 4], 0x28
jmp 0x427a07
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [ebp - 0xc]
jmp 0x4279f7
Function at 0x427af7
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
push ebx
push esi
push edi
lea ecx, [ebp - 0x20]
call fcn.0040da93
fld1
lea eax, [ebp - 0xc]
fstp qword [ebp - 0x28]
push eax
push dword [ebp + 8]
call dword [sym.imp.ole32.dll_StringFromIID]
mov esi, eax
xor ebx, ebx
cmp esi, ebx
jl 0x427c8c
push dword [ebp - 0xc]
or eax, 0xffffffff
call fcn.0040d6fa
mov esi, eax
lea eax, [ebp - 0x20]
mov dword [esp], str.interface_
call fcn.0040dbc1
push esi
lea eax, [ebp - 0x20]
call fcn.0040dc7f
push str.TypeLib
lea eax, [ebp - 0x20]
call fcn.0040dc7f
push esi
call fcn.0044d0f0
pop ecx
push dword [ebp - 0xc]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
lea eax, [ebp - 8]
push eax
push 0x20019
push ebx
push dword [ebp - 0x20]
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
cmp esi, ebx
jne 0x427c8c
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x140]
push eax
push ebx
push ebx
push ebx
push dword [ebp - 8]
mov dword [ebp - 4], 0xff
call edi
mov esi, eax
cmp esi, ebx
jne 0x427c83
mov eax, dword [ebp - 4]
mov byte [ebp + eax - 0x140], bl
lea eax, [ebp - 0x140]
push eax
or eax, 0xffffffff
call fcn.0040d68b
pop ecx
lea ecx, [ebp - 0x38]
push ecx
push eax
mov dword [ebp - 0x14], eax
call dword [sym.imp.ole32.dll_CLSIDFromString]
push dword [ebp - 0x14]
mov esi, eax
call fcn.0044d0f0
cmp esi, ebx
pop ecx
jl 0x427c83
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x140]
push eax
push ebx
push ebx
push str.Version
push dword [ebp - 8]
mov dword [ebp - 4], 0xff
call edi
test eax, eax
jne 0x427c2e
mov eax, dword [ebp - 4]
mov byte [ebp + eax - 0x140], bl
lea eax, [ebp - 0x140]
push eax
call fcn.0044fef3
fstp qword [ebp - 0x28]
pop ecx
fld1
lea eax, [ebp - 0x10]
push eax
push ebx
sub esp, 0x10
fstp qword [esp + 8]
fld qword [ebp - 0x28]
fstp qword [esp]
call fcn.00451dd0
add esp, 0x10
call fcn.004634e6
fld qword [ebp - 0x28]
push eax
call fcn.004634e6
push eax
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.OLEAUT32.dll_RegisterTypeLib]
mov esi, eax
cmp esi, ebx
jl 0x427c83
push dword [ebp + 0xc]
mov eax, dword [ebp - 0x10]
push dword [ebp + 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
mov esi, eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x20]
call fcn.0044d0f0
pop ecx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x427c9c
Capabilities:
Connect network resource
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x15c
push ebx
push esi
xor ebx, ebx
push edi
lea ecx, [ebp - 0x24]
mov esi, eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
call fcn.0040da93
lea ecx, [ebp - 0x18]
call fcn.0040da93
lea ecx, [ebp - 0x30]
call fcn.0040da93
push str.SOFTWAREClasses_
lea eax, [ebp - 0x24]
call fcn.0040dbc1
push dword [ebp + 8]
lea eax, [ebp - 0x24]
call fcn.0040dc7f
push str.CLSID
lea eax, [ebp - 0x24]
call fcn.0040dc7f
push 0x468eee
lea eax, [ebp - 0x18]
call fcn.0040dbc1
cmp esi, ebx
je 0x427d21
cmp byte [esi], 0x5c
je 0x427d21
cmp byte [esi + 1], 0x5c
je 0x427d21
push 0x46b984
lea eax, [ebp - 0x18]
call fcn.0040dbc1
push esi
lea eax, [ebp - 0x18]
call fcn.0040dc7f
cmp dword [ebp + 0x10], ebx
je 0x427d73
push 0x20
lea eax, [ebp - 0x50]
push ebx
push eax
call fcn.0044fdd0
mov dword [ebp - 0x4c], ebx
add esp, 0xc
lea ebx, [ebp - 0x18]
lea eax, [ebp - 0x30]
call fcn.0040db98
push str.IPC_
lea eax, [ebp - 0x30]
call fcn.0040dc7f
mov eax, dword [ebp - 0x30]
push 0
push dword [ebp + 0x10]
mov dword [ebp - 0x3c], eax
push dword [ebp + 0x14]
lea eax, [ebp - 0x50]
push eax
call sub.MPR.dll_WNetAddConnection2A
mov esi, eax
test esi, esi
jne 0x427e0a
xor ebx, ebx
lea eax, [ebp - 4]
push eax
push reloc.WSOCK32.dll_bind
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegConnectRegistryA]
mov esi, eax
cmp esi, ebx
jne 0x427e0a
lea eax, [ebp - 8]
push eax
push 0x20019
push ebx
push dword [ebp - 0x24]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, eax
cmp esi, ebx
jne 0x427e05
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x158]
push eax
push ebx
push ebx
push ebx
push dword [ebp - 8]
mov dword [ebp - 0xc], 0xff
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
cmp esi, ebx
jne 0x427e00
mov eax, dword [ebp - 0xc]
mov byte [ebp + eax - 0x158], bl
lea eax, [ebp - 0x158]
push eax
or eax, 0xffffffff
call fcn.0040d68b
pop ecx
push dword [ebp + 0xc]
mov ebx, eax
push ebx
call dword [sym.imp.ole32.dll_CLSIDFromString]
push ebx
mov esi, eax
call fcn.0044d0f0
pop ecx
push dword [ebp - 8]
call edi
push dword [ebp - 4]
call edi
push dword [ebp - 0x30]
call fcn.0044d0f0
push dword [ebp - 0x18]
call fcn.0044d0f0
push dword [ebp - 0x24]
call fcn.0044d0f0
add esp, 0xc
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x43090c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
push ebx
push esi
push edi
push str.open
lea esi, [ebp - 0x14]
call fcn.0040dab0
xor ebx, ebx
push 0x3c
xor esi, esi
lea eax, [ebp - 0x5c]
push ebx
inc esi
push eax
xor edi, edi
mov dword [ebp - 4], ebx
mov dword [ebp - 8], esi
call fcn.0044fdd0
add esp, 0xc
cmp dword [ebp + 0x14], 2
jb 0x430974
mov ecx, dword [ebp + 0x10]
mov eax, esi
call fcn.0040545c
mov esi, eax
call fcn.0040f2f4
cmp byte [eax], bl
je 0x430974
mov ecx, dword [ebp + 0x10]
xor eax, eax
inc eax
call fcn.0040545c
mov esi, eax
call fcn.0040f2f4
push eax
call fcn.0040ceef
pop ecx
mov edi, eax
cmp dword [ebp + 0x14], 3
jb 0x430996
mov ecx, dword [ebp + 0x10]
push 2
pop eax
call fcn.0040545c
mov esi, eax
call fcn.0040f2f4
push eax
call fcn.0040ceef
pop ecx
mov dword [ebp - 4], eax
cmp dword [ebp + 0x14], 4
jb 0x4309d0
mov ecx, dword [ebp + 0x10]
push 3
pop eax
call fcn.0040545c
mov esi, eax
call fcn.0040f2f4
cmp byte [eax], bl
je 0x4309d0
mov ecx, dword [ebp + 0x10]
push 3
pop eax
call fcn.0040545c
mov esi, eax
call fcn.0040f316
mov ebx, eax
lea eax, [ebp - 0x14]
call fcn.0040db98
xor ebx, ebx
cmp dword [ebp + 0x14], 5
jb 0x4309ec
mov ecx, dword [ebp + 0x10]
push 4
pop eax
call fcn.0040545c
call fcn.0040f3c6
movzx eax, ax
mov dword [ebp - 8], eax
push 0x3c
pop esi
push esi
lea eax, [ebp - 0x5c]
push ebx
push eax
call fcn.0044fdd0
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x50], eax
add esp, 0xc
xor eax, eax
mov dword [ebp - 0x5c], esi
mov dword [ebp - 0x58], 0x40
mov dword [ebp - 0x54], ebx
call fcn.0040545c
mov esi, eax
call fcn.0040f2f4
mov esi, dword [ebp - 4]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x5c]
push eax
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x44], esi
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
cmp edi, ebx
mov dword [ebp + 0x10], eax
je 0x430a4b
push edi
call fcn.0044d0f0
pop ecx
cmp esi, ebx
je 0x430a56
push esi
call fcn.0044d0f0
pop ecx
cmp dword [ebp + 0x10], ebx
jne 0x430ab4
mov esi, dword [ebp + 8]
cmp byte [esi + 0x198], 1
jne 0x430a9e
push 0xffffffffffffffff
lea eax, [ebp - 0x20]
push eax
call fcn.0041881d
push dword [eax]
mov ebx, esi
push 0x87
call fcn.00418657
push dword [ebp - 0x20]
call fcn.0044d0f0
xor ebx, ebx
pop ecx
inc ebx
push dword [ebp - 0x14]
call fcn.0044d0f0
pop ecx
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 0x14
xor ecx, ecx
push ebx
inc ecx
mov eax, esi
call fcn.00419e1f
mov esi, dword [ebp + 0x18]
push ebx
call fcn.0040f871
jmp 0x430a8c
cmp byte [ebp + 0xc], bl
je 0x430ac7
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x6d8], eax
jmp 0x430a8c
mov esi, dword [ebp + 0x18]
push 1
call fcn.0040f871
cmp dword [ebp - 0x24], ebx
je 0x430a8c
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x430a8c
Function at 0x4338e1
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x114
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
push edi
xor ebx, ebx
lea eax, [esp + 0x18]
push eax
push ebx
push ebx
push ebx
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x34]
push eax
push ebx
push dword [ebp + 8]
mov dword [esp + 0x30], 0xff
call esi
mov edi, 0x103
jmp 0x43399c
xor eax, eax
cmp byte [0x47d650], bl
je 0x43392e
mov eax, 0x100
lea ecx, [esp + 0x14]
push ecx
or eax, 0x20019
push eax
push ebx
lea eax, [esp + 0x2c]
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4339a8
push dword [esp + 0x14]
call fcn.004338e1
pop ecx
push dword [esp + 0x14]
mov byte [esp + 0x13], al
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [esp + 0xf], bl
je 0x4339a8
lea eax, [esp + 0x20]
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x4339a8
lea eax, [esp + 0x18]
push eax
push ebx
push ebx
push ebx
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x34]
push eax
push ebx
push dword [ebp + 8]
mov dword [esp + 0x30], 0xff
call esi
cmp eax, edi
jne 0x43391f
mov al, 1
jmp 0x4339aa
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x434393
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
cmp edi, 0xffffffff
je 0x43441b
push edi
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
jne 0x43441b
mov esi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push eax
xor ebx, ebx
push ebx
push ebx
push edi
call esi
cmp dword [ebp + 0xc], ebx
mov dword [ebp - 4], eax
je 0x4343ef
cmp dword [ebp + 0x10], ebx
jbe 0x4343ef
push ebx
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4343e7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
jmp 0x43441d
push ebx
push ebx
push dword [ebp - 4]
push edi
call esi
cmp dword [ebp + 0x18], ebx
je 0x43440f
push 2
push ebx
push ebx
push edi
call esi
push ebx
push ebx
push dword [ebp - 4]
mov edi, eax
push dword [ebp + 8]
call esi
sub edi, dword [ebp - 4]
mov eax, dword [ebp + 0x18]
mov dword [eax], edi
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
inc eax
jmp 0x434425
push 6
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x439a7f
Capabilities:
Create process on windows

Disassembly:
push ebx
push esi
push edi
push 0x44
xor ebx, ebx
push ebx
mov edi, 0x47f2f8
push edi
call fcn.0044fdd0
push 0x10
push ebx
mov esi, 0x47f2e8
push esi
call fcn.0044fdd0
add esp, 0x18
push esi
push edi
push ebx
push ebx
push 0x20
push ebx
push ebx
push ebx
push dword [esp + 0x30]
xor eax, eax
inc eax
push ebx
mov dword [0x47f2f8], 0x44
mov dword [0x47f324], eax
mov word [0x47f328], ax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
pop edi
pop esi
pop ebx
je 0x439ae2
push dword [0x47f2e8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
ret 4
Function at 0x43a064
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, eax
mov esi, dword [edi]
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
mov eax, dword [ebp - 0xc]
mov dword [edi + 0x4134], eax
mov eax, dword [ebp - 8]
mov dword [edi + 0x4138], eax
lea eax, [ebp - 0xc]
push eax
push esi
call dword [sym.imp.USER32.dll_ScreenToClient]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
lea eax, [edi + 0x413c]
cmp ecx, dword [eax]
jne 0x43a0b0
cmp edx, dword [edi + 0x4140]
je 0x43a0ca
cmp dword [ebp + 0xc], 1
mov dword [eax], ecx
mov dword [edi + 0x4140], edx
jne 0x43a0ca
push edx
push ecx
push 0xfffffffffffffff5
push dword [ebp + 8]
call fcn.0043997e
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 1
call esi
mov ebx, 0x8000
test bx, ax
jne 0x43a0f1
push 1
call dword [sym.imp.USER32.dll_GetKeyState]
test bx, ax
jne 0x43a0f1
and dword [ebp - 4], 0
jmp 0x43a0f8
mov dword [ebp - 4], 1
push 2
call esi
test bx, ax
jne 0x43a112
push 2
call dword [sym.imp.USER32.dll_GetKeyState]
test bx, ax
jne 0x43a112
xor ebx, ebx
jmp 0x43a115
xor ebx, ebx
inc ebx
mov esi, dword [ebp - 4]
cmp esi, dword [edi + 0x4144]
je 0x43a17c
cmp dword [ebp + 0xc], 1
jne 0x43a17c
cmp byte [edi + 0x4170], 0
je 0x43a182
test esi, esi
push dword [ebp - 8]
push dword [ebp - 0xc]
je 0x43a13d
push 0xfffffffffffffff9
jmp 0x43a16d
push 0xfffffffffffffff8
push dword [ebp + 8]
call fcn.0043997e
cmp byte [edi + 0x414c], 0
je 0x43a175
push 0xfffffffffffffff0
push dword [edi]
call dword [sym.imp.USER32.dll_GetWindowLongA]
test eax, 0x1000000
push dword [ebp - 8]
push dword [ebp - 0xc]
je 0x43a16b
push 0xfffffffffffffffa
jmp 0x43a16d
push 0xfffffffffffffff4
push dword [ebp + 8]
call fcn.0043997e
mov byte [edi + 0x414c], 0
cmp dword [ebp + 0xc], 0
je 0x43a188
mov dword [edi + 0x4144], esi
cmp ebx, dword [edi + 0x4148]
je 0x43a1b6
cmp dword [ebp + 0xc], 1
jne 0x43a1b6
test ebx, ebx
push dword [ebp - 8]
push dword [ebp - 0xc]
je 0x43a1ac
push 0xfffffffffffffff7
push dword [ebp + 8]
call fcn.0043997e
jmp 0x43a1bc
push 0xfffffffffffffff6
push dword [ebp + 8]
call fcn.0043997e
cmp dword [ebp + 0xc], 0
je 0x43a1c2
mov dword [edi + 0x4148], ebx
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x43ef15
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
xor ebx, ebx
cmp byte [eax], bl
push esi
push edi
mov dword [ebp - 0xc], ebx
je 0x43f01c
push ebx
push ebx
push 3
push ebx
push ebx
push connect
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x43ef4b
xor eax, eax
jmp 0x43f048
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push eax
push 2
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push ebx
lea ecx, [ebp - 0x18]
push ecx
push dword [ebp - 0x14]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x10]
push eax
push 1
push esi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
lea eax, [ebp - 0xc]
push eax
push 0x466120
push ebx
push ebx
push dword [ebp - 0x10]
call dword [sym.imp.OLEAUT32.dll_OleCreatePictureIndirect]
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 0xc]
cmp eax, ebx
je 0x43ef44
mov ecx, dword [eax]
lea edx, [ebp - 8]
push edx
push eax
call dword [ecx + 0xc]
lea eax, [ebp - 0x30]
push eax
push 0x18
push dword [ebp - 8]
call dword [sym.imp.GDI32.dll_GetObjectA]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
cmp edx, ebx
mov eax, dword [ebp + 0x10]
jne 0x43eff3
cmp dword [eax], ebx
jne 0x43eff3
mov edx, dword [ebp - 0x2c]
mov dword [ecx], edx
mov edx, dword [ebp - 0x28]
mov dword [eax], edx
jmp 0x43effb
mov dword [ebp - 0x2c], edx
mov edx, dword [eax]
mov dword [ebp - 0x28], edx
push 0x2000
push dword [eax]
push dword [ecx]
push ebx
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_CopyImage]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x43f01f
mov dword [ebp - 8], ebx
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x44]
cmp eax, ebx
je 0x43f030
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [ebp - 8]
push eax
push ebx
mov dword [esi + 0x44], eax
mov esi, dword [esi]
push 0x172
push esi
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 0xc