joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41e1bc
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 0x41e1f1
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 0x46a860
push eax
call fcn.0044e470
test eax, eax
pop ecx
pop ecx
je 0x41e246
lea eax, [esp + 0x44]
push 0x46c120
push eax
call fcn.0044e470
test eax, eax
pop ecx
pop ecx
je 0x41e246
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 0x41e265
lea eax, [esp + 0x18]
push eax
push edi
call ebx
test eax, eax
jne 0x41e1f7
push edi
mov edi, dword [sym.imp.KERNEL32.dll_FindClose]
call edi
cmp byte [ebp + 0x14], 0
jne 0x41e271
mov al, 1
jmp 0x41e1e8
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x41e1e6
lea eax, [esp + 0x18]
push eax
push 0x46c11c
call esi
cmp eax, 0xffffffff
mov dword [esp + 0x10], eax
je 0x41e2f3
mov esi, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test byte [esp + 0x18], 0x10
je 0x41e2e4
lea eax, [esp + 0x44]
push 0x46a860
push eax
call fcn.0044e470
test eax, eax
pop ecx
pop ecx
je 0x41e2e4
lea eax, [esp + 0x44]
push 0x46c120
push eax
call fcn.0044e470
test eax, eax
pop ecx
pop ecx
je 0x41e2e4
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.0041e1bc
test al, al
je 0x41e2f7
push 0x46c120
call esi
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x14]
call ebx
test eax, eax
jne 0x41e28c
mov bl, 1
jmp 0x41e2f9
xor bl, bl
push dword [esp + 0x10]
call edi
mov al, bl
jmp 0x41e1e8
Function at 0x41edde
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.0040e09c
mov edi, esi
lea esi, [ebp - 0x20]
call fcn.0040e0ee
push 0x46c11c
mov eax, edi
call fcn.0040e26b
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 0x41ef31
mov edi, dword [ebp + 0x10]
mov esi, dword [ebp - 0x10]
call fcn.00418ff8
cmp eax, 1
je 0x41ef2d
cmp eax, 0xb
jne 0x41ee51
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x41ee31
lea eax, [ebp - 0x134]
push 0x46a860
push eax
call fcn.0044e470
test eax, eax
pop ecx
pop ecx
je 0x41ef13
lea eax, [ebp - 0x134]
push 0x46c120
push eax
call fcn.0044e470
test eax, eax
pop ecx
pop ecx
je 0x41ef13
lea ebx, [ebp - 0x20]
lea eax, [ebp - 0xc]
call fcn.0040e184
lea eax, [ebp - 0x134]
push eax
lea eax, [ebp - 0xc]
call fcn.0040e26b
test byte [ebp - 0x160], 0x10
je 0x41eeeb
mov esi, dword [ebp + 0x14]
xor ebx, ebx
cmp byte [ebp + 0x18], bl
je 0x41eeba
add dword [esi], 1
adc dword [esi + 4], ebx
cmp byte [ebp + 0x1c], bl
je 0x41ef13
push 0x46a144
lea eax, [ebp - 0xc]
call fcn.0040e26b
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.0041edde
cmp al, bl
mov byte [ebp + 0xb], al
je 0x41ef31
jmp 0x41ef13
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 0x41ef13
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 0x41ee31
jmp 0x41ef31
mov byte [ebp + 0xb], 0
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_FindClose]
push dword [ebp - 0x20]
call fcn.0044dfb0
pop ecx
push dword [ebp - 0xc]
call fcn.0044dfb0
mov al, byte [ebp + 0xb]
pop ecx
pop edi
pop esi
pop ebx
leave
ret 0x18
Function at 0x42743a
Capabilities:
Set socket configuration

Disassembly:
push ebx
push edi
push dword [esp + 0x10]
mov word [esi], 2
call fcn.0040d4ad
pop ecx
mov ebx, eax
push ebx
call sub.WSOCK32.dll_inet_addr
push ebx
mov edi, eax
call fcn.0044dfb0
cmp edi, 0xffffffff
pop ecx
jne 0x427468
xor ecx, ecx
push 0
inc ecx
jmp 0x42748d
mov eax, dword [esp + 0x14]
lea ecx, [eax - 1]
cmp ecx, 0xfffe
mov dword [esi + 4], edi
ja 0x427488
push eax
call sub.WSOCK32.dll_htons
mov word [esi + 2], ax
mov al, 1
jmp 0x427498
push 0
push 2
pop ecx
mov eax, dword [esp + 0x10]
call fcn.0041a511
xor al, al
pop edi
pop ebx
ret 0xc

Function at 0x4280c9
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.0040e07f
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 0x428127
mov esi, 0x80004002
push dword [ebp - 0x24]
call fcn.0044dfb0
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 0x428206
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.0040e1ad
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x24]
call fcn.0040e26b
lea eax, [ebp - 0x14]
push eax
push ebx
push 0
push dword [ebp - 0x24]
push edi
call esi
test eax, eax
jne 0x4281f1
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 0x4281e8
mov eax, dword [ebp - 4]
push dword [ebp + 0xc]
mov byte [ebp + eax - 0x160], 0
lea eax, [ebp - 0x160]
push eax
call fcn.0044dd98
test eax, eax
pop ecx
pop ecx
jne 0x4281e8
lea eax, [ebp - 0x54]
push eax
or eax, 0xffffffff
call fcn.0040dc4e
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.0044dfb0
pop ecx
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0xc], 0
je 0x428206
inc dword [ebp - 8]
mov dword [ebp - 4], 0x28
jmp 0x428127
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [ebp - 0xc]
jmp 0x428117
Function at 0x428217
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.0040e07f
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 0x4283ac
push dword [ebp - 0xc]
or eax, 0xffffffff
call fcn.0040dcbd
mov esi, eax
lea eax, [ebp - 0x20]
mov dword [esp], str.interface_
call fcn.0040e1ad
push esi
lea eax, [ebp - 0x20]
call fcn.0040e26b
push str.TypeLib
lea eax, [ebp - 0x20]
call fcn.0040e26b
push esi
call fcn.0044dfb0
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 0x4283ac
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 0x4283a3
mov eax, dword [ebp - 4]
mov byte [ebp + eax - 0x140], bl
lea eax, [ebp - 0x140]
push eax
or eax, 0xffffffff
call fcn.0040dc4e
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.0044dfb0
cmp esi, ebx
pop ecx
jl 0x4283a3
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 0x42834e
mov eax, dword [ebp - 4]
mov byte [ebp + eax - 0x140], bl
lea eax, [ebp - 0x140]
push eax
call fcn.00450da3
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.00452c90
add esp, 0x10
call fcn.004643a6
fld qword [ebp - 0x28]
push eax
call fcn.004643a6
push eax
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.OLEAUT32.dll_RegisterTypeLib]
mov esi, eax
cmp esi, ebx
jl 0x4283a3
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.0044dfb0
pop ecx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4283bc
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.0040e07f
lea ecx, [ebp - 0x18]
call fcn.0040e07f
lea ecx, [ebp - 0x30]
call fcn.0040e07f
push str.SOFTWAREClasses_
lea eax, [ebp - 0x24]
call fcn.0040e1ad
push dword [ebp + 8]
lea eax, [ebp - 0x24]
call fcn.0040e26b
push str.CLSID
lea eax, [ebp - 0x24]
call fcn.0040e26b
push 0x469cee
lea eax, [ebp - 0x18]
call fcn.0040e1ad
cmp esi, ebx
je 0x428441
cmp byte [esi], 0x5c
je 0x428441
cmp byte [esi + 1], 0x5c
je 0x428441
push 0x46c7c8
lea eax, [ebp - 0x18]
call fcn.0040e1ad
push esi
lea eax, [ebp - 0x18]
call fcn.0040e26b
cmp dword [ebp + 0x10], ebx
je 0x428493
push 0x20
lea eax, [ebp - 0x50]
push ebx
push eax
call fcn.00450c80
mov dword [ebp - 0x4c], ebx
add esp, 0xc
lea ebx, [ebp - 0x18]
lea eax, [ebp - 0x30]
call fcn.0040e184
push str.IPC_
lea eax, [ebp - 0x30]
call fcn.0040e26b
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 0x42852a
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 0x42852a
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 0x428525
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 0x428520
mov eax, dword [ebp - 0xc]
mov byte [ebp + eax - 0x158], bl
lea eax, [ebp - 0x158]
push eax
or eax, 0xffffffff
call fcn.0040dc4e
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.0044dfb0
pop ecx
push dword [ebp - 8]
call edi
push dword [ebp - 4]
call edi
push dword [ebp - 0x30]
call fcn.0044dfb0
push dword [ebp - 0x18]
call fcn.0044dfb0
push dword [ebp - 0x24]
call fcn.0044dfb0
add esp, 0xc
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4312a4
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.0040e09c
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.00450c80
add esp, 0xc
cmp dword [ebp + 0x14], 2
jb 0x43130c
mov ecx, dword [ebp + 0x10]
mov eax, esi
call fcn.004059cd
mov esi, eax
call fcn.0040f8e0
cmp byte [eax], bl
je 0x43130c
mov ecx, dword [ebp + 0x10]
xor eax, eax
inc eax
call fcn.004059cd
mov esi, eax
call fcn.0040f8e0
push eax
call fcn.0040d4ad
pop ecx
mov edi, eax
cmp dword [ebp + 0x14], 3
jb 0x43132e
mov ecx, dword [ebp + 0x10]
push 2
pop eax
call fcn.004059cd
mov esi, eax
call fcn.0040f8e0
push eax
call fcn.0040d4ad
pop ecx
mov dword [ebp - 4], eax
cmp dword [ebp + 0x14], 4
jb 0x431368
mov ecx, dword [ebp + 0x10]
push 3
pop eax
call fcn.004059cd
mov esi, eax
call fcn.0040f8e0
cmp byte [eax], bl
je 0x431368
mov ecx, dword [ebp + 0x10]
push 3
pop eax
call fcn.004059cd
mov esi, eax
call fcn.0040f902
mov ebx, eax
lea eax, [ebp - 0x14]
call fcn.0040e184
xor ebx, ebx
cmp dword [ebp + 0x14], 5
jb 0x431384
mov ecx, dword [ebp + 0x10]
push 4
pop eax
call fcn.004059cd
call fcn.0040f9b2
movzx eax, ax
mov dword [ebp - 8], eax
push 0x3c
pop esi
push esi
lea eax, [ebp - 0x5c]
push ebx
push eax
call fcn.00450c80
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.004059cd
mov esi, eax
call fcn.0040f8e0
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 0x4313e3
push edi
call fcn.0044dfb0
pop ecx
cmp esi, ebx
je 0x4313ee
push esi
call fcn.0044dfb0
pop ecx
cmp dword [ebp + 0x10], ebx
jne 0x43144c
mov esi, dword [ebp + 8]
cmp byte [esi + 0x19c], 1
jne 0x431436
push 0xffffffffffffffff
lea eax, [ebp - 0x20]
push eax
call fcn.00418f01
push dword [eax]
mov ebx, esi
push 0x87
call fcn.00418d3b
push dword [ebp - 0x20]
call fcn.0044dfb0
xor ebx, ebx
pop ecx
inc ebx
push dword [ebp - 0x14]
call fcn.0044dfb0
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.0041a511
mov esi, dword [ebp + 0x18]
push ebx
call fcn.0040fe5d
jmp 0x431424
cmp byte [ebp + 0xc], bl
je 0x43145f
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x6d8], eax
jmp 0x431424
mov esi, dword [ebp + 0x18]
push 1
call fcn.0040fe5d
cmp dword [ebp - 0x24], ebx
je 0x431424
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x431424
Function at 0x4342a8
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 0x434363
xor eax, eax
cmp byte [0x47e5b0], bl
je 0x4342f5
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 0x43436f
push dword [esp + 0x14]
call fcn.004342a8
pop ecx
push dword [esp + 0x14]
mov byte [esp + 0x13], al
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [esp + 0xf], bl
je 0x43436f
lea eax, [esp + 0x20]
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x43436f
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 0x4342e6
mov al, 1
jmp 0x434371
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x434d5a
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 0x434de2
push edi
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
jne 0x434de2
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 0x434db6
cmp dword [ebp + 0x10], ebx
jbe 0x434db6
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 0x434dae
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
jmp 0x434de4
push ebx
push ebx
push dword [ebp - 4]
push edi
call esi
cmp dword [ebp + 0x18], ebx
je 0x434dd6
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 0x434dec
push 6
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x43a7a7
Capabilities:
Create process on windows

Disassembly:
push ebx
push esi
push edi
push 0x44
xor ebx, ebx
push ebx
mov edi, 0x480260
push edi
call fcn.00450c80
push 0x10
push ebx
mov esi, 0x480250
push esi
call fcn.00450c80
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 [0x480260], 0x44
mov dword [0x48028c], eax
mov word [0x480290], ax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
pop edi
pop esi
pop ebx
je 0x43a80a
push dword [0x480250]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
ret 4
Function at 0x43ad8c
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 0x43add8
cmp edx, dword [edi + 0x4140]
je 0x43adf2
cmp dword [ebp + 0xc], 1
mov dword [eax], ecx
mov dword [edi + 0x4140], edx
jne 0x43adf2
push edx
push ecx
push 0xfffffffffffffff5
push dword [ebp + 8]
call fcn.0043a6a6
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 1
call esi
mov ebx, 0x8000
test bx, ax
jne 0x43ae19
push 1
call dword [sym.imp.USER32.dll_GetKeyState]
test bx, ax
jne 0x43ae19
and dword [ebp - 4], 0
jmp 0x43ae20
mov dword [ebp - 4], 1
push 2
call esi
test bx, ax
jne 0x43ae3a
push 2
call dword [sym.imp.USER32.dll_GetKeyState]
test bx, ax
jne 0x43ae3a
xor ebx, ebx
jmp 0x43ae3d
xor ebx, ebx
inc ebx
mov esi, dword [ebp - 4]
cmp esi, dword [edi + 0x4144]
je 0x43aea4
cmp dword [ebp + 0xc], 1
jne 0x43aea4
cmp byte [edi + 0x4170], 0
je 0x43aeaa
test esi, esi
push dword [ebp - 8]
push dword [ebp - 0xc]
je 0x43ae65
push 0xfffffffffffffff9
jmp 0x43ae95
push 0xfffffffffffffff8
push dword [ebp + 8]
call fcn.0043a6a6
cmp byte [edi + 0x414c], 0
je 0x43ae9d
push 0xfffffffffffffff0
push dword [edi]
call dword [sym.imp.USER32.dll_GetWindowLongA]
test eax, 0x1000000
push dword [ebp - 8]
push dword [ebp - 0xc]
je 0x43ae93
push 0xfffffffffffffffa
jmp 0x43ae95
push 0xfffffffffffffff4
push dword [ebp + 8]
call fcn.0043a6a6
mov byte [edi + 0x414c], 0
cmp dword [ebp + 0xc], 0
je 0x43aeb0
mov dword [edi + 0x4144], esi
cmp ebx, dword [edi + 0x4148]
je 0x43aede
cmp dword [ebp + 0xc], 1
jne 0x43aede
test ebx, ebx
push dword [ebp - 8]
push dword [ebp - 0xc]
je 0x43aed4
push 0xfffffffffffffff7
push dword [ebp + 8]
call fcn.0043a6a6
jmp 0x43aee4
push 0xfffffffffffffff6
push dword [ebp + 8]
call fcn.0043a6a6
cmp dword [ebp + 0xc], 0
je 0x43aeea
mov dword [edi + 0x4148], ebx
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x43fc6d
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 0x43fd74
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 0x43fca3
xor eax, eax
jmp 0x43fda0
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 0x4658d0
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 0x43fc9c
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 0x43fd4b
cmp dword [eax], ebx
jne 0x43fd4b
mov edx, dword [ebp - 0x2c]
mov dword [ecx], edx
mov edx, dword [ebp - 0x28]
mov dword [eax], edx
jmp 0x43fd53
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 0x43fd77
mov dword [ebp - 8], ebx
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x44]
cmp eax, ebx
je 0x43fd88
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