joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40c640
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
xorps xmm0, xmm0
push esi
mov esi, dword [0x448fd8]
mov dword [ebp - 0xc], 0
movq qword [ebp - 8], xmm0
cmp dword [esi + 0x1a4], 0
je 0x40c680
mov eax, dword [ebp + 8]
movq xmm0, qword [ebp - 0xc]
mov ecx, dword [ebp - 4]
movq qword [eax], xmm0
mov dword [eax + 8], ecx
pop esi
mov esp, ebp
pop ebp
ret
push esi
call fcn.0040c4f0
mov ecx, eax
add esp, 4
test ecx, ecx
jne 0x40c6fa
cmp dword [esi + 0x1a4], eax
jne 0x40c665
cmp dword [esi + 0x1a0], eax
jne 0x40c665
cmp dword [esi + 0x1a8], 0xff
jge 0x40c6eb
mov ecx, dword [esi + 0x5fc]
push eax
call fcn.00417230
push esi
call fcn.0040c880
mov ecx, dword [esi + 0x1b4]
add esp, 4
push 0x40dcc0
call fcn.0040d8b0
mov ecx, dword [esi + 0x1b8]
push 0x40dcc0
call fcn.0040d8b0
mov ecx, dword [esi + 0x5fc]
call fcn.00417a70
push 1
call fcn.0040b750
add esp, 4
jmp 0x40c65c
xorps xmm0, xmm0
movq qword [ebp - 8], xmm0
test ecx, 0x10000
je 0x40c713
mov dword [ebp - 8], 1
jmp 0x40c738
test ecx, 0x20000
je 0x40c724
mov dword [ebp - 8], 2
jmp 0x40c738
mov eax, dword [ebp - 8]
test ecx, 0x40000
mov edx, 4
cmovne eax, edx
mov dword [ebp - 8], eax
mov esi, dword [0x448fd8]
movzx eax, cx
push 0x11
mov dword [ebp - 0xc], eax
call dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x8000
test cx, ax
jne 0x40c760
mov dword [esi + 0x240], 0
cmp dword [esi + 0x240], 0
mov esi, dword [ebp - 4]
je 0x40c772
or esi, 0x200
push edi
mov edi, dword [0x448fd8]
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x8000
test cx, ax
jne 0x40c795
mov dword [edi + 0x23c], 0
cmp dword [edi + 0x23c], 0
pop edi
je 0x40c7a5
or esi, 0x100
mov eax, dword [ebp + 8]
movq xmm0, qword [ebp - 0xc]
movq qword [eax], xmm0
mov dword [eax + 8], esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40c9f0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp byte [0x448fb8], 0
je 0x40caed
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, 4
lea esi, [edi + 0x24]
mov ecx, dword [esi]
test ecx, ecx
je 0x40ca22
push dword [edi + 0x20]
push dword [edi + 0x1c]
call fcn.00409970
add esi, 4
dec ebx
jne 0x40ca11
push dword [edi + 0x5c]
call dword [sym.imp.USER32.dll_GetDC]
mov dword [edi + 0x14], eax
mov dword [edi + 0x18], eax
call fcn.0040a630
push 0x703c
mov dword [edi + 0x54], eax
call fcn.00401cfc
mov ebx, dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov esi, eax
add esp, 4
test esi, esi
je 0x40ca71
push esi
call ebx
mov dword [esi + 0x7038], 0
mov dword [esi + 0x7034], 0
jmp 0x40ca73
xor esi, esi
push 0x703c
mov dword [edi + 0x1b4], esi
call fcn.00401cfc
mov esi, eax
add esp, 4
test esi, esi
je 0x40caa5
push esi
call ebx
mov dword [esi + 0x7038], 0
mov dword [esi + 0x7034], 0
jmp 0x40caa7
xor esi, esi
push 0
mov dword [edi + 0x1b8], esi
call fcn.0040b9f0
push 0
call fcn.0040c090
push 0
call fcn.0040c1d0
push dword [edi + 0x20]
push dword [edi + 0x1c]
push 0
push 0
call fcn.0040c2c0
add esp, 0x1c
push 5
push dword [edi + 0x5c]
call dword [sym.imp.USER32.dll_ShowWindow]
pop edi
pop esi
pop ebx
mov byte [0x448fb8], 1
mov esp, ebp
pop ebp
ret
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp + 8]
add eax, 0x604
push eax
mov dword [ebp - 0x10], 1
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
call sub.gdiplus.dll_GdiplusStartup
mov byte [0x448fb8], 1
mov esp, ebp
pop ebp
ret
Function at 0x40cb30
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c
mov eax, dword [0x443038]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [0x448fd8]
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0x20
mov dword [ebp - 0x8c], eax
call edi
add eax, eax
push 4
mov dword [ebp - 0x88], eax
call edi
push 0x21
mov esi, eax
call edi
mov ecx, dword [0x448fc4]
lea edi, [eax + esi*2]
mov esi, dword [sym.imp.USER32.dll_SetWindowLongW]
test ecx, ecx
je 0x40cba3
push 0xfffffffffffffff0
push ecx
call dword [sym.imp.USER32.dll_GetWindowLongW]
or eax, 0x42000000
push eax
push 0xfffffffffffffff0
push dword [0x448fc4]
call esi
mov ecx, dword [0x448fc4]
mov eax, dword [ebx + 0x20]
push 0
push dword [ebp - 0x8c]
add eax, edi
push 0
push ecx
push eax
mov eax, dword [ebx + 0x1c]
add eax, dword [ebp - 0x88]
push eax
push dword [0x443e24]
mov eax, dword [0x443e1c]
push dword [0x443e20]
and eax, 0xefffffff
push eax
lea eax, [ebx + 0xa0]
push eax
lea eax, [ebx + 0x60]
push eax
push dword [0x448fbc]
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [ebx + 0x5c], eax
test eax, eax
jne 0x40cc04
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004015f2
mov esp, ebp
pop ebp
ret
mov eax, dword [0x448fc4]
test eax, eax
je 0x40cc55
push eax
lea eax, [ebp - 0x84]
push str.ege__X
push eax
call fcn.0040dca0
add esp, 0xc
lea eax, [ebp - 0x84]
push eax
push 1
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
test eax, eax
je 0x40cc55
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40cc55
push 0
push 0
push 0x10
push dword [ebx + 0x5c]
call dword [sym.imp.USER32.dll_PostMessageW]
push ebx
push 0xffffffffffffffeb
push dword [ebx + 0x5c]
call esi
push dword [ebp + 0xc]
mov dword [ebx + 0x1a4], 0
push dword [ebx + 0x5c]
call dword [sym.imp.USER32.dll_ShowWindow]
test byte [0x448fbc], 8
je 0x40cc91
push 3
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push dword [ebx + 0x5c]
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.004015f2
mov esp, ebp
pop ebp
ret
Function at 0x40cd00
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42d60e
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x443038]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp byte [0x448fb8], 0
mov edi, dword [0x448fd8]
mov dword [0x448fc0], 0
jne 0x40ce87
push 0x8630
push 0
push edi
call fcn.00404b30
push edi
mov dword [edi + 0x1a0], 0
mov dword [edi + 0x1a4], 0
call fcn.0040c9f0
mov eax, dword [ebp + 0xc]
push dword [eax]
mov eax, dword [ebp + 8]
push dword [eax]
call fcn.0040dc00
add esp, 0x18
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov dword [edi + 0x58], eax
push str.Easy_Graphics_Engine
lea eax, [edi + 0x60]
push eax
call esi
push str.EGE13.02_VC2012x86
lea eax, [edi + 0xa0]
push eax
call esi
lea eax, [ebp - 0x10]
push eax
push 4
push edi
push 0x40d2a0
push 0
push 0
mov byte [edi + 0x1af], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
mov dword [edi + 0x1bc], eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp byte [edi + 0x1af], 0
jne 0x40cded
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
mov edi, edi
push 1
call esi
cmp byte [edi + 0x1af], 0
je 0x40cde0
push dword [edi + 0x5c]
call dword [sym.imp.USER32.dll_UpdateWindow]
mov eax, dword [edi + 0x1c]
cdq
sub eax, edx
sar eax, 1
mov dword [edi + 0x1cc], eax
mov eax, dword [edi + 0x20]
cdq
sub eax, edx
sar eax, 1
mov dword [edi + 0x1d0], eax
mov eax, dword [0x449044]
test al, 1
jne 0x40ce48
or eax, 1
mov dword [0x449044], eax
mov ecx, 0x448fe0
mov dword [ebp - 4], 0
call fcn.00416ed0
push 0x42d7e0
call fcn.00406c96
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [0x443e28]
test eax, 0x100
je 0x40ce5e
call fcn.0040ceb0
mov eax, dword [0x443e28]
test al, 8
je 0x40ce6c
push 1
call fcn.0040bff0
add esp, 4
mov dword [edi + 0x1e4], 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0xc]
push dword [eax]
mov eax, dword [ebp + 8]
push dword [eax]
call fcn.0040dc00
push edi
call fcn.0040c9f0
add esp, 0xc
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x414100
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x443038]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
mov al, byte [edi + 8]
mov byte [ebp - 0x15], al
cmp al, 3
je 0x4142db
xor edx, edx
push ebx
mov ebx, dword [edi]
test al, 2
mov eax, dword [ebp + 0x10]
je 0x414163
movzx edx, byte [edi + 9]
movzx eax, byte [eax]
mov ecx, edx
sub ecx, eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x14], ecx
movzx eax, byte [eax + 1]
mov ecx, edx
sub ecx, eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x10], ecx
movzx eax, byte [eax + 2]
sub edx, eax
mov dword [ebp - 0xc], edx
mov ecx, 3
xor edx, edx
jmp 0x414175
movzx eax, byte [eax + 3]
movzx ecx, byte [edi + 9]
sub ecx, eax
mov dword [ebp - 0x14], ecx
mov ecx, 1
test byte [ebp - 0x15], 4
mov dword [ebp - 0x1c], ecx
je 0x414198
mov eax, dword [ebp + 0x10]
movzx ecx, byte [edi + 9]
movzx eax, byte [eax + 4]
sub ecx, eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp + eax*4 - 0x14], ecx
mov ecx, eax
inc ecx
mov dword [ebp - 0x1c], ecx
xor eax, eax
test ecx, ecx
jle case.0x4141dd.3
cmp dword [ebp + eax*4 - 0x14], 0
jg 0x4141b3
mov dword [ebp + eax*4 - 0x14], 0
jmp 0x4141b8
mov edx, 1
inc eax
cmp eax, ecx
jl 0x4141a2
test dx, dx
je case.0x4141dd.3
movzx eax, byte [edi + 9]
add eax, 0xfffffffe
cmp eax, 0xe
ja case.0x4141dd.3
movzx eax, byte [eax + 0x414300]
jmp dword [eax*4 + 0x4142ec]
mov ecx, dword [edi + 4]
test ecx, ecx
je case.0x4141dd.3
nop
mov al, byte [esi]
shr al, 1
and al, 0x55
mov byte [esi], al
lea esi, [esi + 1]
dec ecx
jne 0x4141f0
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004015f2
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x14]
mov edx, dword [edi + 4]
mov ebx, 0xf0
sar ebx, cl
mov eax, 0xf
sar eax, cl
and bl, 0xf0
or bl, al
test edx, edx
je case.0x4141dd.3
mov al, byte [esi]
shr al, cl
mov ecx, dword [ebp - 0x14]
lea esi, [esi + 1]
and al, bl
mov byte [esi - 1], al
dec edx
jne 0x414230
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004015f2
mov esp, ebp
pop ebp
ret
imul ebx, ecx
xor edi, edi
test ebx, ebx
je case.0x4141dd.3
mov eax, edi
xor edx, edx
div ecx
inc edi
lea esi, [esi + 1]
mov cl, byte [ebp + edx*4 - 0x14]
shr byte [esi - 1], cl
mov ecx, dword [ebp - 0x1c]
cmp edi, ebx
jb 0x414260
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004015f2
mov esp, ebp
pop ebp
ret
imul ebx, ecx
xor eax, eax
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], eax
test ebx, ebx
je case.0x4141dd.3
movzx edi, byte [esi]
xor edx, edx
div ecx
mov eax, 0x100
imul di, ax
movzx eax, byte [esi + 1]
add di, ax
lea esi, [esi + 1]
lea esi, [esi + 1]
mov cx, word [ebp + edx*4 - 0x14]
shr di, cl
movzx ecx, di
mov eax, ecx
shr eax, 8
mov byte [esi - 2], al
mov eax, dword [ebp - 0x20]
inc eax
mov byte [esi - 1], cl
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x20], eax
cmp eax, dword [ebp - 0x24]
jb 0x414298
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004015f2
mov esp, ebp
pop ebp
ret
Function at 0x417c60
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push 0x431470
call fcn.00404c5a
add eax, 0x40
push eax
call fcn.00422e86
add esp, 0xc
push 0x431484
call fcn.00404c5a
add eax, 0x40
push eax
call fcn.00422e86
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x419850
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x41985c
pop ebp
ret
mov dword [ebp + 0xc], eax
pop ebp
jmp fcn.00419870
Function at 0x41e1f0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, dword [edi + 0x2c]
lea ecx, [ecx]
mov edx, dword [edi + 0x3c]
sub edx, dword [edi + 0x74]
mov eax, dword [edi + 0x2c]
sub edx, dword [edi + 0x6c]
add eax, 0xfffffefa
add eax, esi
mov dword [ebp + 8], edx
cmp dword [edi + 0x6c], eax
jb 0x41e27c
mov ecx, dword [edi + 0x38]
push esi
lea eax, [ecx + esi]
push eax
push ecx
call fcn.004087f0
mov edx, dword [edi + 0x4c]
mov eax, dword [edi + 0x44]
sub dword [edi + 0x70], esi
sub dword [edi + 0x6c], esi
add esp, 0xc
sub dword [edi + 0x5c], esi
lea ecx, [eax + edx*2]
mov edi, edi
movzx eax, word [ecx - 2]
lea ecx, [ecx - 2]
cmp eax, esi
jb 0x41e24f
sub eax, esi
jmp 0x41e251
xor eax, eax
mov word [ecx], ax
dec edx
jne 0x41e240
mov eax, dword [edi + 0x40]
mov edx, esi
lea ecx, [eax + esi*2]
nop
movzx eax, word [ecx - 2]
lea ecx, [ecx - 2]
cmp eax, esi
jb 0x41e26f
sub eax, esi
jmp 0x41e271
xor eax, eax
mov word [ecx], ax
dec edx
jne 0x41e260
mov edx, dword [ebp + 8]
add edx, esi
mov ebx, dword [edi]
cmp dword [ebx + 4], 0
je 0x41e3a9
mov eax, dword [edi + 0x74]
add eax, dword [edi + 0x6c]
add eax, dword [edi + 0x38]
mov dword [ebp - 4], eax
mov eax, dword [ebx + 4]
cmp eax, edx
mov ecx, eax
cmova ecx, edx
mov dword [ebp + 8], ecx
test ecx, ecx
jne 0x41e2a9
xor eax, eax
jmp 0x41e2f5
sub eax, ecx
mov dword [ebx + 4], eax
mov eax, dword [ebx + 0x1c]
mov eax, dword [eax + 0x18]
cmp eax, 1
jne 0x41e2c6
push ecx
push dword [ebx]
push dword [ebx + 0x30]
call fcn.0041e570
jmp 0x41e2d6
cmp eax, 2
jne 0x41e2df
push ecx
push dword [ebx]
push dword [ebx + 0x30]
call fcn.00419850
mov ecx, dword [ebp + 8]
mov dword [ebx + 0x30], eax
add esp, 0xc
push ecx
push dword [ebx]
push dword [ebp - 4]
call fcn.004087f0
mov eax, dword [ebp + 8]
add dword [ebx], eax
add esp, 0xc
add dword [ebx + 8], eax
add dword [edi + 0x74], eax
mov ebx, dword [edi + 0x74]
cmp ebx, 3
jb 0x41e31d
mov eax, dword [edi + 0x38]
add eax, dword [edi + 0x6c]
mov ecx, dword [edi + 0x58]
movzx edx, byte [eax]
mov dword [edi + 0x48], edx
movzx eax, byte [eax + 1]
shl edx, cl
xor edx, eax
and edx, dword [edi + 0x54]
mov dword [edi + 0x48], edx
cmp ebx, 0x106
jae 0x41e331
mov eax, dword [edi]
cmp dword [eax + 4], 0
jne 0x41e200
mov edx, dword [edi + 0x16c0]
mov ecx, dword [edi + 0x3c]
cmp edx, ecx
jae 0x41e3a9
mov esi, dword [edi + 0x6c]
add esi, ebx
cmp edx, esi
jae 0x41e379
sub ecx, esi
mov eax, 0x102
cmp ecx, eax
cmova ecx, eax
mov eax, dword [edi + 0x38]
push ecx
add eax, esi
push 0
push eax
mov dword [ebp + 8], ecx
call fcn.00404b30
mov eax, dword [ebp + 8]
add esp, 0xc
add eax, esi
mov dword [edi + 0x16c0], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [esi + 0x102]
cmp edx, eax
jae 0x41e3a9
mov eax, dword [edi + 0x38]
sub esi, edx
sub ecx, edx
add esi, 0x102
cmp esi, ecx
cmova esi, ecx
push esi
add eax, edx
push 0
push eax
call fcn.00404b30
add esp, 0xc
add dword [edi + 0x16c0], esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x435bae
Capabilities:
Create process on windows

Disassembly:
push 0x44
push 0
push 0x4a6d20
call fcn.00414710
push 0x10
push 0
push 0x4a6d0c
call fcn.00414710
mov ecx, dword [esp + 0x1c]
add esp, 0x18
push 0x4a6d0c
push 0x4a6d20
push 0
push 0
push 0x20
push 0
push 0
push 0
push ecx
mov eax, 1
push 0
mov dword [0x4a6d20], 0x44
mov dword [0x4a6d4c], 1
mov word [0x4a6d50], ax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x435c21
mov edx, dword [0x4a6d0c]
mov dword [esp + 4], edx
jmp dword [sym.imp.KERNEL32.dll_CloseHandle]
ret 4
Function at 0x438a4f
Capabilities:
Enumerate process modules

Disassembly:
mov eax, 0x102c
call fcn.00426a70
push ebp
mov ebp, dword [esp + 0x103c]
lea eax, [esp + 4]
push eax
push 0x800
lea ecx, [esp + 0x838]
push ecx
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
jne 0x438a86
xor al, al
pop ebp
add esp, 0x102c
ret
mov edx, dword [esp + 0x1034]
push ebx
push esi
mov esi, dword [esp + 0xc]
push edx
shr esi, 2
mov byte [ebp], 0
call fcn.00438a13
add esp, 4
xor ebx, ebx
mov dword [esp + 0x14], eax
test esi, esi
jbe 0x438b9a
push edi
cmp byte [ebp], 0
jne 0x438b99
mov eax, dword [esp + ebx*4 + 0x83c]
push eax
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
lea ecx, [esp + 0x10]
push ecx
push 4
lea edx, [esp + 0x1c]
mov edi, eax
push edx
push edi
call sub.PSAPI.DLL_EnumProcessModules
mov ecx, dword [esp + 0x14]
push 0x104
lea eax, [esp + 0x22c]
push eax
push ecx
push edi
call sub.PSAPI.DLL_GetModuleBaseNameW
test eax, eax
je 0x438b89
lea edx, [esp + 0x434]
push edx
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x640]
push ecx
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x238]
push eax
call fcn.004152c0
lea ecx, [esp + 0x448]
push ecx
lea edx, [esp + 0x3c]
push edx
call fcn.00412b83
mov eax, dword [esp + 0x105c]
push eax
lea ecx, [esp + 0x44]
push ecx
call fcn.00412af0
add esp, 0x24
test eax, eax
jne 0x438b69
mov edx, dword [esp + ebx*4 + 0x83c]
mov eax, dword [esp + 0x1044]
mov dword [eax], edx
jmp 0x438b85
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x438b89
mov eax, dword [esp + ebx*4 + 0x83c]
cmp ecx, eax
jne 0x438b89
mov ecx, dword [esp + 0x1044]
mov dword [ecx], eax
mov byte [ebp], 1
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc ebx
cmp ebx, esi
jb 0x438ab2
pop edi
pop esi
pop ebx
mov al, 1
pop ebp
add esp, 0x102c
ret
Function at 0x4457ef
Capabilities:
Create pipe

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x10]
mov eax, dword [eax]
mov ecx, dword [esp + 0x18]
push esi
mov esi, dword [esp + 0x20]
mov dword [esp + 4], 0xc
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
test al, 0x10
je 0x4458d6
push ecx
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [esi], eax
cmp eax, 0xffffffff
je 0x445844
push 1
push esi
push eax
call fcn.004371c6
mov eax, dword [esi]
add esp, 0xc
pop esi
add esp, 0xc
ret 0x14
mov dword [esi], 0
mov eax, dword [esi]
pop esi
add esp, 0xc
ret 0x14
mov edx, dword [esp + 0x24]
push 0
lea ecx, [esp + 8]
push ecx
push esi
push edx
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x4458b1
or eax, 0xffffffff
pop esi
add esp, 0xc
ret 0x14
push ecx
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [esi], eax
test eax, eax
je 0x445886
cmp eax, 0xffffffff
jne 0x44582f
push 0
push 0x80
push 3
lea eax, [esp + 0x10]
push eax
push 2
push 0x40000000
push 0x4883c4
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi], eax
cmp eax, 0xffffffff
je 0x445844
test eax, eax
je 0x445844
mov edx, dword [esi]
push 1
lea ecx, [esp + 0x24]
push ecx
push edx
call fcn.004371c6
push esi
call fcn.004371f6
mov eax, dword [esp + 0x30]
add esp, 0x10
mov dword [esi], eax
pop esi
add esp, 0xc
ret 0x14
test dword [esp + 0x18], eax
je 0x445874
mov eax, dword [esi]
test eax, eax
je 0x445853
pop esi
add esp, 0xc
ret 0x14

Function at 0x445db8
Capabilities:
Log keystrokes

Disassembly:
cmp byte [esp + 8], 1
push esi
mov esi, dword [esp + 8]
jne 0x445dd5
push esi
call fcn.0043800d
add esp, 4
test al, al
jne 0x445dee
push 1
jmp 0x445dd7
push 0
push 0
push esi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.USER32.dll_AttachThreadInput]
pop esi
ret

Function at 0x4461cd
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
push esi
call fcn.004461b0
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
push 0
lea eax, [esp + 0xc]
push eax
mov eax, dword [esi]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 8]
add dword [esi + 0x10], eax
adc dword [esi + 0x14], 0
pop esi
ret 0xc
Function at 0x4468e0
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
sub esp, 0x100
push ebx
mov bl, byte [esp + 0x110]
push ebp
mov ebp, dword [esp + 0x10c]
push esi
push edi
mov edi, dword [esp + 0x118]
push 0
push edi
call dword [sym.imp.USER32.dll_MapVirtualKeyW]
cmp dword [ebp + 0x14], 0
mov esi, eax
je 0x4469c7
cmp edi, 0x14
je 0x4469c7
cmp edi, 0x90
je 0x4469c7
cmp edi, 0x91
je 0x4469c7
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
shl esi, 0x10
or esi, 0xc0000001
cmp bl, 1
je 0x446958
push edi
call 0x43939e
cmp al, 1
jne 0x44695e
or esi, 0x1000000
mov eax, dword [ebp + 0x10]
test al, 1
jne 0x446971
test eax, 0x100
jne 0x446971
cmp edi, 0x12
jne 0x44698f
test al, 8
jne 0x44698f
test eax, 0x800
jne 0x44698f
mov ecx, dword [ebp + 0x14]
or esi, 0x20000000
push esi
push edi
push 0x105
push ecx
jmp 0x44699a
mov edx, dword [ebp + 0x14]
push esi
push edi
push 0x101
push edx
call dword [sym.imp.USER32.dll_PostMessageW]
xor byte [esp + edi + 0x10], 0x80
lea eax, [esp + edi + 0x10]
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.USER32.dll_SetKeyboardState]
push ebp
call fcn.00439774
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x100
ret 0xc
cmp bl, 1
je 0x4469dc
push edi
call 0x43939e
cmp al, 1
je 0x4469dc
push 0
push 2
jmp 0x4469e0
push 0
push 3
push esi
push edi
call dword [sym.imp.USER32.dll_keybd_event]
push ebp
call fcn.00439774
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x100
ret 0xc

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

Disassembly:
sub esp, 0x100
push ebx
mov bl, byte [esp + 0x110]
push ebp
mov ebp, dword [esp + 0x10c]
push esi
push edi
mov edi, dword [esp + 0x118]
push 0
push edi
call dword [sym.imp.USER32.dll_MapVirtualKeyW]
cmp dword [ebp + 0x14], 0
mov esi, eax
je 0x446af2
cmp edi, 0x14
je 0x446af2
cmp edi, 0x90
je 0x446af2
cmp edi, 0x91
je 0x446af2
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
or byte [esp + edi + 0x10], 0x80
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.USER32.dll_SetKeyboardState]
shl esi, 0x10
or esi, 1
cmp bl, 1
je 0x446a80
push edi
call 0x43939e
cmp al, 1
jne 0x446a86
or esi, 0x1000000
mov eax, dword [ebp + 0x10]
test al, 1
jne 0x446a99
test eax, 0x100
jne 0x446a99
cmp edi, 0x12
jne 0x446ace
test al, 8
jne 0x446ace
test eax, 0x800
jne 0x446ace
mov edx, dword [ebp + 0x14]
or esi, 0x20000000
push esi
push edi
push 0x104
push edx
call dword [sym.imp.USER32.dll_PostMessageW]
push ebp
call fcn.0043975d
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x100
ret 0xc
mov eax, dword [ebp + 0x14]
push esi
push edi
push 0x100
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
push ebp
call fcn.0043975d
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x100
ret 0xc
cmp bl, 1
je 0x446b07
push edi
call 0x43939e
cmp al, 1
je 0x446b07
push 0
push 0
jmp 0x446b0b
push 0
push 1
push esi
push edi
call dword [sym.imp.USER32.dll_keybd_event]
push ebp
call fcn.0043975d
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x100
ret 0xc
Function at 0x44724d
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x14]
mov eax, dword [esi]
lea ecx, [eax + 4]
push edi
mov edi, dword [eax + edx]
mov dword [esi], ecx
xor ecx, ecx
lea eax, [edi + 1]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00412c3a
mov ebx, eax
mov eax, dword [esi]
add eax, dword [esp + 0x18]
lea ebp, [edi + edi]
push ebp
push eax
push ebx
call fcn.00412490
add dword [esi], ebp
xor ecx, ecx
add esp, 0x10
xor eax, eax
mov word [ebx + ebp], cx
test edi, edi
jle 0x4472a9
xor word [ebx + eax*2], di
inc eax
cmp eax, edi
jl 0x4472a0
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
ret 8