joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41e526
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, 0x25c
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_FindFirstFileW]
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 0x41e55b
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileW]
lea eax, [esp + 0x44]
push 0x46bf18
push eax
call fcn.0044e371
test eax, eax
pop ecx
pop ecx
je 0x41e5b0
lea eax, [esp + 0x44]
push 0x46ec04
push eax
call fcn.0044e371
test eax, eax
pop ecx
pop ecx
je 0x41e5b0
lea eax, [esp + 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
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_SetFileAttributesW]
test eax, eax
je 0x41e5cf
lea eax, [esp + 0x18]
push eax
push edi
call ebx
test eax, eax
jne 0x41e561
push edi
mov edi, dword [sym.imp.KERNEL32.dll_FindClose]
call edi
cmp byte [ebp + 0x14], 0
jne 0x41e5db
mov al, 1
jmp 0x41e552
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x41e550
lea eax, [esp + 0x18]
push eax
push 0x46ebfc
call esi
cmp eax, 0xffffffff
mov dword [esp + 0x10], eax
je 0x41e65d
mov esi, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test byte [esp + 0x18], 0x10
je 0x41e64e
lea eax, [esp + 0x44]
push 0x46bf18
push eax
call fcn.0044e371
test eax, eax
pop ecx
pop ecx
je 0x41e64e
lea eax, [esp + 0x44]
push 0x46ec04
push eax
call fcn.0044e371
test eax, eax
pop ecx
pop ecx
je 0x41e64e
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.0041e526
test al, al
je 0x41e661
push 0x46ec04
call esi
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x14]
call ebx
test eax, eax
jne 0x41e5f6
mov bl, 1
jmp 0x41e663
xor bl, bl
push dword [esp + 0x10]
call edi
mov al, bl
jmp 0x41e552
Function at 0x41f148
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x274
push ebx
push esi
push edi
push dword [ebp + 8]
lea esi, [ebp - 0xc]
mov dword [ebp - 0x10], ecx
call fcn.0040e2d5
mov edi, esi
lea esi, [ebp - 0x20]
call fcn.0040e348
push 0x46ebfc
mov eax, edi
call fcn.0040e4d0
lea eax, [ebp - 0x270]
push eax
push dword [ebp - 0xc]
mov byte [ebp + 0xb], 1
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x14], eax
je 0x41f29b
mov edi, dword [ebp + 0x10]
mov esi, dword [ebp - 0x10]
call fcn.004192e6
cmp eax, 1
je 0x41f297
cmp eax, 0xb
jne 0x41f1bb
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x41f19b
lea eax, [ebp - 0x244]
push 0x46bf18
push eax
call fcn.0044e371
test eax, eax
pop ecx
pop ecx
je 0x41f27d
lea eax, [ebp - 0x244]
push 0x46ec04
push eax
call fcn.0044e371
test eax, eax
pop ecx
pop ecx
je 0x41f27d
lea ebx, [ebp - 0x20]
lea eax, [ebp - 0xc]
call fcn.0040e40c
lea eax, [ebp - 0x244]
push eax
lea eax, [ebp - 0xc]
call fcn.0040e4d0
test byte [ebp - 0x270], 0x10
je 0x41f255
mov esi, dword [ebp + 0x14]
xor ebx, ebx
cmp byte [ebp + 0x18], bl
je 0x41f224
add dword [esi], 1
adc dword [esi + 4], ebx
cmp byte [ebp + 0x1c], bl
je 0x41f27d
push 0x46b574
lea eax, [ebp - 0xc]
call fcn.0040e4d0
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.0041f148
cmp al, bl
mov byte [ebp + 0xb], al
je 0x41f29b
jmp 0x41f27d
mov eax, dword [ebp - 0x250]
mov edx, dword [ebp - 0x254]
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 0x41f27d
add dword [edi], 1
adc dword [edi + 4], esi
lea eax, [ebp - 0x270]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x41f19b
jmp 0x41f29b
mov byte [ebp + 0xb], 0
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_FindClose]
push dword [ebp - 0x20]
call fcn.0044de9c
pop ecx
push dword [ebp - 0xc]
call fcn.0044de9c
mov al, byte [ebp + 0xb]
pop ecx
pop edi
pop esi
pop ebx
leave
ret 0x18
Function at 0x427842
Capabilities:
Set socket configuration

Disassembly:
push ebx
push edi
push dword [esp + 0x10]
or eax, 0xffffffff
mov word [esi], 2
call fcn.0040df0e
pop ecx
mov ebx, eax
push ebx
call sub.WSOCK32.dll_inet_addr
push ebx
mov edi, eax
call fcn.0044de9c
cmp edi, 0xffffffff
pop ecx
jne 0x427873
xor ecx, ecx
push 0
inc ecx
jmp 0x427898
mov eax, dword [esp + 0x14]
lea ecx, [eax - 1]
cmp ecx, 0xfffe
mov dword [esi + 4], edi
ja 0x427893
push eax
call sub.WSOCK32.dll_htons
mov word [esi + 2], ax
mov al, 1
jmp 0x4278a3
push 0
push 2
pop ecx
mov eax, dword [esp + 0x10]
call fcn.0041a7ff
xor al, al
pop edi
pop ebx
ret 0xc

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x284
and dword [ebp - 8], 0
push ebx
push esi
push edi
lea ecx, [ebp - 0x20]
mov dword [ebp - 0xc], 0x80004002
mov dword [ebp - 4], 0x28
call fcn.0040e2a9
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0x10]
push eax
mov ebx, 0x20019
push ebx
push 0
push str.interface
mov edi, bind
push edi
call esi
test eax, eax
je 0x4285b9
mov esi, 0x80004002
push dword [ebp - 0x20]
call fcn.0044de9c
pop ecx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
lea eax, [ebp - 0x28]
push eax
xor eax, eax
push eax
push eax
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x78]
push eax
push dword [ebp - 8]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x428687
mov eax, dword [ebp - 4]
and word [ebp + eax*2 - 0x78], 0
push str.interface_
lea eax, [ebp - 0x20]
mov dword [ebp - 4], 0x1fe
call fcn.0040e438
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x20]
call fcn.0040e4d0
lea eax, [ebp - 0x14]
push eax
push ebx
push 0
push dword [ebp - 0x20]
push edi
call esi
test eax, eax
jne 0x428672
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x280]
push eax
xor eax, eax
push eax
push eax
push eax
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x428669
shr dword [ebp - 4], 1
mov eax, dword [ebp - 4]
and word [ebp + eax*2 - 0x280], 0
push dword [ebp + 0xc]
lea eax, [ebp - 0x280]
push eax
call fcn.0044dcfd
test eax, eax
pop ecx
pop ecx
jne 0x428669
push dword [ebp + 8]
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.ole32.dll_IIDFromString]
mov dword [ebp - 0xc], eax
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0xc], 0
je 0x428687
inc dword [ebp - 8]
mov dword [ebp - 4], 0x28
jmp 0x4285b9
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [ebp - 0xc]
jmp 0x4285a9
Function at 0x428698
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x244
push ebx
push esi
push edi
lea ecx, [ebp - 0x20]
call fcn.0040e2a9
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 edi, edi
cmp esi, edi
jl 0x42882f
push dword [ebp - 0xc]
call fcn.0040d6aa
mov esi, eax
lea eax, [ebp - 0x20]
mov dword [esp], str.interface_
call fcn.0040e438
push esi
lea eax, [ebp - 0x20]
call fcn.0040e4d0
push str.TypeLib
lea eax, [ebp - 0x20]
call fcn.0040e4d0
push esi
call fcn.0044de9c
pop ecx
push dword [ebp - 0xc]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
lea eax, [ebp - 8]
push eax
push 0x20019
push edi
push dword [ebp - 0x20]
push bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
cmp esi, edi
jne 0x42882f
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x240]
push eax
push edi
push edi
push edi
push dword [ebp - 8]
mov dword [ebp - 4], 0x1fe
call ebx
mov esi, eax
cmp esi, edi
jne 0x428826
shr dword [ebp - 4], 1
mov eax, dword [ebp - 4]
mov word [ebp + eax*2 - 0x240], di
lea eax, [ebp - 0x240]
push eax
call fcn.0040d6aa
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.0044de9c
cmp esi, edi
pop ecx
jl 0x428826
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x240]
push eax
push edi
push edi
push str.Version
push dword [ebp - 8]
mov dword [ebp - 4], 0x1fe
call ebx
test eax, eax
jne 0x4287d1
shr dword [ebp - 4], 1
mov eax, dword [ebp - 4]
mov word [ebp + eax*2 - 0x240], di
lea eax, [ebp - 0x240]
push eax
call fcn.00450a94
fstp qword [ebp - 0x28]
pop ecx
fld1
lea eax, [ebp - 0x10]
push eax
push edi
sub esp, 0x10
fstp qword [esp + 8]
fld qword [ebp - 0x28]
fstp qword [esp]
call fcn.00452a00
add esp, 0x10
call fcn.00465256
fld qword [ebp - 0x28]
push eax
call fcn.00465256
push eax
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.OLEAUT32.dll_RegisterTypeLib]
mov esi, eax
cmp esi, edi
jl 0x428826
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.0044de9c
pop ecx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x42883f
Capabilities:
Connect network resource
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
push ebx
push esi
xor esi, esi
push edi
lea ecx, [ebp - 0x24]
mov edi, eax
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
call fcn.0040e2a9
lea ecx, [ebp - 0x18]
call fcn.0040e2a9
lea ecx, [ebp - 0x30]
call fcn.0040e2a9
push str.SOFTWAREClasses_
lea eax, [ebp - 0x24]
call fcn.0040e438
push dword [ebp + 8]
lea eax, [ebp - 0x24]
call fcn.0040e4d0
push str.CLSID
lea eax, [ebp - 0x24]
call fcn.0040e4d0
push 0x46b160
lea eax, [ebp - 0x18]
call fcn.0040e438
cmp edi, esi
je 0x4288c6
cmp word [edi], 0x5c
je 0x4288c6
cmp word [edi + 2], 0x5c
je 0x4288c6
push 0x46f6ac
lea eax, [ebp - 0x18]
call fcn.0040e438
push edi
lea eax, [ebp - 0x18]
call fcn.0040e4d0
cmp dword [ebp + 0x10], esi
je 0x428915
push 0x20
lea eax, [ebp - 0x50]
push esi
push eax
call fcn.00450990
add esp, 0xc
lea ebx, [ebp - 0x18]
lea eax, [ebp - 0x30]
mov dword [ebp - 0x4c], esi
call fcn.0040e40c
push str.IPC_
lea eax, [ebp - 0x30]
call fcn.0040e4d0
mov eax, dword [ebp - 0x30]
push esi
push dword [ebp + 0x10]
mov dword [ebp - 0x3c], eax
push dword [ebp + 0x14]
lea eax, [ebp - 0x50]
push eax
call sub.MPR.dll_WNetAddConnection2W
mov edi, eax
cmp edi, esi
jne 0x4289b1
lea eax, [ebp - 0xc]
push eax
push reloc.WSOCK32.dll_bind
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegConnectRegistryW]
mov edi, eax
cmp edi, esi
jne 0x4289b1
lea eax, [ebp - 8]
push eax
push 0x20019
push esi
push dword [ebp - 0x24]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, eax
cmp edi, esi
jne 0x4289ac
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x258]
push eax
push esi
push esi
push esi
push dword [ebp - 8]
mov dword [ebp - 4], 0x1fe
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
cmp edi, esi
jne 0x4289a7
shr dword [ebp - 4], 1
mov eax, dword [ebp - 4]
mov word [ebp + eax*2 - 0x258], si
lea eax, [ebp - 0x258]
push eax
call fcn.0040d6aa
pop ecx
push dword [ebp + 0xc]
mov esi, eax
push esi
call dword [sym.imp.ole32.dll_CLSIDFromString]
push esi
mov edi, eax
call fcn.0044de9c
pop ecx
push dword [ebp - 8]
call ebx
push dword [ebp - 0xc]
call ebx
push dword [ebp - 0x30]
call fcn.0044de9c
push dword [ebp - 0x18]
call fcn.0044de9c
push dword [ebp - 0x24]
call fcn.0044de9c
add esp, 0xc
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x42e379
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2018
call fcn.00453310
push ebx
push esi
push edi
lea ecx, [ebp - 0xc]
call fcn.0040e2a9
lea ecx, [ebp - 0x18]
call fcn.0040e2a9
mov esi, dword [ebp + 8]
xor edi, edi
call fcn.0040fc0c
mov esi, eax
movzx eax, word [esi]
xor bl, bl
test ax, ax
je 0x42e4a7
inc edi
cmp ax, 0x25
jne 0x42e466
cmp word [esi + edi*2], ax
jne 0x42e3d6
push 0x25
lea eax, [ebp - 0xc]
mov bl, 1
call fcn.0040e517
inc edi
jmp 0x42e46f
push 0x46b160
lea eax, [ebp - 0x18]
call fcn.0040e438
jmp 0x42e3f7
test ax, ax
je 0x42e401
movzx eax, ax
push eax
lea eax, [ebp - 0x18]
call fcn.0040e517
inc edi
movzx eax, word [esi + edi*2]
cmp ax, 0x25
jne 0x42e3e5
cmp word [esi + edi*2], 0
je 0x42e47e
and word [ebp - 0x2018], 0
push 0xfff
lea eax, [ebp - 0x2018]
push eax
push dword [ebp - 0x18]
inc edi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x42e43d
lea eax, [ebp - 0x2018]
push eax
lea eax, [ebp - 0xc]
call fcn.0040e4d0
mov bl, 1
jmp 0x42e46f
push 0x47048c
lea eax, [ebp - 0xc]
mov bl, 1
call fcn.0040e4d0
lea eax, [ebp - 0x18]
lea ecx, [ebp - 0xc]
call fcn.0040e494
push 0x47048c
lea eax, [ebp - 0xc]
call fcn.0040e4d0
jmp 0x42e46f
push eax
lea eax, [ebp - 0xc]
call fcn.0040e517
movzx eax, word [esi + edi*2]
test ax, ax
jne 0x42e3b3
jmp 0x42e498
push 0x47048c
lea eax, [ebp - 0xc]
mov bl, 1
call fcn.0040e4d0
lea eax, [ebp - 0x18]
lea ecx, [ebp - 0xc]
call fcn.0040e494
test bl, bl
je 0x42e4a7
mov ebx, dword [ebp + 8]
lea edi, [ebp - 0xc]
call fcn.004102bf
push dword [ebp - 0x18]
call fcn.0044de9c
push dword [ebp - 0xc]
call fcn.0044de9c
pop ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x431198
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.0040e2d5
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.00450990
add esp, 0xc
cmp dword [ebp + 0x14], 2
jb 0x431201
mov ecx, dword [ebp + 0x10]
mov eax, esi
call fcn.00405a0e
mov esi, eax
call fcn.0040fc0c
cmp word [eax], bx
je 0x431201
mov ecx, dword [ebp + 0x10]
xor eax, eax
inc eax
call fcn.00405a0e
mov esi, eax
call fcn.0040fc0c
push eax
call fcn.0040d6aa
pop ecx
mov edi, eax
cmp dword [ebp + 0x14], 3
jb 0x431223
mov ecx, dword [ebp + 0x10]
push 2
pop eax
call fcn.00405a0e
mov esi, eax
call fcn.0040fc0c
push eax
call fcn.0040d6aa
pop ecx
mov dword [ebp - 4], eax
cmp dword [ebp + 0x14], 4
jb 0x43125e
mov ecx, dword [ebp + 0x10]
push 3
pop eax
call fcn.00405a0e
mov esi, eax
call fcn.0040fc0c
cmp word [eax], bx
je 0x43125e
mov ecx, dword [ebp + 0x10]
push 3
pop eax
call fcn.00405a0e
mov esi, eax
call fcn.0040fc2e
mov ebx, eax
lea eax, [ebp - 0x14]
call fcn.0040e40c
xor ebx, ebx
cmp dword [ebp + 0x14], 5
jb 0x43127a
mov ecx, dword [ebp + 0x10]
push 4
pop eax
call fcn.00405a0e
call fcn.0040fce4
movzx eax, ax
mov dword [ebp - 8], eax
push 0x3c
pop esi
push esi
lea eax, [ebp - 0x5c]
push ebx
push eax
call fcn.00450990
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.00405a0e
mov esi, eax
call fcn.0040fc0c
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_ShellExecuteExW]
cmp edi, ebx
mov dword [ebp + 0x10], eax
je 0x4312d9
push edi
call fcn.0044de9c
pop ecx
cmp esi, ebx
je 0x4312e4
push esi
call fcn.0044de9c
pop ecx
cmp dword [ebp + 0x10], ebx
jne 0x431342
mov esi, dword [ebp + 8]
cmp byte [esi + 0x29c], 1
jne 0x43132c
push 0xffffffffffffffff
lea eax, [ebp - 0x20]
push eax
call fcn.004191ed
push dword [eax]
mov ebx, esi
push 0x87
call fcn.00419027
push dword [ebp - 0x20]
call fcn.0044de9c
xor ebx, ebx
pop ecx
inc ebx
push dword [ebp - 0x14]
call fcn.0044de9c
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.0041a7ff
mov esi, dword [ebp + 0x18]
push ebx
call fcn.004101c7
jmp 0x43131a
cmp byte [ebp + 0xc], bl
je 0x431355
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x7d8], eax
jmp 0x43131a
mov esi, dword [ebp + 0x18]
push 1
call fcn.004101c7
cmp dword [ebp - 0x24], ebx
je 0x43131a
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x43131a
Function at 0x43427c
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x214
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
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 0x434337
xor eax, eax
cmp byte [0x48a8c0], bl
je 0x4342c9
mov eax, pe_nt_image_headers32
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_RegOpenKeyExW]
test eax, eax
jne 0x434343
push dword [esp + 0x14]
call fcn.0043427c
pop ecx
push dword [esp + 0x14]
mov byte [esp + 0x13], al
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [esp + 0xf], bl
je 0x434343
lea eax, [esp + 0x20]
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x434343
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 0x4342ba
mov al, 1
jmp 0x434345
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x434d4a
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 0x434dd2
push edi
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
jne 0x434dd2
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 0x434da6
cmp dword [ebp + 0x10], ebx
jbe 0x434da6
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 0x434d9e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
jmp 0x434dd4
push ebx
push ebx
push dword [ebp - 4]
push edi
call esi
cmp dword [ebp + 0x18], ebx
je 0x434dc6
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 0x434ddc
push 6
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x43a7c9
Capabilities:
Create process on windows

Disassembly:
push ebx
push esi
push edi
push 0x44
xor ebx, ebx
push ebx
mov edi, 0x48ce00
push edi
call fcn.00450990
push 0x10
push ebx
mov esi, 0x48cdf0
push esi
call fcn.00450990
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 [0x48ce00], 0x44
mov dword [0x48ce2c], eax
mov word [0x48ce30], ax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
pop edi
pop esi
pop ebx
je 0x43a82c
push dword [0x48cdf0]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
ret 4
Function at 0x43adcf
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 0x43ae1b
cmp edx, dword [edi + 0x4140]
je 0x43ae35
cmp dword [ebp + 0xc], 1
mov dword [eax], ecx
mov dword [edi + 0x4140], edx
jne 0x43ae35
push edx
push ecx
push 0xfffffffffffffff5
push dword [ebp + 8]
call fcn.0043a6c8
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 1
call esi
mov ebx, 0x8000
test bx, ax
jne 0x43ae5c
push 1
call dword [sym.imp.USER32.dll_GetKeyState]
test bx, ax
jne 0x43ae5c
and dword [ebp - 4], 0
jmp 0x43ae63
mov dword [ebp - 4], 1
push 2
call esi
test bx, ax
jne 0x43ae7d
push 2
call dword [sym.imp.USER32.dll_GetKeyState]
test bx, ax
jne 0x43ae7d
xor ebx, ebx
jmp 0x43ae80
xor ebx, ebx
inc ebx
mov esi, dword [ebp - 4]
cmp esi, dword [edi + 0x4144]
je 0x43aee7
cmp dword [ebp + 0xc], 1
jne 0x43aee7
cmp byte [edi + 0x4170], 0
je 0x43aeed
test esi, esi
push dword [ebp - 8]
push dword [ebp - 0xc]
je 0x43aea8
push 0xfffffffffffffff9
jmp 0x43aed8
push 0xfffffffffffffff8
push dword [ebp + 8]
call fcn.0043a6c8
cmp byte [edi + 0x414c], 0
je 0x43aee0
push 0xfffffffffffffff0
push dword [edi]
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, 0x1000000
push dword [ebp - 8]
push dword [ebp - 0xc]
je 0x43aed6
push 0xfffffffffffffffa
jmp 0x43aed8
push 0xfffffffffffffff4
push dword [ebp + 8]
call fcn.0043a6c8
mov byte [edi + 0x414c], 0
cmp dword [ebp + 0xc], 0
je 0x43aef3
mov dword [edi + 0x4144], esi
cmp ebx, dword [edi + 0x4148]
je 0x43af21
cmp dword [ebp + 0xc], 1
jne 0x43af21
test ebx, ebx
push dword [ebp - 8]
push dword [ebp - 0xc]
je 0x43af17
push 0xfffffffffffffff7
push dword [ebp + 8]
call fcn.0043a6c8
jmp 0x43af27
push 0xfffffffffffffff6
push dword [ebp + 8]
call fcn.0043a6c8
cmp dword [ebp + 0xc], 0
je 0x43af2d
mov dword [edi + 0x4148], ebx
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x43fd1d
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
push esi
xor esi, esi
cmp word [eax], si
push edi
mov dword [ebp - 0xc], esi
je 0x43fe25
push esi
push esi
push 3
push esi
push esi
push bind
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x43fd54
xor eax, eax
jmp 0x43fe51
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push eax
push 2
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push esi
lea ecx, [ebp - 0x18]
push ecx
push dword [ebp - 0x14]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x10]
push eax
push 1
push edi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
lea eax, [ebp - 0xc]
push eax
push 0x466900
push esi
push esi
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 edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 0xc]
cmp eax, esi
je 0x43fd4d
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_GetObjectW]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
cmp edx, esi
mov eax, dword [ebp + 0x10]
jne 0x43fdfc
cmp dword [eax], esi
jne 0x43fdfc
mov edx, dword [ebp - 0x2c]
mov dword [ecx], edx
mov edx, dword [ebp - 0x28]
mov dword [eax], edx
jmp 0x43fe04
mov dword [ebp - 0x2c], edx
mov edx, dword [eax]
mov dword [ebp - 0x28], edx
push 0x2000
push dword [eax]
push dword [ecx]
push esi
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 0x43fe28
mov dword [ebp - 8], esi
mov edi, dword [ebp + 8]
mov eax, dword [edi + 0x44]
cmp eax, esi
je 0x43fe39
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [ebp - 8]
push eax
push esi
mov dword [edi + 0x44], eax
mov edi, dword [edi]
push 0x172
push edi
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 0xc