joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44d2bb
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
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 0x44d335
push 9
call esi
test al, al
jns 0x44d335
push 0x11
call esi
test al, al
js 0x44d335
push 0x10
call esi
test al, al
js 0x44d335
push 0x12
call esi
test al, al
js 0x44d335
push 5
lea eax, [ebp - 0xc]
push eax
push ebx
call dword [sym.imp.USER32.DLL_GetClassNameA]
push 4
lea eax, [ebp - 0xc]
push str.Rich
push eax
call sub.MSVCRT.dll_strncmp
add esp, 0xc
test eax, eax
jne 0x44d335
push eax
push eax
push 0x44e
push ebx
call dword [sym.imp.USER32.DLL_SendMessageA]
test eax, 0x800
jne 0x44d335
xor eax, eax
jmp 0x44d3b6
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x44d35d
push 0x11
call esi
test al, al
js 0x44d355
push 0x10
call esi
test al, al
js 0x44d355
push 0x12
call esi
test al, al
jns 0x44d35d
push 1
push edi
call fcn.0044d3be
mov esi, dword [sym.imp.USER32.DLL_GetPropA]
test ebx, ebx
je 0x44d373
push 0x48a230
push ebx
call esi
test eax, eax
jne 0x44d3b3
push 0x48a1bc
push edi
call esi
mov esi, eax
test esi, esi
je 0x44d3b3
lea eax, [ebp - 4]
push eax
push edi
call dword [sym.imp.USER32.DLL_GetWindowThreadProcessId]
test eax, eax
je 0x44d3b3
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [ebp - 4], eax
jne 0x44d3b3
lea eax, [esi - 1]
push eax
push dword [0x4a1024]
call fcn.004616be
test eax, eax
je 0x44d3b3
mov eax, dword [eax + 8]
jmp 0x44d3b5
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x44e9ae
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x94
push str.msimg32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [0x4a085c], eax
test eax, eax
je 0x44e9de
push str.AlphaBlend
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4a0858], eax
lea eax, [ebp - 0x1c]
mov dword [0x4a0860], 1
push eax
mov dword [ebp - 0x1c], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x44ea2e
cmp dword [ebp - 0xc], 1
jne 0x44ea0c
and dword [0x4a0860], 0
jmp 0x44ea46
cmp dword [ebp - 0xc], 2
jne 0x44ea2e
cmp dword [ebp - 0x18], 5
jb 0x44ea03
jne 0x44ea2e
mov eax, dword [ebp - 0x14]
neg eax
sbb eax, eax
and eax, dword [0x4a0860]
mov dword [0x4a0860], eax
jmp 0x44ea33
mov eax, dword [0x4a0860]
test eax, eax
je 0x44ea46
call fcn.0044e289
neg eax
sbb eax, eax
and dword [0x4a0860], eax
lea esp, [ebp + 0x78]
pop ebp
ret

Function at 0x4500d0
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 0x450102
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 0x4500fd
cmp dword [esp + 0xc], esi
je 0x450119
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 0x458b97
Capabilities:
Encode data using xor

Disassembly:
push ecx
push ecx
mov edx, dword [esp + 0x2c]
push esi
mov esi, dword [esp + 0x10]
mov eax, dword [esi + 0xd4]
mov dword [esp + 4], eax
test edx, edx
je 0x458c4d
imul eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
imul ecx, dword [esp + 0x28]
push ebx
mov ebx, dword [esp + 0x24]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x1c]
neg eax
add ecx, dword [esp + 0x18]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x28]
push ebp
push edi
lea edi, [ecx + eax*4]
mov eax, dword [esp + 0x28]
mov ecx, dword [esi + 0xcc]
mov ebp, edi
imul ecx, ebx
add ecx, dword [esi + 0xc8]
add ecx, eax
cmp dword [esp + 0x38], 0
jle 0x458c2d
mov edx, dword [esp + 0x38]
mov esi, dword [esp + 0x10]
mov al, byte [ebp + 2]
xor byte [ecx + 2], al
mov al, byte [ebp + 1]
xor byte [ecx + 1], al
mov al, byte [ebp]
lea ebp, [ebp + 4]
xor byte [ecx], al
add ecx, esi
dec edx
jne 0x458c08
mov edx, dword [esp + 0x3c]
mov esi, dword [esp + 0x1c]
mov eax, dword [esp + 0x28]
dec edx
inc ebx
cmp dword [esi + 0xe8], 0
mov dword [esp + 0x3c], edx
jne 0x458c42
add edi, dword [esp + 0x14]
jmp 0x458c46
add edi, dword [esp + 0x24]
test edx, edx
jne 0x458be6
pop edi
pop ebp
pop ebx
pop esi
pop ecx
pop ecx
ret 0x24

Function at 0x458f58
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
push ecx
imul edx, dword [esp + 0x28], 3
push ebx
mov ebx, dword [esp + 0x30]
mov dword [esp + 8], edx
test ebx, ebx
je 0x459032
imul eax, dword [esp + 0x1c], 3
mov ecx, dword [esp + 0x18]
push ebp
mov ebp, dword [esp + 0x24]
neg ecx
push esi
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x20]
imul eax, dword [esp + 0x30]
push edi
imul edi, dword [esp + 0x30], 3
mov dword [esp + 0x10], ecx
add eax, dword [esp + 0x20]
add edi, eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x38], edi
mov esi, dword [eax + 0xcc]
imul esi, ebp
mov dword [esp + 0x34], edi
add esi, dword [eax + 0xc8]
add esi, dword [esp + 0x28]
test edx, edx
jle 0x459008
mov ebp, dword [esp + 0x34]
mov ebx, 0xff
sub ebx, dword [esp + 0x40]
mov edi, edx
movzx eax, byte [esi]
movzx ecx, byte [ebp]
imul ecx, dword [esp + 0x40]
imul eax, ebx
add eax, ecx
mov ecx, 0xff
cdq
idiv ecx
inc ebp
mov byte [esi], al
inc esi
dec edi
jne 0x458fd0
mov edi, dword [esp + 0x38]
mov ebx, dword [esp + 0x3c]
mov ebp, dword [esp + 0x2c]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
dec ebx
inc ebp
cmp dword [eax + 0xe8], 0
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x2c], ebp
jne 0x45901f
add edi, ecx
jmp 0x459023
add edi, dword [esp + 0x24]
mov dword [esp + 0x38], edi
test ebx, ebx
jne 0x458fa6
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret 0x28
Function at 0x459652
Capabilities:
Encode data using xor

Disassembly:
push ecx
push ecx
push esi
mov esi, dword [esp + 0x30]
push edi
mov edi, dword [esp + 0x14]
mov eax, dword [edi + 0xd4]
mov dword [esp + 8], eax
test esi, esi
je 0x459707
imul eax, dword [esp + 0x20]
imul edx, dword [esp + 0x28], 3
push ebx
mov ebx, dword [esp + 0x28]
push ebp
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x24]
neg eax
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x24]
imul eax, dword [esp + 0x34]
add eax, dword [esp + 0x20]
add edx, eax
mov eax, dword [esp + 0x28]
mov ecx, dword [edi + 0xcc]
mov ebp, edx
imul ecx, ebx
add ecx, dword [edi + 0xc8]
add ecx, eax
cmp dword [esp + 0x38], 0
jle 0x4596e8
mov esi, dword [esp + 0x38]
mov edi, dword [esp + 0x10]
mov al, byte [ebp + 2]
xor byte [ecx + 2], al
mov al, byte [ebp + 1]
xor byte [ecx + 1], al
mov al, byte [ebp]
lea ebp, [ebp + 3]
xor byte [ecx], al
add ecx, edi
dec esi
jne 0x4596c3
mov esi, dword [esp + 0x3c]
mov edi, dword [esp + 0x1c]
mov eax, dword [esp + 0x28]
dec esi
inc ebx
cmp dword [edi + 0xe8], 0
mov dword [esp + 0x3c], esi
jne 0x4596fd
add edx, dword [esp + 0x14]
jmp 0x459701
add edx, dword [esp + 0x24]
test esi, esi
jne 0x4596a1
pop ebp
pop ebx
pop edi
pop esi
pop ecx
pop ecx
ret 0x24
Function at 0x45b140
Capabilities:
Get file size
Read file on windows

Disassembly:
push ecx
mov eax, dword [esp + 0xc]
push ebx
xor ebx, ebx
push esi
mov esi, ebx
test eax, eax
je 0x45b2e5
cmp byte [eax], bl
je 0x45b2e5
push ebx
push pe_nt_image_headers32
push 3
push ebx
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [esp + 8], eax
cmp eax, 0xffffffff
je 0x45b2e1
push ebp
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebp, eax
test ebp, ebp
jle 0x45b2d6
push edi
push dword [esp + 0x20]
call fcn.0045b997
mov edi, eax
test edi, edi
je 0x45b2d5
cmp dword [esp + 0x20], 0xffffffff
mov ebx, dword [esp + 0x18]
jne 0x45b1b5
push 2
jmp 0x45b1b9
push dword [esp + 0x20]
push ebx
call fcn.0045be13
mov esi, eax
test esi, esi
je 0x45b2ce
cmp ebx, 0xffffffff
jne 0x45b1d0
mov ebx, esi
mov eax, dword [esi + 4]
mov dword [esi + 0x30], ebx
lea ebx, [ebp + 8]
mov dword [esi + 0x38], eax
xor eax, eax
push ebx
push eax
mov dword [esi + 0x2c], edi
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], eax
mov dword [esi + 0x14], eax
push dword [0x49d758]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [esi + 0x28], eax
test eax, eax
je 0x45b211
mov dword [eax + 4], ebx
mov eax, dword [esi + 0x28]
and dword [eax], 0
mov eax, dword [esi + 0x28]
add eax, 8
mov dword [esi + 0x44], eax
cmp dword [esp + 0x20], 0xffffffff
je 0x45b21f
mov dword [esi + 0x34], 1
push esi
push edi
call fcn.00476910
pop ecx
pop ecx
xor ebx, ebx
mov ecx, 0x4000
mov dword [esp + 0x20], ecx
test ebp, ebp
jle 0x45b2ca
lea eax, [ecx + ebx]
cmp eax, ebp
jle 0x45b24a
mov ecx, ebp
sub ecx, ebx
mov dword [esp + 0x20], ecx
push ecx
push edi
call fcn.00476380
mov dword [esp + 0x20], eax
pop ecx
pop ecx
test eax, eax
je 0x45b2bc
push 0
lea ecx, [esp + 0x20]
push ecx
push dword [esp + 0x28]
push eax
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x1c]
add ebx, eax
cmp dword [esi + 0x14], 0
jne 0x45b28e
push eax
push dword [esp + 0x1c]
call fcn.0045ba42
mov dword [esi + 0x14], eax
mov eax, dword [esp + 0x1c]
cmp ebx, ebp
jl 0x45b296
push 1
jmp 0x45b298
push 0
push eax
push edi
call fcn.00476580
add esp, 0xc
test eax, eax
je 0x45b2b0
mov ecx, dword [esp + 0x20]
cmp ebx, ebp
jl 0x45b23b
jmp 0x45b2ca
push edi
call fcn.00476570
pop ecx
mov dword [esi + 0x18], eax
jmp 0x45b2c3
mov dword [esi + 0x18], 1
push edi
push esi
call fcn.0045bafc
and dword [esi + 0x2c], 0
push edi
call fcn.004766c0
pop ecx
pop edi
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebp
mov eax, esi
jmp 0x45b2e7
xor eax, eax
pop esi
pop ebx
pop ecx
ret 0xc

Function at 0x45b40c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp + 8]
push edi
push 0
push eax
mov edi, 0x1000
mov eax, edi
sub eax, dword [esi + 4]
push eax
push dword [esi + 0x10]
push dword [esi + 0x14]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, edi
sub eax, dword [esi + 4]
cmp dword [ebp + 8], eax
jne 0x45b448
mov eax, dword [esi + 0x10]
mov dword [esi], eax
xor eax, eax
mov dword [esi + 4], edi
inc eax
jmp 0x45b44a
xor eax, eax
pop edi
pop esi
pop ebp
ret
Function at 0x45f0b9
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
and dword [eax + 0x14], 0
and dword [eax + 0x10], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret

Function at 0x45f940
Capabilities:
Generate random numbers via winapi

Disassembly:
cmp dword [0x4a0904], 0
je 0x45f969
push dword [esp + 4]
push dword [esp + 0xc]
push dword [0x4a0908]
call dword [sym.imp.ADVAPI32.DLL_CryptGenRandom]
test eax, eax
je 0x45f969
mov eax, 1
ret 8
xor eax, eax
ret 8
Function at 0x460840
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x10]
push edi
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push esi
call fcn.00460a20
mov ebp, eax
add esp, 0xc
xor ebx, ebx
lea edi, [ebp*4]
test edi, edi
jle 0x4608b9
mov ecx, dword [esp + 0x14]
lea esi, [esi + edi*4]
add esi, 8
add ecx, 8
mov edx, dword [ecx - 8]
lea ecx, [ecx + 0x10]
mov eax, dword [esi - 8]
lea esi, [esi - 0x10]
mov dword [ecx - 0x18], eax
add ebx, 4
mov eax, dword [esi + 0xc]
sub edi, 4
mov dword [esi + 8], edx
mov edx, dword [ecx - 0x14]
mov dword [ecx - 0x14], eax
mov eax, dword [esi + 0x10]
mov dword [esi + 0xc], edx
mov edx, dword [ecx - 0x10]
mov dword [ecx - 0x10], eax
mov eax, dword [esi + 0x14]
mov dword [esi + 0x10], edx
mov edx, dword [ecx - 0xc]
mov dword [ecx - 0xc], eax
mov dword [esi + 0x14], edx
cmp ebx, edi
jl 0x460875
mov esi, dword [esp + 0x14]
cmp ebp, 1
jle 0x460a19
add esi, 2
lea edi, [ebp - 1]
mov edx, dword [esi + 0xe]
lea esi, [esi + 0x10]
mov eax, edx
shr eax, 0x18
movzx ecx, byte [eax*4 + str.ccccwwww]
movzx eax, byte [esi - 1]
mov ecx, dword [ecx*4 + 0x48bdf0]
movzx eax, byte [eax*4 + str.ccccwwww]
xor ecx, dword [eax*4 + 0x48c5f0]
movzx eax, byte [esi]
movzx eax, byte [eax*4 + str.ccccwwww]
xor ecx, dword [eax*4 + 0x48c1f0]
movzx eax, dl
mov edx, dword [esi + 2]
movzx eax, byte [eax*4 + str.ccccwwww]
xor ecx, dword [eax*4 + 0x48c9f0]
mov eax, edx
shr eax, 0x18
mov dword [esi - 2], ecx
movzx ecx, byte [eax*4 + str.ccccwwww]
movzx eax, byte [esi + 3]
mov ecx, dword [ecx*4 + 0x48bdf0]
movzx eax, byte [eax*4 + str.ccccwwww]
xor ecx, dword [eax*4 + 0x48c5f0]
movzx eax, byte [esi + 4]
movzx eax, byte [eax*4 + str.ccccwwww]
xor ecx, dword [eax*4 + 0x48c1f0]
movzx eax, dl
mov edx, dword [esi + 6]
movzx eax, byte [eax*4 + str.ccccwwww]
xor ecx, dword [eax*4 + 0x48c9f0]
mov eax, edx
shr eax, 0x18
mov dword [esi + 2], ecx
movzx ecx, byte [eax*4 + str.ccccwwww]
movzx eax, byte [esi + 7]
mov ecx, dword [ecx*4 + 0x48bdf0]
movzx eax, byte [eax*4 + str.ccccwwww]
xor ecx, dword [eax*4 + 0x48c5f0]
movzx eax, byte [esi + 8]
movzx eax, byte [eax*4 + str.ccccwwww]
xor ecx, dword [eax*4 + 0x48c1f0]
movzx eax, dl
mov edx, dword [esi + 0xa]
movzx eax, byte [eax*4 + str.ccccwwww]
xor ecx, dword [eax*4 + 0x48c9f0]
mov eax, edx
shr eax, 0x18
mov dword [esi + 6], ecx
movzx ecx, byte [eax*4 + str.ccccwwww]
movzx eax, byte [esi + 0xb]
mov ecx, dword [ecx*4 + 0x48bdf0]
movzx eax, byte [eax*4 + str.ccccwwww]
xor ecx, dword [eax*4 + 0x48c5f0]
movzx eax, byte [esi + 0xc]
movzx eax, byte [eax*4 + str.ccccwwww]
xor ecx, dword [eax*4 + 0x48c1f0]
movzx eax, dl
movzx eax, byte [eax*4 + str.ccccwwww]
xor ecx, dword [eax*4 + 0x48c9f0]
mov dword [esi + 0xa], ecx
dec edi
jne 0x4608c8
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
ret
Function at 0x460f10
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 0x10]
sub esp, 0x34
cdq
and edx, 0xf
push ebx
mov ebx, dword [esp + 0x40]
push ebp
mov ebp, dword [esp + 0x4c]
push esi
push edi
lea edi, [edx + eax]
sar edi, 4
and ebp, 0x8000000f
jns 0x460f3a
dec ebp
or ebp, 0xfffffff0
inc ebp
mov dword [esp + 0x1c], ebp
je 0x460f4f
test edi, edi
jne 0x460f4e
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x34
ret
dec edi
mov eax, dword [esp + 0x58]
mov esi, dword [eax + 8]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [esp + 0x4c], esi
mov esi, dword [eax + 0xc]
mov dword [esp + 0x10], esi
mov esi, dword [esp + 0x50]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], edx
test edi, edi
je 0x460fe2
mov ebp, dword [esp + 0x48]
mov eax, ebx
sub eax, esi
mov dword [esp + 0x50], eax
push esi
push ebx
push dword [ebp + 4]
lea eax, [ebp + 0xf8]
push eax
call fcn.0045fc70
mov eax, dword [esp + 0x24]
add esp, 0x10
xor dword [esi], eax
mov eax, dword [esp + 0x18]
xor dword [esi + 4], eax
mov eax, dword [esp + 0x4c]
xor dword [esi + 8], eax
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x10]
xor dword [esi + 0xc], ecx
mov ecx, dword [ebx]
mov eax, dword [eax + esi + 8]
add esi, 0x10
mov edx, dword [ebx + 4]
mov dword [esp + 0x4c], eax
mov eax, dword [ebx + 0xc]
add ebx, 0x10
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], edx
mov dword [esp + 0x10], eax
dec edi
jne 0x460f82
mov ebp, dword [esp + 0x1c]
mov eax, dword [esp + 0x58]
test ebp, ebp
je 0x4610aa
mov edi, dword [ebx]
mov edx, dword [ebx + 4]
mov ecx, dword [ebx + 8]
mov eax, dword [ebx + 0xc]
mov ebp, dword [esp + 0x58]
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edx
mov dword [esp + 0x30], eax
mov dword [ebp], edi
mov edi, ebp
mov dword [esp + 0x2c], ecx
mov dword [edi + 4], edx
lea edx, [esp + 0x34]
push edx
mov dword [edi + 0xc], eax
lea edx, [esp + 0x28]
mov eax, dword [esp + 0x4c]
push edx
mov dword [edi + 8], ecx
push dword [eax + 4]
lea ecx, [eax + 0xf8]
push ecx
mov dword [esp + 0x30], ecx
call fcn.0045fc70
mov ebp, dword [esp + 0x2c]
add esp, 0x10
test ebp, ebp
je 0x46106a
mov eax, esi
lea edi, [ebx + 0x10]
sub eax, ebx
lea edx, [esp + 0x34]
mov dword [esp + 0x50], eax
mov ebx, eax
mov al, byte [edi]
lea edi, [edi + 1]
mov cl, byte [edx]
lea edx, [edx + 1]
xor cl, al
mov byte [edx - 1], al
mov byte [ebx + edi - 1], cl
dec ebp
jne 0x461054
push esi
lea eax, [esp + 0x38]
push eax
mov eax, dword [esp + 0x50]
push dword [eax + 4]
push dword [esp + 0x2c]
call fcn.0045fc70
mov eax, dword [esp + 0x24]
add esp, 0x10
xor dword [esi], eax
mov eax, dword [esp + 0x18]
xor dword [esi + 4], eax
mov eax, dword [esp + 0x4c]
xor dword [esi + 8], eax
mov ecx, dword [esp + 0x10]
xor dword [esi + 0xc], ecx
mov eax, dword [esp + 0x54]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret
pop edi
mov dword [eax], ecx
mov ecx, dword [esp + 0x48]
pop esi
mov dword [eax + 8], ecx
mov ecx, dword [esp + 8]
pop ebp
mov dword [eax + 4], edx
mov dword [eax + 0xc], ecx
mov eax, dword [esp + 0x48]
pop ebx
add esp, 0x34
ret
Function at 0x4610d0
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 0x10]
sub esp, 0x20
cdq
and edx, 0xf
push ebp
mov ebp, dword [esp + 0x30]
push esi
lea esi, [edx + eax]
mov eax, dword [esp + 0x38]
sar esi, 4
push edi
mov edi, dword [esp + 0x34]
and eax, 0x8000000f
jns 0x4610fc
dec eax
or eax, 0xfffffff0
inc eax
mov dword [esp + 0x34], eax
je 0x461110
test esi, esi
jne 0x46110f
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x20
ret
dec esi
push ebx
mov ebx, dword [esp + 0x44]
test esi, esi
je 0x46116e
mov ecx, dword [esp + 0x34]
lea edx, [ecx + 8]
mov eax, dword [edi]
xor eax, dword [ebx]
mov dword [esp + 0x10], eax
mov eax, dword [ebx + 4]
xor eax, dword [edi + 4]
mov dword [esp + 0x14], eax
mov eax, dword [ebx + 8]
xor eax, dword [edi + 8]
mov dword [esp + 0x18], eax
mov eax, dword [ebx + 0xc]
xor eax, dword [edi + 0xc]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x10]
push ebp
push eax
push dword [ecx + 4]
push edx
call fcn.00460250
mov ecx, dword [esp + 0x44]
mov ebx, ebp
add esp, 0x10
add edi, 0x10
add ebp, 0x10
lea edx, [ecx + 8]
dec esi
jne 0x461120
mov eax, dword [esp + 0x38]
test eax, eax
je 0x461222
mov edx, dword [edi + 8]
xor edx, dword [ebx + 8]
mov eax, dword [edi]
xor eax, dword [ebx]
mov ecx, dword [edi + 4]
xor ecx, dword [ebx + 4]
mov esi, dword [edi + 0xc]
xor esi, dword [ebx + 0xc]
mov dword [esp + 0x18], edx
lea edx, [esp + 0x20]
push edx
mov dword [esp + 0x14], eax
lea edx, [esp + 0x14]
mov eax, dword [esp + 0x38]
push edx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x24], esi
push dword [eax + 4]
lea ecx, [eax + 8]
push ecx
mov dword [esp + 0x4c], ecx
call fcn.00460250
mov ebx, dword [esp + 0x48]
add esp, 0x10
xor esi, esi
test ebx, ebx
je 0x4611e9
lea edx, [ebp + 0x10]
sub edi, ebp
lea esp, [esp]
mov cl, byte [esp + esi + 0x20]
lea edx, [edx + 1]
mov al, byte [edi + edx - 1]
xor al, cl
mov byte [edx - 1], cl
mov byte [esp + esi + 0x20], al
inc esi
cmp esi, ebx
jb 0x4611d0
lea eax, [esp + 0x20]
push eax
push eax
mov eax, dword [esp + 0x3c]
push dword [eax + 4]
push dword [esp + 0x48]
call fcn.00460250
mov eax, dword [esp + 0x30]
lea ebx, [esp + 0x30]
mov dword [ebp], eax
add esp, 0x10
mov eax, dword [esp + 0x24]
mov dword [ebp + 4], eax
mov eax, dword [esp + 0x28]
mov dword [ebp + 8], eax
mov eax, dword [esp + 0x2c]
mov dword [ebp + 0xc], eax
mov eax, dword [esp + 0x44]
mov ecx, dword [ebx]
mov dword [eax], ecx
mov ecx, dword [ebx + 4]
mov dword [eax + 4], ecx
mov ecx, dword [ebx + 8]
mov dword [eax + 8], ecx
mov ecx, dword [ebx + 0xc]
pop ebx
pop edi
pop esi
mov dword [eax + 0xc], ecx
mov eax, dword [esp + 0x34]
pop ebp
add esp, 0x20
ret
Function at 0x46154d
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push edi
push dword [0x4a0e20]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
test edi, edi
jne 0x4615ae
push esi
push dword [0x4a0e1c]
push 8
push dword [0x49d758]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
push edi
push dword [0x4a0e20]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov esi, dword [0x4a0e18]
jmp 0x46159e
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x46159c
mov eax, dword [esi + 8]
add eax, edi
push eax
call ecx
pop ecx
mov esi, dword [esi]
test esi, esi
jne 0x46158c
push edi
push 0x46150f
call fcn.00485533
pop esi
mov eax, dword [esp + 8]
add eax, edi
pop edi
ret 4

Function at 0x4615b8
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 0x4615ce
push 4
pop eax
sub eax, ecx
add esi, eax
mov eax, dword [0x4a0e1c]
mov ebx, dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x461605
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
push esi
push 8
push dword [0x49d758]
mov dword [0x4a0e20], eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push eax
push dword [0x4a0e20]
call ebx
mov eax, dword [0x4a0e1c]
mov edi, eax
add eax, esi
push eax
push dword [0x4a0e20]
mov dword [0x4a0e1c], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push eax
push 8
push dword [0x49d758]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov ebp, eax
push ebp
push dword [0x4a0e20]
call ebx
mov esi, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
test esi, esi
jne 0x461645
test ebx, ebx
je 0x461666
push 0x14
push 0x4a0e18
call fcn.00461e8d
pop ecx
pop ecx
mov dword [eax], edi
mov dword [eax + 4], esi
mov dword [eax + 8], ebx
test esi, esi
je 0x461666
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 0x462360
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x49b270]
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 0x4623a6
mov ecx, dword [ebp - 4]
add ecx, 5
push ecx
push 0
mov edx, dword [0x4a11d8]
push edx
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
jmp 0x4623c7
mov edx, dword [ebp - 4]
add edx, 5
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
push 0
mov edx, dword [0x4a11d8]
push edx
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov edx, dword [ebp - 4]
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.00462e00
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 0xc]
mov dword [ecx + 8], edx
mov esp, ebp
pop ebp
ret 8