joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40d576
Capabilities:
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xf4
push ebx
push esi
push edi
xor ecx, ecx
movzx eax, byte [ecx + 0x40f8ec]
mov esi, dword [ebp + 8]
mov edx, eax
sar edx, 3
and eax, 7
mov dl, byte [esi + edx]
test byte [eax*2 + 0x40f8dc], dl
setne al
mov byte [ecx + ebp - 0x74], al
inc ecx
cmp ecx, 0x38
jl 0x40d584
and dword [ebp + 8], 0
mov dword [ebp - 4], 0x1e
cmp word [ebp + 0xc], 1
jne 0x40d5c4
mov eax, dword [ebp - 4]
jmp 0x40d5c9
mov eax, dword [ebp + 8]
add eax, eax
and dword [ebp + eax*4 - 0xf0], 0
and dword [ebp + eax*4 - 0xf4], 0
lea ecx, [ebp + eax*4 - 0xf0]
lea esi, [ebp + eax*4 - 0xf4]
mov eax, dword [ebp + 8]
xor edx, edx
movzx eax, byte [eax + 0x40f924]
mov edi, eax
cmp edi, 0x1c
jge 0x40d600
mov bl, byte [edi + ebp - 0x74]
jmp 0x40d607
mov bl, byte [edi + ebp - 0x90]
mov byte [edx + ebp - 0x3c], bl
inc edx
inc edi
cmp edx, 0x1c
jl 0x40d5f5
push 0x1c
pop edi
add eax, edi
cmp eax, 0x38
jge 0x40d622
mov dl, byte [eax + ebp - 0x74]
jmp 0x40d629
mov dl, byte [eax + ebp - 0x90]
mov byte [edi + ebp - 0x3c], dl
inc edi
inc eax
cmp edi, 0x38
jl 0x40d617
xor edi, edi
mov edx, 0x40f87c
movzx ebx, byte [edi + 0x40f934]
lea eax, [edi + 0x40f94c]
cmp byte [ebx + ebp - 0x3c], 0
je 0x40d653
mov ebx, dword [edx]
or dword [esi], ebx
movzx eax, byte [eax]
cmp byte [eax + ebp - 0x3c], 0
je 0x40d661
mov eax, dword [edx]
or dword [ecx], eax
add edx, 4
inc edi
cmp edx, 0x40f8dc
jl 0x40d63b
sub dword [ebp - 4], 2
inc dword [ebp + 8]
cmp dword [ebp - 4], 0xfffffffe
jg 0x40d5b8
lea eax, [ebp - 0xf4]
push eax
call fcn.0040d690
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40dab3
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [ebp + 0x14]
push ebx
push esi
push edi
mov edi, eax
xor ebx, ebx
xor esi, esi
mov dword [ebp - 4], ebx
shr edi, 6
and eax, 0x3f
mov dword [ebp - 8], ebx
mov dword [ebp + 0x14], eax
jbe 0x40daef
and dword [ebp + 0x14], 7
mov esi, eax
shr esi, 3
cmp esi, ebx
jbe 0x40daef
cmp edi, ebx
jbe 0x40daef
mov dword [ebp - 8], 1
dec edi
push 8
lea eax, [ebp - 0x10]
push 0x40f874
push eax
call fcn.0040cdd0
push ebx
push dword [ebp + 8]
call fcn.0040d504
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.0040d731
push 1
push dword [ebp + 8]
call fcn.0040d504
add esp, 0x24
cmp edi, ebx
jbe 0x40db7c
mov ebx, dword [ebp + 0x10]
lea eax, [ebp - 0x10]
sub eax, ebx
mov dword [ebp + 0x10], edi
mov edi, dword [ebp + 0xc]
mov dword [ebp + 8], eax
push 8
lea eax, [ebp - 0x28]
push edi
push eax
call fcn.0040cdd0
push ebx
push edi
call fcn.0040d731
add esp, 0x14
push 8
pop eax
mov ecx, dword [ebp + 8]
mov cl, byte [ebx + ecx]
xor byte [ebx], cl
inc ebx
dec eax
jne 0x40db50
lea eax, [ebp - 0x28]
push 8
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.0040cdd0
sub dword [ebp + 8], 8
add esp, 0xc
add edi, 8
dec dword [ebp + 0x10]
jne 0x40db37
jmp 0x40db82
mov ebx, dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
cmp word [ebp - 8], 0
je 0x40dc2a
lea eax, [ebp - 0x18]
push eax
push edi
call fcn.0040d731
add edi, 8
push esi
lea eax, [ebp - 0x20]
push edi
push eax
mov dword [ebp + 0x10], edi
call fcn.0040cdd0
mov dword [ebp + 8], 8
lea edi, [esi + ebp - 0x20]
sub dword [ebp + 8], esi
push dword [ebp + 8]
push 0
push edi
call fcn.0040cde4
add esp, 0x20
xor eax, eax
mov cl, byte [eax + ebp - 0x20]
xor byte [eax + ebp - 0x18], cl
inc eax
cmp eax, 8
jb 0x40dbc6
push dword [ebp + 8]
lea eax, [esi + ebp - 0x18]
push eax
push edi
call fcn.0040cdd0
lea eax, [ebp - 0x20]
push ebx
push eax
call fcn.0040d731
add esp, 0x14
lea eax, [ebp - 0x10]
mov edi, ebx
sub eax, ebx
push 8
pop ecx
mov dl, byte [eax + edi]
xor byte [edi], dl
inc edi
dec ecx
jne 0x40dbf9
lea eax, [ebp - 0x18]
add ebx, 8
push esi
push eax
push ebx
call fcn.0040cdd0
lea eax, [ebp - 0x20]
push 8
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.0040cdd0
mov edi, dword [ebp + 0x10]
add esp, 0x18
mov dword [ebp - 4], esi
xor esi, esi
test esi, esi
jbe 0x40dc63
and dword [ebp + 8], 0
test esi, esi
jbe 0x40dc60
mov dword [ebp + 0x10], edi
lea eax, [ebp - 0x10]
sub dword [ebp + 0x10], eax
mov ecx, ebx
lea eax, [ebp - 0x10]
sub ecx, eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0x10]
lea eax, [eax + ebp - 0x10]
mov dl, byte [eax + edx]
xor dl, byte [eax]
inc dword [ebp + 8]
cmp dword [ebp + 8], esi
mov byte [eax + ecx], dl
jb 0x40dc46
mov dword [ebp - 4], esi
cmp dword [ebp + 0x14], 0
jbe 0x40dc86
mov eax, dword [ebp - 4]
lea esi, [eax + ebp - 0x10]
push esi
push dword [ebp + 0x14]
call fcn.0040da60
mov eax, dword [ebp - 4]
pop ecx
pop ecx
mov cl, byte [edi + eax]
xor cl, byte [esi]
mov byte [ebx + eax], cl
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret
Function at 0x40dc8d
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push esi
push ecx
push edx
mov esi, dword [ebp + 0xc]
xor edx, edx
or eax, 0xffffffff
mov ecx, dword [ebp + 8]
mov dl, byte [esi]
xor dl, al
shr eax, 8
xor eax, dword [edx*4 + 0x40f474]
inc esi
dec ecx
jne 0x40dc9e
not eax
pop edx
pop ecx
pop esi
leave
ret 8

Function at 0x40dcb9
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 0x14]
push ebx
push esi
mov esi, eax
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ebx
shr esi, 6
and eax, 0x3f
mov dword [ebp - 8], ebx
mov dword [ebp + 0x14], eax
jbe 0x40dcf5
and dword [ebp + 0x14], 7
mov edi, eax
shr edi, 3
cmp edi, ebx
jbe 0x40dcf5
cmp esi, ebx
jbe 0x40dcf5
mov dword [ebp - 8], 1
dec esi
push 8
lea eax, [ebp - 0x18]
push 0x40f874
push eax
call fcn.0040cdd0
push ebx
push dword [ebp + 8]
call fcn.0040d504
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.0040d731
add esp, 0x1c
cmp esi, ebx
jbe 0x40dd70
mov ebx, dword [ebp + 0xc]
mov dword [ebp + 8], esi
push 8
lea eax, [ebp - 0x10]
pop esi
push esi
push ebx
push eax
call fcn.0040cdd0
add esp, 0xc
xor eax, eax
mov cl, byte [eax + ebp - 0x18]
xor byte [eax + ebp - 0x10], cl
inc eax
cmp eax, esi
jb 0x40dd3b
push dword [ebp + 0x10]
lea eax, [ebp - 0x10]
push eax
call fcn.0040d731
push esi
lea eax, [ebp - 0x18]
push dword [ebp + 0x10]
push eax
call fcn.0040cdd0
add dword [ebp + 0x10], esi
add esp, 0x14
add ebx, esi
dec dword [ebp + 8]
jne 0x40dd28
jmp 0x40dd76
mov ebx, dword [ebp + 0xc]
push 8
pop esi
cmp word [ebp - 8], 0
je 0x40de02
push esi
lea eax, [ebp - 0x10]
push ebx
push eax
call fcn.0040cdd0
add esp, 0xc
xor eax, eax
mov cl, byte [eax + ebp - 0x18]
xor byte [eax + ebp - 0x10], cl
inc eax
cmp eax, esi
jb 0x40dd91
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.0040d731
add ebx, 8
push edi
lea eax, [ebp - 0x10]
push ebx
push eax
call fcn.0040cdd0
mov eax, esi
sub eax, edi
push eax
lea eax, [edi + ebp - 0x10]
push 0
push eax
call fcn.0040cde4
add esp, 0x20
xor eax, eax
mov cl, byte [eax + ebp - 0x18]
xor byte [eax + ebp - 0x10], cl
inc eax
cmp eax, esi
jb 0x40ddcf
mov esi, dword [ebp + 0x10]
lea eax, [ebp - 0x10]
push esi
push eax
call fcn.0040d731
lea eax, [ebp - 0x18]
add esi, 8
push edi
push eax
push esi
call fcn.0040cdd0
add esp, 0x14
mov dword [ebp - 4], edi
xor edi, edi
mov dword [ebp + 0x10], esi
test edi, edi
jbe 0x40de34
xor esi, esi
test edi, edi
jbe 0x40de31
mov ecx, dword [ebp + 0x10]
mov dword [ebp + 0xc], ebx
lea eax, [ebp - 0x18]
sub dword [ebp + 0xc], eax
lea eax, [ebp - 0x18]
sub ecx, eax
mov edx, dword [ebp + 0xc]
lea eax, [esi + ebp - 0x18]
mov dl, byte [eax + edx]
xor dl, byte [eax]
inc esi
cmp esi, edi
mov byte [eax + ecx], dl
jb 0x40de1d
mov dword [ebp - 4], edi
cmp dword [ebp + 0x14], 0
jbe 0x40de5a
mov eax, dword [ebp - 4]
lea esi, [eax + ebp - 0x18]
push esi
push dword [ebp + 0x14]
call fcn.0040da60
mov eax, dword [ebp - 4]
mov edx, dword [ebp + 0x10]
pop ecx
pop ecx
mov cl, byte [ebx + eax]
xor cl, byte [esi]
mov byte [edx + eax], cl
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret
Function at 0x433002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40de38
nop
nop
mov ecx, 0x2e636464
test eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
je 0x43304e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x433024
nop
nop
mov eax, section..data
nop
mov ebx, 0x4304d8
nop
mov ecx, 0x380a2941
test eax, eax
nop
nop
nop
nop
je 0x433084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43306c
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x4010b6
Capabilities:
Create process on windows
Get common file path
Set current directory

Disassembly:
mov eax, 0x455c74
call fcn.00454158
sub esp, 0x224
push ebx
push esi
push edi
lea eax, [ebp - 0x128]
push eax
push 0x104
mov ebx, ecx
mov byte [ebp - 0xd], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push ebx
call fcn.00401401
lea edi, [ebx + 0x10]
cmp dword [edi], 0
jne 0x401103
mov eax, dword [ebx + 0x14]
push 0xffffffffffffffff
push eax
push 1
mov esi, 0x46fd68
call fcn.0040cee2
jmp 0x40113e
push edi
lea esi, [ebx + 0x20]
push 0x46fd68
lea eax, [ebp - 0xd]
call fcn.0040d346
test al, al
jne 0x401127
mov dword [0x463b08], 1
jmp 0x401280
lea eax, [ebx + 0xc]
push eax
lea eax, [ebp - 0x230]
push eax
push 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
mov esi, 0x46fd68
call fcn.0040d315
push dword [edi]
lea eax, [ebx + 0x20]
mov esi, 0x46e1b8
push eax
mov ecx, esi
mov dword [ebp - 0x14], eax
call fcn.0041c2dd
test eax, eax
je 0x401187
mov esi, 0x46fd68
call fcn.0040d092
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov dword [0x463b08], 1
jmp 0x40128d
cmp byte [0x463b00], 1
jne 0x401250
cmp byte [0x46dfdd], 1
jne 0x401250
call fcn.00412bdb
test al, al
jne 0x401250
push 0x105
lea eax, [ebp - 0x230]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
cmp byte [ebp - 0xd], 0
je 0x401226
mov edi, 0x459330
push edi
lea esi, [ebp - 0x20]
call fcn.00413053
push dword [ebp - 0x14]
and dword [ebp - 4], 0
or eax, 0xffffffff
mov ecx, esi
call fcn.00413379
push edi
or eax, 0xffffffff
mov ecx, esi
call fcn.00413379
push 1
lea eax, [ebp - 0x128]
push eax
push dword [ebp - 0x20]
lea eax, [ebp - 0x230]
push eax
push str.runas
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
or dword [ebp - 4], 0xffffffff
push dword [ebp - 0x20]
call fcn.0044624a
pop ecx
jmp 0x401276
push 1
lea eax, [ebp - 0x128]
push eax
push dword [0x46fc50]
lea eax, [ebp - 0x230]
push eax
push str.runas
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
jmp 0x401276
call fcn.0040129c
call fcn.00401390
cmp byte [0x463aee], 1
jne 0x40126d
mov ebx, 0x46eaa0
call fcn.0040f5c6
push 1
mov ecx, esi
call fcn.0041c522
mov esi, 0x46fd68
call fcn.0040d092
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x4087b8
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
xor ebx, ebx
cmp byte [eax], bl
push esi
push edi
mov dword [ebp - 8], ebx
je 0x4088bf
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
je 0x40885a
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push eax
push 2
mov dword [ebp - 0x10], 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 - 0x14]
push ecx
push dword [ebp - 0x10]
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 - 0xc]
push eax
push 1
push esi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
lea eax, [ebp - 8]
push eax
push 0x457c60
push ebx
push ebx
push dword [ebp - 0xc]
call dword [sym.imp.OLEAUT32.dll_OleCreatePictureIndirect]
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 8]
cmp eax, ebx
jne 0x408861
xor eax, eax
jmp 0x4088eb
mov ecx, dword [eax]
lea edx, [ebp - 4]
push edx
push eax
call dword [ecx + 0xc]
lea eax, [ebp - 0x2c]
push eax
push 0x18
push dword [ebp - 4]
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 0x408896
cmp dword [eax], ebx
jne 0x408896
mov edx, dword [ebp - 0x28]
mov dword [ecx], edx
mov edx, dword [ebp - 0x24]
mov dword [eax], edx
jmp 0x40889e
mov dword [ebp - 0x28], edx
mov edx, dword [eax]
mov dword [ebp - 0x24], edx
push 0x2000
push dword [eax]
push dword [ecx]
push ebx
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_CopyImage]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x4088c2
mov dword [ebp - 4], ebx
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x44]
cmp eax, ebx
je 0x4088d3
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [ebp - 4]
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
Function at 0x40cca2
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10324
call fcn.0044f570
push ebx
xor ebx, ebx
push edi
push 0x400
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x210], ebx
mov dword [esi + 0x218], ebx
call fcn.00446648
pop ecx
mov dword [esi + 0x214], eax
mov edi, 0x104
push edi
lea eax, [ebp - 0x118]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push ebx
push ebx
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x320]
push eax
lea eax, [ebp - 0x118]
push eax
call fcn.00446e39
push edi
lea eax, [ebp - 0x21c]
push str.Include
push eax
call fcn.00446f90
push ebx
push ebx
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x320]
push eax
lea eax, [ebp - 0x118]
push eax
call fcn.004470c5
push 0x105
call fcn.00446648
mov ecx, dword [esi + 0x218]
mov edx, dword [esi + 0x214]
mov dword [edx + ecx*4], eax
mov eax, dword [esi + 0x218]
mov ecx, dword [esi + 0x214]
mov ecx, dword [ecx + eax*4]
inc eax
mov dword [esi + 0x218], eax
lea eax, [ebp - 0x118]
push eax
push ecx
call fcn.00446250
add esp, 0x40
lea eax, [ebp - 0xc]
push eax
push 0x20019
push ebx
push str.SoftwareAutoIt_v3AutoIt
push reloc.WSOCK32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40ceab
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x10324]
push eax
push ebx
push ebx
push str.Include
push dword [ebp - 0xc]
mov dword [ebp - 0x10], 0xffff
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40cea2
mov eax, dword [ebp - 0x10]
mov byte [ebp + eax - 0x10324], bl
mov byte [ebp + eax - 0x10323], bl
lea eax, [ebp - 0x10324]
mov byte [ebp - 0x118], bl
mov dword [ebp - 8], eax
mov cl, byte [eax]
cmp cl, bl
mov byte [ebp - 4], cl
mov byte [ebp - 3], bl
je 0x40ce0c
cmp cl, 0x3b
je 0x40ce0c
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x118]
push eax
call fcn.00446260
pop ecx
pop ecx
jmp 0x40ce97
lea eax, [ebp - 0x118]
push eax
call fcn.004466d0
test eax, eax
pop ecx
je 0x40ce4a
lea eax, [ebp - 0x118]
push eax
call fcn.004466d0
pop ecx
lea ecx, [ebp - 0x118]
dec ecx
cmp byte [eax + ecx], 0x5c
je 0x40ce4a
lea eax, [ebp - 0x118]
push 0x4598b8
push eax
call fcn.00446260
pop ecx
pop ecx
push 0x105
call fcn.00446648
mov ecx, dword [esi + 0x218]
mov edx, dword [esi + 0x214]
mov dword [edx + ecx*4], eax
mov eax, dword [esi + 0x218]
mov ecx, dword [esi + 0x214]
mov ecx, dword [ecx + eax*4]
inc eax
mov dword [esi + 0x218], eax
push edi
lea eax, [ebp - 0x118]
push eax
push ecx
call fcn.004467e0
mov eax, dword [ebp - 8]
add esp, 0x10
cmp byte [eax], bl
mov byte [ebp - 0x118], bl
je 0x40cea2
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
jmp 0x40cde4
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop ebx
leave
ret
Function at 0x40de72
Capabilities:
Log keystrokes

Disassembly:
push ecx
push ecx
push edi
xor edi, edi
cmp ebx, edi
jne 0x40de89
mov eax, dword [esp + 0x10]
cmp byte [eax + 9], 0
je 0x40df4c
push ebp
push esi
mov dword [esp + 0xc], edi
mov dword [esp + 0x10], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp byte [esp + 0x1c], 0
mov ebp, eax
je 0x40df18
push edi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov edi, dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push eax
call edi
mov esi, dword [sym.imp.USER32.dll_AttachThreadInput]
push 1
push eax
push ebp
mov dword [0x471b9c], eax
call esi
test ebx, ebx
mov dword [esp + 0x1c], eax
je 0x40defb
lea eax, [esp + 0x10]
push eax
push ebx
call edi
mov ecx, dword [0x471b9c]
cmp ecx, eax
mov dword [0x471b98], eax
je 0x40def1
push 1
push eax
push ecx
call esi
mov dword [esp + 0xc], eax
mov eax, dword [0x471b98]
push 1
push eax
push ebp
call esi
mov dword [esp + 0x10], eax
xor eax, eax
cmp dword [esp + 0x1c], eax
jne 0x40df4a
cmp dword [esp + 0xc], eax
jne 0x40df4a
cmp dword [esp + 0x10], eax
jne 0x40df4a
mov ecx, dword [esp + 0x18]
mov dword [ecx + 0x10], eax
jmp 0x40df4a
cmp ebx, edi
mov esi, dword [sym.imp.USER32.dll_AttachThreadInput]
je 0x40df40
push edi
push dword [0x471b98]
push ebp
call esi
mov ecx, dword [0x471b9c]
mov eax, dword [0x471b98]
cmp ecx, eax
je 0x40df40
push edi
push eax
push ecx
call esi
push edi
push dword [0x471b9c]
push ebp
call esi
pop esi
pop ebp
pop edi
pop ecx
pop ecx
ret 8

Function at 0x40df52
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_GetKeyState]
and al, 1
cmp byte [ebp + 0x10], al
mov byte [ebp - 1], al
je 0x40dfb4
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_MapVirtualKeyA]
push edi
xor eax, eax
push eax
push eax
push eax
push dword [ebp + 0xc]
call esi
mov ebx, dword [sym.imp.USER32.dll_keybd_event]
push eax
push dword [ebp + 0xc]
call ebx
mov eax, dword [ebp + 8]
mov edi, dword [eax + 4]
call fcn.004126b1
push 0
push 2
push 0
push dword [ebp + 0xc]
call esi
push eax
push dword [ebp + 0xc]
call ebx
mov eax, dword [ebp + 8]
mov edi, dword [eax]
call fcn.004126b1
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x40dfb8
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
push dword [esp + 0xc]
mov esi, ecx
call dword [sym.imp.USER32.dll_VkKeyScanA]
movsx ebx, ax
cmp ebx, 0xffffffff
jne 0x40dfd9
mov al, byte [esp + 0xc]
call fcn.0040e03e
jmp 0x40e007
mov eax, ebx
call fcn.0040e0d8
call fcn.0040e35d
cmp dword [esp + 0x10], 0
je 0x40e002
push edi
movzx edi, bl
mov ebx, dword [esp + 0x14]
push 0
push edi
mov eax, esi
call fcn.0040e60c
dec ebx
jne 0x40dff4
pop edi
call fcn.0040e4ae
pop esi
pop ebx
ret 8
Function at 0x40edcd
Capabilities:
Find taskbar
Log keystrokes

Disassembly:
sub esp, 0xc
push ebp
push esi
push edi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
xor ebp, ebp
cmp esi, ebp
jne 0x40edef
push ebp
push str.Shell_TrayWnd
call dword [sym.imp.USER32.dll_FindWindowA]
mov esi, eax
mov edi, dword [esp + 0x1c]
cmp edi, esi
je 0x40eed5
push edi
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
je 0x40ee0f
push 9
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
push edi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
test eax, eax
jne 0x40eed5
push ebx
push ebp
push esi
mov esi, dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
call esi
mov edi, eax
mov dword [esp + 0x14], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push ebp
push dword [esp + 0x24]
mov ebx, eax
mov dword [esp + 0x20], ebx
call esi
mov esi, dword [sym.imp.USER32.dll_AttachThreadInput]
push 1
push eax
push ebx
mov dword [esp + 0x1c], eax
call esi
push 1
push edi
push ebx
call esi
push 1
push dword [esp + 0x14]
push edi
call esi
push dword [esp + 0x20]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
test eax, eax
jne 0x40eebf
mov edi, dword [sym.imp.USER32.dll_MapVirtualKeyA]
push ebp
push ebp
push ebp
push 0x12
call edi
mov ebx, dword [sym.imp.USER32.dll_keybd_event]
push eax
push 0x12
call ebx
push ebp
push 2
push ebp
push 0x12
call edi
push eax
push 0x12
call ebx
push ebp
push ebp
push ebp
push 0x12
call edi
push eax
push 0x12
call ebx
push ebp
push 2
push ebp
push 0x12
call edi
push eax
push 0x12
call ebx
push dword [esp + 0x20]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov edi, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
push ebp
push dword [esp + 0x14]
push ebx
call esi
push ebp
push edi
push ebx
call esi
push ebp
push dword [esp + 0x14]
push edi
call esi
pop ebx
pop edi
pop esi
pop ebp
add esp, 0xc
ret 4

Function at 0x40efc1
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
xor ebx, ebx
xor edi, edi
lea eax, [esi + 0x20]
cmp dword [eax], ebx
je 0x40efda
inc edi
add eax, 8
cmp edi, 0x10
jl 0x40efcd
cmp edi, 0x10
jne 0x40efe3
xor eax, eax
jmp 0x40f04d
cmp byte [esi + 0x18], 1
jne 0x40f024
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push dword [ebp + 0xc]
push ebx
push 0x438
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push 4
push 0x1000
push dword [ebp + 8]
mov dword [esi + edi*8 + 0x1c], eax
push ebx
push eax
mov eax, esi
lea edi, [esi + edi*8 + 0x20]
call fcn.0040f13e
call eax
jmp 0x40f04b
push ebx
push dword [ebp + 8]
push ebx
push 4
push ebx
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
push ebx
push ebx
push ebx
push 0xf001f
mov dword [esi + edi*8 + 0x1c], eax
push eax
lea edi, [esi + edi*8 + 0x20]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [edi], eax
pop edi
pop ebx
pop ebp
ret 8
Function at 0x410b8f
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 1
push 0
push dword [ebp + 0xc]
mov byte [esi], 0
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x410bcc
lea eax, [ebp + 0x14]
push eax
push esi
push 0
push 0
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
leave
ret

Function at 0x410bce
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
xor esi, esi
push esi
push esi
push 0x10
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_PostMessageA]
lea eax, [ebp - 8]
push eax
push 0x1f4
push 2
push esi
push esi
push 0x10
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageTimeoutA]
test eax, eax
jne 0x410c2e
push edi
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push dword [ebp - 4]
push esi
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
leave
ret