joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46e24d
Capabilities:
Set global application hook

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0xa0
lea ebx, [ebp - 0xa4]
push 0x94
push 0x4d2250
push ebx
call fcn.0047d340
add esp, 0xc
cmp dword [0x540360], 0
jne 0x46e2d9
push ebx
call sub.KERNEL32.DLL_GetVersionExA
test eax, eax
je 0x46e296
cmp dword [ebp - 0x94], 2
jne 0x46e296
mov dword [0x540320], 1
mov dword [0x540390], 1
call sub.KERNEL32.DLL_GetCurrentThreadId
mov dword [0x540340], eax
push eax
push 0
push 0x46df15
push 3
call sub.USER32.dll_SetWindowsHookExA
mov dword [0x540330], eax
push 1
call sub.WINMM.DLL_timeBeginPeriod
push 0x46dd9b
call fcn.004012d0
mov dword [0x540360], 1
mov ebx, dword [ebp - 4]
leave
ret

Function at 0x46e2de
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x20
jmp 0x46e3c1
mov ecx, dword [ebp - 0x20]
sub ecx, 0x100
cmp ecx, 5
ja 0x46e37e
mov eax, 1
shl eax, cl
test al, 0x33
je 0x46e37e
mov eax, dword [ebp - 0x1c]
cmp eax, 0x10
jb 0x46e37e
cmp eax, 0x12
jbe 0x46e31c
sub eax, 0x5b
cmp eax, 1
ja 0x46e37e
mov dword [0x540350], 0
push 0x10
call sub.USER32.dll_GetKeyState
test ax, ax
jns 0x46e339
or dword [0x540350], 1
push 0x11
call sub.USER32.dll_GetKeyState
test ax, ax
jns 0x46e34c
or dword [0x540350], 2
push 0x12
call sub.USER32.dll_GetKeyState
test ax, ax
jns 0x46e35f
or dword [0x540350], 4
push 0x5b
call sub.USER32.dll_GetKeyState
test ax, ax
js 0x46e377
push 0x5c
call sub.USER32.dll_GetKeyState
test ax, ax
jns 0x46e37e
or dword [0x540350], 8
mov eax, dword [ebp - 0x24]
call fcn.0046ddba
test eax, eax
je 0x46e3b2
push dword [ebp - 0x24]
jmp 0x46e390
push ebx
call sub.USER32.dll_GetParent
mov ebx, eax
test eax, eax
je 0x46e3b2
call fcn.0046ddba
test eax, eax
jne 0x46e38f
lea eax, [ebp - 0x24]
push eax
push ebx
call sub.USER32.dll_IsDialogMessageA
test eax, eax
jne 0x46e3c1
lea ebx, [ebp - 0x24]
push ebx
call sub.USER32.dll_TranslateMessage
push ebx
call sub.USER32.dll_DispatchMessageA
lea eax, [ebp - 0x24]
push 1
push 0
push 0
push 0
push eax
call sub.USER32.dll_PeekMessageA
test eax, eax
jne 0x46e2ea
mov ebx, dword [ebp - 4]
leave
ret

Function at 0x46e3df
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push 0xff
push 0xffffffffffffffff
push 0
push 0
push 0
call sub.USER32.dll_MsgWaitForMultipleObjects
leave
jmp fcn.0046e2de

Function at 0x46e8f7
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x540320], 0
mov eax, dword [ebp + 8]
je 0x46e920
push 0xa
push 0
push 0
push eax
call fcn.00471dab
mov dword [esp], eax
push 0
push 0
call sub.SHELL32.DLL_ShellExecuteW
jmp 0x46e938
push 0xa
push 0
push 0
push eax
call fcn.00471d91
mov dword [esp], eax
push 0
push 0
call sub.SHELL32.DLL_ShellExecuteA
cmp eax, 0x20
leave
setg al
movzx eax, al
ret
Function at 0x46eac6
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x54f800], 0
mov eax, dword [ebp + 8]
je 0x46eaed
push eax
call fcn.00471dab
mov dword [esp], eax
call sub.msvcrt.dll__wgetenv
pop edx
mov dword [ebp + 8], eax
leave
jmp fcn.00470faa
push eax
call fcn.00471d91
mov dword [esp], eax
call sub.msvcrt.dll_getenv
pop ecx
mov dword [ebp + 8], eax
leave
jmp fcn.00470f35
Function at 0x46f064
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
call fcn.00471d91
mov dword [esp], eax
call sub.WSOCK32.DLL_gethostbyname
mov ecx, eax
xor eax, eax
test ecx, ecx
je 0x46f094
movsx edx, word [ecx + 8]
mov eax, dword [ebp + 0xc]
mov dword [eax], edx
mov eax, dword [ebp + 0x10]
movsx edx, word [ecx + 0xa]
mov dword [eax], edx
mov eax, dword [ecx + 0xc]
leave
ret

Function at 0x46f096
Capabilities:
Connect socket

Disassembly:
push ebp
or eax, 0xffffffff
mov ebp, esp
push edi
sub esp, 0x10
cmp dword [ebp + 0x10], 2
jne 0x46f0e4
cld
xor eax, eax
lea edi, [ebp - 0x14]
mov ecx, 4
rep stosd dword es:[edi], eax
movzx eax, word [ebp + 0x18]
mov word [ebp - 0x14], 2
push eax
call sub.WSOCK32.DLL_htons
push dword [ebp + 0x14]
push dword [ebp + 0xc]
mov word [ebp - 0x12], ax
lea eax, [ebp - 0x10]
push eax
call fcn.0047d340
lea eax, [ebp - 0x14]
push 0x10
push eax
push dword [ebp + 8]
call sub.WSOCK32.DLL_connect
mov edi, dword [ebp - 4]
leave
ret

Function at 0x46f482
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x190
lea eax, [ebp - 0x190]
push eax
push 0x101
call sub.WSOCK32.DLL_WSAStartup
push 0x46f479
call fcn.004012d0
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [0x54f7d0], eax
lea edx, [eax + 0x20]
add eax, 0x40
mov dword [0x54f7f0], edx
mov dword [0x54f7e0], eax
leave
ret

Function at 0x4730b7
Capabilities:
Allocate thread local storage
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push 0x54f810
call sub.KERNEL32.DLL_InitializeCriticalSection
call sub.KERNEL32.DLL_TlsAlloc
push 0xb8
mov dword [0x54ab10], eax
call sub.msvcrt.dll_malloc
mov ebx, eax
mov dword [eax + 4], 0
lea eax, [eax + 8]
push pe_nt_image_headers32
push 0
push eax
call sub.msvcrt.dll_memset
mov eax, dword [ebp + 8]
mov dword [ebx + 0x88], 0
mov dword [ebx + 0x8c], eax
call sub.KERNEL32.DLL_GetCurrentThreadId
push 2
push 0
mov dword [ebx + 0xb4], eax
lea eax, [ebx + 0xb0]
push 0
push eax
call sub.KERNEL32.DLL_GetCurrentProcess
push eax
call sub.KERNEL32.DLL_GetCurrentThread
push eax
call sub.KERNEL32.DLL_GetCurrentProcess
push eax
call sub.KERNEL32.DLL_DuplicateHandle
add esp, 0x10
test eax, eax
jne 0x473142
push 0xffffffffffffffff
call sub.msvcrt.dll_exit
push ebx
push dword [0x54ab10]
call sub.KERNEL32.DLL_TlsSetValue
mov eax, dword [0x54aae0]
mov dword [ebx], eax
mov dword [0x54aae0], ebx
mov dword [0x54ab00], ebx
mov ebx, dword [ebp - 4]
leave
ret
Function at 0x473166
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x2d0
lea ebx, [ebp - 0x2d8]
push 0xb8
call sub.msvcrt.dll_malloc
mov esi, eax
mov eax, dword [ebp + 8]
push pe_nt_image_headers32
push 0
mov dword [esi + 4], eax
lea eax, [esi + 8]
push eax
call sub.msvcrt.dll_memset
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x88], 0
mov dword [esi + 8], eax
lea eax, [esi + 0xb4]
push eax
push 4
push esi
push 0x473020
push 0
push 0
call sub.KERNEL32.DLL_CreateThread
push 0x2cc
mov dword [esi + 0xb0], eax
push 0x4d46b0
push ebx
call fcn.0047d340
push ebx
push dword [esi + 0xb0]
call sub.KERNEL32.DLL_GetThreadContext
mov eax, dword [ebp - 0x214]
add esp, 0x1c
mov dword [esi + 0x8c], eax
cmp dword [0x54f830], 0
je 0x473205
push 0x54f810
call sub.KERNEL32.DLL_EnterCriticalSection
mov ebx, 0x54aaf0
mov edx, dword [0x54aaf0]
test edx, edx
je 0x473230
cmp dword [edx + 0x88], 0
je 0x47322a
mov eax, dword [edx]
mov dword [ebx], eax
push edx
call fcn.0047d2f0
pop ecx
jmp 0x47322c
mov ebx, edx
mov edx, dword [ebx]
jmp 0x473210
mov eax, dword [0x54aae0]
mov dword [0x54aae0], esi
mov dword [esi], eax
cmp dword [0x54f830], 0
je 0x473250
push 0x54f810
call sub.KERNEL32.DLL_LeaveCriticalSection
mov eax, esi
mov dword [0x54f830], 1
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret

Function at 0x4732d8
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push dword [eax + 0xb0]
call sub.KERNEL32.DLL_ResumeThread
leave
ret

Function at 0x4732eb
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2d0
call fcn.004732b5
mov esi, dword [0x54aae0]
mov edi, eax
test esi, esi
je 0x4733ab
cmp esi, edi
je 0x4733a4
push dword [esi + 0xb0]
call sub.KERNEL32.DLL_SuspendThread
lea ebx, [ebp - 0x2dc]
push 0x2cc
push 0x4d497c
push ebx
call fcn.0047d340
push ebx
push dword [esi + 0xb0]
call sub.KERNEL32.DLL_GetThreadContext
mov eax, dword [ebp - 0x240]
mov dword [esi + 0x94], eax
mov eax, dword [ebp - 0x23c]
mov dword [esi + 0x98], eax
mov eax, dword [ebp - 0x238]
mov dword [esi + 0x9c], eax
mov eax, dword [ebp - 0x234]
mov dword [esi + 0xa0], eax
mov eax, dword [ebp - 0x230]
mov dword [esi + 0xa4], eax
mov eax, dword [ebp - 0x22c]
mov dword [esi + 0xa8], eax
mov eax, dword [ebp - 0x228]
mov dword [esi + 0xac], eax
mov eax, dword [ebp - 0x218]
mov dword [esi + 0x90], eax
add esp, 0xc
mov esi, dword [esi]
jmp 0x473304
mov eax, dword [0x54aae0]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x4733b8
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
call fcn.004732b5
mov ebx, dword [0x54aae0]
mov esi, eax
test ebx, ebx
je 0x4733e1
cmp ebx, esi
je 0x4733dd
push dword [ebx + 0xb0]
call sub.KERNEL32.DLL_ResumeThread
mov ebx, dword [ebx]
jmp 0x4733ca
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
Function at 0x475f90
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
call dword [sym.imp.KERNEL32.DLL_TlsAlloc]
cmp eax, 0xffffffff
je 0x475fc6
mov dword [0x54eb50], eax
mov edx, 0x475f70
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.0047ba20
test eax, eax
sete al
movzx eax, al
mov dword [0x4d4c80], eax
leave
ret
call dword [sym.imp.KERNEL32.DLL_GetLastError]
test eax, eax
sete al
movzx eax, al
mov dword [0x4d4c80], eax
leave
ret

Function at 0x4760b0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
lea eax, [ebp - 0xc]
sub esp, 0x68
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x40]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], esi
mov dword [ebp - 4], edi
mov dword [ebp - 0x28], 0x475350
mov dword [ebp - 0x24], 0x47e5b4
mov dword [ebp - 0x1c], 0x476170
mov dword [ebp - 0x18], esp
mov dword [esp], eax
call fcn.0047c540
cmp dword [0x4d4c80], 0
mov dword [ebp - 0x44], 0x54eb60
je 0x476150
jl 0x476190
mov dword [ebp - 0x3c], 1
mov eax, dword [0x54eb50]
mov dword [ebp - 0x4c], eax
mov eax, dword [sym.imp.KERNEL32.DLL_GetLastError]
call eax
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x4c]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x50]
sub esp, 4
mov dword [esp], eax
call dword [sym.imp.KERNEL32.DLL_SetLastError]
mov eax, dword [ebp - 0x54]
sub esp, 4
test eax, eax
mov dword [ebp - 0x48], eax
je 0x476233
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x44], eax
lea esi, [esi]
lea eax, [ebp - 0x40]
mov dword [esp], eax
call fcn.0047c620
mov eax, dword [ebp - 0x44]
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov edx, dword [0x54f530]
mov eax, 0xffffffff
test edx, edx
je 0x4761aa
mov eax, dword [0x4d4c84]
test eax, eax
je 0x4761ea
xor eax, eax
test eax, eax
jne 0x4761e0
mov edi, dword [0x4d4c80]
test edi, edi
js 0x4761e0
mov dword [ebp - 0x44], 0x54eb60
mov ebx, dword [0x4d4c80]
test ebx, ebx
je 0x476150
jmp 0x4760fe
xor esi, esi
mov dword [0x4d4c80], esi
jmp 0x4761b8
mov dword [esp], 0x4d4c88
mov dword [ebp - 0x3c], 1
call sub.KERNEL32.DLL_InterlockedIncrement
sub esp, 4
test eax, eax
je 0x476271
mov eax, dword [0x4d4c84]
test eax, eax
jne 0x4761a8
mov dword [esp], 0
mov eax, dword [sym.imp.KERNEL32.DLL_Sleep]
mov dword [ebp - 0x3c], 1
call eax
sub esp, 4
mov eax, dword [0x4d4c84]
test eax, eax
je 0x47620d
jmp 0x4761a8
mov dword [esp], 8
call sub.msvcrt.dll_malloc
mov dword [ebp - 0x48], eax
test eax, eax
je 0x476265
mov dword [esp + 4], eax
mov eax, dword [0x54eb50]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.DLL_TlsSetValue]
sub esp, 8
xor edx, edx
test eax, eax
je 0x47629a
test edx, edx
je 0x476285
mov dword [ebp - 0x3c], 1
call fcn.00475ee0
call fcn.00475f90
mov eax, 1
mov dword [0x4d4c84], eax
jmp 0x4761a8
mov eax, dword [ebp - 0x48]
mov dword [eax], 0
mov dword [eax + 4], 0
jmp 0x476146
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov edx, eax
jmp 0x476261
Function at 0x47c430
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x14
mov ebx, dword [0x54f950]
call dword [sym.imp.KERNEL32.DLL_TlsAlloc]
cmp eax, 0xffffffff
je 0x47c470
mov dword [ebx + 0x2c], eax
xor eax, eax
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x2c]
mov dword [esp], eax
call fcn.0047ba20
test eax, eax
sete al
movzx eax, al
mov dword [ebx + 0x30], eax
add esp, 0x14
pop ebx
pop ebp
ret
call dword [sym.imp.KERNEL32.DLL_GetLastError]
test eax, eax
sete al
movzx eax, al
mov dword [ebx + 0x30], eax
add esp, 0x14
pop ebx
pop ebp
ret

Function at 0x47c820
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2c
mov eax, dword [0x54f950]
mov edi, dword [ebp + 8]
test eax, eax
je 0x47c8fc
mov ecx, dword [eax + 0x30]
test ecx, ecx
js 0x47c911
mov edx, dword [eax + 0x30]
test edx, edx
jne 0x47c8d0
mov eax, dword [eax + 0x28]
mov dword [ebp - 0x10], eax
lea ebx, [ebp - 0x14]
mov dword [ebp - 0x14], eax
jmp 0x47c868
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x14], eax
xor ecx, ecx
test eax, eax
mov edx, 5
je 0x47c878
mov ecx, dword [eax + 0x18]
xor edx, edx
cmp edx, 5
je 0x47c8c3
test edx, edx
jne 0x47c8b6
test ecx, ecx
je 0x47c860
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], edi
mov eax, dword [edi]
mov edx, dword [edi + 4]
mov dword [esp], 1
mov dword [esp + 8], eax
mov eax, 1
mov dword [esp + 0xc], edx
mov dword [esp + 4], eax
call ecx
cmp eax, 6
je 0x47c920
cmp eax, 8
je 0x47c860
mov eax, 3
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
lea esp, [ebp - 0xc]
mov eax, 5
pop ebx
pop esi
pop edi
pop ebp
ret
mov ebx, dword [eax + 0x2c]
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [esp], ebx
mov esi, eax
call dword [sym.imp.KERNEL32.DLL_TlsGetValue]
sub esp, 4
mov ebx, eax
mov dword [esp], esi
call dword [sym.imp.KERNEL32.DLL_SetLastError]
mov eax, ebx
sub esp, 4
jmp 0x47c852
call fcn.0047baf0
mov eax, dword [0x54f950]
mov ecx, dword [eax + 0x30]
test ecx, ecx
jns 0x47c844
call fcn.0047c490
mov eax, dword [0x54f950]
jmp 0x47c844
mov dword [edi + 0xc], 0
mov eax, dword [ebp - 0x14]
mov edx, ebx
mov dword [edi + 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
mov eax, edi
call fcn.0047c790
cmp eax, 7
jne 0x47c8bb
mov eax, dword [0x54f950]
mov ebx, dword [ebp - 0x14]
test eax, eax
je 0x47c973
mov edi, dword [eax + 0x30]
test edi, edi
js 0x47c99e
mov esi, dword [eax + 0x30]
test esi, esi
jne 0x47c97f
mov dword [eax + 0x28], ebx
mov eax, dword [ebp - 0x14]
lea edx, [eax + 0x20]
mov ecx, dword [edx + 4]
mov ebp, dword [eax + 0x20]
mov esp, dword [edx + 8]
jmp ecx
call fcn.0047baf0
mov eax, dword [0x54f950]
jmp 0x47c951
mov eax, dword [eax + 0x2c]
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.DLL_TlsSetValue]
sub esp, 8
test eax, eax
jne 0x47c962
call dword [sym.imp.KERNEL32.DLL_GetLastError]
jmp 0x47c962
call fcn.0047c490
mov eax, dword [0x54f950]
jmp 0x47c958
Function at 0x47cc00
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov eax, dword [0x54f950]
mov edi, dword [ebp + 8]
test eax, eax
je 0x47cc94
mov esi, dword [eax + 0x30]
test esi, esi
js 0x47ccb0
mov ebx, dword [eax + 0x30]
test ebx, ebx
jne 0x47ccd0
mov eax, dword [eax + 0x28]
mov dword [ebp - 0x10], eax
mov ecx, dword [edi + 0xc]
mov dword [ebp - 0x14], eax
test ecx, ecx
jne 0x47cc88
lea edx, [ebp - 0x14]
mov eax, edi
call fcn.0047c790
cmp eax, 7
jne 0x47cd4f
mov eax, dword [0x54f950]
mov ebx, dword [ebp - 0x14]
test eax, eax
je 0x47cd26
mov edx, dword [eax + 0x30]
test edx, edx
js 0x47cd40
mov edi, dword [eax + 0x30]
test edi, edi
jne 0x47cd00
mov dword [eax + 0x28], ebx
mov eax, dword [ebp - 0x14]
lea edx, [eax + 0x20]
mov ecx, dword [edx + 4]
mov ebp, dword [eax + 0x20]
mov esp, dword [edx + 8]
jmp ecx
lea edx, [ebp - 0x14]
mov eax, edi
call fcn.0047c9b0
jmp 0x47cc45
call fcn.0047baf0
mov eax, dword [0x54f950]
mov esi, dword [eax + 0x30]
test esi, esi
jns 0x47cc20
lea esi, [esi]
call fcn.0047c490
mov eax, dword [0x54f950]
mov ebx, dword [eax + 0x30]
test ebx, ebx
je 0x47cc2b
lea esi, [esi]
lea edi, [edi]
mov ebx, dword [eax + 0x2c]
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [esp], ebx
mov esi, eax
call dword [sym.imp.KERNEL32.DLL_TlsGetValue]
sub esp, 4
mov ebx, eax
mov dword [esp], esi
call dword [sym.imp.KERNEL32.DLL_SetLastError]
mov eax, ebx
sub esp, 4
jmp 0x47cc2e
mov eax, dword [eax + 0x2c]
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.DLL_TlsSetValue]
sub esp, 8
test eax, eax
jne 0x47cc77
call dword [sym.imp.KERNEL32.DLL_GetLastError]
jmp 0x47cc77
call fcn.0047baf0
mov eax, dword [0x54f950]
mov edx, dword [eax + 0x30]
test edx, edx
jns 0x47cc69
nop
lea esi, [esi]
call fcn.0047c490
mov eax, dword [0x54f950]
jmp 0x47cc69
call sub.msvcrt.dll_abort
lea esi, [esi]
lea edi, [edi]
Function at 0x47cd60
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 4], edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], esi
mov esi, dword [edi + 0xc]
test esi, esi
je 0x47cdf2
mov eax, dword [0x54f950]
test eax, eax
je 0x47cde6
mov ebx, dword [eax + 0x30]
test ebx, ebx
js 0x47ce61
mov ecx, dword [eax + 0x30]
test ecx, ecx
jne 0x47ce07
mov eax, dword [eax + 0x28]
mov dword [ebp - 0x10], eax
lea edx, [ebp - 0x14]
mov dword [ebp - 0x14], eax
mov eax, edi
call fcn.0047c9b0
cmp eax, 7
jne 0x47ce7f
mov eax, dword [0x54f950]
mov ebx, dword [ebp - 0x14]
test eax, eax
je 0x47ce52
mov edx, dword [eax + 0x30]
test edx, edx
js 0x47ce70
mov edi, dword [eax + 0x30]
test edi, edi
jne 0x47ce33
mov dword [eax + 0x28], ebx
mov eax, dword [ebp - 0x14]
lea edx, [eax + 0x20]
mov ecx, dword [edx + 4]
mov ebp, dword [eax + 0x20]
mov esp, dword [edx + 8]
jmp ecx
call fcn.0047baf0
mov eax, dword [0x54f950]
jmp 0x47cd82
mov dword [esp], edi
call fcn.0047c820
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov ebx, dword [eax + 0x2c]
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [esp], ebx
mov esi, eax
call dword [sym.imp.KERNEL32.DLL_TlsGetValue]
sub esp, 4
mov ebx, eax
mov dword [esp], esi
call dword [sym.imp.KERNEL32.DLL_SetLastError]
mov eax, ebx
sub esp, 4
jmp 0x47cd97
mov eax, dword [eax + 0x2c]
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.DLL_TlsSetValue]
sub esp, 8
test eax, eax
jne 0x47cdd5
call dword [sym.imp.KERNEL32.DLL_GetLastError]
jmp 0x47cdd5
call fcn.0047baf0
mov eax, dword [0x54f950]
jmp 0x47cdc0
call fcn.0047c490
mov eax, dword [0x54f950]
jmp 0x47cd8d
call fcn.0047c490
mov eax, dword [0x54f950]
jmp 0x47cdcb
call sub.msvcrt.dll_abort
lea esi, [esi]
lea edi, [edi]
Function at 0x49a7b7
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
push ebx
mov ebx, dword [ebp + 8]
push dword [ebx + 0x80]
call sub.USER32.dll_GetWindowTextLengthW
add eax, 1
push eax
push 0x4ed212
call fcn.0046fac1
add esp, 8
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
push dword [eax + 0x14]
mov eax, dword [ebp - 4]
lea eax, [eax + 0x18]
push eax
push dword [ebx + 0x80]
call sub.USER32.dll_GetWindowTextW
mov eax, dword [ebp - 4]
lea eax, [eax + 0x18]
push eax
call fcn.00470faa
add esp, 4
jmp 0x49a809
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x49a86e
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
cmp eax, 0
je 0x49a88c
push 5
push dword [ebx + 0x80]
call sub.USER32.dll_ShowWindow
jmp 0x49a8cb
mov eax, dword [ebx + 0xc]
cmp eax, 0x4d45a0
setne al
movzx eax, al
cmp eax, 0
je 0x49a8ae
call fcn.004943be
push eax
push ebx
mov eax, dword [ebx]
call dword [eax + 0x34]
add esp, 8
cmp eax, 0
je 0x49a8be
push dword [ebx + 0xc]
call fcn.0049439f
add esp, 4
push 0
push dword [ebx + 0x80]
call sub.USER32.dll_ShowWindow
mov eax, 0
jmp 0x49a8d2
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4a5f23
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, 0
push 0x10
call sub.USER32.dll_GetKeyState
and eax, 0x8000
cmp eax, 0
je 0x4a5f40
or ebx, 1
push 0x11
call sub.USER32.dll_GetKeyState
and eax, 0x8000
cmp eax, 0
je 0x4a5f54
or ebx, 2
push 0x12
call sub.USER32.dll_GetKeyState
and eax, 0x8000
cmp eax, 0
je 0x4a5f68
or ebx, 4
push 0x5b
call sub.USER32.dll_GetKeyState
and eax, 0x8000
cmp eax, 0
jne 0x4a5f85
push 0x5c
call sub.USER32.dll_GetKeyState
and eax, 0x8000
cmp eax, 0
je 0x4a5f8d
or ebx, 8
mov eax, ebx
jmp 0x4a5f91
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4b3bec
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
push ebx
push esi
push edi
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
push eax
push edx
call fcn.004b42e3
add esp, 8
mov edi, eax
mov dword [ebp - 4], 0
cmp edi, 0xffffffff
je 0x4b3c51
push ebx
call fcn.004719dc
add esp, 4
mov esi, eax
push esi
push edi
call sub.ADVAPI32.DLL_RegDeleteValueA
mov ebx, eax
push esi
call fcn.00472474
add esp, 4
mov eax, ebx
cmp eax, 0
jne 0x4b3c43
mov dword [ebp - 4], 1
jmp 0x4b3c48
mov dword [0x4f45b4], eax
push edi
call fcn.004b435e
add esp, 4
mov eax, dword [ebp - 4]
jmp 0x4b3c56
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4b403f
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
push eax
push edx
call fcn.004b42e3
add esp, 8
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], 0
cmp dword [ebp - 8], 0xffffffff
je 0x4b420e
mov dword [ebp - 4], 0x4d45a0
mov eax, dword [ebp + 0x18]
cmp eax, 1
je 0x4b4098
cmp eax, 2
je 0x4b4098
cmp eax, 3
je 0x4b4098
cmp eax, 7
je 0x4b40dc
cmp eax, 4
je 0x4b4189
jmp 0x4b41b1
mov eax, dword [ebp + 0x14]
push dword [eax + 8]
call fcn.00481917
add esp, 4
mov dword [ebp - 4], eax
mov esi, 0
mov eax, dword [ebp + 0x14]
mov ebx, dword [eax + 8]
sub ebx, 1
jmp 0x4b40d3
mov eax, dword [ebp + 0x14]
movzx eax, word [eax + esi*2 + 0xc]
mov eax, eax
push eax
push esi
push dword [ebp - 4]
call fcn.00481a64
add esp, 0xc
add esi, 1
cmp esi, ebx
jle 0x4b40b9
jmp 0x4b41b1
push dword [ebp + 0x14]
call fcn.004719dc
add esp, 4
mov edi, eax
mov ebx, 0x400
mov esi, 0
push ebx
call fcn.00481917
add esp, 4
mov dword [ebp - 4], eax
mov eax, esi
add eax, 1
cmp eax, ebx
jle 0x4b4116
add ebx, ebx
push ebx
push dword [ebp - 4]
call fcn.004819e7
add esp, 8
movzx eax, byte [edi + esi]
mov eax, eax
push eax
call fcn.00470d59
add esp, 4
push eax
call fcn.004714ab
add esp, 4
push eax
push esi
push dword [ebp - 4]
call fcn.00481a64
add esp, 0xc
add esi, 1
mov eax, dword [ebp + 0x14]
cmp esi, dword [eax + 8]
setge al
movzx eax, al
cmp eax, 0
je 0x4b4163
mov eax, esi
sub eax, 1
movzx eax, byte [edi + eax]
mov eax, eax
cmp eax, 0
sete al
movzx eax, al
cmp eax, 0
je 0x4b40ff
push 0
push esi
push dword [ebp - 4]
call fcn.00481a64
add esp, 0xc
mov eax, esi
add eax, 1
push eax
push dword [ebp - 4]
call fcn.004819e7
add esp, 8
jmp 0x4b41b1
push 4
call fcn.00481917
add esp, 4
mov dword [ebp - 4], eax
push dword [ebp + 0x14]
call fcn.00471511
add esp, 4
push eax
push 0
push dword [ebp - 4]
call fcn.00481ada
add esp, 0xc
jmp 0x4b41b1
push dword [ebp + 0x10]
call fcn.004719dc
add esp, 4
mov ebx, eax
push dword [ebp - 4]
call fcn.004819bd
add esp, 4
push eax
push dword [ebp - 4]
call fcn.00481979
add esp, 4
push eax
push dword [ebp + 0x18]
push 0
push ebx
push dword [ebp - 8]
call sub.ADVAPI32.DLL_RegSetValueExA
mov esi, eax
push ebx
call fcn.00472474
add esp, 4
cmp esi, 0
jne 0x4b41fd
mov dword [ebp - 0xc], 1
jmp 0x4b4203
mov dword [0x4f45b4], esi
push dword [ebp - 8]
call fcn.004b435e
add esp, 4
mov eax, dword [ebp - 0xc]
jmp 0x4b4213
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4b4593
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
push ebx
push esi
mov esi, 0x64
mov dword [ebp - 4], 0
add esi, 0x64
push esi
call fcn.00472450
add esp, 4
mov ebx, eax
lea eax, [ebp - 4]
push eax
push esi
push ebx
call sub.PSAPI.DLL_EnumProcesses
cmp eax, 0
jne 0x4b45d5
push ebx
call fcn.00472474
add esp, 4
mov eax, 0x4d24c0
jmp 0x4b4613
cmp esi, dword [ebp - 4]
jle 0x4b45a7
mov eax, dword [ebp - 4]
cdq
and edx, 3
add eax, edx
sar eax, 2
push eax
push 0x4f4612
call fcn.0046fac1
add esp, 8
mov esi, eax
push dword [ebp - 4]
push ebx
lea eax, [esi + 0x18]
push eax
call fcn.0047249e
add esp, 0xc
push ebx
call fcn.00472474
add esp, 4
mov eax, esi
jmp 0x4b4613
pop esi
pop ebx
mov esp, ebp
pop ebp
ret