joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4d6f60
Capabilities:
Encode data using base64

Disassembly:
push esi
push edi
push ebp
add esp, 0xfffffff4
mov dword [esp + 4], eax
mov dword [esp + 8], edx
xor esi, esi
xor edi, edi
xor eax, eax
mov ebp, ecx
test ebp, ebp
jns 0x4d6f7d
add ebp, 3
sar ebp, 2
test ebp, ebp
jle 0x4d708f
mov edx, 4
mov eax, esp
mov ecx, dword [esp + 4]
movzx ecx, byte [ecx + esi]
cmp ecx, 0x3d
jg 0x4d6fb0
je 0x4d6ffc
sub ecx, 0x2b
je 0x4d6ff2
sub ecx, 4
je 0x4d6ff7
dec ecx
sub ecx, 0xa
jb 0x4d6fe1
jmp 0x4d6fff
add ecx, 0xffffffbf
sub ecx, 0x1a
jb 0x4d6fc2
add ecx, 0xfffffffa
sub ecx, 0x1a
jb 0x4d6fd0
jmp 0x4d6fff
mov ecx, dword [esp + 4]
mov cl, byte [ecx + esi]
sub cl, 0x41
mov byte [eax], cl
jmp 0x4d6fff
mov ecx, dword [esp + 4]
mov cl, byte [ecx + esi]
sub cl, 0x61
add cl, 0x1a
mov byte [eax], cl
jmp 0x4d6fff
mov ecx, dword [esp + 4]
mov cl, byte [ecx + esi]
sub cl, 0x30
add cl, 0x34
mov byte [eax], cl
jmp 0x4d6fff
mov byte [eax], 0x3e
jmp 0x4d6fff
mov byte [eax], 0x3f
jmp 0x4d6fff
mov byte [eax], 0xff
inc esi
inc eax
dec edx
jne 0x4d6f8f
mov al, byte [esp]
shl eax, 2
xor edx, edx
mov dl, byte [esp + 1]
shr edx, 4
or al, dl
mov edx, dword [esp + 8]
mov byte [edx + edi], al
lea eax, [edi + 1]
mov dl, byte [esp + 2]
cmp dl, 0xff
je 0x4d704f
cmp byte [esp + 3], 0xff
jne 0x4d704f
mov al, byte [esp + 1]
shl eax, 4
and edx, 0xff
shr edx, 2
or al, dl
mov edx, dword [esp + 8]
mov byte [edx + edi + 1], al
lea eax, [edi + 2]
inc edi
jmp 0x4d7087
cmp dl, 0xff
je 0x4d7087
mov al, byte [esp + 1]
shl eax, 4
and edx, 0xff
shr edx, 2
or al, dl
mov edx, dword [esp + 8]
mov byte [edx + edi + 1], al
mov eax, dword [esp + 8]
mov dl, byte [esp + 2]
shl edx, 6
or dl, byte [esp + 3]
mov byte [eax + edi + 2], dl
lea eax, [edi + 3]
add edi, 2
inc edi
dec ebp
jne 0x4d6f88
add esp, 0xc
pop ebp
pop edi
pop esi
ret

Function at 0x4d711c
Capabilities:
Hash data with crc32

Disassembly:
push ebx
xor ebx, ebx
mov ecx, 0x5a87a0
mov eax, ebx
mov edx, 8
test al, 1
je 0x4d7138
shr eax, 1
xor eax, 0xedb88320
jmp 0x4d713a
shr eax, 1
dec edx
jne 0x4d712b
mov dword [ecx], eax
inc ebx
add ecx, 4
cmp ebx, 0x100
jne 0x4d7124
pop ebx
ret
Function at 0x4d7150
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 0x10
add esp, 0xfffff004
push eax
dec eax
jne 0x4d7159
mov eax, dword [ebp - 4]
add esp, 0xfffffebc
push ebx
push esi
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004cea38
xor eax, eax
push ebp
push 0x4d7239
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.004d711c
mov eax, dword [0x5a7e0c]
mov byte [eax], 0
mov dword [ebx], 0xffffffff
mov edx, dword [ebp - 4]
lea eax, [ebp - 0x154]
call fcn.004cce7c
mov edx, 1
lea eax, [ebp - 0x154]
call fcn.004cd218
call fcn.004ccba8
test eax, eax
jne 0x4d7216
lea eax, [ebp - 8]
push eax
lea edx, [ebp - 0x10145]
mov ecx, 0xfff1
lea eax, [ebp - 0x154]
call fcn.004ccfcc
mov dx, word [ebp - 8]
test dx, dx
jbe 0x4d7210
lea eax, [ebp - 0x10145]
xor ecx, ecx
mov cl, byte [eax]
mov esi, dword [ebx]
and esi, 0xff
xor ecx, esi
mov ecx, dword [ecx*4 + 0x5a87a0]
mov esi, dword [ebx]
shr esi, 8
xor ecx, esi
mov dword [ebx], ecx
inc eax
dec dx
jne 0x4d71ec
cmp dword [ebp - 8], 0
jne 0x4d71c3
lea eax, [ebp - 0x154]
call fcn.004ccfec
not dword [ebx]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d7240
lea eax, [ebp - 4]
call fcn.004ce588
ret

Function at 0x4e2718
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
test esi, esi
jbe 0x4e2738
mov ecx, 1
mov ebx, edx
add ebx, ecx
dec ebx
mov bl, byte [ebx]
mov edi, eax
add edi, ecx
dec edi
xor byte [edi], bl
inc ecx
dec esi
jne 0x4e2726
pop edi
pop esi
pop ebx
ret
Function at 0x4eafd4
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
xor ebp, ebp
mov ebx, 0x5a8cb4
mov eax, ebp
shr eax, 1
and eax, 0xff
mov dword [esp], eax
mov esi, ebp
and esi, 1
mov eax, ebp
and eax, 0x200
shr eax, 8
or esi, eax
mov edx, dword [esi*4 + 0x59d670]
mov eax, dword [esi*4 + 0x59d6b0]
xor eax, dword [esp]
call fcn.004eaf70
mov edi, eax
shl edi, 0x18
mov eax, edi
call fcn.004eafac
mov dword [ebx], eax
mov edx, dword [esi*4 + 0x59d680]
mov eax, dword [esi*4 + 0x59d6c0]
xor eax, dword [esp]
call fcn.004eaf70
mov edi, eax
shl edi, 0x10
mov eax, edi
call fcn.004eafac
mov dword [ebx + 0x1000], eax
mov edx, dword [esi*4 + 0x59d690]
mov eax, dword [esi*4 + 0x59d6d0]
xor eax, dword [esp]
call fcn.004eaf70
mov edi, eax
shl edi, 8
mov eax, edi
call fcn.004eafac
mov dword [ebx + 0x2000], eax
mov edx, dword [esi*4 + 0x59d6a0]
mov eax, dword [esi*4 + 0x59d6e0]
xor eax, dword [esp]
call fcn.004eaf70
mov edi, eax
mov eax, edi
call fcn.004eafac
mov dword [ebx + 0x3000], eax
inc ebp
add ebx, 4
cmp ebp, 0x400
jne 0x4eafe0
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x4eb138
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
mov ecx, dword [eax + edx*4]
mov eax, dword [ebp - 0xc]
add eax, dword [ebp - 0x10]
lea eax, [eax + eax*2]
mov edx, dword [ebp - 4]
lea eax, [edx + eax*4 + 0x4c]
mov dword [ebp - 0x14], eax
xor ebx, ebx
mov eax, dword [ebp - 0x14]
xor edx, edx
mov dword [eax + ebx*4], edx
inc ebx
cmp ebx, 3
jne 0x4eb16d
xor ebx, ebx
mov eax, ebx
mov esi, 3
xor edx, edx
div esi
mov eax, dword [ebp - 0x14]
lea eax, [eax + edx*4]
mov dword [ebp - 0x18], eax
xor eax, eax
lea edx, [eax + ecx]
and edx, 3
mov esi, dword [ebp - 8]
lea edx, [esi + edx*2]
mov dword [ebp - 0x1c], edx
mov edx, dword [ebp - 0x1c]
mov dx, word [edx]
and dx, 1
movzx edx, dx
mov esi, dword [ebp - 0x18]
mov esi, dword [esi]
add esi, esi
or esi, edx
mov edi, dword [ebp - 0x18]
mov dword [edi], esi
mov esi, dword [ebp - 0x1c]
movzx esi, word [esi]
shr esi, 1
xor dx, 1
shl edx, 0xf
or si, dx
mov edx, dword [ebp - 0x1c]
mov word [edx], si
inc eax
cmp eax, 4
jne 0x4eb193
inc ebx
cmp ebx, 0xf
jne 0x4eb17d
inc dword [ebp - 0x10]
cmp dword [ebp - 0x10], 8
jne 0x4eb14f
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x5dac41
Capabilities:
Encode data using xor

Disassembly:
jmp 0x5c4618
jmp 0x5daba1

Function at 0x5ef6d8
Capabilities:
Encrypt data using aes

Disassembly:
lea esp, [esp + 4]
movzx esi, byte [eax + 0xd]
mov bx, 0x48c8
bsr ebx, ecx
bts edi, ebp
jmp 0x5ef6ab
shl edx, 8
lea edi, [0x51001c1a]
mov ebx, 0x118b4ba6
xor edx, esi
bswap esi
jmp 0x5ef60d
xor edx, esi
lea esp, [esp + 0x20]
movzx esi, byte [eax + 0xe]
bswap edi
jmp 0x5ef68a
mov dword [esp + 4], ebp
mov di, word [esp + 8]
shl edx, 8
mov edi, esi
jmp 0x5ef645
mov dword [eax], edx
pop eax
movzx edx, byte [eax + 0xc]
pushal
not bp
jmp 0x5ef65d
lea edi, [edx*4]
movzx eax, byte [eax + 0xf]
mov edi, eax
pushal
mov dword [esp + 0x17], ebx
jmp 0x5ef71e
push eax
mov eax, ecx
lea eax, [eax + 8]
jmp 0x5ef67d
btr si, ax
mov si, word [esp + 9]
lea edi, [eax + ecx]
jmp 0x5ef6d8
dec bh
mov bh, byte [esp]
bswap ebx
xor edx, eax
sub esp, 0x1c
jmp 0x5ef6b3
push esi
mov esi, ecx
lea esi, [esi + 0xc]
jmp 0x5ef705
mov eax, edx
shr eax, 0x10
jmp 0x5ef753
xor edx, esi
cmc
xchg bh, bl
shl edx, 8
rcr bh, 1
jmp 0x5ef6ca
mov dword [esi], edx
pop esi
mov bp, 0x62f4
rol di, 4
sub esp, 0x17
lea esp, [esp + 3]
jmp 0x5ef6e0
mov bh, 2
shl edx, 8
push sp
lea esp, [esp + 2]
jmp 0x5ef6f9
bsf di, sp
seto bh
rol edi, 0xe
mov eax, dword [eax*4 + 0x5cc6d4]
not ebx
jmp 0x5ef7d6
lea esp, [esp + 0x50]
mov esi, 0xff
cmp bh, dl
and eax, esi
jmp 0x5ef72b
mov word [esp], dx
jmp 0x5ef631

Function at 0x5ef79e
Capabilities:
Encrypt data using aes

Disassembly:
jmp 0x5ef813
lea ebp, [ebp*4]
lea ebp, [ebp + 0x5cc6d4]
mov edi, dword [ebp]
pop ebp
jmp 0x5ef86e
lea esp, [esp + 2]
sub esp, 9
lea esp, [esp + 3]
lea esp, [esp + 0x18]
popal
jmp 0x5ef7a0
xchg bl, bh
mov bx, sp
lea esp, [esp + 0xc]

Function at 0x5f0524
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
lea esp, [esp + 2]
jmp 0x5f0505
and edi, ecx
sub esp, 0x1c
push dword [esp + 0x12]
push dword [esp + 0x11]
pop word [esp + 0x13]
jmp 0x5f04da
mov edi, dword [edi*4 + 0x5ccad4]
and ebx, ecx
lea esp, [esp + 0x48]
jmp 0x5f054a
sub esp, 0xf
mov dword [esp + 5], ebp
add esp, 0xb
jmp 0x5f04f1
mov dword [esp], eax
mov ebx, dword [ebx*4 + 0x5cc6d4]
sub esp, 0x13
pop word [esp + 6]
jmp 0x5f0575
xor edi, dword [ebx*4 + 0x5cd2d4]
not bh
mov bh, bl
movzx ebx, byte [esi + 6]
pushfd
jmp 0x5f0530
and ebx, ecx
clc
lea esp, [esp + 0x10]
xor edi, dword [ebx*4 + 0x5cced4]
jmp 0x5f05ba
pop dword [esp + 2]
mov byte [esp + 1], cl
lea esp, [esp + 1]
jmp 0x5f055c
sub esp, 0x18
lea esp, [esp + 0x18]
movzx ebx, byte [esi + 9]
and edx, ecx
jmp 0x5f059e

Function at 0x5f0624
Capabilities:
Encrypt data using aes

Disassembly:
add esp, 1
lea edx, [0x3f2558f5]
lea esp, [esp + 3]
jmp 0x5f05fc

Function at 0x5f09e2
Capabilities:
Encrypt data using aes

Disassembly:
push eax
jmp 0x5f0a23
cmc
sub esp, 0x15
lea esp, [esp + 1]
jmp 0x5f0a0a
mov eax, edx
lea eax, [eax*4]
lea eax, [eax + 0x5cc6d4]
mov edx, dword [eax]
pop eax
jmp 0x5f09e5
Function at 0x953acb
Capabilities:
Access peb ldr_data
Parse pe header

Disassembly:
mov dword [esp + 0x40], edi
lea esp, [esp + 0x40]
jmp 0x953b0b
push dword [esp + 0xf]
lea esp, [esp + 1]
jmp 0x953ab5
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
jmp 0x953af3

Function at 0x953c49
Capabilities:
Parse pe header

Disassembly:
push ax
push dword [esp + 1]
push word [esp + 5]
pushal
call fcn.00953acb
mov eax, dword [eax + 0x1c]
jmp 0x953b56
pushfd
push word [esp + 1]
push ebp
pop dword [esp]
lea esp, [esp + 1]
mov byte [esp + 1], al
jmp 0x953ae2
push eax
jmp 0x95309a
mov eax, dword [eax]
mov eax, dword [eax + 8]
jmp 0x953b3c
push dword [esp + 3]
mov dword [esp + 0xa], esp
pop dword [esp]
pop dword [esp]
lea esp, [esp + 3]
mov dword [esp + 0x10], esi
jmp 0x953b28
mov byte [esp + 4], bl
mov byte [esp + 9], ah
jmp 0x953b6f
Function at 0x4010a8
Capabilities:
Create process on windows
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x440
push ebx
push esi
push edi
lea eax, [ebp - 0x22c]
push eax
mov edi, 0x104
push edi
mov byte [ebp - 6], 0
mov byte [ebp - 5], 0
call dword [sym.imp.KERNEL32.DLL_GetCurrentDirectoryW]
push dword [ebp + 8]
call fcn.00401414
call dword [sym.imp.KERNEL32.DLL_IsDebuggerPresent]
test eax, eax
je 0x4010fa
push 0x10
push 0x46dd72
push str.This_is_a_compiled_AutoIt_script._AV_researchers_please_email_avsupport_autoitscript.com_for_support.
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x4012a8
mov eax, dword [0x490e34]
test eax, eax
jne 0x40110f
or dword [0x4803d4], 0xffffffff
jmp 0x40129b
mov ebx, 0x490e4c
cmp eax, 1
jne 0x401138
push 0xffffffffffffffff
push dword [0x490e3c]
mov esi, 0x491fb8
push eax
call fcn.004084b1
mov al, byte [0x4803c8]
mov byte [0x491fbb], al
jmp 0x401186
lea eax, [ebp - 6]
push eax
push 0x490e34
mov esi, ebx
mov eax, 0x491fb8
call fcn.00408943
test al, al
jne 0x401160
mov dword [0x4803d4], 1
jmp 0x40129b
mov al, byte [0x491fb8]
mov byte [0x490e38], al
mov al, byte [0x491fb9]
push 0x490e30
mov byte [ebp - 5], al
lea eax, [ebp - 0x43c]
push eax
push edi
push ebx
call dword [sym.imp.KERNEL32.DLL_GetFullPathNameW]
push dword [0x490e34]
push ebx
call fcn.004171de
test eax, eax
je 0x4011bc
mov edi, 0x491fb8
call fcn.004085f0
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.KERNEL32.DLL_SetCurrentDirectoryW]
mov dword [0x4803d4], 1
jmp 0x4012a8
cmp byte [ebp - 5], 1
jne 0x401258
call fcn.0040fbb5
test al, al
jne 0x401258
push edi
lea eax, [ebp - 0x43c]
push eax
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameW]
cmp byte [ebp - 6], 0
je 0x401231
mov edi, 0x46dde0
push edi
lea esi, [ebp - 0x18]
call fcn.00401983
push ebx
call fcn.00401a27
push edi
call fcn.00401a27
push 1
lea eax, [ebp - 0x22c]
push eax
push dword [ebp - 0x18]
lea eax, [ebp - 0x43c]
push eax
push 0x46dde4
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov ecx, esi
call fcn.00401a04
jmp 0x401291
push 1
lea eax, [ebp - 0x22c]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x43c]
push eax
push 0x46dde4
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
jmp 0x401291
call fcn.004012af
call fcn.004013a3
cmp byte [0x490e38], 0
mov ebx, 0x4915f0
jne 0x401275
call fcn.0040bdf7
push 1
mov ecx, 0x491058
call fcn.004174be
cmp byte [0x490e38], 0
jne 0x401291
mov ecx, ebx
call fcn.0040c19a
mov edi, 0x491fb8
call fcn.004085f0
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.KERNEL32.DLL_SetCurrentDirectoryW]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x40221a
Capabilities:
Get token privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
push edi
xor ebx, ebx
lea eax, [ebp - 8]
push eax
push ebx
push 8
mov dword [ebp - 8], ebx
xor edi, edi
mov byte [ebp - 1], bl
mov dword [ebp - 0xc], ebx
call esi
push eax
call dword [sym.imp.ADVAPI32.dll_OpenThreadToken]
test eax, eax
jne 0x402261
lea eax, [ebp - 8]
push eax
push 8
call esi
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x40234d
mov eax, dword [ebp - 8]
mov esi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea ecx, [ebp - 0xc]
push ecx
push ebx
push ebx
push 3
push eax
mov dword [ebp - 0x18], eax
call esi
cmp eax, ebx
jne 0x4022be
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x7a
jne 0x40234d
push dword [ebp - 0xc]
push 8
call dword [sym.imp.KERNEL32.DLL_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.DLL_HeapAlloc]
mov edi, eax
cmp edi, ebx
je 0x40234d
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0xc]
push edi
push 3
push dword [ebp - 0x18]
call esi
cmp eax, ebx
je 0x40234d
mov esi, dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
lea eax, [ebp - 0x30]
push eax
push 0x46df90
push ebx
call esi
test eax, eax
je 0x40234d
lea eax, [ebp - 0x24]
push eax
push str.SeIncreaseQuotaPrivilege
push ebx
mov dword [ebp - 0x28], ebx
call esi
test eax, eax
je 0x40234d
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x14], ebx
cmp dword [edi], ebx
jbe 0x402332
lea eax, [edi + 4]
mov dword [ebp - 0x10], eax
lea esi, [ebp - 0x28]
mov dword [ebp - 0x18], 2
push 8
lea eax, [esi - 8]
push eax
push dword [ebp - 0x10]
call fcn.00455a73
add esp, 0xc
test eax, eax
jne 0x40231c
mov dword [esi], 1
add esi, 0xc
dec dword [ebp - 0x18]
jne 0x402301
inc dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
add dword [ebp - 0x10], 0xc
cmp eax, dword [edi]
jb 0x4022f7
mov byte [ebp - 1], 1
xor ecx, ecx
lea eax, [ebp - 0x28]
cmp dword [eax], ebx
je 0x40234a
inc ecx
add eax, 0xc
cmp ecx, 2
jb 0x40233b
jmp 0x40234d
mov byte [ebp - 1], bl
cmp dword [ebp - 8], ebx
je 0x40235b
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
cmp edi, ebx
je 0x40236e
push edi
push ebx
call dword [sym.imp.KERNEL32.DLL_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.DLL_HeapFree]
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4025f7
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 4], 0
push ebx
push esi
push edi
xor edi, edi
test byte [ebp + 0x14], 1
mov esi, eax
je 0x402610
inc edi
jmp 0x402619
test byte [ebp + 0x14], 2
je 0x402619
push 2
pop edi
xor bl, bl
test byte [ebp + 0x14], 4
je 0x402659
and dword [ebp + 0x14], 0
lea eax, [ebp + 0x14]
push eax
push 0xa
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
push 1
push dword [ebp + 0x14]
lea eax, [ebp - 4]
push eax
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
push dword [ebp + 0x14]
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
cmp dword [ebp - 8], 0
je 0x402686
push dword [ebp + 0x24]
or esi, 0x400
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp - 4]
push esi
push dword [ebp + 0x18]
push 0
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_CreateProcessWithLogonW]
test eax, eax
setne bl
cmp dword [ebp - 4], 0
je 0x402695
push dword [ebp - 4]
call dword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
pop edi
pop esi
mov al, bl
pop ebx
leave
ret 0x20

Function at 0x40281c
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0xc
push 8
call dword [sym.imp.KERNEL32.DLL_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.DLL_HeapAlloc]
mov esi, dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
push 2
push 0
mov edi, eax
push 0
push edi
call esi
push eax
mov eax, dword [ebp + 8]
push dword [eax]
call esi
mov ebx, dword [sym.imp.KERNEL32.DLL_DuplicateHandle]
push eax
call ebx
push 2
push 0
push 0
lea eax, [edi + 8]
push eax
call esi
push eax
mov eax, dword [ebp + 0x10]
push dword [eax]
call esi
push eax
call ebx
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov dword [edi + 4], eax
xor eax, eax
push eax
push eax
push edi
push 0x40288d
push eax
push eax
call dword [sym.imp.KERNEL32.DLL_CreateThread]
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x402e1d
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov esi, eax
push 1
push dword [esi]
call fcn.00404a28
mov edi, dword [sym.imp.USER32.dll_MapVirtualKeyW]
xor eax, eax
push eax
push 0x25
cmp dword [ebp + 8], eax
jge 0x402e73
call edi
mov ebx, dword [sym.imp.USER32.dll_PostMessageW]
shl eax, 0x10
or eax, 1
push eax
push 0x25
push pe_nt_image_headers32
push dword [esi]
call ebx
push 0
call dword [sym.imp.KERNEL32.DLL_Sleep]
push 0
push 0x25
call edi
shl eax, 0x10
or eax, 0xc0000001
push eax
push 0x25
jmp 0x402ea6
call edi
mov ebx, dword [sym.imp.USER32.dll_PostMessageW]
shl eax, 0x10
or eax, 1
push eax
push 0x27
push pe_nt_image_headers32
push dword [esi]
call ebx
push 0
call dword [sym.imp.KERNEL32.DLL_Sleep]
push 0
push 0x25
call edi
shl eax, 0x10
or eax, 0xc0000001
push eax
push 0x27
push 0x101
push dword [esi]
call ebx
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.DLL_Sleep]
mov esi, dword [esi]
push edi
push edi
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 edi
pop esi
mov al, 1
pop ebx
pop ebp
ret 4

Function at 0x403303
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push 0xb0
push dword [edi]
call esi
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 4]
jb 0x40332d
xor al, al
jmp 0x4033aa
push ebx
push 0
push 0
push 0xe
push dword [edi]
call esi
mov ebx, eax
test ebx, ebx
je 0x4033a7
cmp ebx, dword [ebp - 8]
jb 0x4033a7
cmp ebx, dword [ebp - 4]
jb 0x4033a7
xor ecx, ecx
push 2
pop edx
lea eax, [ebx + 1]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00455667
pop ecx
push eax
mov dword [ebp - 0xc], eax
lea eax, [ebx + 1]
push eax
push 0xd
push dword [edi]
call esi
test eax, eax
je 0x4033a3
mov eax, dword [ebp - 4]
cmp eax, ebx
je 0x403382
mov edx, dword [ebp - 0xc]
xor ecx, ecx
mov word [edx + eax*2], cx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
lea eax, [ecx + eax*2]
push eax
push dword [ebp + 8]
call fcn.0040204a
mov bl, 1
push dword [ebp - 0xc]
call fcn.0045526c
pop ecx
mov al, bl
jmp 0x4033a9
xor bl, bl
jmp 0x403396
xor al, al
pop ebx
pop esi
leave
ret 4
Function at 0x4046bc
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x204
push ebx
push esi
push edi
mov esi, eax
mov eax, dword [ebp + 0xc]
push 0x46df88
call fcn.0040214f
mov edi, dword [ebp + 8]
push 1
push edi
call fcn.00404856
call dword [sym.imp.USER32.dll_GetFocus]
xor ebx, ebx
mov dword [esi + 0xd8], eax
cmp eax, ebx
je 0x40479f
push edi
push eax
call fcn.00404831
test eax, eax
je 0x40479f
push dword [esi + 0xd8]
call fcn.0040425c
push pe_nt_image_headers32
lea eax, [ebp - 0x204]
push eax
push dword [esi + 0xd8]
mov dword [esi + 0xd4], edi
call dword [sym.imp.USER32.dll_GetClassNameW]
lea eax, [ebp - 0x204]
push eax
lea eax, [esi + 0x8c]
call fcn.0040214f
and dword [esi + 0x130], ebx
push esi
push 0x4047bf
push edi
call dword [sym.imp.USER32.dll_EnumChildWindows]
push dword [esi + 0x130]
lea eax, [ebp - 0x204]
push dword [esi + 0x8c]
push str._s_d
push eax
call fcn.0045732b
add esp, 0x10
lea eax, [ebp - 0x204]
push eax
mov eax, dword [ebp + 0xc]
call fcn.0040214f
push ebx
push ebx
push edi
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]
mov al, 1
jmp 0x4047b8
push ebx
push ebx
push edi
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]
xor al, al
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x404856
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
cmp byte [ebp + 0xc], 1
jne 0x404881
lea eax, [ebp + 0xc]
push eax
push 0x1388
push 2
push 0
push 0
push 0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageTimeoutW]
test eax, eax
je 0x40489c
push 1
jmp 0x404883
push 0
push 0
push dword [ebp + 8]
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 ebp
ret 8
Function at 0x40b350
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push edi
xor edi, edi
cmp ebx, edi
jne 0x40b36a
mov eax, dword [ebp + 8]
cmp byte [eax + 9], 0
je 0x40b43d
push esi
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], edi
call dword [sym.imp.KERNEL32.DLL_GetCurrentThreadId]
cmp byte [ebp + 0xc], 0
mov dword [ebp - 4], eax
je 0x40b408
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 dword [ebp - 4]
mov dword [0x492490], eax
call esi
mov dword [ebp + 0xc], eax
test ebx, ebx
je 0x40b3dd
lea eax, [ebp - 0xc]
push eax
push ebx
call edi
mov ecx, dword [0x492490]
mov dword [0x49248c], eax
cmp ecx, eax
je 0x40b3d2
push 1
push eax
push ecx
call esi
mov dword [ebp - 8], eax
mov eax, dword [0x49248c]
push 1
push eax
push dword [ebp - 4]
call esi
mov dword [ebp - 0xc], eax
xor ecx, ecx
cmp dword [ebp + 0xc], ecx
jne 0x40b43c
cmp dword [ebp - 8], ecx
jne 0x40b43c
cmp dword [ebp - 0xc], ecx
jne 0x40b43c
mov eax, dword [0x492490]
cmp dword [ebp - 4], eax
jne 0x40b43c
cmp eax, dword [0x49248c]
jne 0x40b43c
mov eax, dword [ebp + 8]
mov dword [eax + 0x20], ecx
jmp 0x40b43c
mov esi, dword [sym.imp.USER32.dll_AttachThreadInput]
cmp ebx, edi
je 0x40b430
push edi
push dword [0x49248c]
push eax
call esi
mov ecx, dword [0x492490]
mov eax, dword [0x49248c]
cmp ecx, eax
je 0x40b430
push edi
push eax
push ecx
call esi
push edi
push dword [0x492490]
push dword [ebp - 4]
call esi
pop esi
pop edi
leave
ret 8

Function at 0x40b442
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push esi
push edi
mov edi, eax
test edi, edi
js 0x40b4bf
jne 0x40b456
push 0
jmp 0x40b4b9
cmp edi, 0xf
jae 0x40b4b8
mov esi, dword [sym.imp.KERNEL32.DLL_QueryPerformanceCounter]
lea eax, [ebp - 0x18]
push eax
call esi
test eax, eax
je 0x40b4b8
mov dword [ebp - 4], edi
fild dword [ebp - 4]
test edi, edi
jns 0x40b47b
fadd qword [0x475bc0]
fstp qword [ebp - 0x28]
push 0
call dword [sym.imp.KERNEL32.DLL_Sleep]
lea eax, [ebp - 0x10]
push eax
call esi
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
sbb ecx, dword [ebp - 0x14]
mov dword [ebp - 8], eax
mov dword [ebp - 4], ecx
fild qword [ebp - 8]
fstp qword [ebp - 0x20]
call fcn.0040fbf8
fdivr qword [ebp - 0x20]
fcomp qword [ebp - 0x28]
fnstsw ax
test ah, 5
jnp 0x40b47e
jmp 0x40b4bf
push edi
call dword [sym.imp.KERNEL32.DLL_Sleep]
pop edi
pop esi
leave
ret