joyce8/EMBER2024-capa huggingface dataset:
Function at 0x492940
Capabilities:
Check for time delay via queryperformancecounter
Execute anti-debugging instructions

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x38
mov eax, dword [0x6f4e3c]
xor eax, ebp
mov dword [esp + 0x30], eax
movsd xmm1, qword [0x8fdda8]
xorpd xmm0, xmm0
ucomisd xmm1, xmm0
jne 0x492a97
jp 0x492a97
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentThread]
call edi
push eax
call dword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov dword [esp + 0xc], eax
call edi
push 2
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov eax, dword [0x8fddb8]
test al, 1
je 0x492abc
test al, 2
je 0x492ade
rdtsc
mov dword [esp + 8], eax
mov dword [esp + 4], edx
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], 0
lea esi, [esp + 0x28]
push esi
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov edi, dword [esp + 0x28]
mov ebx, dword [esp + 0x2c]
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push dword [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], 0
push esi
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
sub edi, dword [0x8fddc0]
sbb ebx, dword [0x8fddc4]
movd xmm0, ebx
movd xmm1, edi
punpckldq xmm1, xmm0
punpckldq xmm1, xmmword [0x64d1e0]
subpd xmm1, xmmword [0x64d1f0]
movapd xmm0, xmm1
unpckhpd xmm0, xmm1
addsd xmm0, xmm1
fild qword [esp + 0x28]
fstp qword [esp + 0x20]
divsd xmm0, qword [esp + 0x20]
xorpd xmm1, xmm1
movsd xmm2, qword [0x6535f8]
ucomisd xmm2, xmm0
ja 0x492a97
mov eax, dword [esp + 8]
sub eax, dword [0x8fddb0]
mov ecx, dword [esp + 4]
sbb ecx, dword [0x8fddb4]
movd xmm1, ecx
movd xmm2, eax
punpckldq xmm2, xmm1
punpckldq xmm2, xmmword [0x64d1e0]
subpd xmm2, xmmword [0x64d1f0]
movapd xmm1, xmm2
unpckhpd xmm1, xmm2
addsd xmm1, xmm2
divsd xmm1, xmm0
movsd qword [0x8fdda8], xmm1
movsd qword [esp + 0x18], xmm1
fld qword [esp + 0x18]
fstp xword [esp + 0xc]
mov ecx, dword [esp + 0x30]
xor ecx, ebp
call fcn.00517c1a
fld xword [esp + 0xc]
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
or eax, 1
mov dword [0x8fddb8], eax
rdtsc
mov dword [0x8fddb0], eax
mov dword [0x8fddb4], edx
mov eax, dword [0x8fddb8]
test al, 2
jne 0x4929a6
or eax, 2
mov dword [0x8fddb8], eax
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], 0
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
mov dword [0x8fddc4], ecx
mov dword [0x8fddc0], eax
jmp 0x4929a6
Function at 0x496de0
Capabilities:
Encode data using xor
Hash data using murmur2

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x1c
mov dword [ebp - 0x14], ecx
mov esi, dword [ebp + 0xc]
movzx edx, byte [esi + 0xb]
mov eax, dword [esi]
mov ecx, dword [esi + 4]
test dl, dl
mov dword [ebp - 0x10], ecx
lea ecx, [eax + ecx]
mov dword [ebp - 0x20], edx
lea edx, [esi + edx]
cmovs edx, ecx
cmovs esi, eax
sub edx, esi
cmp edx, 4
jb 0x496e4d
mov ecx, esi
mov eax, edx
nop word [eax + eax]
imul edi, dword [ecx], 0x5bd1e995
mov ebx, edi
shr ebx, 0x18
xor ebx, edi
imul edi, ebx, 0x5bd1e995
imul eax, eax, 0x5bd1e995
xor eax, edi
add ecx, 4
add edx, 0xfffffffc
cmp edx, 3
ja 0x496e20
cmp edx, 1
jne 0x496e56
jmp 0x496e72
mov eax, edx
mov ecx, esi
cmp edx, 1
je 0x496e72
cmp edx, 2
je 0x496e69
cmp edx, 3
jne 0x496e7d
movzx edx, byte [ecx + 2]
shl edx, 0x10
xor eax, edx
movzx edx, byte [ecx + 1]
shl edx, 8
xor eax, edx
movzx ecx, byte [ecx]
xor ecx, eax
imul eax, ecx, 0x5bd1e995
mov ecx, dword [ebp - 0x14]
mov edi, dword [ecx + 4]
xor ecx, ecx
test edi, edi
je 0x496fd8
mov edx, eax
shr edx, 0xd
xor edx, eax
imul eax, edx, 0x5bd1e995
mov ebx, eax
shr ebx, 0xf
xor ebx, eax
mov eax, edi
shr eax, 1
and eax, 0x55555555
mov edx, edi
sub edx, eax
mov eax, edx
and eax, 0x33333333
shr edx, 2
and edx, 0x33333333
add edx, eax
mov eax, edx
shr eax, 4
add eax, edx
and eax, 0xf0f0f0f
imul eax, eax, 0x1010101
shr eax, 0x18
mov dword [ebp - 0x28], eax
cmp eax, 1
ja 0x496ee4
lea edx, [edi - 1]
and edx, ebx
jmp 0x496ef0
mov edx, ebx
cmp ebx, edi
jb 0x496ef0
mov eax, ebx
xor edx, edx
div edi
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x24], edx
mov eax, dword [eax + edx*4]
test eax, eax
je 0x496fd8
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], edi
mov ebx, dword [eax]
test ebx, ebx
je 0x496fd8
mov eax, dword [ebp - 0x18]
add eax, 0xffffffff
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x20]
test cl, cl
mov eax, dword [ebp - 0x10]
cmovns eax, ecx
mov dword [ebp - 0x10], eax
jmp 0x496f46
and eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x24]
jne 0x496fd6
mov ebx, dword [ebx]
test ebx, ebx
je 0x496fd6
mov eax, dword [ebx + 4]
cmp eax, dword [ebp - 0x14]
jne 0x496fa0
movzx eax, byte [ebx + 0x13]
mov ecx, eax
test al, al
jns 0x496f5b
mov ecx, dword [ebx + 0xc]
cmp ecx, dword [ebp - 0x10]
jne 0x496f3c
lea ecx, [ebx + 8]
mov edx, dword [ecx]
test al, al
cmovs ecx, edx
js 0x496fb8
cmp dword [ebp - 0x10], 0
je 0x496fd2
cmp byte [esi], dl
jne 0x496f3c
add eax, 0xffffffff
xor ecx, ecx
nop dword [eax + eax]
cmp eax, ecx
je 0x496fd2
movzx edx, byte [ebx + ecx + 9]
lea edi, [ecx + 1]
cmp dl, byte [esi + ecx + 1]
mov ecx, edi
je 0x496f80
jmp 0x496f3c
cmp dword [ebp - 0x28], 1
jbe 0x496f30
mov ecx, dword [ebp - 0x18]
cmp eax, ecx
jb 0x496f33
xor edx, edx
div ecx
mov eax, edx
jmp 0x496f33
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x496fd2
push eax
push esi
push ecx
call fcn.006015fd
add esp, 0xc
test eax, eax
jne 0x496f3c
mov ecx, ebx
jmp 0x496fd8
xor ecx, ecx
mov eax, dword [ebp + 8]
mov dword [eax], ecx
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret 8
Function at 0x497f44
Capabilities:
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x100
mov dword [ebp - 0x104], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [0x6f4e3c]
xor ecx, ebp
mov dword [ebp - 0x10], ecx
xor ecx, ecx
movzx edx, byte [ecx + str.80_]
mov esi, edx
and esi, 7
shr edx, 3
movzx edx, byte [eax + edx]
movzx esi, word [esi + esi + 0x6f43a8]
test esi, edx
setne byte [ebp + ecx - 0x48]
inc ecx
cmp ecx, 0x38
jne 0x497f66
xor edx, edx
mov eax, 0xf
sub eax, edx
cmp dword [ebp + 0xc], 1
cmovne eax, edx
lea edi, [eax + eax]
lea ecx, [eax + eax]
inc ecx
mov dword [ebp - 0x108], ecx
xor ecx, ecx
mov dword [ebp + edi*4 - 0xfc], ecx
mov dword [ebp + eax*8 - 0x100], ecx
mov dword [ebp - 0x10c], edx
movzx esi, byte [edx + 0x6f43b8]
mov ecx, 0xffffffe4
mov eax, esi
mov edx, eax
sub edx, 0x1c
cmovb edx, eax
mov dl, byte [ebp + edx - 0x48]
mov byte [ebp + ecx - 0x64], dl
inc eax
inc ecx
jne 0x497fcf
lea ecx, [esi + 0x1c]
xor edx, edx
lea eax, [ecx + edx]
lea ebx, [esi + edx]
cmp eax, 0x38
cmovb ebx, eax
mov al, byte [ebp + ebx - 0x48]
mov byte [ebp + edx - 0x64], al
inc edx
cmp edx, 0x1c
jne 0x497fe8
xor eax, eax
mov ecx, 0xffffffe8
xor edx, edx
mov ebx, dword [ebp - 0x108]
movzx esi, byte [ecx + 0x6f43e0]
cmp byte [ebp + esi - 0x80], 0
je 0x49802d
or edx, dword [ecx*4 + 0x6f4458]
mov dword [ebp + edi*4 - 0x100], edx
movzx esi, byte [ecx + 0x6f43f8]
cmp byte [ebp + esi - 0x80], 0
je 0x498049
or eax, dword [ecx*4 + 0x6f4458]
mov dword [ebp + ebx*4 - 0x100], eax
inc ecx
jne 0x498011
mov edx, dword [ebp - 0x10c]
inc edx
cmp edx, 0x10
jne 0x497f90
lea eax, [ebp - 0x100]
mov ecx, dword [ebp - 0x104]
push eax
call fcn.0049837a
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00517c1a
add esp, 0x100
pop esi
pop edi
pop ebx
pop ebp
ret 8
Function at 0x49816a
Capabilities:
Encode data using xor
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 8
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov esi, ecx
shr esi, 4
xor esi, eax
and esi, 0xf0f0f0f
xor eax, esi
shl esi, 4
xor esi, ecx
mov edx, esi
shr edx, 0x10
movzx ecx, ax
xor ecx, edx
xor eax, ecx
shl ecx, 0x10
xor ecx, esi
mov esi, eax
shr esi, 2
xor esi, ecx
and esi, 0x33333333
xor ecx, esi
shl esi, 2
xor esi, eax
mov eax, esi
shr eax, 8
xor eax, ecx
and eax, 0xff00ff
xor ecx, eax
shl eax, 8
xor eax, esi
lea ebx, [eax + eax]
rol eax, 1
xor ebx, ecx
and ebx, 0xaaaaaaaa
xor ecx, ebx
xor ebx, eax
rol ecx, 1
mov dword [ebp - 0x10], ecx
xor esi, esi
mov edx, ebx
mov eax, ebx
mov dword [ebp - 0x14], ebx
rol eax, 0x1c
mov edi, dword [ebp + 0xc]
xor eax, dword [edi + esi]
mov edi, eax
and edi, 0x3f
mov ebx, eax
shr ebx, 6
mov ecx, 0xfc
and ebx, ecx
mov ebx, dword [ebx + 0x6f4558]
or ebx, dword [edi*4 + 0x6f4458]
mov edi, eax
shr edi, 0xe
and edi, ecx
or ebx, dword [edi + 0x6f4658]
shr eax, 0x16
and eax, ecx
mov ecx, 0xfc
or ebx, dword [eax + 0x6f4758]
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + esi + 4]
xor eax, edx
mov edi, eax
and edi, 0x3f
or ebx, dword [edi*4 + 0x6f4858]
mov edi, eax
shr edi, 6
and edi, ecx
or ebx, dword [edi + 0x6f4958]
mov edi, eax
shr edi, 0xe
and edi, ecx
or ebx, dword [edi + 0x6f4a58]
shr eax, 0x16
and eax, ecx
mov edx, 0xfc
or ebx, dword [eax + 0x6f4b58]
mov ecx, dword [ebp - 0x10]
xor ecx, ebx
mov eax, ecx
rol eax, 0x1c
mov edi, dword [ebp + 0xc]
xor eax, dword [edi + esi + 8]
mov edi, eax
and edi, 0x3f
mov ebx, eax
shr ebx, 6
and ebx, edx
mov ebx, dword [ebx + 0x6f4558]
or ebx, dword [edi*4 + 0x6f4458]
mov edi, eax
shr edi, 0xe
and edi, edx
or ebx, dword [edi + 0x6f4658]
shr eax, 0x16
and eax, edx
or ebx, dword [eax + 0x6f4758]
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + esi + 0xc]
mov dword [ebp - 0x10], ecx
xor eax, ecx
mov edi, eax
and edi, 0x3f
or ebx, dword [edi*4 + 0x6f4858]
mov edi, eax
shr edi, 6
mov ecx, 0xfc
and edi, ecx
or ebx, dword [edi + 0x6f4958]
mov edi, eax
shr edi, 0xe
and edi, ecx
mov ecx, 0xfc
or ebx, dword [edi + 0x6f4a58]
shr eax, 0x16
and eax, ecx
or ebx, dword [eax + 0x6f4b58]
xor ebx, dword [ebp - 0x14]
add esi, 0x10
cmp esi, 0x80
jne 0x4981df
ror ebx, 1
mov eax, ebx
mov ecx, dword [ebp - 0x10]
xor eax, ecx
and eax, 0xaaaaaaaa
mov edx, eax
xor edx, ecx
xor eax, ebx
shrd edx, ecx, 1
mov esi, edx
shr esi, 8
xor esi, eax
and esi, 0xff00ff
xor eax, esi
shl esi, 8
xor esi, edx
mov ecx, esi
shr ecx, 2
xor ecx, eax
and ecx, 0x33333333
xor eax, ecx
shl ecx, 2
xor ecx, esi
mov edx, eax
shr edx, 0x10
movzx esi, cx
xor esi, edx
xor ecx, esi
shl esi, 0x10
xor esi, eax
mov eax, esi
shr eax, 4
xor eax, ecx
and eax, 0xf0f0f0f
xor ecx, eax
shl eax, 4
xor eax, esi
mov edx, dword [ebp + 8]
mov dword [edx], eax
mov dword [edx + 4], ecx
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret 8
Function at 0x498905
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x20
mov ecx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov eax, dword [0x6f4e3c]
xor eax, ebp
mov dword [esp + 0x18], eax
xor eax, eax
mov dword [ecx + 4], eax
mov dword [ecx], eax
mov dword [ecx + 8], eax
mov eax, dword [0x8fe028]
cmp eax, 0x8fe02c
je 0x498972
cmp dword [eax + 0x10], esi
je 0x498a15
mov edx, dword [eax + 4]
test edx, edx
je 0x498952
mov edi, edx
mov edx, dword [edx]
test edx, edx
jne 0x498948
jmp 0x498968
mov edi, dword [eax + 8]
cmp dword [edi], eax
je 0x498968
add eax, 8
mov edx, dword [eax]
lea eax, [edx + 8]
mov edi, dword [edx + 8]
cmp dword [edi], edx
jne 0x49895c
mov eax, edi
cmp edi, 0x8fe02c
jne 0x498938
mov ecx, dword [0x900104]
mov eax, esi
shr eax, 4
inc eax
movzx eax, ax
push 6
push eax
mov dword [esp + 0xc], ecx
push ecx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x498a1e
mov ebx, eax
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x498a1e
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x498a1e
mov edi, eax
push ebx
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
test eax, eax
setg cl
and esi, 0xf
je 0x4989ea
test eax, eax
jle 0x4989ea
mov edx, edi
add edx, eax
dec esi
movzx eax, word [edi]
lea edi, [edi + eax*2]
add edi, 2
cmp edi, edx
setb cl
add esi, 0xffffffff
jae 0x4989ea
cmp edi, edx
jb 0x4989d3
test cl, cl
je 0x498a1e
movzx ebx, word [edi]
test ebx, ebx
je 0x498a1e
add edi, 2
xor eax, eax
mov dword [esp + 0xc], eax
mov dword [esp + 8], eax
mov dword [esp + 0x10], eax
cmp bx, 5
jae 0x498a34
lea eax, [esp + 8]
mov byte [eax + 0xb], bl
jmp 0x498a58
add eax, 0x14
push eax
call fcn.00468c2e
mov ecx, dword [esp + 0x18]
xor ecx, ebp
call fcn.00517c1a
mov eax, dword [ebp + 8]
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
lea esi, [ebx + 8]
and esi, 0xfffffff8
lea eax, [esi + esi]
push eax
call fcn.00517b56
add esp, 4
mov dword [esp + 8], eax
or esi, 0x80000000
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], ebx
lea ecx, [ebx + ebx]
push ecx
push edi
push eax
mov esi, eax
call fcn.006025b0
add esp, 0xc
mov word [esi + ebx*2], 0
mov esi, dword [ebp + 8]
cmp byte [esi + 0xb], 0
js 0x498a82
mov word [esi], 0
mov byte [esi + 0xb], 0
jmp 0x498aa7
mov eax, dword [esi]
mov word [eax], 0
mov dword [esi + 4], 0
cmp byte [esi + 0xb], 0
jns 0x498aa7
push dword [esi]
call fcn.00517bd6
add esp, 4
mov dword [esi + 8], 0
mov eax, dword [esp + 0x10]
mov dword [esi + 8], eax
movsd xmm0, qword [esp + 8]
movsd qword [esi], xmm0
jmp 0x498a1e
Function at 0x49cd8e
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push esi
xor eax, eax
mov ecx, 8
mov edx, eax
mov esi, edx
shr esi, 1
and edx, 1
neg edx
and edx, 0xedb88320
xor edx, esi
dec ecx
jne 0x49cd9b
mov dword [eax*4 + 0x8fe038], edx
inc eax
cmp eax, 0x100
jne 0x49cd94
mov eax, 0xffffe400
mov ecx, dword [eax + 0x8ffc38]
movzx edx, cl
shr ecx, 8
xor ecx, dword [edx*4 + 0x8fe038]
mov dword [eax + 0x900038], ecx
add eax, 4
jne 0x49cdc3
mov eax, 0x4c74a0
mov dword [0x900038], eax
mov dword [0x8fe034], eax
mov dword [0x90003c], 0x4c7560
call fcn.004c773a
test eax, eax
jne 0x49ce0d
mov dword [0x8fe034], 0x4c7560
pop esi
pop ebp
ret
Function at 0x4a72f0
Capabilities:
Compute adler32 checksum

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.004a6f50

Function at 0x4a7610
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.004a7310
Function at 0x4a9430
Capabilities:
Encode data using xor
Hash data using murmur2

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x1c
mov dword [ebp - 0x14], ecx
mov esi, dword [ebp + 0xc]
movzx edx, byte [esi + 0xb]
mov eax, dword [esi]
mov ecx, dword [esi + 4]
test dl, dl
mov dword [ebp - 0x10], ecx
lea ecx, [eax + ecx]
mov dword [ebp - 0x20], edx
lea edx, [esi + edx]
cmovs edx, ecx
cmovs esi, eax
sub edx, esi
cmp edx, 4
jb 0x4a949d
mov ecx, esi
mov eax, edx
nop word [eax + eax]
imul edi, dword [ecx], 0x5bd1e995
mov ebx, edi
shr ebx, 0x18
xor ebx, edi
imul edi, ebx, 0x5bd1e995
imul eax, eax, 0x5bd1e995
xor eax, edi
add ecx, 4
add edx, 0xfffffffc
cmp edx, 3
ja 0x4a9470
cmp edx, 1
jne 0x4a94a6
jmp 0x4a94c2
mov eax, edx
mov ecx, esi
cmp edx, 1
je 0x4a94c2
cmp edx, 2
je 0x4a94b9
cmp edx, 3
jne 0x4a94cd
movzx edx, byte [ecx + 2]
shl edx, 0x10
xor eax, edx
movzx edx, byte [ecx + 1]
shl edx, 8
xor eax, edx
movzx ecx, byte [ecx]
xor ecx, eax
imul eax, ecx, 0x5bd1e995
mov ecx, dword [ebp - 0x14]
mov edi, dword [ecx + 4]
xor ecx, ecx
test edi, edi
je 0x4a9628
mov edx, eax
shr edx, 0xd
xor edx, eax
imul eax, edx, 0x5bd1e995
mov ebx, eax
shr ebx, 0xf
xor ebx, eax
mov eax, edi
shr eax, 1
and eax, 0x55555555
mov edx, edi
sub edx, eax
mov eax, edx
and eax, 0x33333333
shr edx, 2
and edx, 0x33333333
add edx, eax
mov eax, edx
shr eax, 4
add eax, edx
and eax, 0xf0f0f0f
imul eax, eax, 0x1010101
shr eax, 0x18
mov dword [ebp - 0x28], eax
cmp eax, 1
ja 0x4a9534
lea edx, [edi - 1]
and edx, ebx
jmp 0x4a9540
mov edx, ebx
cmp ebx, edi
jb 0x4a9540
mov eax, ebx
xor edx, edx
div edi
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x24], edx
mov eax, dword [eax + edx*4]
test eax, eax
je 0x4a9628
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], edi
mov ebx, dword [eax]
test ebx, ebx
je 0x4a9628
mov eax, dword [ebp - 0x18]
add eax, 0xffffffff
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x20]
test cl, cl
mov eax, dword [ebp - 0x10]
cmovns eax, ecx
mov dword [ebp - 0x10], eax
jmp 0x4a9596
and eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x24]
jne 0x4a9626
mov ebx, dword [ebx]
test ebx, ebx
je 0x4a9626
mov eax, dword [ebx + 4]
cmp dword [ebp - 0x14], eax
jne 0x4a95f0
movzx eax, byte [ebx + 0x13]
mov ecx, eax
test al, al
jns 0x4a95ab
mov ecx, dword [ebx + 0xc]
cmp ecx, dword [ebp - 0x10]
jne 0x4a958c
lea ecx, [ebx + 8]
mov edx, dword [ecx]
test al, al
cmovs ecx, edx
js 0x4a9608
cmp dword [ebp - 0x10], 0
je 0x4a9622
cmp byte [esi], dl
jne 0x4a958c
add eax, 0xffffffff
xor ecx, ecx
nop dword [eax + eax]
cmp eax, ecx
je 0x4a9622
movzx edx, byte [ebx + ecx + 9]
lea edi, [ecx + 1]
cmp dl, byte [esi + ecx + 1]
mov ecx, edi
je 0x4a95d0
jmp 0x4a958c
cmp dword [ebp - 0x28], 1
jbe 0x4a9580
mov ecx, dword [ebp - 0x18]
cmp eax, ecx
jb 0x4a9583
xor edx, edx
div ecx
mov eax, edx
jmp 0x4a9583
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x4a9622
push eax
push esi
push ecx
call fcn.006015fd
add esp, 0xc
test eax, eax
jne 0x4a958c
mov ecx, ebx
jmp 0x4a9628
xor ecx, ecx
mov eax, dword [ebp + 8]
mov dword [eax], ecx
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret 8
Function at 0x4b1b30
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov ebx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
test ebx, ebx
je 0x4b1ba9
mov ecx, dword [ebp + 0xc]
cmp ebx, 1
jne 0x4b1b4c
xor esi, esi
jmp 0x4b1b8e
and ebx, 0xfffffffe
xor esi, esi
nop word cs:[eax + eax]
nop dword [eax + eax]
movzx edi, al
movzx edx, byte [ecx + esi]
xor edx, edi
shr eax, 8
xor eax, dword [edx*4 + 0x69c678]
movzx edx, al
movzx edi, byte [ecx + esi + 1]
xor edi, edx
shr eax, 8
xor eax, dword [edi*4 + 0x69c678]
add esi, 2
cmp ebx, esi
jne 0x4b1b60
mov edx, dword [ebp + 0x10]
test dl, 1
je 0x4b1ba9
movzx edx, al
movzx ecx, byte [ecx + esi]
xor ecx, edx
shr eax, 8
xor eax, dword [ecx*4 + 0x69c678]
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x4b1bb0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov eax, 0x1408
call fcn.00517f10
mov eax, dword [0x6f4e3c]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov eax, dword [0x6fa2ac]
cmp eax, 0xffffffff
je 0x4b1cf6
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
test bl, 3
je 0x4b1cf6
and ebx, 0xfffffffc
lea eax, [ebp - 0x810]
push 0x800
push ebx
push eax
call fcn.006025b0
add esp, 0xc
mov ecx, dword [0x6fa2ac]
lea eax, [ebp - 0x80f]
push eax
mov dword [ebp - 0x1414], ecx
push ecx
call fcn.004e7f40
add esp, 8
test ebx, ebx
je 0x4b1c2b
push ebx
call fcn.00517c15
add esp, 4
mov eax, dword [0x900dcc]
test al, 1
je 0x4b1d17
mov esi, dword [0x900dc8]
push esi
call dword [0x8fdd48]
test al, al
je 0x4b1d0b
lea eax, [ebp - 0x1410]
push 0xc00
push 0x9001c8
push eax
call fcn.006025b0
add esp, 0xc
push esi
call dword [0x8fdd44]
mov edi, 0x100
mov al, 1
jmp 0x4b1c8a
lea ecx, [edi - 1]
cmp edi, 2
mov edi, ecx
jb 0x4b1ce6
test al, 1
je 0x4b1ce6
xor eax, eax
lea esi, [ebp - 0x1408]
xor ebx, ebx
jmp 0x4b1cae
add ebx, 1
add esi, 0xc
cmp ebx, 0x100
je 0x4b1c80
mov ecx, dword [ebp + ebx*8 - 0x810]
test ecx, ecx
je 0x4b1ca0
cmp dword [esi - 8], 0
je 0x4b1ca0
mov edx, dword [ebp + ebx*8 - 0x80c]
cmp edx, dword [esi]
jne 0x4b1ca0
mov edx, dword [esi - 4]
test edx, edx
je 0x4b1ca0
mov dword [ebp + ebx*8 - 0x810], 0
push ecx
call edx
add esp, 4
mov al, 1
jmp 0x4b1ca0
push 2
push dword [ebp - 0x1414]
call fcn.004e7f40
add esp, 8
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00517c1a
add esp, 0x1408
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, esi
call fcn.00484d30
jmp 0x4b1c4d
or eax, 1
mov dword [0x900dcc], eax
push 0x18
call fcn.00517b56
add esp, 4
mov esi, eax
mov ecx, eax
call fcn.00484cd0
mov dword [0x900dc8], esi
jmp 0x4b1c3e

Function at 0x4b1d40
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x6fa2ac]
cmp eax, 0xffffffff
je 0x4b1d62
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
and eax, 3
add eax, 0xffffffff
cmp eax, 2
setb al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x4b1d70
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov esi, ecx
mov eax, dword [0x6fa2ac]
cmp eax, 0xffffffff
je 0x4b1d8d
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
jne 0x4b1d92
call fcn.004b1e90
mov eax, dword [0x900dcc]
test al, 1
je 0x4b1e55
mov edi, dword [0x900dc8]
push edi
call dword [0x8fdd48]
test al, al
je 0x4b1e49
mov ecx, dword [0x9001c4]
add ecx, 1
mov edx, 0x100
nop word cs:[eax + eax]
nop dword [eax]
movzx ebx, cl
lea eax, [ebx + ebx*2]
cmp dword [eax*4 + 0x9001c8], 0
je 0x4b1dfd
lea eax, [ecx + 1]
movzx ebx, al
lea eax, [ebx + ebx*2]
cmp dword [eax*4 + 0x9001c8], 0
je 0x4b1dfd
add ecx, 2
add edx, 0xfffffffe
jne 0x4b1dd0
jmp 0x4b1e2d
lea ecx, [eax*4 + 0x9001c8]
mov dword [ecx], 1
lea eax, [ebx*4]
mov ecx, dword [ebp + 8]
mov dword [eax + eax*2 + 0x9001cc], ecx
mov dword [0x9001c4], ebx
mov dword [esi], ebx
mov eax, dword [eax + eax*2 + 0x9001d0]
mov dword [esi + 4], eax
push edi
call dword [0x8fdd44]
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x4b1e7b
cmp eax, 0x100
jge 0x4b1e7e
pop esi
pop edi
pop ebx
pop ebp
ret 4
mov ecx, edi
call fcn.00484d30
jmp 0x4b1db4
or eax, 1
mov dword [0x900dcc], eax
push 0x18
call fcn.00517b56
add esp, 4
mov edi, eax
mov ecx, eax
call fcn.00484cd0
mov dword [0x900dc8], edi
jmp 0x4b1da5
int3
int3

Function at 0x4b1e90
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
sub esp, 0x808
mov eax, dword [0x6f4e3c]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov eax, dword [0x6fa2ac]
mov dword [ebp - 0x810], eax
cmp eax, 0xffffffff
jne 0x4b1f2e
lea esi, [ebp - 0x810]
push esi
call fcn.004e7f10
add esp, 4
test al, al
je 0x4b1faf
mov ecx, dword [ebp - 0x810]
cmp ecx, 0xffffffff
jne 0x4b1f05
push esi
call fcn.004e7f10
add esp, 4
test al, al
je 0x4b1fb2
cmp dword [ebp - 0x810], 0xffffffff
je 0x4b1fb2
push 0xffffffffffffffff
call fcn.004e7f30
add esp, 4
mov ecx, dword [ebp - 0x810]
mov eax, 0xffffffff
lock cmpxchg dword [0x6fa2ac], ecx
mov eax, dword [ebp - 0x810]
je 0x4b1f2e
push eax
call fcn.004e7f30
add esp, 4
mov eax, dword [0x6fa2ac]
mov dword [ebp - 0x810], eax
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
jne 0x4b1fac
lea edi, [ebp - 0x80c]
push 0x800
push 0
push edi
call fcn.006030b0
add esp, 0xc
lea eax, [ebp - 0x809]
push eax
push dword [ebp - 0x810]
call fcn.004e7f40
add esp, 8
push 0x800
call fcn.00517c03
add esp, 4
mov esi, eax
push 0x800
push edi
push eax
call fcn.006025b0
add esp, 0xc
mov eax, esi
or eax, 3
push eax
push dword [ebp - 0x810]
call fcn.004e7f40
add esp, 8
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.00517c1a
mov eax, esi
add esp, 0x808
pop esi
pop edi
pop ebp
ret
int3
int3
int3