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

Disassembly:
push ecx
cmp dword [0x77ebb8], 0
jne 0x42d8bb
push ebx
push ebp
push esi
xor ebp, ebp
inc ebp
push 0x77f7c4
mov dword [0x77ebb8], ebp
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov esi, dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov eax, 0x640
push eax
push 8
push dword [0x77c56c]
mov dword [0x77f07c], eax
mov dword [0x77ebbc], 0x1f4
call esi
mov dword [0x77f08c], eax
mov eax, dword [0x77ebbc]
add eax, eax
push eax
push 8
push dword [0x77c56c]
call esi
xor ebx, ebx
mov dword [0x77f088], eax
push 0x77f098
mov dword [0x77f080], ebx
mov dword [0x77f084], ebp
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov esi, dword [sym.imp.KERNEL32.dll_CreateEventW]
push ebx
push ebx
push ebp
push ebx
call esi
push ebx
push ebx
push ebp
push ebx
mov dword [0x77f0b0], eax
call esi
mov dword [0x77f0b4], eax
cmp dword [0x77f0b0], ebx
je 0x42d8b2
test eax, eax
je 0x42d8b2
lea eax, [esp + 0xc]
mov dword [0x77f090], ebx
push eax
push ebx
push ebx
push 0x42d26d
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x77f094], eax
jmp 0x42d8b8
mov dword [0x77f090], ebp
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x42d8bd
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x42d962
cmp dword [esp + 0xc], 0
je 0x42d962
cmp dword [0x77f090], 1
je 0x42d962
push edi
push 0x1f
push 0
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_FindFirstChangeNotificationW]
mov edi, eax
cmp edi, 0xffffffff
je 0x42d961
push ebp
mov ebp, 0x77f098
push ebp
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push dword [0x77f0b4]
mov dword [0x77f0b8], esi
mov dword [0x77f0bc], edi
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push dword [0x77f0b0]
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0x1388
push dword [0x77f0b4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x42d959
push 0
push dword [0x77f094]
mov dword [0x77f090], 1
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push ebp
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop ebp
pop edi
pop esi
ret 8
Function at 0x42dd01
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 8]
push dword [0x77f798]
call fcn.00436c7f
mov esi, eax
test esi, esi
je 0x42dddb
cmp dword [ebp + 0xc], 0
je 0x42dd4d
push 4
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindow]
test eax, eax
je 0x42dd3e
cmp dword [esi + 0x1c], 0
jne 0x42dd3e
push eax
call dword [sym.imp.USER32.dll_SetActiveWindow]
push 0
push dword [esi]
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x42dddb
test byte [ebp + 0x10], 3
je 0x42dd68
push 4
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindow]
push eax
push dword [ebp + 0x10]
push dword [esi]
call fcn.0042e604
cmp dword [esi + 0x3c], 0xffffffff
push ebx
je 0x42dd8d
xor ebx, ebx
cmp dword [esi + 0x3c], 0x1000000
sete bl
xor ecx, ecx
cmp dword [esi + 0x3c], 0x20000000
sete cl
or dword [esi + 0x3c], 0xffffffff
jmp 0x42dda1
push dword [esi]
call dword [sym.imp.USER32.dll_IsZoomed]
push dword [esi]
mov ebx, eax
call dword [sym.imp.USER32.dll_IsIconic]
mov ecx, eax
test dword [ebp + 0x10], 0x2000000
je 0x42ddbe
test ebx, ebx
je 0x42ddb2
push 8
jmp 0x42ddc4
neg ecx
sbb ecx, ecx
and ecx, 3
add ecx, 4
jmp 0x42ddd1
test ebx, ebx
je 0x42ddc7
push 3
pop ecx
jmp 0x42ddd1
xor eax, eax
test ecx, ecx
setne al
lea ecx, [eax + 1]
push ecx
push dword [esi]
call dword [sym.imp.USER32.dll_ShowWindow]
pop ebx
pop esi
pop ebp
ret 0xc

Function at 0x42e797
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 0x42e82a
push 9
call esi
test al, al
jns 0x42e82a
push 0x11
call esi
test al, al
js 0x42e82a
push 0x10
call esi
test al, al
js 0x42e82a
push 0x12
call esi
test al, al
js 0x42e82a
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 0x42e80c
push 4
lea eax, [ebp - 0x24]
push str.RICHE
push eax
call sub.MSVCRT.dll_wcsncmp
add esp, 0xc
test eax, eax
jne 0x42e82a
push 0
push 0
push 0x44e
push ebx
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, 0x800
jne 0x42e82a
xor eax, eax
jmp 0x42e8ab
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x42e852
push 0x11
call esi
test al, al
js 0x42e84a
push 0x10
call esi
test al, al
js 0x42e84a
push 0x12
call esi
test al, al
jns 0x42e852
push 1
push edi
call fcn.0042e8b3
mov esi, dword [sym.imp.USER32.dll_GetPropW]
test ebx, ebx
je 0x42e868
push str.PB_Hotkey
push ebx
call esi
test eax, eax
jne 0x42e8a8
push str.PB_WindowID
push edi
call esi
mov esi, eax
test esi, esi
je 0x42e8a8
lea eax, [ebp - 4]
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test eax, eax
je 0x42e8a8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [ebp - 4], eax
jne 0x42e8a8
lea eax, [esi - 1]
push eax
push dword [0x77f798]
call fcn.00436c7f
test eax, eax
je 0x42e8a8
mov eax, dword [eax + 8]
jmp 0x42e8aa
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4300ae
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
xor esi, esi
push esi
mov ebx, esi
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x4300ef
push 0xd
call dword [sym.imp.USER32.dll_GetClipboardData]
mov edi, eax
test edi, edi
je 0x4300e7
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov esi, eax
test esi, esi
je 0x4300e7
push esi
call sub.MSVCRT.dll_wcslen
pop ecx
mov ebx, eax
call dword [sym.imp.USER32.dll_CloseClipboard]
jmp 0x4300f2
mov edi, dword [ebp + 8]
push dword [ebp + 8]
push ebx
call fcn.004378c0
test esi, esi
je 0x43011a
lea ecx, [ebx*2 + 2]
push ecx
push esi
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
jmp 0x43011f
xor ecx, ecx
mov word [eax], cx
pop edi
pop esi
pop ebx
pop ebp
ret 4

Function at 0x430533
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 0x430590
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 0x430590
mov eax, dword [esi + 0x70]
test eax, eax
je 0x43056f
push ebx
push esi
call eax
push esi
push ebx
push dword [0x77c56c]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push ebx
push dword [0x77f81c]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [0x77f820], ebx
mov eax, edi
pop edi
pop esi
pop ebx
ret 4

Function at 0x430598
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [0x77f81c]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
mov eax, dword [ebp + 0x18]
cmp eax, dword [esi + 0xac]
je 0x4305c0
push eax
push esi
mov dword [esi + 0xac], eax
call dword [esi + 0x40]
push dword [ebp + 0x14]
mov eax, dword [esi + 0x90]
push dword [ebp + 0x10]
add eax, dword [ebp + 0xc]
push eax
mov eax, dword [esi + 0x8c]
add eax, dword [ebp + 8]
push eax
push esi
call dword [esi + 4]
pop esi
pop ebp
ret 0x14

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

Disassembly:
push ebp
push esi
push edi
xor edi, edi
push edi
push pe_nt_image_headers32
push 3
push edi
push 1
push closesocket
push dword [esp + 0x2c]
mov ebp, edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x430afd
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
push ebx
push edi
push dword [0x77c56c]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
je 0x430af5
push ebp
lea eax, [esp + 0x1c]
push eax
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x430ae6
cmp dword [esp + 0x18], ebx
jne 0x430ae6
push ebx
push edi
push dword [esp + 0x1c]
call fcn.0043071f
mov ebp, eax
push edi
push 0
push dword [0x77c56c]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop edi
pop esi
mov eax, ebp
pop ebp
ret 0xc
Function at 0x43275a
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
push str.msimg32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x77f104], eax
test eax, eax
je 0x432788
push str.AlphaBlend
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x77f100], eax
lea eax, [ebp - 0x114]
mov dword [0x77f108], 1
push eax
mov dword [ebp - 0x114], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4327ea
cmp dword [ebp - 0x104], 1
jne 0x4327bf
and dword [0x77f108], 0
jmp 0x432802
cmp dword [ebp - 0x104], 2
jne 0x4327ea
cmp dword [ebp - 0x110], 5
jb 0x4327b6
jne 0x4327ea
mov eax, dword [ebp - 0x10c]
neg eax
sbb eax, eax
and eax, dword [0x77f108]
mov dword [0x77f108], eax
jmp 0x4327ef
mov eax, dword [0x77f108]
test eax, eax
je 0x432802
call fcn.00432035
neg eax
sbb eax, eax
and dword [0x77f108], eax
mov esp, ebp
pop ebp
ret

Function at 0x433870
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0xc]
mov eax, dword [edi]
test eax, eax
je 0x4338a2
push 0
lea ecx, [esp + 0x10]
push ecx
push esi
push dword [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x43389d
cmp dword [esp + 0xc], esi
je 0x4338b9
pop edi
xor eax, eax
pop esi
ret
mov eax, dword [edi + 4]
add eax, dword [edi + 8]
push esi
push dword [esp + 0x14]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
add dword [edi + 8], esi
pop edi
mov eax, 1
pop esi
ret
Function at 0x433a25
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
sub esp, 0xc
push ebx
push esi
mov esi, dword [esp + 0x3c]
xor ebx, ebx
cmp esi, 1
je 0x433a55
cmp esi, 2
je 0x433a55
cmp esi, 4
je 0x433a55
cmp esi, 8
je 0x433a55
cmp esi, 0x18
je 0x433a55
cmp esi, 0x20
je 0x433a55
xor eax, eax
jmp 0x433c1f
mov ecx, dword [0x77f164]
push ebp
push edi
xor edi, edi
mov dword [esp + 0x10], edi
test ecx, ecx
jle 0x433c1b
mov edx, dword [esp + 0x28]
mov eax, dword [edi*4 + 0x77f8ac]
cmp dword [eax], edx
je 0x433a88
inc edi
mov dword [esp + 0x10], edi
cmp edi, ecx
jl 0x433a6f
jmp 0x433c1b
cmp dword [esp + 0x38], 0x20
jne 0x433bf2
mov eax, dword [eax + 8]
test eax, eax
je 0x433ac8
cmp esi, 0x20
je 0x433aa4
cmp esi, 0xffffffff
jne 0x433ac8
push esi
push dword [esp + 0x44]
push dword [esp + 0x44]
push dword [esp + 0x40]
push dword [esp + 0x40]
push dword [esp + 0x40]
push dword [esp + 0x3c]
push dword [esp + 0x3c]
call eax
jmp 0x433c19
mov eax, dword [esp + 0x2c]
inc eax
imul ebp, eax, 3
and ebp, 0xfffffffc
mov eax, ebp
mov dword [esp + 0x14], ebp
imul eax, dword [esp + 0x30]
push eax
push 0
push dword [0x77c56c]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [esp + 0x18], eax
test eax, eax
je 0x433c1b
mov ebx, dword [esp + 0x30]
test ebx, ebx
jle 0x433bbd
mov edx, dword [esp + 0x24]
mov ecx, eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x38], ecx
mov dword [esp + 0x30], edx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ecx
mov esi, edx
test eax, eax
jle 0x433b9d
mov ebp, ecx
mov edi, eax
mov ecx, 0xff
movzx eax, byte [esi + 2]
sub eax, ecx
movzx ecx, byte [esi + 3]
imul eax, ecx
mov ecx, 0xff
add eax, 0xfe01
cdq
idiv ecx
mov byte [ebp + 2], al
movzx eax, byte [esi + 1]
sub eax, ecx
movzx ecx, byte [esi + 3]
imul eax, ecx
mov ecx, 0xff
add eax, 0xfe01
cdq
idiv ecx
mov byte [ebp + 1], al
movzx eax, byte [esi]
lea esi, [esi + 4]
sub eax, ecx
movzx ecx, byte [esi - 1]
imul eax, ecx
mov ecx, 0xff
add eax, 0xfe01
cdq
idiv ecx
mov byte [ebp], al
lea ebp, [ebp + 3]
dec edi
jne 0x433b2e
mov ebp, dword [esp + 0x14]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x30]
add edx, dword [esp + 0x34]
add ecx, ebp
dec dword [esp + 0x24]
mov dword [esp + 0x30], edx
mov dword [esp + 0x38], ecx
jne 0x433b1b
mov esi, dword [esp + 0x44]
mov edi, dword [esp + 0x10]
mov eax, dword [edi*4 + 0x77f8ac]
push esi
push dword [esp + 0x44]
mov esi, dword [esp + 0x20]
push dword [esp + 0x44]
push ebp
push ebx
push dword [esp + 0x40]
push esi
push dword [esp + 0x3c]
call dword [eax + 4]
push esi
push 0
push dword [0x77c56c]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x433c1b
cmp dword [esp + 0x38], 0x18
jne 0x433c1b
push esi
push dword [esp + 0x44]
push dword [esp + 0x44]
push dword [esp + 0x40]
push dword [esp + 0x40]
push dword [esp + 0x40]
push dword [esp + 0x3c]
push dword [esp + 0x3c]
call dword [eax + 4]
mov ebx, eax
pop edi
mov eax, ebx
pop ebp
pop esi
pop ebx
add esp, 0xc
ret 0x28
Function at 0x436b0e
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push edi
push dword [0x77f1a8]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
test edi, edi
jne 0x436b6f
push esi
push dword [0x77f1a4]
push 8
push dword [0x77c56c]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
push edi
push dword [0x77f1a8]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov esi, dword [0x77f1a0]
jmp 0x436b5f
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x436b5d
mov eax, dword [esi + 8]
add eax, edi
push eax
call ecx
pop ecx
mov esi, dword [esi]
test esi, esi
jne 0x436b4d
push edi
push 0x436aac
call fcn.005009f1
pop esi
mov eax, dword [esp + 8]
add eax, edi
pop edi
ret 4

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

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x10]
mov ecx, esi
push edi
and ecx, 3
je 0x436b8f
push 4
pop eax
sub eax, ecx
add esi, eax
mov eax, dword [0x77f1a4]
mov ebx, dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x436bc6
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
push esi
push 8
push dword [0x77c56c]
mov dword [0x77f1a8], eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push eax
push dword [0x77f1a8]
call ebx
mov eax, dword [0x77f1a4]
mov edi, eax
add eax, esi
push eax
push dword [0x77f1a8]
mov dword [0x77f1a4], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push eax
push 8
push dword [0x77c56c]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov ebp, eax
push ebp
push dword [0x77f1a8]
call ebx
mov esi, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
test esi, esi
jne 0x436c06
test ebx, ebx
je 0x436c27
push 0x14
push 0x77f1a0
call fcn.0043748c
pop ecx
pop ecx
mov dword [eax], edi
mov dword [eax + 4], esi
mov dword [eax + 8], ebx
test esi, esi
je 0x436c27
lea ecx, [edi + ebp]
push ecx
call esi
pop ecx
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret 0xc

Function at 0x4375a0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x779b30]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 8]
sub edx, dword [ebp + 0xc]
mov dword [ebp - 4], edx
mov eax, dword [ebp + 8]
cmp dword [eax], 0
jne 0x4375e6
mov ecx, dword [ebp - 4]
add ecx, 0xa
push ecx
push 0
mov edx, dword [0x77f930]
push edx
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
jmp 0x437607
mov edx, dword [ebp - 4]
add edx, 0xa
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
push 0
mov edx, dword [0x77f930]
push edx
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov edx, dword [ebp - 4]
shr edx, 1
push edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
add ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
call fcn.00437bd0
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 0xc]
mov dword [ecx + 8], edx
mov esp, ebp
pop ebp
ret 8
Function at 0x437690
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x779b30]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 8]
add edx, 2
mov eax, dword [ebp - 4]
mov dword [eax + 8], edx
mov esp, ebp
pop ebp
ret

Function at 0x437790
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x779b30]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov eax, dword [ecx]
mov edx, dword [ebp - 4]
add eax, dword [edx + 8]
mov esp, ebp
pop ebp
ret

Function at 0x4378c0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x779b30]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 0xffffffff
jne 0x4378e4
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 8]
mov dword [ebp + 0xc], edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 8]
mov edx, dword [ebp + 8]
lea eax, [ecx + edx*2]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
sub edx, 4
cmp dword [ebp - 8], edx
jl 0x437934
mov eax, dword [ebp - 8]
add eax, 0x4000
mov ecx, dword [ebp - 4]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 4]
mov eax, dword [edx + 4]
add eax, 0xa
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
push edx
push 0
mov eax, dword [0x77f930]
push eax
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
jmp 0x43797c
mov edx, dword [ebp - 4]
cmp dword [edx + 4], 0x100000
jle 0x43797c
cmp dword [ebp - 8], 0x100000
jge 0x437950
mov dword [ebp - 8], 0x100000
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
mov dword [eax + 4], ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 4]
add eax, 0xa
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
push edx
push 0
mov eax, dword [0x77f930]
push eax
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
mov edx, dword [ebp - 4]
mov eax, dword [edx]
add eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
lea eax, [edx + ecx*2]
mov ecx, dword [ebp - 4]
mov dword [ecx + 8], eax
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret 8

Function at 0x4379a0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x779b30]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
shl ecx, 1
mov edx, dword [ebp - 4]
mov eax, dword [edx + 8]
sub eax, ecx
mov ecx, dword [ebp - 4]
mov dword [ecx + 8], eax
mov esp, ebp
pop ebp
ret 4
Function at 0x437b50
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x779b30]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
cmp edx, dword [ecx]
jb 0x437b8e
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
mov edx, dword [ebp - 4]
add ecx, dword [edx + 8]
cmp dword [ebp + 8], ecx
ja 0x437b8e
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
sub ecx, dword [eax]
add ecx, 1
mov eax, ecx
jmp 0x437b90
xor eax, eax
mov esp, ebp
pop ebp
ret 4

Function at 0x437d00
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x779b30]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
mov dword [ecx + 8], edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
mov edx, dword [ebp - 4]
add ecx, dword [edx + 8]
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret 4
Function at 0x44a280
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0x14]
cmp edi, 8
jl 0x44a339
push ebx
mov ebx, edi
shr ebx, 3
mov eax, ebx
neg eax
lea edi, [edi + eax*8]
mov eax, dword [esp + 0x10]
movzx edx, byte [esi]
movzx ecx, byte [esi + 1]
shl edx, 8
or edx, ecx
movzx ecx, byte [esi + 2]
shl edx, 8
or edx, ecx
movzx ecx, byte [esi + 3]
shl edx, 8
or edx, ecx
xor eax, edx
mov edx, eax
mov ecx, eax
shr edx, 0x10
and edx, 0xff
shr ecx, 8
and ecx, 0xff
mov edx, dword [edx*4 + 0x51a668]
xor edx, dword [ecx*4 + 0x51a268]
mov ecx, eax
shr ecx, 0x18
movzx eax, al
xor edx, dword [ecx*4 + 0x51aa68]
movzx ecx, byte [esi + 6]
xor edx, dword [ecx*4 + 0x519268]
movzx ecx, byte [esi + 5]
xor edx, dword [ecx*4 + 0x519668]
movzx ecx, byte [esi + 7]
xor edx, dword [ecx*4 + 0x518e68]
movzx ecx, byte [esi + 4]
add esi, 8
xor edx, dword [ecx*4 + 0x519a68]
xor edx, dword [eax*4 + 0x519e68]
mov eax, edx
dec ebx
jne 0x44a2a4
pop ebx
jmp 0x44a33d
mov eax, dword [esp + 0xc]
test edi, edi
je 0x44a35b
movzx ecx, byte [esi]
lea esi, [esi + 1]
mov edx, eax
shl eax, 8
shr edx, 0x18
xor edx, ecx
xor eax, dword [edx*4 + 0x518e68]
dec edi
jne 0x44a341
pop edi
pop esi
ret
Function at 0x44f9e9
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 8]
push esi
call fcn.004504ec
cmp dword [esi + 0x14], 0
pop ecx
je 0x44fa50
mov ecx, dword [esi + 0x10]
mov eax, dword [esi]
push ebx
mov ebx, dword [esi + 0x20]
push ebp
mov ebp, dword [eax + ecx*4]
cmp ebx, dword [esi + 0x14]
jae 0x44fa4e
mov eax, dword [esi + 0x18]
mov dword [esp + 0x10], eax
push 0x18
pop ecx
sub ecx, ebx
shr eax, 8
mov edx, ebp
add ebx, 8
shr edx, cl
and edx, 0xff
xor edx, eax
mov eax, dword [esp + 0x10]
movzx eax, al
shl eax, 8
movzx ecx, word [edx*2 + 0x51c1f0]
xor eax, ecx
mov dword [esi + 0x20], ebx
mov dword [esp + 0x10], eax
mov dword [esi + 0x18], eax
cmp ebx, dword [esi + 0x14]
jb 0x44fa14
pop ebp
pop ebx
mov ax, word [esi + 0x18]
pop esi
ret

Function at 0x453b42
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 0xc]
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0x14]
cmp edi, 2
jb 0x453bda
push ebp
mov ebp, edi
shr ebp, 1
mov eax, dword [esi]
sub edi, 2
mov edx, dword [esi + 4]
shr eax, 0x10
xor ecx, eax
movzx ebx, cx
mov ecx, edx
shr ecx, 0x18
mov eax, ebx
shr eax, 8
mov cx, word [ecx*2 + 0x51c7f0]
xor cx, word [eax*2 + 0x51cff0]
movzx eax, byte [esi + 5]
xor cx, word [eax*2 + 0x51c3f0]
movzx eax, byte [esi + 6]
xor cx, word [eax*2 + 0x51c5f0]
movzx eax, byte [esi + 1]
xor cx, word [eax*2 + 0x51cbf0]
movzx eax, dl
xor cx, word [eax*2 + 0x51c1f0]
movzx eax, bl
xor cx, word [eax*2 + 0x51cdf0]
mov eax, dword [esi]
add esi, 8
movzx eax, al
xor cx, word [eax*2 + 0x51c9f0]
movzx ecx, cx
dec ebp
jne 0x453b5f
pop ebp
test edi, edi
je 0x453c1c
mov ebx, dword [esi]
mov eax, ebx
shr eax, 0x10
xor ecx, eax
movzx eax, byte [esi + 1]
movzx edx, cx
mov ecx, edx
shr ecx, 8
mov cx, word [ecx*2 + 0x51c7f0]
xor cx, word [eax*2 + 0x51c3f0]
movzx eax, bl
xor cx, word [eax*2 + 0x51c1f0]
movzx eax, dl
xor cx, word [eax*2 + 0x51c5f0]
movzx ecx, cx
pop edi
pop esi
mov ax, cx
pop ebx
ret

Function at 0x453c23
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 8]
xor al, al
test edx, edx
je 0x453c45
push esi
mov esi, dword [esp + 8]
movzx ecx, byte [esi]
movzx eax, al
xor ecx, eax
inc esi
mov al, byte [ecx + 0x51d1f0]
dec edx
jne 0x453c32
pop esi
ret