joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40459a
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
push VariantCopy
push 0
push dword [ebp + 8]
push 1
mov ebx, 0x9dc
call fcn.0046ce00
add esp, 0x10
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4045e4
mov eax, 0
jmp 0x40464d
mov dword [ebp - 0xc], esp
push dword [ebp + 0x24]
push dword [ebp + 0x1c]
push dword [ebp + 0xc]
push dword [ebp - 4]
push 0
push 0
xor eax, eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x404623
push 0x100
push 0x403311a
push 6
call fcn.0046a828
add esp, 0xc
mov dword [ebp - 8], eax
cmp dword [ebp + 0x18], 0
jne 0x40463d
push dword [ebp - 8]
call fcn.004026e5
jmp 0x404645
mov eax, dword [ebp - 8]
mov ebx, dword [ebp + 0x14]
mov dword [ebx], eax
mov eax, dword [ebp - 8]
jmp 0x40464d
mov esp, ebp
pop ebp
ret 0x24
Function at 0x40a5ed
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
cmp dword [ebp + 8], 0
jne 0x40a61d
mov edx, 0xffffffff
mov eax, 0xffffffff
jmp 0x40a658
mov dword [ebp - 0xc], esp
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x40a64d
push 0xa0
push 0x4032d2c
push 6
call fcn.0046a828
add esp, 0xc
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
jmp 0x40a658
mov esp, ebp
pop ebp
ret 4

Function at 0x40c20c
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
cmp dword [ebp + 8], 0
jne 0x40c237
mov eax, 0x487323
jmp 0x40c399
cmp dword [ebp + 0xc], 0
jg 0x40c28f
mov dword [ebp - 0xc], esp
mov eax, dword [ebp + 0xc]
cdq
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], edx
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 8]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x40c27b
push 0xe2
push 0x4032d2b
push 6
call fcn.0046a828
add esp, 0xc
cmp dword [ebp + 0xc], 0
jg 0x40c28f
mov eax, 0x487323
jmp 0x40c399
mov dword [ebp - 0xc], 0
push 0
push dword [ebp - 0xc]
mov dword [ebp - 0x10], 0
push 0
push dword [ebp - 0x10]
push dword [ebp + 0xc]
call fcn.0040c3b1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40c2c6
mov eax, 0x487323
jmp 0x40c399
mov dword [ebp - 0xc], esp
push 0
push dword [ebp + 0x14]
push dword [ebp + 0xc]
push dword [ebp - 4]
push dword [ebp + 8]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x40c300
push 0x2a4
push 0x4032d2b
push 6
call fcn.0046a828
add esp, 0xc
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x40c317
mov eax, 0x487323
jmp 0x40c399
push 0x80000301
push 0
mov ebx, dword [ebp + 0x14]
push dword [ebx]
push 0x80000301
push 0
push dword [ebp - 4]
push 2
mov ebx, 0x910
call fcn.0046cd20
add esp, 0x1c
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x40c356
push ebx
call fcn.0046a822
add esp, 4
pop eax
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], 0
push 0
push dword [ebp - 0xc]
mov dword [ebp - 0x10], 0
push 0
push dword [ebp - 0x10]
push dword [ebp - 4]
call fcn.0040c43e
mov eax, dword [ebp - 8]
test eax, eax
je 0x40c394
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.0046a816
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x40c399
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x40c3aa
push ebx
call fcn.0046a822
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 0x14
Function at 0x45fa2e
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], 0
push 0x80000301
push 0
push 0x2000
push 0x80000301
push 0
push 0x1000
push 2
mov ebx, 0xc8
call fcn.0046e7d0
add esp, 0x1c
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], esp
push 0x40
push dword [ebp - 8]
push 0xe
push 0
xor eax, eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x45faa6
push 0x75
push 0x40331c1
push 6
call fcn.0046a828
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x45fabd
mov eax, 0
jmp 0x45faf8
mov eax, dword [ebp]
mov eax, dword [eax + 8]
mov ecx, eax
mov ebx, dword [ebp + 8]
dec ebx
imul ebx, ebx, 4
mov eax, dword [eax]
mov eax, dword [eax]
add eax, ebx
mov ebx, dword [eax]
mov eax, dword [ebp - 4]
mov word [eax], 0xb85b
mov dword [eax + 2], ebx
mov byte [eax + 6], 0x68
mov dword [eax + 7], ecx
mov word [eax + 0xb], 0xff53
mov byte [eax + 0xd], 0xe0
mov eax, dword [ebp - 4]
jmp 0x45faf8
mov esp, ebp
pop ebp
ret 4

Function at 0x45fafe
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 4], 0
cmp dword [ebp + 8], 0
jne 0x45fb22
mov eax, 0
jmp 0x45fb8b
mov dword [ebp - 8], esp
push dword [ebp + 0x24]
push dword [ebp + 0x1c]
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0
push 0
xor eax, eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
nop
nop
cmp dword [ebp - 8], esp
je 0x45fb61
push 0xb9
push 0x403311b
push 6
call fcn.0046a828
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp + 0x18], 0
jne 0x45fb7b
push dword [ebp - 4]
call fcn.004026e5
jmp 0x45fb83
mov eax, dword [ebp - 4]
mov ebx, dword [ebp + 0x14]
mov dword [ebx], eax
mov eax, dword [ebp - 4]
jmp 0x45fb8b
mov esp, ebp
pop ebp
ret 0x24

Function at 0x46c4c0
Capabilities:
Read .ini file

Disassembly:
push ebx
push ebp
push esi
push edi
push 0x400
call fcn.004795ec
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x40]
mov ecx, dword [esp + 0x28]
add esp, 4
mov esi, eax
mov eax, dword [esp + 0x30]
push ebx
push 0x400
push esi
push ebp
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp eax, 0x3ff
jl 0x46c52a
push esi
lea edi, [eax + 0x400]
call fcn.004795e1
push edi
call fcn.004795ec
mov edx, dword [esp + 0x38]
add esp, 8
mov esi, eax
mov eax, dword [esp + 0x24]
push ebx
push edi
push esi
push ebp
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
dec edi
cmp eax, edi
jge 0x46c4fa
push esi
xor edi, edi
call dword [0x497590]
add esp, 4
test eax, eax
je 0x46c546
push eax
push esi
call fcn.00471b60
add esp, 8
mov edi, eax
push esi
call fcn.004795e1
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x46f1d0
Capabilities:
Create directory

Disassembly:
sub esp, 0xc
mov ecx, dword [esp + 0x14]
xor eax, eax
mov dword [esp + 4], eax
mov dword [esp + 8], eax
lea eax, [esp]
mov dword [esp], 0xc
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
add esp, 0xc
ret

Function at 0x46f5b0
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
mov eax, dword [esp + 8]
cmp edx, 1
jle 0x46f5ce
push esi
lea ecx, [esp + 0x18]
dec edx
mov esi, dword [ecx]
add ecx, 0xc
xor eax, esi
dec edx
jne 0x46f5c3
pop esi
ret

Function at 0x46fa90
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
mov eax, dword [esp + 0x10]
push edi
push 0
push 0x20
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
je 0x46fb22
mov eax, dword [esp + 0x10]
push ebx
mov ebx, 1
push ebp
cmp eax, ebx
push esi
mov dword [esp + 0x10], ebx
jle 0x46fb14
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
lea esi, [esp + 0x2c]
mov eax, dword [esi]
lea edx, [esp + 0x14]
push 0
push edx
lea ecx, [eax + 8]
mov eax, dword [eax + 4]
push eax
push ecx
push edi
call ebp
test eax, eax
je 0x46fb0c
mov eax, dword [esp + 0x1c]
inc ebx
add esi, 0xc
cmp ebx, eax
jl 0x46fad5
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret
mov dword [esp + 0x10], 0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret

Function at 0x46fb90
Capabilities:
Query environment variable

Disassembly:
push ebp
push esi
push edi
push 0x104
call fcn.0046c1d0
mov ebp, dword [esp + 0x18]
add esp, 4
mov edi, eax
push 0x104
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov esi, eax
cmp esi, 0x104
jbe 0x46fbe7
push ebx
push edi
call fcn.0046c2e0
push esi
mov ebx, esi
call fcn.0046c1d0
add esp, 8
mov edi, eax
push esi
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov esi, eax
cmp esi, ebx
ja 0x46fbbe
mov eax, edi
pop ebx
pop edi
pop esi
pop ebp
ret
mov eax, edi
pop edi
pop esi
pop ebp
ret

Function at 0x46fc00
Capabilities:
Get file size
Read file on windows

Disassembly:
mov eax, dword [esp + 8]
push edi
push 0
push 0x20
push 3
push 0
push 3
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
je 0x46fc69
push ebx
lea ecx, [esp + 0x10]
push esi
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
lea edx, [ebx + 8]
push edx
call fcn.0046c220
add esp, 4
mov esi, eax
lea eax, [esp + 0x14]
push 0
push eax
lea ecx, [esi + 8]
push ebx
push ecx
push edi
mov dword [esi], 1
mov dword [esi + 4], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
pop ebx
pop edi
ret
Function at 0x46fc70
Capabilities:
Copy file
Delete file
Move file

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0x1c]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
jne 0x46fc9a
push eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x46fc9a
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop edi
pop esi
ret
Function at 0x4705a0
Capabilities:
Get file size

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
jne 0x4705ae
or eax, 0xffffffff
pop esi
ret
push esi
call fcn.00472db0
add esp, 4
test eax, eax
jne 0x4705c0
or eax, 0xffffffff
pop esi
ret
mov ecx, dword [esi]
or eax, 0xffffffff
cmp ecx, 1
je 0x4705de
cmp ecx, 3
je 0x4705de
cmp ecx, 2
jne 0x4705ed
mov ecx, dword [esi + 4]
call fcn.004734b0
pop esi
ret
mov esi, dword [esi + 4]
lea eax, [esp + 0xc]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
pop esi
ret
Function at 0x470ea0
Capabilities:
Read file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x1c]
test edi, edi
jne 0x470eb5
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
push edi
call fcn.00472db0
add esp, 4
test eax, eax
jne 0x470ec8
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
mov esi, dword [esp + 0x28]
test esi, esi
jg 0x470ed8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
mov eax, dword [edi]
xor ebx, ebx
cmp eax, 1
jne 0x470f31
mov edi, dword [edi + 4]
push esi
call fcn.004795ec
add esp, 4
mov ebp, eax
lea eax, [esp + 0x1c]
push ebx
push eax
push esi
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x470f13
push ebp
call fcn.004795e1
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
mov ecx, dword [esp + 0x1c]
push ecx
push ebp
call fcn.00472a40
push ebp
mov ebx, eax
call fcn.004795e1
add esp, 0xc
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
cmp eax, 2
jne 0x470f7c
mov edi, dword [edi + 4]
lea edx, [esi + 8]
push edx
call fcn.0046c220
mov ebx, eax
add esp, 4
lea ecx, [ebx + 8]
mov dword [ebx], 1
mov dword [ebx + 4], esi
mov eax, dword [edi]
push esi
push ecx
mov ecx, edi
call dword [eax + 0x20]
test eax, eax
jne 0x470f71
push ebx
call fcn.0046c2e0
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
pop edi
mov dword [ebx + 4], eax
pop esi
mov eax, ebx
pop ebp
pop ebx
pop ecx
ret
cmp eax, 3
jne 0x470ff5
mov ebx, dword [edi + 4]
push esi
call fcn.004795ec
add esp, 4
mov ebp, eax
push 1
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea edx, [esp + 0x1c]
push 0
push edx
push esi
push ebp
push ebx
mov dword [esp + 0x24], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x470fc5
push ebp
call fcn.004795e1
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
mov edx, dword [edi + 0xc]
mov eax, dword [esp + 0x1c]
lea ecx, [edi + 0x10]
add edi, 0x34
push ecx
push edx
push edi
mov esi, eax
push eax
mov eax, dword [esp + 0x20]
push ebp
push eax
call fcn.00472580
push esi
push ebp
call fcn.00472a40
push ebp
mov ebx, eax
call fcn.004795e1
add esp, 0x24
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
pop ecx
ret
Function at 0x471d00
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
mov ebp, edx
push esi
push edi
mov esi, ebp
xor edi, edi
and esi, 3
mov eax, ecx
jle 0x471d21
mov dl, byte [eax]
inc eax
cmp dl, bl
je 0x471d7b
inc edi
cmp edi, esi
jl 0x471d15
mov edi, ebx
and edi, 0xff
mov esi, edi
shl esi, 8
or esi, edi
shl esi, 8
or esi, edi
shl esi, 8
or esi, edi
lea edi, [ecx + ebp]
cmp eax, edi
jae 0x471db0
mov edx, dword [eax]
xor edx, esi
lea ebp, [edx - 0x1010101]
not edx
and ebp, edx
test ebp, 0x80808080
je 0x471d6a
cmp byte [eax], bl
je 0x471d85
cmp byte [eax + 1], bl
je 0x471d8e
cmp byte [eax + 2], bl
je 0x471d98
cmp byte [eax + 3], bl
je 0x471da4
add eax, 4
cmp eax, edi
jb 0x471d41
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret 4
pop edi
sub eax, ecx
pop esi
pop ebp
dec eax
pop ebx
ret 4
pop edi
pop esi
pop ebp
sub eax, ecx
pop ebx
ret 4
pop edi
sub eax, ecx
pop esi
pop ebp
inc eax
pop ebx
ret 4
pop edi
sub eax, ecx
pop esi
pop ebp
add eax, 2
pop ebx
ret 4
pop edi
sub eax, ecx
pop esi
pop ebp
add eax, 3
pop ebx
ret 4
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret 4

Function at 0x472390
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
sub esp, 0x108
push ebx
push ebp
push esi
push edi
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x19]
mov byte [esp + 0x18], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, dword [esp + 0x11c]
lea eax, [esp + 0x18]
mov ebx, edi
xor esi, esi
xor ecx, ecx
sub ebx, eax
mov eax, ecx
lea ebp, [esp + ecx + 0x18]
cdq
idiv dword [esp + 0x124]
mov eax, dword [esp + 0x120]
mov byte [ebx + ebp], cl
inc ecx
cmp ecx, 0x100
mov dl, byte [edx + eax]
mov byte [ebp], dl
jl 0x4723c2
lea ebp, [esp + 0x18]
mov eax, edi
sub ebp, edi
mov dword [esp + 0x10], 0x100
mov cl, byte [eax]
xor edx, edx
mov dl, byte [eax + ebp]
mov byte [esp + 0x14], cl
mov ebx, dword [esp + 0x14]
add esi, edx
and ebx, 0xff
add esi, ebx
and esi, 0x800000ff
jns 0x472422
dec esi
or esi, 0xffffff00
inc esi
mov dl, byte [esi + edi]
mov byte [eax], dl
mov byte [esi + edi], cl
mov ecx, dword [esp + 0x10]
inc eax
dec ecx
mov dword [esp + 0x10], ecx
jne 0x4723f9
xor al, al
mov byte [edi + 0x100], al
mov byte [edi + 0x101], al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret
Function at 0x4724d0
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ecx
mov eax, dword [esp + 0x10]
push esi
push edi
mov edi, dword [esp + 0x14]
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
xor esi, esi
mov byte [esp + 0x18], cl
test edi, edi
mov byte [esp + 8], dl
jle 0x47256c
mov edx, dword [esp + 0x10]
push ebx
push ebp
mov cl, byte [esp + 0x20]
mov bl, byte [esp + 0x10]
inc cl
mov byte [esp + 0x20], cl
mov ecx, dword [esp + 0x20]
and ecx, 0xff
lea edi, [ecx + eax]
mov cl, byte [ecx + eax]
add bl, cl
mov byte [esp + 0x10], bl
mov ebx, dword [esp + 0x10]
and ebx, 0xff
lea ebp, [ebx + eax]
mov bl, byte [ebx + eax]
mov byte [edi], bl
mov byte [ebp], cl
mov bl, byte [edi]
add bl, cl
and ebx, 0xff
mov cl, byte [ebx + eax]
mov bl, byte [esi + edx]
xor bl, cl
mov ecx, dword [esp + 0x1c]
mov byte [esi + edx], bl
inc esi
cmp esi, ecx
jl 0x4724fb
mov dl, byte [esp + 0x20]
mov cl, byte [esp + 0x10]
pop ebp
pop ebx
pop edi
mov byte [eax + 0x100], dl
mov byte [eax + 0x101], cl
pop esi
pop ecx
ret
pop edi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop esi
pop ecx
ret
Function at 0x4019b3
Capabilities:
Packed with generic packer

Disassembly:
pushal
pushfd
push esp
push dword [esp + 0x2c]
call fcn.00418f90
add esp, 8
or eax, eax
je 0x4019cb
jmp 0x4018e7
popfd
popal
ret 4

Function at 0x402730
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
cmp dword [0x44e7d4], 0
push ebx
push esi
mov esi, 0x44e7dc
jne 0x40275c
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
push esi
mov dword [0x44e7f4], eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0x44e7d4], 1
push dword [0x44e7f4]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
test ebx, ebx
jne 0x4027f9
push 0x14
push 8
push dword [0x44e798]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
test ebx, ebx
je 0x402823
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x44e7d8]
test eax, eax
je 0x40279e
mov dword [eax], ebx
push edi
push esi
mov dword [ebx + 4], eax
mov dword [0x44e7d8], ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea edi, [ebx + 0x10]
push 0
push 0
push 0x100000
push edi
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call esi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
push 8
push 0xffffffffffffffff
push ebx
push 0x402828
push dword [edi]
lea eax, [ebx + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
push ebx
push dword [0x44e7f4]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop edi
push 0xc
push 0
push dword [0x44e798]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x402823
mov ecx, dword [esp + 0xc]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x10]
mov dword [eax + 8], ecx
mov ecx, dword [ebx + 8]
mov dword [eax], ecx
mov dword [ebx + 8], eax
pop esi
pop ebx
ret 8

Function at 0x4031fd
Capabilities:
Create thread

Disassembly:
push ecx
push ebp
push esi
lea eax, [esp + 8]
xor esi, esi
push eax
push esi
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push 0x1000
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebp, eax
test ebp, ebp
je 0x403295
push edi
push 0x4524b8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [0x44e8a4]
test edi, edi
je 0x403269
push ebx
push esi
lea ebx, [edi + 8]
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x403262
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [edi]
push ebx
push 0x44e8a4
call fcn.00418c54
pop ecx
pop ecx
jmp 0x403264
mov edi, dword [edi]
test edi, edi
jne 0x403239
pop ebx
mov eax, dword [0x44b764]
mov esi, eax
inc eax
push 0x10
push 0x44e8a4
mov dword [0x44b764], eax
call fcn.00418c94
pop ecx
pop ecx
push 0x4524b8
mov dword [eax], ebp
mov dword [eax + 4], esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
mov eax, esi
pop esi
pop ebp
pop ecx
ret 8
Function at 0x4067e6
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov edi, 0x3e8
mov ebp, dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, edi
cdq
idiv dword [0x44eadc]
mov esi, eax
lea eax, [esp + 0x10]
push eax
call ebp
mov edx, dword [esp + 0x10]
sub edx, dword [0x4529e0]
mov ecx, dword [esp + 0x14]
sbb ecx, dword [0x4529e4]
push 0
push edi
push ecx
push edx
call fcn.00402070
push dword [0x4529ec]
push dword [0x4529e8]
push edx
push eax
call fcn.004020b0
mov edi, eax
mov ecx, edx
mov eax, esi
cdq
sub eax, edi
sbb edx, ecx
mov dword [esp + 0x1c], edx
js 0x406880
jg 0x406853
cmp eax, 2
jbe 0x406880
sub esi, edi
sub esi, 2
push esi
call fcn.0040af4b
jmp 0x406880
mov eax, dword [0x4529f0]
mov ebx, esi
sub ebx, dword [0x4529e0]
mov ecx, edi
cdq
sbb ecx, dword [0x4529e4]
cmp ecx, edx
jg 0x406893
jl 0x406880
cmp ebx, eax
ja 0x406893
lea eax, [esp + 0x10]
push eax
call ebp
mov edi, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
test eax, eax
jne 0x406860
mov dword [0x4529e4], edi
pop edi
mov dword [0x4529e0], esi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret

Function at 0x409039
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
call dword [sym.imp.USER32.DLL_GetFocus]
mov esi, dword [sym.imp.USER32.DLL_GetKeyState]
mov ebx, eax
test ebx, ebx
je 0x4090cc
push 9
call esi
test al, al
jns 0x4090cc
push 0x11
call esi
test al, al
js 0x4090cc
push 0x10
call esi
test al, al
js 0x4090cc
push 0x12
call esi
test al, al
js 0x4090cc
push 0x10
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.USER32.DLL_GetClassNameW]
push 5
lea eax, [ebp - 0x24]
push str.RichE
push eax
call sub.MSVCRT.dll_wcsncmp
add esp, 0xc
test eax, eax
je 0x4090ae
push 4
lea eax, [ebp - 0x24]
push str.RICHE
push eax
call sub.MSVCRT.dll_wcsncmp
add esp, 0xc
test eax, eax
jne 0x4090cc
push 0
push 0
push 0x44e
push ebx
call dword [sym.imp.USER32.DLL_SendMessageW]
test eax, 0x800
jne 0x4090cc
xor eax, eax
jmp 0x40914d
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x4090f4
push 0x11
call esi
test al, al
js 0x4090ec
push 0x10
call esi
test al, al
js 0x4090ec
push 0x12
call esi
test al, al
jns 0x4090f4
push 1
push edi
call fcn.00409155
mov esi, dword [sym.imp.USER32.DLL_GetPropW]
test ebx, ebx
je 0x40910a
push str.PB_Hotkey
push ebx
call esi
test eax, eax
jne 0x40914a
push str.PB_WindowID
push edi
call esi
mov esi, eax
test esi, esi
je 0x40914a
lea eax, [ebp - 4]
push eax
push edi
call dword [sym.imp.USER32.DLL_GetWindowThreadProcessId]
test eax, eax
je 0x40914a
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [ebp - 4], eax
jne 0x40914a
lea eax, [esi - 1]
push eax
push dword [0x452c04]
call fcn.00418544
test eax, eax
je 0x40914a
mov eax, dword [eax + 8]
jmp 0x40914c
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x40b411
Capabilities:
Get thread local storage value

Disassembly:
push esi
push dword [0x45296c]
call fcn.004184ad
push dword [0x452c74]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp dword [esi], 0
pop esi
jne 0x40b448
push 0x43f0c0
push str.StartDrawing__
push str.CallNeededLib
call fcn.0041a6e0
add esp, 0xc
ret

Function at 0x40b56c
Capabilities:
Set thread local storage value

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
xor ebx, ebx
push edi
mov edi, ebx
test esi, esi
je 0x40b5c9
push esi
call dword [esi + 0x58]
mov ecx, dword [esi + 0x80]
mov edi, eax
mov dword [esi + 0x94], ecx
mov ecx, dword [esi + 0x84]
mov dword [esi + 0x98], ecx
test edi, edi
jne 0x40b5c9
mov eax, dword [esi + 0x70]
test eax, eax
je 0x40b5a8
push ebx
push esi
call eax
push esi
push ebx
push dword [0x44e798]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push ebx
push dword [0x452c74]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [0x452c78], ebx
mov eax, edi
pop edi
pop esi
pop ebx
ret 4