joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41c6ab
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x434a98]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41c6f1
cmp word [ebx], dx
jne 0x41c6f1
or byte [eax + edi + 0x28], 4
jmp 0x41c6f6
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x41c859
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x41c839
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x41c737
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x41c76d
cmp eax, edx
jae 0x41c77b
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x41c712
jmp 0x41c859
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41c834
cmp dword [ebp - 0x18], 0
je 0x41c834
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x434a98]
test byte [eax + edi + 0x28], 0x48
je 0x41c80a
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x41c7ce
mov word [esi], cx
jmp 0x41c805
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x434a98]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x434a98]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x434a98]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x41c859
pop eax
cmp word [ebp - 4], ax
jne 0x41c81a
cmp esi, ebx
jne 0x41c81a
mov word [esi], ax
jmp 0x41c856
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0041cfad
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x41c859
push 0xd
pop eax
jmp 0x41c815
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x434a98]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x41c853
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x41c859
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41e3be
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42c300
push 0x42c2f8
push str.FlsAlloc
push 0x1f
call fcn.0041e25a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41e3f2
push dword [ebp + 8]
mov ecx, esi
call dword [0x4281d0]
call esi
jmp 0x41e3f8
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x41e43c
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42c310
push 0x42c308
push str.FlsGetValue
push 0x21
call fcn.0041e25a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41e473
push dword [ebp + 8]
mov ecx, esi
call dword [0x4281d0]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x41e47b
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42c318
push 0x42c310
push str.FlsSetValue
push 0x22
call fcn.0041e25a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41e4b5
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x4281d0]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x41f754
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x41f7f1
push ebx
push esi
call fcn.0041f71d
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0041e0a1
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x41f79e
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41f7f0
push edi
push eax
call fcn.0041a573
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x41f7be
call fcn.0041a539
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41f7ef
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0041e0a1
add esp, 0x20
test eax, eax
jne 0x41f7dd
push edi
call fcn.0041a539
jmp 0x41f7e5
push ebx
call fcn.0041a539
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret
Function at 0x424735
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.004246b1
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x4248a4
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x4248a4
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x424859
jg 0x424791
test eax, eax
je 0x42484f
push 1
push 0x1000
call fcn.0041e776
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x4247b4
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x424846
push 0x8000
push ebx
call fcn.00417c53
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x4247dd
jg 0x4247d8
cmp ecx, 0x1000
jb 0x4247dd
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.0041d8f5
add esp, 0x10
cmp eax, 0xffffffff
je 0x424822
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x4247d8
jl 0x424809
test ecx, ecx
jne 0x4247ca
push dword [ebp - 0xc]
push ebx
call fcn.00417c53
push esi
call fcn.0041a539
add esp, 0xc
xor ebx, ebx
jmp 0x4248b2
cmp byte [edi + 0x24], 0
je 0x424839
cmp dword [edi + 0x20], 5
jne 0x424839
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x424844
mov ebx, dword [edi + 0x18]
jmp 0x424846
xor ebx, ebx
push esi
call fcn.0041a539
pop ecx
jmp 0x4248b2
test ecx, ecx
jg 0x42481b
jl 0x424859
test eax, eax
jae 0x42481b
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041cfad
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x424879
cmp byte [edi + 0x1c], 0
je 0x42481b
jmp 0x4248aa
push ebx
call fcn.0041fbe3
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x42481b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x4248b2
cmp byte [edi + 0x1c], 0
je 0x4248af
mov ebx, dword [edi + 0x18]
jmp 0x4248b2
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.0041cfad
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x425c90
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x425cbd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x425cbd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x401000
Capabilities:
Allocate thread local storage

Disassembly:
push 0x38
push 0
push 0x96eaf4
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0
call sub.KERNEL32.dll_GetModuleHandleW
mov dword [0x96eaf8], eax
push 0
push 0x1000
push 0
call sub.KERNEL32.dll_HeapCreate
mov dword [0x96eaf4], eax
mov eax, 0x96d4ca
mov dword [0x96eafc], eax
call fcn.00415df0
call fcn.00415265
call fcn.004151f0
call fcn.004142c0
call fcn.004123f4
call fcn.00411b80
call fcn.00411160
call fcn.00410278
call fcn.0040fce1
call fcn.0040fc1d
call fcn.0040f874
call fcn.0040e860
call fcn.0040dfec
call fcn.0040da16
call fcn.0040d4c2
call fcn.0040c1fb
call fcn.0040b42f
call fcn.00409e4c
call fcn.004093a4
mov ebp, 0x9557b8
push ebp
push 1
call fcn.0040fe60
mov dword [0x96eb10], eax
push 0x96eb24
push 0x41ab38
push 8
push 1
push 4
call fcn.0040f89d
mov edx, 0x419448
lea ecx, [0x96eb18]
call fcn.00409008
mov eax, 0x419b2c
push eax
push 0xffffffff
call fcn.00409ebf
mov dword [0x96eb04], eax
mov eax, 0x41a804
push eax
push dword [0x96eb04]
call fcn.00409f19
mov dword [0x96eb08], eax
push edx
call fcn.00415e40
pop edx
push eax
push 0x28
call fcn.00401e77
mov edx, str.AppDataRoamingMicrosoftWindowsNetwork_Shortcuts_
push edx
call fcn.00415e80
push 0x96eb0c
call fcn.00415ee0
mov edx, dword [0x96eb0c]
push edx
call fcn.00415e40
pop edx
push eax
push edx
call fcn.00415e80
mov edx, str.IVANOVATION_SHARED_FOLDER.lnk
push edx
call fcn.00415e80
push 0x96eb1c
call fcn.00415ee0
call fcn.004066e4
push 0
call 0x40118a
call fcn.00415e20
push dword [0x96eaf4]
call sub.KERNEL32.dll_HeapDestroy
call sub.KERNEL32.dll_ExitProcess
call fcn.00409e40
call fcn.00409fbe
call fcn.0040a085
call fcn.0040a25e
call fcn.0040ad8d
call fcn.0040b3d9
call fcn.0040c1d8
call fcn.0040d4a4
call fcn.0040dfdb
call fcn.0040e1ca
call fcn.0040e850
call fcn.0040fcd5
call fcn.00411153
call fcn.004142e0
call fcn.004152f3
call fcn.00415422
call fcn.0040b385
call fcn.004151e0
ret
Function at 0x40173f
Capabilities:
Query or enumerate registry value

Disassembly:
push ebx
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00415fb0
push dword [esp + 0x28]
call fcn.004090a0
mov edx, dword [esp + 0x20]
lea ecx, [esp]
call fcn.00409000
mov edx, dword [esp + 0x24]
lea ecx, [esp + 4]
call fcn.00409000
mov dword [esp + 8], 0
push edx
call fcn.00415e40
pop edx
push eax
push edx
call fcn.00415e40
pop edx
push eax
push 0xff
call fcn.00414980
lea eax, [esp + 0x10]
push eax
call fcn.00415ee0
mov dword [esp + 0x10], 0xff
lea eax, [esp + 8]
push eax
push 0x20019
push 0
push dword [esp + 0xc]
push dword [esp + 0x2c]
call sub.ADVAPI32.DLL_RegOpenKeyExW
and eax, eax
je 0x4017d2
mov edx, 0x41902a
lea ecx, [esp + 0xc]
call fcn.00409008
jmp 0x401839
lea eax, [esp + 0x10]
push eax
mov eax, dword [esp + 0x10]
push eax
push 0
push 0
push dword [esp + 0x14]
push dword [esp + 0x1c]
call sub.ADVAPI32.DLL_RegQueryValueExW
and eax, eax
je 0x401807
mov edx, 0x41902a
lea ecx, [esp + 0xc]
call fcn.00409008
jmp 0x401830
push edx
call fcn.00415e40
pop edx
push eax
push edx
call fcn.00415e40
pop edx
push eax
mov ebx, dword [esp + 0x18]
dec ebx
push ebx
push dword [esp + 0x18]
call fcn.00414700
lea eax, [esp + 0x10]
push eax
call fcn.00415ee0
push dword [esp + 8]
call sub.ADVAPI32.DLL_RegCloseKey
mov edx, dword [esp + 0xc]
push edx
call fcn.00415e40
pop edx
push eax
push edx
call fcn.00415e80
pop eax
push eax
call fcn.00409070
pop edx
add eax, edx
jmp 0x401861
push dword [esp + 0xc]
call fcn.00416070
push dword [esp]
call fcn.00416070
push dword [esp + 4]
call fcn.00416070
add esp, 0x14
pop ebx
ret 0xc

Function at 0x401882
Capabilities:
Create directory

Disassembly:
push ebx
xor eax, eax
push eax
push eax
push eax
call fcn.00415fb0
push dword [esp + 0x18]
call fcn.004090a0
mov edx, dword [esp + 0x14]
lea ecx, [esp]
call fcn.00409000
push dword [esp]
push 0
call sub.SHELL32.DLL_SHCreateDirectory
mov dword [esp + 4], eax
push dword [esp + 4]
xor ebx, ebx
cmp ebx, dword [esp]
jne 0x4018ce
mov edx, 0x41a8ae
lea ecx, [esp + 0xc]
call fcn.00409008
jmp 0x401900
mov ebx, 0x50
cmp ebx, dword [esp]
jne 0x4018e8
mov edx, 0x41a8ae
lea ecx, [esp + 0xc]
call fcn.00409008
jmp 0x401900
mov ebx, 0xb7
cmp ebx, dword [esp]
jne 0x401900
mov edx, 0x41a8ae
lea ecx, [esp + 0xc]
call fcn.00409008
pop eax
mov edx, dword [esp + 8]
push edx
call fcn.00415e40
pop edx
push eax
push edx
call fcn.00415e80
pop eax
push eax
call fcn.00409070
pop edx
add eax, edx
jmp 0x401929
push dword [esp]
call fcn.00416070
push dword [esp + 8]
call fcn.00416070
add esp, 0xc
pop ebx
ret 4
Function at 0x401941
Capabilities:
Set registry value

Disassembly:
push ebx
push edi
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00415fb0
mov edx, dword [esp + 0x24]
lea ecx, [esp]
call fcn.00409000
mov edx, dword [esp + 0x28]
lea ecx, [esp + 4]
call fcn.00409000
mov edx, dword [esp + 0x2c]
lea ecx, [esp + 8]
call fcn.00409000
lea eax, [esp + 0x10]
push eax
push 0xf003f
push 0
push dword [esp + 0xc]
push dword [esp + 0x30]
call sub.ADVAPI32.DLL_RegOpenKeyExW
mov dword [esp + 0xc], eax
mov ebx, dword [esp + 0xc]
and ebx, ebx
jne 0x4019df
cmp dword [esp + 0x10], 0
je 0x4019df
push dword [esp + 8]
call fcn.004146d0
mov ebx, eax
shl ebx, 1
add ebx, 2
push ebx
mov eax, dword [esp + 0xc]
push eax
push 1
push 0
mov eax, dword [esp + 0x14]
push eax
push dword [esp + 0x24]
call sub.ADVAPI32.DLL_RegSetValueExW
mov dword [esp + 0xc], eax
push dword [esp + 0x10]
call sub.ADVAPI32.DLL_RegCloseKey
mov eax, dword [esp + 0xc]
jmp 0x4019e7
push dword [esp + 8]
call fcn.00416070
push dword [esp + 4]
call fcn.00416070
push dword [esp]
call fcn.00416070
add esp, 0x14
pop edi
pop ebx
ret 0x10

Function at 0x401a09
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
push ebx
mov edx, 7
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x401a10
call fcn.00415fb0
mov edx, dword [esp + 0x28]
lea ecx, [esp]
call fcn.00409000
mov edx, dword [esp + 0x2c]
lea ecx, [esp + 4]
call fcn.00409000
mov edx, dword [esp + 0x30]
lea ecx, [esp + 8]
call fcn.00409000
push 0
call sub.OLE32.DLL_CoInitialize
lea eax, [esp + 0x18]
push eax
mov ebp, 0x96d4da
push ebp
push 1
push 0
mov ebp, 0x96d4ca
push ebp
call sub.OLE32.DLL_CoCreateInstance
mov dword [esp + 0xc], eax
mov ebx, dword [esp + 0xc]
and ebx, ebx
jne 0x401b05
sub esp, 4
push dword [esp + 4]
mov eax, dword [esp + 0x20]
push eax
mov eax, dword [eax]
call dword [eax + 0x50]
push eax
pop eax
add esp, 4
sub esp, 4
push dword [esp + 0x38]
push dword [esp + 0x10]
mov eax, dword [esp + 0x24]
push eax
mov eax, dword [eax]
call dword [eax + 0x44]
push eax
pop eax
add esp, 4
lea eax, [esp + 0x14]
push eax
mov ebp, 0x96d4ea
push ebp
mov eax, dword [esp + 0x20]
push eax
mov eax, dword [eax]
call dword [eax]
mov dword [esp + 0xc], eax
mov ebx, dword [esp + 0xc]
and ebx, ebx
jne 0x401afb
sub esp, 4
push 1
push dword [esp + 0xc]
mov eax, dword [esp + 0x20]
push eax
mov eax, dword [eax]
call dword [eax + 0x18]
push eax
pop eax
add esp, 4
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x14]
push eax
mov eax, dword [eax]
call dword [eax + 8]
mov eax, dword [esp + 0x18]
push eax
mov eax, dword [eax]
call dword [eax + 8]
call sub.OLE32.DLL_CoUninitialize
mov eax, dword [esp + 0xc]
jmp 0x401b12
push dword [esp]
call fcn.00416070
push dword [esp + 4]
call fcn.00416070
push dword [esp + 8]
call fcn.00416070
push dword [esp + 0x10]
call fcn.00416070
add esp, 0x1c
pop ebx
pop ebp
ret 0x10
Function at 0x401f00
Capabilities:
Move file

Disassembly:
push ebx
xor eax, eax
push eax
push eax
call fcn.00415fb0
mov edx, dword [esp + 0x10]
lea ecx, [esp]
call fcn.00409000
mov edx, dword [esp + 0x14]
lea ecx, [esp + 4]
call fcn.00409000
push 3
push dword [esp + 8]
push dword [esp + 8]
call sub.KERNEL32.dll_MoveFileExW
jmp 0x401f39
push dword [esp]
call fcn.00416070
push dword [esp + 4]
call fcn.00416070
add esp, 8
pop ebx
ret 8
Function at 0x409414
Capabilities:
Accept command line arguments

Disassembly:
push ecx
push ecx
push ebx
push ebp
push esi
push edi
push dword [0x96f094]
call fcn.00415446
mov ebp, eax
or ebx, 0xffffffff
xor eax, eax
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov edi, dword [esp + 0x1c]
movzx edx, word [eax]
test dx, dx
je 0x409514
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x10], 0x20
mov dword [esp + 0x14], 0x22
cmp dx, word [esp + 0x10]
jne 0x40946a
push 0x20
pop edx
add eax, 2
cmp word [eax], dx
je 0x409462
movzx edx, word [eax]
mov dword [esp + 0x1c], 1
cmp dx, word [esp + 0x14]
jne 0x4094aa
add eax, 2
mov esi, eax
movzx ecx, word [eax]
test cx, cx
je 0x4094ec
push 0x22
pop edx
cmp cx, dx
je 0x40949c
add eax, 2
movzx ecx, word [eax]
test cx, cx
jne 0x40948c
xor ecx, ecx
cmp word [eax], cx
je 0x4094ec
mov ecx, eax
add eax, 2
jmp 0x4094ee
test dx, dx
je 0x4094f4
push 0x20
mov esi, eax
pop ecx
cmp dx, cx
je 0x40949c
add eax, 2
push 0x22
pop edx
cmp word [eax], dx
jne 0x4094e2
add eax, 2
movzx ecx, word [eax]
test cx, cx
je 0x4094ec
cmp cx, dx
je 0x4094df
add eax, 2
movzx ecx, word [eax]
test cx, cx
jne 0x4094cf
push 0x20
pop ecx
movzx edx, word [eax]
test dx, dx
jne 0x4094b4
jmp 0x40949c
mov ecx, eax
mov edx, dword [esp + 0x1c]
jmp 0x4094f6
xor edx, edx
cmp dword [ebp], ebx
jne 0x4094ff
test edi, edi
jne 0x40951c
test edx, edx
je 0x409504
inc ebx
xor edx, edx
mov esi, edx
movzx edx, word [eax]
test dx, dx
jne 0x409458
test edi, edi
jne 0x40952d
mov eax, ebx
jmp 0x409531
test esi, esi
je 0x40952d
sub ecx, esi
mov eax, esi
sar ecx, 1
mov dword [edi], ecx
inc dword [ebp]
jmp 0x409531
xor ecx, ecx
mov dword [edi], ecx
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret
Function at 0x409c50
Capabilities:
Get thread local storage value

Disassembly:
cmp dword [0x96eb34], 0
jne 0x409c5e
call fcn.00409bd0
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push edi
push dword [0x96eb38]
call esi
test eax, eax
jne 0x409c81
call fcn.00409bd0
push dword [0x96eb38]
call esi
mov edx, dword [esp + 0x14]
lea esi, [eax + 8]
mov edi, 0x11
lea ecx, [ecx]
imul ecx, edx, 0x53a9b4fb
lea esi, [esi + 4]
mov edx, 1
sub edx, ecx
imul ecx, edx, 0x53a9b4fb
mov dword [esi + 0x40], edx
mov edx, 1
sub edx, ecx
mov dword [esi - 4], edx
dec edi
jne 0x409c90
mov dword [eax], edi
lea ebp, [edi + 0x1f]
mov dword [eax + 4], 0xa
mov ebx, dword [eax]
mov edi, dword [eax + 4]
mov edx, dword [eax + ebx*4 + 8]
mov ecx, dword [eax + ebx*4 + 0x4c]
mov esi, dword [eax + edi*4 + 8]
ror ecx, 0xd
add ecx, dword [eax + edi*4 + 0x4c]
dec edi
ror edx, 5
add edx, esi
mov dword [eax + ebx*4 + 8], ecx
mov dword [eax + ebx*4 + 0x4c], edx
dec ebx
jns 0x409cf0
mov ebx, 0x10
test edi, edi
jns 0x409cf9
mov edi, 0x10
mov dword [eax], ebx
mov dword [eax + 4], edi
dec ebp
jne 0x409cc2
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x409d10
Capabilities:
Get thread local storage value

Disassembly:
cmp dword [0x96eb34], 0
jne 0x409d1e
call fcn.00409bd0
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push edi
push dword [0x96eb38]
call esi
mov edx, eax
test edx, edx
jne 0x409d45
call fcn.00409bd0
push dword [0x96eb38]
call esi
mov edx, eax
mov ebx, dword [edx]
mov esi, dword [edx + 4]
mov ebp, dword [esp + 0x14]
inc ebp
mov edi, dword [edx + ebx*4 + 0x4c]
mov eax, dword [edx + ebx*4 + 8]
mov ecx, dword [edx + esi*4 + 8]
ror edi, 0xd
add edi, dword [edx + esi*4 + 0x4c]
dec esi
ror eax, 5
add eax, ecx
mov dword [edx + ebx*4 + 8], edi
mov dword [edx + ebx*4 + 0x4c], eax
dec ebx
jns 0x409d78
mov ebx, 0x10
test esi, esi
jns 0x409d81
mov esi, 0x10
mov dword [edx], ebx
mov eax, edi
mov dword [edx + 4], esi
test ebp, ebp
je 0x409d90
mul ebp
mov eax, edx
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x40aa1b
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0x40
cmp dword [0x96edc0], 0
push ebx
push ebp
push esi
je 0x40aa3a
call fcn.0040a804
call dword [0x96f248]
jmp 0x40abfb
push 0xffffffffffffffff
call fcn.0040ac79
xor ebp, ebp
cmp dword [0x96f1bc], ebp
jne 0x40aa79
mov esi, dword [sym.imp.USER32.DLL_PeekMessageW]
jmp 0x40aa69
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.USER32.DLL_TranslateMessage]
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.USER32.DLL_DispatchMessageW]
push 1
push ebp
push ebp
push ebp
lea eax, [esp + 0x40]
push eax
call esi
test eax, eax
jne 0x40aa53
cmp dword [0x96edb0], ebp
je 0x40abfb
mov eax, dword [0x96f1c8]
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc]
mov esi, eax
cmp esi, 0x88760827
jne 0x40aaa7
mov dword [0x96edb0], ebp
xor eax, eax
jmp 0x40ac15
cmp esi, 0x88760868
jne 0x40aaf5
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, eax
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [0x96f1c8]
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc]
mov esi, eax
cmp esi, 0x88760827
je 0x40aa9a
cmp esi, 0x88760869
je 0x40aaed
test esi, esi
je 0x40aaed
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, ebx
cmp eax, 0x20
jb 0x40aab7
cmp esi, 0x88760868
je 0x40aa9a
cmp esi, 0x88760869
jne 0x40ab98
push dword [0x96ed6c]
call fcn.004157c1
jmp 0x40ab15
push dword [eax]
call fcn.0040afb9
lea eax, [esp + 0xc]
push eax
push dword [0x96ed6c]
call fcn.00415761
test eax, eax
jne 0x40ab0e
mov eax, dword [0x96f1c8]
push 0x96f1dc
push eax
mov ecx, dword [eax]
call dword [ecx + 0x40]
test eax, eax
jne 0x40aa9a
push dword [0x96ed6c]
call fcn.004157c1
jmp 0x40ab55
push dword [eax]
call fcn.0040afbf
lea eax, [esp + 0xc]
push eax
push dword [0x96ed6c]
call fcn.00415761
test eax, eax
jne 0x40ab4e
mov eax, dword [0x96f1c8]
push 0x96f1cc
push ebp
push ebp
mov ecx, dword [eax]
push ebp
push eax
call dword [ecx + 0x48]
or dword [0x96f224], 0xffffffff
or dword [0x96f228], 0xffffffff
or dword [0x96f22c], 0xffffffff
or dword [0x96f230], 0xffffffff
call fcn.0040a804
cmp dword [0x96f1bc], ebp
je 0x40abde
lea eax, [esp + 0x20]
push eax
push dword [0x96eda8]
call dword [sym.imp.USER32.DLL_GetClientRect]
mov eax, dword [0x96ed20]
lea edx, [esp + 0x20]
push ebp
push ebp
push edx
mov dword [esp + 0x24], eax
lea edx, [esp + 0x1c]
mov eax, dword [0x96ed24]
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], ebp
mov dword [esp + 0x28], eax
push edx
jmp 0x40abe2
push ebp
push ebp
push ebp
push ebp
mov eax, dword [0x96f1c8]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov ecx, eax
xor eax, eax
test ecx, ecx
sete al
mov dword [0x96edb0], eax
mov ecx, dword [0x96ed2c]
test ecx, ecx
je 0x40ac12
cmp ecx, dword [0x96f1d8]
je 0x40ac12
call fcn.0040ad3d
xor eax, eax
inc eax
pop esi
pop ebp
pop ebx
add esp, 0x40
ret
Function at 0x40d219
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
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 0x40d293
push 9
call esi
test al, al
jns 0x40d293
push 0x11
call esi
test al, al
js 0x40d293
push 0x10
call esi
test al, al
js 0x40d293
push 0x12
call esi
test al, al
js 0x40d293
push 5
lea eax, [ebp - 0x10]
push eax
push ebx
call dword [sym.imp.USER32.DLL_GetClassNameW]
push 4
lea eax, [ebp - 0x10]
push 0x41825c
push eax
call sub.MSVCRT.dll_wcsncmp
add esp, 0xc
test eax, eax
jne 0x40d293
push eax
push eax
push 0x44e
push ebx
call dword [sym.imp.USER32.DLL_SendMessageW]
test eax, 0x800
jne 0x40d293
xor eax, eax
jmp 0x40d314
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x40d2bb
push 0x11
call esi
test al, al
js 0x40d2b3
push 0x10
call esi
test al, al
js 0x40d2b3
push 0x12
call esi
test al, al
jns 0x40d2bb
push 1
push edi
call fcn.0040d31c
mov esi, dword [sym.imp.USER32.DLL_GetPropW]
test ebx, ebx
je 0x40d2d1
push str.PB_Hotkey
push ebx
call esi
test eax, eax
jne 0x40d311
push str.PB_WindowID
push edi
call esi
mov esi, eax
test esi, esi
je 0x40d311
lea eax, [ebp - 4]
push eax
push edi
call dword [sym.imp.USER32.DLL_GetWindowThreadProcessId]
test eax, eax
je 0x40d311
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [ebp - 4], eax
jne 0x40d311
lea eax, [esi - 1]
push eax
push dword [0x96f280]
call fcn.004155b7
test eax, eax
je 0x40d311
mov eax, dword [eax + 8]
jmp 0x40d313
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4