joyce8/EMBER2024-capa huggingface dataset:
Function at 0x445240
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 [0x530f98]
xor eax, ebp
mov dword [esp + 0x30], eax
movsd xmm1, qword [0x533198]
xorpd xmm0, xmm0
ucomisd xmm1, xmm0
jne 0x445397
jp 0x445397
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 [0x5331a8]
test al, 1
je 0x4453bc
test al, 2
je 0x4453de
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 [0x5331b0]
sbb ebx, dword [0x5331b4]
movd xmm0, ebx
movd xmm1, edi
punpckldq xmm1, xmm0
punpckldq xmm1, xmmword [0x4e4470]
subpd xmm1, xmmword [0x4e4480]
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 [0x4e9dd8]
ucomisd xmm2, xmm0
ja 0x445397
mov eax, dword [esp + 8]
sub eax, dword [0x5331a0]
mov ecx, dword [esp + 4]
sbb ecx, dword [0x5331a4]
movd xmm1, ecx
movd xmm2, eax
punpckldq xmm2, xmm1
punpckldq xmm2, xmmword [0x4e4470]
subpd xmm2, xmmword [0x4e4480]
movapd xmm1, xmm2
unpckhpd xmm1, xmm2
addsd xmm1, xmm2
divsd xmm1, xmm0
movsd qword [0x533198], xmm1
movsd qword [esp + 0x18], xmm1
fld qword [esp + 0x18]
fstp xword [esp + 0xc]
mov ecx, dword [esp + 0x30]
xor ecx, ebp
call fcn.004af401
fld xword [esp + 0xc]
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
or eax, 1
mov dword [0x5331a8], eax
rdtsc
mov dword [0x5331a0], eax
mov dword [0x5331a4], edx
mov eax, dword [0x5331a8]
test al, 2
jne 0x4452a6
or eax, 2
mov dword [0x5331a8], 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 [0x5331b4], ecx
mov dword [0x5331b0], eax
jmp 0x4452a6
Function at 0x4496f0
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 0x44975d
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 0x449730
cmp edx, 1
jne 0x449766
jmp 0x449782
mov eax, edx
mov ecx, esi
cmp edx, 1
je 0x449782
cmp edx, 2
je 0x449779
cmp edx, 3
jne 0x44978d
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 0x4498e8
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 0x4497f4
lea edx, [edi - 1]
and edx, ebx
jmp 0x449800
mov edx, ebx
cmp ebx, edi
jb 0x449800
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 0x4498e8
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], edi
mov ebx, dword [eax]
test ebx, ebx
je 0x4498e8
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 0x449856
and eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x24]
jne 0x4498e6
mov ebx, dword [ebx]
test ebx, ebx
je 0x4498e6
mov eax, dword [ebx + 4]
cmp eax, dword [ebp - 0x14]
jne 0x4498b0
movzx eax, byte [ebx + 0x13]
mov ecx, eax
test al, al
jns 0x44986b
mov ecx, dword [ebx + 0xc]
cmp ecx, dword [ebp - 0x10]
jne 0x44984c
lea ecx, [ebx + 8]
mov edx, dword [ecx]
test al, al
cmovs ecx, edx
js 0x4498c8
cmp dword [ebp - 0x10], 0
je 0x4498e2
cmp byte [esi], dl
jne 0x44984c
add eax, 0xffffffff
xor ecx, ecx
nop dword [eax + eax]
cmp eax, ecx
je 0x4498e2
movzx edx, byte [ebx + ecx + 9]
lea edi, [ecx + 1]
cmp dl, byte [esi + ecx + 1]
mov ecx, edi
je 0x449890
jmp 0x44984c
cmp dword [ebp - 0x28], 1
jbe 0x449840
mov ecx, dword [ebp - 0x18]
cmp eax, ecx
jb 0x449843
xor edx, edx
div ecx
mov eax, edx
jmp 0x449843
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x4498e2
push eax
push esi
push ecx
call fcn.004b710d
add esp, 0xc
test eax, eax
jne 0x44984c
mov ecx, ebx
jmp 0x4498e8
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 0x44a4f0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x10
mov esi, dword [ebp + 8]
mov eax, dword [0x530f98]
xor eax, ebp
mov dword [ebp - 0x10], eax
xor ebx, ebx
push esi
push 7
call fcn.00435ad0
add esp, 8
test al, al
je 0x44a5ac
lea edi, [ebp - 0x1c]
mov ecx, esi
push edi
call fcn.00430cf0
mov ecx, esi
push edi
call fcn.00430500
mov ecx, edi
call fcn.004304c0
cmp word [str.User_Data], 0
je 0x44a551
xor eax, eax
lea ebx, [eax + 1]
cmp word [eax + eax + 0x4eb228], 0
mov eax, ebx
jne 0x44a541
mov ecx, esi
push ebx
push str.User_Data
push edi
call fcn.00430ee0
mov ecx, esi
push edi
call fcn.00430500
mov ecx, edi
call fcn.004304c0
cmp byte [esi + 0xb], 0
mov eax, esi
jns 0x44a578
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x44a58b
mov bl, 1
and eax, 0x10
jne 0x44a5ac
cmp byte [esi + 0xb], 0
js 0x44a59c
mov word [esi], 0
mov byte [esi + 0xb], 0
jmp 0x44a5aa
mov eax, dword [esi]
mov word [eax], 0
mov dword [esi + 4], 0
xor ebx, ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004af401
mov eax, ebx
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x44b2c2
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 8
mov eax, dword [0x530f98]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov esi, 0x10dd
cmp dword [0x53341c], 0
jne 0x44b33e
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, eax
xor edx, edx
xor eax, eax
lock cmpxchg dword [0x53341c], ecx
jne 0x44b33e
mov dword [0x533418], edx
mov dword [0x533420], edx
mov dword [0x533424], edx
mov dword [0x533428], edx
mov dword [0x53342c], edx
mov esi, dword [0x533430]
test esi, esi
je 0x44b33c
lea edi, [ebp - 0x14]
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
push edi
push 0x40
push 0x10000
push esi
call ebx
mov esi, dword [esi + 4]
test esi, esi
jne 0x44b32a
xor esi, esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004af401
mov eax, esi
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x44b352
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 8
mov eax, dword [0x530f98]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov edi, dword [0x53341c]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov esi, 0x10dd
cmp edi, eax
jne 0x44b425
mov edi, dword [0x533420]
test edi, edi
je 0x44b3e2
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [edi + 0x10]
movzx eax, byte [eax + 0x17]
lea ecx, [ebp - 0x14]
push ecx
push dword [edi + 0x14]
push eax
push dword [edi + 0xc]
call ebx
cmp dword [edi + 4], 0
jne 0x44b3d1
mov eax, dword [edi + 0x10]
test eax, eax
je 0x44b3d1
mov ecx, eax
and ecx, 0xffff0000
xorps xmm0, xmm0
movups xmmword [eax + 0x10], xmm0
movups xmmword [eax], xmm0
mov edx, dword [ecx + 8]
mov dword [eax + 0x18], edx
mov dword [ecx + 8], eax
mov dword [edi + 0x10], 0
mov esi, dword [edi]
push edi
call fcn.004af3c6
add esp, 4
mov edi, esi
test esi, esi
jne 0x44b38e
mov dword [0x533420], 0
call fcn.0044b439
mov edi, dword [0x533424]
test edi, edi
je 0x44b417
mov esi, dword [sym.imp.KERNEL32.dll_ResumeThread]
push dword [edi + 4]
call esi
mov ebx, dword [edi]
push edi
call fcn.004af3c6
add esp, 4
mov edi, ebx
test ebx, ebx
jne 0x44b401
xor esi, esi
mov dword [0x533424], esi
mov dword [0x53341c], esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004af401
mov eax, esi
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x44b73d
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov esi, dword [0x533428]
test esi, esi
je 0x44b756
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret 4
mov ebx, dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
xor esi, esi
cmp eax, ebx
je 0x44b74d
push 8
call fcn.004af396
add esp, 4
mov edi, eax
push ebx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
je 0x44b78f
mov dword [edi + 4], ebx
mov eax, dword [0x533424]
mov dword [edi], eax
mov dword [0x533424], edi
jmp 0x44b74d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push edi
call fcn.004af3c6
add esp, 4
mov dword [0x533428], esi
mov dword [0x53342c], 0
jmp 0x44b74d
Function at 0x44bc5f
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x24
mov esi, edx
mov eax, dword [0x530f98]
xor eax, ebp
mov dword [ebp - 0x10], eax
lea edi, [ebp - 0x2c]
push 0x1c
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
mov eax, dword [edi + 4]
movzx ecx, word [eax]
cmp ecx, 0x5a4d
jne 0x44bcb5
mov ecx, dword [eax + 0x3c]
cmp dword [eax + ecx], 0x4550
jne 0x44bcb5
mov edx, dword [eax + ecx + 0xd8]
add edx, eax
cmp edx, esi
ja 0x44bcb5
add edx, dword [eax + ecx + 0xdc]
mov bl, 1
cmp edx, esi
ja 0x44bcb7
xor ebx, ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004af401
mov eax, ebx
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x44c290
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 0x44c2fd
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 0x44c2d0
cmp edx, 1
jne 0x44c306
jmp 0x44c322
mov eax, edx
mov ecx, esi
cmp edx, 1
je 0x44c322
cmp edx, 2
je 0x44c319
cmp edx, 3
jne 0x44c32d
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 0x44c488
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 0x44c394
lea edx, [edi - 1]
and edx, ebx
jmp 0x44c3a0
mov edx, ebx
cmp ebx, edi
jb 0x44c3a0
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 0x44c488
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], edi
mov ebx, dword [eax]
test ebx, ebx
je 0x44c488
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 0x44c3f6
and eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x24]
jne 0x44c486
mov ebx, dword [ebx]
test ebx, ebx
je 0x44c486
mov eax, dword [ebx + 4]
cmp dword [ebp - 0x14], eax
jne 0x44c450
movzx eax, byte [ebx + 0x13]
mov ecx, eax
test al, al
jns 0x44c40b
mov ecx, dword [ebx + 0xc]
cmp ecx, dword [ebp - 0x10]
jne 0x44c3ec
lea ecx, [ebx + 8]
mov edx, dword [ecx]
test al, al
cmovs ecx, edx
js 0x44c468
cmp dword [ebp - 0x10], 0
je 0x44c482
cmp byte [esi], dl
jne 0x44c3ec
add eax, 0xffffffff
xor ecx, ecx
nop dword [eax + eax]
cmp eax, ecx
je 0x44c482
movzx edx, byte [ebx + ecx + 9]
lea edi, [ecx + 1]
cmp dl, byte [esi + ecx + 1]
mov ecx, edi
je 0x44c430
jmp 0x44c3ec
cmp dword [ebp - 0x28], 1
jbe 0x44c3e0
mov ecx, dword [ebp - 0x18]
cmp eax, ecx
jb 0x44c3e3
xor edx, edx
div ecx
mov eax, edx
jmp 0x44c3e3
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x44c482
push eax
push esi
push ecx
call fcn.004b710d
add esp, 0xc
test eax, eax
jne 0x44c3ec
mov ecx, ebx
jmp 0x44c488
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 0x450720
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x24
mov esi, ecx
mov ecx, dword [ebp + 8]
mov eax, dword [0x530f98]
xor eax, ebp
mov dword [ebp - 0x10], eax
xor eax, eax
cmp dword [esi + 4], 0
setne al
mov ebx, ecx
sar ebx, 0x1f
add eax, eax
add eax, 4
push dword [ebp + 0xc]
push ecx
push ebx
mov dword [ebp - 0x30], eax
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
mov eax, dword [ebp + 0x10]
mov dword [eax], edi
test edi, edi
jne 0x450797
call fcn.004776d0
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
push dword [ebp - 0x30]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
mov eax, dword [ebp + 0x10]
mov dword [eax], edi
test edi, edi
jne 0x450797
call fcn.004776d0
mov eax, dword [ebp + 0x10]
mov edi, dword [eax]
test edi, edi
je 0x4507ce
mov esi, dword [ebp + 0x14]
lea eax, [ebp - 0x2c]
push 0x1c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
mov ecx, dword [ebp - 0x20]
sub ecx, edi
add ecx, dword [ebp - 0x28]
test eax, eax
cmove ecx, eax
mov dword [esi], ecx
mov bl, 1
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004af401
mov eax, ebx
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret 0x10
xor ebx, ebx
jmp 0x4507b8

Function at 0x4508f0
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 0x450969
mov ecx, dword [ebp + 0xc]
cmp ebx, 1
jne 0x45090c
xor esi, esi
jmp 0x45094e
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 + 0x4eb93c]
movzx edx, al
movzx edi, byte [ecx + esi + 1]
xor edi, edx
shr eax, 8
xor eax, dword [edi*4 + 0x4eb93c]
add esi, 2
cmp ebx, esi
jne 0x450920
mov edx, dword [ebp + 0x10]
test dl, 1
je 0x450969
movzx edx, al
movzx ecx, byte [ecx + esi]
xor ecx, edx
shr eax, 8
xor eax, dword [ecx*4 + 0x4eb93c]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x450970
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov eax, 0x1408
call fcn.004af8c0
mov eax, dword [0x530f98]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov eax, dword [0x530fa8]
cmp eax, 0xffffffff
je 0x450ab6
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
test bl, 3
je 0x450ab6
and ebx, 0xfffffffc
lea eax, [ebp - 0x810]
push 0x800
push ebx
push eax
call fcn.004b80c0
add esp, 0xc
mov ecx, dword [0x530fa8]
lea eax, [ebp - 0x80f]
push eax
mov dword [ebp - 0x1414], ecx
push ecx
call fcn.00477d90
add esp, 8
test ebx, ebx
je 0x4509eb
push ebx
call fcn.004af3fc
add esp, 4
mov eax, dword [0x5340ac]
test al, 1
je 0x450ad7
mov esi, dword [0x5340a8]
push esi
call dword [0x533130]
test al, al
je 0x450acb
lea eax, [ebp - 0x1410]
push 0xc00
push 0x5334a8
push eax
call fcn.004b80c0
add esp, 0xc
push esi
call dword [0x53312c]
mov edi, 0x100
mov al, 1
jmp 0x450a4a
lea ecx, [edi - 1]
cmp edi, 2
mov edi, ecx
jb 0x450aa6
test al, 1
je 0x450aa6
xor eax, eax
lea esi, [ebp - 0x1408]
xor ebx, ebx
jmp 0x450a6e
add ebx, 1
add esi, 0xc
cmp ebx, 0x100
je 0x450a40
mov ecx, dword [ebp + ebx*8 - 0x810]
test ecx, ecx
je 0x450a60
cmp dword [esi - 8], 0
je 0x450a60
mov edx, dword [ebp + ebx*8 - 0x80c]
cmp edx, dword [esi]
jne 0x450a60
mov edx, dword [esi - 4]
test edx, edx
je 0x450a60
mov dword [ebp + ebx*8 - 0x810], 0
push ecx
call edx
add esp, 4
mov al, 1
jmp 0x450a60
push 2
push dword [ebp - 0x1414]
call fcn.00477d90
add esp, 8
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004af401
add esp, 0x1408
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, esi
call fcn.00440000
jmp 0x450a0d
or eax, 1
mov dword [0x5340ac], eax
push 0x18
call fcn.004af396
add esp, 4
mov esi, eax
mov ecx, eax
call fcn.0043ffa0
mov dword [0x5340a8], esi
jmp 0x4509fe

Function at 0x450b00
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x530fa8]
cmp eax, 0xffffffff
je 0x450b22
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 0x450b30
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov esi, ecx
mov eax, dword [0x530fa8]
cmp eax, 0xffffffff
je 0x450b4d
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
jne 0x450b52
call fcn.00450c50
mov eax, dword [0x5340ac]
test al, 1
je 0x450c15
mov edi, dword [0x5340a8]
push edi
call dword [0x533130]
test al, al
je 0x450c09
mov ecx, dword [0x5334a4]
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 + 0x5334a8], 0
je 0x450bbd
lea eax, [ecx + 1]
movzx ebx, al
lea eax, [ebx + ebx*2]
cmp dword [eax*4 + 0x5334a8], 0
je 0x450bbd
add ecx, 2
add edx, 0xfffffffe
jne 0x450b90
jmp 0x450bed
lea ecx, [eax*4 + 0x5334a8]
mov dword [ecx], 1
lea eax, [ebx*4]
mov ecx, dword [ebp + 8]
mov dword [eax + eax*2 + 0x5334ac], ecx
mov dword [0x5334a4], ebx
mov dword [esi], ebx
mov eax, dword [eax + eax*2 + 0x5334b0]
mov dword [esi + 4], eax
push edi
call dword [0x53312c]
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x450c3b
cmp eax, 0x100
jge 0x450c3e
pop esi
pop edi
pop ebx
pop ebp
ret 4
mov ecx, edi
call fcn.00440000
jmp 0x450b74
or eax, 1
mov dword [0x5340ac], eax
push 0x18
call fcn.004af396
add esp, 4
mov edi, eax
mov ecx, eax
call fcn.0043ffa0
mov dword [0x5340a8], edi
jmp 0x450b65
int3
int3

Function at 0x450c50
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
sub esp, 0x808
mov eax, dword [0x530f98]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov eax, dword [0x530fa8]
mov dword [ebp - 0x810], eax
cmp eax, 0xffffffff
jne 0x450cee
lea esi, [ebp - 0x810]
push esi
call fcn.00477d60
add esp, 4
test al, al
je 0x450d6f
mov ecx, dword [ebp - 0x810]
cmp ecx, 0xffffffff
jne 0x450cc5
push esi
call fcn.00477d60
add esp, 4
test al, al
je 0x450d72
cmp dword [ebp - 0x810], 0xffffffff
je 0x450d72
push 0xffffffffffffffff
call fcn.00477d80
add esp, 4
mov ecx, dword [ebp - 0x810]
mov eax, 0xffffffff
lock cmpxchg dword [0x530fa8], ecx
mov eax, dword [ebp - 0x810]
je 0x450cee
push eax
call fcn.00477d80
add esp, 4
mov eax, dword [0x530fa8]
mov dword [ebp - 0x810], eax
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
jne 0x450d6c
lea edi, [ebp - 0x80c]
push 0x800
push 0
push edi
call fcn.004b8bc0
add esp, 0xc
lea eax, [ebp - 0x809]
push eax
push dword [ebp - 0x810]
call fcn.00477d90
add esp, 8
push 0x800
call fcn.004af3f3
add esp, 4
mov esi, eax
push 0x800
push edi
push eax
call fcn.004b80c0
add esp, 0xc
mov eax, esi
or eax, 3
push eax
push dword [ebp - 0x810]
call fcn.00477d90
add esp, 8
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.004af401
mov eax, esi
add esp, 0x808
pop esi
pop edi
pop ebp
ret
int3
int3
int3
Function at 0x458550
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov esi, ecx
mov edi, dword [ebp + 8]
cmp dword [ecx + 8], 0
je 0x458567
mov eax, dword [esi]
mov ecx, eax
jmp 0x45858c
mov eax, dword [esi]
test eax, eax
je 0x458571
mov ecx, eax
jmp 0x45858c
cmp dword [esi + 0xc], 0
je 0x45857d
mov ecx, eax
xor eax, eax
jmp 0x45858c
mov ecx, eax
xor eax, eax
cmp dword [esi + 4], 0
mov edx, 0
je 0x4585e3
add ecx, 1
cmp ecx, 2
jb 0x4585ab
call fcn.00432240
push dword [esi]
call fcn.00440cc0
add esp, 4
mov dword [esi], 0
xor eax, eax
mov ecx, dword [esi + 4]
lea edx, [ecx + 1]
cmp edx, 2
jb 0x4585d1
call fcn.00432240
push dword [esi + 4]
call fcn.00440cc0
add esp, 4
mov dword [esi + 4], 0
mov eax, dword [esi]
xor ecx, ecx
mov edx, eax
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov eax, ecx
mov ebx, dword [edi]
cmp edx, ebx
je 0x45862c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [esi]
add eax, 1
cmp eax, 2
jb 0x458610
call fcn.00432240
push dword [esi]
call fcn.00440cc0
add esp, 4
mov dword [esi], 0
lea eax, [ebx + 1]
cmp eax, 2
jb 0x45861f
mov dword [esi], ebx
call fcn.00432240
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [esi + 4]
mov edi, dword [ebp + 8]
mov ebx, dword [edi + 4]
cmp eax, ebx
je 0x458677
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [esi + 4]
add eax, 1
cmp eax, 2
jb 0x45865d
call fcn.00432240
push dword [esi + 4]
call fcn.00440cc0
add esp, 4
mov dword [esi + 4], 0
lea eax, [ebx + 1]
cmp eax, 2
jb 0x45866d
mov dword [esi + 4], ebx
call fcn.00432240
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edi, dword [ebp + 8]
mov eax, dword [edi + 8]
mov dword [esi + 8], eax
mov eax, dword [edi + 0xc]
mov dword [esi + 0xc], eax
pop esi
pop edi
pop ebx
pop ebp
ret 4

Function at 0x4587a0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x10
mov eax, dword [0x530f98]
xor eax, ebp
mov dword [ebp - 0x10], eax
test ecx, ecx
je 0x458832
mov edi, ecx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x14], 0
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call esi
mov ebx, eax
call esi
lea ecx, [ebp - 0x14]
push 2
push 0
push 0
push ecx
push ebx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov edi, eax
test eax, eax
je 0x458836
mov ebx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x1c]
cmp dword [esi], ebx
je 0x458843
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esi]
add ecx, 1
cmp ecx, 2
jb 0x45881d
mov dword [ebp - 0x18], eax
call fcn.00432240
push dword [esi]
call fcn.00440cc0
mov eax, dword [ebp - 0x18]
add esp, 4
mov dword [esi], 0
lea ecx, [ebx + 1]
cmp ecx, 2
jb 0x45883c
mov dword [esi], ebx
mov esi, eax
call fcn.00432240
mov eax, esi
jmp 0x45883c
mov bl, 1
jmp 0x458848
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
test edi, edi
setne bl
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004af401
mov eax, ebx
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret