joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4566fb
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 8]
push dword [0x87ae58]
call fcn.00460fe5
mov esi, eax
test esi, esi
je 0x4567d7
cmp dword [ebp + 0xc], 0
je 0x456747
push 4
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindow]
test eax, eax
je 0x456738
cmp dword [esi + 0x1c], 0
jne 0x456738
push eax
call dword [sym.imp.USER32.dll_SetActiveWindow]
push 0
push dword [esi]
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x4567d7
test byte [ebp + 0x10], 3
push ebx
push 4
pop ebx
je 0x456765
push ebx
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindow]
push eax
push dword [ebp + 0x10]
push dword [esi]
call fcn.00456fbc
cmp dword [esi + 0x3c], 0xffffffff
je 0x456789
xor eax, eax
cmp dword [esi + 0x3c], 0x1000000
sete al
xor ecx, ecx
cmp dword [esi + 0x3c], 0x20000000
sete cl
or dword [esi + 0x3c], 0xffffffff
jmp 0x4567a1
push dword [esi]
call dword [sym.imp.USER32.dll_IsZoomed]
push dword [esi]
mov dword [ebp + 8], eax
call dword [sym.imp.USER32.dll_IsIconic]
mov ecx, eax
mov eax, dword [ebp + 8]
test dword [ebp + 0x10], 0x2000000
je 0x4567bc
test eax, eax
je 0x4567b2
push 8
jmp 0x4567c2
push 7
test ecx, ecx
pop eax
cmovne ebx, eax
jmp 0x4567cd
test eax, eax
je 0x4567c5
push 3
pop ebx
jmp 0x4567cd
xor ebx, ebx
test ecx, ecx
setne bl
inc ebx
push ebx
push dword [esi]
call dword [sym.imp.USER32.dll_ShowWindow]
pop ebx
pop esi
pop ebp
ret 0xc
Function at 0x45713c
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x28
push ebx
push ebp
push esi
push edi
xor edi, edi
call dword [sym.imp.USER32.dll_GetFocus]
mov ebp, dword [esp + 0x3c]
mov ebx, eax
and dword [esp + 0x10], edi
push str.PB_WindowID
push ebp
call dword [sym.imp.USER32.dll_GetPropW]
mov esi, eax
push 9
pop eax
test esi, esi
je 0x4571d2
lea eax, [esp + 0x14]
push eax
push ebp
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test eax, eax
je 0x4571cf
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [esp + 0x14], eax
jne 0x4571cf
lea eax, [esi - 1]
push eax
push dword [0x87ae58]
call fcn.00460fe5
mov edi, eax
mov dword [esp + 0x10], 1
xor eax, eax
push 9
cmp dword [edi + 0x10], eax
jle 0x4571d1
mov ecx, dword [edi + 4]
add ecx, 4
pop esi
cmp word [ecx - 2], si
jne 0x4571bf
mov edx, 0xfa01
cmp word [ecx], dx
je 0x4571ca
inc eax
add ecx, 6
cmp eax, dword [edi + 0x10]
jl 0x4571af
jmp 0x4571cf
and dword [esp + 0x10], 0
push 9
pop eax
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
test ebx, ebx
je 0x457278
push eax
call esi
test al, al
jns 0x457278
push 0x11
call esi
test al, al
js 0x457278
push 0x10
call esi
test al, al
js 0x457278
push 0x12
call esi
test al, al
js 0x457278
push 0x10
lea eax, [esp + 0x1c]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetClassNameW]
cmp dword [esp + 0x10], 0
jne 0x457278
push 5
lea eax, [esp + 0x1c]
push str.RichE
push eax
call fcn.00427d90
add esp, 0xc
test eax, eax
je 0x45724c
push 4
lea eax, [esp + 0x1c]
push str.RICHE
push eax
call fcn.00427d90
add esp, 0xc
test eax, eax
jne 0x457263
push 0
push 0
push 0x44e
push ebx
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, 0x800
je 0x4572b9
lea eax, [esp + 0x18]
push str.Scintilla
push eax
call fcn.0059a464
pop ecx
pop ecx
test eax, eax
je 0x4572b9
test ebp, ebp
je 0x45729c
push 0x11
call esi
test al, al
js 0x457294
push 0x10
call esi
test al, al
js 0x457294
push 0x12
call esi
test al, al
jns 0x45729c
push 1
push ebp
call fcn.004572c5
test ebx, ebx
je 0x4572b0
push str.PB_Hotkey
push ebx
call dword [sym.imp.USER32.dll_GetPropW]
test eax, eax
jne 0x4572b9
test edi, edi
je 0x4572b9
mov eax, dword [edi + 8]
jmp 0x4572bb
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 4

Function at 0x45a73a
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 0x45a77b
push 0xd
call dword [sym.imp.USER32.dll_GetClipboardData]
mov edi, eax
test edi, edi
je 0x45a773
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov esi, eax
test esi, esi
je 0x45a773
push esi
call fcn.0042668c
pop ecx
mov ebx, eax
call dword [sym.imp.USER32.dll_CloseClipboard]
jmp 0x45a77e
mov edi, dword [ebp + 8]
push dword [ebp + 8]
push ebx
call fcn.00461b40
test esi, esi
je 0x45a7a6
lea ecx, [ebx*2 + 2]
push ecx
push esi
push eax
call fcn.00434c20
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
jmp 0x45a7ab
xor ecx, ecx
mov word [eax], cx
pop edi
pop esi
pop ebx
pop ebp
ret 4
Function at 0x45abf1
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 0x45ac4e
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 0x45ac4e
mov eax, dword [esi + 0x70]
test eax, eax
je 0x45ac2d
push ebx
push esi
call eax
push esi
push ebx
push dword [0x876470]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push ebx
push dword [0x87af0c]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [0x87af10], ebx
mov eax, edi
pop edi
pop esi
pop ebx
ret 4

Function at 0x45ac56
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [0x87af0c]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
mov eax, dword [ebp + 0x18]
cmp eax, dword [esi + 0xac]
je 0x45ac7e
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 0x45b131
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 0x45b1b5
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
push ebx
push edi
push dword [0x876470]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
je 0x45b1ad
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 0x45b19e
cmp dword [esp + 0x18], ebx
jne 0x45b19e
push ebx
push edi
push dword [esp + 0x1c]
call fcn.0045add8
mov ebp, eax
push edi
push 0
push dword [0x876470]
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 0x45b7b0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x50
push ebx
mov ebx, dword [esp + 0x5c]
push ebp
xor ebp, ebp
push esi
test ebx, ebx
je 0x45b7c4
mov esi, ebx
jmp 0x45b7d6
push 0
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov esi, eax
test esi, esi
je 0x45b8c4
lea eax, [esp + 0x18]
push eax
push 0x18
pop eax
push eax
push dword [esp + 0x68]
call dword [sym.imp.GDI32.dll_GetObjectW]
test eax, eax
je 0x45b8b9
mov ebp, dword [esp + 0x1c]
lea eax, [esp + 0x30]
push edi
mov edi, dword [esp + 0x24]
push 0x2c
push 0
push eax
mov dword [esp + 0x20], ebp
call fcn.004314a0
add esp, 0xc
mov dword [esp + 0x34], 0x28
xor eax, eax
mov dword [esp + 0x38], ebp
inc eax
mov dword [esp + 0x3c], edi
mov word [esp + 0x40], ax
xor ecx, ecx
push 0x18
pop eax
push ecx
push ecx
mov word [esp + 0x4a], ax
lea eax, [esp + 0x18]
push eax
push ecx
lea eax, [esp + 0x44]
mov dword [esp + 0x54], ecx
push eax
push esi
call dword [sym.imp.GDI32.dll_CreateDIBSection]
mov ebp, eax
mov dword [esp + 0x18], ebp
test ebp, ebp
je 0x45b8b8
push 0
lea eax, [esp + 0x38]
push eax
push dword [esp + 0x18]
push edi
push 0
push dword [esp + 0x78]
push esi
call dword [sym.imp.GDI32.dll_GetDIBits]
imul edi, dword [esp + 0x14]
test edi, edi
jle 0x45b8b8
mov ebp, dword [esp + 0x10]
push 3
pop ebx
movzx ecx, byte [ebp + 1]
xor edx, edx
movzx eax, byte [ebp + 2]
add eax, ecx
movzx ecx, byte [ebp]
add eax, ecx
div ebx
mov byte [ebp], al
mov ecx, dword [esp + 0x10]
mov byte [ecx + 1], al
mov ecx, dword [esp + 0x10]
mov byte [ecx + 2], al
mov ebp, dword [esp + 0x10]
add ebp, ebx
mov dword [esp + 0x10], ebp
sub edi, 1
jne 0x45b87c
mov ebx, dword [esp + 0x68]
mov ebp, dword [esp + 0x18]
pop edi
test ebx, ebx
jne 0x45b8c4
push esi
call dword [sym.imp.GDI32.dll_DeleteDC]
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x50
ret 8
Function at 0x45c328
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x50
push ebp
xor ebp, ebp
cmp dword [0x87a868], ebp
je 0x45c50e
push ebx
mov ebx, dword [esp + 0x60]
push edi
test ebx, ebx
je 0x45c348
mov edi, ebx
jmp 0x45c35a
push 0
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov edi, eax
test edi, edi
je 0x45c50c
lea eax, [esp + 0x18]
push eax
push 0x18
push dword [esp + 0x68]
call dword [sym.imp.GDI32.dll_GetObjectW]
test eax, eax
je 0x45c501
mov ebp, dword [esp + 0x1c]
lea eax, [esp + 0x30]
push esi
mov esi, dword [esp + 0x24]
push 0x2c
push 0
push eax
mov dword [esp + 0x20], ebp
call fcn.004314a0
add esp, 0xc
mov dword [esp + 0x34], 0x28
xor eax, eax
mov dword [esp + 0x38], ebp
inc eax
mov dword [esp + 0x3c], esi
mov word [esp + 0x40], ax
xor ecx, ecx
push 0x20
pop eax
push ecx
push ecx
mov word [esp + 0x4a], ax
lea eax, [esp + 0x18]
push eax
push ecx
lea eax, [esp + 0x44]
mov dword [esp + 0x54], ecx
push eax
push edi
call dword [sym.imp.GDI32.dll_CreateDIBSection]
mov ebp, eax
mov dword [esp + 0x18], ebp
test ebp, ebp
je 0x45c500
push 0
lea eax, [esp + 0x38]
push eax
push dword [esp + 0x18]
push esi
push 0
push dword [esp + 0x78]
push edi
call dword [sym.imp.GDI32.dll_GetDIBits]
imul esi, dword [esp + 0x14]
test esi, esi
jle 0x45c500
cmp dword [esp + 0x6c], 0
je 0x45c4ad
mov ebp, dword [esp + 0x10]
push 0xa
pop ebx
movzx ecx, byte [ebp + 1]
xor edx, edx
movzx eax, byte [ebp + 2]
lea eax, [eax + ecx*2]
movzx ecx, byte [ebp]
imul eax, eax, 3
add eax, ecx
div ebx
mov cl, al
cmp cl, 0x40
jae 0x45c441
movzx eax, cl
sub eax, 0x40
imul eax, eax, 7
cdq
idiv ebx
lea ecx, [eax + 0x40]
jmp 0x45c457
cmp cl, 0xc0
jbe 0x45c457
movzx eax, cl
sub eax, 0xc0
imul eax, eax, 7
cdq
idiv ebx
lea ecx, [eax - 0x40]
movzx eax, byte [ebp + 3]
movd xmm1, eax
cvtdq2ps xmm1, xmm1
movzx eax, cl
movd xmm0, eax
divss xmm1, dword [0x5c0530]
cvtdq2ps xmm0, xmm0
mulss xmm1, xmm0
cvttss2si ecx, xmm1
mov byte [ebp], cl
mov eax, dword [esp + 0x10]
mov byte [eax + 1], cl
mov ecx, dword [esp + 0x10]
mov al, byte [ecx]
mov byte [ecx + 2], al
mov ebp, dword [esp + 0x10]
add ebp, 4
mov dword [esp + 0x10], ebp
sub esi, 1
jne 0x45c411
mov ebx, dword [esp + 0x68]
mov ebp, dword [esp + 0x18]
jmp 0x45c500
mov edx, dword [esp + 0x10]
mov al, byte [edx + 3]
cmp al, 0xff
jae 0x45c4f4
movzx ecx, al
movzx eax, byte [edx]
imul ecx, eax
shr ecx, 8
mov byte [edx], cl
mov edx, dword [esp + 0x10]
movzx eax, byte [edx + 1]
movzx ecx, byte [edx + 3]
imul ecx, eax
shr ecx, 8
mov byte [edx + 1], cl
mov edx, dword [esp + 0x10]
movzx ecx, byte [edx + 3]
movzx eax, byte [edx + 2]
imul ecx, eax
shr ecx, 8
mov byte [edx + 2], cl
mov edx, dword [esp + 0x10]
add edx, 4
mov dword [esp + 0x10], edx
sub esi, 1
jne 0x45c4b1
pop esi
test ebx, ebx
jne 0x45c50c
push edi
call dword [sym.imp.GDI32.dll_DeleteDC]
pop edi
pop ebx
mov eax, ebp
pop ebp
add esp, 0x50
ret 0xc
Function at 0x45d6b0
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 0x45d6e8
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 0x45d6e3
xor eax, eax
cmp dword [esp + 0xc], esi
pop edi
sete al
pop esi
ret
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 fcn.00434c20
add dword [edi + 8], esi
add esp, 0xc
mov eax, 1
pop edi
pop esi
ret
Function at 0x45d86b
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 0x45d89b
cmp esi, 2
je 0x45d89b
cmp esi, 4
je 0x45d89b
cmp esi, 8
je 0x45d89b
cmp esi, 0x18
je 0x45d89b
cmp esi, 0x20
je 0x45d89b
xor eax, eax
jmp 0x45da68
mov ecx, dword [0x87a88c]
push ebp
push edi
xor edi, edi
mov dword [esp + 0x10], edi
test ecx, ecx
jle 0x45da64
mov edx, dword [esp + 0x28]
mov eax, dword [edi*4 + 0x87af9c]
cmp dword [eax], edx
je 0x45d8ce
inc edi
mov dword [esp + 0x10], edi
cmp edi, ecx
jl 0x45d8b5
jmp 0x45da64
cmp dword [esp + 0x38], 0x20
jne 0x45da3b
mov eax, dword [eax + 8]
test eax, eax
je 0x45d90e
cmp esi, 0x20
je 0x45d8ea
cmp esi, 0xffffffff
jne 0x45d90e
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 0x45da62
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 [0x876470]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [esp + 0x18], eax
test eax, eax
je 0x45da64
mov ebx, dword [esp + 0x30]
test ebx, ebx
jle 0x45da06
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 0x45d9e5
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]
sub edi, 1
jne 0x45d974
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
sub dword [esp + 0x24], 1
mov dword [esp + 0x30], edx
mov dword [esp + 0x38], ecx
jne 0x45d961
mov esi, dword [esp + 0x44]
mov edi, dword [esp + 0x10]
mov eax, dword [edi*4 + 0x87af9c]
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 [0x876470]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x45da64
cmp dword [esp + 0x38], 0x18
jne 0x45da64
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 0x460e45
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push edi
push dword [0x87a89c]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
test edi, edi
jne 0x460ea6
push esi
push dword [0x87a898]
push 8
push dword [0x876470]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
push edi
push dword [0x87a89c]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov esi, dword [0x87a894]
jmp 0x460e96
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x460e94
mov eax, dword [esi + 8]
add eax, edi
push eax
call ecx
pop ecx
mov esi, dword [esi]
test esi, esi
jne 0x460e84
push edi
push 0x460de3
call fcn.005777eb
pop esi
mov eax, dword [esp + 8]
add eax, edi
pop edi
ret 4

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

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x14]
mov ecx, edi
and ecx, 3
je 0x460ec6
push 4
pop eax
sub eax, ecx
add edi, eax
mov esi, dword [0x87a898]
mov ebx, dword [sym.imp.KERNEL32.dll_TlsSetValue]
test esi, esi
jne 0x460eff
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
push edi
push 8
push dword [0x876470]
mov dword [0x87a89c], eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push eax
push dword [0x87a89c]
call ebx
mov esi, dword [0x87a898]
lea eax, [edi + esi]
push eax
push dword [0x87a89c]
mov dword [0x87a898], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push eax
push 8
push dword [0x876470]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov ebp, eax
push ebp
push dword [0x87a89c]
call ebx
mov edi, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
test edi, edi
jne 0x460f3e
test ebx, ebx
je 0x460f5f
push 0x14
push 0x87a894
call fcn.004617b6
pop ecx
pop ecx
mov dword [eax], esi
mov dword [eax + 4], edi
mov dword [eax + 8], ebx
test edi, edi
je 0x460f5f
lea ecx, [esi + ebp]
push ecx
call edi
pop ecx
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret 0xc

Function at 0x4618c0
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push ebp
push esi
push edi
push dword [0x872d98]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, dword [esp + 0x18]
mov edi, eax
mov ebp, dword [esp + 0x14]
mov esi, dword [edi + 8]
mov ecx, dword [ebp]
sub esi, ebx
lea eax, [esi + 0xa]
push eax
test ecx, ecx
jne 0x4618f9
push ecx
push dword [0x87b02c]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
jmp 0x461908
push ecx
push 0
push dword [0x87b02c]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov ecx, eax
shr esi, 1
mov dword [ebp], ecx
mov eax, dword [edi]
push esi
add eax, ebx
push eax
push ecx
call fcn.00461c60
mov dword [edi + 8], ebx
pop edi
pop esi
pop ebp
pop ebx
ret 8

Function at 0x461980
Capabilities:
Get thread local storage value

Disassembly:
push dword [0x872d98]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
add dword [eax + 8], 2
ret
Function at 0x461b40
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push ebp
push esi
push edi
push dword [0x872d98]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, dword [esp + 0x18]
mov esi, eax
cmp ebx, 0xffffffff
jne 0x461b5e
mov ebx, dword [esi + 8]
mov eax, dword [esp + 0x14]
mov edx, dword [esi + 4]
mov ecx, dword [esi + 8]
lea ebp, [eax + eax]
add ecx, ebp
lea eax, [edx - 4]
cmp ecx, eax
jl 0x461b82
lea eax, [ecx + 0x4000]
mov dword [esi + 4], eax
add eax, 0xa
jmp 0x461b9d
cmp edx, 0x100000
jle 0x461bb0
cmp ecx, 0x100000
jge 0x461b97
mov ecx, 0x100000
mov dword [esi + 4], ecx
lea eax, [ecx + 0xa]
push eax
push dword [esi]
push 0
push dword [0x87b02c]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov dword [esi], eax
lea eax, [ebx + ebp]
mov dword [esi + 8], eax
mov eax, dword [esi]
pop edi
pop esi
pop ebp
add eax, ebx
pop ebx
ret 8

Function at 0x461bf0
Capabilities:
Get thread local storage value

Disassembly:
push dword [0x872d98]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [esp + 4]
neg ecx
add ecx, ecx
add dword [eax + 8], ecx
ret 4

Function at 0x461c10
Capabilities:
Get thread local storage value

Disassembly:
push dword [0x872d98]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, eax
mov eax, dword [esp + 4]
mov edx, dword [ecx]
cmp eax, edx
jb 0x461c37
mov ecx, dword [ecx + 8]
add ecx, edx
cmp eax, ecx
ja 0x461c37
sub eax, edx
inc eax
ret 4
xor eax, eax
ret 4

Function at 0x461c40
Capabilities:
Get thread local storage value

Disassembly:
push dword [0x872d98]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [eax]
mov eax, dword [esp + 4]
dec eax
add eax, ecx
ret 4

Function at 0x461d20
Capabilities:
Get thread local storage value

Disassembly:
push dword [0x872d98]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [esp + 4]
mov dword [eax + 8], ecx
mov eax, dword [eax]
add eax, ecx
ret 4
Function at 0x474bf0
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0x14]
cmp edi, 8
jl GetLastError
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 ecx, eax
shr ecx, 0x10
movzx edx, cl
mov ecx, eax
shr ecx, 8
movzx ecx, cl
mov edx, dword [edx*4 + 0x5d0100]
xor edx, dword [ecx*4 + 0x5cfd00]
mov ecx, eax
shr ecx, 0x18
movzx eax, al
xor edx, dword [ecx*4 + 0x5d0500]
movzx ecx, byte [esi + 6]
xor edx, dword [ecx*4 + 0x5ced00]
movzx ecx, byte [esi + 5]
xor edx, dword [ecx*4 + 0x5cf100]
movzx ecx, byte [esi + 7]
xor edx, dword [ecx*4 + 0x5ce900]
movzx ecx, byte [esi + 4]
add esi, 8
xor edx, dword [ecx*4 + 0x5cf500]
xor edx, dword [eax*4 + 0x5cf900]
mov eax, edx
sub ebx, 1
jne 0x474c14
pop ebx
jmp 0x474ca9
mov eax, dword [esp + 0xc]
test edi, edi
je 0x474ccc
nop dword [eax]
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 + 0x5ce900]
sub edi, 1
jne 0x474cb0
pop edi
pop esi
ret

Function at 0x47ab03
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 8]
push esi
call fcn.0047b61f
mov edx, dword [esi + 0x14]
pop ecx
test edx, edx
je 0x47ab5e
mov ecx, dword [esi + 0x10]
mov eax, dword [esi]
push ebp
push edi
mov edi, dword [esi + 0x20]
mov ebp, dword [eax + ecx*4]
cmp edi, edx
jae 0x47ab5c
push ebx
mov ebx, dword [esi + 0x18]
push 0x18
pop ecx
sub ecx, edi
mov eax, ebp
shr eax, cl
add edi, 8
movzx ecx, al
mov eax, ebx
shr eax, 8
xor ecx, eax
movzx ebx, bl
shl ebx, 8
movzx ecx, word [ecx*2 + 0x5d1c90]
xor ebx, ecx
mov dword [esi + 0x20], edi
mov dword [esi + 0x18], ebx
cmp edi, edx
jb 0x47ab2b
pop ebx
pop edi
pop ebp
mov ax, word [esi + 0x18]
pop esi
ret

Function at 0x47b61f
Capabilities:
Encode data using xor

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
push edi
mov ecx, dword [esi + 0x1c]
mov edx, ecx
mov edi, dword [esi + 0x10]
cmp edi, ecx
jbe 0x47b69b
push ebx
mov ebx, dword [esi + 0x20]
test ebx, ebx
je 0x47b69a
mov eax, dword [esi]
lea edx, [ecx + 1]
mov dword [esp + 0xc], edx
push ebp
mov ebp, dword [eax + ecx*4]
mov eax, dword [esi + 0x18]
mov dword [esi + 0x1c], edx
mov dword [esp + 0x18], eax
cmp ebx, 0x20
jae 0x47b692
mov edx, eax
push 0x18
pop ecx
sub ecx, ebx
mov eax, ebp
shr eax, cl
add ebx, 8
movzx ecx, al
mov eax, edx
shr eax, 8
xor ecx, eax
movzx edx, dl
shl edx, 8
movzx ecx, word [ecx*2 + 0x5d1c90]
xor edx, ecx
mov dword [esi + 0x20], ebx
cmp ebx, 0x20
jb 0x47b658
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
and dword [esi + 0x20], 0
mov dword [esi + 0x18], eax
pop ebp
pop ebx
movzx eax, word [esi + 0x18]
sub edi, edx
push eax
mov eax, dword [esi]
push edi
lea eax, [eax + edx*4]
push eax
call fcn.0047f013
add esp, 0xc
movzx eax, ax
and dword [esi + 0x1c], 0
mov dword [esi + 0x18], eax
pop edi
pop esi
pop ecx
ret