joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4cbc3f
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push ebp
push esi
push edi
push dword [0x152483c]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, dword [esp + 0x14]
mov edi, eax
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x18]
mov edx, dword [edi + 0x8c]
add esi, edx
mov ecx, dword [edi + 0x90]
add ebx, edx
mov edx, dword [esp + 0x20]
add ebp, ecx
mov eax, dword [edi + 0x74]
add edx, ecx
mov dword [esp + 0x20], edx
cmp eax, 2
je 0x4cbc94
cmp eax, 3
je 0x4cbc94
cmp eax, 8
je 0x4cbc94
cmp eax, 0xc
jne 0x4cbe0d
mov dword [edi + 0x124], edx
mov eax, ebx
sub edx, ebp
mov dword [edi + 0x118], esi
sub eax, esi
mov dword [edi + 0x11c], ebp
mov ecx, edx
mov dword [esp + 0x14], eax
imul ecx, edx
imul eax, eax
mov dword [edi + 0x120], ebx
mov dword [esp + 0x18], edx
add ecx, eax
push ecx
push ecx
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
cvtps2pd xmm0, xmm0
movsd qword [esp], xmm0
call fcn.0057a5a0
pop ecx
pop ecx
mov ecx, dword [esp + 0x20]
fstp dword [edi + 0x128]
cmp ebp, ecx
jne 0x4cbcfb
cmp esi, ebx
mov eax, 0x4cbb3f
mov ecx, 0x4cbb7f
cmovg eax, ecx
jmp 0x4cbd0e
cmp esi, ebx
jne 0x4cbd19
cmp ebp, ecx
mov eax, 0x4cbbbf
mov edx, 0x4cbbff
cmovg eax, edx
mov dword [edi + 0xb4], eax
jmp 0x4cbe0d
push dword [esp + 0x14]
call fcn.0057a5ae
push dword [esp + 0x1c]
mov esi, eax
call fcn.0057a5ae
xor ebp, ebp
pop ecx
inc ebp
pop ecx
cmp esi, eax
jl 0x4cbd4b
and dword [edi + 0x130], 0
mov ecx, dword [edi + 0x124]
mov esi, dword [edi + 0x11c]
jmp 0x4cbd81
mov eax, dword [edi + 0x11c]
mov esi, dword [edi + 0x118]
mov ecx, dword [edi + 0x120]
mov dword [edi + 0x118], eax
mov eax, dword [edi + 0x124]
mov dword [edi + 0x130], ebp
mov dword [edi + 0x11c], esi
mov dword [edi + 0x124], ecx
mov dword [edi + 0x120], eax
mov ebx, dword [edi + 0x118]
mov edx, dword [edi + 0x120]
cmp ebx, edx
jge 0x4cbd9a
and dword [edi + 0x12c], 0
jmp 0x4cbdca
mov esi, dword [edi + 0x124]
mov eax, ebx
mov ecx, dword [edi + 0x11c]
mov ebx, edx
mov dword [edi + 0x118], edx
mov edx, eax
mov dword [edi + 0x12c], ebp
mov dword [edi + 0x120], eax
mov dword [edi + 0x124], ecx
mov dword [edi + 0x11c], esi
sub ecx, esi
mov dword [edi + 0xb4], 0x4cba37
sub edx, ebx
movd xmm1, ecx
cvtdq2ps xmm1, xmm1
movd xmm0, edx
cvtdq2ps xmm0, xmm0
divss xmm1, xmm0
cvtps2pd xmm0, xmm1
movss dword [edi + 0x134], xmm1
movsd xmm1, qword [0x5c7788]
divsd xmm1, xmm0
cvtpd2ps xmm0, xmm1
movss dword [edi + 0x138], xmm0
pop edi
pop esi
pop ebp
pop ebx
ret 0x10
Function at 0x4cbe14
Capabilities:
Get thread local storage value

Disassembly:
push ebx
mov ebx, dword [esp + 0x14]
push ebp
push esi
push edi
push dword [0x152483c]
mov edi, dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [esp + 0x18]
mov ebp, eax
mov edx, ebx
add ecx, dword [ebp + 0x90]
mov esi, dword [ebp + 0x8c]
add esi, dword [esp + 0x14]
test edi, edi
lea eax, [esi + edi]
cmovns eax, esi
mov esi, edi
neg esi
mov dword [esp + 0x18], eax
test edi, edi
lea eax, [ecx + ebx]
cmovns esi, edi
mov edi, dword [esp + 0x24]
test ebx, ebx
mov dword [esp + 0x1c], esi
cmovns eax, ecx
neg edx
test ebx, ebx
mov dword [esp + 0x14], eax
lea eax, [edi + edi]
cmovns edx, ebx
mov dword [esp + 0x20], edx
cmp eax, esi
jle 0x4cbe8c
mov eax, esi
cdq
sub eax, edx
mov edx, dword [esp + 0x20]
mov edi, eax
sar edi, 1
mov esi, dword [esp + 0x28]
lea ecx, [esi + esi]
cmp ecx, edx
jle 0x4cbea0
mov eax, edx
cdq
sub eax, edx
mov esi, eax
sar esi, 1
mov eax, dword [ebp + 0xa4]
cmp eax, dword [ebp + 0xac]
je 0x4cbeb9
push eax
push ebp
mov dword [ebp + 0xac], eax
call dword [ebp + 0x40]
push esi
push edi
push dword [esp + 0x28]
push dword [esp + 0x28]
push dword [esp + 0x24]
push dword [esp + 0x2c]
push ebp
call dword [ebp + 8]
pop edi
pop esi
pop ebp
pop ebx
ret 0x18

Function at 0x4cbed6
Capabilities:
Get thread local storage value

Disassembly:
push esi
push dword [0x152483c]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
mov eax, dword [esi + 0xa4]
cmp eax, dword [esi + 0xac]
je 0x4cbefe
push eax
push esi
mov dword [esi + 0xac], eax
call dword [esi + 0x40]
push dword [esp + 0x14]
mov eax, dword [esi + 0x90]
push dword [esp + 0x14]
add eax, dword [esp + 0x14]
push eax
mov eax, dword [esi + 0x8c]
add eax, dword [esp + 0x14]
push eax
push esi
call dword [esi + 4]
pop esi
ret 0x10

Function at 0x4cbf24
Capabilities:
Get thread local storage value

Disassembly:
push dword [0x152483c]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edx, eax
mov ecx, dword [edx + 0x74]
cmp ecx, 2
je 0x4cbf49
cmp ecx, 3
je 0x4cbf49
cmp ecx, 8
je 0x4cbf49
cmp ecx, 0xc
jne 0x4cbf57
mov eax, dword [esp + 4]
test eax, eax
je 0x4cbf57
mov dword [edx + 0xb8], eax
ret 4

Function at 0x4cbf5a
Capabilities:
Get thread local storage value

Disassembly:
push dword [0x152483c]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [eax + 0x90]
add ecx, dword [esp + 0xc]
push ecx
mov ecx, dword [eax + 0x8c]
add ecx, dword [esp + 0xc]
push ecx
push dword [esp + 0xc]
push eax
call dword [eax + 0x24]
ret 0xc
Function at 0x4cbfb5
Capabilities:
Get thread local storage value

Disassembly:
push ebx
mov ebx, dword [esp + 0x14]
push ebp
push esi
push edi
push dword [0x152483c]
mov edi, dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [esp + 0x18]
mov ebp, eax
mov edx, ebx
add ecx, dword [ebp + 0x90]
mov esi, dword [ebp + 0x8c]
add esi, dword [esp + 0x14]
test edi, edi
lea eax, [esi + edi]
cmovns eax, esi
mov esi, edi
neg esi
mov dword [esp + 0x18], eax
test edi, edi
lea eax, [ecx + ebx]
cmovns esi, edi
mov edi, dword [esp + 0x24]
test ebx, ebx
mov dword [esp + 0x1c], esi
cmovns eax, ecx
neg edx
test ebx, ebx
mov dword [esp + 0x14], eax
lea eax, [edi + edi]
cmovns edx, ebx
mov dword [esp + 0x20], edx
cmp eax, esi
jle 0x4cc02d
mov eax, esi
cdq
sub eax, edx
mov edx, dword [esp + 0x20]
mov edi, eax
sar edi, 1
mov esi, dword [esp + 0x28]
lea ecx, [esi + esi]
cmp ecx, edx
jle 0x4cc041
mov eax, edx
cdq
sub eax, edx
mov esi, eax
sar esi, 1
mov eax, dword [esp + 0x2c]
cmp eax, dword [ebp + 0xac]
je 0x4cc058
push eax
push ebp
mov dword [ebp + 0xac], eax
call dword [ebp + 0x40]
push esi
push edi
push dword [esp + 0x28]
push dword [esp + 0x28]
push dword [esp + 0x24]
push dword [esp + 0x2c]
push ebp
call dword [ebp + 8]
pop edi
pop esi
pop ebp
pop ebx
ret 0x1c

Function at 0x4cd190
Capabilities:
Set thread local storage value

Disassembly:
push esi
push 0x10c
push 8
push dword [0x14a90f0]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
push esi
push dword [0x152483c]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [0x1524840], esi
mov eax, esi
and dword [esi + 0xa8], 0
or dword [esi + 0xac], 0xffffffff
or dword [esi + 0xb0], 0xffffffff
mov dword [esi + 0xa4], 0xffffff
mov dword [esi + 0x74], 1
mov dword [esi + 0x78], 7
mov dword [esi], 0x4cc222
mov dword [esi + 4], 0x4cc242
mov dword [esi + 8], 0x4ccf7e
mov dword [esi + 0xc], 0x4cc2da
mov dword [esi + 0x10], 0x4cc806
mov dword [esi + 0x14], 0x4cc798
mov dword [esi + 0x18], 0x4cc7d6
mov dword [esi + 0x1c], 0x4cc7ee
mov dword [esi + 0x20], fcn.004cc862
mov dword [esi + 0x24], 0x4cc64f
mov dword [esi + 0x28], fcn.004cc4a6
mov dword [esi + 0x2c], 0x4cc3bd
mov dword [esi + 0x30], 0x4cc720
mov dword [esi + 0x34], 0x4cc66b
mov dword [esi + 0x38], 0x4cc8db
mov dword [esi + 0x3c], 0x4cc9ec
mov dword [esi + 0x40], 0x4cca8c
mov dword [esi + 0x44], 0x4ccb23
mov dword [esi + 0x48], 0x4ccc1d
mov dword [esi + 0x4c], 0x4cce00
mov dword [esi + 0x50], 0x4ccc6e
mov dword [esi + 0x54], 0x4ccec2
mov dword [esi + 0x58], 0x4ccfbd
mov dword [esi + 0x5c], 0x4cd078
mov dword [esi + 0x60], 0x4cd0f0
mov dword [esi + 0x64], 0x4cd13a
pop esi
ret
Function at 0x4cdd9c
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 0x4cddb0
mov esi, ebx
jmp 0x4cddc2
push 0
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov esi, eax
test esi, esi
je 0x4cdeb0
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 0x4cdea5
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.0046bb30
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 0x4cdea4
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 0x4cdea4
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 0x4cde68
mov ebx, dword [esp + 0x68]
mov ebp, dword [esp + 0x18]
pop edi
test ebx, ebx
jne 0x4cdeb0
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 0x4cea2f
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x50
push ebp
xor ebp, ebp
cmp dword [0x1524144], ebp
je 0x4cec15
push ebx
mov ebx, dword [esp + 0x60]
push edi
test ebx, ebx
je 0x4cea4f
mov edi, ebx
jmp 0x4cea61
push 0
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov edi, eax
test edi, edi
je 0x4cec13
lea eax, [esp + 0x18]
push eax
push 0x18
push dword [esp + 0x68]
call dword [sym.imp.GDI32.dll_GetObjectW]
test eax, eax
je 0x4cec08
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.0046bb30
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 0x4cec07
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 0x4cec07
cmp dword [esp + 0x6c], 0
je 0x4cebb4
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 0x4ceb48
movzx eax, cl
sub eax, 0x40
imul eax, eax, 7
cdq
idiv ebx
lea ecx, [eax + 0x40]
jmp 0x4ceb5e
cmp cl, 0xc0
jbe 0x4ceb5e
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 [0x5cac60]
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 0x4ceb18
mov ebx, dword [esp + 0x68]
mov ebp, dword [esp + 0x18]
jmp 0x4cec07
mov edx, dword [esp + 0x10]
mov al, byte [edx + 3]
cmp al, 0xff
jae 0x4cebfb
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 0x4cebb8
pop esi
test ebx, ebx
jne 0x4cec13
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 0x4cfe90
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 0x4cfec8
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 0x4cfec3
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.0046f2b0
add dword [edi + 8], esi
add esp, 0xc
mov eax, 1
pop edi
pop esi
ret
Function at 0x4d404a
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push edi
push dword [0x152437c]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
test edi, edi
jne 0x4d40ab
push esi
push dword [0x1524378]
push 8
push dword [0x14a90f0]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
push edi
push dword [0x152437c]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov esi, dword [0x1524374]
jmp 0x4d409b
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x4d4099
mov eax, dword [esi + 8]
add eax, edi
push eax
call ecx
pop ecx
mov esi, dword [esi]
test esi, esi
jne 0x4d4089
push edi
push 0x4d3fe8
call fcn.00560801
pop esi
mov eax, dword [esp + 8]
add eax, edi
pop edi
ret 4

Function at 0x4d40b5
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 0x4d40cb
push 4
pop eax
sub eax, ecx
add edi, eax
mov esi, dword [0x1524378]
mov ebx, dword [sym.imp.KERNEL32.dll_TlsSetValue]
test esi, esi
jne 0x4d4104
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
push edi
push 8
push dword [0x14a90f0]
mov dword [0x152437c], eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push eax
push dword [0x152437c]
call ebx
mov esi, dword [0x1524378]
lea eax, [edi + esi]
push eax
push dword [0x152437c]
mov dword [0x1524378], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push eax
push 8
push dword [0x14a90f0]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov ebp, eax
push ebp
push dword [0x152437c]
call ebx
mov edi, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
test edi, edi
jne 0x4d4143
test ebx, ebx
je 0x4d4164
push 0x14
push 0x1524374
call fcn.004d49bf
pop ecx
pop ecx
mov dword [eax], esi
mov dword [eax + 4], edi
mov dword [eax + 8], ebx
test edi, edi
je 0x4d4164
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 0x4d4ac0
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push ebp
push esi
push edi
push dword [0x14a4aa8]
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 0x4d4af9
push ecx
push dword [0x152495c]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
jmp 0x4d4b08
push ecx
push 0
push dword [0x152495c]
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.004d4ef0
mov dword [edi + 8], ebx
pop edi
pop esi
pop ebp
pop ebx
ret 8

Function at 0x4d4b30
Capabilities:
Get thread local storage value

Disassembly:
push dword [0x14a4aa8]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
add dword [eax + 8], 2
ret

Function at 0x4d4bf0
Capabilities:
Get thread local storage value

Disassembly:
push dword [0x14a4aa8]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [eax + 8]
add ecx, dword [eax]
mov eax, ecx
ret
Function at 0x4d4cf0
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push ebp
push esi
push edi
push dword [0x14a4aa8]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, dword [esp + 0x18]
mov esi, eax
cmp ebx, 0xffffffff
jne 0x4d4d0e
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 0x4d4d32
lea eax, [ecx + 0x4000]
mov dword [esi + 4], eax
add eax, 0xa
jmp 0x4d4d4d
cmp edx, 0x100000
jle 0x4d4d60
cmp ecx, 0x100000
jge 0x4d4d47
mov ecx, 0x100000
mov dword [esi + 4], ecx
lea eax, [ecx + 0xa]
push eax
push dword [esi]
push 0
push dword [0x152495c]
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 0x4d4d80
Capabilities:
Get thread local storage value

Disassembly:
push dword [0x14a4aa8]
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 0x4d4ea0
Capabilities:
Get thread local storage value

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

Function at 0x4d4ed0
Capabilities:
Get thread local storage value

Disassembly:
push dword [0x14a4aa8]
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 0x4d4f30
Capabilities:
Get thread local storage value

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

Function at 0x4d50c0
Capabilities:
Get thread local storage value

Disassembly:
push dword [0x14a4aa8]
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 0x4d50e0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x10
push ebx
mov ebx, edx
mov edx, dword [esp + 0x18]
push ebp
push esi
push edi
movzx esi, word [edx]
mov ebp, ecx
mov edi, dword [esp + 0x28]
mov eax, esi
xor eax, 0x7f0
shr esi, 4
shr eax, 4
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], ebp
mov ecx, dword [edi + esi*4]
mov eax, dword [edi + eax*4]
mov dword [esp + 0x28], eax
movzx eax, word [edx + 0x10]
mov esi, dword [esp + 0x28]
shr eax, 4
mov dword [esp + 0x1c], ecx
mov eax, dword [edi + eax*4]
add eax, esi
mov dword [esp + 0x18], eax
test ebx, ebx
je 0x4d517c
lea ebx, [ebp + 4]
mov esi, edx
mov ebp, dword [esp + 0x14]
nop word [eax + eax]
push edi
push ebx
push ecx
push esi
call fcn.004d9470
push edi
lea eax, [ebx + 0x20]
push eax
push dword [esp + 0x30]
lea eax, [esi + 0x10]
push eax
call fcn.004d9470
mov ecx, dword [esp + 0x3c]
add esp, 0x20
add ebx, 0x440
add esi, 0x20
sub ebp, 1
jne 0x4d5140
mov edx, dword [esp + 0x24]
mov ebp, dword [esp + 0x10]
mov esi, dword [esp + 0x28]
mov ebx, dword [ebp]
cmp ebx, 0x10
jbe 0x4d5252
lea eax, [ebp + 0x44]
add ebx, 0xfffffff1
mov dword [esp + 0x18], eax
movzx eax, word [edx + 0x10]
xor eax, 0x7f0
shr ebx, 1
shr eax, 4
lea ebp, [ebx + 0x180]
add esi, dword [edi + eax*4]
lea ebp, [edx + ebp*2]
mov dword [esp + 0x28], esi
dec ebx
lea ebp, [ebp - 2]
mov dword [esp + 0x1c], ebx
lea eax, [ebx + 0x80]
mov ebx, dword [esp + 0x24]
mov edx, eax
shr eax, 1
and edx, 1
neg edx
shr edx, 4
movzx ecx, word [ebx + eax*2 + 0x200]
and edx, 0x7f
shr ecx, 4
xor ecx, edx
add esi, dword [edi + ecx*4]
cmp eax, 2
jae 0x4d51c2
movzx ecx, word [ebp]
mov ebx, dword [esp + 0x1c]
mov eax, ecx
mov edx, dword [esp + 0x18]
xor ecx, 0x7f0
shr eax, 4
shr ecx, 4
mov eax, dword [edi + eax*4]
add eax, esi
mov dword [edx + ebx*8], eax
mov eax, dword [edi + ecx*4]
add eax, esi
mov esi, dword [esp + 0x28]
mov dword [edx + ebx*8 + 4], eax
test ebx, ebx
jne 0x4d51b0
mov esi, dword [esp + 0x10]
mov eax, dword [esi]
lea ebx, [eax*4 - 0x40]
mov eax, dword [esp + 0x14]
cmp eax, 1
jbe 0x4d5252
add esi, 0x484
lea edi, [eax - 1]
push ebx
push edx
push esi
call fcn.0046f2b0
mov edx, dword [esp + 0x24]
add esp, 0xc
add esi, 0x440
sub edi, 1
jne 0x4d5238
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 8
Function at 0x4d76d0
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x18]
xor ebx, ebx
push esi
mov esi, 0x100
push edi
mov edi, dword [esp + 0x1c]
or ecx, esi
nop dword [eax]
add edi, edi
mov edx, esi
and edx, edi
mov eax, ecx
add edx, esi
shr eax, 8
add eax, edx
mov edx, dword [esp + 0x14]
movzx edx, word [edx + eax*2]
mov eax, ecx
shr eax, 7
add ecx, ecx
and eax, 1
shr edx, 4
neg eax
shr eax, 4
and eax, 0x7f
xor edx, eax
add ebx, dword [ebp + edx*4]
mov edx, ecx
xor edx, edi
not edx
and esi, edx
cmp ecx, 0x10000
jb 0x4d76f0
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
ret
Function at 0x4d8a10
Capabilities:
Resolve function by parsing pe exports

Disassembly:
movaps xmm0, xmmword [0x5cadb0]
push ebx
push esi
mov esi, dword [esp + 0xc]
mov ebx, 0x400
push edi
mov edi, 0xc
mov eax, dword [esi + 0x78]
lea edx, [esi + 0x1c50]
mov dword [esi + 0x70], eax
lea eax, [esi + 0x1e18]
mov dword [esi + 0x2c], 0
mov dword [esi + 0x44], 1
mov dword [esi + 0x40], 1
mov dword [esi + 0x3c], 1
mov dword [esi + 0x38], 1
mov dword [esi + 0x58], 0xffffffff
mov dword [esi + 0x5c], 0
mov dword [esi + 0x60], 0
mov dword [esi + 0x64], 0
mov dword [esi + 0x68], 0
mov dword [esi + 0x6c], 0
mov dword [esi + 0x80], 0
mov dword [esi + 0x84], 0
mov dword [esi + 0x88], 0
movups xmmword [esi + 0x1c18], xmm0
movups xmmword [esi + 0x1c28], xmm0
nop dword [eax]
nop word [eax + eax]
mov ecx, 0x10
nop word [eax + eax]
mov word [eax - 0x180], bx
mov word [eax], bx
add eax, 2
sub ecx, 1
jne 0x4d8ad0
mov word [edx - 0x18], bx
mov word [edx], bx
mov word [edx + 0x18], bx
mov word [edx + 0x30], bx
add edx, 2
sub edi, 1
jne 0x4d8ac0
mov eax, 0x4000400
lea edi, [esi + 0x1f98]
mov ecx, pe_nt_image_headers32
rep stosd dword es:[edi], eax
lea edi, [esi + 0x2198]
mov ecx, 0x40
rep stosd dword es:[edi], eax
mov ecx, dword [esi + 0x98]
mov eax, 0x300
add ecx, dword [esi + 0x94]
shl eax, cl
test eax, eax
je 0x4d8b42
mov edi, dword [esi + 0x50]
mov ecx, eax
shr ecx, 1
mov eax, 0x4000400
rep stosd dword es:[edi], eax
adc ecx, ecx
rep stosw word es:[edi], ax
mov eax, 0x4000400
lea edi, [esi + 0x2298]
mov ecx, pe_nt_image_headers32
rep stosd dword es:[edi], eax
lea edi, [esi + 0x2498]
mov ecx, pe_nt_image_headers32
rep stosd dword es:[edi], eax
mov ecx, pe_nt_image_headers32
lea edi, [esi + 0x2698]
rep stosd dword es:[edi], eax
lea edi, [esi + 0x2898]
mov ecx, pe_nt_image_headers32
rep stosd dword es:[edi], eax
mov dword [esi + 0x1c], 0
lea eax, [esi + 0xbaa0]
mov dword [esi + 0x18], 0
mov ecx, 0x800
mov dword [eax], 0x40000000
lea eax, [eax + 0x20]
sub ecx, 1
jne 0x4d8b94
mov dword [esi + 0x34], ecx
mov eax, 1
mov ecx, dword [esi + 0x9c]
mov edx, 0x100
shl eax, cl
mov ecx, dword [esi + 0x94]
dec eax
mov dword [esi + 0x4c], eax
mov eax, edx
shr eax, cl
mov ecx, dword [esi + 0x98]
shl edx, cl
sub edx, eax
pop edi
mov dword [esi + 0x48], edx
pop esi
pop ebx
ret